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 Reply Children
  • Martin, thanks a lot for your comment. App example is a good starting point, but my goal is to set up a transparent COM port connection in between two nrf51 devices. Example may help on one end, but there needs to be an instance with nrf51 that establishes connection, right? In my case, can nrf51 example be used on both ends to establish a connection?

  • 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.

  • Ok, thanks again, I was using nrf51 in a project before, but just reading ANT sensors. It is the first BLE projekt so far. Good to know that transparent com port is possible with nfr51. Will probably try to set things up with my two nrf51 DK before asking further questions... ;-)

Related