I've got it, i've got it! Camera on the Pronto including Pan&Tilt.
Will put a link to a movie here later.[8D][8D]
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 6:50 pm
by Snelvuur
For which camera is that? Xcf?
// Erik (binkey.nl)
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 8:16 pm
by Digit
It's for a Sony EVI-D30 in combination with a Convision V200 videoserver.
Pan&Tilt is done by HTTP -> HA app -> RFXCOM LAN Intf + Serial module -> Camera VISCA interface.
Here's the movie: http://www.hekkers.net/files/Pronto_IP_Camera.wmv
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 8:29 pm
by Snelvuur
and xcf file? Good work btw, it looks nice.
// Erik (binkey.nl)
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 8:38 pm
by Digit
It's the IP Camera.xcf for the Panasonic, with some very small modifications. I'll make a reply later to point out where i had to make changes, so you know where to look to adapt this xcf to your own hardware.
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 8:43 pm
by Snelvuur
Thats the magic words i wanted to know i did try to modify it for an axis 241q. But changing the ip, and the jpg settings didn't work enough yet. I did order Flannagans javascript book (5th edition is now availible on bol.com)
Btw, i placed the wmv at youtube for easy clicking. (mostly since i have a problem with the wmv files it seems)
// Erik (binkey.nl)
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 10:25 pm
by TANE
Cool
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 10:30 pm
by Digit
Here a little summary on how i got the IP Camera.xcf running.
First i'll show the original line, the next line is what i made of it.
Line
57 var MOVE_HOME = "HomePosition";
var MOVE_HOME = "pos=home";
58 var MOVE_UP = "TiltUp";
var MOVE_UP = "tiltrel=up";
59 var MOVE_DOWN = "TiltDown";
var MOVE_DOWN = "tiltrel=down";
60 var MOVE_LEFT = "PanLeft";
var MOVE_LEFT = "panrel=left";
61 var MOVE_RIGHT = "PanRight";
var MOVE_RIGHT = "panrel=right";
Basically i had to change to commands to move the camera to the ones i use.
756 var action = "nphControlCamera?Direction=" + direction + "&Mode=Motion&Resolution=" + currentResolu....
var action = "camcontrol?camera=1&"+direction;
804 var imageStartIndex = this.data.indexOf("jpeg");
805 var bitmapData = this.data.substring(imageStartIndex+8);
var imageStartIndex = this.data.indexOf("\r\n\r\n");
var bitmapData = this.data.substring(imageStartIndex+4);
Changed these 2 lines to extract the bitmap data from the camera response to the GET.
The original XCF is using the same IP for getting the JPEG images and sending commands for Pan&Tilt. I use 2 different IPs: 1 to access the camera and another for commands (Pan&Tilt). So i added the latter one the hard way.
That's all folks... i hope you have fun with it and are able to get your cameras showing on the Pronto with this.
One more tip; don't edit in the PEP Editor; take a text editor with syntax highlighting and other handy features (i use UltraEdit), copy the script to your favorite editor, edit there, and paste it back when your done. With larger scripts as this one is, the PEP Editor window is to small to work with in a comfortable way.
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 10:55 pm
by TANE
This is image mode of my Cam...can I get this one on the pronto?
Maybe it's better you send all the documentation you have and i'll have a look.
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 11:08 pm
by Snelvuur
Chak, if your cam is not PTZ just change the things in digits example. I allready got my first cam streaming. No PTZ yet, but that should not be to hard.
Only issue i have is that the axis 241q has 4 inputs. So how can i put in 4 camera's on the same ip.
// Erik (binkey.nl)
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 11:11 pm
by Digit
Look at the Parameter pages! That's where you can enter all the IPs.
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 11:13 pm
by Snelvuur
Yes, ip's so i have 4x the same ip. So how does it know the difference? (allready have an idea perhaps on how to do it) i could use in the name say "Outside [1]" then strip the name so i have "1" then add this to the url.
// Erik (binkey.nl)
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 11:16 pm
by Digit
Then the cam number is probably a parameter in the command on line 762.
Streaming IP Camera on the Pronto incl Pan&Tilt
Posted: Sun Jan 20, 2008 11:18 pm
by Snelvuur
Thats correct, i'll try and put something in there then too.