<?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>Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection</link><description>Hallo Team, 
 
 We are planning to use nrf5340 for one of our project which requires low energy audio and sensor data transfer. Can you please evaluate if our use case is possible with existing / upcoming revision of the nrf connect SDK? 
 
 I have already</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Oct 2022 15:39:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection" /><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/391035?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 15:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e94f0e3-e5dd-49a8-9070-0f18cc2a5de4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Adarsh_1"]With your absence I opened up another ticket.&amp;nbsp;[/quote]
&lt;p&gt;Alright, thank you for updating me, I will then close this ticket.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/390900?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 07:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e22213-0ba5-4a40-a347-b470df397c5d</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hallo Karl,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/390852"]Do you still require technical support with this issue?[/quote]
&lt;p&gt;No. With your absence I opened up another ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for enquiring.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/390852?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 19:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de459f85-8e52-4c93-8f84-404a6cf66fa5</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Adarsh,&lt;br /&gt;&lt;br /&gt;Thank you for your extreme patience with this. I have been out of office for some time, but now I am back.&lt;br /&gt;&lt;br /&gt;Do you still require technical support with this issue?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/386435?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 14:43:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1819f6fe-6430-4cad-984f-327ef0fe76ec</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hy Karl,&lt;/p&gt;
&lt;p&gt;Patiently waiting for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/385229?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 10:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6bdc1b2-7ac4-4d69-9dda-971983094d18</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hai Karl,&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/384025"]1.In &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35697020c14f8560a346c43d1719492bbb3a8b59/applications/nrf5340_audio/src/audio/audio_system.c#L77-L87"&gt;audio_system.c you will need to change the decode type from SW_CODEC_MONO to SW_CODEC_STEREO&lt;/a&gt;, which will make the headset device expect to receive a stereo stream.&lt;br /&gt;[/quote]
&lt;p&gt;Just like the steps you mentioned for the main branch, can I have the steps for V2.0.0 / V2.0.2 modify the gateway code to send stereo audio so that it does not split data into two different stream?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is where I am finding it dificult. Where exactly is the streams been split to left and right in the gateway code. For the past 1 week, I am looking in to the &amp;quot;bluetooth&amp;quot; folder inside the &amp;quot;src&amp;quot;, but I cannot figure it out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please explain me how to/ where to modify the code in NCS V2.0.0/V2.0.2 so that the gateway sends stereo stream rather than two separate streams for left and right?&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/384025"]2.You will also have to &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35697020c14f8560a346c43d1719492bbb3a8b59/applications/nrf5340_audio/src/bluetooth/le_audio_cis_gateway.c#L873-L897"&gt;modify the gateway behavior, so that it does not split up the data into two separate streams&lt;/a&gt;&amp;nbsp;in the le_audio_send function.[/quote]
&lt;p&gt;This is not helping, since I am using NCS V2.0.0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your time. Any suggestions will be highly appreciated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/385003?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 11:13:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b929fcae-451e-4a7a-8ac9-fb96d517ce39</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hai Karl,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/384907"]Are you still facing difficulties with this? You should here modify the le_audio_send function so that it sends stereo data (by changing its current behavior, which is to split the data into two streams).[/quote]
&lt;p&gt;Yes. I have not yet made it to work. I should have mentioned about the use of SBC before. Anyway now you know that I am working with NCS V2.0.0 and testing with SBC at the moment. I can see that the master branch has added and changed few files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was not able to find an equivalent function for le_audio_send in the NCS V2.0.0. How do I proceed from here? I am not able to get my head arround this properly.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/384025"]2.You will also have to &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35697020c14f8560a346c43d1719492bbb3a8b59/applications/nrf5340_audio/src/bluetooth/le_audio_cis_gateway.c#L873-L897"&gt;modify the gateway behavior, so that it does not split up the data into two separate streams&lt;/a&gt;&amp;nbsp;in the le_audio_send function.[/quote]
&lt;p&gt;Where are the equivalent codes / files situvated in NCS V2.0.0. I am sorry I was not able to find it.&lt;/p&gt;
&lt;p&gt;Can you provide a bit more information here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/384907?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 05:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae89309-6f61-40ec-b161-8132db7e383e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Adarsh&lt;/p&gt;
[quote user="Adarsh_1"]&lt;p&gt;However, here I am facing difficulties. How can i modify the &amp;quot;le_audio_send&amp;quot; function to to send stereo data?&amp;nbsp; Should I create a buffer here to load the audio samples? Or can I use the iso_stream_send function to send stereo audio without splitting the data?&lt;/p&gt;
&lt;p&gt;Can you show an example / code snippets on how this can be achieved?&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;Are you still facing difficulties with this? You should here modify the le_audio_send function so that it sends stereo data (by changing its current behavior, which is to split the data into two streams).&lt;/p&gt;
[quote user="Adarsh_1"]While working with the steps you provided I found out that the sdk no more supports SBC codec.&amp;nbsp;[/quote]
&lt;p&gt;This is only the case for the main branch - it is not yet effective for &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/053756565898659278f957e5f58000cc0491a88d/applications/nrf5340_audio/src/audio/Kconfig#L141"&gt;the v2.0.2 nRF Connect SDK that you are working with&lt;/a&gt;.&lt;/p&gt;
[quote user="Adarsh_1"]I do not intend to use LC3 at the moment. And need to test with SBC alone due to internal reasons.&amp;nbsp;[/quote]
&lt;p&gt;I understand. If you stick to using the v2.0.2 you will still be able to use the SBC, no problem.&lt;br /&gt;If you are to upgrade to future releases you will need to add the non-LC3 codec yourself, in the case that you still will not be working with the LC3.&lt;br /&gt;Please know that we will soon be making changes to the LC3 agreement, so that the evaluation agreement no longer is necessary in order to be able to evaluate the LC3 (I mention this in case this is relevant for your reasoning to keep with the SBC codec).&lt;/p&gt;
[quote user="Adarsh_1"]So is it possible to work with stereo audio using just the SBC codec? Can I perform changes in the ncsV2.0.0 Tag to let the gateway send stereo in a single CIS using SBC codec?[/quote]
&lt;p&gt;The CIS does not check the contents of the stream - it does not know if the stream is encoded using LC3, SBC, or any other codec, so long as it fits into the Isochronous channel, with size being the main parameter.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/384568?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 12:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efccbd08-5457-4f6d-a2f7-7dd4b7cb3dff</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hai Karl,&lt;/p&gt;
&lt;p&gt;While working with the steps you provided I found out that the sdk no more supports SBC codec.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/sbc.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;I do not intend to use LC3 at the moment. And need to test with SBC alone due to internal reasons.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So is it possible to work with stereo audio using just the SBC codec? Can I perform changes in the ncsV2.0.0 Tag to let the gateway send stereo in a single CIS using SBC codec?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/384199?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 16:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988ee89c-d436-4868-9679-9bd1d71c1c2c</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hallo Karl,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestions.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/384025"]Instead, you could modify the gateway to send the stereo data in a single stream, and modify the headset device to receive/decode a stereo stream.[/quote]
&lt;p&gt;Yes, this if exactly what I need.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/384025"].You will also have to &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35697020c14f8560a346c43d1719492bbb3a8b59/applications/nrf5340_audio/src/bluetooth/le_audio_cis_gateway.c#L873-L897"&gt;modify the gateway behavior, so that it does not split up the data into two separate streams&lt;/a&gt;&amp;nbsp;in the le_audio_send function.[/quote]
&lt;p&gt;However, here I am facing difficulties. How can i modify the &amp;quot;le_audio_send&amp;quot; function to to send stereo data?&amp;nbsp; Should I create a buffer here to load the audio samples? Or can I use the iso_stream_send function to send stereo audio without splitting the data?&lt;/p&gt;
&lt;p&gt;Can you show an example / code snippets on how this can be achieved?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/384025?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 01:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53b40ff3-da88-4270-b4d3-4f833ea0ce02</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this.&lt;/p&gt;
[quote user="Adarsh_1"]Like always thank you for your well-structured and precise explanation.&amp;nbsp;[/quote]
&lt;p&gt;No problem, Adarsh - I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="Adarsh_1"]I am able to hear quality audio from the da7212 EVM board (through its headphone jack) with this configuration:[/quote]
&lt;p&gt;I am glad to read that you were able to get the nRF5340 Audio DK up and running with your external codec - great!&lt;/p&gt;
[quote user="Adarsh_1"]I hooked up the oscilloscope to DIN and SYNC and observed that only left audio is received.[/quote]
&lt;p&gt;This is as expected, since the nRF5340_Audio reference application is made specifically for the nRF5340 Audio DK, and so the default headset configuration only listens to one of the two transmitted stereo channels (either the LEFT or RIGHT, depending on the build configuration for the specific headset device).&lt;br /&gt;&lt;br /&gt;The default CIS Gateway device will set up two channels, one for left and one for right, and then each of the headset DKs choose which they would like to listen to. In your case, you would like&amp;nbsp;to receive both channels, so here you could either have configured your headset device to accept both streams, and merge the streams before outputting - but this would require some work to make the timing just right.&lt;br /&gt;Instead, you could modify the gateway to send the stereo data in a single stream, and modify the headset device to receive/decode a stereo stream.&lt;br /&gt;&lt;br /&gt;The following is an explanation for working with the current ncs main branch (since it now uses BAP, which grants interoperability with other LE Audio devices):&lt;br /&gt;&lt;br /&gt;1.In &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35697020c14f8560a346c43d1719492bbb3a8b59/applications/nrf5340_audio/src/audio/audio_system.c#L77-L87"&gt;audio_system.c you will need to change the decode type from SW_CODEC_MONO to SW_CODEC_STEREO&lt;/a&gt;, which will make the headset device expect to receive a stereo stream.&lt;br /&gt;&lt;br /&gt;2.You will also have to &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35697020c14f8560a346c43d1719492bbb3a8b59/applications/nrf5340_audio/src/bluetooth/le_audio_cis_gateway.c#L873-L897"&gt;modify the gateway behavior, so that it does not split up the data into two separate streams&lt;/a&gt;&amp;nbsp;in the le_audio_send function.&lt;br /&gt;&lt;br /&gt;3.Lastly, you would also have &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/35697020c14f8560a346c43d1719492bbb3a8b59/applications/nrf5340_audio/src/bluetooth/le_audio_cis_headset.c#L42"&gt;to change the appearance in PACS to lets other devices know that the headset supports receiving stereo, by changing the CHANNEL_COUNT_1 to CHANNEL_COUNT_2&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Give this a try, and let me know if you should encounter any issues or questions! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/383196?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 08:44:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:095a619b-aa69-4898-8ded-102dea38cad8</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hai Karl,&lt;/p&gt;
&lt;p&gt;Like always thank you for your well-structured and precise explanation.&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/383147"]Yes, this could be possible, and would likely reduce the complexity of your design by a lot. [/quote]
&lt;p&gt;Most probably we would opt to design a mobile application which could help perform this task. That is to connect to all the ble sensors at a time and receive data from all of them together including the headset for audio streaming.&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/91311/nrf5340-audio-with-sensor-data-collection/383147"]how much data will the sensors be transmitting, how often, and what is the latency requirement for this communication?[/quote]
&lt;p&gt;Here few compromises can be made. At the moment the sensors transmits 64 bits of data at 64 Hz data rate. And as per the current ble audio design (in the reference application - nrf5340 audio), we are planning to transmitting 48KHz stereo audio.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. However, what happens when the p0.21 pin is pulled low? Does CS4I63 uses different pins for I2S configuration? Or are the pins shared with P10 pin header?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There are few issues which I am facing when trying to connect the stereo codec with the application. We are using da7212 from Renesas. Datasheet can be found&amp;nbsp;&lt;a href="https://www.renesas.com/eu/en/document/dst/da7212-datasheet?r=1563326"&gt;here&lt;/a&gt;. I have created a driver for the sensor and replaced all the cs47I63 calls in hw_codec.c. The codec is sucessfully initialised and configured using i2c bus. However I am facing difficult to input digital audio to the codec through i2s bus.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And hence I started to investigate audio_i2s.c file. I have noticed that the application uses BCLK: 1.536MHz, MCLK: 6.144 MHz and SYNC/WS : 48KHz.&lt;/p&gt;
&lt;p&gt;2. For my codec to work, I need to feed in 12.88MHz MCLK signal from nrf5340 to da7212 (da7212 slave mode). I need PLL Bypass Mode as explained in page number 51 of the&amp;nbsp;&lt;a href="https://www.renesas.com/eu/en/document/dst/da7212-datasheet?r=1563326"&gt;datasheet&lt;/a&gt;. Datasheet states as follows: &amp;quot;MCLK must be exactly 12.288 MHz or 11.2896 MHz or a multiple thereof and synchronous with BCLK and WCLK&amp;quot;. I also need the SYNC to be 48KHz.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you help me acheive this? Is this configuration possible? I browsed through this&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fi2s.html"&gt;documentation&lt;/a&gt;, but I was not able to find a solution.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am able to hear quality audio from the da7212 EVM board (through its headphone jack) with this configuration:&lt;/p&gt;
&lt;p&gt;MCLK: 6.144 MHz, BCLK: 1.537MHz, and SYNC: 48KHz. However, audio is audible only on the left speaker of the headphone (same as that of nrf5340 Audio dk using cs47I63). So this kept me wondering if there are any configuration changes required in the firmware to output stereo.&lt;/p&gt;
&lt;p&gt;I hooked up the oscilloscope to DIN and SYNC and observed that only left audio is received.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/oscilator.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;How can I send stereo audio to both the CIS channel so I can reproduce stereo audio on both the connected headsets?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Are there any configurations to be altered in the reference application so as to output stereo audio?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the audio_12s.c file. I have not changed anything apart from commending out certain ifelse conditions. At the moment codec works with 6.144MHz CLK signal. If I was to generate a 12.88 MHz clcok and 48 KHz sync, what should be the configuration? Can you help me in here as well?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;audio_i2s.h&amp;quot;

