Advertising data length changed after changing device name

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Ruchi Patel
Offline
Last seen:2 years 5 months ago
Joined:2017-03-29 10:50
Advertising data length changed after changing device name

Hello Dialog_Support team,

Regarding device name, we have observed that, device name’s length depends on advertising data string length. For example if we changed device name from “DIALOG-PRPH” to “Testing-DeviceNew”, the advertising data string length also gets changed and it goes beyond 32 bytes so DA14580 is not able to read the advertising data after 32nd byte. Scan response is an option to read more bytes but in our scenario, it is not feasible.

Is there any way where if i change device name length then the length of the advertising data's will not change?

Thanks and Regards,
Ruchi Patel

Device:
LC_Dialog
Offline
Last seen:1 month 9 hours ago
Staff
Joined:2016-09-19 23:20
Hi Ruchi Patel,

Hi Ruchi Patel,

The advertisement packet is shared by the USER_ADVERTISE_DATA and USER_DEVICE_NAME. The effective bytes available to the user is only 28 bytes out of the 31 bytes as 3 bytes are reserved for setting flag data. Since this is spec related limitation, you will not be able to fit more than 28 bytes of data in the Adv packets. But if you do not have any Adv data, then you can fill all the bytes with the Device name. If you do have Adv data then only the remaining bytes can be used for the Device name.

Other than this, you can include the complete Device name in a DIS service. But again this requires a connection to be established to read the characterisitics.

Best,
LC_Dialog