<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Read serial data sent by a PC through USB to NRF9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66167/read-serial-data-sent-by-a-pc-through-usb-to-nrf9160-dk</link><description>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&amp;#39;ve been looking for a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Sep 2020 11:50:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66167/read-serial-data-sent-by-a-pc-through-usb-to-nrf9160-dk" /><item><title>RE: Read serial data sent by a PC through USB to NRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/270825?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 11:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37b560c6-232c-4ef9-80cd-b1457fe961a9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I don&amp;#39;t have to much knowledge about Virtual COM ports, but I will try my best to answer your question.&lt;/p&gt;
&lt;p&gt;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--&amp;gt;Ports you can see what COM ports your computer uses for these.&lt;/p&gt;
&lt;p&gt;The COM port used on the computer is not consistent and the PC will choose whatever is available.&amp;nbsp;In &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/6220/relating-com-port-name-and-segger-id"&gt;this ticket&lt;/a&gt;, a customer has uploaded a python script that gets the COM port based on the Segger ID. In &lt;a href="https://superuser.com/questions/851192/change-com-port-number-programmatically"&gt;this link&lt;/a&gt; it is discussed how to change this COM port programatically, however,&amp;nbsp;it does not seem like this is recommended.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>