_äìÉi~Ä» BlueLab™ v3.2 Combined AV Headset User Guide May 2005 CSR Churchill House Cambridge Business Park Cowley Road Cambridge CB4 0WZ United Kingdom Registered in England 3665875 Tel: +44 (0)1223 692000 Fax: +44 (0)1223 692001 www.csr.com blab-ug-005Pa © Cambridge Silicon Radio Limited 2005 This material is subject to CSR’s non-disclosure agreement.
Contents Contents 1 Introduction .................................................................................................................................................... 3 2 Target Audience ............................................................................................................................................. 4 3 Target Hardware.............................................................................................................................................
Introduction 1 Introduction This document provides information on the Combined AV Headset application that accompanies BlueLab™ v3.2. This document describes how to compile, download and run the application. blab-ug-005Pa © Cambridge Silicon Radio Limited 2005 This material is subject to CSR’s non-disclosure agreement. Page 3 of 24 _äìÉi~Ä»=îPKO=Combined AV Headset User Guide= The application demonstrates to product developers the features of _äìÉ`çêÉ»PJjìäíáãÉÇá~.
Target Audience 2 Target Audience The target audience for this document is hardware and software developers using the Combined AV Headset application that accompanies BlueLab v3.2 as a basis for their own product developments. _äìÉi~Ä»=îPKO=Combined AV Headset User Guide= blab-ug-005Pa © Cambridge Silicon Radio Limited 2005 This material is subject to CSR’s non-disclosure agreement.
Target Hardware 3 Target Hardware The target hardware is CSR’s BlueCore3-Multimedia Development Board (DEV-PC-1307 Rev C). The user will also need a suitable AV source capable of providing a Bluetooth® wireless technology-compliant SBC encoded audio stream. Note: CSR’s BlueCore3-Multimedia Development Board (DEV-PC-1307 Rev A) is not suitable to run this application. The microphone input circuit does not work on this revision of the board.
BlueLab Installation 4 BlueLab Installation This chapter provides guidance on the installation of xIDE as supplied on the BlueLab CD-ROM. 4.1 Prerequisites BlueLab xIDE should be installed on a PC running Windows 2000 or Windows XP. Note: A typical BlueLab installation requires 125Mbytes and each application built will need approximately 10Mbytes of additional space. A minimum of Windows Power User privileges is required to install the software correctly.
BlueLab Installation 4.2.1 MP3 Support The Digital Signal Processor (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. 4.2.2 Wolfson external CODEC support The Combined AV application shipped with BlueLab v3.2 includes support for the Wolfson (WM8731) CODEC.
Combined AV Headset Application 5 Combined AV Headset Application When BlueLab v3.2 has been successfully installed, the Combined AV Headset application can be built and executed using the application source code, shipped with BlueLab v3.2. This section guides you step-by-step through the process of building and executing this application.
Combined AV Headset Application Step 2: Start xIDE Double-click on the xIDE icon on your desktop or from the Start / Programs menu. If previous application development work has been carried out on the BlueCore3-Multimedia Development Board, CSR recommends that you restore the factory setting of the BlueCore chip. A .psr file has been added to BlueLab v3.2 to simplify this process, for further information see section 5.3.
Combined AV Headset Application Step 3: Open sbc_decode Workspace Select Project / Open Workspace, navigate to \BlueLab\apps\av_headset_hfp and select sbc_decoder.xiw. Step 4: Optional – set streaming options Three options are defined in the code to control the latency/robustness of the DSP buffer operation. By default this is set to maximum robustness (STREAMING_MAX_RANGE_AND_ROBUSTNESS). If this option is acceptable proceed to step 5. Note: Only one option can be defined when building the project.
Combined AV Headset Application To implement one of these options add the required definition to the Define symbols field in the Project Properties dialogue: 4.1. Select Project \ Properties The Properties dialogue appears: 4.3. Enter the required definition to the Define symbols field Step 5: Build sbc_decoder DSP Application Select Build / Build or press F7 to build the sbc_decoder DSP application.
Combined AV Headset Application Step 6: Build av_headset_hfp Application Select Build / Build menu or press F7 to build the av_headset_hfp VM application. Step 7: Download and Execute Combined AV Headset Application Select Run from the Debug menu or press F5 to download and execute the application. The application image (including the DSP code built in Step 3) will be downloaded to the BlueCore3-Multimedia development board connected to your PC. 5.
Combined AV Headset Application 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 5.1 Step 4. Once the mp3_decode application has been built go back to section 5.1 step 3 and continue with building the av_headset_hfp application.
Combined AV Headset Application The PSTool application dialog appears: _äìÉi~Ä»=îPKO=Combined AV Headset User Guide= 3. Select Merge / File menu: An ‘Open Persistent Store File’ dialog appears: blab-ug-005Pa © Cambridge Silicon Radio Limited 2005 This material is subject to CSR’s non-disclosure agreement.
Combined AV Headset Application 4. Browse to the location of the factory_restore.psr file. The file is located in the BlueLab install directory ……\tools\bin\factory_restore.psr. 5. Select the file and click Open. The PSkeys that may result in unexpected chip behaviour, will be restored to their factory defaults. Note: This may take a few minutes.
Pairing 6 Pairing The Combined AV Headset Application is now running on the BlueCore3-Multimedia Demonstration Board. To stream audio and connect a mobile telephone to the headset, it needs to be paired. Stop the application by pressing Shift-F5. This stops the application debugger and halts operation. Pairing To make the headset discoverable for 60 seconds, hold down VOL- and VOL+ and press the Reset button. The blue LED will begin flashing more rapidly indicating the device is discoverable.
Operation 7 Operation 7.1 Modes of Operation The actions performed by the buttons change dynamically, depending on the current mode of operation. 7.1.1 HFP/HSP Modes When initiating a Service Level Connection (SLC), the application will tries to connect using the HFP profile. If the handset does not support HFP, it tries HSP and, if that fails, the attempt to connect is aborted. When the handset is connecting to the headset it accepts the connection for whatever profile the handset chooses.
Operation 7.3.1 AV Mode Table 7.1 shows how the buttons operate while the headset is in AV Mode. Long presses have no effect, except for the Volume buttons. AV Mode VOL+ Pressed Vol Up VOL+ Held (Acted on every 1s) Vol Up VOL- Pressed Vol Down VOL- Held (Acted on every 1s) Vol Down PLAY/PAUSE Pressed Play/Pause music STOP Pressed Stop music FORWARD Pressed Skip track forwards BACKWARD Pressed Skip track backwards _äìÉi~Ä»=îPKO=Combined AV Headset User Guide= Button Table 7.
Operation 7.3.2 HFP + AV Table 7.2 shows how the buttons operate while the headset is in HFP Mode. It shows how the buttons operate depending on the state of the headset. Table entries in italic describe the button functionality assuming an active AV stream. Button/State Init Ready Connecting Connected Active Call Outgoing Call If there is no AV source connected replace avrcp calls with the non-italic calls Play/Pause Play/Pause Play/Pause Play/Pause X X X X X X X Voice Recog.
Operation 7.3.3 HSP + AV Table 7.3 shows how the buttons operate while the headset is in HSP Mode. It shows how the buttons operate depending upon the state of the headset. Table entries in italic describe the button functionality assuming an active AV stream.
Decoder behaviour settings 8 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. manipulated in the source code to optimise the required. Note: The decoder project must be rebuilt in xIDE when any of these parameter values is changed in the source code.
Document References Document References Document Reference BlueLab v3.2 Combined AV Headset Release Note blab-srn-002Pa BlueLab v3.2 Release Note blab-srn-001Pa BlueLab v3.2 ParamMgr User Guide (for CVC only) Blab-ug-007Pa _äìÉi~Ä»=îPKO=Combined AV Headset User Guide= blab-ug-005Pa © Cambridge Silicon Radio Limited 2005 This material is subject to CSR’s non-disclosure agreement.
Document References Terms and Definitions BlueCore™ Group term for CSR’s range of Bluetooth wireless technology chips BlueLab™ CSR’s development toolset for building applications to run in the firmware’s VM ® Set of technologies providing audio and data transfer over short-range radio connections CSR Cambridge Silicon Radio CVC™ Clear Voice Capture DSP audio processing performing AEC and NR DSP Digital Signal Processor HFP Handsfree Profile HSP Headset Profile MMI Man Machine Interface SB
Document References Document History Revision Date a 28 MAY 05 Reason for Change Original publication of this document (CSR reference blab-ug-005Pa) Combined AV Headset User Guide blab-ug-005Pa May 2005 ® Unless otherwise stated, words and logos marked with ™ or are trademarks registered or owned by Cambridge ® Silicon Radio Limited or its affiliates. Bluetooth and the Bluetooth logos are trademarks owned by Bluetooth SIG, Inc. and licensed to CSR.