Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Need help with the Axis 206 Camera (http://www.chiefdelphi.com/forums/showthread.php?t=100616)

nonamedude 19-01-2012 00:25

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

Mr. Lim 19-01-2012 05:25

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.

nonamedude 19-01-2012 08:19

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.

Greg McKaskle 19-01-2012 08:28

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

nonamedude 19-01-2012 10:51

Re: Need help with the Axis 206 Camera
 
O I see, Ill try that and get back to you guys. Thanks for your help!

nonamedude 20-01-2012 21:47

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!


All times are GMT -5. The time now is 15:20.

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