#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/device.h&amp;gt;
#include &amp;lt;zephyr/drivers/pinctrl.h&amp;gt;
#include &amp;lt;nrfx_i2s.h&amp;gt;
#include &amp;lt;nrfx_clock.h&amp;gt;

#include &amp;quot;audio_sync_timer.h&amp;quot;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(audio_i2s, 2);

#define I2S_NL DT_NODELABEL(i2s0)

#define HFCLKAUDIO_12_288_MHZ 0x9BAE
//#define NRF_I2S_HAS_CLKCONFIG 1

enum audio_i2s_state {
	AUDIO_I2S_STATE_UNINIT,
	AUDIO_I2S_STATE_IDLE,
	AUDIO_I2S_STATE_STARTED,
};

static enum audio_i2s_state state = AUDIO_I2S_STATE_UNINIT;

PINCTRL_DT_DEFINE(I2S_NL);

/*********
 *  CONFIG_AUDIO_BIT_DEPTH_XX lines deleted here
 * ****************/

static nrfx_i2s_config_t cfg = {
	/* Pins are configured by pinctrl. */
	.skip_gpio_cfg = true,
	.skip_psel_cfg = true,
	.irq_priority = DT_IRQ(I2S_NL, priority),
	.mode = NRF_I2S_MODE_MASTER,
	.format = NRF_I2S_FORMAT_I2S,
	.alignment = NRF_I2S_ALIGN_LEFT,
//#if (CONFIG_AUDIO_BIT_DEPTH_16)
	.sample_width = NRF_I2S_SWIDTH_16BIT,
	.mck_setup = 0x66666000,
	.ratio = NRF_I2S_RATIO_128X,
//#elif (CONFIG_AUDIO_BIT_DEPTH_24)
//	.sample_width = NRF_I2S_SWIDTH_24BIT,
	/* Clock mismatch warning: See CONFIG_AUDIO_24_BIT in KConfig */
//	.mck_setup = 0x2BE2B000,
//	.ratio = NRF_I2S_RATIO_48X,
//#elif (CONFIG_AUDIO_BIT_DEPTH_32)
//	.sample_width = NRF_I2S_SWIDTH_32BIT,
//	.mck_setup = 0x66666000,
//	.ratio = NRF_I2S_RATIO_128X,
//#else
//#error Invalid bit depth selected
//#endif /* (CONFIG_AUDIO_BIT_DEPTH_16) */
	.channels = NRF_I2S_CHANNELS_STEREO,
	.clksrc = NRF_I2S_CLKSRC_ACLK,
	.enable_bypass = false,
};

