background image

6

MAS7.1 Suplemental Guide, Rev 1.1, 9/28/07

MAS7.1 Quick Reference

MAS7.1 Quick Command Reference

The quick reference tables and command descriptions refer to Inputs, Zones (or outputs) and Channels.

Inputs

= The number of inputs a switch has. The MAS7.1 is a 3x1 switch and has 3 Inputs.

Zones

= Number of Zones, or outputs, a switch has. The MAS7.1, a 3x1 switch, has 1 Zone.

Channels = The breakaway channels. These are signals that can be switched independently of each other. 

They are referred to in the commands by a single letter.

The MAS7.1 has 4 channels:

M - Multichannel audio (the 5.1 audio connections).
A - Analog audio (the L&R stereo connections).
D - Digital audio.
H - HDMI video.

Some notes on using the tables:

Each command is followed by a <CR> (not shown in the tables).

The ‘Command’ column shows the syntax of the commands. The values in italics are variables and are 
described in the ‘Comments’ column. The non-italic characters are literals and should be used as shown.

Many commands allow a variable number of arguments, the examples shown here are common usages 
of the commands, for more details refer to the complete command reference.

All command names are case sensitive. The parameters used in commands are not case sensitive.

Most commands can be queried by replacing their parameters with a ‘?’ character.

The MAS7.1 is a 3x1 switch and has only one output zone. The command set used by the MAS7.1 is 
designed to be compatible with our line of matrix switches, to make writing a “universal Zektor device 
driver” easier. Because of this, many of the commands require you to supply an output zone, and for the 
MAS7.1, the value can only be ‘1’.

The commands in this table that are marked with a ‘x’ in the ‘U’ column are universal throughout most of the 
Zektor product line. By using only these commands a Zektor universal driver can be more easily written.

Table of MAS7.1 Commands 

U

Command

Description

Comments

x

p

Power control

p=power state (0=off, 1=on, +=toggle).

x

SZ  1,n

Set zone to input

1=Zone, n=Input (1-3,+,-).

x

SZ  1,Mn,An,Dn,Hn

Set inputs w/breakaway

1=Zone, n=Inputs (1-3,+,-). M=Multichannel, A=Stereo, D=Digital, H=HDMI

x

MZ  1,m

Mute zone 1

Mutes everything. 1=Zone, m=Mute (0=Normal, 1=Muted, +=Toggle).

x

MZ  1,Mm,Am,Dm,Hm

Mute w/breakaway

Mutes only the given chans. 1=Zone, m=Mute (0,1,+), M=Multi, A=Stereo, D=Digital, H=HDMI

x

DZ  1,Md,Ad,Dd,Hd

Set delays

Set delay times for each chan. 1=Zone, d=Delay (in ms). M=Multi, A=Stereo, D=Digital, H=HDM

x

V ?

Get version string

Returns: Product name and firmware version string.

x

LI mode,dim,bri

Sets LED intensities

mode=Mode (0=off, 1=dim, 2=bright, 3=auto), dim=Dim level (0-99), bri=Bright level (1-100).

x

Q ?

Query for status

Returns: Operating status flags (see text).

x

QZ ?

Query for no. of zones & inputs

Returns: Number of zones, number of inputs, and breakaway channel options.

x

IR ?

Read last IR code

Returns: Last IR code received.

IRC cmd,ircode

Set (learn) an IR code

cmd=Command being set (see text), ircode=New IR code for command.

b,b,...

Emulate button presses

b=Button Codes (up to 16 codes per ‘B’ command, see text).

x

SS n,$

Save current settings

Save current settings in EEPROM. n=Settings to save (see text).

x

FS 246,$

Reset to factory settings

Resets everything back to their factory default settings!

x

XS flags

Control settings

Set / reset control options. flags=Control option flags (see text).

x

XE flags

Transmit enable flags

Enable commands to asynchronously send there status . flags=Enable flags (see text).

FPC pri,sec,sync

Front panel control

pri=Primary setting (1-3,+), sec=Secondary setting (1-3,+), sync=Sync setting  (0,1,+).

PSM flags

Primary / secondary mapping

Maps channels to the primary or secondary buttons. flags=Map flags (see text).

MCS flags

Multichannel split

Maps split between multichannel and analog stereo connections. flags=Split flags (see text).

Summary of Contents for MAS7.1

Page 1: ...Home Theater Solutions RS 232 Serial Protocol Reference MAS7 1...

Page 2: ...t Learnable IR Code 14 LI Front Panel Light Intensities and Mode 14 MCS Multi Channel Split 15 MZ Mute 16 P Power Control 16 PSM Primary Secondary Mapping 16 Q Query Status 17 QZ Query for Zone Inform...

Page 3: ...cable The MAS7 1 can also be used with any USB to RS 232 conversion cable these are all typically straight through cables Be sure to install any drivers that come with the USB to RS 232 cable you are...

Page 4: ...modes if you send a command and don t get a response in 100ms something s wrong with the connection There are three different types of responses Acknowledgements Errors and Query Strings The Acknowled...

Page 5: ...e when the power is tog gled See Master Slave and Asynchronous Modes of Operation on page 27 Checksums and CRC8 s You can optionally append a checksum or a CRC8 checkcode to the end of any serial comm...

