Jump to content
Sign in to follow this  
KMtronic

Need advice about PELCO-D protocol compatible relay board

Recommended Posts

Hi,

 

We are small company who specialize in PC controlled relay boards.

 

Several times we receive questions from CCTV users (or installers) about relay board that can be connected to DVR RS485 and controlled using PTZ buttons.

 

Questions like:

"Can this item be connected to a CCTV DVR and controlled via RS-485

to open/close garage roller door? Gates? etc? "

 

I am not very familiar with CCTV but found from a friend one DVR with RS485 Output for PTZ control.

 

Because we have RS485 relay board using our protocol now I have re-write firmware to accept PELCO-D commands. First version control only one relay:

UP button turn ON relay number 1

DOWN button turn OFF relay number 1

 

I need opinions how to connect Pelco-D commands with relays to be easy for use and understanding.

 

Because relay board have 8 relays and total 16 commands (8 x ON + 8 x OFF).

 

Using UP and DOWN buttons now I can control one relay.

 

Second Relay connect to the same camera channel has to be LEFT/RIGHT?

 

Or all to one channel? Or 4 relays to one channel and 4 relays to second channel?

 

And I also want to make a simple android software for easy relay control throught DVR.

 

So I need some advises from people who know and use DVR.

 

Thank you

rs485_palco_d_01.jpg.e6fdb0d399cb144a61de3974334b3442.jpg

Share this post


Link to post
Share on other sites

Hi,

 

We are small company who specialize in PC controlled relay boards.

I am not very familiar with CCTV but found from a friend one DVR with RS485 Output for PTZ control.

 

Thank you

I would like to talk to you

Your name and ph number plz

PM to me

Thanks

Share this post


Link to post
Share on other sites

You would not have enough controls available in the standard up/down/left/right commands to have 16 functions, how about using "Go To Preset" commands, maybe 1-8 for on, and 9-16 for off? Or, toggling off/on with each call to 1-8?

 

The other function calls aren't as widely utilized, especially in inexpensive DVR's, but calling up presets usually are.

 

You are not going to be able to easily make an Android application for all DVR's, they each use their own proprietary command sets, and are not usually published. Some seem more hackable, though, people have done a lot with Dahua DVR's, and they have a published API.

Share this post


Link to post
Share on other sites

Add zoom in/out and focus near/far - 4 more functions if the DVR supports them.

 

LEFT: FF,01,00,04,3F,00,44

RIGHT: FF,01,00,02,3F,00,42

UP: FF,01,00,08,00,3F,48

DOWN: FF,01,00,10,00,3F,50

LEFT-UP: FF,01,00,0C,3F,3F,8B

RIGHT-UP: FF,01,00,0A,3F,3F,89

RIGHT-DOWN: FF,01,00,12,3F,3F,91

LEFT-DOWN: FF,01,00,14,3F,3F,93

AUTOSCAN: FF,01,10,00,00,00,11

STOP: FF,01,00,00,00,00,01

ZOOM+: FF,01,00,20,00,00,21

ZOOM-: FF,01,00,40,00,00,41

FOCUS+: FF,01,00,08,00,00,09

FOCUS-: FF,01,01,00,00,00,02

 

If course, calling presets is the easiest way to add commands.

CALL PRESET: FF,01,00,07,00,,

 

All commands start with the word 'FF'. The second word is the receiver's address. For the above examples, I used Address #1. With preset calls, the 6th word is the preset number. The checksum is the sum of words 2-6.

Share this post


Link to post
Share on other sites

I know this is an old thread but has anyone gotten this to work?  Is there an over the counter relay that I can use to release a door ideally momentary using a ptz command such as up or down.

Share this post


Link to post
Share on other sites

Yes, pelco has built into the protocol commands for aux relays.  Several external devices pop up in amazon.  Here's one. People use them for dome wipers and flood lighting. 

https://www.amazon.com/protocol-decoder-control-infrared-wipers/dp/B06Y4DYJ42#

Also,  i found this guy who makes them

https://www.google.com/url?sa=t&source=web&rct=j&url=http://www.sennetech.net/Manuals/SCT_CRX/sct-crx-pelco-relay.pdf&ved=2ahUKEwjkjb_7npXiAhVF-6wKHWxgCy84ChAWMAN6BAgHEAE&usg=AOvVaw2pm_xX6veOxXHL-Im3D17Z

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×