Chapter 6: communication protocol, Page 24 – Smart Avi SmartNet-V User Manual
Page 24

Page 24
MNSNV102005Ver1.0
Chapter 6: Communication Protocol
Chapter 6: Communication Protocol
Chapter 6: Communication Protocol
Chapter 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-V is
set correctly. The hex switch can be adjusted using a small flat head screwdriver.
An incorrect setting or having more than one chassis set to the same address will result in comms errors.
6.0 P
6.0 P
6.0 P
6.0 P
6.0 Paaaaaccccckkkkket Structure
et Structure
et Structure
et Structure
et Structure
The general form of packets sent to the SmartNet-V switches are detailed below;
<<<< H H H Heeeeead ad ad ad ader Byt er Byt er Byt er Byt er Byte 0 e 0 e 0 e 0 e 0>< >< >< >< > Head Head Head Header B er B er B er B er Byyyyyttttteeeee 1 11 11>< >< >< >< > ram ram ram rameeeee Add Add Add Add Address> ress> ress> ress> ress> serve serve serve served dd d d> > > > > MD MD MD MD>< >< >< >< > D D D DA A A A ATA TA TA TA TA BY BY BY BY BYTE TE TE TE TES> S> S> S> S> Where ; <<<< H H H Header Byte 0 eader Byte 0 eader Byte 0 eader Byte 0 eader Byte 0>>>>> Always 0xBE <<<< H H H Header Byte 1 eader Byte 1 eader Byte 1 eader Byte 1 eader Byte 1>>>>> Always 0xEF dd d dress ress ress ress ress>>>>> Frame address. Set by Hex switch on front of unit. dd d d>>>>> Reserved for future use (Always 0x00) <<<< C C C CMD MD MD MD MD>>>>> Command byte – Determines the number of bytes in DATA BYTES BB B BYT YT YT YT YTE EE EESSSSS>>>>> Number of bytes for associated CMD <<<< 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-V will either respond with an ACK (0x06) or a valid packet containing 7.0 Imp 7.0 Imp 7.0 Imp 7.0 Imp 7.0 Implllllemented Comm emented Comm emented Comm emented Comm emented Commaaaaands @ 18/11 nds @ 18/11 nds @ 18/11 nds @ 18/11 nds @ 18/11/////2003 2003 2003 2003 2003 No No No No Note te te te te::::: Commas shown in example byte strings below are not transmitted from the serial port they have only been added only to aid legibility. 5.0 SmartNet-V Frame Switches 5.0 SmartNet-V Frame Switches 5.0 SmartNet-V Frame Switches 5.0 SmartNet-V Frame Switches 5.0 SmartNet-V Frame Switches The communications port on the SmartNet-V allows for multiple chassis to be connected together. This is achieved by creating a loop between chassis using the comms IN and OUT ports on the front of the chassis. s s e r d d A s s e r d d A s s e r d d A s s e r d d A s s e r d d A h c t i w S x e H h c t i w S x e H h c t i w S x e H h c t i w S x e H h c t i w S x e H g n i t t e S g n i t t e S g n i t t e S g n i t t e S g n i t t e S 00000 00000 11111 11111 22222 22222 33333 33333 44444 44444 55555 55555 66666 66666 77777 77777 88888 88888 99999 99999 0 10 10 10 10 1 A A A A A 1 11 11 11 11 1 B BBBB 2 12 12 12 12 1 C C C C C 3 13 13 13 13 1 D D D D D 4 14 14 14 14 1 EEEEE 5 15 15 15 15 1 FFFFF
the requested data.
i.e.