<?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 ACM Example Single Write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23808/usb-cdc-acm-example-single-write</link><description>Hello, 
 we are using the USB CDC ACM Example to set up a USB connection between the computer and the nRF-Chip.
By pressing Press Button 1 a bunch of test data will be sent to the terminal program (after a short delay). 
 But how is it possible to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Apr 2018 07:20:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23808/usb-cdc-acm-example-single-write" /><item><title>RE: USB CDC ACM Example Single Write</title><link>https://devzone.nordicsemi.com/thread/128901?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 07:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26fa85f5-4faf-46a4-9af0-c7dcd5de5ab1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi, please post a new thread where you described your issue in detail. Please also include which SDK version you are using. If you are not using latest SDK, please see if you can get it working using SDK 15.0.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM Example Single Write</title><link>https://devzone.nordicsemi.com/thread/128845?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 14:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:135d52d3-4ce7-4f9d-87b7-3d484941f284</guid><dc:creator>Deepa Gopinath</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I too face the same issue.&lt;/p&gt;
&lt;p&gt;In our program calling app_usbd_cdc_acm_write() a single time does not directly send a message to the terminal program (Teraterm). &lt;br /&gt;Even Teraterm is not getting connected to USB Port.Even though an APP_USBD_CDC_ACM_USER_EVT_TX_DONE is generated and the LED4 is changing its status. &lt;br /&gt;After calling app_usbd_cdc_acm_write() the fourth time all four messages (the current one and the three from before) are visible on the computer.&lt;/p&gt;
&lt;p&gt;I have observed this behaviour when Im in debug mode. But When I do free run , messages are not visible on the computer after 4th message.&lt;br /&gt;In case of free run messages are visible on the computer after 20th message.&lt;/p&gt;
&lt;p&gt;Can you please help to resolve this issue?&lt;/p&gt;
&lt;p&gt;Thanks in Advance&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Deepa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM Example Single Write</title><link>https://devzone.nordicsemi.com/thread/93659?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 12:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cdcdca1-2530-4934-a1ba-441b88b232e2</guid><dc:creator>Fabian</dc:creator><description>&lt;p&gt;Thanks again, I will test it on monday!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM Example Single Write</title><link>https://devzone.nordicsemi.com/thread/93660?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 12:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be0f4b03-f238-430a-ae5a-be08ff5f5e37</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please check if &lt;a href="https://devzone.nordicsemi.com/question/108281/is-there-a-windows-driver-for-the-nrf52840-usb-cdc-acm/?comment=108714#comment-108714"&gt;this suggestion&lt;/a&gt; solves your problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM Example Single Write</title><link>https://devzone.nordicsemi.com/thread/93658?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 16:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff16274d-d7d4-4ece-943d-7491318cb95f</guid><dc:creator>Fabian</dc:creator><description>&lt;p&gt;Hi Jørgen,&lt;/p&gt;
&lt;p&gt;thanks for your answer.&lt;/p&gt;
&lt;p&gt;In our program calling app_usbd_cdc_acm_write() a single time does not directly send a message to the terminal program (putty). Even tho an APP_USBD_CDC_ACM_USER_EVT_TX_DONE is generated and the LED4 is changing its status. After calling app_usbd_cdc_acm_write() the fourth time all four messages (the current one and the three from before) are visible on the computer.&lt;/p&gt;
&lt;p&gt;Are we missing something?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Fabian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM Example Single Write</title><link>https://devzone.nordicsemi.com/thread/93657?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 12:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9054b3dd-1804-4d81-bd36-31aad02521bd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Fabian,&lt;/p&gt;
&lt;p&gt;In the USB CDC ACM example, the state of the buttons are checked inside an endless while-loop inside main function. If the button is pressed, a write will be performed. If holding down the button, the loop will cause multiple writes.&lt;/p&gt;
&lt;p&gt;If you want to write a single data array, you can call &lt;code&gt;app_usbd_cdc_acm_write()&lt;/code&gt; anywhere in your code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static uint8_t m_tx_buffer[NRF_DRV_USBD_EPSIZE * 16] = {&amp;#39;P&amp;#39;,&amp;#39;u&amp;#39;,&amp;#39;t&amp;#39;,&amp;#39; &amp;#39;,&amp;#39;d&amp;#39;,&amp;#39;a&amp;#39;,&amp;#39;t&amp;#39;,&amp;#39;a&amp;#39;,&amp;#39; &amp;#39;,&amp;#39;h&amp;#39;,&amp;#39;e&amp;#39;,&amp;#39;r&amp;#39;,&amp;#39;e&amp;#39;,&amp;#39;\r&amp;#39;,&amp;#39;\n&amp;#39;,&amp;#39;\0&amp;#39;};
app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, sizeof(m_tx_buffer));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>