Member | Action | Date |
---|---|---|
|
Replied
to
Full device name with scan response
Oh!My mistake! Many thanks.
|
Dec 16 2019, 9:25 AM |
|
Selected an answer for
Full device name with scan response
This data is not correct:
The first byte is the length of AD element and it is 0x12 = dec 18. However, the length of the data is 13 bytes (1 byte for the AD type 0x09 and 12 bytes for the name). You should change the first byte to 13 = 0x0D Also, you should check the response value of each gecko_cmd_xxx function call. Something like this:
|
Dec 16 2019, 9:24 AM |
|
Replied
to
Full device name with scan response
Still with this solution,adding the private uuid, I'm able only to advertise until my local name i 8 character long. the reason is clear, and so i should pass the complete name in the scan data right? What format should have at this point the scan data?the same as the advertising data?Or should be only the remaining data left out? gecko_cmd_le_gap_bt5_set_adv_data(0, 0, sizeof(adv_data), adv_data); /****here scan data what should be in order to have a custom length name****/ Thanks, Davide |
Dec 13 2019, 3:42 PM |
|
Posted
Full device name with scan response on
Forum
Hello, I've developed an application based on the spp example. I'd like now to display the full device name when discovered from a client and not truncated after 8 character due having a 128uuid. I thought the solution could be using the scan response using cmd_le_gap_bt5_set_adv_data before start advertising to set a new devicename. But that's not it, the device name is still the truncated version of the one in the gatt.xml I've created a new name(different from the one in the gatt.xml file) following the advertsing data format: uint8 scan_resp_data[14] = {0x12,0x09,0x64,0x75,0x63,0x63,0x69,0x6f,0x31,0x32,0x33,0x34,0x35,0x36}; case gecko_evt_system_boot_id: reset_variables(); break; I'm on the wrong way, or am i missing something? thanks, Davide |
Dec 13 2019, 11:49 AM |