beautypg.com

Pcmd, Appendices ~ appendix e: serial commands, Explanation – ClearOne AP400 User Manual

Page 65: Return values, Example

background image

Appendices

~ Appendix E: Serial Commands

61

Technical Services Group ~ 1-800-283-5936 (USA) ~ 1-801-974-3760

PCMD

This command programs or returns the program of the GPIO control

pins from the serial port. COMMAND can be any valid command.

These values are not part of the preset and do not change when

presets are loaded.

[DEVICE] PCMD

Explanation

LOCATION=1

Control pin 1 active

LOCATION=2

Control pin 1 inactive

LOCATION=3

Control pin 3 active

LOCATION=4

Control pin 3 inactive

LOCATION=5

Control pin 5 active

LOCATION=6

Control pin 5 inactive

LOCATION=7

Control pin 7 active

LOCATION=8

Control pin 7 inactive

LOCATION=9

Control pin 9 active

LOCATION=10

Control pin 9 inactive

LOCATION=11

Control pin 11 active

LOCATION=12

Control pin 11 inactive

LOCATION=13

Control pin 13 active

LOCATION=14

Control pin 13 inactive

LOCATION=15

Control pin 15 active

LOCATION=16

Control pin 15 inactive

COMMAND=String

Pin will execute string when

actuated

COMMAND=Null

Parameter to return the

current programming for the

pin

COMMAND=Clear

Parameter to clear current

programming (do nothing

state)

COMMAND LIST: AA, AD, AGC, CHAIRO, EQ, GAIN, GMODE,

HOOK, LFP, MUTE, NULL, PRESET, TE

Return Values

The command will return the updated condition of the pin in the

same format as the command. If the command did not alter the

state, the command returns the current command for which

the pin is programmed.

Example

The PCMD command line contains both the PCMD

command and the command being programmed. To program

AP400 unit 0 control/status pin 1 to toggle mute on mic 1,

the command would appear as follows:

#30 PCMD 1 MUTE 1 I 2

(toggles mute to the

opposite state: ON to

OFF and vice-versa)