Can you help me with any examples of bidirectional communication using BLE?

Hi there.

Right now, I'm facing the issue that I want to create a type of CLI (Command Line Interface) that helps me communicate with the nRF52833 from my Mobile.

I mean, I want to communicate from my Mobile connected via BLE to the nRF52833 and vice versa. The thing is, I want that my Mobile has the possibility to send commands to the nRF52833 and this also has the possibility to send any kind of information to the Mobile (I mean, bidirectional communication).

Then, I don't know how to start or what example I can take as a base from the SDK to start with this solution, and I will appreciate any help, please.

Thanks in advance,

Regards,

Fer Mercado.

Parents Reply Children
  • Howdy Johnny, thanks so much for the answer.
    Actually, that example is my base because I already could run it and I have seen how it works, however, I'm looking for an example where I can communicate bidirectionally, like I said before, but on the air, without any wire.
    Thanks, I will see the courses.
    Thanks in advance,
    Best regards,
    Fernando Mercado.
  • Hi Fernando, 

    The peripheral UART that Johnny suggested actually can do what you wants. It allow you to use the phone to send data wirelessly (BLE) to the nRF52 that plugged to a PC and show the data on the UART interface. You can also send data from the PC via the NRF52 wirelessly to the phone by typing on the UART interface on PC. 

    If you don't want UART and simply want to control an LED on the NRF52 for example, please take a look at the peripheral_lbs sample where you can turn off and on LED from the phone and press a button on the NRF52 to send the button press signal back to the phone. 

    It's strongly suggested to go through the Bluetooth academy that Johnny suggested. 

  • Hi Hung, thanks so much.

    Actually, I checked the example again, and you are right, I just need to adapt the project, but at first, this is what I need.

    Regards, Hung.
    Fernando Mercado.

Related