This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Need I2S help

Hi there,

I'm just trying to start to code my project. I want to stream 48k 16 bit audio from one nrf52840 dongle to the other one. I only need one way transfer.

I have looked at every example I could find but still dont seem to get how to send the packets to the radio and over the wireless connection.

Is there anyone that can help get me started with some simple no frills code.

I'm using Segger and sdk v17.

I would be most grateful if someone could assist me here.  Once I get the streaming part working successfully I think I can work out how to do the other things I need but this I2S is very tricky it seems to know what to do. It needs to be a steady stream.

Kind regards,

Dam076

Parents
  • Hi 

    Are you planning to do any compression of the audio stream, or do you want to send raw data?

    You should be able to handle the raw data stream if the link is good, but you won't have a lot of overhead to handle packet loss. 

    If you are planning to do something proprietary (ie not Bluetooth) I would recommend having a look at the nrf_esb library. Then you don't have to spend time on low level radio setup, but can instead focus on integrating the I2S sensor. 

    There are some examples in the SDK showing how to use the nrf_esb library, in the following folder:

    \nRF5_SDK_17.0.2_d674dde\examples\proprietary_rf

    Best regards
    Torbjørn

  • Thanks for your reply. 

    I have looked at ESB but I'm still having trouble working out how to successfully link the I2S buffer with the packet pointer and understanding how the code detects the buffer has changed so that i automatically triggers the raidio to send the new packet. Would you be able to assist with that area. I have figured that the radio needs to stay on and not turn off between packets. Also I am unsure on the correct value of block_Words so that I2S doesnt glitch. Any coding help to link I2S with the radio directly, on both the TX and the RX will help greatly, Cheers

Reply
  • Thanks for your reply. 

    I have looked at ESB but I'm still having trouble working out how to successfully link the I2S buffer with the packet pointer and understanding how the code detects the buffer has changed so that i automatically triggers the raidio to send the new packet. Would you be able to assist with that area. I have figured that the radio needs to stay on and not turn off between packets. Also I am unsure on the correct value of block_Words so that I2S doesnt glitch. Any coding help to link I2S with the radio directly, on both the TX and the RX will help greatly, Cheers

Children
No Data
Related