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

BEACON SCANNER to read more than 31 byte of advertising data

Hello everyone,

I'm writing a code for Beacon scanner using:

CONTROLLER: nRf52832, 
SDK:                  nRF5_SDK_15.3.0_59ac345
SOFTDEVICE:  s132_nrf52_6.1.1_softdevice.hex

I'm using "ble_app_uart_c" code as a Beacon scanner.


On debugging, the code hits the function "nrf_ble_scan_on_ble_evt" in file "nrf_ble_scan.c" and i can see 31 byte of beacon data
in *(&p_ble_evt->evt.gap_evt.params.adv_report.data.p_data[0 to 30]))

But the problem is my beacon device "MokoVeacon" transmit more than 31 bytes of data which includes Accelerometer data and also Txpower.

(http://doc.mokotechnology.com/index.php?s=/page/26)

How to read more than 30 Bytes of Advertising data, i have changed various possible things to change ADVERTISING Data size, but failed.

Can some one please help me on this...

Thanks.

Parents Reply
  • Hi Vidar Berg,

    I haven't put any break-points.

    Actually i am printing first 50 byes of received data in J-link RTT viewer.

    30 bytes i'm able to receive proper data, but after from 31 to 50th bytes, i'm receiving all zeros, which should be Accelerator data.

    I have used "nRF connect" mobile app, in that i can be able to see the valid data from 31 to 50th bytes.

    Is there any changes i need to make in "sdk_config.h" file like 

    #define NRF_BLE_SCAN_BUFFER 31

    #define NRF_BLE_SCAN_NAME_MAX_LEN 31

    #define NRF_BLE_SCAN_SHORT_NAME_MAX_LEN 31

    etc..

    I have changed this bytes to 50 but didn't received more than 30 bytes.

Children
Related