Download
Solutions
Solution Template
FAQ
Glossary
RMA

FAQ  
 
 How to send CGI requests to control PTZ device in VB ?

Prepare the Essential Resources
  1. ActiveX component to send CGI command
  2. PIXORD CGI-API Programming Guide
  3. PTZ device control Protocols
ActiveX component
  1. Find and insert “MSINET.OCX” in your project
  2. This component is provided by Microsoft. You can find it in “C:\WINDOWS\system32”
  3. To learn more about the component, please go to the MSDN page of Microsoft.
PIXORD CGI-API
Set the Serial Configuration before you begin to use a COM port. You can use the following CGI function
http://<serverIP>/setserial[?<parameter>=<value>[&<parameter>=<value>…]]
with the following parameters and values:


Parameter
Values
Description
port=<int>
1,2
The COM port is selected with this parameter.
mode=<string>
“RS485” / “RS232”
The serial mode of selected COM port.
usage=<int>
2
Reserved. It must be 2.
baud=<int>
300,600,1200,2400,4800,9600,
38400, 57600, 115200
The baud rate of baud rate.
data=<int>
4~8
Data bits.
parity=<int>
0,1
Set to 1 if Parity check is enabled; otherwise, 0 is disabled..
stop=<int> 1, 2 Stop bits.

To send the serial characters, you can use the following CGI function.
http://<serverIP>/serial[?<parameter>=<value>[&<parameter>=<value>…]]
with the following parameters and values:


Parameter
Values
Description
port=<int>
1,2
The COM port is selected with this parameter.
write=<string>
Hex string of ASCII code, e.g. write=414243 as “ABC”
The string going to send through RS232/485 port.
read=<int> 0..128 The string length expected to receive.

CGI Interface Specific
  • To learn more about the CGI functions, please see the PIXORD Camera API, HTTP - Interface Specification at chapter 4.2.2 Serial Port configuration for detailed description.
  • To get this document, please go to PIXORD’s web site to download it.
PTZ protocols
  • Please ask the PTZ device manufacture to get the communication protocol.



Copyright© 2007, PiXORD Corporation.
is a registered trademark of PiXORD Corporation. All rights reserved.