<?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>Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123523/cannot-tell-when-a-host-pc-has-connected-to-the-nrf52832dk</link><description>Hello. I&amp;#39;m using the nRF52832DK in a test fixture application. 
 
 I need the embedded system to know when either: 
 - a PC has connected and disconnected to the main USB connector 
 - a PC host has opened and closed the serial Port of the nRF52832DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Aug 2025 12:06:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123523/cannot-tell-when-a-host-pc-has-connected-to-the-nrf52832dk" /><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/546040?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 12:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a0cba7e-1d5c-4da5-8607-c4b665c02aed</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Thanks for the feedback Ray!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/545980?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2025 23:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a7b3cc-4adf-4ad2-b8e7-793ba52064e0</guid><dc:creator>Raymond</dc:creator><description>&lt;p&gt;Hey &lt;a href="https://devzone.nordicsemi.com/members/jonathanll"&gt;JONATHAN LL&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for confirming these things.&amp;nbsp; We hadn&amp;#39;t had a strong enough pull up override the interface MCU&amp;#39;s CTS pulldown.&amp;nbsp; &amp;nbsp;We&amp;#39;re now using a stronger pullup and seeing the expected behavior.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, just as feedback regarding this product,&amp;nbsp; it&amp;#39;s a real pain for us that the CTS line doesn&amp;#39;t return to high-z to indicate when the USB-serial connection is closed.&amp;nbsp; Without that behavior, there&amp;#39;s no way for the application MCU to detect when it has a USB-serial connection established.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Perhaps this could be an improvement in coming versions of the interface MCU firmware!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;-Ray&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/545520?ContentTypeID=1</link><pubDate>Wed, 13 Aug 2025 12:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df912d5d-9161-48ec-8517-249a111dbdc5</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="raykamp"] The CTS signal is then &amp;quot;driven&amp;quot;&amp;nbsp; (Assuming this means driven low)&amp;nbsp;[/quote]
