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

Read UID and RSSI without manual connection

Hello,

I need to read the UID and later on also the RSSI value of devices (Handys) in range. It should be reading the values automatically without the need of manual connecting. If some known device is recognized I want to trigger a task.

I think that I should use a BLE-Peripheral and not a BLE-Central am I right?

It would be great if someone could recommend a good starting-point example or necessary API calls.

Thanks in Advance

Parents
  • @wklimann: Correct, the beacon works the other way around.

    In this case you can set the phone in peripheral mode and advertise, and use the nRF51 as central device. But it's only supported on iOS device, not on Androids.

    What else you can do is to let the nRF51 advertise, and run a background app on the phone. The app will scan for the device and connect to it. After that you can send 1 (or a few) dummy packet for the nRF51 to detect the RSSI before you quickly disconnect. And allow other phones to connect to it.

Reply
  • @wklimann: Correct, the beacon works the other way around.

    In this case you can set the phone in peripheral mode and advertise, and use the nRF51 as central device. But it's only supported on iOS device, not on Androids.

    What else you can do is to let the nRF51 advertise, and run a background app on the phone. The app will scan for the device and connect to it. After that you can send 1 (or a few) dummy packet for the nRF51 to detect the RSSI before you quickly disconnect. And allow other phones to connect to it.

Children
No Data
Related