background image

 

 

Page 20 of 28 

© Cambridge Silicon Radio Limited 2014 

CS-310152-UGP1 

 

www.csr.com 

BlueC

or

e

 A

D

K

 3

.0 

Subw

oo
fer

 U

s

er

 G

uide

 

4.7. 

I²S Data Configuration (PSKEY_USR7) 

Label 

Packet 

length 

Volume 

Level 

Offset in 

Packet 

Packet Data 

Packet 

Length 

Volume 

Level Offset 

in Packet 

Packet Data 

etc 

Type 

Uint16 

Uint16 

Uint16[packet 

length] 

Uint8 

Uint8 

Uint8[packet 

length] 

.... 

Range 

0-255 

–255 

0-255 

0-255 

–255 

0-255 

.... 

Default Value 

.... 

 

The raw data is an array of I²C data packets, the I²C initialisation command packets must be first in the array 
followed by the I²C volume command packets, where: 

 

Packet Length

: The length of the packet in words, data bytes are actually packed as words. 

For example, for an I²C initialisation command packet of: 

0x68

0x00

0x81

 

The raw data would be: 

0068 0000 0081  

having a packet length of 3. 

 

Volume Level Offset in Packet

: This word is only applicable to data packets that set the volume/audio 

level output of the left and right channels, its value is ignored for non-volume related packets. 

For example, for an I²C volume packet of: 

I²C ID, set vol command, volume level 

0x68

0x05

0x??

 

The volume level offset value would be 1, since the first byte is always the I²C device ID, the first data 
byte [0] is the 

0x05

 (set volume command), and the second data byte [1] is the actual volume level. 

The volume level is not necessarily 8bits only, its size is configured in the initialisation PS Key, if the 
volume level size is larger than 1 byte then the volume level offset indicates the start of the data to be 
replaced with the current sink or subwoofer volume level. 

 

Packet Data

: An array of I²C command bytes whose length is specified by the 

Packet_length

 value. 

For example, for an I²C initialisation command of: 

I²C ID, set sample rate, automatic sample rate control 

0x68

0x01

0x01

 

The complete packet and header information would comprise of five bytes and would look like: 

Packet length, volume offset, I²C ID, I²C data 

0x03

0x00

0x68

0x01

0x01

 

4.8. 

SWAT SDP Configuration (PSKEY_USR8) 

The SDP record advertised by the SWAT (Subwoofer Audio Transfer Protocol) can be modified using 
PSKEY_USR8, the first word of this configuration data is used to set the length of the SDP record (in the number of 
bytes), where the following 

n

 words contain the SDP data. 

No validation checks other than reading the correct length are done on this data, it is up to the implementation to get 
this data correct based on the Bluetooth SDP advertising requirements. 

 

 

Содержание BlueCore ADK 3.0

Страница 1: ...Page 1 of 28 Cambridge Silicon Radio Limited 2014 CS 310152 UGP1 www csr com ADK 3 0 Subwoofer User Guide Issue 1 BlueCore...

Страница 2: ...CSR Other products services and names used in this document may have been trademarked by their respective owners The publication of this information does not imply that any licence is granted under an...

Страница 3: ...on PSKEY_USR6 18 4 7 I S Data Configuration PSKEY_USR7 20 4 8 SWAT SDP Configuration PSKEY_USR8 20 5 The ADK 3 0 Subwoofer Application 21 5 1 Libraries Used 21 5 2 Application States 22 5 3 Pairing wi...

Страница 4: ...er Guide Table 5 1 Application States Supported by the ADK 3 0 Application 22 Figure 1 1 Example System Block Diagram 5 Figure 4 1 Example LED Plot for a Pattern Using Two LEDs 15 Figure 5 1 ADK 3 0 S...

Страница 5: ...or developers by using the ADK Configuration Tool which allows customisation of the device to meet specific requirements e g to Assign PIO functionality Associate device control with different button...

Страница 6: ...lication to the hardware CSR recommends clearing all the PS Keys from the development board This places the board in to a known good state All tools are available in the ADK tools bin sub directory Al...

Страница 7: ...5 Multimedia Hardware the Execution mode needs to be set to Native mode as Assisted Native mode is not available with this platform Assisted Native mode should be selected when using the CSR8670 3 2 B...

Страница 8: ...ty paired device list 1 1 1 The Subwoofer automatically enters connectable mode and begins making connection requests to paired device s 1 1 2 To manually put the Subwoofer into pairing mode press and...

