Go to Post Dave doesn't predict the future. He creates it. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2012, 00:25
nonamedude nonamedude is offline
Registered User
FRC #1815
 
Join Date: Nov 2011
Location: Canada
Posts: 10
nonamedude is an unknown quantity at this point
Question Need help with the Axis 206 Camera

Hey guys.

Our team has never really used image processing to its fullest extent, but this year we hope to achieve that. However, we cant seem to get the camera to work with the crio.

We tried running the default code and some of our own code but we always seem to get this error.

Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457
[cRIO] Too much error data!

The code that we are trying to run is the CircleTrackerDemo. We tried some of ;
camera = AxisCamera.getInstance();
camera.writeResolution(AxisCamera.ResolutionT.k320 x240);
camera.writeBrightness(0);
---
DriverStationLCD.getInstance().updateLCD();

but we still get the same error.

These are all the cases I have tried

Connect the camera to the crio (using a crossover cable, in port 2) with an ip of 192.168.90. Outcome = same error

Connect the camera to the crio with an ip of 10.18.15.11. Outcome = same error

Connect the camera to our computer with an ip of 10.18.15.11. Outcome = The video is displayed on the dashboard.

I have no idea of what to do from now.

Thanks for the help guys!
EDIT : We are using Java

Last edited by nonamedude : 19-01-2012 at 00:31. Reason: Extra info
  #2   Spotlight this post!  
Unread 19-01-2012, 05:25
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Need help with the Axis 206 Camera

Have you run the Axis Camera Setup Utility that comes with the FRC Tools Installer?

It sets the IP of the camera to 10.xx.yy.11, and also creates a login/pass that is FRC/FRC. Note the all-caps

Once you run it, you can patch the computer directly to the camera, or through the router, and be able to ping the camera, and open a browser to see the camera's web interface.

Once you've successfully done that, connect the camera to the router on the robot, and try again.

From your programming computer, you should then be able to ping both the cRIO and camera.

If you can do that, your Java code should then work.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #3   Spotlight this post!  
Unread 19-01-2012, 08:19
nonamedude nonamedude is offline
Registered User
FRC #1815
 
Join Date: Nov 2011
Location: Canada
Posts: 10
nonamedude is an unknown quantity at this point
Re: Need help with the Axis 206 Camera

I did set it up through the Axis Camera Setup Utility.

I did that and tried using both ip's 10.xx.yy.11 and 192.168.0.90 but it still gives me the same error.

I am trying to connect it to the crio using the 2nd ethernet port.
  #4   Spotlight this post!  
Unread 19-01-2012, 08:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Need help with the Axis 206 Camera

I'd recommend connecting the camera to the DLink and setting the IP to 10.te.am.11. This configuration works for all robots, 8 and 4 slot. The 8 slot can obviously work with the 192 IP and using the second port, as it did last year, but the default code will need to be changed and the dashboard will need to be modified and rebuilt.

Greg McKaskle
  #5   Spotlight this post!  
Unread 19-01-2012, 10:51
nonamedude nonamedude is offline
Registered User
FRC #1815
 
Join Date: Nov 2011
Location: Canada
Posts: 10
nonamedude is an unknown quantity at this point
Re: Need help with the Axis 206 Camera

O I see, Ill try that and get back to you guys. Thanks for your help!
  #6   Spotlight this post!  
Unread 20-01-2012, 21:47
nonamedude nonamedude is offline
Registered User
FRC #1815
 
Join Date: Nov 2011
Location: Canada
Posts: 10
nonamedude is an unknown quantity at this point
Re: Need help with the Axis 206 Camera

Alright, got it to work.

I connected everything through my router with ips all starting with 10.18.15. Thanks for your help!
Closed Thread


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 09:42.

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