<?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>&amp;quot;usbd_ble_uart&amp;quot;, how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64993/usbd_ble_uart-how-can-i-steer-the-speed-of-usb-communication</link><description>HI. I have modified &amp;quot;usbd_ble_uart&amp;quot; a little bit and have changed the BLE service for transfering the received data from USB over BLE. The problen is now, the BLE service needs (of course) more time to transfer the date to the peer device than the USB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Sep 2020 08:11:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64993/usbd_ble_uart-how-can-i-steer-the-speed-of-usb-communication" /><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/267379?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 08:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e0ddf5-b8ca-47d7-b7fe-32fdefdb38f7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Mike&lt;/p&gt;
&lt;p&gt;Sounds good. In the mean time, have a great vacation &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;BR&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/267267?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 13:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f9b03d-7894-40b4-8d58-bce6aeb71c3b</guid><dc:creator>Michael-1965</dc:creator><description>&lt;p&gt;Hi Torbjorn.&lt;/p&gt;
&lt;p&gt;You have told me how to control it, but there are still some issues I don&amp;#39;t understand. First I have to investigate by myown. Because I&amp;#39;m on vacations until November 2020 we can close the ticket now. If I have any problems I will come back to you.&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;
&lt;p&gt;Regards Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/267117?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 06:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72df2570-5936-41b6-861c-3075ab003429</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Mike&lt;/p&gt;
&lt;p&gt;You found a way to get the event running again then?&lt;/p&gt;
&lt;p&gt;I will close the case then.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/266943?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 09:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a049dcf3-972d-489c-9fc3-f04df099cda4</guid><dc:creator>Michael-1965</dc:creator><description>&lt;p&gt;Hi Torbjorn.&lt;br /&gt;&lt;br /&gt;Thanks for your support. I think we can close the ticket for now. I will investigate and open a new ticket if necessary.&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/266805?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 15:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10fe9bd1-f4e3-4369-9960-9c47a3474688</guid><dc:creator>Michael-1965</dc:creator><description>&lt;p&gt;Hi Torbjorn&lt;/p&gt;
&lt;p&gt;I have called&amp;nbsp;&lt;br /&gt;size_t size = app_usbd_cdc_acm_rx_size(p_cdc_acm);&lt;br /&gt;The size was set to one.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/265961?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 11:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23b45c1e-042a-42d6-8e60-99f0ace10145</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Mike&lt;/p&gt;
&lt;p&gt;That&amp;#39;s a bit odd, resuming execution of&amp;nbsp;&lt;span&gt;app_usbd_event_queue_process() should be enough to get the events running again.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What if you try to call&amp;nbsp;app_usbd_cdc_acm_read(..), to see if there is any pending data in the buffer?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/265821?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 15:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c072c95-55a2-4785-b688-92ce25efd565</guid><dc:creator>Michael-1965</dc:creator><description>&lt;p&gt;Hi Torbjorn.&lt;br /&gt;&lt;br /&gt;Thanks, I have already done a try, it works better now. I will improve my implementation now.&lt;br /&gt;But I have to use the event&amp;nbsp;APP_USBD_CDC_ACM_USER_EVT_TX_DONE to bring the event&amp;nbsp;APP_USBD_CDC_ACM_USER_EVT_RX_DONE back to work.&lt;br /&gt;&lt;br /&gt;Is there another way to&amp;nbsp;re-enable&amp;nbsp;&lt;span&gt;APP_USBD_CDC_ACM_USER_EVT_RX_DONE?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Best regards and enjoy the weekend.&lt;br /&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "usbd_ble_uart", how can I steer the speed of USB communication?</title><link>https://devzone.nordicsemi.com/thread/265577?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 13:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79431acf-036c-4a11-8af2-638d7daa4022</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Mike&lt;/p&gt;
&lt;p&gt;The USB protocol has it&amp;#39;s own method for flow control where one side of the link can NAK packets if the internal buffers are full.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A simple way to make this happen from the application side is simply to stop calling the&amp;nbsp;app_usbd_event_queue_process() function from the while loop in main. Then you will stop reading out data from the USB driver, and eventually it will start NAK-ing any incoming packet from the USB host.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In other words you should stop calling this function once you get the RESOURCES error from the SoftDevice, and then start calling it again once you have successfully sent some data over the SoftDevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>