10
MAS7.1 Suplemental Guide, Rev 1.1, 9/28/07
MAS7.1 Command Reference
Command Definitions
The commands are defined in alphabetical order.
(*) In an effort to make “Zektor Universal Drivers” easier to write, Zektor has adopted a subset of “Universal
Commands”. By using only these commands, it should be possible to write a driver that works with all Zektor
products. Reducing the effort of writing drivers for multiple Zektor products. The commands that are part of the
Universal Command Set will be marked with a (*).
‘B’ Button Emulation
This command allows access to the internal keyboard handling of the MAS7.1, and is very hardware depen-
dent. Button values returned by the MAS7.1 may and most likely will be different than button values returned
by other Zektor devices.
Each button generates a value upon being pressed, and a different value upon release.
The Power toggle button also generates a unique value when held for 4 seconds, which is used to enter the
setup mode. Other combinations may also generate unique codes.
This command allows the controller to detect front panel button presses even when the front panel is disabled.
This allows the controller very tight control over the MAS7.1. By disabling the front panel (see:
), and by then processing the front panel button presses of the MAS7.1, the user can
redefine the operations of the MAS7.1.
When used in combination with the “Read Last IR Code” command, even IR commands can be handled by the
user, outside the MAS7.1’s firmware.
Because of the tight link between this command and the MAS7.1’s firmware, there are some caveats when
using this command. The Zektor firmware expects a button press code to always be followed by a button
release code. Sending these codes out of logical order will not harm the MAS7.1, but may result in unpredict-
able behavior (buttons codes ignored, or unexpected state changes).
B
b1
,
bn
...
Send one or more button codes to the MAS7.1.
B ?
Query for any buffered button presses.
B
Query for any buffered button presses.
Response String:
=B
b1
,
bn
...
Where:
b1
,
bn
..
= A variable number of button codes (1 to 16 codes per command).
In the Master / Slave mode, only the last 16 button presses will be logged between queries, after that, new but-
ton presses overwrite the old ones in the internal buffer and will be lost to the controller.
The maximum number of button codes that can be sent is 16. If more than 16 button codes are sent a “param-
eter count error” will be returned and only the first 16 button codes will be accepted.