<?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>USB CDC Read, cancelling when timeout occurs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80744/usb-cdc-read-cancelling-when-timeout-occurs</link><description>How do I cancel ucb_cdc_acm_read? 
 What I want to do is if a timeout occurs, and APP_USBD_CDC_ACM_USER_EVT_RX_DONE has not been triggered, then I should be able to cancel app_usbd_cdc_acm_read, and reset it to a read size of 1 in order to make sure that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Dec 2021 09:40:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80744/usb-cdc-read-cancelling-when-timeout-occurs" /><item><title>RE: USB CDC Read, cancelling when timeout occurs</title><link>https://devzone.nordicsemi.com/thread/343092?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 09:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6191bb23-a5a8-40bb-a7af-a53d0a4bc830</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Miguel,&lt;/p&gt;
&lt;p&gt;Sorry for the delay since it&amp;#39;s the Holiday month. We have conveyed this to the experts and will get back to you soon regarding this issue &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC Read, cancelling when timeout occurs</title><link>https://devzone.nordicsemi.com/thread/338048?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 07:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d08022-e472-4d9d-b7d5-4fa9a9981263</guid><dc:creator>mugsimar</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Our usecase is, usb seems to be using DMA,&amp;nbsp;I&amp;#39;m sending fixed number(255) of bytes from PC to NRF. What I want is, incase the the host pc failed to send 255 bytes, let&amp;#39;s say only manage to send 250, a timeout will trigger and will reset the usb_cdc_read. howeverer, calling another usb_cdc_read doesn&amp;#39;t seem to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Miguel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC Read, cancelling when timeout occurs</title><link>https://devzone.nordicsemi.com/thread/336775?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 07:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b49ef9b6-3903-49ea-8eed-861185abe7ce</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you elaborate on your need? Maybe present to us your use case? We already have non-blocking API in CDC ACM (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__app__usbd__cdc__acm.html#ga6fc12b6b9b9633a56bf108d78386dd03"&gt;app_usbd_cdc_acm_read_any&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__app__usbd__cdc__acm.html#gaea7da1ff6ea5f62ef496bd12e8b03bff"&gt;app_usbd_cdc_acm_rx_size&lt;/a&gt;&amp;nbsp;functions) that should do what you need. You wouldn&amp;#39;t need to use the blocking API then cancel it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC Read, cancelling when timeout occurs</title><link>https://devzone.nordicsemi.com/thread/335094?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 12:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72561c23-e721-444a-9b52-5866c426b2c8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I am checking with the internal and will get back soon if I have anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>