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

Read serial data sent by a PC through USB to NRF9160 DK

Hello everyone,

I have a Python script on my PC sending data through serial port COM5. I want to know if it would be possible to read the data sent from the PC on the nRF9160DK, which is connected in the COM5 port of my PC. 

I've been looking for a solution to my problem in this forum but I only found people who want to re-route the VCOM0 or VCOM2 to physical pins of the board.

Thank you! Slight smile

Aaron

  • I don't have to much knowledge about Virtual COM ports, but I will try my best to answer your question.

    The nRF9160 DK exposes three Virtual COM ports, one is connected to the nRF52840 and two is connected to the nRF9160. If you open the Device Manager-->Ports you can see what COM ports your computer uses for these.

    The COM port used on the computer is not consistent and the PC will choose whatever is available. In this ticket, a customer has uploaded a python script that gets the COM port based on the Segger ID. In this link it is discussed how to change this COM port programatically, however, it does not seem like this is recommended.

    Best regards,

    Simon

Related