advertising data stricture

⚠️
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.
10 posts / 0 new
Last post
MADHUSF
Offline
Last seen:3周4天前
Joined:2018-01-15 09:22
advertising data stricture

Hi,

I have found #define USER_ADVERTISE_DATA in user_config.h

please tell me the format of USER_ADVERTISE_DATA..

how it is and what is in that..how can i modify it

设备:
PM_Dialog
Offline
Last seen:4 hours 4 sec ago
Staff
Joined:2018-02-08 11:03
嗨Madhusf。

嗨Madhusf。

The advertising data should have a specific format and I will try to explain you how is should be. Please check the bll_app_peripheral example of the SDK. The advertising data are defined as follow:

#define USER_ADVERTISE_DATA ("\x03"\

adv_type_complete_list_16bit_service_ids \

avd_uuid_device_information_service \

“\ x11”\

adv_type_complete_list_128bit_service_ids \

“\ X2F \ X2A \ X93 \ xA6 \ XBD \ XD8 \ X41 \ X52 \ XAC \ X0B \ X10 \ X99 \ X2E \ XC6 \ xFE如果\ XED”)

As you can see, in the advertising data the Device information and the Complete list of 128-bit Service IDs are included.

  • 0 x03:长度
  • ADV_TYPE_COMPLETE_LIST_16BIT_SERVICE_IDS (x03) is the tag for Complete list of 16-bit Service IDs
  • ADV_UUID_DEVICE_INFORMATION_SERVICE( \x0A\x18) is the Device Information Service

So, the length of x03\x0A\x18 is 0x03

  • \x11 : Length
  • ADV_TYPE_COMPLETE_LIST_128BIT_SERVICE_IDS (\x07) tag for Complete list of 128-bit Service IDs
  • \ x2f \ x2a \ x93 \ xa6 \ xbd \ xd8 \ x41 \ x52 \ xact \ x0b \ x10 \ x99 \ x2e \ x10 \ x99 \ x2e \ x10 \ x99 \ x2e \ x10 \ x99 \ x2e \ x10 \ x99 \ x2e \ x10 \ x99 \ x2e \ x10 \ x99 \ x2e \ x10 \ x99 \ x2e \ xc6 \ xfe \ xed您想填充什么128bit服务

How to modify them depends what you would like to store into the advertising data. If you search on the forum, you will see lot of many posts regarding the advertising data. For instance:

https://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bluetooth-low-energy-%2%80%93-software/useradverticeata.

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/change-advertisement-data

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/da14581-stops-sending-advertisements

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/changing-useradvertisedata-send

Thanks, PM_Dialog

MADHUSF
Offline
Last seen:3周4天前
Joined:2018-01-15 09:22
Hi,

Hi,

你能解释一下吗?

1.参数需要通过ADVT数据发送什么参数

2.What is BD_ADDRESS,how to define it.format

3.how to identify the device (chip) with advt parameters

4.what is the best practice to identify the device before connection or bonded to application

(我的意思是使用BLE扫描仪,如何使用除设备名称以外的Advt Paramers进行Idify设备)

PM_Dialog
Offline
Last seen:4 hours 4 sec ago
Staff
Joined:2018-02-08 11:03
嗨Madhusf,

嗨Madhusf,

  1. 这与您的申请要求有关。您希望在设备广告时填充什么?您可以从我们的支持网站上阅读以下文档吗?

2 - 3 - 4.如果您可以从我们的支持网站上阅读以下文档吗?本文档提供您需要的所有信息。

https://www.dialog-seminile.com/sites/default/files/advertising_concept.pdf.

Thanks, PM_Dialog

MADHUSF
Offline
Last seen:3周4天前
Joined:2018-01-15 09:22
Hi,

Hi,

Thank for your reply

1.我已经看到了cfg_nvds_tag_bd_address in user_config.h...唯一地址识别右,如果正确告诉我如何框架。

2.every BLE chip has unique manufactuer id or else any id specific to identify the chip right

如何通过代码读取或从堆栈读取到广告数据。

please explain in detail

PM_Dialog
Offline
Last seen:4 hours 4 sec ago
Staff
Joined:2018-02-08 11:03
嗨Madhusf,

嗨Madhusf,

