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

2 UART with BLE example on nRF52840.

Sir, 

I have seen example pgm for communication between UART and BLE, and another pgm which communicates between 2 UARTs.  But for my project I need 2 UARTs and the BLE together.

Datas I want to receive from UART0, and push the datas (after some coding) to the UART1 and the BLE. 

Is it possible? Please help to do this!

Parents
  • Hi

    Are you getting any errors when the SDK15.2 is not advertising? Please specify. 

    You can't merge an SDK15.2 project with an SDK15.0 as there will be compilation errors, so you will have to use the 15.2 version for multiple UARTE projects. If you have made any changes to the original ble_app_uart example in SDK15.2 that might cause the errors, I suggest you start with a fresh example.

    I see that you will likely have to change quite a bit in the ble_app_uart example to make it work with the serial_uarte example seeing as uarte and uart is not the same exact thing. Again I would urge you to start out with the serial_uartes example, and incorporate BLE from the ble_app_uart example, as I think this would be the easiest way to accomplish what you want.

    I can't do the work of merging these files for you, as this is your project, but I can give you some pointers and advice. Start with merging the sdk_config.h files to enable BLE in the example, and add the necessary header, component and library files. Then you have to implement these functionalities into your main.c file. Keep in mind that this is not going to be an easy task.

    Best regards,

    Simon

  • Sir

    Which program I need to edit?

    I think ble_uart is needed to edit. Did I need to use the serial_uarte program. Or I want to initialise new uart in the ble_uart prgrm?

Reply Children
No Data
Related