Go to Post I tried to write a scouting app and wanted to throw my desk out a window... - tjf [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 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.
  #2   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
  #3   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
  #4   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,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: 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 11:54.

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