Audio Streaming¶
Description¶
This application uses the Wireless Protocol Stack (WPS) to implement a bidirectional audio stream. It is a good starting point for anyone wishing to use the Audio Core. Audio data is recorded at the source and played back at the destination through the device’s analog ports.
Behavior¶
In this application, two devices are setup. The first device, called the Coordinator, sends 48 kHz stereo audio to a second device, called the Node. The Node responds with 16 kHz mono audio. Each device is assigned timeslots. For each timeslot, a different frequency band will be used (channel hopping). Output volume level can be adjusted on both boards using SW1 (volume up) and SW2 (volume down). By default, the volume is at the maximum level. You will notice LED0 blinking very quickly when communication is successful; this is because LED0 blinks every time a packet is successfully transmitted (which implies a successful ACK has been received following the transmission). The Coordinator needs four times as many timeslots as the Node since its bandwidth requirements are much higher. The following diagram illustrates the general structure of the schedule used in this application.
Once started, each device will record the audio signal from their Line-In jack (blue) and send it over-the-air to the other device to be played back on its Headphones jack (black). Simply connect an audio source to a device’s Line-In jack and listen to the audio stream on the other device’s Headphones jack by connecting speakers or headphones to it.
Configuration¶
This application does not require specific configurations.