7. LW3 Programmers’ Reference
MMX4x2 series – User's Manual
95
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
7.7.
Audio Port Settings from Firmware v1.2.0
ATTENTION!
The audio port setting commands depend on the installed firmware version of the device. If
your device is installed with firmware v1.1.0, see the
Audio Port Settings for Firmware v1.1.0
following LW3 commands are related to firmware v1.2.0 and above. To query the firmware version of your
device, see the
section. You can find the complete list of the changes in the
LW3 Command Changes in Firmware v1.2.0
INFO:
Audio port numbering can be found in the
section.
7.7.1. Querying the Status of Source Port
Command and Response
#portstatus
ç
GET·/MEDIA/AUDIO/XP.SourcePortStatus
æ
pr·/MEDIA/AUDIO/XP.SourcePortStatus=
<audio_in1_state>
;
<audio_in2_state>
;
<audio_in3_state>
Parameters
<audio_in#_state>
:
The response contains 5 ASCII characters for each port. The first character indicates the
mute/lock state, the next four characters represent a 2-byte-long HEX code showing the current state of the
input ports.
Example
ç
GET /MEDIA/AUDIO/XP.SourcePortStatus
æ
pr /MEDIA/AUDIO/XP.SourcePortStatus=T000C;T0008;M000F
Legend
Letter (Character 1)
Mute state
Lock state
T
Unmuted
Unlocked
L
Unmuted
Locked
M
Muted
Unlocked
U
Muted
Locked
T 0 0 0 F
Mute / Lock status
Reserved character, always 0.
Reserved character, always 0.
Reserved character, always 0.
Signal present / Connection status
Letter
Byte 1
Byte 2
Byte 1
Byte 2
Character 2
Character 3
Character 4
Character 5
BIT 7-6
BIT 5-4
BIT 3-2
BIT 1-0
BIT 7-6
BIT 5-4
BIT 3-2
BIT 1-0
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Signal present
status
Connection
status
0 0
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Unknown
0 1
Reserved
1 0
No signal
Not connected
1 1
Signal
presents
Connected
Example and Explanation (for input 3, M000F):
M
0
0
0
F
Unlocked,
Muted
0 0
0 0
0 0
0 0
0 0
0 0
1 1
1 1
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Signal
presents
Connected
The Most Common Received Port Status Responses
T000A
T
0
0
0
A
Unlocked,
Unmuted
0 0
0 0
0 0
0 0
0 0
0 0
1 0
1 0
Reserved Reserved Reserved Reserved Reserved Reserved
No signal
Not connected
T000B
T
0
0
0
B
Unlocked,
Unmuted
0 0
0 0
0 0
0 0
0 0
0 0
1 0
1 1
Reserved Reserved Reserved Reserved Reserved Reserved
No signal
Connected
T000F
T
0
0
0
F
Unlocked,
Unmuted
0 0
0 0
0 0
0 0
0 0
0 0
1 1
1 1
Reserved Reserved Reserved Reserved Reserved Reserved
Signal presents
Connected
Only for A1 and A2 logical audio ports:
If the
character 5 is C (11 00), which means signal is present but
the cable connection status is unknown - the explanation is a logical port has no pin that can indicate the
connection status so this is always unknown. When the character 5 is 8 (10 00), that means there is no
signal on the port.
T0008
T
0
0
0
8
Unlocked,
Unmuted
0 0
0 0
0 0
0 0
0 0
0 0
1 0
0 0
Reserved Reserved Reserved Reserved Reserved Reserved
No signal
Unknown
T000C
T
0
0
0
C
Unlocked,
Unmuted
0 0
0 0
0 0
0 0
0 0
0 0
1 1
0 0
Reserved Reserved Reserved Reserved Reserved Reserved
Signal presents
Unknown