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

How to get Peripheral service 128 bit UUID before connection???

Hi i am using nrf52832 development board as central which scans for peripheral devices.

how to get peripheral device service UUID(128 bit) completely before connection?

is it possible to get uuid either using Advertisement packet or scan response packet ?

Thanks,

Rekha

Parents
  • Our application does precisely this.  It scans for devices that are advertising and gets the MAC address and RSSI of devices advertising with a given UUID.  Our scanning (Central) device never makes a connection.  I got it going with the nRF51 quite easily.  In main.c there is an event from the BLE stack that indicates when an advertising report is received, and you can read the advertising data.  However, we're moving to the nRF52832, and this seems to have gone, or is hidden within the scanning module. I'm starting from the ble_app_uart example, but the code for dealing with received advertising packets seems to be a nightmare to follow.

    Can the application get a notification when an advertising packet has been received? 

Reply
  • Our application does precisely this.  It scans for devices that are advertising and gets the MAC address and RSSI of devices advertising with a given UUID.  Our scanning (Central) device never makes a connection.  I got it going with the nRF51 quite easily.  In main.c there is an event from the BLE stack that indicates when an advertising report is received, and you can read the advertising data.  However, we're moving to the nRF52832, and this seems to have gone, or is hidden within the scanning module. I'm starting from the ble_app_uart example, but the code for dealing with received advertising packets seems to be a nightmare to follow.

    Can the application get a notification when an advertising packet has been received? 

Children
No Data
Related