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

Help regarding my project

I am trying to switch leds on and off on my nrf51822 beacon kit using an android application to be made by me.

I am not able to get any similar example.

Also i want to take rssi values transmitted by the nr51822 ble beacon on the app to be made by me. I couldn't find how to interface the app by my a ble device, so that it could get the rssi values of nearby beacons. What API is required for it?

Parents
  • Hi,

    Have you taken a look at the User Guide for the nRF51822 Beacon kit? It describes how you can get familiar with the possible functionality of the beacon on your phone.
    What you might be especially interested in seeing here is the features for proximity through RSSI.

    I am not able to get any similar example.

    For an Beacon transmitter example, please see SDK v11.0.0, examples/BLE peripheral/Beacon Transmitter.
    It contains code for a sample beacon application, and shows you how to access the different data being broadcast by the beacon.
    The example is compatible with SoftDevice 130, which should be compatible with your SoC. You can verify the compatibility using your SoC revision number and this compatibility matrix.

    I couldn't find how to interface the app by my a ble device, so that it could get the rssi values of nearby beacons. What API is required for it?

    To see how this can be done have a look at the app mentioned in the linked User Guide, and see what information that is being broadcast in the linked example.

    Best regards,
    Karl

  • Thank You Sir, for your help, 

    I studied the User Guide you have attached for the help, the guide is all about how to use the nordiac app to see rssi, but Sir i want to make my own android app to see rssi value of the beacon.

    I am not able to understand that what is required to interface a nearby beacon with that app.

Reply Children
  • Hi,

    I understand. In short: since a beacon is broadcasting its data(non connectable), you need your receiver to scan for incoming advertisements, which is where you will find your RSSI value, among other things(however, you need to calibrate it at a reference point, to approximate the distance between the devices). This can be set up with the beacon example I referenced in my initial reply.

    With the example running on the beacon, all that remains is setting up your android application to scan for the broadcasted advertisement packages using Android's Bluetooth API.

    Best regards,
    Karl

Related