Audio streaming on mobile phone over LE audio from PDM mic interfaced to nRF5340 board.

HI Nordicsemi Team,

I am exploring how LE audio works, as far as I understand a supported mobile can be connected to nRF5340 and stream audio from mobile phone. However, for my application I need to interface PDM mic to nRF5340(this is completed), transfer PCM data over BLE to other nRF5340 board which is connected to PC and the received PCM data should be transferred to PC(over possible interface). On PC, I want to process the received PCM data into audio file.

So, I need more information whether my approach is feasible. Kindly please answer my below queries also.

Q1: Is SKD supports PCM data transfer over BLE among nRF5340 boards if so, any sample code available?

Q2: Is there feasibility to transfer PCM data from nRF5340 to PC?

Thanks in advance.

Regards,

PassionPioneer

Parents
  • Hello,

    Q1: Is SKD supports PCM data transfer over BLE among nRF5340 boards if so, any sample code available?

    I am not sure if we have a sample for this specifically.

    But first of all, do you really need LE Audio for this? Is your end-goal having it saved as an audio file?

    Q2: Is there feasibility to transfer PCM data from nRF5340 to PC?

    Yes, you should be able to send that over I2S.

    Regards,

    Elfving

  • Hi Elfving

    Thanks for your valuable feedback.

    I am assuming that LE audio is required because I will transfer PCM data from one nRF board to other nrRF board to which PC is connected.

    Yes, I have to save it as audio file for further process.

    Can you please elaborate how I2S can be used to send the PCM data nRF to PC.

    Regards,

    PassionPioneer

  • Hello,

    Apologies for the delay.

    If you connect the headset device to an audio input with AUX you can use the default configuration of the nRF5340 Audio application as a proof of concept. The application documentation should cover all the setup needed for you to test that, so please get familiar with it. If anything is unclear afterwards I am happy to help you.

    Regarding saving the audio in a file, I need to know more to know how to support you. Are you planning on doing further processing of the audio on the headset device or on the PC? If you are planning on processing on the headset, you need to pay attention to the required flash and RAM. If you plan to do the processing on the PC, the implementation is in your hands.

    Best regards,

    Maria

  • Hi Maria,

    Are you planning on doing further processing of the audio on the headset device or on the PC?

    Ans: On PC. 

    Of course, I should handle the audio processing on PC. I wanted to know which interface I can use to transfer PCM data to PC without any loss of data. By default, UART can be used. (1) Is there any source which can help me.

    (2) I am working to transfer PCM data transfer from nRF5340 dk to audio dk board, Is there any source of information which can help me in implementation.

     

    Regards,

    PassionPioneer

  • Hi Maria,

    Any response on my above reply.

    I got nRF5340 audio dk board, followed the instructions and and flash the board but the device is not detecting on PC.

    I am following the steps provided in the below link:

    https://community.element14.com/products/roadtest/rv/roadtest_reviews/1678/roadtest_nordic_bluetooth_le_audio_development_kit_nrf5340_dk_by_steve_k

    Reply is appreciated!

    regards,

    PassionPioneer

  • Hi PassionPioneer,

    PassionPioneer said:
    I got nRF5340 audio dk board, followed the instructions and and flash the board but the device is not detecting on PC.

    There are some known issues about the USB connection for the nRF5340 Audio applications. Please take a look here and see if any of them affects you. The default list is for NCS v2.7.0. You can change the NCS version at the top of the page.

    If the known issues are not applicable to your case, please share which configuration you are using for the application and if you see any logging output (requires building with prj.conf as the configuration file).

    PassionPioneer said:

    From the descriptions in that review, I can see that they are using the application/documentation from before the restructuring of the application and before switching to the SoftDevice controller. We recommend that you choose the most recent NCS release when starting with your project and that you upgrade when you can.

    Both the source code and the documentation are updated frequently, and you can follow the known and open issues from my above link. Also make sure that the version of the documentation matches the source code version you are using.

    PassionPioneer said:
    Of course, I should handle the audio processing on PC. I wanted to know which interface I can use to transfer PCM data to PC without any loss of data. By default, UART can be used. (1) Is there any source which can help me.

    Like Elfving wrote in the first reply, you can use I2S as the transport. I2S is supported as output in the nRF5340 Audio application by default. I realize I did not give you any links in my previous reply, so you can find the application documentation here and the source code here. Both links are to NCS v2.7.0.

    audio_datapath and audio_system from nrf5340_audio/src/audio could be good to study for the audio data flow in the audio application.

    PassionPioneer said:
    (2) I am working to transfer PCM data transfer from nRF5340 dk to audio dk board, Is there any source of information which can help me in implementation.

    With LE audio you can configure the nRF5340dk as the gateway, though the application is not made to work out of the box with nRF5340DK so some modifications are required.

    Best regards,

    Maria

Reply
  • Hi PassionPioneer,

    PassionPioneer said:
    I got nRF5340 audio dk board, followed the instructions and and flash the board but the device is not detecting on PC.

    There are some known issues about the USB connection for the nRF5340 Audio applications. Please take a look here and see if any of them affects you. The default list is for NCS v2.7.0. You can change the NCS version at the top of the page.

    If the known issues are not applicable to your case, please share which configuration you are using for the application and if you see any logging output (requires building with prj.conf as the configuration file).

    PassionPioneer said:

    From the descriptions in that review, I can see that they are using the application/documentation from before the restructuring of the application and before switching to the SoftDevice controller. We recommend that you choose the most recent NCS release when starting with your project and that you upgrade when you can.

    Both the source code and the documentation are updated frequently, and you can follow the known and open issues from my above link. Also make sure that the version of the documentation matches the source code version you are using.

    PassionPioneer said:
    Of course, I should handle the audio processing on PC. I wanted to know which interface I can use to transfer PCM data to PC without any loss of data. By default, UART can be used. (1) Is there any source which can help me.

    Like Elfving wrote in the first reply, you can use I2S as the transport. I2S is supported as output in the nRF5340 Audio application by default. I realize I did not give you any links in my previous reply, so you can find the application documentation here and the source code here. Both links are to NCS v2.7.0.

    audio_datapath and audio_system from nrf5340_audio/src/audio could be good to study for the audio data flow in the audio application.

    PassionPioneer said:
    (2) I am working to transfer PCM data transfer from nRF5340 dk to audio dk board, Is there any source of information which can help me in implementation.

    With LE audio you can configure the nRF5340dk as the gateway, though the application is not made to work out of the box with nRF5340DK so some modifications are required.

    Best regards,

    Maria

Children
  • Hi Maria,

    Thanks for your valuable reply.

    It's a coincidence that my work status and your reply match.

    the audio dk board as gateway is getting detected on PC and also confirmed the board configuration to headset.

    Currently I am trying to configure dk as getaway, however audio dk will be headset to try the audio application test. Once this works, I can go for custom board for my application. I will go through the links you provided, and I will get back to you.

    Meanwhile if I encounter any blockage, I will reach you please provide your support.

    Regards,

    Pp

Related