<?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>General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100065/general-guidance-for-using-the-nrf5340-to-transmit-multiple-audio-signals-over-bluetooth-le</link><description>I am currently trying to read and transmit 4 audio signals in real time over Bluetooth LE with the nRF5340 DK. Eventually, I will transition to an nRF5340 on a custom PCB. I have 4 audio signals connected to different analog input pins (0.04, 0.05, 0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2023 16:20:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100065/general-guidance-for-using-the-nrf5340-to-transmit-multiple-audio-signals-over-bluetooth-le" /><item><title>RE: General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/429634?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 16:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b3dd970-c3fb-4012-a649-9a730495290e</guid><dc:creator>shamboozled</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for getting back to me. I will try to make these examples work. In the meantime, however, I am having some trouble getting the ADC to sample at the desired frequency of 8 kHz, but I will launch a separate ticket for that issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/428804?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 14:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f44d04e-5127-4592-aff2-40c7000ae719</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again, and sorry about the delay&lt;/p&gt;
[quote user="shamboozled"]&lt;p&gt;From your feedback, my team has decided it is not necessary to receive the audio in real time. Instead, we would like to save the recordings in memory, and then upload the data after the recordings have completed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;That sounds good. So if you can live without live play-back and those features you would get from LE Audio, you can get a by with just using &lt;a href="https://www.nordicsemi.com/Products/Bluetooth-Low-Energy/Bluetooth-5"&gt;normal BLE for this&lt;/a&gt;. If you want to go for this, you could consider either using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/services.html#object-transfer-service"&gt;OTS&lt;/a&gt;&amp;nbsp;(&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/peripheral_ots/README.html#bluetooth-peripheral-ots"&gt;there is a small sample available in zephyr&lt;/a&gt;) or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/zephyr/services/device_mgmt/smp_protocol.html"&gt;SMP&lt;/a&gt;. I would recommend starting by having a look at &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#download-file-from-file-system"&gt;this SMP zephyr sample&lt;/a&gt; and how you can use it to send a file.&lt;/p&gt;
[quote user="shamboozled"]Would this be possible to do in real time?[/quote]
&lt;p&gt;Well that could be an idea if all the signals where to stay put once chucked into the channel there, but the issue is the LC3. The LC3 isn&amp;#39;t sending it in its raw form, the encoding and decoding&amp;nbsp;would scramble everything.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/427874?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 15:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff42013a-0936-4b1f-8fdd-ed76968c16b9</guid><dc:creator>shamboozled</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just to clarify, I do not need to hear the audio, just communicate the time series data over Bluetooth. Therefore, 4 channels at 8 kHz should be equivalent to 1 channel at 32 kHz. As long as the correct order is preserved, I think we only really need to communicate over one stream. Would this be possible to do in real time?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PS: I realize that I said 8-bit audio in an earlier post, but I meant 12.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/427868?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 15:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08f5f5d8-d536-40a6-a6b2-73896b2bf1fb</guid><dc:creator>shamboozled</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for getting back to me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From your feedback, my team has decided it is not necessary to receive the audio in real time. Instead, we would like to save the recordings in memory, and then upload the data after the recordings have completed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Specifically, we would like to&amp;nbsp;record for&amp;nbsp;10 seconds, sample at 8 kHz, and use 12-bit precision. With 4 channels, this should take up 480 kB. Does this seem like a more realistic goal? If so, how would you recommend we begin to implement this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/427807?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 12:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be51785-f88d-47ef-841c-05e82a7a9bb7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;After looking further into this it seems that another current limitation is on the amount of streams: our LE Audio controller does not support 4 concurrent streams as of now. You can try to circumvent this by packing it into 2 stereo CIS streams however.&lt;/p&gt;
&lt;p&gt;When it comes to CPU limitations this might work, but it might be on the edge of what the nRF5340 can handle.&lt;/p&gt;
&lt;p&gt;Considering this, could you expand a bit on the real-time constraints of your product? Latency, range, and how detrimental would it be if the audio was a bit choppy?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/427277?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 14:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3de3ed54-0ce3-4697-adef-43080bbb5eb6</guid><dc:creator>shamboozled</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for responding!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am working on a device that records audio at 4 different locations for a medical application. To clarify, we are using a sampling rate of 8 kHz and a bit-depth of 8, so&amp;nbsp;the raw bitrate should be 256kbps&amp;nbsp;with 4 channels. Is it not possible to transmit at this rate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General guidance for using the nRF5340 to transmit multiple audio signals over Bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/427270?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 13:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3df4abd-d702-47be-a28d-48e17915f4fe</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
[quote user=""]I am currently trying to read and transmit 4 audio signals in real time over Bluetooth LE with the nRF5340 DK[/quote]
&lt;p&gt;Okay, that sounds like a lot. Some tests on our&amp;nbsp;LE&lt;span&gt;&amp;nbsp;&lt;/span&gt;Audio stack shows that we&amp;#39;re using about 30% of our CPU on encoding 1 stream of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span dir="ltr"&gt;96 kbps&lt;/span&gt;, and 15% to decode. With two streams you do not have too much to go on for other tasks, but 4 sounds impossible on the nRF5340.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you expand a bit on your use case and why you need all 4 streams?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>