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

Running ble_app_uart on nrf52832 DK using the nrf52840 Bluetooth Dongle instead of a USB cable

I have an nrf52832 DK, which when on, constantly obtains and sends accelerometer data from an IMU to whatever BT device it is connected to. I also have an nrf52840 Bluetooth dongle.

I want to run the ble_app_uart app on my PC and get the data from the nrf52832 DK (using the bluetooth dongle to connect PC to DK instead of a USB connection)

I have researched extensively and have found examples on :-

  1. How to connect the nrf52832 DK to my PC using a USB cable, and then run ble_app_uart. 
  2. How to configure only the BT dongle (code blinky example to turn dongles light on or off)

However, none of these two examples are useful to me because

  1. One of my restrictions is that I cant use a USB cable to program my nrf52832 DK, so all examples that use a USB cable are automatically voided.
  2.  I need to use the BT Dongle as just a means to connect to my nrf52832 DK, thus all examples that use the dongle to program on it are also voided.
Parents Reply
  • Thanks a lot for letting me that, after two weeks I am finally able to discover the services! 

    The last thing that remains is continuously obtaining the accelerometer values from the nRF52832 and printing them. Right now, I think I am able to discover both the RX and the TX services, however, when I press "Enter" to enable notifications on UART TX Characteristics, the console just says that it received an unhandled event. You can see the problem in the attached screenshot. 

    I suspect this might be because of the line  containing ble_nus_c_string_send as I mentioned before.

    (void) ble_nus_c_string_send("0x300400844203FD", sizeof("0x300400844203FD"));

    Thank you.

Children
Related