_äìéi~ä» stereo_headset application Readme November 2006 CSR Cambridge Science Park Milton Road Cambridge CB4 0WH United Kingdom Registered in England 4187346 Tel: +44 (0)1223 692000 Fax: +44 (0)1223 692001 www.csr.com
Contents Contents 1 Introduction... 3 2 Installation... 4 2.1 Connect the Development Board... 4 2.2 Build and Download the Application... 4 2.2.1 Building the Combined Headset Application with MP3 Support... 5 2.3 CVC echo cancellation and noise reduction software...5 3 Operation... 6 4 Operation on DEV-PC-1442... 9 5 Decoder Behaviour Settings... 10 Page 2 of 10
Introduction 1 Introduction The Stereo Headset enables the user to listen to stereo music streamed over a Bluetooth wireless technology link while simultaneously maintaining a connection to a Bluetooth-enabled handset. The media stream is interrupted to make and receive calls. This document briefly describes the procedure to implement the Stereo Headset Reference Application on DEV- PC-1508 and DEV PC-1442 development boards. The Stereo Headset can also be run on a DEV-PC-1645 board. Customers who order this development platform receive dedicated documentation which should be referred to in preference to this readme. Note: The DSP libraries required to build the MP3 decoder must be obtained and installed separately (please contact the support channel for details). They contain MP3 technology that incorporates intellectual property owned by Thomson and/or Fraunhofer Gesellschaft. Supply of this product does not convey a license under the relevant intellectual property of Thomson and/or Fraunhofer Gesellschaft nor imply any right to use this product in any finished end user or ready-to-use final product. An independent license for such use is required. For details, please visit http://www.mp3licensing.com. Page 3 of 10
Installation 2 Installation Ensure you have the following components before starting: BlueCore3-Multimedia Development Board (DEV-PC-1508B) Note: The application can also be run on the HI-FI Demonstrator and Development Board (DEV-PC-1442 motherboard) see section 4 for more information when using this platform). CSR SPI Cable USB Cable CSR USB Multimedia Dongle Install BlueLab using the installer downloaded from www.csrsupport.com, accepting all of the default options. Refer to BlueLab xide user guide (which is in the Support docs folder included in the download zip file) for further information on the installation procedure. 2.1 Connect the Development Board 1. Connect the Universal Serial Bus (USB) and Serial Peripheral Interface (SPI) connections from the BlueCore3-Multimedia Development Board to your PC. 2. Turn the switch on the Development Board to the ON position. 2.2 Build and Download the Application 1. From the Start Menu, locate BlueLab and start xide. 2. Select Project / Open and browse to \BlueLab\apps\stereo_headset\sbc_decode.xiw and select Open. This opens the SBC (Sub Band Coding) decode application that runs on the DSP. 3. Select Build / Build or press F7 to compile the DSP code. 4. Select Project / Open and browse to \BlueLab\apps\stereo_headset \stereo_headset.xiw and select Open. This opens the VM application. 5. Select Build / Build or press F7 to compile the VM application. 6. Select Debug / Run or press F5 to execute the application. This downloads the image into flash memory and begins execution. This operation takes approximately 60 seconds. 7. Select Debug / Stop or Shift-F5 to halt the application. Page 4 of 10
Installation 2.2.1 Building the Combined Headset Application with MP3 Support The DSP libraries required to build the MP3 decoder must be obtained and installed separately (please contact the support channel for details).they contain MP3 technology which incorporates intellectual property owned by Thomson and/or Fraunhofer Gesellschaft. Note: The Combined Headset application does not need to include the MP3 support code and can be built using just the sbc_decoder.xiw as long as the MP3 add on executable has not been run. Supply of this product does not convey a license under the relevant intellectual property of Thomson and/or Fraunhofer Gesellschaft nor imply any right to use this product in any finished end user or ready-to-use final product. An independent license for such use is required. For details, please visit http://www.mp3licensing.com. Note: Once the MP3 add-on has been installed the stereo_headset.xiw will not download without the mp3_decoder.xiw having been built. Step 1: Installing the MP3 add-on Having installed BlueLab, install BlueLab_3.5-release-mp3.exe (available via your usual support channel). Step 2: Building the MP3 decoder Build the MP3 decoder application by opening the mp3_decode workspace and selecting build in xide. The mp3_decode workspace can be built in exactly the same way as the sbc_decode workspace in section 2.2 Step 3. Once the mp3_decode application has been built go back to section 2.2 step 2 and continue with building the stereo_headset application. 2.3 CVC echo cancellation and noise reduction software To include CVC (Clear Voice Capture) echo cancellation and noise reduction simply add the define symbol INCLUDE_CVC to the Project Properties / Define symbols field before building the stereo_headset.xiw project. Note: The CVC software is supplied for demonstration purposes only, is time limited and will become inactive after processing data for five minutes. The ParamMgr Utility can be used to fine tune the CVC code to optimise the performance based on the acoustic characteristics of your product. Please see the ParamMgr User guide Page 5 of 10
Operation 3 Operation Step 1: Setting Up the DEV-PC-1508B Demonstrator Board 1. Connect the Helicoil Antenna. (The antenna screws clockwise onto base). 2. Connect Lithium/Ion polymer battery here. 3. Set this jumper to MIC to use the microphone on the supplied headphones. 4. CSR recommends charging the battery for two hours prior to first use. To charge, connect USB cable to USB/Charge port on PCB and USB port on PC. 5. Insert headphone speaker jack. 6. Insert headphones MIC jack. Page 6 of 10
Operation Step 2: Preparing the Demonstrator Board for Bluetooth Pairing 7. Turn on power. 8. Press MFB button for five seconds. 9. Red and blue LEDs flash quickly together. The device is ready for Bluetooth pairing. Step 3: Streaming Music from the PC 10. Before inserting the Nanosira dongle into the PC, ensure that the demonstrator board is in Bluetooth pairing mode (see Step 2).This reduces the possibility of the dongle pairing with any other Bluetooth device in pairing mode. (1) 11. Insert the Nanosira dongle into a USB port on the PC. On first insertion the PC will display a message confirming that it has found new hardware. (2) 12. The dongle automatically pairs with the demonstrator board. Page 7 of 10
Operation 13. Open a media player on the PC (eg.,windows Media Player) and play an audio/music track. The audio/music track is streamed to the stereo headphones. 14. Use the volume buttons (vol- and vol+) on the demonstrator board to control the volume. The device will beep when the maximum/minimum volume is reached. 15. Use the F4 button to rewind/go back a track. Use the F3 button to fast forward/go forward a track. Use the F2 button to stop, pause and play tracks. (1) (2) If dongle pairs with the wrong device, open the avcontrol.exe program. Then with the demonstrator board in pairing mode (see Step 2). Select Discover New Headphones. The stored Bluetooth address clears, and the pairing process begins again. To uninstall the dongle from the PC, go to Control Panel and run the Add/Remove Hardware Wizard. Remove USB Audio Device from the hardware list. Step 4: Receiving a Mobile Phone Call Note: 16. Ensure the demonstrator board is in pairing mode (see Step 2). (1) 17. Go to the Bluetooth connectivity settings on the mobile phone. Ensure the phone s Bluetooth capability is on. 18. Search for the stereo_headset device. Select/pair with the stereo_headset device. Enter the passcode/pin 8888. (1) 19. When a telephone call is made to the mobile phone, music/audio streaming to the headset from the PC is paused, and the phone call received in the headset. When the phone call is completed/rejected, music/audio streaming is resumed. (1) If the mobile phone pairs with the wrong Bluetooth device, clear/edit the phone s list of paired Bluetooth devices, and search again. Page 8 of 10
Operation on DEV-PC-1442 4 Operation on DEV-PC-1442 If the stereo_headset application is downloaded to a BlueCore chip on a DEV-PC-1442 development board the following considerations apply: 1. The operating procedure is basically the same i.e. connect headphones and power supply, turn on the power, press and hold MFB (button #3) etc. Note: The application reads the battery level at 30 second intervals. If no batteries are installed on the board it will shut down, even if running from an external power source. To prevent this, the AIO_0_VOLTS jumper must be set to ADJ and the AIO_0 potentiometer needs to be set to maximum. 2. The application can be used with an external Wolfson CODEC or the internal CODEC depending on which module is fitted. It is important that the correct CODEC option is selected in the xide Project Properties before building and running the application: Wolfson CODEC (DEV-PC-1449B) To run the application using the Wolfson CODEC fit the DEV-PC1449B module and ensure the SPDIF/PCM jumpers are set to PCM. Internal CODEC and Passthrough board (DEV-PC-1517) To run the application using the internal CODEC fit the DEV-PC1517 module and ensure the LINE/MIC jumpers are set to MIC. Button allocation The default button configuration is: Button Number Function 3 MFB (Multi-function button) 4 Volume down 5 Volume up 6 Play/Pause 7 Forward 8 Back Page 9 of 10
Decoder Behaviour Settings 5 Decoder Behaviour Settings The codec library contains a range of settings that control the decoding behaviour of the DSP. The values defined for the variable $decoder_codec_stream_struc control the user experience, especially when the device is at the extreme limits of Bluetooth range. The parameters themselves are defined in the $decoder_codec_stream_struc source code found in C:\BlueLab\apps\stereo_headset \codec_decoder.asm. The numerical values can be simply manipulated in the source code to optimise the application as required. Note: The decoder project must be rebuilt in xide when any of these parameter values is changed in the source code. See the xide on-line help (DSP Reference guide/file List/codec/stream_decode) for further explanation. Page 10 of 10