This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE_ADVDATA_SHORT_NAME or BLE_ADVDATA_FULL_NAME

Could someone can tell me what is the difference between BLE_ADVDATA_SHORT_NAME and BLE_ADVDATA_FULL_NAME? I tried BLE_ADVDATA_SHORT_NAME and BLE_ADVDATA_FULL_NAME advertisement,and i observed it on PCA10000 dongle,i can not found out the difference.If the difference is the maximum size of name? TKS!

  • These definitions are used to choose whether you want to include the full name or just the start of it in the advertisement package. It is described like this in the Core Specification, Volume 3: Generic Access Profile, Chapter 11: Advertising and Scan Response Data Format, Section 11.1.2 Local Name:

    The Local Name AD type contains the device name, either complete or shortened as defined in Section 3.2.2. The AD type indicates if the name is complete or shortened. If the name is shortened, the complete device name can be read by reading the device name characteristic as defined in Section 12. The Advertising and Scan Response data shall not contain more than one instance of the Local Name AD type. A shortened name shall only contain contiguous characters from the beginning of the full name. For example, if the device name is ‘BT_Device_Name’ then the shortened name over BR/EDR could be ‘BT_Device’ while the shortened name on LE could be ‘BT_Dev’. The format of the data is defined in Table 18.3.

    The length of the shortened name can be set through the short_name_len field in the ble_advdata_t structure.

Related