Go to Post While [a college FIRST competition] would be pretty fun, I think that you'll see this build season that mentoring is a heck of a lot of fun too. (except when the kids pretend to cut their fingers off to see your reaction) - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2012, 19:06
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Failed to Connect to the Camera

Hi,
I setup my camera with the 2012 camera setup utility. I plugged it into the port 2 of the cRIO. and in my code i wrote


public class RobotTemplate extends SimpleRobot {

AxisCamera cam;

public RobotTemplate() {
cam = AxisCamera.getInstance("192.168.0.90");
}

But I keep getting this exception
[cRIO] >>>>ERROR: S_errno_EHOSTDOWN (0x00000043): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457
[cRIO] Too much error data!
[cRIO]

What is the problem? Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2012, 20:06
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Failed to Connect to the Camera

I've had this issue before. I'm not sure why, but it doesn't seem possible to connect to the camera by providing an IP. If you remove the IP specification and make it AxisCamera.getInstance(), you shouldn't have this problem anymore. If anyone knows why this is, I'm actually interested because I'm having camera issues myself that may be related to this; it's giving an incompatible mode error, saying that it's receiving bad packets without "content lengths". I'd make my own thread, but at the moment I don't have physical access to the camera and don't want to start a thread with incomplete information. If I haven't solved the issue by the time I have access, I'll make my own thread.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2012, 20:12
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Re: Failed to Connect to the Camera

I tried AxisCamera.getInstance() too but I still got the same error.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2012, 21:19
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Failed to Connect to the Camera

Are you getting camera feedback through the driver station?
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2012, 21:31
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Re: Failed to Connect to the Camera

No, i can't get the camera feed to show up on the dashboard.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-02-2012, 09:45
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Failed to Connect to the Camera

I'd suggest plugging the camera into the router. That way the CRIO doesn't have to worry about sending the camera image to the driver station - the DS can read from the camera via the router. It also helps to split camera config problems from robot config problems - if the DS can see the camera than you know that the camera is OK.

You'd have to configure the camera to use the correct 10.te.am.ZZ address.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2012, 22:10
severhale severhale is offline
Registered User
FRC #4097
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Northampton, MA
Posts: 10
severhale is an unknown quantity at this point
Re: Failed to Connect to the Camera

I got the exact same problem. I managed to fix it by hard resetting the camera and reconfiguring it with the newest camera setup tool (there's been an update since kickoff). And using getInstance("10.te.am.11");
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi