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

nRF52832 uart virtual com port

Hello.

EDIT: When I connect to nRF52832, Windows are not creating bluetooth serial com port. And Bluetoth Services are not getting.

How Can I do this??

Thanks.

  • Hello Gökhan,

    I'm afraid it will be little bit complicated, because what you see on nRF5x DK COM port (part of mbed/SEGGER USB driver) is exactly the same as you see (over FTDI "TTL serial to USD" cable) on nRF5x UART PINs. The SEGGER J-Link MCU on the dev kit actually listens to the same PINs (on PCA10040 it is P0.05-08) and provides equivalent service as FTDI cable.

    If you want to use one UART interface to transport data from PC (or other host) to nRF52 DK and another UART to transport it independently out (and connect it by e.g. FTDI cable to another host) then you need to write this secondary UART "instance" inside your application and assign different PINs to it. And because nRF52832 has only 1 HW UARTE peripheral (see more details here) then you will most probably need to use some SW implementation with bit-banged GPIO lines. This can work until you will have only these two UARTs in the project btu you can experience problems if you would use it with BLE stack and ongoing connection...

    Cheers Jan

  • Hmm all right. So, If I don't use USB cable on DK at COM 3, Can I create a virtual com port through by bluetooth? And, Can I send any data from virtual com port to ft232rl? And opposite.

  • Hm, that's basically what Nordic's BLE UART example (Nordic UART Service = NUS) does, see this in nRF5 SDK.

  • Yes, I tried this application. But I don't want to use Android application. I want to define a virtual com port e.g. COM 108. Also,My ft232rl which is connected board is COM4. I will send a message (e.g. Hello) through by COM4. I want to see this message (Hello) on COM 108. And opposite. How Can I do this?

  • So you want to talk over two UARTs to single board or you want to have one UART + BLE board talking over BLE to another UART + BLE board? The first one is explained in my previous answer (= open some example and code second UART interface to do the job), latter can be achieved by two Nordic dev kits and two NUS examples (Peripheral is referenced above, Central is here).

Related