Log in

View Full Version : Cannot Connect to Camera through cRIO


gamemonk0
16-02-2010, 11:27
When we connect to the camera directly from the laptop via crossover, we can get the feed by accessing its IP address (192.168.0.90) in the browser just fine.

However, when it's connected to port two of the cRIO, we can't connect to it, or get it to feed to the driver station.

We can deploy code just fine, and we have the latest (as in the update released literally yesterday) version of the driver station, gyro compass and all.

Can anyone give us some help or point us towards a guide or something, because I haven't been able to find one of those online either?

gamemonk0
17-02-2010, 18:07
Problem resolved.

unobtainium-42
18-02-2010, 12:54
It would be more helpful if you explained how you resolved it.

The network jack on our cRIO did not turn on. The camera needs a crossover cable. Then, apparently you can get it to work by using AxisCamera &camera = AxisCamera::GetInstance(); and setting the parameters (in the constructor).

gamemonk0
19-02-2010, 00:09
So sorry.

We solved it by updating everything. It seems that, somehow, one of our freshmen had managed to update the driver station without the necessary LabView update. So once we got our hands on that and re-updated the driver station as well, we began to start getting camera feed. Hope this helps.

Safety3rd
20-02-2010, 11:43
So sorry.

We solved it by updating everything. It seems that, somehow, one of our freshmen had managed to update the driver station without the necessary LabView update. So once we got our hands on that and re-updated the driver station as well, we began to start getting camera feed. Hope this helps.

now where do you find the updates and everything? what website do you go to or does the driver station have a link to check for updates.

sp33chy
20-02-2010, 12:44
It would be more helpful if you explained how you resolved it.

The network jack on our cRIO did not turn on. The camera needs a crossover cable. Then, apparently you can get it to work by using AxisCamera &camera = AxisCamera::GetInstance(); and setting the parameters (in the constructor).

Quick question... what parameters?

I do call getInstance() (java) but I didn't know I needed to set any other parameters? I can't get this camera to work so maybe thats what I'm missing?

Safety3rd
20-02-2010, 15:38
So sorry.

We solved it by updating everything. It seems that, somehow, one of our freshmen had managed to update the driver station without the necessary LabView update. So once we got our hands on that and re-updated the driver station as well, we began to start getting camera feed. Hope this helps.

now where do you find the updates and everything? what website do you go to or does the driver station have a link to check for updates.

unobtainium-42
20-02-2010, 19:37
I'm not sure how you don't know where the updates are, they are mandatory and on FIRST's website:

http://www.usfirst.org/roboticsprograms/frc/content.aspx?id=10934

Make sure the cRIO's port that connects to the camera turns on its LEDs so the camera has the potential to communicate. I believe this requires a crossover cable.

Include the following lines in the class inheriting SimpleRobot's constructor:

// we just got these lines from the example 2010ImageDemo
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCameraParams::kResoluti on_320x240)
camera.WriteBrightness(0)

After doing just that, our camera works great, even if it's disconnected or booting it will still eventually start the image feed when the camera goes online.