Страница 9: ...Build menu This sets all relevant build properties However if modifications to the sink project have been made for previous builds check that the following VM build options are included in the Projec...

Страница 10: ...s each configuration and how to setup a valid configuration Table 4 1 lists the PS Keys used by the subwoofer application PS Key ID Description PSKEY_USR0 Application features configuration PSKEY_USR1...

Страница 11: ...s the using a setting of 10 ms to allow time for digital mute to be applied 4 0 15 Amplifier MUTE Timer Time it takes for the amplifier to MUTE the audio Default 5 ms Note If MUTE I O lines are not su...

Страница 12: ...te This bit is ignored if amp Power Control I O is disabled 6 8 Restriction Level for Remote Devices 0 Disabled default 1 Vendor 2 Vendor product 3 Vendor product min version 4 Vendor product exact ve...

Страница 13: ...re Table 4 4 lists the structure for PSKEY_USR2 Word s Bit s Description 1 0 15 VendorIDSource 2 0 15 VendorID 3 0 15 ProductID 4 0 15 Version 5 0 15 Alternate VendorIDSource 6 0 15 Alternate VendorID...

Страница 14: ...rmediate plot point s for LED_B C 1 The Last plot point for LED_A POINTS B C 2 The first plot point for LED_B D 2 Intermediate plot point s for LED_B C 2 The last plot point for LED_B POINTS C C 3 The...

Страница 15: ...points for each LED that is required for that pattern The number of points for each pattern is undefined but must be at least two for any LED that is used by the pattern To create an empty pattern set...

Страница 16: ...me value for each point by this value 100 ms NUM_POINTS_A 0x00 Green LED not required for this pattern NUM_POINTS_B 0x04 There are 4 red LED plot points for this pattern NUM_POINTS_C 0x06 There are 6...

Страница 17: ...ing 2 LED Pattern for subwoofer_connecting subwoofer_connected 3 LED Pattern for subwoofer_connected subwoofer_open 4 LED Pattern for subwoofer_open subwoofer_streaming 5 LED Pattern for subwoofer_str...

Страница 18: ...Justified I S Justified Data Delay by 1 Bit Bits per Sample USR Data Key Length No of init I C Commands No of I C Volume Commands Volume Commands Offset Type Uint8 Uint8 Uint4 Uint4 Uint8 Uint8 uint8...

Страница 19: ...me change is made Volume Commands Offset Specifies the offset in words of the first I C volume command in the PSKEY_USR37 No of I C Shutdown Commands Specifies the number of individual I C commands th...

Страница 20: ...t value would be 1 since the first byte is always the I C device ID the first data byte 0 is the 0x05 set volume command and the second data byte 1 is the actual volume level The volume level is not n...

Страница 21: ...ding _debug Table 3 2 lists all libraries that the Subwoofer uses the default variant is highlighted in bold Library Available Variants Notes swat swat swat_debug connection connection connection_l2ca...

Страница 22: ...l and a media channel are open media data is streaming on the media channel Table 5 1 Application States Supported by the ADK 3 0 Application 5 3 Pairing with a Remote Device The initial state of the...

Страница 23: ...n after a link loss or after a disconnection If the remote device is not available it keeps re trying to connect see Figure 5 1 Figure 5 1 ADK 3 0 Subwoofer Device Connection Establishment Procedure W...

Страница 24: ...ates As soon as a Bluetooth connection is established with the paired device wired mode is disabled 5 5 2 Wired Mode EQ Filters The wired mode supports audio processing through the use of digital EQ B...

Страница 25: ...lt and a valid PIO configuration needs to be created to enable the test modes 5 7 Amplifier Control The ADK 3 0 Subwoofer offers complete control over the amplifier power on and power off procedures t...

Страница 26: ...nnecting an audio stream the following procedure must be followed 1 Mute the amplifier 1 1 Wait for the amplifier to mute 2 Power off the amplifier 2 1 Wait for the amplifier to power off 3 Disconnect...

Страница 27: ...f timer 6 DAC power off timer These timers are configurable in the Application Features configuration described in section 4 1 5 7 4 Supported Audio Output The device supports two modes of audio outpu...

Страница 28: ...r decoder CVC Clear Voice Capture DAC Digital to Analogue Converter DSP Digital Signal Processor or Processing DUT Device Under Test EEPROM Electrically Erasable Programmable Read Only Memory EQ EQual...

Отзывы: