<?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>DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39784/dtm-script-python-com-ports</link><description>Hello, 
 
 i have a Problem with the COM ports of Windows starting the example.py from the nAN34_v1.01 application. I have configured the COM Ports in the example.py in the Editor. 
 I always got the same message when starting the script : 
 Transmitter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jun 2019 17:37:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39784/dtm-script-python-com-ports" /><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/194946?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 17:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3384b63-b2d1-4fdc-811a-3825fc8d8f3e</guid><dc:creator>amattmiller</dc:creator><description>&lt;p&gt;Dominik,&lt;/p&gt;
&lt;p&gt;Thank for responding!&lt;/p&gt;
&lt;p&gt;I think my issue either came down to the driver installation or somehow I introduced a bug into Nordic&amp;#39;s python scripts.&lt;/p&gt;
&lt;p&gt;I was using this cable:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.digikey.com/product-detail/en/ftdi/C232HD-DDHSP-0/768-1011-ND/2767783&amp;amp;?gclid=Cj0KCQjwjMfoBRDDARIsAMUjNZpwjqR2HFZr8jRJ4Sztp1nECAqOAa1fJlhoYMaU7ThPAHf7jlIk2VkaAjnfEALw_wcB"&gt;https://www.digikey.com/product-detail/en/ftdi/C232HD-DDHSP-0/768-1011-ND/2767783&amp;amp;?gclid=Cj0KCQjwjMfoBRDDARIsAMUjNZpwjqR2HFZr8jRJ4Sztp1nECAqOAa1fJlhoYMaU7ThPAHf7jlIk2VkaAjnfEALw_wcB&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are multiple drivers that you can choose from when installing the device. In the end what worked for me was to install the VCP (virtual com port) driver, In there you have two choices, bus or port and I chose port.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.ftdichip.com/Drivers/VCP.htm"&gt;https://www.ftdichip.com/Drivers/VCP.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am using a Windows10 surface pro, python 2.7, and pyserial 3.4.&lt;/p&gt;
&lt;p&gt;--Aaron&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/194507?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 06:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64759b4d-a228-455f-ba8b-4c4781c9b47f</guid><dc:creator>Dominik</dc:creator><description>&lt;p&gt;I think the best way to try it out first, is to check it out with two nRF 52 Development Kits. That worked fine for me. Than i switched to my HW. What i now do is to use Softwaretool in nRF Go Studio, i think its the same Plattform but you have a nice graphical interface. I hope you can get forward with this..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/194462?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 19:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5bf0435-a5c0-4269-b7ae-3b7674145a7c</guid><dc:creator>amattmiller</dc:creator><description>&lt;p&gt;Any luck Spirit? I&amp;#39;m running into the same thing with same parameters as you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/164227?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 11:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8679867-16e6-4dbf-9d30-6176c391689b</guid><dc:creator>Spirit</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/dominik_5f00_schmid"&gt;Dominik&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hi Dominik!&lt;br /&gt;I have the same problem.&lt;br /&gt;What exactly did you do to solve it?&lt;br /&gt;All the baudrates - in the Nordics python script, in the SDK file and also in the FTDI drivers - are set to 19200.&lt;br /&gt;So why it is not working as it should?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using a custom board + a&amp;nbsp;FT230X USB adapter.&lt;br /&gt;(&lt;span&gt;Python Version 2.7.15 and Pyserial 3.4)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;@J&amp;oslash;rgen Holmefjord&lt;br /&gt;Yes, I tried also to run a comand prompt&amp;nbsp;&lt;span&gt;as administrator, but without success.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/154459?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 11:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7116621b-1282-44de-ad47-34e2ab72fcd0</guid><dc:creator>Dominik</dc:creator><description>&lt;p&gt;I have solved the Problem. Problem was the wrong Baudrate in the SDK file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/154377?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 06:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a2097cb-3f3b-4d67-ab17-7d483d0c7344</guid><dc:creator>Dominik</dc:creator><description>&lt;p&gt;Okay I have tested it with two nRF 52 DK boards over USB ( JLink CDC UART Port) yesterday. It seems to be working fine. But I want to connect my DUT with a Serial to USB Adapter.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/154321?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 15:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a13311f8-6079-4a41-a9b7-e1d647a5350d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which USB to serial converter are you using? Have you tested with a nRF5x DK? I have only tested the example code with a DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/154318?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 14:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fa26490-54ed-4c60-9b0e-659e44cd61d0</guid><dc:creator>Dominik</dc:creator><description>&lt;p&gt;Yes I tried it. I have two different machines. Maybe its the usb to Serial converter?&lt;img alt=" " height="343" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/dtm_5F00_nordic.PNG" width="581" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/154316?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 14:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d8f032b-730d-4f3b-8819-3cf8bb40e11b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, sounds like that should work. Did you try to run as administrator?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/154314?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 14:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d68354-1fed-4570-93be-ec4a60ce9aec</guid><dc:creator>Dominik</dc:creator><description>&lt;p&gt;I have installed the Python Version 2.7.15 and Pyserial 3.4.&lt;/p&gt;
&lt;p&gt;What do you think ? Should it work correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM Script Python COM Ports</title><link>https://devzone.nordicsemi.com/thread/154294?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 13:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261dadf2-6116-4239-a39c-0ca36eee4e0b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like you do not have access to the COM port. It is not used by any other aplications?&lt;/p&gt;
&lt;p&gt;Which Python and PySerial versions are you using? From the README.txt file:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;1. Requirements&lt;br /&gt;---------------&lt;br /&gt;The DTM library is written in Python. It is tested with Python 2.7.2 with pySerial 2.6. It should be working with any Python 2 version from 2.7.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Python may be downloaded from &lt;a href="http://www.python.org/getit/"&gt;http://www.python.org/getit/&lt;/a&gt;&lt;br /&gt;pySerial may be downloaded from &lt;a href="https://pypi.python.org/pypi/pyserial"&gt;https://pypi.python.org/pypi/pyserial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have you tried running the command line as administrator and then running the Python example from this?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>