Page 6: ...these commands a Zektor universal driver can be more easily written Table of MAS7 1 Commands U Command Description Comments x P p Power control p power state 0 off 1 on toggle x SZ 1 n Set zone to in...

Page 7: ...A number between 1 and 3 indicating which primary button you re pressing If the Sync LED is lit the both the primary and secondary LEDs will change if it is not lit only the primary LEDs will change...

Page 8: ...S7 1 for its current state use the as the only parameter and the MAS7 1 will respond with a followed by the command with the current settings as parameters To read the power on state of the MAS7 1 P C...

Page 9: ...ror 5 Too many or too few parameters 6 Device busy cannot process command 7 Buffer overflow And some more detailed descriptions of their meanings Error 1 The command given was not recognized as a MAS7...

Page 10: ...ry tight control over the MAS7 1 By disabling the front panel see XS Control Settings on page 21 and by then processing the front panel button presses of the MAS7 1 the user can redefine the operation...

Page 11: ...ut it will be ignored if the MAS7 1 is not in a setup mode By issuing 0 codes the MAS7 1 can be returned to a known state regardless of any possible setup state it might be in The 0 button code is als...

Page 12: ...o prefix is used all channels will be set to the given delay The nn is a variable and indicates the delay time in milliseconds Not all parameters have to be present and they do not have to appear in a...

Page 13: ...for every IR code detected by the front panel IR sensor or IR jack if enabled regardless as to whether the IR code detected was used to control the MAS7 1 The uses for this command are two fold 1 The...

Page 14: ...that the MAS7 1 is able to learn they are IRCmd Description 1 Toggle Power 2 Select Input 1 3 Select Input 2 4 Select Input 3 5 Select Input S1 6 Select Input S2 7 Select Input S3 8 Toggle SYNC 9 Dis...

Page 15: ...L Left stereo audio connector R Right stereo audio connector This command uses a bitmapped parameter See Using Bitmapped Parameters on page 24 Each bit represents the mapping for one connector as def...

Page 16: ...hich channel is being muted If no pre fix is used all channels will be affected The m is a variable and indicates the mute setting 0 Not muted 1 Muted Not all parameters have to be present and they do...

Page 17: ...EEPROM would be PSM 6 If the settings are changed but the suffix is not used the new settings will not be restored after a power fail ure The suffix is used to backup the new settings in EEPROM which...

Page 18: ...s breakaway_opt_x A variable number of breakaway options This command is used to determine the number of inputs zones and the different breakaway options available to a device Its response string is s...

Page 19: ...OM To save the new LI settings you can issue the LI command with just a LI Or you can use the SS command to save all unsaved data which will include the LI setting SS 2 The SS command is also used to...

Page 20: ...return SZ 1 M2 A3 D1 H2 V Version Query Query for the current firmware version of the MAS7 1 V Request version string V Request version string Response String V MAS7 1 firmware_ver firmware_serial_num...

Page 21: ...anged FPC 1 Front panel settings have changed PSM 1 Primary secondary mappings have changed This command uses a bitmapped parameter see Using Bitmapped Parameters on page 24 The parameter is a Backup...

Page 22: ...trol Settings will also backup the Transmit Enable Settings see XE Transmit Enable Settings on page 20 The IR control IRE and the IR jack IRS work differently when disabled Disabling IR control by set...

Page 23: ...erpreted as P 1 When a command has more than one parameter the parameters are separated by either whitespace s or a comma or both whitespace s and a comma for instance LI 3 3 80 CR or LI 3 3 80 CR wil...

Page 24: ...set those two bits and reset all the others would be XS 9 CR Individual bits of a bitmapped parameter can be set or reset without affecting the other bits by prefixing the bit mapped parameter with a...

Page 25: ...e ESC character can be issued to clear the buffer and reset any checksum or CRC 8 checkcode calculations This is useful when communications with the Zektor device is being initialized and the state of...

Page 26: ...er to use a single rou tine to issue a command and check for an Acknowledgement or an Error Response String whether or not the command queries for a response An example of an error response IL CR Sent...

Page 27: ...here is a Query Status command available to the control ler that return the status state of the device as a bitmap of flags indicating which states have changed and need querying This allows the contr...

Page 28: ...ceived One approach would be to write a Get Response routine that handles all Query Response internally by looking for the character and only passing through non query responses By using such a routin...

Page 29: ...nding more and different types of errors than a checksum can A good description of its capability is described in the above referenced articles but a simple example show some of the differences Here s...

Page 30: ...calculated checksum appended to it You can download this source code at http www zektor com downloads ckstst c include stdio h int main void char TestString LI 3 2 80 unsigned char cksum int index ch...

Page 31: ...e bits of the polynomial are reversed from the polynomial s order This allows us to read in each bit starting with bit 0 of each byte instead of bit 7 This is done because the UART sends its LSB first...

Page 32: ...ng LI 3 2 80 unsigned char crc8 int index char token crc8 CRC8_INIT initialize checkcode CRC8 all of TestString index 0 while TestString index 0 crcByte crc8 TestString index Add the CRC 8 token chara...

Reviews: