<?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>Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115115/audio-streaming-between-dk-and-audio-dk-over-ble-is-not-happening-on-nrf5340</link><description>Hi Nordic Team, 
 My project goal is to send sensor data and audio stream from PDM mic over BLE from nRF5340 to another nRF5340 board. 
 For this I have split the project into two phases. In first phase I am able to send sensor data from nRF5340 dk board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2024 16:42:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115115/audio-streaming-between-dk-and-audio-dk-over-ble-is-not-happening-on-nrf5340" /><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/505232?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 16:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a5bce5-d422-475c-808e-f2e3b740cb93</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The Kconfig symbol&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_SMP"&gt;&lt;code&gt;CONFIG_BT_SMP&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;will add the Security Manager Protocol to the Bluetooth LE stack, which is the layer that makes it possible to pair devices over Bluetooth LE. You can disable it if you don&amp;#39;t need to pair and bond. See this course: &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/"&gt;Lesson 5 – Security in Bluetooth LE communication&lt;/a&gt;&lt;/span&gt;&amp;nbsp;on &lt;a href="https://academy.nordicsemi.com/"&gt;Nordicsemi Academy&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/505134?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 09:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab3aac0-8def-48e8-b024-ac31030dbb82</guid><dc:creator>PassionPioneer</dc:creator><description>&lt;p&gt;HI &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;The problem is solved, the issue is with securtiy function&amp;nbsp;bt_conn_set_security, I commented in my code, now the connection is stable. Since I don&amp;#39;t need any secured connection as of now, I can check it later. Meanwhile can you please check how to handle secured connection.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naveen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/505058?ContentTypeID=1</link><pubDate>Sat, 05 Oct 2024 06:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e22979f-5bc8-4b8d-bafb-53f10bb55931</guid><dc:creator>PassionPioneer</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I I repeated the tests and found two things as follows,&lt;/p&gt;