static i2s_blk_comp_callback_t i2s_blk_comp_callback;

static void i2s_comp_handler(nrfx_i2s_buffers_t const *released_bufs, uint32_t status)
{
	if ((status == NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED) &amp;amp;&amp;amp; released_bufs &amp;amp;&amp;amp;
	    i2s_blk_comp_callback &amp;amp;&amp;amp; (released_bufs-&amp;gt;p_rx_buffer || released_bufs-&amp;gt;p_tx_buffer)) {
		i2s_blk_comp_callback(audio_sync_timer_i2s_frame_start_ts_get(),
				      released_bufs-&amp;gt;p_rx_buffer, released_bufs-&amp;gt;p_tx_buffer);
	}
}

void audio_i2s_set_next_buf(const uint8_t *tx_buf, uint32_t *rx_buf)
{
	__ASSERT_NO_MSG(state == AUDIO_I2S_STATE_STARTED);
	__ASSERT_NO_MSG(rx_buf != NULL);
#if (CONFIG_STREAM_BIDIRECTIONAL || (CONFIG_AUDIO_DEV == HEADSET))
	__ASSERT_NO_MSG(tx_buf != NULL);
#endif /* (CONFIG_STREAM_BIDIRECTIONAL || (CONFIG_AUDIO_DEV == HEADSET)) */

	const nrfx_i2s_buffers_t i2s_buf = { .p_rx_buffer = rx_buf,
					     .p_tx_buffer = (uint32_t *)tx_buf };

	nrfx_err_t ret;

	ret = nrfx_i2s_next_buffers_set(&amp;amp;i2s_buf);
	__ASSERT_NO_MSG(ret == NRFX_SUCCESS);
}

