SERIAL CONVERTER - RS232 TO RS485 RS422 TTL USB - FIBER OPTIC MODEM - ETHERNET TO FIBER OPTIC
 MEDIA CONVERTER - ADAPTER REPEATER ISOLATOR EXTENDER - FIBER OPTICS - DATA ANALYZER SOFTWARE

CommFront - Fiber Optic Converters, Serial adapters, Serial converters, Media Converter, RS232 RS485 RS422 over Fiber Optic, Fiber Optic Modems, RS232 Analyzer, RS232 to RS485, RS232 to RS422, RS232 to TTL, USB to RS232, USB to serial adapters, Serial Analyzer, RS232 repeater, RS232 extender, RS232 isolator

Home | Downloads | Purchase | Buy in Bulk | Login | Contact Us | Distributors

rs232 serial analyzer    
 

RS232/RS485/RS422/TTL ANALYZER

  - Control serial devices from PC
  - Monitor communications between serial devices
  - Advanced Protocol Checksum Calculator
  - Timestamps in milliseconds
  - Windows 98/2000/XP/Vista compatible
     
         
 

RS232 Serial Analyzer

ADVANCED RS232 SERIAL PORT PROTOCOL ANALYZER

 

RS232 SERIAL ANALYZER

 
  (232Analyzer)  
     
  Download  
  Product Information  
  Demo  
  Online Help  
  10 Reasons to order your 232Analyzer  
  Purchase  
       
  Other products  
     
 

Standard Serial Converters

 
 

Isolated Serial Converters

 
 

Serial Repeaters

 
 

Fiber Optic Converters

 
 

USB Serial Adapters

 
 

RS232 Monitor Cables

 
 

Testimonials

"232Analyzer is a nice piece of software. It’s checksum calculator helped me to analyze pretty tough serial communication protocol."
Timo

"My machine requires response to the signal changes (RTS and DTR) and commands sent, this is the only software I found that is able to do so!"
Steven

Online Help
   

Introduction
Supported Operating Systems
Software features
Applications: Serial port monitor
Applications: Serial port terminal
Applications: Real-world examples
Differences between FREE and the Registered Version
Ordering Information
Software Activation
 
Applications: Real-world examples
(Pelco-D | Pelco-P)
   

Pelco-P Protocol Tutorial / Examples

Besides Pelco-D, Pelco-P is another PTZ camera control protocol from Pelco Inc.
(Note: Pelco-P protocol has been depreciated since a few years ago).

This page will explain the following topics in details:
1) The format of Pelco-P
2) How to calculate the checksum byte by using 232Analyzer
3) Pelco-P command string examples
4) How to use 232Analyzer to control the Pelco-P cameras
5) Have fun playing with 232Analyzer and Pelco-P cameras

After reading this page and testing the camera with the 232Analyzer software, you should be able to understand the ease of using the Pelco-P protocol, and control any Pelco-P cameras in five minutes' time.

Notes:
1) Before you can control any Pelco-P cameras, you need to prepare the following items:
   - A PC running 232Analyzer program
   - A RS-232 port (or USB/RS-232 converter)
   - A RS-232/RS-485 converter
2) Make sure your COM port settings in the 232Analyzer program matches with camera's settings (Pelco-P cameras use No parity, 8 Data bits and 1 Stop bit, baud rate depends on your camera setting)

(Click here to download the 232Analyzer FREE Version. Click here to download Pelco-D/P device profiles)

1) The format of Pelco-P

Pelco-P consists of 8 hexadecimal bytes (all byte data used in this page are in Hexadecimal format unless otherwise noted)

 
Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8
STX Camera Address Data 1 Data 2 Data 3 Data 4 ETX Checksum
Byte 1 (STX) - Start of Text, fixed to A0
  Byte 2 (Camera Address) - logical address of the camera being controlled (Address 1 is 00)
Byte 3 & 6 (Data 1 to 4) - shown below
Byte 7 (ETX) - End of Text, fixed to AF
Byte 8 (Checksum) - xOR sum of Bytes 1 to 7
 
Data 1 to 4 details
  Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Data 1 Fixed to 0 Camera On Auto Scan On Camera On/Off Iris Close Iris Open Focus Near Focus Far
Data 2 Fixed to 0 Zoom Wide Zoom Tele Tilt Down Tilt Up Pan Left Pan Right 0 (for pan/tilt)
Data 3 Pan speed 00 (stop) to 3F (high speed) and 40 for Turbo
Data 4 Tilt speed 00 (stop) to 3F (high speed)
Example (Data 2):
Pan Left - 0 0 0 0 0 1 0 0, which equals to 04 (both hexadecimal and decimal)
 
