Go to Post Without the game, there is no FIRST ... period. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 16-02-2010, 11:27
gamemonk0 gamemonk0 is offline
John Nguyen
AKA: John Nguyen
FRC #0151 (Tough Techs)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Nashua, NH
Posts: 7
gamemonk0 is an unknown quantity at this point
Cannot Connect to Camera through cRIO

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?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2010, 18:07
gamemonk0 gamemonk0 is offline
John Nguyen
AKA: John Nguyen
FRC #0151 (Tough Techs)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Nashua, NH
Posts: 7
gamemonk0 is an unknown quantity at this point
Re: Cannot Connect to Camera through cRIO

Problem resolved.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2010, 12:54
unobtainium-42's Avatar
unobtainium-42 unobtainium-42 is offline
Team President
AKA: Eric Eaton
FRC #0670 (Homestead Robotics Team)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Sunnyvale, CA
Posts: 24
unobtainium-42 is an unknown quantity at this point
Re: Cannot Connect to Camera through cRIO

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).
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2010, 00:09
gamemonk0 gamemonk0 is offline
John Nguyen
AKA: John Nguyen
FRC #0151 (Tough Techs)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Nashua, NH
Posts: 7
gamemonk0 is an unknown quantity at this point
Re: Cannot Connect to Camera through cRIO

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.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2010, 11:43
Safety3rd Safety3rd is offline
Registered User
FRC #3140
 
Join Date: Feb 2010
Location: Knoxville, TN
Posts: 8
Safety3rd is an unknown quantity at this point
Re: Cannot Connect to Camera through cRIO

Quote:
Originally Posted by gamemonk0 View Post
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2010, 15:38
Safety3rd Safety3rd is offline
Registered User
FRC #3140
 
Join Date: Feb 2010
Location: Knoxville, TN
Posts: 8
Safety3rd is an unknown quantity at this point
Re: Cannot Connect to Camera through cRIO

Quote:
Originally Posted by gamemonk0 View Post
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.
Reply With Quote
  #7   Spotlight this post!  
Unread 20-02-2010, 19:37
unobtainium-42's Avatar
unobtainium-42 unobtainium-42 is offline
Team President
AKA: Eric Eaton
FRC #0670 (Homestead Robotics Team)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Sunnyvale, CA
Posts: 24
unobtainium-42 is an unknown quantity at this point
Re: Cannot Connect to Camera through cRIO

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/roboticsprogr....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:

Code:
// we just got these lines from the example 2010ImageDemo
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCameraParams::kResolution_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.
Reply With Quote
  #8   Spotlight this post!  
Unread 20-02-2010, 12:44
sp33chy sp33chy is offline
Registered User
FRC #3332
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Melbourne, FL
Posts: 29
sp33chy is an unknown quantity at this point
Re: Cannot Connect to Camera through cRIO

Quote:
Originally Posted by unobtainium-42 View Post
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?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to cRIO from WindRiver Darkknight512 C/C++ 8 25-01-2011 19:42
Cannot connect Windriver to robot abpahl C/C++ 4 19-02-2010 08:28
Cannot connect to cRIO aybose Java 3 02-02-2010 22:20
I/O Board Cannot Connect Haragorn FRC Control System 2 14-01-2010 13:50
Cannot Connect to Axis Camera Wirelessly computerish Technical Discussion 4 11-01-2009 19:19


All times are GMT -5. The time now is 16:57.

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