RS232 serial protocol analyzer rs232 analyzer offer
         
 

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  
     
 

RS232 to RS485 Converters

 
 

RS232 to RS422 Converters

 
 

RS232 RS485 RS422 to TTL Converters

 
 

RS232 Isolators / Isolated Converters

 
 

RS232 RS485 RS422 Repeaters

 
 

Fiber Optic Converters

 
 

USB Serial Adapters

 
 

 
How to Order?


Secure Online Ordering

All major credit cards and PayPal are accepted
Click here to order

Bank Wire Transfer

Bank wire transfer accepted for orders > $500
Contact us for details
Order from Distributors
Click here
 

 
FREE Worldwide Shipping



(Same-Day Shipping)


Within USA
(Ship from Maryland)
USPS Priority: FREE
Customer FedEx/UPS/DHL acc#: FREE
2Day: From $8
Overnight: From $12
(Guaranteed FedEx: Close at 5:30pm EST)
International
Registered Airmail: FREE
Customer FedEx/UPS/DHL acc#: FREE
FREE Express:
Orders >$150
 
 
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-D Protocol Tutorial / Examples

 

  Pelco-D is the popular PTZ camera control protocol used in the CCTV industry (Click here to visit Pelco's website).

This page will explain the following topics in details:
1) The format of Pelco-D
2) How to calculate the checksum byte by using 232Analyzer
3) Pelco-D command string examples
4) How to use 232Analyzer to control the Pelco-D cameras
5) Have fun playing with 232Analyzer and Pelco-D 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-D protocol, and control any Pelco-D cameras in five minutes' time.

Notes:
1) Before you can control any Pelco-D 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-D 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-D

Pelco-D consists of 7 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
Sync Camera Address Command 1 Command 2 Data 1 Data 2 Checksum
  • Byte 1 (Sync) - the synchronization byte, fixed to FF

  • Byte 2 (Camera Address) - logical address of the camera being controlled (Address 1 is 01)

  • Byte 3 & 4 (Command 1 and 2) are shown below

  • Byte 5 (Data 1) - pan speed, range from 00 (stop) to 3F (high speed) and FF for "turbo" speed (the maximum pan speed that the device can go)

  • Byte 6 (Data 2) - tilt speed, range from 00 (stop) to 3F (maximum speed)

  • Byte 7 (Checksum) - sum of bytes (excluding the synchronization byte), then modulo 100 (Decimal code: 256)

Command 1 and 2 details
 
  Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Command 1 Sense Reserved Reserved Auto / Manual Scan Camera On/Off Iris Close Iris Open Focus Near
Command 2 Focus Far Zoom Wide Zoom Tele Tilt Down Tilt Up Pan Left Pan Right Fixed to 0
  Example (Command 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 Zoom Speed 00 25 00 00 to 33
Set Focus Speed 00 27 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 high speed, the command string of the first 6 bytes would be: FF 01 00 04 3F 00

Step 1: Go to "Checksum Calculator" pane, choose "Hex" as "Operands format" and "+" as Operator. Then take out the first byte FF and key in all other bytes in the "Input operands" box. Remember to add "," after each byte of data. You will then get the result of "44"

Step 2: Change Operator to "\,Mod", and key in the previous result ("44") and modulo parameter "100" in the "Input operands" box, remember to add "," after each byte of data. You will then get the result of "44" in "Remainder (Mod)" box.

"44" would be the result of checksum, now the full string of pan left at high speed command would be FF 01 00 04 3F 00 44

3) Pelco-D command string examples

Camera Address: 1
Pan Left at high speed: FF 01 00 04 3F 00 44
Pan Right at medium speed: FF 01 00 02 20 00 23
Tilt Up at high speed: FF 01 00 08 3F 00 48
Tilt Down at medium speed: FF 01 00 10 20 00 31
Stop all actions (Pan/Tilt/Zoom/Iris etc.): FF 01 00 00 00 00 01
 
Note: there will be no response from cameras in Pelco-D protocol
 

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

Suppose you are controlling camera address no. 1 to pan left at medium speed (command string: FF 01 00 04 20 00 25)

Way 1: From the command pane - choose "Hex" as the TX data format and key in the command string "FF,01,00,04,20,00,25," in the input box as shown below. Then click on the "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 "255,1,0,4,32,0,37,"

Way 2: From Programmable buttons

Download and unzip the Pelco-DP.zip file, then open "Pelco-D.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-D cameras

The programmable buttons 1 to 8 will trigger the camera's action continuously. To stop, you have to send out the "Stop" command "FF 01 00 00 00 00 01" (or "255 01 00 00 00 00 01" Decimal format) to the camera.

"Pelco-D.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-P >>
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)

 
 
 

Mission

   

Our Clients

 
 

CommFront's mission is to provide superior products in terms of safety, simplicity and reliability. Our goal is to provide the best-value products on the market. Accordingly, we continuously review and improve our products, prices, and services to meet or even exceed industry requirements.
 

   

CommFront products are widely used in control and automation systems and have been proven to be extremely reliable, below are some of our valued customers, just to name a few:

 

CommFront clients
 

 

 

           

 

CONTACT US:
http://www.CommFront.com/
http://www.232Analyzer.com/
Sales: Sales@CommFront.com
Support: Support@CommFront.com
USA: 1-800-490-8578
Singapore: +65-6296-8156

  Secure Online Ordering   FREE Worldwide Shipping   100% Satisfaction  

 

Online ordering   Express Shipping
(Same-Day Shipping)
  30-Day Money-Back Guarantee/5-Year Replacement Warranty  

CommFront

Terms & Conditions | Privacy Policy | Site Map | Support |RMA Form