3年前
如何在IBeAcon广告数据中添加设备名称?
张贴了Ustbzhangm.0分 5回复大家好。
我想在广告数据中添加设备名称。
由于广告数据的最大长度为0x1c(0x1f-3)字节。
而IBEACON数据结构是:
UINT8_T ADV_HEADER [2];//静态为ibeacon
UINT8_T 亚博全网COMPANY_ID [2];
uint8_t data_type;//静止的
uint8_t beacon_length;//静止的
UINT8_T UUID [16];//配置
uint8_t专业[2];//配置
UINT8_T次要[2];//配置
uint8_t tx_power;
IBeAcon结构占用0x1B(27)字节。
然后,只能使用一个字节(0x1c-0x1b)。
那么,如何在IBeAcon广告数据中添加设备名称?
3月
3年前
嗨,pm_dialog。
非常感谢你。
是的,我想宣传iBeacon数据包。我想同时宣传额外的数据。
我使用对话框参考设计电池供电的信标项目。'cmd-> info.host.adv_data []'中没有空间以保持额外的数据。
我可以将外部数据放在'cmd-> info.host.scan_rsp_data []'中填充?如果我想宣传设备名称,我可以在scan_rsp_data中放置'\ x05 \ x09 \ x54 \ x45 \ x53 \ x54'。这将有效吗?
3年前
我找到了articl:
不可连接的模式此模式下的设备无论是发送广告数据包,还是发送ADV_NONCONN_IND或ADV_SCAN_IND广告数据包(参见表2-1)。在这两种情况下,设备是,随着模式名称意味着,不可连接,这意味着没有Centrals可以与它建立连接。
但我无法在DA14580 SDK中找到“adv_scan_ind”模式。da14580可以在adv_scan_ind模式下工作吗?
3年前
嗨Ustbzhangm,
你能告诉我你使用哪个项目来宣传iBeacon数据包?Are you using the beacon project or any example of the SDK> Depending how you are using the SDK and which example you are using be aware that the SDK will append any extra data that don’t fit in the advertising string in the scan response data. In the first indication (advertising indication) the advertising data will populate the data, and then in the second indication (scan response indication) the scan response data will populate the struct. In order to catch the scan response data, you should configure your device as GAPM_SCAN_ACTIVE to get a scan response. Could you please clarify which scan mode are you using in your application? GAPM_SCAN_ACTIVE or GAPM_SCAN_PASSIVE configuration?
谢谢,PM_DIALOG.