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

Example for transparent COM port (nrf51<->nrf51)

Dear All,

what example would be best starting point for a transparent COM port over the air connection with nrf51422?

We will require 9600baud and there will be custom electronics on both ends. BT implemenation would be preferred over propriatary air interface.

I have seen the Nordic BT Uart App with nrf51, but is it also possible to link two nrf51422 devices in order to get a transparent COM port connection? If so, are there any examples available?

Any hints welcome.

Best regards, Andreas

Parents
  • Hi. I believe you might be interested in the ble_app_uart_c example found on github. This project can be used in conjunction with the UART serial port emulation example ble_app_uart from SDK v8.0.0.

  • How familiar are you with BLE? I'm not sure if I quite understand your problem. The example in the SDK is a peripheral. The example on github is a central. The peripheral will advertise that it provides a NUS service. The central will scan for the ble_app_uart peripheral. When it discovers the peripheral it will connect to it. I'll admit I haven't tried the examples together but it is supposed work like this:

    External device 2 <- UART -> nRF51 peripheral <- BLE -> nRF51 central <- UART -> External device 2.
    

    After the two devices are connected they will behave the same from you perspective. It should work as a transparent COM port and communication should work both ways.

Reply
  • How familiar are you with BLE? I'm not sure if I quite understand your problem. The example in the SDK is a peripheral. The example on github is a central. The peripheral will advertise that it provides a NUS service. The central will scan for the ble_app_uart peripheral. When it discovers the peripheral it will connect to it. I'll admit I haven't tried the examples together but it is supposed work like this:

    External device 2 <- UART -> nRF51 peripheral <- BLE -> nRF51 central <- UART -> External device 2.
    

    After the two devices are connected they will behave the same from you perspective. It should work as a transparent COM port and communication should work both ways.

Children
No Data
Related