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
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
Dear,
I said, I want access X32_ble data it is based on bluetooth V4.1 protocol. I want scan data of this, how can acess raw data of BLE.
Thanks
Ansh
What is X32_ble? Can you post a link?
We are not able to give any recommendations without know what this device is and what BLE services, etc. it has.
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
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
I used ble_uart_c in central
But the device does not implement the proprietary Nordic UART Service (NUS) - so that's never going to work.
The example documentation tells you:
"The application scans peripheral devices and connects to a device that advertises with the NUS UUID in its advertisement report"
https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_nus_c.html
So it's not even going to connect to that device.

Thanks, my work done.