Maximum TCU_SIZE_DEVICE_NAME

Module: PAN1026

SDK: 3.4.1

What is the maximum device name size that can be advertised?  I see TCU_SIZE_DEVICE_NAME set to 13;  can it be increased?

Thanks

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • By looking at the code it seems that TCU_SIZE_DEVICE_NAME is an arbitrarily chosen limit for a device name, that should be big enough for most use cases.

    If not, you can increase it - but there may be negative side effects.

    As you probably know, the advertising data and the scan response can include max. 31 bytes.

    If you use the automatic Bluetooth SDK advertising functions then these might not work as expected any more. If a very long device name is included in the advertising data it might not be possible that other information is included in the advertising data or scan response.

    In that case it might be necessary that you hand-craft your own advertising and scan response data so that it includes the information that you want.

    Another problem could be the MTU size. TCU_SIZE_DEVICE_NAME is used as a size for the device name of the device information service.

    If your devices do not do a MTU size negotiation and the MTU size is always the default of 23 bytes, then remote devices cannot uses a simple GATT read to read the whole device name in one go.

    Properly written applications should be able to handle that, but there may be applications out there that will truncate the device name from the device information service.

    Reply Like
  • OK, I'll give it a try.  We'd like to be able to use a 15-character device name.

    Reply Like
reply to topic
Like Follow
  • Status Answered
  • 6 mths agoLast active
  • 2Replies
  • 93Views
  • 2 Following