<?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>PySerial write times out when communicating with USB CDC ACM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67501/pyserial-write-times-out-when-communicating-with-usb-cdc-acm</link><description>Hi, 
 
 I&amp;#39;m trying to integrate the USB CDC ACM example into a project that I&amp;#39;m currently running on an NRF52840 DK with SDK 16.0. My PC is running windows 10 and python 3.7 
 I want this project to be able to send and receive binary data to/from a PC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Oct 2020 00:26:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67501/pyserial-write-times-out-when-communicating-with-usb-cdc-acm" /><item><title>RE: PySerial write times out when communicating with USB CDC ACM</title><link>https://devzone.nordicsemi.com/thread/276516?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 00:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6adc4181-26bf-4ae5-acc7-2cd86254f684</guid><dc:creator>goldwake</dc:creator><description>&lt;p&gt;I found the problem. I was using one of our python libraries that was calling &lt;br /&gt;_serial.setRTS(False)&lt;br /&gt;_serial.setDTR(False)&lt;br /&gt;after initialising the pySerial object.&lt;/p&gt;
&lt;p&gt;This behaviour should have been in the script that actually needs this behaviour, not our serial library.&lt;br /&gt;&lt;br /&gt;Strange that it hasn&amp;#39;t caused issues in the past&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PySerial write times out when communicating with USB CDC ACM</title><link>https://devzone.nordicsemi.com/thread/276423?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 11:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdde0133-2057-4c30-845f-d81b947e7c05</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t know, but maybe try to look into adding some time.sleep() to give the serial port some time to process the data between opening, writing/reading and closing? At least that may give some indication to where the problem may be.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>