&lt;p&gt;Correct, it uses an internal pullup.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="raykamp"]We aren&amp;#39;t seeing that behavior.&amp;nbsp;[/quote]
&lt;p&gt;I have not tested this myself atm but I will look in to this.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="raykamp"].&amp;nbsp; I&amp;#39;ll reach out to our FAE and sales rep in case that helps you/us get more support on this.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Yes, always good to push form more than one angle if you need&amp;nbsp;to get things done quick.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What SDK are you using, NCS verison ?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/545433?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2025 19:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af0e6653-419d-4c95-a20d-de9150e50780</guid><dc:creator>Raymond</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/jonathanll"&gt;JONATHAN LL&lt;/a&gt;&amp;nbsp;, I&amp;#39;m working with &lt;a href="https://devzone.nordicsemi.com/members/robhel"&gt;RobHel&lt;/a&gt;&amp;nbsp;on this.&amp;nbsp; Per the Nordic documentation it sounds like this is the expected behavior:&lt;/p&gt;
&lt;p&gt;- CTS is left high-Z by the interface MCU when no virtual-serial terminal is connected via a computer&lt;/p&gt;
&lt;p&gt;- The computer software must connect and send a Data Terminal Ready (DTR) signal&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- The CTS signal is then &amp;quot;driven&amp;quot;&amp;nbsp; (Assuming this means driven low)&amp;nbsp; &amp;quot;when the first data is sent or received&amp;quot; (TBD if this means a DTR signal from the computer or actual UART data coming through on the&amp;nbsp;interface MCU&amp;#39;s TX.&lt;/p&gt;
&lt;p&gt;- Hardware flow control is continued to be used until a power-on reset or &amp;quot;until a new DTR signal is received and the detection is redone&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We aren&amp;#39;t seeing that behavior.&amp;nbsp; &amp;nbsp;We&amp;#39;re unable to make hardware modifications at this point unfortunately.&amp;nbsp; We&amp;#39;re using the DK within high-volume manufacturing equipment for testing a Nordic-based product.&amp;nbsp; I&amp;#39;ll reach out to our FAE and sales rep in case that helps you/us get more support on this.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;-Ray&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1755024718466v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/vir_com_port.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/vir_com_port.html&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;The UART signals are routed directly to the interface MCU. The UART pins connected to the interface MCU are tri-stated when no terminal is connected to the virtual serial port on the computer. The terminal software must send a&amp;nbsp;&lt;/span&gt;&lt;a title="A control signal in RS-232 serial communications transmitted from data terminal equipment, such as a computer, to data communications equipment." href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/dita_common/glossary/glossary.html#dtr" data-bundleid="ug_nrf52832_dk" data-navpath="dita_common/glossary/glossary.html"&gt;&lt;dfn class="term abbreviated-form"&gt;Data Terminal Ready (DTR)&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;signal to configure the UART interface MCU pins.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p class="p"&gt;Automatic HWFC detection is done by driving&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="In flow control, the receiving end is ready and telling the far end to start sending." href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/dita_common/glossary/glossary.html#cts" data-bundleid="ug_nrf52832_dk" data-navpath="dita_common/glossary/glossary.html"&gt;&lt;dfn class="term abbreviated-form"&gt;Clear to Send (CTS)&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;from the interface MCU and evaluating the state of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="In flow control, the transmitting end is ready and requesting the far end for a permission to transfer data." href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/dita_common/glossary/glossary.html#rts" data-bundleid="ug_nrf52832_dk" data-navpath="dita_common/glossary/glossary.html"&gt;&lt;dfn class="term abbreviated-form"&gt;Request to Send (RTS)&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;when the first data is sent or received. If the state of RTS is high, it is assumed HWFC is not in use. If HWFC is not detected, pins&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span id="if_dynamic_hwfc__ph_nRF53_CTS_pins" class="ph"&gt;&lt;span class="keyword pinname"&gt;P0.10&lt;/span&gt;/&lt;span class="keyword pinname"&gt;P0.21&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword pinname"&gt;P0.07&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(CTS) and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword pinname"&gt;P0.05&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(RTS) are free for the nRF application to use.&lt;/p&gt;
&lt;p class="p"&gt;After a power-on reset of the interface MCU, all UART lines are tri-stated when no terminal is connected to the virtual serial port. If HWFC has been used and detected,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword pinname"&gt;P0.07&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(CTS) is driven by the interface MCU until a power-on reset has been performed or until a new DTR signal is received and the detection is redone.&lt;/p&gt;
&lt;div class="note"&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/545430?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2025 18:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edbd5a94-c183-43df-8734-5ed19a8af927</guid><dc:creator>Raymond</dc:creator><description>&lt;p&gt;Here are the downloads for the interface FW:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52-DK/Download?lang=en#infotabs"&gt;www.nordicsemi.com/.../Download&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/545417?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2025 15:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70896464-dd4a-441b-9bef-8224f7998bc7</guid><dc:creator>RobHel</dc:creator><description>&lt;p&gt;Hey &lt;a href="https://devzone.nordicsemi.com/members/jonathanll"&gt;JONATHAN LL&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your understanding of what I&amp;#39;m trying to do is correct. I&amp;#39;m using whatever SDK comes with Zephyr 4.1.&lt;/p&gt;
&lt;p&gt;I agree this would be simpler with the nRF52840, but we&amp;#39;ve built this test fixture with the 52832, and I&amp;#39;m surprised this is not possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The DK reference manual mentions that the mbed OB interface does not support HWFC through the virtual COM port. Do you know where I can find the .bin files needed to replace the interface firmware possibly with Segger J-Link OB?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rob&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/545376?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2025 12:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47029feb-a7b5-47c1-8caa-5fcc82fe159f</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Just to make sure that I understand you task correctly,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You want to make the nRF52832 register if there has been a connection or disconnection of the USB on the DK.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What SDK are you using?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There is no easy way for the nRF52832 to know if something is connected to the USB as it itself does not have it, but it uses the onboard interface MCU to communicate converting&amp;nbsp;UART to USB.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Using the nRF52840 or 833 that has USB built inn you could use USB CDC to detect this i belive. Might be more in line with what you want to do.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RTS should be&amp;nbsp;asserted or deasserted depending on the state of the connection to see if there is any action so this should indicate that something is ready to listen, but it does not guarantee that the comport is opened\closed i belive.&amp;nbsp;&lt;br /&gt;CTS could maybe be used to check if USB is connected or not, but an alterative is to connect a GPIO to the VBUS here so you will see a signal here, but you will need to step down the voltage, can use a voltage divider to test.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You will need to implement something in SW here to get it working as I dont think there are any examples available here.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot tell when a host PC has connected to the nRF52832DK</title><link>https://devzone.nordicsemi.com/thread/544837?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 17:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99203c32-aff4-4dd7-8807-c2a88d7b4c0d</guid><dc:creator>RobHel</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://files.slack.com/files-pri/T9BHDNN4R-F0976QDA4FL/image.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4403.image-_2800_7_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>