Go to Post This is a game folks, and rules are rules, even if you kinda sorta broke one rule in the end its still broken - Mike Schroeder [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 31-01-2012, 22:40
daniel_dsouza daniel_dsouza is offline
does what needs to be done.
FRC #2449 (Out of Orbit Robotics)
Team Role: Alumni
 
Join Date: May 2011
Rookie Year: 2011
Location: Chandler, AZ
Posts: 231
daniel_dsouza has a spectacular aura aboutdaniel_dsouza has a spectacular aura about
Driver Station Lag

Hello CD,

Throughout the 2012 season, our control system has been plagued with lag issues. The first thing we tried was kicking everything except for the cRIO, the E09 classmate running the driver station, and one programming laptop off the network. We were running the the d-link in bridge mode, and connecting it to a separate router. Our lag remained >20ms.

The second thing we tried was using the d-link as an access point. (We never used auto mode) We thought that eliminating the aforementioned router would decrease lag times. However, the lag times jumped off the charts. When we pinged the access point using the classmate, the lag was >1500ms, often loosing 75% of the packets. Interestingly enough, our programming laptop could ping the access point with <10 ms. This lead us to believe that the problem was with the E09 classmate running the driver station. Efforts to use an external USB wireless adapter were in vain.

Both scenarios left our robot undrivable. Am I correct with my diagnosis of the problem, or is it something else? What do you recommend we do?

Thanks,
Daniel D.

PS. I already read this thread http://www.chiefdelphi.com/forums/sh...d.php?t=100717

Last edited by daniel_dsouza : 01-02-2012 at 13:35.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2012, 22:40
daniel_dsouza daniel_dsouza is offline
does what needs to be done.
FRC #2449 (Out of Orbit Robotics)
Team Role: Alumni
 
Join Date: May 2011
Rookie Year: 2011
Location: Chandler, AZ
Posts: 231
daniel_dsouza has a spectacular aura aboutdaniel_dsouza has a spectacular aura about
Re: Driver Station Lag

Well, our team fixed the problem.

Props to Alex Slaughter, who stomped on that lag issue.

The issue was that two devices were on the same IP, and the router needed to take some time to sort out the information. The driver station classmate wasn't the root cause of the problem...

We also upgraded our firmware. Here is the link

In addition, we also set the router to bridge mode, and connected it to the linksys router we had around from previous years. I am not sure how this part helped though.

Last edited by daniel_dsouza : 06-02-2012 at 22:47.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2012, 10:32
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Driver Station Lag

Quote:
Originally Posted by daniel_dsouza View Post
In addition, we also set the router to bridge mode, and connected it to the linksys router we had around from previous years. I am not sure how this part helped though.
This should not affect anything. Another common cause of lag is the camera not being connected and the camera code not being disabled. IP conflicts are bad. When you run the Driver Station on your laptop it will set the IP address to 10.xx.yy.9 The other IP addresses on the network are:
10.xx.yy.1
10.xx.yy.2
10.xx.yy.11 (If using the camera connected to your dlink)
From what I've seen, the 10.xx.yy.6 is no longer used and 10.xx.yy.4 hasn't been used in a few years. Any other address on your network should cause a conflict. Sinc we normally have several development computers attached to either of our robot's networks we designate a specific address for each computer to avoid this issue. If one of these computers becomes the Driver Station it will go to .9 and then when back in development mode it will go to it's pre-assigned address.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2012, 11:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Driver Station Lag

Quote:
Originally Posted by DavidGitz View Post
IP conflicts are bad.
Indeed. Someone powered up the Classmate yesterday while I was doing development on a different machine. The moment it connected to the robot's wireless network it complained about the IP address already being in use -- which it was, because the Driver Station had configured the programming laptop to the .9 address as well. I immediately started getting approximately a second of communication lag between the DS and the robot. Shutting down the Classmate restored everything to normal.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2012, 11:21
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,799
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: Driver Station Lag

Quote:
Originally Posted by daniel_dsouza View Post
In addition, we also set the router to bridge mode, and connected it to the linksys router we had around from previous years. I am not sure how this part helped though.
If you did see an improvement due to this, then it's possible the DLink in AP mode was conflicting with other wireless networks in the area.
Switching over to the older linksys router might have unintentionally put you on a different band/channel that avoided conflict with existing wireless networks.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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


All times are GMT -5. The time now is 23:04.

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