Audio DSP with AEC, 4-in/4-out analog, 4-in/4-out Dante and USB
-28-
4.2 Control Protocol
Because of historical reasons, the latest control protocol adopts variable-length and is fully compatible with old fixed-length
control protocols. In protocols, the fourth byte is used to distinguish versions. 0- indicates V1 version (previous versions) and 1-
indicates V2 version (current protocol version).
The difference between V1 and V2 is V1 may control all processing module parameters, but one command can only control one
parameter. If a parameter is needed to control continuous multiple channels, then V2 version shall be used. In other words, in
condition that users need to press one key on key panel to trigger GPIO output high-/low-level of devices, or send a command
via RS232/RS485, then V2 version will be the best choice.
Software coding rules (total 12 bytes)
byte1
byte2
byte3
byte4
byte5~132
0xb3
Message Type
Length
Version No.
Data
V1:
Information types (byte2)
: There are three information types including 0x21 (parameter controls), 0x22 (parameter acquisition)
and 0x13 (scenario switch).
Length (byte3)
: invalid.
0x21 (parameter control):
At this point, Databyte5~12 is respectively
byte 5~6
byte 7~8
byte 9~10
byte 11~12
Module ID
Parameter Type
Parameter 1
Parameter 2
Please refer to Appendix A to get the distribution of
Module ID
(byte5~6).
Please refer to Appendix B for
Parameter types
(byte7~8).
When
Parameter 1
(byte9~10) has only one parameter, then only parameter 1 is valid, such as control compressor switch.
Parameter 2
(byte11~12) only valid when there are two parameters, such as control output channel 1 mute. Parameter value 1
shall be filled in input channel number from 0. Parameter value 2 shall be filled in 1 (mute).
Exception
: Matrix routing has three parameters. The first one is input channel number, the second one is output channel number,
and the third one is routing switch. At this point, byte9 of parameter value 1 shall be filled in input channel numbers, byte 10 shall
be filled in output channel number, and parameter 2 shall be filled in routing switch.
0x22 (Parameter Acquisition):
Parameter acquisition rules are the same with parameter controls. The difference between them is values acquired shall be filled
in parameter 1 and parameter 2.
0x13 (Scenario Switch):
Users only need to fill scenario numbers (0~15) in byte5 and 0 in byte6~12.
Note: Central control command of V1 version can acquire code through software menu bar of PC.
For customized development, please use this protocol rule.
V2:
Message types (byte2)
: There are three message types (byte2) including 0x21
(
parameter controls
)
, 0x22
(
parameter
acquisition
)
, 0x13
(
scenario switch
)
, 0x74
(
other controls
)
and 0x6e
(
Dante routing
)
.
Length (byte3)
: Fill in corresponding data section length based on information type. The length can be longer when actual
sending is carried out. Total data volume can be got through adding 4-byte header information to data length.