Cambridge Silicon Radio BCES301199-1 User Manual BC01 um 001c

Cambridge Silicon Radio Ltd BC01 um 001c

CASIRA User Manual

BC01-um-001cBlueCore01CASIRA Bluetooth Development KitUser ManualAN007 Cambridge Silicon Radio Ltd Unit 300, Science Park, Milton Road, Cambridge CB4 0XL England. Registered in England UK 3665875Tel:          Development kit support +44 (0)8709 410249General Enquiries +44 (0)1223 424167Fax: +44 (0)1223 424178E-mail:   Development kit support: ev-support@CSR.com             Software Bug Reports: bcswbugs@CSR.com Sales:  sales@CSRadio.com http://www.CSR.com
BC01-um-001c                                                                                                             Page 2 of 26Change HistoryVersion Date Commenta20 APR 2000 First draft from standard literatureb12 MAY 2000 First Release Alpha 5c25 AUG 2000 Update; Note added on page 20
BC01-um-001c                                                                                                             Page 3 of 26CONTENTS1DEFINITIONS 41.1 Acronyms and Abbreviations 42HARDWARE OVERVIEW. 63CASIRA BLUETOOTH DEVELOPMENT KIT 84HARDWARE SETUP 95OVERVIEW OF THE BLUECHAT APPLICATION. 106INSTALLING THE BLUECHAT APPLICATION 117CONFIGURING THE BLUECHAT APPLICATION 128ESTABLISHING AN ACL CONNECTION 139SENDING TEXT BETWEEN SYSTEM UNITS OVER AN ACLCONNECTION 1510 SENDING A DATA FILE BETWEEN SYSTEM UNITS OVER AN ACLCONNECTION 1511 DISCONNECTING AN ACL CONNECTION 1712 INITIATING AND BREAKING AN AUDIO CONNECTION 17SENDING CUSTOM HCI COMMANDS. 1814 FLASH LOADER INSTRUCTIONS. 1814.1 Installing the CSR_Flashloader program. 1914.2 Connecting the SPI lead for Firmware updates. 1914.3 Running CSR_Flashloader. 2015 CAMBRIDGE CONSULTANTS LIMITED COMMAND AND WATCHWINDOW APPLICATION. 2516 TRADEMARK ACKNOWLEDGMENTS 2517 APPENDIX: KNOWN FIRMWARE / SOFTWARE DEFICIENCIES ATALPHA RELEASE: 26
BC01-um-001c                                                                                                             Page 4 of 261 DEFINITIONSBluetooth A set of technologies providing short range audio and data transfer overradio connections.BlueCoreSingle chip Bluetooth System from CSR.1.1 Acronyms and AbbreviationsADC Analogue to Digital ConverterAGC Automatic Gain Control – part of the radioAPI Application Program Interfacebc01 BlueCoreTM01 – CSR Bluetooth chipBCSP BlueCoreTM Serial ProtocolBIST Built-in Self TestCCL Cambridge Consultants LtdCVSD Continuously Variable Slope Delta (modulation)DAC Digital to Analogue ConverterDLL Win32 Dynamic Link Library.EXE Win32 executableGUI Graphical User InterfaceHCI Host Controller InterfaceISM Industrial, Scientific and Medical – unlicensed radio band at 2.4 GHzL2CAP Logical Link Control and Adaptation Protocol – a Bluetooth protocolstack layerLM Link Manager – a Bluetooth protocol stackLNA Low Noise AmplifierPA Power AmplifierPCM Pulse Coded Modulation – digitised audio sample streamPIO Parallel input/outputRF Radio FrequencyRFCOMM Serial cable emulation protocol – a Bluetooth protocol stack layerScheduler The  BlueCore01 operating kernel. A simple co-operative multi-tasking scheduler with event queues and memory pool management.SCO Synchronous Connection Oriented
BC01-um-001c                                                                                                             Page 5 of 26SDD Service Discovery Database– an element of  BluetoothSDP Service Discovery Protocol a Bluetooth protocol stack layerSPI Serial Peripheral Interface – a synchronous, single master, serialinterfaceUSB Universal Serial Bus
BC01-um-001c                                                                                                             Page 6 of 262 HARDWARE OVERVIEW.The CSR CASIRA Bluetooth Development kit has been developed primarily to assistCSR’s customers in the development of host-side software and external radio circuitsoutside the BlueCoreTM ICs. It will also be used to assist CSR’s customers to evaluatethe BlueCoreTM chips. The Evaluation system consists of two identical modules thatallow the user to send both data and voice over a Bluetooth link. Each unit is drivenfrom a PC for data connections and from a headset (supplied with the kit) for voiceconnection.Each unit consists of a motherboard and a Bluetooth radio transceiver daughter cardmodule.  The first radio module shipped with the system uses the CSR  BlueCore01chip and also includes the front-end filter, an LNA, a PA, a TX/RX switch, a flashmemory, a crystal and an external (connectorised and detachable) antenna. The radiomodule plugs into the motherboard. Hardware upgrades will be shipped in the formatof a new replacement radio module when new versions of the CSR  BlueCore ICproduct range become available. The motherboard provides a serial port (RS232), SPIport, USB port, PCM port, power supply socket and audio socket.The on-board CODEC can be used for the voice interface although it is possible toconnect direct to the PCM connection via the internal Molex connector. The signal                   One CASIRA Bluetooth Development kit UnitHeadsetSocket RS232Port USBPortPowerSocketPower LED
BC01-um-001c                                                                                                             Page 7 of 26levels on the RS232 port conform to the RS232 standard and are generated on themotherboard. It is also possible to connect to the BlueCoreTM01 UART using CMOS(3V) levels using the second internal Molex connector on the 3V UART/Serial PCMport. The USB port is type “B”.USB Functionality.First systems do not support USB. The first new  BlueCoreTM radio module upgradewill support USB. This is expected to be available in Q3 2000.Note: When using USB the UART CTS and UART RTS pins are used for theUSB- and USB+ respectively. Hence it is not possible to use one unit withboth USB and RS232 connections operating simultaneously.Eight LED’s are provided on each module and the function of each is as followsLED 0 Radio RX ON LED  1 Radio TX ONLED 2 ACL/LMP data received LED  3 ACL/LMP data transmittedLED 4 SCO data received LED  5 SCO data transmittedLED 6 UART data received LED  7 UART data transmittedSPI Interface3VUART/Serial PCMPortLEDsResetPIO InterfaceDetachableRadioModuleMotherboardInside the CASIRA BluetoothDevelopment kit
BC01-um-001c                                                                                                             Page 8 of 263 CASIRA BLUETOOTH DEVELOPMENT KITThe following items are included in the CASIRA Bluetooth Development  kitQty Description1Carry-case with handle and external sleeve2CASIRA Bluetooth Development  Kit Units2Power supplies2SPI Programming leads25 Metre long  RS232 leads2Country specific Mains adapter plugs2Audio Headsets1CSR CASIRA Bluetooth Development  kit CDROM containing documentationand software.1CCL BlueStack SDKlite CDROM containing documentation and software.
BC01-um-001c                                                                                                             Page 9 of 264 HARDWARE SETUPRemove the power supplies and the appropriate mains power connectors from thecarry case and push the mains connector onto the power supplies, making sure thatthey are fully pressed home. Plug these two power supplies into the mains but DONOT connect the DC output connector to the  BlueCore Evaluation System unitsyet. The power supplies should be connected AFTER the BlueChat application isinstalled and configured.Remove the two serial cables from the carry case and connect one end of each to theCOM ports on two PC’s (WindowsTM98 / NT). Connect the other ends of the serialcables to the COM1 port of each of the CASIRA Bluetooth Development kit Units.Remove the two headsets from the carry case and connect one to each of the CASIRABluetooth Development kit Unit headset sockets.
BC01-um-001c                                                                                                             Page 10 of 265 OVERVIEW OF THE BLUECHAT APPLICATION.The CSR CASIRA  Bluetooth Development kit is supplied with a PC program calledBlueChat that allows the user to send text, send a file and set up a voice connectionbetween the two system units.A single window display gives a constant report on the  Bluetooth radio link via awatch window. The communication between the PC and the CASIRA BluetoothDevelopment kit Units is at the HCI level.
BC01-um-001c                                                                                                             Page 11 of 266 INSTALLING THE BLUECHAT APPLICATIONThe BlueChat Application allows the user to issue commands via the RS232 port of aPC running under Windows™98 or Windows™ NT to the Development systemunits. The software must be installed from the CSR CASIRA  Bluetooth Developmentkit CDROM provided.System Requirements for the BlueChat Application- Pentium processor-based personal computer- Microsoft Windows™98  or Windows™ NT v4.0(service pack 3 or later)- 16 MB of RAM (24 MB recommended)- 10 MB of available hard disk spaceInstallation instructions:1 Insert the CASIRA Bluetooth Development kit CDROM into your CDROMdrive.2 From your CDROM in the “software\host\BlueChat”folder run the file“install.exe” and change the path if required, Click “unzip”, Click “OK”and finally Click “CLOSE” to complete the installation.3 From your “BlueChat” folder create a shortcut for BlueChat.exe and placeit on your desktop or taskbar for convenience as required.BlueChat should now be installed and ready for use.
BC01-um-001c                                                                                                             Page 12 of 267 CONFIGURING THE BLUECHAT APPLICATIONStart the BlueChat Program on each PC by double Clicking on the BlueChat shortcuton your desktop, or on the BlueChat Icon in the BlueChat folder.A port selection window will appear:Click on the drop down menu button and select the COM port that you connected theserial cable to for that PC.Click “OK” when your selection is complete.Up to two BlueChat windows may be open at any one time allowing a single PC to beused for both evaluation modules. In this mode a different COM port must be selectedin each window and each of the CASIRA Bluetooth Development kit Units must beconnected to the appropriate COM port.Now  plug in the the power supplies to the CASIRA Bluetooth Development kitSystem Units. The following screen should appear after a few seconds with theassociated messages to show that each PC has connected to the system unit:
BC01-um-001c                                                                                                             Page 13 of 268 ESTABLISHING AN ACL CONNECTIONFirst make sure that the Xfer type is still set at the default power-on value of ‘data’.Then select the Role of one unit to be the slave by selecting the slave button:Selecting a slave causes the first unit to enter inquiry scan mode:Next, selecting the role of the other system unit to be master will now cause an“Inquiry” to be initiated by the masterThe master now collects Bluetooth addresses from Slave modules that can been foundon the radio channels.The “Host Controller Interface Message” window will give information on the resultsof the Inquiry. This procedure should take approximately 10 seconds to complete. Itis usual to see 8 responses after inquiry scan is complete :The user must ensure that the CASIRA Bluetooth Development kit Units are NOTboth set to the same RoleWARNING –See appendix for a known softwaredeficiency after initial power up of System Units
BC01-um-001c                                                                                                             Page 14 of 26On completion of the Inquiry, the addresses of any Slaves found will be shown in the“Bluetooth Device Addresses” list. Next select a Slave from the list as shown below.It is only necessary that the the address is shown (selected) in the “Connect to:”window, it is NOT necessary to hit return at this point.Next click on the Connect button at the masterIf only one slave is discovered then its address automatically appears in the “Connectto:” window and it is then only necessary to click on the “Connect” button.The ACL link to the Slave is now set up and the following results are shown at themaster
BC01-um-001c                                                                                                             Page 15 of 269 SENDING TEXT BETWEEN SYSTEM UNITS OVER AN ACLCONNECTIONOnce the connection between the two modules has been completed text data can besent by clicking on the Chat link window and typing a message. The text shouldappear in the Chat link window at the other BlueChat PC. Text transfer isbidirectional between master and slave (but remember to click on the “Chat link“window first before typing at the other end)10 SENDING A DATA FILE BETWEEN SYSTEM UNITS OVER ANACL CONNECTIONData may be sent over ACL connection by clicking on the File Transfer selectbutton, at either the master or the slave
BC01-um-001c                                                                                                             Page 16 of 26Select a file to transfer from your chosen directory :Finally press the Send button to transmit the file. A progress bar is shown at duringthe transmission and when completed the file transfer information is given.
BC01-um-001c                                                                                                             Page 17 of 2611 DISCONNECTING AN ACL CONNECTIONPressing the Disconnect button at either system unit will stop the command transferand close down the ACL connectionIt is necessary to re-establish the roles of master and slave after a disconnect.However the BlueChat application will remember the Bluetooth device addressesfrom previously discovered slaves so it is not necessary to repeat an Inquiry before re-establishing an ACL connection.12 INITIATING AND BREAKING AN AUDIO CONNECTIONAt startup the default Xfer type is Data.The audio connection can be established by selecting the Audio button after an ACLconnection has first been esatblishedAudio communication between the two headsets is now  enabled.To disconnect an audio connection press the Disconnect button.It is necessary to re-establish the roles of master and slave after a disconnect.However the BlueChat application will remember the Bluetooth device addressesfrom previously discovered slaves so it is not necessary to repeat an Inquiry before re-establishing an ACL connection. After a new connect the audio connection should bere-established.
BC01-um-001c                                                                                                             Page 18 of 2613 SENDING CUSTOM HCI COMMANDS.By editing Bluechat.HCI it is possible to add your own custom HCI commands these may betransmitted across the Bluetooth link. This is achieved by pulling down the HCI commandmenu by right clicking  on the BlueChat toolbar and selecting “HCI commands” as shownabove.14 FLASH LOADER INSTRUCTIONS.The  CASIRA  Bluetooth Development kit is pre-configured with firmware on theBlueCoreTM chips that allows data and voice communication. When new firmwareupgrades become available from CSR the user will need to install and use the Flashloader Program supplied with the system to upload the new firmware into theSystems Units.The Flash loader program “CSR_Flashloader” allows the user to download to theevaluation kit Flash memory. The first task of the program is to load into internalRAM a small boot loader that takes data from the UART and stores the data to theexternal Flash memory. Once the Flash upload is complete and verified the  bootloader in RAM will be over written by the executed program.
BC01-um-001c                                                                                                             Page 19 of 2614.1 Installing the CSR_Flashloader program.System Requirements for Installing the Flash Loader Application- Pentium processor-based personal computer- Microsoft WindowsTM98 or WindowsTM NT v4.0 (service pack 3.0 or later)- 16 MB of RAM (24 MB recommended)- 10 MB of available hard disk space which includes room for the Firmware binaryfiles.Installation instructions1. Insert the CASIRA Bluetooth Development kit CDROM into your CDROMdrive.2. From your CDROM run the “install.exe” file from the“software\host\CSR_Flashloader” folder which will created on your harddrive.3.  From your CSR_Flashloader directory create a shortcut forCSR_Flashloader.exe and place it on your desktop or taskbar as requiredfor convenience.4. Select close from the unzip menu to exit.14.2 Connecting the SPI lead for Firmware updates.Before using the CSR_Flashloader program the SPI programming lead must beconnected to the Evaluation module.Commence as follows:1 Remove all leads from the Evaluation module.2 Undo the three lid retaining screws in the base of the module.3 Connect the SPI programming lead to the connector marked “CN16 SIF”.4 Connect the other end of the lead to the PC printer port.5 Connect the DC connector to the “pwr” socket and verify the power LED islit.
BC01-um-001c                                                                                                             Page 20 of 26The unit is now ready for Flash Memory programming to commence.14.3 Running CSR_Flashloader.Click on the CSR_Flashloader shortcut that you created previously.With the application running the display should be:Click on the Stop XAP button to stop the internal processor .NOTE: If you experience any problems running this software  from alaptop/notebook PC remove the link CN18 from the Casira motherboard asillustrated above.SPI connector      CN18[Nearest thereset button]
BC01-um-001c                                                                                                             Page 21 of 26Click on the Upload Program Code button to select the file to upload.A new dialog box is displayed.Select the file to upload and click on the Open button.
BC01-um-001c                                                                                                             Page 22 of 26On completion of the upload the result window will be as shown below.If the file to be uploaded is the same as the file already in Flash then the window willbe as follows:Finally we need to verify the code that was uploaded.Click on the Verify Program Code button .
BC01-um-001c                                                                                                             Page 23 of 26A file select dialog box is displayed.Select the file to verify against.Verification of the uploaded code is shown in the information window.
BC01-um-001c                                                                                                             Page 24 of 26Now press the Start button or power cycle the CASIRA  Bluetooth Development kitUnit for the new code to take effect.Selct “Quit” when loading and verification is complete.
BC01-um-001c                                                                                                             Page 25 of 2615 CAMBRIDGE CONSULTANTS LIMITED COMMAND AND WATCHWINDOW APPLICATION.The Command and Watch Window Application allows the user to issue commandsvia the RS232 port of a PC running under Windows™ NT 4.0 to the Evaluationsystem. The software allows the user to generate scripts that may be used as simpleapplications using the CCL BlueStack (upper layers host software). This softwaremust be installed from the separate CDROM provided by CCL in the CASIRABluetooth Development kit carry case.Installation, configuration, operating instructions and further documentation on theCambridge Consultants Limited Command and Watch Window application, togetherwith BlueStack are included on the CCL CDROM.16 TRADEMARK ACKNOWLEDGMENTSBlueCoreTM is a trademary of Cambridge Silicon Radio Ltd.BlueStack is a British-registered trademark of Cambridge Consultants Ltd(GB2205395)WindowsTM is a trademark of the Microsoft Corportation
BC01-um-001c                                                                                                             Page 26 of 2617 APPENDIX: KNOWN FIRMWARE / SOFTWARE DEFICIENCIESAT ALPHA RELEASE:1. The operation of the System Units can be unreliable when first operated. If theinquire or connect fails during the first BlueChat session it is necessary to stopand start the session again to correctly establish Bluetooth links (rather thanrepeatedly select the Connect or Inquire buttons). It some cases it is necessary torepeat this procedure until a connection is successfully established.2. If a disconnect is made during a file transfer, the re-establishment of a connectioncan result in a failure of the BlueChat Session.3. Repeated switching between Audio and Data Xfer types results in a failure of theBlueChat session.4. If a failure of the BlueChat session occurs it is often necessary to cycle the powersupply or push the (internal) reset button of the system unit as well as restart theBlueChat session

Navigation menu