© Copyright 2018 WyreStorm Technologies |
WyreStorm.com
Presentation Switcher API | 180618-1621
15 of 18
North America: 844.280.WYRE (9973) | UK/EMEA: +44 (0) 1793 343
Email:
3rd Party Device Control (RS-232 2 Port)
Syntax:
soip2 -f /dev/ttyS0
–
b PARAM [
–
r] [
–
H]
–
s "CONTENT"
Description:
Controls a third party serial device connected to RS232-2 port.
Accepted Values:
-f: sets serial device file which is /dev/ttyS0 and cannot be changed.
-b: sets the serial parameters like 115200-8n1 according to a controlled third party serial device and
replace PARAM with them.
115200-8n1 contains the following parts:
Baud Rate: 115200 bps (115200 for short), chosen from 150, 200, 300, 600, 1200, 1800, 2400, 4800,
9600, 19200, 38400, 57600 or 115200
Data Bits: 8 bits (8 for short), chosen from 5, 6, 7 or 8
Parity: None (n for short), chosen from n (None), e (Even) or o (Odd)
Stop Bits: 1 (1 for short), chosen from 1 or 2
[-r]: automatically adds a carriage return in the end of this command for execution. Used if needed.
[-H]: indicates CONTENT are equivalent hexadecimal representations of a command of a controlled third
party device. Used if needed. For details, see
–
s below.
-s: sends a command to a controlled third party device for controlling it. If
–
H is not added, the
command of a controlled third party device must be printable ASCII characters and it will be passed
through to the third party device. In this case, you need to replace CONTENT with this command. If
–
H is
added, the command of a controlled third party device must be converted to its equivalent hexadecimal
representations and replace CONTENT.
Double quotation marks must be used to include CONTENT. Otherwise, spaces cannot be recognized by
switcher.
Example Command:
soip2 -f /dev/ttyS0
–
b 115200-8n1
–
r
–
H
–
s "10 00 02 00 03 91 01 00 01 EF EF 08 01 05 01 01 FF 03 F0
00 00 00 00 00 00 00 00 00 00 00 00 17"
Response:
none