Go to Post What I learned from week-1 is that once again my son has been inspired to the level that he came home after the BAE Systems Granite State FIRST Robotics Regional Competition with the biggest smile I have seen on his face for a long long time. I am truly grateful for that. - FIRST_Parent [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
  #1   Spotlight this post!  
Unread 02-03-2011, 15:21
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Axis 206 camera not streaming

We seem to have an odd problem, the cRIO can see the camera fine, and can image process on it, but ZomB is not displaying it. Twice, we've had it working (until we reboot the robot), and it just seems to be very random. On the Monday before ship, I opened our dashboard, and the robot was on, and suddenly the camera was on. I was surprised it worked, since it was not working previously, but two minutes later, after I rebooted the robot (same code) and the dashboard, it was gone. I have not seen camera feed from it since. I've stepped into the source of ZomB, and it can connect fine, but the network socket always has no available bytes to read. I've done this multiple times this season, on all of our computers (which worked fine until this season), and it never seems to connect. I am completely baffled.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #2   Spotlight this post!  
Unread 02-03-2011, 20:55
Team#2057-Vegas's Avatar
Team#2057-Vegas Team#2057-Vegas is offline
Team2057LasVegas
AKA: Justin Major
FRC #2057 (AV CyberBulls)
Team Role: Leadership
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Las Vegas
Posts: 113
Team#2057-Vegas can only hope to improve
Re: Axis 206 camera not streaming

this is one of the axis' many faults.. it can do this as well as have days when it will turn on.. and days it wont (power that is) just work with it and hope for the best.

2057
__________________
Justin Major
2057 Team Leader

"We will kick you off our pasture" -- 2057 Motto
  #3   Spotlight this post!  
Unread 05-03-2011, 07:57
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Axis 206 camera not streaming

Quote:
Originally Posted by Team#2057-Vegas View Post
this is one of the axis' many faults.. it can do this as well as have days when it will turn on.. and days it wont (power that is) just work with it and hope for the best.

2057
Wow, I completely reset the camera, and it worked last meeting! lets see if it still works today :-)
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #4   Spotlight this post!  
Unread 05-03-2011, 10:10
Anupam Goli's Avatar
Anupam Goli Anupam Goli is online now
PCH Q&A co-founder/Scouting Mentor
AKA: noops
FRC #1648 (G3 Robotics)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Atlanta, Georgia
Posts: 1,242
Anupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond repute
Re: Axis 206 camera not streaming

Some teams have been having this issue. Test my theory that "Everytime you reboot the robot and immediately turn on the dashboard, it doesn't give you an image, but you shut the dashboard off and later get it back up, it is working". It may be that you need to delay the instantiation of the axis camera for a few seconds or something like that.
__________________
Team 1002: 2008-2012
Team 1648: 2012-2016
Georgia Tech Class of 2016
  #5   Spotlight this post!  
Unread 09-03-2011, 13:59
willishf willishf is offline
Registered User
FRC #3622 (Robocats)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2000
Location: United States
Posts: 12
willishf is an unknown quantity at this point
Re: Axis 206 camera not streaming

Just to verify that the latest dashboard/firmware does appear to have a problem displaying video. I stopped and started the dashboard didn't fix. I issued a reboot command from dashboard and after the reboot the camera image started working.
  #6   Spotlight this post!  
Unread 20-03-2011, 11:52
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Axis 206 camera not streaming

This issue is back, and we were pulling our hair out at Purdue over it, but I think I've narrowed it down to a cRIO fault.
It worked the first time we powered up the robot in the pits, but then stopped, but we were also able to get it to run about 2 other times after numerous dashboard and robot reboots. running some quick tests on our spare cRIO, we rebooted it several times, and all times the dashboard showed the camera instantly. The next day, we swapped out cRIO's, and our next two (rather rough) matches and practice field had camera feed (videos soon!), but then it died again, and no more camera on this one.

So, do you think it is the cRIO or something else?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #7   Spotlight this post!  
Unread 20-03-2011, 12:42
willishf willishf is offline
Registered User
FRC #3622 (Robocats)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2000
Location: United States
Posts: 12
willishf is an unknown quantity at this point
Re: Axis 206 camera not streaming

Based on advice from Michael Tid via email we updated with the latest axis firmware, added the FRC userid and set the camera to get IP via DHCP. The camera is plugged into port 2 via crossover cable. All of the problems we had experienced with v28 and the camera not working went away. Axis provides software for autodiscovery so it sounds like this is part of the cRIO library for finding the camera.

We ended up taking the camera completely out of the robot config because we were having problems during practice at regionals with a non-responsive robot. I have seen on more than one occasion the video lag live by 3-5 seconds which tells me the cRIO will buffer and send all the video. If you are having bandwidth/communication issues then critical commands for driving the robot are probably getting stuck in the queue behind the video.

We also moved the radio, got rid of the radio shack power connector on the radio to try and address the problem. We did manage to get reliable communication but not sure what fixed the problem. I think it is a combination of factors.
  #8   Spotlight this post!  
Unread 20-03-2011, 16:01
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Axis 206 camera not streaming

Quote:
Originally Posted by willishf View Post
Based on advice from Michael Tid via email we updated with the latest axis firmware, added the FRC userid and set the camera to get IP via DHCP.
Where is this updated firmware you speak of located?

DHCP? does the cRIO have a DHCP server on it?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #9   Spotlight this post!  
Unread 21-03-2011, 09:05
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Axis 206 camera not streaming

We have our camera on port 2 in the cRIO, with it's default IP 192.168.0.90. We're able to see our camera just fine with the original dashboard. I'll tell you if it works for us at our meeting tonight with ZomB, it could be another bug.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
  #10   Spotlight this post!  
Unread 21-03-2011, 21:33
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,752
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: Axis 206 camera not streaming

The cRIO does not have a DHCP server on it, but once the camera times out waiting for a DHCP server, it will self-assign to 192.168.0.90.

If you had the camera statically set to 0.90 and the cRIO port two also set to 0.90, that would cause a problem with camera communications.

I believe that both ports on the cRIO have link LEDs. Use them to determine if the cRIO may have a loose enet connector. Also test a different crossover cable and wiggle the connector at the camera.

Swapping cRIO and seeing a temporary improvement doesn't really convince me of what the problem is.

As for the lag, TCP buffers don't wait in line. The lag would be per port. If you have large images and lots of them, you could put a bigger CPU load on the cRIO, but other than that, the UDP packets from the DS and the TCP packets to and from the camera and DS have little to do with one another.

Greg McKaskle
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


All times are GMT -5. The time now is 13:50.

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