Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

AlGo_4347736
New Contributor II

Can you please tell me if there is a document on which I can parse data from "p_eir_data"?

I tried to find an answer on the forum but could not.

from wiced_bt_dev.h:

/**

* Inquiry result callback.

*

* @param p_inquiry_result          : Inquiry result data (NULL if inquiry is complete)

* @param p_eir_data                : Extended inquiry response data

*

* @return Nothing

*/

typedef void (wiced_bt_inquiry_result_cback_t) (wiced_bt_dev_inquiry_scan_result_t *p_inquiry_result, uint8_t *p_eir_data); /**<   inquiry result callback */

Thanck you!

0 Likes
1 Solution
SheetalJ
Moderator
Moderator

I can suggest you to refer 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. Apart from this, I don't think I can provide more details.

View solution in original post

0 Likes
6 Replies
SheetalJ
Moderator
Moderator

Hi AlGo_4347736​,

You can send device local name, UUID, transmit power or manufacture related info. You can check this article for more info: https://docs.huihoo.com/symbian/nokia-symbian3-developers-library-v0.8/GUID-F2A793F1-A5B5-526B-B147-...

Can you please let us know which Cypress chip are you using?

0 Likes
AlGo_4347736
New Contributor II

I use CYW20719 and CYW20721.

I understand that this information is contained in the received p_eir_data buffer but I need to know by what protocol it is written there to correctly write code to decrypt this buffer.

I have found two functions in the examples:

void DecodeEIR_Hostmode(const u8* p_data, u16 len, char* szName, u16& name_len);

void DecodeEIR(const u8* p_data, u16 len, char* szName, u16& name_len);

But I would like to see the full protocol of writing into this buffer.

Thank you in advance for your support!

0 Likes
SheetalJ
Moderator
Moderator

The implementation of parsing p_eir_data resides in BT ROM FW and the information in FW is not accessible to customer.

0 Likes
AlGo_4347736
New Contributor II

The thing is, I don't need an implementation. I'm interested in the return buffer format that contains a local name, UUID, transmit power or manufacture related info.

0 Likes
SheetalJ
Moderator
Moderator

I can suggest you to refer 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. Apart from this, I don't think I can provide more details.

View solution in original post

0 Likes
AlGo_4347736
New Contributor II

SheetalJ_96​ Thank you!

0 Likes