void audio_i2s_start(const uint8_t *tx_buf, uint32_t *rx_buf)
{
	__ASSERT_NO_MSG(state == AUDIO_I2S_STATE_IDLE);
	__ASSERT_NO_MSG(rx_buf != NULL);
#if (CONFIG_STREAM_BIDIRECTIONAL || (CONFIG_AUDIO_DEV == HEADSET))
	__ASSERT_NO_MSG(tx_buf != NULL);
#endif /* (CONFIG_STREAM_BIDIRECTIONAL || (CONFIG_AUDIO_DEV == HEADSET)) */

	const nrfx_i2s_buffers_t i2s_buf = { .p_rx_buffer = rx_buf,
					     .p_tx_buffer = (uint32_t *)tx_buf };

	nrfx_err_t ret;

	/* Buffer size in 32-bit words */
	ret = nrfx_i2s_start(&amp;amp;i2s_buf, I2S_SAMPLES_NUM, 0);
	__ASSERT_NO_MSG(ret == NRFX_SUCCESS);

	state = AUDIO_I2S_STATE_STARTED;
}

void audio_i2s_stop(void)
{
	__ASSERT_NO_MSG(state == AUDIO_I2S_STATE_STARTED);

	nrfx_i2s_stop();

	state = AUDIO_I2S_STATE_IDLE;
}

