This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Inserting data at scan request packet

Hello, this question is similar to this questions (Scan request packet, answered by John DeWitt and Aryan)

I'm using

  • IAR EWARM 7.20

  • PCA10001 V 2.0.0 (Changed the MCU to QFAAH00 Revision 3)

(I replaced the MCU to a QFAAH00 (0x0072) with a heat gun)

  • SDK 10.0

  • SoftDevice S110 8.0, S120 2.1, and S130 1.0

  • J-Link Edu

/********************************************************************/

Similar to the question link above, I also want to insert my personal data

while sending scan request packets.

Aryan answered that "you can change ScanA field by changing device address of central but nothing more."

TI ref

(Picture ref: TI's BLE sniffer guide)

/********************************************************************/

I want to insert data at that ScanA field like battery level or temperature values.

Also, I want the beacon to get my inserted data reading the ScanA field.

I tried this example (Can two masters connect two slaves at the same time, answered by Stefan Birnir Sverrisson).

/********************************************************************/

So my questions are,

  1. I'm using

ble_app_beacon, experimental_ble_app_multiactivity_beacon (scanner), and ble_app_multilink_central.

What place in the code should be modified in order to fill the ScanA field?

  1. In the ble_app_beacon code,

    uint8_t rssi_value; ble_gap_addr_t peer_address;

    switch (p_ble_evt->header.evt_id){ case BLE_GAP_EVT_SCAN_REQ_REPORT: peer_address = p_ble_evt->evt.gap_evt.params.scan_req_report.peer_addr; rssi_value = p_ble_evt->evt.gap_evt.params.scan_req_report.rssi; break; }

I added this code using Stefan Birnir Sverrisson's answer.

What additional code should be add in order to check the ScanA field?

-Regards, Mango

Parents Reply Children
No Data
Related