by, 07-19-2013 at 03:52 PM (2444 Views)
Good day everyone
Iím currently working on a project to control a Pan and Tilt system remotely, using two servos. I was successful using wireless transmitters but the hard part is using RS232 communication over Ethernet. Im using Digital video recorder (DVR) that streams over the net. The dvr has a PTZ control option that communicates using Visca and Pelco-D protocols. After reading on Viscal, The interface to the controller is RS-232C, 9600 bps, 8 bits data, 1 start bit, 1 stop bit and non parity.
I have programmed the BS2 to receive RS232 input but im unable to display that input via debug terminal or serout.
fB VAR Byte
SERIN 1, 16468, [ fB]
SEROUT 16, 16468, 100, [ fB]
If any one could help me receive R232 input to control the pan and tilt ( using two servos) , or any suggestion on how to improve the current code I would really appreciated