设备的公共地址位于DA1458x_Config_Advance.h中的CFG_NVDS_TAG_BD_ADDRESS标志中。默认地址是:{0x03,0x00,0x70,0xca,0xea,0x80}。如果在OTP标题中写入BD地址,则忽略此值。关于你的第二个问题让我检查它是否有可能。此外,您可以参考蓝牙核心规范,以获取有关BD地址格式的更多信息。

Thanks, PM_Dialog

MADHUSF
Offline
Last seen:3周4天前
Joined:2018-01-15 09:22
Hi,

Hi,

I have checked the format of BD_ADDR

检查这些链接https://macaddresschanger.com/what-is-bluetooth-address-BD_ADDR

my question is

1.Its first 3 bytes define OUI,

雷竞技电竞平台对话半导体已经来自IEEE的OUI ..我已经检查过。

我的问题是芯片制造的OUI,或者也适用于使用其他BLE芯片的组织。

2..bd地址是唯一的识别设备右,如果是,在代码中,它应该如何定义不同的设备

我的意思是在生产中,应该只有一个十六进制文件权限,所以我需要用OTP标题写入,如果是,我必须为n个设备定义n no n no bd_address,它看起来很好......还有什么唯一的唯一ID可以从芯片中读取并通过advt数据送达..将我的手术识别唯一的BLE设备的程序?

PM_Dialog
Offline
Last seen:4 hours 4 sec ago
Staff
Joined:2018-02-08 11:03
嗨Madhusf,

嗨Madhusf,

Each BLE device will have a unique Address to identify the device. However, these addresses are not programmed into the chips. They must be programmed by you during the production. If the OTP fields for this BD Address is programmed, then the device will use that specific address otherwise it will use the default address value from the firmware. These are the only ways to set the value of the BD Address.

但是,BLE地址本身可以配置为不同类型:公共和随机。

The Public Address is a fixed value all the time and is generated in accordance with the IEEE specification. Please refer to the BLE spec for the details. Public IEEE bd addresses have to be obtained through IEEE organization.

https://www.bluetooth.com/specifications/bluetooth-core-specification/

On the other hand, Random Address can be of Static and Private types. The Random address value is generated by the stack in accordance with the description in the BLE specification. The are 3 types of Random Device Address:

Random Static address, it shall comply with the following requirements:

  • the two most significant bits of the address shall be equal to 11

Non-Resolvable Private Address, it shall comply with the following:

  • 地址的两个最高有效位应等于0

Resolvable Private Address, it shall comply with the following:

  • 地址的两个最高有效位应等于01

地址的所有剩余位不应等于1或0。

If you found the answer useful, please mark it as “accepted”

Thanks, PM_Dialog

MADHUSF
Offline
Last seen:3周4天前
Joined:2018-01-15 09:22
Hi,

Hi,

谢谢你的回复。

1.In random static address,

静态随机地址要么在设备发货之前预编程,也可以改变为新值在每个电源周期之后. However, a device isn’t supposed to change this address until the device goes through a power cycle. If this address is changed during runtime, the address stored in the peer device will not remain valid and the reconnection using the older address will fail.

什么是含义在每个电源周期之后..在上面的句子中,解释一句?

2.请在使用中解释任何关于随机地址的更多信息。我们在我们的医疗保健产品中使用DA14585来向应用程序发送数据..我们必须采用的方案..我们正在开发医疗保健产品..我想将数据发送到应用程序......对于BD Addr的最好的Schmes,我们必须使用。在这场比赛中,我可以使用。

PM_Dialog
Offline
Last seen:4 hours 4 sec ago
Staff
Joined:2018-02-08 11:03
嗨Madhusf,

嗨Madhusf,

我的意思是您可以在da1458x_config_advanced.h文件中配置CFG_NVDS_TAG_BD_ADDRESS定义。虽然,如果在OTP标题中写入BDDDRESS,则忽略此值。对于大规模生产,您可以使用生产线工具(PLT)。

//www.wsdof.com/sites/default/files/um-b-041_da1458x_da1468x_production_line_tool_4v2.pdf

Regarding your last question, it depends what kind of address type you would like your every peripheral Please check the specification in order to see the difference between each address type.

Thanks, PM_Dialog