Forums - Read BLE advertise data payload from BLE devices in the vicinity

2 posts / 0 new
Last post
Read BLE advertise data payload from BLE devices in the vicinity
Tech_Xirdec
Join Date: 22 Oct 18
Posts: 1
Posted: Tue, 2018-10-30 01:12

How to read the BLE advertise data payload from BLE devices in the vicinity.
Many BLE devices put sensor data in the advertise payload so we read the data without connecting to every BLE device.
Is this possible from the QCLI_demo?

Thanks

Bram

  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Tue, 2018-10-30 22:29

Hi Bram,

When you review DisplayAdvertisingData() in quartz/demo/qcli_power_demo/src/ble/ble_demo.c,

we can print out the struct values like AD_Type, AD_Data_Lengh, and AD_Data.

For example, when AD_Type is 0x09 as complete local name, we can print Advertising_Data->Data_Entries[Index].AD_Data_Buffer as string type by %s.

Thanks
BR,
Jayden

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.