User manual

AVRouter Manual Version 1.0
Page 18
Chapter 6: Communication ProtocolChapter 6: Communication Protocol
Chapter 6: Communication ProtocolChapter 6: Communication Protocol
Chapter 6: Communication Protocol
In order to ensure good communications it is essential that the Hex address switch on the front of the SmartNet-X is set
correctly. The hex switch can be adjusted using a small flat blade screwdriver.
An incorrect setting or having more than one chassis set to the same address will result in comms errors.
6.0 Packet Structure6.0 Packet Structure
6.0 Packet Structure6.0 Packet Structure
6.0 Packet Structure
The general form of packets sent to the SmartNet-X switches are detailed below;
<Header Byte 0><Header Byte 1><Frame Address><Reserved><CMD><DATA BYTES><BCC><Header Byte 0><Header Byte 1><Frame Address><Reserved><CMD><DATA BYTES><BCC>
<Header Byte 0><Header Byte 1><Frame Address><Reserved><CMD><DATA BYTES><BCC><Header Byte 0><Header Byte 1><Frame Address><Reserved><CMD><DATA BYTES><BCC>
<Header Byte 0><Header Byte 1><Frame Address><Reserved><CMD><DATA BYTES><BCC>
Where ;
<Header Byte 0><Header Byte 0>
<Header Byte 0><Header Byte 0>
<Header Byte 0> Always 0xBE
<Header Byte 1><Header Byte 1>
<Header Byte 1><Header Byte 1>
<Header Byte 1> Always 0xEF
<Address><Address>
<Address><Address>
<Address> Frame address. Set by Hex switch on front of unit.
<Reserved><Reserved>
<Reserved><Reserved>
<Reserved> Reserved for future use (Always 0x00)
<CMD><CMD>
<CMD><CMD>
<CMD> Command byte – Determines the number of bytes in DATA BYTES
<DATA BYTES><DATA BYTES>
<DATA BYTES><DATA BYTES>
<DATA BYTES> Number of bytes for associated CMD
<BCC><BCC>
<BCC><BCC>
<BCC> XOR of all bytes in the string up to but not including BCC
On receipt of a valid data packet the SmartNet-X will either respond with an ACK (0x06) or a valid packet
containing the requested data.
7.0 Implemented Commands @ 18/11/20037.0 Implemented Commands @ 18/11/2003
7.0 Implemented Commands @ 18/11/20037.0 Implemented Commands @ 18/11/2003
7.0 Implemented Commands @ 18/11/2003
Note: Note:
Note: Note:
Note: Commas shown in example byte strings below are not transmitted from the serial port they have only been
added only to aid legibility.
7.1 Set Crosspoint Command : CMD = 0x007.1 Set Crosspoint Command : CMD = 0x00
7.1 Set Crosspoint Command : CMD = 0x007.1 Set Crosspoint Command : CMD = 0x00
7.1 Set Crosspoint Command : CMD = 0x00
Sets specified switch output or Destination to the specified input or Source.
Send: <0xBE><0xEF><Address><0x00><0x00><Source><Destination><BCC>Send: <0xBE><0xEF><Address><0x00><0x00><Source><Destination><BCC>
Send: <0xBE><0xEF><Address><0x00><0x00><Source><Destination><BCC>Send: <0xBE><0xEF><Address><0x00><0x00><Source><Destination><BCC>
Send: <0xBE><0xEF><Address><0x00><0x00><Source><Destination><BCC>
This is achieved by creating a loop between chassis using the comms IN and OUT
ports
on the front of the chassis.
i.e.
sserddAsserddA
sserddA
sserddAsserddA gnitteShctiwSxeHgnitteShctiwSxeH
gnitteShctiwSxeH
gnitteShctiwSxeHgnitteShctiwSxeH
00
0
0000
0
00
11
1
1111
1
11
22
2
222
2
2
22
33
3
3333
3
33
44
4
4444
4
44
55
5
5555
5
55
66
6
6666
6
66
77
7
7777
7
77
88
8
8888
8
88
99
9
9999
9
99
0101
01
0101AA
A
AA
1111
11
1111BB
B
BB
2121
21
2121CC
C
CC
3131
31
3131DD
D
DD
4141
41
4141EE
E
EE
5151
51
5151FF
F
FF