Go to Post We appreciate the time/effort of everyone who contributes to Chief Delphi... hopefully, someday soon we'll be experienced/seasoned enough to contribute advice ourselves... - Michael Blake [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #61   Spotlight this post!  
Unread 20-01-2010, 10:03
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Camera ping questions

I've seen in this thread that one can access the console on the cRio using WindRiver and NetConsole. Is it correct for me to assume then, that one can use putty or some other console program as well by connecting a null modem cable between a PC and the cRio? If this is the case, what is the baud rate and other settings?

My first assumption would be a 115200 baud rate 8 - N - 1 with no flow control. Any help would be great. Thanks.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #62   Spotlight this post!  
Unread 20-01-2010, 10:49
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: 2010 Camera and vision problems.

Well, I see now how one can connect to the cRio using an Ethernet based approach, but is there a method to use just a serial cable?

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #63   Spotlight this post!  
Unread 20-01-2010, 11:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,900
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 2010 Camera and vision problems.

Use a null modeum cable
Any terminal emulator program (9600 baud, 8 data bits, 1 stop bit, parity-none, flow control-none)

On the cRIO there is a DIP switch "Console Out" that must be on. I usually leave it on.

Connect up and reset the cRIO to see the startup console dump.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #64   Spotlight this post!  
Unread 20-01-2010, 15:31
Spacetech's Avatar
Spacetech Spacetech is offline
Lead Programmer
FRC #0263 (Sachem Aftershock)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New York
Posts: 4
Spacetech is an unknown quantity at this point
Re: 2010 Camera and vision problems.

I got it working by changing the username of the camera to FRC and the password to FRC

In Vision/AxisCamera2010.cpp it's using that combo (and only that combo) for the send request
Code:
Authorization: Basic RlJDOkZSQw==
Last years code confirms that the authorization string is FRC, FRC (Vision2009/AxisCamera.cpp)
Code:
"RlJDOkZSQw==",     /* FRC, FRC */
  #65   Spotlight this post!  
Unread 20-01-2010, 17:27
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by Spacetech View Post
I got it working by changing the username of the camera to FRC and the password to FRC

In Vision/AxisCamera2010.cpp it's using that combo (and only that combo) for the send request
Code:
Authorization: Basic RlJDOkZSQw==
Last years code confirms that the authorization string is FRC, FRC (Vision2009/AxisCamera.cpp)
Code:
"RlJDOkZSQw==",     /* FRC, FRC */
I'll try that tonight and see if it helps us. I'll try to post again tomorrow if we get everything working. Thanks!
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #66   Spotlight this post!  
Unread 20-01-2010, 18:11
TPNigl TPNigl is offline
Registered User
FRC #0069 (Team HYPER)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Quincy, MA
Posts: 94
TPNigl is an unknown quantity at this point
Re: 2010 Camera and vision problems.

Ok, so we've tried changing the username and password to FRC, but the camera is still not sending any images. It still says "camera running e". We have everything working on the dashboard except the image.

We noticed that when plugged into port 2, the orange light in the port is not flashing, as opposed to the flashing one in port 1. Is there any chance that could signify the problem/a solution?
__________________


2011 Pit Crew:
2011 CT Xerox Creativity Award

HYPER Alumni
  #67   Spotlight this post!  
Unread 20-01-2010, 19:58
sdlynx's Avatar
sdlynx sdlynx is offline
Registered User
FRC #1111 (Powerhawks)
Team Role: Webmaster
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Edgewater, Maryland
Posts: 13
sdlynx is an unknown quantity at this point
Re: 2010 Camera and Vision Attempted Setup Summary

Quote:
Originally Posted by Bryscus View Post
Hi Guys,

Since there’s a wealth of information located in this thread I’m going to try to summarize the steps for getting a working camera setup for C++ (this may still be helpful for those using the other platforms as well). This summary assumes that code can be loaded on the cRio and run. This is specifically for the 2010 Vision Demonstration example.

<steps>

From the information I can glean from this thread, this should work (and pan and tilt maybe as well if you hook up some servos – my goal is just to get some images first).

Now at this point, us SPAM guys haven’t been able to get it to work (camera/cable work with a computer, but not the cRio), but we didn’t uninstall BOTH of the driver’s station components last night. I’m thinking of just starting from scratch on all of this, so the above is somewhat speculative. Please feel free to make comments or suggestions for additions to the above steps. I know a many people have been going through the same frustrations and I’m trying to alleviate some of the pain. Hope this helps someone!

- Bryce
We tried all of this, and we still doin't get any feed. Also, we manage to keep getting a watchdog not fed error. Both our jaguars are plugged in and connected to motors, along with both joysticks with the drive station. Help?
  #68   Spotlight this post!  