void audio_i2s_blk_comp_cb_register(i2s_blk_comp_callback_t blk_comp_callback)
{
	i2s_blk_comp_callback = blk_comp_callback;
}

void audio_i2s_init(void)
{
	__ASSERT_NO_MSG(state == AUDIO_I2S_STATE_UNINIT);

	nrfx_err_t ret;

	nrfx_clock_hfclkaudio_config_set(HFCLKAUDIO_12_288_MHZ);

	NRF_CLOCK-&amp;gt;TASKS_HFCLKAUDIOSTART = 1;

	/* Wait for ACLK to start */
	while (!NRF_CLOCK_EVENT_HFCLKAUDIOSTARTED) {
		k_sleep(K_MSEC(1));
	}

	ret = pinctrl_apply_state(PINCTRL_DT_DEV_CONFIG_GET(I2S_NL),
				  PINCTRL_STATE_DEFAULT);
	__ASSERT_NO_MSG(ret == 0);
	//IRQ_DIRECT_CONNECT(DT_IRQN(I2S_NL), DT_IRQ(I2S_NL, priority), nrfx_isr, 0);
	IRQ_CONNECT(DT_IRQN(I2S_NL), DT_IRQ(I2S_NL, priority), nrfx_isr, nrfx_i2s_irq_handler, 0);
	irq_enable(DT_IRQN(I2S_NL));


	ret = nrfx_i2s_init(&amp;amp;cfg, i2s_comp_handler);
	__ASSERT_NO_MSG(ret == NRFX_SUCCESS);

	state = AUDIO_I2S_STATE_IDLE;
}

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your time and effort.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf5340 audio with sensor data collection.</title><link>https://devzone.nordicsemi.com/thread/383147?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 01:38:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded8a058-6124-4ad2-8615-43a86cbce0eb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Adarsh,&lt;/p&gt;
[quote user=""]Right now I am trying to connect an external hardware audio codec to reproduce stereo audio.[/quote]
&lt;p&gt;Please see the attached image for an explanation of how you can use an external codec with the Audio DK.&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/externalCodec.PNG" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""](Microphone input is also required, but however I understand that it takes some time and cannot be implemented with the existing nrf connect release ncs v 2.0.2).&amp;nbsp;[/quote]
&lt;p&gt;You are correct that bi-directional streams are not supported by the reference application at this moment. If you have questions about the roadmap for the reference application I must ask that you reach out to your Regional Sales Director (RSD) with these questions, since we do not discuss future releases here on DevZone.&lt;br /&gt;The RSD for your region is Thomas Page, and you may reach out to him on&amp;nbsp;thomas.page@nordicsemi.no.&lt;/p&gt;
[quote user=""]The sensor data should also be transferred to mobile device along with audio streaming. Is this supported at the moment? Can this be accomplished?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Yes, this can be accomplished. You can definitely use regular BLE communication alongside the audio streams - the ACLs (Asynchronous Control Logic) for LE Audio uses &amp;#39;regular&amp;#39; BLE communication to control the audio streams, alongside the audio streams.&lt;br /&gt;The radio time available for each of the other connections will however be limited by your stream configuration (i.e how much &amp;#39;free time&amp;#39; the radio has for maintaining the connections with the other peripherals) and so the feasibility of this will depend on the requirements for these connections - most prominently, how much data will the sensors be transmitting, how often, and what is the latency requirement for this communication?&lt;/p&gt;
[quote user=""]Would it be possible for an android device to act as a central device where it can collect data from four ble sensors and stream audio to the headset at the same time? Then there is no need to have extra complication (central and peripheral role) at the headset end. Would this be possible?[/quote]
&lt;p&gt;Yes, this could be possible, and would likely reduce the complexity of your design by a lot. You would however need to have an app running on the smartphone side in order to achieve this, since the native Bluetooth behavior of the smartphone will only be to connect to audio, HID, or known sensor devices - i.e it will not be able to receive custom sensor data without an application that actively looks for and accepts data from these custom characteristics.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>