Transparent remote serial driver, Send command to device attached to com port – Vivotek IP2121 User Manual

Page 59

Advertising
background image

- 57 -

Transparent Remote Serial Driver

Network Camera provides a highly customized control support to third-party serial
interface devices aside from PT scanner. That means in addition to setting up a custom
camera with PTZF commands, users may utilize this mode and introduce a customized
homepage to transmit arbitrary user-defined commands from user-side to Network
Camera. The third-party device connected to the serial port of Network Camera will
receive the same command sent by the originator. The user only needs to attach the
command in ASCII format after the special URL. Network Camera will parse the
commands and translate into binary code to send out.

Send command to device attached to COM port

/cgi-bin/senddata.cgi?data=123456,ABCDEF&flush=yes&wait=1000&read=6
This hyperlink will inform Network Camera to send out binary format commands to COM
with “0x12, 0x34, 0x56” followed by “0xAB, 0xCD, 0xEF”. Each comma separates the
commands by 200 milliseconds. “flush=yes” means the receive data buffer of COM port
must be cleared before read. Then read 6 bytes after waiting for 1000 milliseconds. The
read data can be up to 128 bytes and will return as ASCII coded hexadecimal value, e.g.,
0x41, 0x42, 0x43 read from COM port will show in returned homepage as 414243
instead of ABC.



Advertising