Go to Post where theres building to do, i'll be there. - Conor Ryan [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 Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 05-01-2009, 20:13
laultima laultima is offline
Registered User
FRC #1458 (Danvillans)
Team Role: Alumni
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Danville, CA
Posts: 87
laultima is on a distinguished road
Send a message via AIM to laultima
Connecting Axis camera to cRIO

We've been having problems getting video data from the Axis camera. Weve set the user and password to FRC, connected with the crossover cable, and tried setting the IP on the camera to both dynamic and static 192.168.0.90, but to no avail. We loaded the DashboardDemo program from Windriver to the cRIO and launched a dashboard from LabView, and all we get on dashboard is the field state and battery voltage.
__________________
2007 Davis/Sacramento Regional Winner (100, 997, 1458)

2008 Davis/Sacramento Regional Gracious Professionalism Award Winner

Reply With Quote
  #2   Spotlight this post!  
Unread 05-01-2009, 20:33
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Connecting Axis camera to cRIO

I'm in pretty much the same predicament as you. So far, we can only get the camera working when its directly plugged into the PC via direct crossover connection (in both NI Vision Assistant and live camera setup). Whenever we plug into the cRIO, the camera isn't recognized by the VA (we get a "Check IP/Cable" error message).

Aside from that, does anyone know how to program the camera to track certain colors or geometric shapes? We're using WindRiver to program using C++ and I can't find a program that will allow us to easily configure the colors and the shapes of the "blobs" we want to track. So I guess simply put, my question is... What program do we use to configure the camera and how will I be able to implement it into my source code?
Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2009, 21:52
legend legend is offline
The Finisher
no team
 
Join Date: Jan 2009
Rookie Year: 2005
Location: North Jersey
Posts: 4
legend is an unknown quantity at this point
Re: Connecting Axis camera to cRIO

Did you try reseting the camera to factory defaults? Try that out, and when asked for a username and password use root/pass.
__________________
"Meaning precedes motivation."
Reply With Quote
  #4   Spotlight this post!  
Unread 06-01-2009, 00:32
laultima laultima is offline
Registered User
FRC #1458 (Danvillans)
Team Role: Alumni
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Danville, CA
Posts: 87
laultima is on a distinguished road
Send a message via AIM to laultima
Re: Connecting Axis camera to cRIO

The camera was reset to defaults today, with the 2 accounts and passwords on it being root/admin and FRC/FRC respectively, does it need the root password to be "pass"?
__________________
2007 Davis/Sacramento Regional Winner (100, 997, 1458)

2008 Davis/Sacramento Regional Gracious Professionalism Award Winner

Reply With Quote
  #5   Spotlight this post!  
Unread 06-01-2009, 01:12
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Connecting Axis camera to cRIO

You should hook it to your computer and run Setup Axis Camera. It'll prepare it for you to hook to your cRIO. Past that, I'm really not sure. We use LabVIEW though. We were able to put it on the same subnet as the laptop and then run that utility, plug it into the cRIO and it worked nicely.
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
Reply With Quote
  #6   Spotlight this post!  
Unread 06-01-2009, 02:17
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Connecting Axis camera to cRIO

I can run the Setup Axis Camera when the camera is directly connected to the computer. It just doesn't like to play nice with the cRIO when connected... I can't get anything to work when it's plugged into the second ethernet port on the cRIO.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-01-2009, 02:28
laultima laultima is offline
Registered User
FRC #1458 (Danvillans)
Team Role: Alumni
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Danville, CA
Posts: 87
laultima is on a distinguished road
Send a message via AIM to laultima
Re: Connecting Axis camera to cRIO

Weve also successfully run the Setup Axis Camera utility, but it still wont work with the cRIO. Im not sure, but I think the only thing that utility does is to add the FRC username to the camera.
__________________
2007 Davis/Sacramento Regional Winner (100, 997, 1458)

2008 Davis/Sacramento Regional Gracious Professionalism Award Winner

Reply With Quote
  #8   Spotlight this post!  
Unread 06-01-2009, 07:21
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Connecting Axis camera to cRIO

Quote:
Originally Posted by laultima View Post
Weve also successfully run the Setup Axis Camera utility, but it still wont work with the cRIO. Im not sure, but I think the only thing that utility does is to add the FRC username to the camera.
Really? We had to do that ourselves to get the program running. We're still not sure how it "sets-up" the camera in the first place...
Reply With Quote
  #9   Spotlight this post!  
Unread 06-01-2009, 07:34
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: Connecting Axis camera to cRIO

The Camera setup utility uses the http requests on the camera to automate adding an account that the rest of the library can then use.

Creating an account by hand name:FRC and password:FRC would be equivalent. Without this, the first time you connect to the camera via web server, it will prompt to set the root accounts password, and since most will type in something different to the single account on the camera, the robot SW would then need to know your password, know how to encrypt, etc.

The FRC, FRC should allow your code to access the camera.

To see if the camera is working, I'd start with the single color vision example, but modify it to print the size of the particle, then widen the hue and saturation and luminance pretty far out if you need to. If you are getting something other than zero, the camera is working.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 06-01-2009, 07:42
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Connecting Axis camera to cRIO

Right now though... We can't even configure the camera to play with the cRIO. Everytime we connect it, we can never establish any connection via NI Vision Assistant or any other programs to get live feed data from the camera. As for the creating the account, we've already set the camera to have an account called FRC with a password of FRC so I think we've been able to pass that... As for the Camera Setup Utility, we've successfully ran that too when the camera is directly connected to the computer via Xover cable.

The problem for us though is that the camera isn't accessible when it's connected to the cRIO. Any ideas on how I can configure the camera or my PC so I can get data from the camera?

By the way... As a side question... I'm using WindRiver... Am I still using NI Vision Assistant to configure the camera to track colors/shapes/etc. or is there another program that is going to manage that? Right now... These two problems are giving me a major migrain...
Reply With Quote
  #11   Spotlight this post!  
Unread 06-01-2009, 08:45
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: Connecting Axis camera to cRIO

kyungjin:
I am using the VisionDemo that came with the example code for WindRiver and it tracks a red object (Santa Hat ) without any trouble.
Try using that and see if it works for you. All you need to do is create a new project from example code. There is an enum with several colors and luminance values predefined in one of the headers. Going through the example code should tell you what you need to know.

laultima:
It (the demo) is not sending actual video frames anywhere, just analyzing them, but this would tell you if the firmware recognizes and controls the camera properly.

hth
good luck!
Jim
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
Axis camera without the cRIO CrazyCarl461 NI LabVIEW 12 17-01-2009 10:53
Connecting Power Distribution block to cRio Paul Rodi Electrical 2 05-01-2009 18:20
AXIS Camera nickmagus Programming 1 03-01-2009 20:06
Program Axis Camera in c++ excel2474 Programming 5 22-12-2008 17:14
axis camera - problem s0crates FRC Control System 11 16-12-2008 09:34


All times are GMT -5. The time now is 19:08.

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