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

Scan Data by X32_BLE

Dear ,

I have NRF52 board and X32_ble PIR sensor. sensor data send and I can easily access on android app but I have used UART program for acess data of BLE then I couldnt acess this. how can access data.

Thanks

Ansh

Parents Reply Children
  • Obviously, the ble_app_uart example will only work with a Peripheral which implements the proprietary Nordic UART Service (NUS).

    EDIT

    You can use nRFConnect (desktop or mobile app) to explore the device's services & characteristics ...

    EDIT 2

    Other BLE scanning and exploring applications are available.

  • Hi, 

    I have used ble scanner but I dont want any application. I want access data by nrf52 and I have used ble_app_uart but data not got. Can you help me that hows can get data by this program. 

    Thanks 

    Ansh

  • According to the second document you posted, this device seems to only provide the data through advertising. You can use a central example, or a scanner application to receive the advertising packets from the device (for instance the example I posted in this thread

    You need to parse the advertising packet from all received packets to find the ones that match the static fields mentioned in the document, then you can extract the data from the bytes as specified in the document.

  • I dont want any application. I want access data by nrf52

    I get that.

    My point was that you can use a tool like nRFConnect to help you understand what the device is sending.

    Clearly, you need to understand what the device is sending before you can write nRF52 code - or any other code - to handle it!

  • Hi,

    I used ble_uart_c in central. Raw data not got and even MAC adress also not got. I have used following code in function of ble_evt_handler with new case (BLE_GAP_EVT_ADV_REPORT).

     for(uint8_t count =1;count<64;count++)
            {
                NRF_LOG_INFO("\r%02x",p_adv_report->data.p_data [count]);
             }

    By above code some data match.

    example:

    1. By App, Raw Data of connected BLE device:

    0x0201041AFF000602157461696C6F726564736F6C7574696F6E01020304C3110723D113EF5F782315DEEF1212CDAB0000

    2. By above code, run on NRF52 DK boad, Raw Data of connected BLE device:

    0x0201041AFF000602157461696C6F726564736F6C7574696F6E01020304C3F3002C4100201F0000000000000000000000000000000000000000000000000000000

          How to access correct RAW data and MAC Adress.

    Thanks

    Ansh

Related