3 posts / 0 new
Last post
Allyours
Offline
Last seen:5 years 1 month ago
加入:2014-08-25 13:08
SPS设备名称

Hi,

we are using a couple DA14580 Devices. But it was a bit annoying that all devices are with similar names. So i changed the nvds_data_struct to be not const anymore. changed DEVICE_NAME_TAG_LEN to something larger. And implemented the nvds_put that was already in the header but not implemented to set device name by AT commands.
By default I'm setting the device name to "DA14580 05:F4" for Example DA... and the last two bytes of the MAC. This is working fine with DA14580_DSPS_3.150.1.5
but with DA14580_DSPS_3.150.2 i have a limitation to 8 chars as device name when i'm scanning and i can't find where the limitation is defined. Any chance you can tell me where this was done?

And something for your Documentation my AT Command implementation is working fine so far by calls of uart_push(). But note in the Documentation that uart_push() isn't called from the uart_rx_callback() function which is called upon reception of data from the UART. This only happens when a BLE Connection is established else nothing happens.

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
Hello Allyours,

Hello Allyours,

the device name is set inapp_your_project_proj.cinapp_adv_func, which forms the advertisement pack. Granted that the function is not the easiest to manipulate, but you should be able do your modifications around line 192:

if(device_name_length > 0) { ... }

The device name is appended last to the end of the advertisement packet. Thedevice_name_length variable休息ricts the maximum length of the device name. It is set via NVDS attribute (NVDS_LEN_DEVICE_NAME) orstrlen(APP_DEVICE_NAME)depending on whether you useNVDS_SUPPORTor not.

Allyours
Offline
Last seen:5 years 1 month ago
加入:2014-08-25 13:08
Sorry but this is not

Sorry but this is not addressing the issue.
V1.5 and 2 are identical at this function and my issue isn't to set the Device name there. That isn't a general change of the device name btw. and won't work with iOS btw.
the Problem is that the divice name is limited to 8 bytes by the v2 Version of the SPS app in the Advertising and only there.