<?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>Does nRF5 SDK includes UAC(USB Audio Class) example demo?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67885/does-nrf5-sdk-includes-uac-usb-audio-class-example-demo</link><description>Hi engineers, 
 I want to achieve a demand that receive audio/HID data from the PC side through USB interface and transmit data through BLE to other devices. 
 So has the nRF SDK already included the example about UAC? Thanks! 
 Best Regards, 
 Sean</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2020 09:53:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67885/does-nrf5-sdk-includes-uac-usb-audio-class-example-demo" /><item><title>RE: Does nRF5 SDK includes UAC(USB Audio Class) example demo?</title><link>https://devzone.nordicsemi.com/thread/278393?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 09:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11fa3372-122f-499f-a636-9d358391a4db</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you run the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_att_mtu.html"&gt;throughput example&lt;/a&gt; you can likely find that it will transfer over &amp;gt;1000kbps, this is high throughput that should be able to support audio, however for an audio solution you will need also to have control of the latency and also control the buffers (for instance you do not want to transfer audio data that is old). &amp;quot;Unfortunately&amp;quot; in BLE all data transfer is reliable, so you can&amp;#39;t change data that have been buffered, so this can increase the latency by very much once you start to experience packet loss.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nRF5 SDK includes UAC(USB Audio Class) example demo?</title><link>https://devzone.nordicsemi.com/thread/278363?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 07:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4832add-f04c-479f-ad01-7b2a47978a19</guid><dc:creator>SeanOY</dc:creator><description>&lt;p&gt;So it actually cannot transmit such large data&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62d.svg" title="Sob"&gt;&amp;#x1f62d;&lt;/span&gt;.&amp;nbsp;May I ask what&amp;#39;s the actual max data rate by&amp;nbsp;measuring?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nRF5 SDK includes UAC(USB Audio Class) example demo?</title><link>https://devzone.nordicsemi.com/thread/278225?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 10:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f8fb05-fb1f-4840-b57b-22eee5e54b82</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;2Mbps is the on-air data rate during transmission. It does not take into account startup and switching time of the radio. It does not take into overhead, bi-directional data and re-transmissions. It does not take into account that communication is synchronized at specific connection intervals. So unfortunately the actual throughput in a real scenario is lower, you cannot expect sustained 512kbps. The latency will depend on the connection interval and re-transmissions that may occur due to interference. It can be as high as several tens of ms (e.g. 100ms) under some situations, it will likely vary, so you would need to buffer quite a lot of data.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nRF5 SDK includes UAC(USB Audio Class) example demo?</title><link>https://devzone.nordicsemi.com/thread/278188?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 07:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd7178f-0cf9-4d82-b28f-a76917b795c4</guid><dc:creator>SeanOY</dc:creator><description>[quote userid="95130" url="~/f/nordic-q-a/67885/does-nrf5-sdk-includes-uac-usb-audio-class-example-demo"]Thanks[/quote]
&lt;p&gt;I see the max theoretical value of nRF52833 bandwidth in the feature list&amp;nbsp;is 2Mbps. So if the audio parameter is like this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Bit depth: 16bit&lt;/p&gt;
&lt;p&gt;- Sample rate: 32kHz&lt;/p&gt;
&lt;p&gt;- Audio channel: mono(1 channel)&lt;/p&gt;
&lt;p&gt;- Unidirectional transmission&lt;/p&gt;
&lt;p&gt;The least theoretical value I need is 16*32k*1 = 512k &amp;lt; 2M, but how to calculate the latency?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nRF5 SDK includes UAC(USB Audio Class) example demo?</title><link>https://devzone.nordicsemi.com/thread/278055?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 12:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d53188f-0be6-4a3b-a0dd-e3e29f6a1e76</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You would need to combine the USB Audio class example with an BLE example, for instance modify:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/usbd_ble_uart_example.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/usbd_ble_uart_example.html&lt;br /&gt;&lt;/a&gt;to use this instead&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_usb.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_usb.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, make sure you understand that with the current BLE spec the audio quality will be low and the delay can be long. So you can&amp;#39;t expect real-time audio streaming with high quality audio with low latency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>