Author Topic: IP Camera Problem - No Communication  (Read 2226 times)

rdmustang

  • Regular Poster
  • **
  • Posts: 36
    • View Profile
IP Camera Problem - No Communication
« on: August 30, 2008, 10:55:32 pm »
I just bought an Airlink101 http://www.airlink101.com/products/aicn747.php.  It's an IP camera that support mjpeg.

I realize that there is no official support for this but I'm trying to get it to work and will be very happy to update the wiki if I can.

I did find out that the camera runs an open telnet daemon on port 15566 which allowed me to find a URL that gets a static image. 

I set it up based on the wiki entry http://wiki.linuxmce.org/index.php/IP_Cameras.  I found two links that showed a still image and a video stream (respectively):

/cgi/mjpg/mjpeg.cgi
/cgi/jpg/image.cgi

I have a motion wrapper created under core/hybrid and an analog camera under that.  I put the IP and MAC address into the analog camera and set configuration as:

netcam_url  http://192.168.80.240/cgi/jpg/image.cgi
netcam_userpass admin:temppass

I tried setting netcam_url to the following also:
http://192.168.80.240/cgi/mjpg/mjpeg.cgi
/cgi/jpg/image.cgi
/cgi/mjpg/mjpeg.cgi

Nothing worked.  So I decided to try and troubleshoot by looking at the traffic.  I set up tcpTrace http://www.pocketsoap.com/tcpTrace/ on my laptop (192.168.80.252) and set it to forward all traffic from incoming port 80 to 192.168.80.240:80.  I then deleted the camera and recreated it with the same settings except changed the IP for the camera to .252 and changed netcam_url to 252. 

I tried viewing the cameras by going into Security->View Cameras and it still said "Camera screenshot not available."  I didn't see any traffic come to my laptop from the core.  I tried all 4 combinations above and still no traffic coming from the core.

I also tried similar settings with the camera set up as an IP camera but did not see any results there.

Regardless of the camera, shouldn't I see traffic attempting to grab the output from the camera?  I verified that there is no problem going from the core to the camera nor to my laptop on port 80.

Any help is GREATLY appreciated.

rdmustang

  • Regular Poster
  • **
  • Posts: 36
    • View Profile
Re: IP Camera Problem - No Communication
« Reply #1 on: September 02, 2008, 01:15:02 pm »
I rebooted my core and that seemed to have fixed the problem.  I didn't see that in the wiki at all.  Can anyone confirm that this is needed?

I did find that if I set up the path to the image as a mjpeg file that it never closes the connection. This resulted in a hundred or so simultaneous feeds being sent to the core.  This eventually overloads the camera and causes it to completely freeze up.  The solution was to give MCE the address of a jpg and now it works great.

Is there any way around this?  I looked at the Panasonic camera and it manually closes the connection via a Ruby script.  I'm working on getting the pan/tilt features to work via Ruby and will try this but so far adding a new template causes the generic template to stop working with my camera.

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: IP Camera Problem - No Communication
« Reply #2 on: September 02, 2008, 05:33:54 pm »
I suggest you update the wiki page accordingly.
"Change is inevitable. Progress is optional."
-- Anonymous