Data from another uC through UART to Dongle nrf52840 and peer BLE with DK to PORT COM

Hello, I need help to clarify an idea. What I want to do is get data from a Main board (Custom uC with sensors) via UART and connect it to the UART set pins (29 and 31) of a nrf52840 dongle. This in turn will send the information to a DK nrf52840 via bluetooth and the DK nrf52840 will be connected to the COM port of a laptop to view the data on a serial terminal. I want both (DK and dongle to connect automatically). I want to make this link since the main board and the dongle will be in a place of difficult access and through the ble link with the DK I will be able to observe the data in a safe place.

I have already tried the ble_app_uart examples in both cases (DK and dongle) and I have also managed to make the link between them by modifying the ble_app_hrs example. The problem is that when I try to combine both examples in the case of the dongle and load the files, it does not work as it should.

I would like if you could clarify my ideas, recommendations, another way to achieve my goal, etc.

Parents
  • Hello,

    I guess that if you had two DKs to test with, you could get them connected if you used ble_app_uart_central on the DK connected to your PC, and ble_app_uart on the remote device. I guess the issue is that you are struggling with the ble_app_uart example on the dongle, since there are no project files for this example on the Dongle.

    I suggest that you try to run the ble_app_uart example on the dongle, but remember to change the uart pins to match your pins, and change the preprocessor definition from BOARD_PCA10056 with BOARD_PCA10059. If it doesn't work, try to run it on the DK, so that you have a debugger attached, and monitor the RTT log on the DK.

    Best regards,

    Edvin

  • Hello, 


    Thanks for the response but I have achieved my goal of being able to communicate the data through the UART of the microcontroller with the dongle and receive the information with the DK through BLE and then to the COM port of my computer.

    For the DK I used the "nrf52-ble-app-uart-c-multilink" example and in the dongle I modified the "ble-app-uart" example for PCA10059. Then, I verified the correct operation of the dongle with the "nrf Connect" app on the mobile phone but I did not receive the information (which worked fine with the DK) but I saw a solution in this forum that consists of reinitializing the phone's bluetooth to eliminate the cache. I hope this helps someone in the future.

    Best regards, 


    user251210

Reply
  • Hello, 


    Thanks for the response but I have achieved my goal of being able to communicate the data through the UART of the microcontroller with the dongle and receive the information with the DK through BLE and then to the COM port of my computer.

    For the DK I used the "nrf52-ble-app-uart-c-multilink" example and in the dongle I modified the "ble-app-uart" example for PCA10059. Then, I verified the correct operation of the dongle with the "nrf Connect" app on the mobile phone but I did not receive the information (which worked fine with the DK) but I saw a solution in this forum that consists of reinitializing the phone's bluetooth to eliminate the cache. I hope this helps someone in the future.

    Best regards, 


    user251210

Children
No Data
Related