Installers Guide to the Bose® Serial interface
June 28, 2011
Bose Confidential Information
Page 31/42
Do Not Redistribute
In the formulas below the Frequency is expressed in kilohertz. For example for the USA FM value
displayed on the radio as 87.7 the corresponding actual frequency is 87700 kHz.
Station
= Integer((
Frequency
- <Frequency Start>)/<Frequency Step>) * <Station Step> +
<Station Start>
Frequency
= Integer((
Station
- <Station Start>) / <Station Step) * <Frequency Step> +
<Frequency Start>
6.6.2 Sample Conversions
To convert USA FM fr
equency ―103.3‖, which is 103300 kHz, to a station number:
Station Number = Integer((103300
– 87700) / 200) * 8 + 8
= Integer(15600/200) * 8 + 8
= Integer(78) * 8 + 8
= 78 * 8 + 8
= 624 + 8
= 632
To convert the station number 632 for USA FM to a frequency:
Frequency = Integer((632
– 8) / 8) * 200 + 87700
= Integer(624/8) * 200 + 87700
= Integer(78) * 200 + 87700
= 15600 + 87700
= 103300
6.7 Query Current Tuner Preset
Use this command to obtain the preset number (1-25) associated with the currently tuned station.
If there is no preset associated with the currently tuned station the value returned is zero.
Note: This command is not available in Low Power Mode.
Client sends:
12 00 04 03 05 54 55 4e 45 52 50 52 45 53 45 54 00 4d
Table 6-20 Query Current Tuner Preset Command Format
Byte
Number
Value
(Hex)
Name
Explanation
0
12
Length
The total number of bytes in this packet is 18
1
00
Status
All Status bits must be zero for packets sent by the Client
2-3
04 03
OpCode
The OpCode of the Query Current Tuner Preset command
4
05
Format
Indicates Ascii Payload
5-16
54 55 4e
45 52 50
52 45 53
45 54 00
Name
The zero terminated ascii string ―TUNERPRESET‖
17
4d
Checksum
The exclusive or (XOR) of all bytes in this packet (including
length) that precede the checksum byte