BlueCore01 Falcon / BTL040 BlueTest Instruction Manual AN047 July 2001 CSR Unit 400 Cambridge Science Park Milton Road Cambridge CB4 0WH UK Registered in UK 3665875 Tel: +44 (0)1223 692000 Fax: +44 (0)1223 692001 http://www.csr.com bc01-an-047b © Copyright CSR 2000 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual Contents ............................................................................................................................... 2 Introduction .......................................................................................................................... 3 Getting Started Simple Tests ............................................................................................... 4 Simple Tests ..................................................................
BlueTest Instruction Manual BlueTest is a program that controls the on-chip built-in-self-test (BIST) software for RF testing. This document explains the facilities offered by the BIST. BlueTest does not execute any of these tests. It sends commands to BlueCore01 and/or enables the on-chip BIST, then reports any results. Several tests include entries for Related Test Spec Name. These refer to tests in the Bluetooth Special Interest Group (SIG) Test Specification for RF document, rev. 0.
BlueTest Instruction Manual BlueCoreTM01 Getting Started Run Bluetest.exe. Select a Protocol (Default BCSP). Select Port and Baud Rate (Default com1, 115200). bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual BlueCoreTM01 Simple Tests RF Test Mode Title PAUSE Summary Halts the current test and stops any radio activity. Test Arguments None Return Data None Exit Click on Reset Chip or enter a new command. PAUSE Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual RADIO STATUS Summary Returns the values from the radio control registers. Test Arguments None BlueCoreTM01 Title Internal transmission level External transmission level Internal receiver gain Return Data Internal receiver attenuation Local oscillator level IQ trim Signal/image ratio for IQ trim Exit Click on Reset Chip. RADIO STATUS Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual TXSTART Summary Enables the transmitter in continuous transmission at a designated frequency (LO Freq) with a designated output Power (Ext, Int) and designated tone modulation frequency (Modulat’n Freq). BlueCoreTM01 Title LO Freq (Carrier Frequency in MHz) = 2402 to 2480 Power (Ext, Int) = gain of external amplifier (if present) and internal Test Arguments amplifier.
BlueTest Instruction Manual Summary BlueCoreTM01 Title RXSTART1 Enables the receiver in continuous reception at a designated frequency (LO Freq) with a choice of low or high side modulation (hi-side ) and with a designated attenuation setting (RX Attenuation). Requires a second unit to be running TXSTART. Routes final IF to TEST_A pin.
BlueTest Instruction Manual RXSTART2 Summary Enables the receiver in continuous reception, at a designated frequency (LO Freq), with a choice of low or high side modulation (hi-side ) and with a designated attenuation setting (RX Attenuation ). Digitises the RSSI and sends report regularly to host. Requires a second unit to be running TXSTART.
BlueTest Instruction Manual Transmitter Only Title TXDATA1 Enables the transmitter, with a designated frequency (LO Freq) and output Power (Ext, Int). Note: TXDATA and RXDATA require the same Bluetooth address in each module for RXDATA to receive data transmitted by TXDATA. Use CFG_UAP_LAP to set the address used by the BIST. Payload is PRBS9 data. Summary Receiver is not operating. Packet type and duty cycle can be configured. Refer to Configuration Commands section.
BlueTest Instruction Manual BlueCoreTM01 Title TXDATA2 Enables the transmitter, with a simplified hop sequence designated by Country Code and sets output Power (Ext, Int). Payload is PRBS9 data (Default DH1). Summary Receiver is not operating. Packet type and duty cycle can be configured. Refer to Configuration Commands section.
BlueTest Instruction Manual BlueCoreTM01 Title TXDATA3 Enables the transmitter, with a designated frequency (LO Freq) and output Power (Ext, Int). Payload is sequence 101010.… Summary Receiver is not operating. Packet type and duty cycle can be configured. Refer to Configuration Commands section.
BlueTest Instruction Manual TXDATA4 BlueCoreTM01 Title Enables the transmitter with a designated frequency (LO Freq) and output Power (Ext, Int). Payload is sequence 1111000011110000.… Summary Receiver is not operating. Packet type and duty cycle can be configured. Refer to Configuration Commands section.
BlueTest Instruction Manual Title RXDATA1 Summary Enables the receiver, at a designated frequency (LO Freq) with a choice of low or high side modulation (hi-side ), and with a designated attenuation setting (RX Attenuation). Note: TXDATA and RXDATA require the same Bluetooth address in each module for RXDATA to receive data transmitted by TXDATA. Use CFG_UAP_LAP to set the address used by the BIST. The software counts the number of received packet and the number of payloads with correctable errors.
BlueTest Instruction Manual RXDATA2 BlueCoreTM01 Title Enables the receiver with a simplified hop sequence designated by Country Code , with a choice of low or high side modulation (hi-side ) and with a designated attenuation setting (RX Attenuation). Summary The software counts the number of received packets and the number of payloads with correctable errors. The payload itself is thrown away. The time between receive slots and report frequency can be set. Refer to Configuration Commands Section.
BlueTest Instruction Manual BIT ERR1 BlueCoreTM01 Title Enables the receiver at a designated frequency (LO Freq) with a choice of low or high side modulation (hi-side ) and with a designated attenuation setting (RX Attenuation ). Returns a set of reports to the host: g g g g Summary Number of data bits received (payload excluding FEC and CRC) Number of data bits that were in error.
BlueTest Instruction Manual BIT ERR1 (Continued) Related Test Spec Name RCV/CA/01/C and RCV/CA/02/C (sensitivity), RCV/CA/03/C (C/I performance), RCV/CA/04/C (blocking performance), RCV/CA/05/C (intermodulation performance), RCV/CA/06/C (maximum input level) BlueCoreTM01 Title LO Freq (Carrier Frequency MHz) = 2402 to 2480 Test Arguments hi-side = 0 or 1 (default = 0) RX Attenuation = 0 to 15 (default = 0) Note With a second unit, execute CFG UAP/LAP to set the Bluetooth address.
BlueTest Instruction Manual BIT ERR2 Summary Enables the receiver with simplified hopping defined by Country Code with a choice of low or high side modulation (hi-side ), and with a designated attenuation setting (RX Attenuation) as for RXDATA2 . BlueCoreTM01 Title Returns information on bit errors to the host as those given for BIT ERR1 .
BlueTest Instruction Manual Title LOOP BACK Summary Receives data on LO Frequency for data packets and then retransmits this data on the same channel at transmit level ‘lvl’. Highside reception is off and attenuation is set to 0. Expected reception frequency, txrx_freq (default = 12500 microsecs) with single slot packets returned lb_offs after receipt (default = 1875 microsecs). Defaults can be changed. See Configuration Commands section.
BlueTest Instruction Manual RX LOOP BACK Summary Transmit PRBS9 data on LO Frequency at transmit level and listen for transmissions in the next slot but one. Sends reports as RXDATA1 back to the host once per second (configurable). Highside reception is off and attenuation is set to 0. Default is single-slot packets (configurable with config_freq). This is designed to be used with a second unit in LOOP_BACK test mode.
BlueTest Instruction Manual BER LOOP BACK Summary Transmit PRBS9 data on LO Frequency at transmit level and listen for transmissions in the next slot but one. Sends reports as BIT ERR1 back to the host once per second (configurable). Highside reception is off and attenuation is set to zero Default is single slot packets (configurable with config_freq). Designed to be used with a second unit in loop_back test mode.
BlueTest Instruction Manual Title BlueCoreTM01 Configuration Commands CFG FREQ Sets three values used in deciding timing details of tests. (txrx_freq) sets the period in microseconds between TX and RX events in RXDATA, TXDATA, BIT ERR and LOOP BACK test modes. Default is 1250 (20 slots), maximum 65536. If passed as 0, current value unchanged. Tx/Rx Int Summary Loopback (lb_offs) sets the offset in microseconds between a reception event and retransmission of the data in loopback.
BlueTest Instruction Manual BlueCoreTM01 Title CFG PKT Sets packet type and size for transmitter tests. It has no effect on RX or LOOP BACK tests. (pkt-type) is the standard Bluetooth packet type, 0-15 (12-13 not allowed). Any other number sets default: DM5 for TXDATA1/2 , DH5 for TXDATA3/4 . Packet Type Summary (pkt_size) is the size of data in packet, from one to maximum for type. If zero sets default: 20 bytes for TXDATA1/2 , 192 bytes for TXDATA3/4 .
BlueTest Instruction Manual BlueCoreTM01 Title CFG BIT ERR Sets two values used in bit error measurements. Summary If Bits Count (bits_count) is non-zero, the target for total counters is set to this and total count resets at this value. If passed as 0 current value, unchanged. If Reset is not false and BIT ERR/2 is active, immediately resets the counters for the total statistics, but not over the last report period. Related Test Spec Name None Bits Count = 1 to 4.
BlueTest Instruction Manual BlueCoreTM01 Title CFG TX IF Sets the IF frequency used in transmit test modes. The target is zero, but the stack currently uses a default of -1MHz. Summary Offset is a signed integer with a range from +5 to –5, in units of 0.5MHz. Related Test Spec Name None Test Arguments IF Offset = -5 to +5 Return data None Exit Click on Reset Chip.
BlueTest Instruction Manual Summary BlueCoreTM01 Title CFG XTAL FTRIM Timing for BlueCore01 is controlled by a crystal. This requires trimming for new hardware. This command can be used to set a new trim value either before a radiotest command is started or while a test is already in operation; the change takes effect immediately. (xtal_ftrim) is a number between 0 and 63 inclusive. This is not a permanent change.
BlueTest Instruction Manual CFG UAP/LAP Summary Sets the UAP and LAP to be used in tests. BlueCore01 usually uses its own Bluetooth Device address to determine the access sync code, as if it is master of a piconet. The UAP and LAP are the only parts used. This command allows a special UAP and LAP to be used only in the test modes.
BlueTest Instruction Manual CFG ACC ERRS Summary The receiver uses a sliding correlator to determine that it has matched the start of a packet. The receiver allows up to # of errors (n_errs) before a match is rejected. Related Test Spec Name None Test Arguments # of errors = 0 to 15 (default = 10) Return Data None Exit Click on Reset Chip. BlueCoreTM01 Title CFG ACC ERRS Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual CFG IQ TRIM Summary Sets the IQ Trim (trim) value overriding the value calculated by the internal calibration algorithm. This command is not executed in normal use. Related Test Spec Name None Test Arguments IQ Trim = 0 to 511 (default 149 (hex)) Return Data None Exit Click on Reset Chip. BlueCoreTM01 Title CFG IQ TRIM Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual CFG TX TRIM Summary Sets the Active Member Address (am_addr) for the device to be used in the header of all test transmissions to am_addr. If the transmitter and receiver are used for the same test, both devices will normally have to be set to the same am_addr. Related Test Spec Name None Test Arguments Trim (am_addr) = 0 to 7, Default = 7 Return Data None Exit Click on Reset Chip.
BlueTest Instruction Manual CFG LO LVL Summary Sets the value of the Analogue Local Oscillator output level to LO level (lvl), overriding the value calculated by the internal calibration algorithm. This command is not executed in normal use. Related Test Spec Name None Test Arguments LO level = 0 to 15 (default = 13) Return Data None Exit Click on Reset Chip.
BlueTest Instruction Manual CFG TX COMP Summary Sets TX Offset (tx_offset) and LO Offset (lo_offset) for the firmware’s algorithm, which sets the maximum power. Run TXSTART before executing CFG TX COMP, otherwise there is no transmit power to set. Related Test Spec Name None BlueCoreTM01 Title TX Offset, minimum = 0 (default = 7) Test Arguments LO Offset, minimum = 0 (default = 8) Return Data None Exit Click on Reset Chip.
BlueTest Instruction Manual CFG SETTLE Summary Sets the period (radio_on_offset) in microseconds between turning the radio on and starting to transmit. Related Test Spec Name None Test Arguments Offset, minimum = 0 (default = 130) Return Data None Exit Click on Reset Chip. BlueCoreTM01 Title CFG SETTLE Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual Title Deep Sleep Summary Puts the chip into deep-sleep after a delay of half a second until woken by reset or any activity on USB or UART interface. Return Data None Exit Click on Reset Chip or another routine being called. BlueCoreTM01 Built-in-Self Test (BIST) Routines Deep Sleep Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual BlueCoreTM01 Title PCM LB Sets the PCM into LOOP BACK mode, whereby the data read from the PCM input is output again on the PCM out pin. The LOOP BACK is via software and the buffers so there is a pipeline delay. The PCM port mode is selectable. Summary If PCM Mode = 0, BlueCore01 is slave in normal 4-wire configuration If PCM Mode = 1, BlueCore01 is master in normal 4-wire configuration If PCM Mode = 2, BlueCore01 is master in Manchester encoded, 2-wire configuration.
BlueTest Instruction Manual BlueCoreTM01 Title PCM EXTERNAL LOOPBACK Sets the PCM into external LOOPBACK mode, whereby the data written to the PCM output is read again on the input pin. A check is made that the data read back is the same (up to usual codec transformations) as that written. The LOOP BACK consists of 512 bytes of random data.
BlueTest Instruction Manual SETTLE Summary Builds the LUT as normal, then does a step from Start Channel (chan1) to Finish Channel (chan2), while the synthesiser is running. It digitises the synthesiser (LO_TUNE) error voltage at intervals of 10 – 20µs over the next 200µs and writes the results to an array.
BlueTest Instruction Manual IF RESP Summary Sweeps transmit IF carrier frequency over designated number of samples (n_samples) within range (0-3MHz maximum) and measures RSSI. Returns table of RSSI value against frequency offset to characterise IF filter response. No. of Samples(n_samples) = 0 to 65535 Test Arguments Start BlueCoreTM01 Title (default = 10) (lo_offset) = 0 to 3MHz (default 0.001 MHz) (hi_offset) = 0 to 3 MHz (default = 3.000 MHz.
BlueTest Instruction Manual RF IQ MATCH Summary Measures RF IQ match by injecting test signal, sweeping IQ trim and measuring RSSI for on-channel and image. Returns array of IQ measurements against IQ trim. Return Data An array of 16 IQ measurements against IQ trim. Exit Click on Reset Chip. BlueCoreTM01 Title RF IQ MATCH Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual IF IQ MATCH Summary Measures IF IQ match by injecting test signal, sweeping IQ trim and measuring RSSI for on-channel and image. Returns array of IQ measurements against IQ trim. Return Data An array of 16 IQ measurements against IQ trim. Exit Click on Reset Chip. BlueCoreTM01 Title IF IQ MATCH Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual VCO TRIM Summary Produces look up table of VCO trim versus hop frequencies for a designated country hop sequence. Test Arguments Country Code Return Data An array of 79 values for VCO trim if Country Code is 0 otherwise 23 values. Exit Click on Reset Chip. BlueCoreTM01 Title (cc) = 0 to 3 (default = 0) VCO TRIM Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual BlueCoreTM01 Miscellaneous Test Routines Title Set PIO Summary Enables designated PIO lines as outputs and sets them as desired. To be used with caution since it over-rides previous settings. Bit 0 corresponds to PIO[0], and a logic one enables it as an output. Mask (default = 11111111) Test Arguments Values (default = 00000000) Return Data None Exit Click on Reset Chip.
BlueTest Instruction Manual Read PIO Summary Reads the logic state of the PIO pins. Valid whether they are inputs or outputs. Return Data PIO Lines (uint8) sent over BCSP channel 3, giving the logic level at each of the pins. Exit Click on Reset Chip. BlueCoreTM01 Title READ PIO Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual BUILD LUT Summary Builds the radio’s channel LO_TRIM frequency look-up table then returns it to the host. Return Data A sequence of 79 uint16 numbers, containing the calibration data just generated. Exit Click on Reset Chip. BlueCoreTM01 Title BUILD LUT Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual READ LUT Summary Reports the radio’s channel LO_TRIM frequency look-up-table (LUT) to the host. Return Data A sequence of 79 (uint16) numbers containing the contents of the look up table (LUT) for Europe and North America or a sequence of 23 (uint16) numbers for other countries. The upper byte contains the transmitter trim and the lower byte contains the receiver trim. Exit Click on Reset Chip.
BlueTest Instruction Manual PROVOKE FAULT Summary Provokes a fault mode in the on-chip processor. Return Data None BlueCoreTM01 Title Fault (hex) = 0 to 2b (default = 0) Test Arguments Note: Contact CSR for more information about using fault modes. Exit Click on Reset Chip. PROVOKE FAULT Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual READ CHIP VERSION Summary Reads the hardware ID and firmware version of device. Return data Hardware ID and firmware version. BlueCoreTM01 Title READ CHIP VERSION Example Display bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual Select PS from the main menu. Enter a Key number. To read a PS Key value, click on Read. The setting displays in the Value field. To change a PS key setting, enter a different value in the Value field and click on Set. PERSISTENT STORE KEY Example Display To exit, click on OK. bc01-an-047b © Copyright CSR Ltd 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual BIST Parameters Name Type Min Max Meaning lo_freq uint16 2402 2480 Bluetooth channel frequency in MHz lxlvl uint16 0 63 Internal amplifier power setting.
BlueTest Instruction Manual Type Min chan1 uint16 0 78 Bluetooth channel number chan2 uint16 0 78 Bluetooth channel number n_samples uint16 0 65535 Number of samples in range from min to max for IF filter response test lo_offset uint16 0 65535 Min offset in 1/4096MHz for IF filter response test hi_offset uint16 0 65535 Max offset in 1/4096MHz for IF filter response test output_mask Uint8 0 FF Bit mask for PIO; 0=input, 1=output output Uint8 0 FF Bit values for PIO output
BlueTest Instruction Manual Known Software Issue(s) in BlueTest Version 1.4 (a) Pressing the Reset Chip button on the GUI while data is being transmitted sends a hardware reset command to the chip and restarts the serial stack software. Closing the GUI sends a hardware reset command to the chip.
BlueTest Instruction Manual Combining Tests Using a Second Unit READ CHIP VERSION PROVOKE FAULT READ PIO SET PIO READ LUT BUILD LUT VCO TRIM IF IQ MATCH RF IQ MATCH IF RESP SETTLE PCM LB PCM EXT LB DEEP SLEEP BER LOOP BACK LOOP BACK RX LOOP BACK BIT ERR2 BIT ERR1 RXDATA2 RXDATA1 RXSTART2 TXDATA3 TXDATA4 RXSTART TXDATA2 TXDATA1 TXSTART PAUSE RADIO STATUS SECOND UNIT Several tests require a second BlueCore01 unit to be operating to provide a test signal for the equipment under test
BlueTest Instruction Manual Configuration Commands Available During Tests CFG SETTLE CFG TX COMP CFG LO LVL CFG TX TRIM CFG IQ TRIM CFG ACC ERRS CFG UAP/LAP CFG XTAL FTRIM CFG TXIF CFG BIT ERR CFG PKT CFG FREQ Configuration Commands Particular configuration commands are appropriate to use during certain tests. The following table is a quick reference guide to which configuration commands can be used during which tests.
BlueTest Instruction Manual Bluetooth Packet Types Use the CFG FREQ command to set the frequency as appropriate to the size of the packet type being used in the test. Extracted from Packet Types section of Specification of the Bluetooth System, v1.1, dated 1 December 2000. bc01-an-047b © Copyright CSR 2001 This material is subject to CSR’s non-disclosure agreement.
BlueTest Instruction Manual CSR’s products are not authorised for use in life-support or safety-critical applications. Trademarks and Patents BlueCore is a trademark of CSR. Bluetooth and the Bluetooth logos are trademarks owned by Bluetooth SIG Inc, USA and licensed to CSR. CSR reserves the right to make technical changes to its products as part of its development programme. For further information, refer to the following document(s): Document Reference Bluetooth (SIG) Test Specification - RF Rev 0.
BlueTest Instruction Manual Date: Revision: 13 SEP 00 a 16 JUL 01 b BlueCoreTM01 Record of Changes Reason for Change: Original publication of this document (CSR reference: bc01-an-047a). Revision and addition of tests and appendices BlueTest Instruction Manual AN047 July 2001 bc01-an-047b © Copyright CSR 2001 This material is subject to CSR’s non-disclosure agreement.
Federal Communication Commission Interference Statement This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications.
This device is intended only for OEM integrators under the following conditions: 1) The transmitter module may not be co-located with any other transmitter or antenna, As long as 1 condition above are met, further transmitter test will not be required. However, the OEM integrator is still responsible for testing their end-product for any additional compliance requirements required with this module installed (for example, digital device emissions, PC peripheral requirements, etc.).
Canadian Regulatory Wireless Notice This device complies with RSS-210 of the Industry Canada Rules. Operation is subject to the following two conditions: 1) this device may not cause interference and 2) this device must accept any interference, including interference that may cause undesired operation of the device IMPORTANT NOTE: IC Radiation Exposure Statement: This equipment complies with IC radiation exposure limits set forth for an uncontrolled environment.