Some other commands
Command Byte 3 Byte 4 Byte 5 Byte 6
Go to Preset 00 07 00 01 to FF
Set Lens Speed 00 25 00 00 to 33
Alarm Ack. 00 19 00 Alarm no.
 

2) How to calculate the checksum byte by using 232Analyzer

Suppose you are controlling camera 1 (address 1) to pan left at normal speed, the command string of the first 6 bytes would be: A0 00 00 04 20 00 AF

Go to "Checksum Calculator" pane, choose "Hex" as "Operands format" and "xOr" as Operator. Then key in all the bytes in the "Input operands" box. Remember to add "," after each byte of data. You will then get the result of "2B", which is the checksum byte.

Now the full string of pan left at normal speed command would be A0 00 00 04 20 00 AF 2B

 

3) Pelco-P command string examples

Camera Address: 1
Pan Left at normal speed: A0 00 00 04 20 00 AF 2B
Pan Right at normal speed: A0 00 00 02 20 00 AF 2D
Tilt Up at normal speed: A0 00 00 08 00 20 AF 27
Tilt Down at normal speed: A0 00 00 10 00 20 AF 3F
Stop all actions (Pan/Tilt/Zoom/Iris etc.): A0 00 00 00 00 00 AF 0F
 
Note: the controlled cameras will respond by sending back Acknowledgement data
 

4) How to use 232Analyzer to control the Pelco-P cameras

Note: Make sure your COM port settings match the settings of the cameras.

Suppose you are controlling camera address no. 1 to pan left at medium speed (command string: A0 00 00 04 20 00 AF 2B )

Way 1: From the command pane - choose "Hex" as the TX data format and key in the command string "A0,00,00,04,20,00,AF,2B," in the input box as shown below and then click on "Send" button. The command will then be sent out immediately and you will notice the camera panning left continuously.

Note: If you are using the FREE Version, choose "Dec" as TX data format and key in "160,0,0,4,32,0,175,43,"

Way 2: From Programmable buttons

Download and unzip the Pelco-DP.zip file, then open "Pelco-P.232" file from 232Analyzer program. When you click on the first button "Lef", the command will be sent out after 500ms

5) Have fun playing with 232Analyzer and Pelco-P cameras

The programmable buttons 1 to 8 will trigger the camera's action continuously. To stop, you have to send out the "Stop" command "A0 00 00 00 00 00 AF 0F" (or "160 000 000 004 032 000 175 043" in Decimal format) to the camera.

"Pelco-P.232" file allows you to send two (2) commands with the click of a button, e.g. when you click on "Lef" button on the second row (button no. 9), the camera will pan left for 500ms and then stop. This is because button no. 9 is linked to button 17, which stores the "Stop" command. (Note: Programmable buttons 9 to 16 will trigger the camera's action for 500ms and will stop automatically).

You may program it in such a way that the camera pans left for 500ms, stops, tilts up for 1000ms, stops, tilts down for 500ms, and then pans right continuously. All sorts of actions can be done through "Programmable Buttons" or "Macros" functions.

Have fun!

To learn about Pelco-D >>
Download Pelco-D/P examples and 232Analyzer >>

Questions about Pelco-D/P Protocols?
Use our online feedback form or contact Mr. Eric Hamilton from Pelco Inc. (E-mail: ehamilton@pelco.com).

 
 
 

Payment gateways - Serial converters, RS232 Serial Protocol analyzer monitor software CommFront distributor - RS232 Serial Analyzer, Serial adapters, RS232 Serial Port monitor Serial converters, RS485 converters

 

CommFront Communications
Http://www.CommFront.com
Http://www.232Analyzer.com
E-mail: Sales@CommFront.com
Fax (USA): 1-732-676-7928
Fax (Singapore): 65-6491-5729

CommFront FedEx shipping - Serial Adapter, Serial port monitor CommFront USPS shipping - Serial Converter, RS232 Serial Monitor CommFront Singpost shipping - Serial Adapter, RS232 Serial port monitor

   
Terms & Conditions | Privacy Policy | Site Map | Support
USB RS232 RS485 RS422 TTL Serial Ethernet Data Fiber Optic Media Converter Adapter Repeater Isolator Modem Analyzer Monitor Terminal Software