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

How did data send and receive in BLE Blinky Example?

I have tried to understand how data was send from two BLE device. I have had 2 PCA10056 board and I have loaded ble_app_blinky example and ble_app_blinky_c example for each. As we know one board is slave and one is master. If I press Button1 on one board, LED3 on other board will change state. I know that the "transmitter board" was send one packet to the "receiver board".

  1. Which types of packets ( advertising packet or data packet) was use in this example?
  2. Which array does contain the packet which is received in the "receiver board"? I want to observer this array in Watch Window of Keil C or print it to the teminal.
Parents
  • Hi KaiserY.

    Sorry for the late response.
    I don't know which SDK you are working with, so I just assumed SDK v14.2.0.
    The blinky example takes use of the LED Button Service to toggle the LED's and receive button status from the nRF5 DK.
    If you connect to your board using your smartphone and nRF Connect, you can enable notifications and see the value of the Button characteristic changing between 0x00 and 0x01 when you press it.
    You can also write to the LED Characteristic to toggle the LED (0x00 to turn it off and 0x01 to turn it on).
    If you enable logging and RTT backend the example should, by default, print log messages like "Received LED ON/OFF".

    Best regards,
    Joakim.

Reply
  • Hi KaiserY.

    Sorry for the late response.
    I don't know which SDK you are working with, so I just assumed SDK v14.2.0.
    The blinky example takes use of the LED Button Service to toggle the LED's and receive button status from the nRF5 DK.
    If you connect to your board using your smartphone and nRF Connect, you can enable notifications and see the value of the Button characteristic changing between 0x00 and 0x01 when you press it.
    You can also write to the LED Characteristic to toggle the LED (0x00 to turn it off and 0x01 to turn it on).
    If you enable logging and RTT backend the example should, by default, print log messages like "Received LED ON/OFF".

    Best regards,
    Joakim.

Children
No Data
Related