&lt;p&gt;1. In the file bt_mgmt.c, the security check is getting failed as you can the failure message i.e., &amp;quot;&lt;span&gt;GW [00:00:35.744,262] &amp;lt;wrn&amp;gt; bt_mgmt: Security failed: level 1 err 9&lt;/span&gt;&amp;quot; in the log.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1728109132091v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. On nRFtoolbox app, when I select the device to connect there is popup message as shown below&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1728109511929v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1728109533535v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In both the case, I think the pairing is not happening because of security pin and also when I click on pair&amp;amp;connect in notification on smartphone still behavior is same. That&amp;#39;s why the central(smartphone) is disconnecting from the board as you said.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naveen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/505046?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 19:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a52ea5f-b6da-4f09-aef8-536bfed1036c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="PassionPioneer"]GW [00:00:35.744,445] &amp;lt;inf&amp;gt; bt_mgmt: Disconnected: 7F:8B:B6:F4:9E:3F (random) (r eason 0x13)[/quote]
&lt;p&gt;&lt;span&gt;Disconnect reason&amp;nbsp;&lt;/span&gt;&lt;strong&gt;0x13&lt;/strong&gt;&lt;span&gt;&amp;nbsp;indicates that the remote user terminated the connection (as defined in ble_hci.h). It means that since you&amp;#39;re seeing it on the peripheral side, the central side is triggering the disconnect for some reason.&amp;nbsp;If you only see this after the devices are paired, that&amp;#39;s likely because the bonding information is erased in one device while the other tries reconnecting with the &amp;quot;old&amp;quot; bonding information. If that&amp;#39;s the case, you need to erase bonding information on the phone side before reconnecting and pairing again.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/504924?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 06:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801e765b-2e6c-46e9-a461-0d9834e93a39</guid><dc:creator>PassionPioneer</dc:creator><description>&lt;p&gt;HI Amanda,&lt;/p&gt;
&lt;p&gt;Thanks for your detailed explanation and suggestions.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/115115/audio-streaming-between-dk-and-audio-dk-over-ble-is-not-happening-on-nrf5340/504559"]but please keep in mind that this is an old example that we do not maintain, but it highlights the general approach you should take to achieve this. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/475788"&gt;This post&lt;/a&gt; might help.&amp;nbsp;[/quote]
&lt;p&gt;I have gone through the link&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110090/nrf5340-audio---configure-gateway-unit-also-as-acl-peripheral"&gt;nRF5340 Audio - configure gateway unit also as ACL peripheral&lt;/a&gt; provided in the solution reply of above link. I applied modified the files and tested, the board is able to get detect and connect to smartphone and also the data sent from nRF toolbox app is received by the board but the board is getting disconnected after few seconds from connection please see the log given below&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK d96769faceca ***&lt;/p&gt;
&lt;p&gt;GW [00:00:00.270,996] &amp;lt;inf&amp;gt; board_version: Compatible board/HW version found: 1. 1.0&lt;/p&gt;
&lt;p&gt;GW [00:00:00.295,471] &amp;lt;inf&amp;gt; audio_usb: Ready for USB host to send/receive.&lt;/p&gt;
&lt;p&gt;GW [00:00:00.295,501] &amp;lt;inf&amp;gt; fw_info:&lt;/p&gt;
&lt;p&gt;nRF5340 Audio nRF5340 Audio DK cpuapp&lt;/p&gt;
&lt;p&gt;NCS base version: 2.6.0&lt;/p&gt;
&lt;p&gt;Cmake run : Thu Oct 03 15:38:49 2024&lt;/p&gt;
&lt;p&gt;GW [00:00:00.295,532] &amp;lt;inf&amp;gt; fw_info: ------- DEBUG BUILD -------&lt;/p&gt;
&lt;p&gt;GW [00:00:00.295,532] &amp;lt;inf&amp;gt; fw_info: Compiled for GATEWAY device&lt;/p&gt;
&lt;p&gt;GW [00:00:00.309,478] &amp;lt;dbg&amp;gt; bt_mgmt: bt_enabled_cb: Bluetooth initialized&lt;/p&gt;
&lt;p&gt;GW [00:00:00.309,967] &amp;lt;inf&amp;gt; bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5. 4 (0x0d), Revision 8591&lt;/p&gt;
&lt;p&gt;GW [00:00:00.310,150] &amp;lt;inf&amp;gt; bt_mgmt: Local identity addr: C4:96:F7:03:D5:3B (ran dom)&lt;/p&gt;
&lt;p&gt;GW [00:00:00.310,455] &amp;lt;inf&amp;gt; broadcast_source: Enabling broadcast_source NRF5340_ BROADCASTER&lt;/p&gt;
&lt;p&gt;GW [00:00:00.314,300] &amp;lt;inf&amp;gt; bt_mgmt_adv: Local addr: 61:22:B1:B7:29:BB (random)&lt;/p&gt;
&lt;p&gt;GW [00:00:00.315,643] &amp;lt;inf&amp;gt; main: Ext adv ready&lt;/p&gt;
&lt;p&gt;GW [00:00:00.316,436] &amp;lt;inf&amp;gt; bt_mgmt_adv: Advertising successfully started&lt;/p&gt;
&lt;p&gt;GW [00:00:00.326,660] &amp;lt;inf&amp;gt; broadcast_source: Broadcast source 0x2000d16c starte d&lt;/p&gt;
&lt;p&gt;GW [00:00:00.327,117] &amp;lt;inf&amp;gt; broadcast_source: Broadcast source 0x2000d194 starte d&lt;/p&gt;
&lt;p&gt;GW [00:00:02.601,440] &amp;lt;inf&amp;gt; bt_mgmt: Connected: 7F:8B:B6:F4:9E:3F (random)&lt;/p&gt;
&lt;p&gt;GW [00:00:02.603,820] &amp;lt;inf&amp;gt; bt_mgmt_scan: Local addr: 65:B1:39:82:6E:9F (random) . May time out. Updates not printed&lt;/p&gt;
&lt;p&gt;GW [00:00:02.603,820] &amp;lt;inf&amp;gt; bt_mgmt_scan: Scanning successfully started&lt;/p&gt;
&lt;p&gt;GW [00:00:02.603,851] &amp;lt;inf&amp;gt; main: BT_MGMT_CONNECTED&lt;/p&gt;
&lt;p&gt;GW [00:00:10.003,509] &amp;lt;inf&amp;gt; main: NUS&lt;/p&gt;
&lt;p&gt;68 69 |hi&lt;/p&gt;
&lt;p&gt;GW [00:00:13.264,465] &amp;lt;inf&amp;gt; audio_usb: USB RX first data received.&lt;/p&gt;
&lt;p&gt;A&lt;/p&gt;
&lt;p&gt;GW [00:00:35.744,262] &amp;lt;wrn&amp;gt; bt_mgmt: Security failed: level 1 err 9&lt;/p&gt;
&lt;p&gt;GW [00:00:35.744,293] &amp;lt;wrn&amp;gt; bt_mgmt: Failed to disconnect -128&lt;/p&gt;
&lt;p&gt;GW [00:00:35.744,445] &amp;lt;inf&amp;gt; bt_mgmt: Disconnected: 7F:8B:B6:F4:9E:3F (random) (r eason 0x13)&lt;/p&gt;
&lt;p&gt;GW [00:00:35.744,445] &amp;lt;inf&amp;gt; main: BT_MGMT_DISCONNECTED&lt;/p&gt;
&lt;p&gt;GW [00:00:35.745,727] &amp;lt;inf&amp;gt; bt_mgmt_scan: Local addr: 65:B1:39:82:6E:9F (random) . May time out. Updates not printed&lt;/p&gt;
&lt;p&gt;GW [00:00:35.745,758] &amp;lt;inf&amp;gt; bt_mgmt_scan: Scanning successfully started&lt;/p&gt;
&lt;p&gt;ASSERTION FAIL [old &amp;gt; 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/conn.c:1318&lt;/p&gt;
&lt;p&gt;Conn reference counter is 0&lt;/p&gt;
&lt;p&gt;GW [00:00:35.745,788] &amp;lt;err&amp;gt; error_handler: Assert post action: file: WEST_TOPDIR /zephyr/subsys/bluetooth/host/conn.c, line 1318&lt;/p&gt;
&lt;p&gt;GW [00:00:35.745,788] &amp;lt;err&amp;gt; error_handler: Caught system error -- reason 0. Ente ring infinite loop&lt;/p&gt;
&lt;p&gt;GW [00:00:35.778,015] &amp;lt;err&amp;gt; usb_nrfx: USBD event allocation failed!&lt;/p&gt;
&lt;p&gt;GW [00:00:35.810,028] &amp;lt;err&amp;gt; usb_nrfx: USBD event allocation failed!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Naveen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/504559?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 14:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85354e69-de86-401f-8897-b290c801a44c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="PassionPioneer"]In walkie talkie mode, the two audio dk boards can communicate mic audio over BLE please confirm.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;&amp;nbsp;The nRF5340 Audio DK boards can communicate mic audio over BLE in walkie-talkie mode. See&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/applications/nrf5340_audio/doc/configuration.html#enabling_the_walkie-talkie_demo"&gt;Enabling the walkie-talkie demo&lt;/a&gt;.&lt;/p&gt;
[quote user="PassionPioneer"]As I mentioned that the sensor data(such as Time of Flight) need to send over BLE, Is it possible to initialize and use ../bluetooth/services/nus.c library along with LE audio library?[/quote]
&lt;p&gt;That&amp;#39;s possible.&amp;nbsp;&lt;span&gt;&amp;nbsp;There is a hard limitation on the total number of concurrent connections: 2 ISO + 2 ACL, and so you could for instance use this for 2 CIS (1 CIS requires 1 ISO + 1 ACL), or a combination of 1 or 2 BIS + 1 or 2 ACLs.&amp;nbsp;&lt;/span&gt;&lt;span&gt;In case of the latter, you can see&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/rick1082/sdk-nrf/commits/iso_peripheral_example"&gt;an example of how to do this here&lt;/a&gt;&lt;span&gt;, but please keep in mind that this is an old example that we do not maintain, but it highlights the general approach you should take to achieve this. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/475788"&gt;This post&lt;/a&gt; might help.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/504459?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 05:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a55cceed-0685-46f2-86c4-289f727210c2</guid><dc:creator>PassionPioneer</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your feedback.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/115115/audio-streaming-between-dk-and-audio-dk-over-ble-is-not-happening-on-nrf5340/504385"] but connects to CS47L63 through PDM, then CS47L63 using I2S to interface with nRF5340.[/quote]
&lt;p&gt;This would be fine; I will use this interface as it is. In walkie talkie mode, the two audio dk boards can communicate mic audio over BLE please confirm.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I mentioned that the sensor data(such as Time of Flight) need to send over BLE, Is it possible to initialize and use ../bluetooth/services/nus.c library along with LE audio library?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naveen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Audio streaming between dk and audio dk over BLE is not happening on nRF5340</title><link>https://devzone.nordicsemi.com/thread/504385?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 14:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abb6f5d3-d401-4657-9027-f043ce4e84f2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;For nRF5340 audio DK, the PDM mic is not connected to nRF5340 directly but connects to CS47L63 through PDM, then CS47L63 using I2S to interface with nRF5340. You can use PDM directly, but the sampling rate from nRF5340 is 16KHz. Also, the audio datapath module is designed for the I2S interface, so you would need to handle the data fetch from PDM and the clock drift issues yourself.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>