Unread 21-01-2010, 09:38
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
2010 Camera and Vision UPDATED Setup Summary

Ok Guys,

Last night we were able to get it working! It appears our major problem was that the camera did not have an ADMINISTRATIVE user with the username "FRC" and password "FRC". When I add this it works, and when I use "root" and "admin" it does not. This seems definitive to me. Also, I don't think it was necessary, but as we were grasping at straws, we installed the FRC LabView update on the Classmate PC (FRCLabVIEWUpdate2.0for2010.zip). If any teams still can't get this to work, this might be the problem. Can anyone who got it to work verify that they didn't have to install this? Also, you shouldn't have to uninstall and reinstall WindRiver because we didn't.

Here are the updated steps below with what we did:

1. cRio must be reflashed with v19 image.

2. WindRiver should be intstalled with the WPI Lib update (WorkbenchUpdate20100107.exe).
**AN UNINSTALL APPEARS UNNECESSARY AS WE DID NOT UNINSTALL.**

3. The camera should be set up with IP address 192.168.0.90 (which is the default) and a username and password of **FRC** and **FRC**, respectively. I understand there **MAY BE** other valid usernames and password combinations as well.
** I PREVIOUSLY STATED THE USERNAME AND PASSWORD AS root AND admin. THIS IS INCORRECT. I KNOW AT LEAST ONE VALID COMBINATION IS "FRC" and "FRC". root AND admin DO NOT WORK!**

4. The camera should be connected via CROSSOVER cable to Ethernet port 2 on the cRio and adequate power supplied. When you plug in the camera, the orange and green lights should stay on (when not sending data) and may blink a couple times, but no rapid blinks (again, when idle).These two lights signify that there is at least a connection between the cRio and camera. They must be on, or you either have a bad cable, or non CROSSOVER cable (the orange one is a crossover cable).

5. The driver’s station update should be installed (DSUpdate1.0for2010.zip). This requires installing BOTH components, uninstalling BOTH components and then reinstalling BOTH components again. Apparently the NI installer has issues.
**IT MAY NOT BE NECESSARY TO UNINSTALL BOTH COMPONENTS. THE OTHER IS FOR THE CYPRESS I/O AND SHOULD NOT BE RELATED TO THE CAMERA. IT MIGHT HOWEVER, AFFECT THE I/O MODULE.**

6. Add the “2010 Vision Demonstration Program” to the current workspace and compile. (In WindRiver click File -> New -> Example… -> VxWorks Downloadable Kernel Module Sample Project -> FRC 2010 Vision Demonstration Program -> Finish.) Be sure to use the correct compiled cRio image path located in the FIRST Downloader Preferences section of “Preferences” (Located under Window).

7. Deploy the code. And watch it work!


I'll try to give a description of what happens after rebooting the cRio using the unmodified 2010 Vision Demo example:

With the dashboard up and running, reprogram the cRio and then reboot. When the dashboard shows that you have three green lights (communications and two others I don't remember), you should be disabled and Ethernet port 2 on the cRio (to which the camera is connected) should have steady lights, orange and green (the orange may blink every now and then). After enabling, not much happens for at least 10 seconds. Referring to the code, there is a wait statement that will wait for 10 seconds to allow the camera to boot. During this time THE WATCHDOG IS NOT FED. So just after enabling and for about 10 seconds afterwards, the watchdog will not be fed. There will be a message that says "Watchdog not fed". After about 12-15 seconds the orange light at Ethernet Port 2 will start flashing rapidly and an image will be displayed. Also, the "Watchdog not fed" message will go away. The green lights at the front of the camera should come on as well to let you know it has an active connection. Also, when you pull the trigger, the camera will track a target. It seems to do a reasonable job, but the frame rate of the image displayed using the unmodified code is pretty horrible.

My hope is that this will help a lot of teams overcome their frustrations. I'll try to answer any questions people might have about this process.

- Bryce

P.S. The caps locked words are not me screaming, but rather trying to point out important information.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #69   Spotlight this post!  
Unread 21-01-2010, 09:43
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: 2010 Camera and Vision Attempted Setup Summary

Quote:
Originally Posted by sdlynx View Post
We tried all of this, and we still doin't get any feed. Also, we manage to keep getting a watchdog not fed error. Both our jaguars are plugged in and connected to motors, along with both joysticks with the drive station. Help?
sdlynx,

Please refer to the updated setup summary. The "watchdog not fed" message will appear for about 12-15 seconds and then go away. You might not be waiting long enough.

We also have 1 joystick and multiple jags hooked up (we're still on last years setup).

If you have verified that the camera works using a computer, you should see the orange and green light turn on on Ethernet Port 2 when hooked up to the cRio.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.

Last edited by Bryscus : 21-01-2010 at 09:46. Reason: Name addition
  #70   Spotlight this post!  
Unread 23-01-2010, 11:46
Tech's Avatar
Tech Tech is offline
Registered User
FRC #0157 (Aztechs)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 1999
Location: Marlborough, MA
Posts: 2
Tech is an unknown quantity at this point
Re: 2010 Camera and vision problems.

We switched to "2010ImageDemo" and got our camera working.

Note: You need to wait for the camera lights to come back green after rebooting the robot then enable the robot. About 10 seconds later, the camera stream comes up.

In my personal opinion, this camera setup is a real pain in the you know what.

Last edited by Tech : 23-01-2010 at 12:03.
  #71   Spotlight this post!  
Unread 23-01-2010, 19:12
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: 2010 Camera and vision problems.

Has anyone gotten the camera working in DEBUG mode through Wind River?

We can get it working in both RUN, and when we DOWNLOAD the code, but in DEBUG mode the video feed never comes up.

Even in RUN and DOWNLOAD modes, sometimes it's unreliable. When we make code changes using either of these methods, we must reset the cRIO. After powering the unit back on, the video feed doesn't always come up.

Would love to know if anyone else is experiencing this same behaviour, or if it's just us?
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #72   Spotlight this post!  
Unread 24-01-2010, 16:50
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by Mr. Lim View Post
Has anyone gotten the camera working in DEBUG mode through Wind River?

We can get it working in both RUN, and when we DOWNLOAD the code, but in DEBUG mode the video feed never comes up.

Even in RUN and DOWNLOAD modes, sometimes it's unreliable. When we make code changes using either of these methods, we must reset the cRIO. After powering the unit back on, the video feed doesn't always come up.

Would love to know if anyone else is experiencing this same behaviour, or if it's just us?
I don't know about the debug mode, but we also have issues with camera reliability when booting. We can see the code hang in the NetConsole window. Somtimes it instantiates the camera task but doesn't really go anywhere from there.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #73   Spotlight this post!  
Unread 25-01-2010, 11:57
esquared's Avatar
esquared esquared is offline
Keeps saying 3-2-1-Rush...
AKA: Angry Eric
no team (Volunteer!)
Team Role: Mascot
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Boston, MA
Posts: 192
esquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond repute
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by Bryscus View Post
I don't know about the debug mode, but we also have issues with camera reliability when booting. We can see the code hang in the NetConsole window. Somtimes it instantiates the camera task but doesn't really go anywhere from there.

- Bryce
1511 is having the same issue when doing a Debug download. Typically the hang occurs between "starting camera instance" and "getting camera parameters", if you use the 2010ImageDemo example program.

Also, when doing Debug mode with the 2010ImageDemo, the user program will fail to terminate correctly so you can't do multiple debug/run/terminate sessions in a row. The normal FRC tasks terminate correctly, but the CameraTask and PCVideoServer tasks don't die, and result in the robot hanging until a reboot.

--Eric
  #74   Spotlight this post!  
Unread 25-01-2010, 12:48
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: 2010 Camera and vision problems.

Quote:
Originally Posted by esquared View Post
1511 is having the same issue when doing a Debug download. Typically the hang occurs between "starting camera instance" and "getting camera parameters", if you use the 2010ImageDemo example program.

Also, when doing Debug mode with the 2010ImageDemo, the user program will fail to terminate correctly so you can't do multiple debug/run/terminate sessions in a row. The normal FRC tasks terminate correctly, but the CameraTask and PCVideoServer tasks don't die, and result in the robot hanging until a reboot.

--Eric
Yep, 1310 sees the exact same issue here as well. For the time being, we've given up on using DEBUG mode now that we have camera code implemented. We're RUNNING the code, and doing a remote target reset through Wind River between each programming cycle.

It's a real pain, but for the time being, I don't see any way around it. I wonder if there could be an issue with how the AxisCamera object is disposed of?
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #75   Spotlight this post!  
Unread 26-01-2010, 11:28
Sean1038 Sean1038 is offline
Registered User
FRC #1038
 
Join Date: Jan 2010
Location: Liberty Township
Posts: 14
Sean1038 is an unknown quantity at this point
Re: 2010 Camera and vision problems.

I saw that someone said that the watchdog was not being fed. We had that problem too and it turns out that what we were doing was that we put a camera display image into the teleop front panel to see if we could get a picture that way, but when we took that part out of teleop the watchdog never timed out again.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vision problems and FIRST members ebmonon36 Chit-Chat 10 21-01-2006 22:43
vision camera Adama Programming 3 19-01-2006 17:12
71's Vision Tracking Problems Bill Beatty Rumor Mill 7 19-04-2005 17:41
Camera Vision Range Muhnki Programming 7 05-02-2005 23:26
Camera Vision Range Muhnki Programming 7 05-02-2005 23:26


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

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