Audio Sink Application Configuration User Guide
Audio Sink Application Configuration User Guide
Page 1 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Document History
Revision Date History
Contacts
General information www.csr.com
Information on this product [email protected]
Customer support for this product www.csrsupport.com
Page 2 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Trademarks, Patents and Licences
Unless otherwise stated, words and logos marked with ™ or ® are trademarks registered or owned by CSR plc
and/or its affiliates.
Select appropriate sentences based on product range from this list
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 any patent or other rights owned
by CSR plc or its affiliates.
CSR reserves the right to make technical changes to its products as part of its development programme.
While every care has been taken to ensure the accuracy of the contents of this document, CSR cannot accept
responsibility for any errors.
Page 3 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Contents
Document History ......................................................................................................................................................... 2
Contacts........................................................................................................................................................................ 2
Trademarks, Patents and Licences .............................................................................................................................. 3
Life Support Policy and Use in Safety-critical Compliance............................................................................................ 3
Performance and Conformance .................................................................................................................................... 3
Contents ....................................................................................................................................................................... 4
Tables, Figures and Equations ..................................................................................................................................... 5
1. Overview ............................................................................................................................................................ 7
2. Introduction ........................................................................................................................................................ 8
3. Dynamic Configuration Keys .............................................................................................................................. 9
Page 4 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.32. Infra-Red Remote Control Configuration ................................................................................................... 61
4.33. Power Management Unit Charger Configuration ...................................................................................... 62
4.34. Peer Device Custom UUID Configuration ................................................................................................. 63
4.35. Multi-Channel Configuration...................................................................................................................... 64
4.36. PS Defrag Test Configuration ................................................................................................................... 66
4.37. Bluetooth Smart Permanent Pairing Configuration ................................................................................... 66
4.38. Software Version Configuration ................................................................................................................ 67
5. Appendix .......................................................................................................................................................... 68
Appendix A LED Pattern Configuration Data ............................................................................................................ 68
Appendix B State Mask ............................................................................................................................................ 69
Document References ................................................................................................................................................ 70
Terms and Definitions ................................................................................................................................................. 71
Page 5 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Table 4.20: Battery Limit Configuration ....................................................................................................................... 33
Table 4.21: Radio Configuration ................................................................................................................................. 34
Table 4.22: Volume Control Configuration .................................................................................................................. 35
Table 4.23: Volume Mapping Configuration ................................................................................................................ 36
Table 4.24: HFP Initialisation Configuration ................................................................................................................ 37
Table 4.25: HFP1.5 Configuration .............................................................................................................................. 38
Table 4.26: RSSI Pairing Configuration ...................................................................................................................... 39
Table 4.27: PIO Configuration .................................................................................................................................... 40
Table 4.28: Button Configuration ................................................................................................................................ 41
Table 4.29: Button Translation Configuration.............................................................................................................. 42
Table 4.30: Button Translation Type ........................................................................................................................... 42
Table 4.31: Button Pattern Configuration .................................................................................................................... 43
Page 6 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
1. Overview
This document describes the configuration data used by the Audio Sink application that is included as part of the
ADK release.
Note:
This document is intended to be used in conjunction with the Audio Sink Application User Guide and the Audio
Sink Application Configuration Tool User Guide documents.
Page 7 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
2. Introduction
The Audio Sink application can be setup and configured in many different ways depending on the build options and
configuration data. This document goes over each configuration item in full detail describing how the configuration
will affect behaviour.
Configuration keys used by the Audio Sink Application can be split into two categories outlined in Table 2.1.
Category Description
Dynamic Dynamic configuration keys may be updated at runtime by the Sink application. Dynamic keys
store preset data that the VM application can alter during runtime, the values of which then
persist across power resets. Dynamic configuration data is stored in the Key range USR0 to
Static Static configuration keys cannot be updated by the VM application and are therefore preset at
production and constant. Static configuration data is stored in the range USR6 to USR49 (i.e. the
range extends to the end of the USR key allocation), see Section 4.
Note:
Static configuration keys can be updated using Over-The-Air updates, see the Audio Sink Application Software
Upgrade User Guide.
Page 8 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3. Dynamic Configuration Keys
This section covers the dynamic configuration keys used by the Audio Sink application. Table 3.1 lists all dynamic
configuration keys used by the Audio Sink application.
Page 9 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3.1. Session Data Configuration
Written by the application at the end of a session this Key holds the session data so that feature settings persist the
next time the application is run. Table 3.2 describes the layout of the configuration data within this PSKEY.
Word(s) Description
D[8] Unused -
D[6:5] Unused -
1 = audio_source_FM
2 = audio_source_ANALOG
3 = audio_source_SPDIF
Page 10 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bit Feature Description
4 = audio_source_USB
5 = audio_source_AG1
6 = audio_source_AG2
7 = audio_source_end_of_list
D[14:12] unused -
D[3] unused -
D[2:0] Selected EQ Bank 0x7 selects the option to use the last customer defined EQ settings
3.1.3. FM Receive
This item stores the current state of the FM Recieve. This enables the Audio Sink application to maintain its state
between power cycles. The data items for this are described in Table 3.5.
Page 11 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bit Feature Description
3.1.5. User EQ
This item stores the current state of the volume levels. This enables the Audio Sink application to maintain its state
between power cycles. The data items for this are described in Table 3.7.
Words Description
1 Pre Gain
Page 12 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3.1.5.1. User EQ Bank
This data item stores session data for each EQ bank, Table 3.8 describes the data layout.
1 Filter Type 0x0 <> 0xD (see Table 3.9) N/A N/A
0x0 Bypass
Page 13 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3.2. Subwoofer Configuration
The subwoofer configuration key is used to configure the subwoofer link. Table 3.10 describes this data item.
Note:
In previous ADK releases, this key was dynamic in that the Bluetooth address of the paired subwoofer was
written to this key. This is no longer required in current ADK releases and this key is treated as a static key
rather than a dynamic key.
Words Description
1-4 Reserved (in previous ADK releases, this was used to store the Bluetooth address of the paired
subwoofer)
Page 14 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3.3. Stored Phone Number Configuration
This configuration item is used by the HFP module of the Audio Sink application to store a phone number received
from the connected AG. For more information on this process, see Audio Sink Application User Guide. The format of
this configuration item is described by Table 3.11.
Words Description
Page 15 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3.4. FM Stored Frequency
The Audio Sink application is able to store a user's favourite radio stations. This configuration item is used to store
data for each of the stored FM radio frequency. Table 3.12 lists the data structure for this configuration item.
Note:
By default, the Audio Sink application is capable of storing 3 FM frequencies, this can only be modified by
changing the source code.
Word Description
Page 16 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3.5. Infra-Red Controller Learned Codes
The Audio Sink application has a feature that allows new Infra-Red codes to be learnt and mapped to user events.
This configuration item stores the learnt codes, this configuration key contains an array of learnt infra-red codes,
Table 3.13 describes the data structure format for this key.
Words Description
Bits Description
0-8 The Infra-Red code received from the controller (converts to virtual button ID)
9 - 12 Reserved
13 - 16 Virtual Button ID
Page 17 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
3.6. SQIF Partitions Configuration
The software upgrade module of the Audio Sink application uses this configuration key. It is used to specify which
SQIF partitions, if present, are available. It also specifies the partition that is to be used for the device firmware
upgrade (DFU).
Bits Description
8 - 16 Reserved
Page 18 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4. Static Configuration Keys
PSKEY ID PSKEY Name Description
Page 19 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
PSKEY ID PSKEY Name Description
Page 20 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.1. Feature Block Configuration
This configuration item contains configuration of the Audio Sink applications major feature set.
Word Description
D[15] ReconnectOnPanic 1 = The Audio Sink application silently reboots and reconnects to the AG in
the event of a panic.
0 = The Audio Sink application powers off and does not turn back on without
user intervention in the event of a panic.
D[14] OverideFilterPermanentlyOn 1 = when displaying an override filter LED indication there are no breaks in a
solid colour display. Normal mode/event indications are suppressed for the
LED chosen for the override LED filter.
0 = The LED override filter functions as normal.
D[13] MuteSpeakerAndMic 1 = Mute mutes both the Speaker and the Microphone of the Sink.
0 = Only the Microphone will be muted.
D[12] PlayTonesAtFixedVolume 1 = Tones are played at a nominal fixed volume regardless of the current
Profile Volume level. The fixed volume level is set by the
FixedToneVolumeLevel parameter.
0 = Tones are played at the current Profile Volume level.
D[11] PowerOffAfterPDLResest 1 = The Audio Sink application powers off after user event
EventResetPairedDeviceList has been issued. The chip will
reboot if ResetAfterPowerOffComplete is set.
0 = The Audio Sink application does not power off after the event has been
issued.
Note:
Reset Clears the Default and Last user together with the list of Paired
devices.
D[10] RemainDiscoverableAtAllTimes 1 = The Audio Sink application remains discoverable at all times. This is
useful for Multipoint operation.
0 = The Sink remains discoverable until connected.
D[9] DisablePowerOffAfterPowerOn 1 = The Audio Sink application ignores the power off button press
immediately after power on. DisablePowerOffAfterPowerOnTime
sets the time the power button is ignored for.
0 = The Sink does not ignore the power off button press after power on.
D[8] AutoAnswerOnConnect 1 = This allows the Audio Sink application to send an answer (ATA) AT
command if an incoming call is detected on connection.
Page 21 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Feature Description
D[7] EnterPairingModeOnFailureToConnect 1 = The Sink goes into pairing mode if it fails to connect with any
paired devices.
0 = The Sink goes into connectable mode if it fails to connect with
any paired devices.
D[3] VolumeChangeCausesUnMute 1 = Volume events cause the Sink to unmute and set the volume to the new
level.
0 = Volume events do not unmute the Sink and the local Sink volume value
is updated according to the AdjustVolumeWhilstMuted feature.
D[2] PowerOffOnlyIfVRegEnLow When set this feature prevents the Sink from powering off if the VREG
enable pin is not low.
D[1] LimitRssiSuboowferPairing When set this enables subwoofer RSSI pairing that ensures signal strength
is higher than the configured threshold.
D[15] GoConnectableButtonPress 1 = The Audio Sink application becomes connectable on a button press.
0 = The Audio Sink application does not become connectable on a button press.
Note:
This is used with multipoint operation in the situation where one AG is already
connected and the user wishes to connect a second AG and needs to make the
Audio Sink application connectable to do so.
D[14] DisableTTSTerminate 1 = Voice prompt plays to completion on answering the call or the call terminates.
0 = Voice prompt stops as soon as the call is answered or terminates.
D[13] AutoReconnectPowerOn 1 = Auto Reconnection is enabled after a power on event. ActionOnPowerOn sets
the reconnection mode.
0 = Auto reconnection is not enabled after a power on event.
Page 22 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Feature Description
D[7:6] PowerDownOnDiscoTimeout Configures which action to take after pairing mode timeout triggers:
0 = Return to connectable Mode.
1 = Power Off.
2 = Power off if PDL is empty.
D[5:4] ActionOnCallTransfer Configures which AG the Audio Sink application will try to connect after a call has
been transferred from the AG to the Audio Sink application:
0 = Reconnect the last connected AG.
1 = Reconnect the first available AG from the paired device list.
D[3:2] LedTimeMultiplier Applies a scaling factor to the times used for all LED on and off times. It can be used
to lengthen LED on and off times beyond that of the 2.5second limit:
0 = no scaling factor.
1 = *2 scaling factor.
2 = *4 scaling factor.
3 = *8 scaling factor.
D[1:0] ActionOnPowerOn Defines the AG the Audio Sink application will try to reconnect on power on:
0 = Reconnect the last connected AG.
1 = Reconnect the first available AG from the paired device list.
2 = Initiate RSSI Inquiry (RSSI Pairing) mode.
D[15:12] DiscoIfPDLLessThan This forces the Sink to Enter Discoverable mode (pairing) if the paired device list
contains fewer entries than the value of this configuration item.
D[11] DoNotDiscoDuringLinkLoss 1 = The Sink does not enter discoverable mode if a link loss event has occurred.
0 = The Sink enters discoverable mode after the link loss event..
D[7] UseLowPowerAudioCodecs 1 = The Audio Sink application uses the low power audio codec options to help
reduce Sink power consumption.
0 = The Audio Sink application uses standard audio codec options.
D[6] PlayLocalVolumeTone 1 = The Sink plays a tone when the volume is changed using the remote device.
0 = Feature disabled.
Page 23 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Feature Description
the link key) then the Sink accepts a pin code request.
D[4] PowerOffOnWiredAudioConnected 1 = The Audio Sink application will power off after the wired audio is connected.
0 = The Audio Sink application will not power off after the wired audio is
connected.
D[3] QueueVolumeTones 1 = Up to four volume tones can be queued and then played in sequence.
0 = Any request to play a tone while another is playing, is ignored.
D[2] QueueEventTones 1 = Up to four event tones can be queued and then played in sequence.
0 = Any request to play a tone while another is playing, is ignored.
D[1] QueueLEDEvents 1 = Up to four LED patterns can be queued and displayed in sequence.
0 = Any request to display an LED sequence while another is active is ignored.
1 = The mute reminder tone is played at a fixed volume set by the default
D[15] ResetLEDEnableStateAfterReset 1 = After a reboot the LED enable/disable state is reset and the LEDs are enabled
independently of the led_disable parameter.
0 = The LED enable/disable state is stored over a reboot. The state is stored in the
led_disable bit of the CONFIG_LED_STATES PSKEY.
D[14] ResetAfterPowerOffComplete 1 = The Audio Sink application performs a chip reset after powering off. This may be
used if the BlueCore IC is powered permanently with no other form of hardware reset
available.
0 = Feature Disabled.
D[13] AutoPowerOnAfterInitialisation 1 = The Audio Sink application automatically powers on once the chip has been
powered and initialisation is complete.
0 = Feature Disabled.
D[12] DisableRoleSwitching 1 = The Audio Sink application does not send role switch requests to the AG. This
feature may be useful if the AG does not support role switching.
0 = The Audio Sink application sends role switch requests to the AG when using
multipoint.
D[11:8] audio_plugin Specifies which audio plug in is used for SCO audio connections.
Note:
The bit values for the this item are dependent on the DSP projects that are
included in the Sink project.
D[7:4] DefaultVolume
This is the volume level used after initial power up. The default volume
can be set in the range 0 to 15. The sixteen levels can be configured in
PSKEY_SPEAKER_GAIN_MAPPING. TODO: WHERE IS THIS STORED?
THERE'S NO SPEAKER GAIN MAPPING…
D[3] IgnoreButtonPressAfterLedEnable 1 = If a button is pressed that re-enables the LED display the event assigned to the
button does not occur.
0 = If a button is pressed that re-enables the LED display the event assigned to the
button occurs as normal.
D[1] GoConnectableDuringLinkLoss 1 = The Audio Sink application is connectable while attempting to reconnect a device
after link loss.
0 = The Audio Sink application is not connectable while attempting to reconnect a
device after link loss.
D[0] TwsQualificationEnable 1 = Enable the PTS qualification for TWS AVRCP TG/CT features.
Page 24 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Feature Description
D[15] ChargerTerminationLEDOveride 1 = The charger LED indications stay at trickle charge once reached, i.e. the
indications only change when the charger is disconnected and reconnected.
0 = The charger indications toggles between fast and trickle charge
indications as appropriate to the current state of the battery charge level.
D[9] EnableAvrcpAudioSwitching 1 = AVRCP play status is used to speed up audio source switching.
0 = AVRCP play status is not used to speed up audio source switching.
D[8] ForceEV3S1ForSco2 1 = The second SCO connection is forced to use EV3 S1 packets for better
interoperability with certain AGs.
0 = Any packet type is available for the second AG.
D[6] avrcp_enabled 1 = Enable AVRCP control. This feature is not supported on some ROM
variants.
0 = Feature Disabled.
D[5:4] PairIfPDLLessThan When set to a non-zero value and the number of devices in the PDL is less
than this value, the Sink goes into RSSI Inquiry (Proximity Pairing) mode.
D[3] EnableSyncMuteMicrophones 1 = The mute command is sent to both AGs when using multipoint.
0 = The mute command is sent to only the AG in use.
D[0] VoicePromptNumbers 1 = Voice prompts are used to 'speak' an incoming caller number.
0 = Feature Disabled.
D[15:12] DefaultA2dpVolLevel This sets the initial level of the audio heard following a pairing/connection to a
new device. Thereafter, the last user selected volume level is stored in
persistent store and used for subsequent connections.
D[9:5] A2dpOptionalCodecsEnabled This bitmask specifies which codecs are available for use:
Note:
A corresponding DSP codec application must be available if these bits
are enabled or the Sink panics.
D[4] EnableA2dpMediaOpenOnConnection 1 = The Sink performs a media open when the A2DP signalling connection
has been made and the A2DP stream had previously been suspended. This
can happen if the Sink has suspended a stream and the phone has chosen to
Page 25 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Name Description
D[3] AssumeAutoSuspendOnCall 1 = The Sink assumes that the AG is responsible for suspending the media
connection when receiving an incoming call.
0 = The Sink suspends the media connection when receiving an incoming
call.
Note:
Allowing the Sink to manage the suspending of the media connection
can have interoperability issues.
D[2:0] ReconnectLastAttempts When using the reconnection type of LAST, this parameter controls the
number of times the Sink attempts to connect to the last connected devices, a
minimum value of 2 is suggested for this parameter. The range of
D[15] ShareMeSource 1 = The device supports relay of audio to another ShareMe device.
0 = The device does not support relay of audio to another ShareMe device.
D[14] ShareMeSink 1 = The device supports receiving of audio relayed from another ShareMe device.
0 = The device does not support receiving of audio relayed from another ShareMe
device.
D[13] TwsSource 1 = The device supports relay of audio to another TWS device.
0 = The device does not support relay of audio to another TWS device.
D[12] TwsSink 1= The device supports receiving of audio relayed from another TWS device.
0= The device does not support receiving of audio relayed from another TWS
device.
D[11] PeerUseLiac 1 = Limited Access Code is used when pairing Peer devices.
0 = General Access Code is used when pairing Peer devices.
D[9] PeerUseCsrUuid 1 = Use a fixed CSR defined 128-bit SDP service UUID to identify Peer device
support.
0 = Use a custom defined 128-bit SDP service UUID to identify Peer device
support.
D[5:4] TwsMasterAudioRouting Determines which audio routing mode is selected for a Master TWS device relaying
audio in a TWS session:
0 = Stereo
1 = Left
2 = Right
3 = Down-mix
D[3:2] TwsSlaveAudioRouting Determines which audio routing mode is selected for a Slave TWS device receiving
audio in a TWS session:
0 = Stereo
1 = Left
2 = Right
3 = Down-mix
D[1:0] TwsPairingMode Determines how pairing information is retained for TWS devices:
0 = Temporary
1 = Standard
2 = Permanent
Page 26 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Feature Description
D[15] ShareMePeerControlsSource 1 = A connected remote ShareMe device can issue AVRCP commands to
an AG connected to the local ShareMe device.
0 = A connected remote ShareMe device cannot issue AVRCP
commands to an AG connected to the local ShareMe device.
D[12] PeerLinkRecoveryWhileStreaming 1 = In case of a link loss between two Peer devices, the Master device will
page the Slave device.
0 = In case of a link loss between two Peer devices, the Master device will
not page the Slave device.
D[2] AmplifierShutDownByPIO 1 = I2S and DAC external audio amplifier shut down in Limbo state is
managed by "Power On" and "Audio Mute" output PIOs.
0 = PIO controlled power down mode is not enabled.
Notes:
(1) This field is intended only for sound bar project and has no effect
on other projects.
(2) When this bit is enabled, VM application makes the system wait
until a configurable timeout expires in Limbo state before driving the
configured PIOs. This allows the tones and audio prompts to finish
playing before audio amplifier has been powered off. This timeout
value is configured by the PS Key configuration item "Sound Bar
Audio Amplifier Power Down Timeout".
(3) When this bit is enabled, PS Key configuration items "Power On"
and "Audio Mute" PIOs must also be configured alongside this bit to
facilitate the power management feature for external audio
amplifiers.
Page 27 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.2. Lengths Configuration
This configuration contains the lengths information for various configuration items. Table 4.11 lists the layout of this
configuration item.
1 D[15:0] This defines the number of entries currently in the Paired Device List.
2 D[15:0] This defines the total number of entries that exist in the lookup table that maps System/User
Event to Voice Prompt(s).
3 D[15:0] This defines the total number of languages configured for the Voice Prompts feature.
5 D[15:0] This defines the total number of LED states configured, see section TODO
6 D[15:0] This defines the total number of LED events configured, see section TODO
7 D[15:0] This defines the total number of Tones configured, see section TODO
8 D[15:0] Voice Prompts are stored in banks of languages, this tracks the number of voice prompts
configured for each language.
Note:
Each language must contain the same number of Voice Prompts and the same mappings
for System/User Event to Voice Prompt(s). See ADK Audio Prompts Application Note.
9 D[15:0] This defines the total number of User Tones configured, see section TODO
10 D[15:0] This defines the total size of the data defined in the CONFIG_AT_COMMANDS configuration
key.
12 D[15:8] Defines the total number of entries in the Input Manager lookup table.
D[7:4] Defines the total number of entries in the Bluetooth Smart Remote Controller lookup table.
D[3:0] Defines the total number of entries in the Infra-Red Remote Controller lookup table.
Page 28 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.3. Timers Configuration
Configures the timers used by the Audio Sink application, the list of configurable times described in Table 4.3.
2 LimboTimeout_s 0-60 (s) The value in seconds that the Sink waits in the limbo
state for a power on event before powering off. The
limbo state is entered when the device is powered or
receives a power off event.
4 DisablePowerOffAfterPowerOnTime_s 0-60(s) The time in seconds after Power On for which the
Power Off event has no effect. This is used for
example, if the UI specifies that a long press on
Power On enters pairing mode but a long press at any
other time should Power Off the Audio Sink
application.
5 PairModeTimeout_s 0-65535(s) The time in seconds that the Sink remains in the
connectable / discoverable state (pairing mode).
Note:
Setting this to 0 results in the Audio Sink
application entering and immediately exiting the
discoverable state.
12 SecondAGConnectDelayTime_s 0-65535(s) This value determines the delay time, in ms, between
the connection of AG1 and the start of connection to
AG2 when using MultiPoint operation.
Page 29 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Word Timer Range Description
22 AudioAmpPowerDownTimeoutInLimbo_s 0-65535(s) The period in seconds for which the system waits
before powering down audio amplifier for sound bar
when in Limbo state
23 ImmediateAlertTimer_s 0-65535(s) The period in seconds for which the system waits
before palying alert tone again
24 ImmediateAlertStopTimeout_s 0-65535(s) The period in seconds for which the system waits
before stoppingthe alert
25 LinkLossTimer_s 0-65535(s) The period in seconds for which the system waits
before palying alert tone again
26 LinkLossAlertStopTimeout_s 0-65535(s) The period in seconds for which the system waits
before stoppingthe alert
Page 30 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.4. Device ID and Software Version Configuration
This contains the Device ID information along with the software version number. On entry into service mode, the
Audio Sink application becomes discoverable and changes its local name to the Bluetooth address + the contents of
this configuration. Table 4.13 describes the data structure for this configuration item.
1 Vendor ID Source 0x0001 = Vendor ID has been assigned by the Bluetooth Special Interest Group.
0x0002 = Vendor ID has been assigned by the USB Implementers Forum.
5-8 Software Version Should be set to the appropriate software version for the product.
Page 31 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.5. Battery Configuration
The battery monitoring and battery charging parameters are stored in this configuration item. The data structure of
this configuration item is described in Table 4.14.
D[118] Raw limits Set limits in ADC counts rather than voltage
Page 32 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bit(s) Name Description
Page 33 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.6. Radio Configuration
Determines the radio inquiry and page scan characteristics, Table 4.21 describes the data layout of this configuration
item.
Note:
The Audio Sink Configuration tool does not provide an interface to this PS Key. The default values have been
selected to give the best performance characteristics and it is not recommended that these are changed in most
circumstances.
Word Description
Page 34 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.7. Volume Control Configuration
This configuration item stores the values that configure the volume control behaviour for the Audio Sink application.
Table 4.22 describes the data structure for this configuration item.
Page 35 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bit(s) Name Description
D[15:8] A2dpGain The a2dp gain index to use for the given volume level
D[7:0] VolGain The hfp DAC gain to use for the given volume level
Page 36 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.8. HFP Init Configuration
Contains configuration parameters that are passed into the HFP library in order for a HFP instance to be created and
initialised. Table 4.24 describes the data structure of this configuration item.
D[0:15] Supported profile The supported Profile, this indicates which profile(s) the HFP library
should support. This can be headset profile, one of the handsfree
profiles or both the headset profile and one of the handsfree profiles.
D[32:47] Supported WBS codecs User configurable information regarding the HF's codecs
D[50:51] Signal Strength Optional indicators the HF may not want to receive: signal strength
D[52:53] Roaming Status Optional indicators the HF may not want to receive: roaming status
D[54:55] Battery Charge Optional indicators the HF may not want to receive: battery charge
D[78] Extended Errors Enable sending of extended error codes by AG's supporting them
D[80:87] Link Loss Time The time in minutes to attempt to reconnect for on link loss
D[88:95] Link Loss Interval The time in seconds between link loss reconnect attempts
Page 37 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.9. HFP 1.5 Feature Configuration
This configuration item must be defined for the Audio Sink application to support version 1.5 of the Handsfree Profile.
Table 4.25 describes the data structure of this configuration item.
Page 38 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.10. RSSI Inquiry Configuration
This configuration item holds the parameters for RSSI Inquiry, otherwise known as Proximity Pairing. Table 4.26
describes the data structure of this configuration item.
Page 39 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.11. PIO Configuration
Holds data that configures PIO's used by the Audio Sink application, Table 4.27 describes the data structure of this
configuration item.
Page 40 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.12. Button Configuration
Holds data that configures button press definitions, Table 4.28 describes the data structure of this configuration item.
D[0:15] Double press The time interval (ms), in which a second press may be detected leading to
a double press event instead of reporting the button press as a single press.
D[16:31] Long press The time a button has to be pressed for, in ms, in order to generate a long
message timer.
D[32:47] Very long press The time a button has to be pressed for, in ms, in order to generate a very
long timer message.
D[64:79] Very very long press The time a button has to be pressed for, in ms, in order to generate a very
very long timer message.
D[88:95] Debounce period The interval between each debounce check in ms.
Page 41 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.13. Button Translation
Contains the button translation table, which maps logical inputs onto physical inputs such as PIOs or Capacitive
touch sensors. Table 4.29 describes the data structure of this configuration item.
Word
Page 42 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.14. Button Pattern Configuration
This configures the button patterns, otherwise known as button sequences used by the Audio Sink application to
generate an internal event. Table 4.31 lists the data structure of this configuration item.
Notes:
(1) There is no limit to the time between button presses and no distinction is made between short or long button
presses.
(2) By default, up to 4 button patterns can be configured, this can be modified by changing the source code.
Word(s) Description
5 pattern[3]
6 pattern[4]
7 pattern[5]
Page 43 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.15. LED Filters Configuration
This configures the LED Filters used by the Audio Sink application to display LED patterns indicating a particular
event. Table 4.33 lists the data structure of this configuration item.
Note:
The number of LED filters that have been configured must be added to the lengths configuration, see Section
4.2.
Words Description
D[19:21] Colour Force LED to this colour pattern no matter what is defined in the state
pattern
D[22:26] Filter To Cancel If a filter is already being displayed, this will cause that filter to be cancelled
when this one starts.
D[31] Override Disable Override LED disable flag when filter active
D[35:38] Follower LED Delay The delay before the following pattern starts (in 50ms steps, range 0-
750ms).
D[39] Speed Multiplier Action Which action to perform on the speed multiplier
0 = multiply
1= divide.
Page 44 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.16. LED States Configuration
This configures the LED States used by the Audio Sink application to display LED patterns indicating a particular
state. Table 4.35 lists the data structure of this configuration item.
Note:
The number of LED states that have been configured must be added to the lengths configuration, see Section
4.2.
Words Description
Words Description
Page 45 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.19. Events Configuration
The events configuration for the Audio Sink application is split over three configuration items, Table 4.38 lists these
items. The events have been split over three configuration items because the data is too large to fit in a single key.
Each event block contains a translation table to convert button presses to User Events. The table in each event
block is a fixed length and contains 22 entries. The data structure used for each entry of the translation table is
described in Table 4.39.
D[0:7] User Event The User event that will be generated if all the requirement conditions of this
event translation are met, see 4.19.1.
D[8:15] Button Timing Event Defines the Button Timing Event that has to be generated for the User Event to
be generated, see 4.19.2.
D[16:31] Button Mask Defines the button(s) that generated the Button Timing event, see 4.19.3.
D[32:47] State Mask Defines the state(s) that must be active when the Button Timing Event was
generated, see 4.19.4.
Page 46 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.19.1. User Event
The user event is an offset (0-255) from EVENTS_USR_MESSAGE_BASE to the User Event enumeration.
0 B_INVALID Unassigned
1 B_SHORT Timer that fires whilst button(s) have been pressed down for a
2 B_LONG Timer that fires whilst button(s) have been pressed down for a
long period (timer)
3 B_VERY_LONG Timer that fires whilst button(s) have been pressed down for a
very long period (timer)
4 B_DOUBLE Button(s) have been double pressed (two very short presses,
one after the other)
5 B_REPEAT Timer that repeats whilst the button(s) are held down
8 B_SHORT_SINGLE Button(s) have been pressed for a short period and then
released
9 B_LONG_RELEASE Button(s) have been pressed for a long period and then
released
10 B_VERY_LONG_RELEASE Button(s) have been pressed for a very long period and then
released
11 B_VERY_VERY_LONG Timer that fires whilst button(s) have been pressed down for a
very very long period (timer)
12 B_VERY_VERY_LONG_RELEASE Button(s) have been pressed for a very very long period and
then released
13 B_TRIPLE Button(s) have been triple pressed (three very short presses,
one after the other)
Page 47 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.20. Tones Configuration
The tones configuration for the Audio Sink application is used to map audible tones against Audio Sink application
User Events. This causes the configured tone to be played when the mapped User Event is generated. The data
structure of this configuration item is described in Table 4.41.
Note:
The number of tones that have been configured must be added to the Lengths configuration item, see Section
4.2.
Words Description
Page 48 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.21. User Tones Configuration
This configuration item is used to store the User Tones which allows custom tones to be configured. The number of
custom tones that can be configured is limited to 8. The data format of this configuration key is outlined in Table
4.43.
Word(s) Description
1 Offset to the custom tone data (starting at word 9) for tone [0]
2 Offset to the custom tone data (starting at word n2) for tone [1]
3 Offset to the custom tone data (starting at word n4) for tone [2]
5 Offset to the custom tone data (starting at word n8) for tone [4]
6 Offset to the custom tone data (starting at word n10) for tone [5]
7 Offset to the custom tone data (starting at word n12) for tone [6]
8 Offset to the custom tone data (starting at word n14) for tone [7]
Page 49 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.22. Audio Prompts Configuration
This configuration item is used to store the Audio Prompts Configuration allows custom audio prompts to be
configured. The number of audio prompts that can be configured is not limited, other than by PSKEY size. The
configuration item contains an array of data structures one after the other. The data format of this configuration key
is outlined in Table 4.44.
Words Description
D[24:31] Prompt ID The audio prompt that needs to be played when the mapped user event is
generated.
D[32] Play Immediate 1 = Don't queue the audio prompt if the audio system is busy, ensure it plays
immediately.
0 = Queue the audio prompt if the audio system is busy, it will play as soon as
the audio system is ready.
D[33] SCO Block 1 = Do not play the audio prompt if the there is an active SCO connection.
0 = Always play the audio prompt
D[34:47] State Mask The State Mask outlines which application state(s) must be active for the audio
prompt to be played. 5.Appendix B lists the bit positions of the mask for each
state.
Page 50 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.23. Sniff Sub-Rate Configuration
This configuration item is used to store the Sniff Sub-Rate (SSR) configuration parameters. These are used to setup
preferred sub-rating parameters to be used when the device enters sniff mode for SLC and SCO connections. The
data format of this configuration key is outlined in Table 4.46.
1 SLC remote latency The maximum time the remote device need not be present when sub-rating.
(for SLC connections)
2 SLC remote timeout The minimum time the remote device should stay in sniff before entering
sub-rating mode. (for SLC connections)
4 SCO remote latency The maximum time the remote device need not be present when sub-rating.
(for SCO connections)
5 SCO remote timeout The minimum time the remote device should stay in sniff before entering
sub-rating mode. (for SCO connections)
6 SCO local timeout The minimum time the local device should stay in sniff before entering sub-
rating mode. (for SCO connections)
Note:
All values are in units of 0.625ms.
Page 51 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.24. USB Configuration
This configuration item is used to store the USB configuration parameters. The data format of this configuration key
is outlined in Table 4.47.
D[0:15] i_disc Current when USB disconnected but charger connected, see Table
4.48
D[32:47] i_susp_db Current when suspended prior to enumeration with dead battery,
see Table 4.48
D[64:79] i_att_trickle Current when attached but not enumerated and trickle charging, see
Table 4.48
D[96:111] i_conn_trickle Current when connected to host/hub and trickle charging, see Table
4.48
D[112:127] i_chg Current when connected to a charging host/hub, see Table 4.48
D[128:143] i_dchg Current when connected to a dedicated charger, see Table 4.48
D[144:159] i_lim Current when vbus drop is detected, see Table 4.48
D[161] pause_when_switching_source Pause USB audio when switching away from USB source
D[168:171] attach_timeout Time (seconds) after attach at which we set low power bootmode if
not enumerated
D[172:175] deconfigured_timeout Time (seconds) after deconfigure at which we set low power
bootmode if not enumerated
Page 52 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Name Description
Page 53 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.25. FM Configuration
This configuration item is used to store the USB configuration parameters. The data format of this configuration key
is outlined in Table 4.49.
Word Description
3 Frequency spacing
10 Antenna Selection
11 Hardware PIO
Page 54 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.26. AT Commands Configuration
This configuration item is used to store the custom AT commands configuration. The data format of this configuration
key is covered in the Audio Sink Application Custom AT Commands User Guide documentation.
Page 55 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.29. Audio Routing Configuration
This configuration item is used to store the Audio Routing configuration. The data format of this configuration key is
outlined in Table 4.50.
Word(s) Description
1 Audio Plugin Features including input and output hardware selection, see Table
4.51.
Page 56 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Word Name Description
Page 57 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.30. Input Manager Configuration
This configuration item is used to store the Audio Routing configuration. The data format of this configuration key is
outlined in Table 4.55.
1 Multiple Detect Timer As soon as an input is pressed down, this timer is armed, it allows a second or
third or fourth, etc. button to be pressed so a multiple button press is captured.
As soon as the multiple detect timer has fired, no further button presses are
actioned until the inputs have been released.
2 Short Timer The short timer fires if the input(s) are still held down for the configured short
timer duration.
4 V.Long Timer The very long timer fires if the input(s) are still held down for the configured very
long timer duration
5 VV.Long Timer The very very long timer fires if the input(s) are still held down for the configured
"very very long timer" duration.
6 Repeat Timer The repeat timer fires every configured "repeat timer" duration while the input(s)
are held down.
7…n Lookup Table The Input Manager lookup table, this is an array of lookup table data structures,
See Table 4.55.
Note:
The number of entries in the Input Managers lookup table must be added
to the Lengths configuration item, see Section 4.2.
Note:
Timer configuration items listed in this key are in units of seconds.
D[0:15] Input Mask The Input Mask value is a mask that outlines which input(s) must be held down for the
user event to be generated. This is a 16 bit value where input ID 0 relates to Bit[0] (of
the mask) and input ID 15 relates to Bit[15] (of the mask).
D[16:31] State Mask The State Mask outlines which application state(s) must be active for the user event to
be generated. 5.Appendix B lists the bit positions of the mask for each state.
D[32:39] User Event The user event is an offset (0-255) from EVENTS_USR_MESSAGE_BASE to the User
Event enumeration.
D[40:47] Input Event The input event outlines which type of input event must be triggered to generate the
associated user event. Table 4.56 describes the available input events.
Page 58 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Value Input Event
0 Input down
Page 59 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.31. Bluetooth Smart Remote Control Configuration
This configuration item is used to store the Bluetooth Smart remote control configuration. The data format of this
configuration key is outlined in Table 4.57.
1 Max Remotes Configures the maximum number of remote controllers that can be supported.
2..n Lookup Table Stores the lookup table for the Bluetooth Smart remote controller, this is a variable
length array of mapping entries, see Table 4.58.
Note:
The number of entries in the lookup table must be added to the Lengths
configuration item, see Section 4.2.
D[0:3] Input ID The input ID the HID code translates to (allows up to 16 RC buttons to be supported)
D[4:15] HID Code The HID Code sent by the remote control, Consumer HID has some values that are
12-bit length (0x0 <> 0xFFF)
Page 60 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.32. Infra-Red Remote Control Configuration
This configuration item is used to store the Infra-Red control configuration. The data format of this configuration key
is outlined in Table 4.59
1 Protocol Defines which IR protocol the application supports (can only support one protocol;
either NEC or RC5)
2 Max Learnt Codes The maximum number of IR codes the application can learn
3 Learning Mode Failsafe for turning off the IR learning mode (ms)
Timeout
6..n Lookup Table Stores the lookup table for the Infra-Red remote controller, this is a variable length
array of mapping entries, see Table 4.60.
Note:
The number of entries in the lookup table must be added to the Lengths
configuration item, see Section 4.2.
D[0:3] Infra-Red The infrared code sent by the remote controller that converts to *input_id* for the input
Code manager to process
D[8:15] Input ID The input ID the IR code translates to (allows up to 16 RC buttons to be supported)
D[16:31] Address The address of the remote control that sent the IR code (an Infrared remote may use
different addresses for different buttons, so need to ensure the code was actually sent
from the known RC)
Page 61 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.33. Power Management Unit Charger Configuration
This configuration item is used to setup the Power Management Unit (PMU) charger. The data format of this
configuration key is outlined in Table 4.61.
Note:
The PS Key may be configured to allow the charger current to be ramped down in steps as the temperature of
the device increases when the boost pass transistor is used with high charger input voltages, this allows the
device to continue charging but at a lesser rate as the temperature increases
D[32:39] Temp increase Temeprature (degC) where current will not be increased
D[48:63] Monitor period active Period (ms) to monitor PMU temperature when charger is active
D[64:79] Monitor period idle Period (ms) to monitor PMU temperature when charger is idle
D[80:95] Monitor period no power Period (ms) to monitor PMU temperature when there is no charger power
Page 62 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.34. Peer Device Custom UUID Configuration
This configuration item is used to setup the Peer Device Custom UUID. The data format of this configuration key is
outlined in Table 4.62.
1-8 UUID The Custom UUID used to identify the local device as a Peer Device.
Note:
Any Peer Device that requests to connect to this device (when using the Custom
UUID) must have the same Custom UUID otherwise the connection request will be
rejected.
Page 63 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.35. Multi-Channel Configuration
This configuration item is used to setup the Multi-Channel audio. The data format of this configuration key is outlined
in Table 4.63.
D[0:15] Digital Interface 1 Configures the first digital interface, see Table 4.64.
D[16:31] Digital Interface 2 Configures the second digital interface, see Table 4.64.
D[32:47] Analogue Interface Configures the analogue interface, see Table 4.64.
D[60:61] Volume scaling Aux Volume scaling for the auxiliary channels:
0=hardware scaling
1=DSP scaling
2=hybrid scaling
D[62:63] Volume scaling Main Volume scaling for the main channels:
0=hardware scaling
1=DSP scaling
2=hybrid scaling
D[80:95] Channel trim (pri left) Channel trim to apply to the primary left channel.
D[96:111] Channel trim (pri right) Channel trim to apply to the primary right channel.
D[112:127] Channel trim (sec left) Channel trim to apply to the secondary left channel.
D[128:143] Channel trim (sec right) Channel trim to apply to the secondary right channel.
D[144:159] Channel trim (sub) Channel trim to apply to the subwoofer channel.
D[160:175] Channel trim (aux left) Channel trim to apply to the auxiliary left channel.
[D176:191] Channel trim (aux right) Channel trim to apply to the auxiliary right channel.
D[9] Output format if digital Configure the digital audio output to use:
0=use I2S output
1=use SPDIF output
D[10] Enable Right Channel Configure whether to enable the right channel:
0=disabled
1=enabled
Page 64 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Bits Name Description
0=swapped
1=not swapped
D[15] Enable Audio Interface Configure whether to use the audio interface:
Page 65 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.36. PS Defrag Test Configuration
This configuration item should not be used to store any data. It is explicitly used by the Audio Sink application for
defrag testing.
Page 66 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
4.38. Software Version Configuration
This configuration item is used to setup the software version information. The data format of this configuration key is
outlined in Table 4.65
1 Software Version Defines the software version of the Audio Sink application.
2 Configuration Version Defines the Configuration set version, used by the Audio Sink application to
verify whether or not the configuration set is compatible with the version it
understands.
3 Upgrade Transport Defines the transport type to use for over the air upgrades:
Page 67 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
5. Appendix
D[0:15] State OR Event State OR Event ID to action the LED pattern upon.
D[32:39] Off Time How long to keep the LED off (ms)
D[40:47] Repeat Time How long to wait before repeating the pattern (ms)
D[56:63] Time Out Total time to display LED pattern, 0 to always display pattern.
D[76] Override Disable Override LED to disable flag for this pattern
Page 68 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Appendix B State Mask
Event translations specify which state(s) must be active for the associated User Event to be generated. Table 5.2
lists the state mask used for these translation tables.
0 deviceLimbo
1 deviceConnectable
2 deviceConnDiscoverable
3 deviceConnected
5 deviceIncomingCallEstablish
6 deviceActiveCallSCO
7 deviceTestMode
8 deviceThreeWayCallWaiting
9 deviceThreeWayCallOnHold
10 deviceThreeWayMultiCall
11 deviceIncomingCallOnHold
12 DeviceActiveCallNoSCO
13 DeviceA2DPStreaming
14 DeviceLowBattery
15 RESERVED
Page 69 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Document References
Document Reference
Page 70 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com
Terms and Definitions
BlueCore® Group term for CSR’s range of Bluetooth wireless technology chips
Bluetooth® Set of technologies providing audio and data transfer over short-range radio connections
UniFi® Group term for CSR’s range of chips designed to meet IEEE 802.11 standards
Page 71 of 71
© Cambridge Silicon Radio Limited 2015 CS-334708-UG1
www.csr.com