<?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>NCS 2.3.0 USB CDC ACM / UART: Is there a way to get a callback on DTR changes?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98117/ncs-2-3-0-usb-cdc-acm-uart-is-there-a-way-to-get-a-callback-on-dtr-changes</link><description>The samples/subsys/usb/cdc_acm sample polls for DTR to be set then sets DCD and DSR before data can be received. On macOS sending data to the CDC ACM tty will block until this sequence is completed. 
 In an application where the device may be plugged</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Mar 2023 13:40:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98117/ncs-2-3-0-usb-cdc-acm-uart-is-there-a-way-to-get-a-callback-on-dtr-changes" /><item><title>RE: NCS 2.3.0 USB CDC ACM / UART: Is there a way to get a callback on DTR changes?</title><link>https://devzone.nordicsemi.com/thread/417700?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 13:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b22efcc-36bc-45c6-a14d-5b1d92a28b71</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can only find (as you) that you need to manually call for intance the status by&amp;nbsp;&lt;span&gt;uart_line_ctrl_get&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;UART_LINE_CTRL_DTR&lt;/span&gt;&lt;span&gt;, &amp;amp;&lt;/span&gt;&lt;span&gt;dtr&lt;/span&gt;&lt;span&gt;). &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can see that there is a callbak in cdc_acm.c where the&amp;nbsp;&lt;/span&gt;cdc_acm_class_handle_req() handle the&amp;nbsp;SET_CONTROL_LINE_STATE, but unfortunately I can&amp;#39;t find any way to forward that other than to modify the cdc_acm class.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>