…where "!AP16" is the preamble that allows the AP-16+ to exist on the same communications line as other
devices (e.g., DC-16, FC-4, RC-4),
address
is the board address set with configuration switches A1 and A0,
command
is a single-character command designator, and
data
is any value(s) that may be required by
command.
AP-16+ Address settings for remote commands.
OPTION A1
OPTION A0
Address = %00 (0)
OFF
OFF
Address = %01 (1)
OFF
ON
Address = %10 (2)
ON
OFF
Address = %11 (3)
ON
ON
NOTE
: Valid addresses are in the range of %00 (0) to %11 (3). Commands that do not generate a
response to the host will also work with the global address, $FF (255).
The baud rate for serial communications is set with the BR option switch. When the BR option is set to OFF
the AP-16+ uses 2400 baud (e.g., Prop-1); when the BR option is set to ON the AP-16+ uses 38.4k baud
(e.g., Prop-2, Prop-SX).
The following section details the serial commands for the AP-16+.
"X" :: Reset
Syntax:
"!AP16",
address
, "X"
Reply:
None
The
"X"
(reset) command stops a file that is presently playing (via
"P"
command only, AMBIENT.WAV is not
affected). If the ambient loop switch (
) is closed and AMBIENT.WAV is on the SD card, it will restart when
the “X” stops another file.
Prop-1 Example
SEROUT Sio, OT2400, ("!AP16", %00, "X")
In this example a file that was previously started, either manually or using a
"P"
command, will be stopped
and the random play list will be reset. Note that the reset command sets the channel levels and playback
speed to 100%.
"V" :: Get AP-16 Version Number
Syntax:
"!AP16",
address
, "V"
Reply:
3-byte (ASCII) version string
Prop-1 Example:
SEROUT Sio, OT2400, ("!AP16", %00, "V")
SERIN Sio, OT2400, id0, id1, id2
DEBUG "AP-16 Version ", #@id0, #@id1, #@id2, 13
6
EFX-TEK
●
www.efx-tek.com
●