Vivotek VS2403 manual Transparent Remote Serial Driver, Send command to device attached to COM1

Page 50

Transparent Remote Serial Driver

Video Server provides a highly customized control support to third-party serial interface devices aside from PTZ cameras. 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 Video Server. The third-party device connected to the serial port of Video Server will receive the same command sent by the originator. The user only needs to attach the command in ASCII format after the special URL. Video Server will parse the commands and translate into binary code to send out.

Send command to device attached to COM1

/cgi-bin/senddata.cgi?com=1&data=123456,ABCDEF&flush=yes&wait=1000&read=6 This hyperlink will inform Video Server to send out binary format commands to COM1 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.

Send command to device attached to COM2

/cgi-bin/senddata.cgi?com=2&data=123456,,,ABCDEF

This hyperlink will inform Video Server to send out binary format command to COM2 with “0x12, 0x34, 0x56” followed by “0xAB, 0xCD, 0xEF” after 600 milliseconds of three comma.

- 49 -

www.vivotek.com

Image 50
Contents Page Technical@vivotek.com Before You Use Table of Contents Frequently Asked Questions Package Contents Features and Benefits Privacy mask Bundled powerful surveillance softwareRemote system upgrade Built-in motion detectionStatus LED’s Physical DescriptionFront Panel BNC video inputs DIP switches 1 toAuxiliary button Reset LED status DescriptionCOM port Rear PanelEthernet 10/100 socket General I/O terminal blockDigital I/O control Power sourceRS485 interface Power adapter How to Install Ethernet Environment Hardware installationPower on Cable connectionSoftware installation Easy way with installer programPage Set password of administrator How to UseFirst access to Video Server Complete the network settingsAuthentication Installing Plug-in Main Graphic modeText mode Video quality selection System configurationVideo input selection Video size selectionCustom camera commands Motorized camera controlSystem Configuration IntroductionSystem parameters Definitions of ConfigurationAdjust date and time Change host nameSecurity privilege Fix the IP address Network settingsBasic network settings PPPoEPage Enable Ddns Ddns & UPnPMail & FTP Mail settingsFTP settings Deny list Access listAllow list Configure attached motorized camera Enable video channelsAdjust image settings Video, camera mapping and motion detectionSelect default video source Configure motion detectionConfigure privacy mask Set video modulationPage Camera Control Port settingsCustom commands Choose serial interfaceHomepage layout Image modeText mode Weekly schedule External command scriptApplication constitution Event operationSequential operation Sending methodView parameters Factory defaultView log file Get snapshot via URL Advanced FunctionsCapture Up-to-date Still Images Get snapshot via FTPDisplay all video Get Continuous ImagesSelect video source and quality and size Get triggered snapshots via FTP Download Event-triggered SnapshotsGet triggered snapshots via URL Channel name Folder nameFile name Value Description Send snapshots to external Smtp email server Uploading Snapshots PeriodicallyUpload snapshots to external FTP server Customize Graphics in Homepage Object File nameParameter explanation Command Script for Complex ApplicationsCommand format Page Command line Description Practical examplesDrive digital outputs URL for External Device ControlQuery status of digital inputs Move motorized camera in PTZ directionTransparent Remote Serial Driver Send command to device attached to COM1Send command to device attached to COM2 Download System Log via FTP URL of System MaintenanceRestore Factory Default Settings via URL Restart System via URLConfigure System via FTP Viewmode Security Usercount Username 0root Userattr 0video1video2video3video4camctrldidoconf Monitor changed status of digital inputs Telnet CommandsSystem core debugging Stop information dumpingRestore factory default settings Reset systemLED pattern after Post Failed function Troubleshooting TroubleshootingPower-On-Self-Test AppendixSystem recovery ResetFrequently Asked Questions Page Page Upgrade System Firmware Easy way via Installation WizardHomepage name Referenced URL URL Commands of Video ServerURL System resource URL Resource name Referenced URLMethod GET/POST General CGI URL syntax and parametersGet server parameter values Set server parameter values NosyncYyyy/mm/dd WirelessVideo Serverwith Pan/Tilt/ZoomAvailable parameters on the server HhmmssSkip to invoke default server 255.255.255.0 Group Security192.168.0.99 LAN Usernameemail 255.255.255.255 Group IPFilterAddress For Ntsc only Ntsc PALGroup Motion1~4 Ntsc & CmosGroup CAMCTRL1~4 Script.vssx Group Feature Settings of Supported PTZ Cameras Camera model Baud rate Data bits Stop bit Parity bitCamera Control Cable Time Zone Table Page GMT+1000 Hobart Vladivostok GMT+1100 Technical Specifications NetworkingElectromagnetic Compatibility EMC