i have a speed dome camera that can be ruled with her keyboard, using Pelco P or D. It works.
i would like to rule it with an arduino (send commands to the camera if something happens).
So i bought a RS485 TTL MAX485 (see it:
Convertitore RS485 TTL MAX485 )
and i know commands to send, that are explained here:
so, where can i find some example sketch to send those commands? how to initialize the small module that i ve bought? i need a sketch to follow and read instructions for sending commands... thank you.
Example, i want to send this command to speed dome:
Byte1 = A0
Byte2 = 00
Data Byte 1= 00
Data Byte 2= 07
Data Byte 3= 00
Data Byte 4= 05
Byte4 = XOR..i will calculate
that is the magic phormula to "call" preset n. 5, as you can see at page2.
i know camera baudrate is 4800 , so i also need commands for my MAX485 module to him to send 4800 baud.
and library or other stuffs? i donw know from where to begin.
Any suggestion is well accepted ..thanks!