start bt scan,sometimes in callback fuction,the pointer of eir_data is NULL

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
kiji_1771846
Level 1
Level 1
First like received

My bt demo runs on BCM20706A1.In my code,I use that code to start bt scan.

params.mode             = BTM_GENERAL_INQUIRY;

params.duration         = 40;

params.filter_cond_type = BTM_CLR_INQUIRY_FILTER;

result = wiced_bt_start_inquiry( &params, &inquiry_result_cback );

In callback function,sometimes the pointer of eir_data is NULL,so I cannot get the device name.

Can you give some explaination about this?

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

If there is no data to be sent in the EIR packet, i.e., eir_data is set to 0, then it means that the device does not have a device name.

For more details about this, please refer to section 8 EXTENDED INQUIRY RESPONSE DATA FORMAT from Bluetooth Specification Version 5.0, Vol 3, part C: https://www.bluetooth.com/specifications/bluetooth-core-specification.

View solution in original post

3 Replies
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

If there is no data to be sent in the EIR packet, i.e., eir_data is set to 0, then it means that the device does not have a device name.

For more details about this, please refer to section 8 EXTENDED INQUIRY RESPONSE DATA FORMAT from Bluetooth Specification Version 5.0, Vol 3, part C: https://www.bluetooth.com/specifications/bluetooth-core-specification.

But my phone can detect the device name

发件人: shjl

发送时间: 2018年9月20日 17:54

收件人: kim ji

主题: Re: - start bt scan,sometimes in callback fuction,the pointer of eir_data is NULL

<http://www.cypress.com>

<https://community.cypress.com/?et=watches.email.thread> Cypress Developer Community

start bt scan,sometimes in callback fuction,the pointer of eir_data is NULL

reply from shjl <https://community.cypress.com/people/shjl?et=watches.email.thread> in WICED Smart Bluetooth Forums - View the full discussion <https://community.cypress.com/message/169865?et=watches.email.thread#169865>

0 Likes

Can you please confirm if slave device is BT or BLE?

Also, can you give more product details about your slave device?

0 Likes