Chapter 5: communication protocol, Smartcontrol pro rs-232 protocol – Smart Avi CATSwitch User Manual

Page 25

Advertising
background image

Chapter 5: Communication Protocol

SMARTCONTROL PRO RS-232 Protocol

Smartcontrol Pro is based on RS232 queries with CRC protocol, any software that can send hex

or ascii code can control the CATSWITCH. Each box is called a frame and have a special number

sending Audio/Video from any source to any remote.

1.

To send any command the protocol will be as follow
//FxxMyyIzz<CHK><CR>
All commands should start with //
F is Frame Number
M is destination (Monitor)
XX is the number from 00 to 99
I is the input ( computer,dvd…)
Zz is the number of the input
<CHR> is CRC calculation
<CR> is carriage return (odh)

For example to send input 3 to monitor 12
//F00M12I03<0x42><CR>

to send any input to all M will be 00

Sending RS232 from any source to any remote

RS232 can be sent for one input to one output only. The protocol offers connect and disconnect

2.

Connect any RS-232 cross point:
//FxxRyyIzz<CHK><CR>

3.

To disconnect RS-232 cross point:
//FxxDyyIzz<CHK><CR>

4.

To set new frame address:
//FxxFnn<CHK><CR>

5.

To query cross points from PC:
//FxxU<CHK><CR>



‡,IDOORXWSXWVDUHFRQQHFWHGWRLQSXWWKHQD[0DWUL[ZLOOUHVSRQGZLWK





<0x80><0x80><0x80><0x80><CR>



‡7KHURXWHUZLOOVHQGEDFNRQHE\WHIRUHDFKRXWSXWDQGWKHVWULQJHQGVZLWKD&5!7KH

first byte sent is Output #1. In the example above, since there are 5 bytes total, we know

that there are 4 outputs.



‡7RFDOFXODWHWKHLQSXWQXPEHUWKHURXWHUVHQGVWKHLQSXWQXPEHUZLWKWKHWKELWVHW





R[ ´µ





R[ ´µ

o …





R[)´µ

Notes:



‡:KHQVXFFHVVIXOFRPPDQGVZLOODFNQRZOHGJHE\VHQGLQJWKHFKHFNVXPZLWK



nibbles swapped & <CR><LF>

o e.g. checksum of 0x24 acknowledges with <0x42><CR><LF>



‡$OOE\WHVLQH[DPSOHVDUH$VFLLFKDUDFWHUVXQOHVVWKH\DUHFRQWDLQHGLQEUDFNHWV!



‡&+.!LV([FOXVLYH25 ;25 RIDOOSUHYLRXVE\WHV



‡&5!LVFDUULDJHUHWXUQDOOFRPPDQGVVHQWIURP3&HQGZLWK&5!



‡/)!LVOLQHIHHG



‡[[LVWKHIUDPHDGGUHVVRIWKHURXWHUHJ´µRU´µ

o From the factory the address is always “00”, however it can be changed with

command #4



‡\\LVWKH2XWSXW PRQLWRU QXPEHUHJ´µ



‡]]LVWKH,QSXWQXPEHUHJ´µRU´µ



‡QQLVWKH0DWUL[·VQHZIUDPHDGGUHVV

Advertising