Go to Post We could not make weight so we got rid of the cRIO. - Mike Copioli [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
  #16   Spotlight this post!  
Unread 21-02-2014, 11:53
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,756
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: Consistent robot flicker every 64 seconds

Does the 64 seconds hiccup go away when disabled, if you stay in auto for 64 seconds, or in teleOp. If not, then what of your code is running in all of those cases? Start disabling things a chunk at a time. Use your intuition as to what is more likely to be responsible, but if you have no guess, just use binary search approach. Carefully take half your subsystems out of the system. Did the problem belong to the ones that remain or the ones you took out. Iterate on the right half until you identify it.

Do this in an experimental branch of your code, don't submit things or lose work doing this, but this type of debugging exposition is a very valuable skill in all forms of engineering.

Even if the issue is in WPILib, it may well be due to how your team is using it, and this narrowing of the root cause will be helpful to the people who will debug it. But there is a good chance that you will discover the bug yourself if you take this approach.

Greg McKaskle
  #17   Spotlight this post!  
Unread 04-03-2014, 21:55
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 753
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Consistent robot flicker every 64 seconds

Hi

I just posted a similar issue and got pointed here.

See my post:
http://www.chiefdelphi.com/forums/sh...d.php?t=127469

I've pretty much determined that it's related to the PC running the driver station. It's a new HP convertible laptop running Windows 8. My other personal Windows 8 laptop does NOT exhibit the problem.

What laptop are you using, and have you tried a different one?

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #18   Spotlight this post!  
Unread 05-03-2014, 00:43
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 582
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Consistent robot flicker every 64 seconds

Wifi or wired? Works on one but not the other?

Network drivers fully up to date?

Any difference in antivirus/malware software on working/failing machine?

If you plot these performance counters in perfmon:

\Network Adapter(x)\Output Queue Length
\Network Adapter(x)\Packets Outbound Discarded
\Network Adapter(x)\Packets Outbound Errors

where x is the network adapter you are using, do you see anything unusual? Perfmon instructions at http://technet.microsoft.com/en-us/l.../cc749115.aspx
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
  #19   Spotlight this post!  
Unread 05-03-2014, 08:42
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 753
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Consistent robot flicker every 64 seconds

The DS is wireless to the router.

I'll check the other things on Thursday when I get access to the prototype robot.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #20   Spotlight this post!  
Unread 05-03-2014, 09:29
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 582
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Consistent robot flicker every 64 seconds

Some more ideas.

Look in the Event Viewer and see if there are unusual events related to the networking stack.

They'd usually be under Event Viewer -> Custom Views -> Administrative Events in the tree view.

I'd also go look at the manufacturer web site to see whether there is a new network driver.

Can you repro the issue without any of the FRC software in the loop? One easy way to see would be to copy a very large file to a share on another machine, by dragging in File Explorer. win8 has a very nice visualization of the copy throughput that should clearly show if you're getting blocked periodically.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
  #21   Spotlight this post!  
Unread 05-03-2014, 12:30
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,756
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: Consistent robot flicker every 64 seconds

Phil. I sent a PM with some ideas. Let me know.

Greg McKaskle
  #22   Spotlight this post!  
Unread 07-03-2014, 08:28
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 753
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Consistent robot flicker every 64 seconds

Hi All.

Well, I narrowed down the symptoms even if I don't know the cause. The periodic glitch only occurs when the DS is connected to the router wirelessly.

That is, if I have the DS computer hardwired to a wireless router (with the DS wireless disabled), and the robot is connected to the same router wirelessly, there is no periodic hiccup.

However if the DS connects to the same router wirelessly (no hard wire) I get the periodic hiccup. I tried two different routers (one old and one really new) and I get the identical effect.

I was wondering if the computer was having a hard time because the Robot wireless network does not have access to the internet, and it's doing something to test the connection once a minute.

The good news is that this shouldn't be an issue during competition.... right
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #23   Spotlight this post!  
Unread 07-03-2014, 08:45
Ken Streeter's Avatar
Ken Streeter Ken Streeter is offline
Let the MAYHEM begin!
FRC #1519 (Mechanical Mayhem)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Team: Milford, NH; Me: Bedford, NH
Posts: 475
Ken Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond repute
Re: Consistent robot flicker every 64 seconds

Phil,

I haven't been able to track down the root cause yet, but, for what it's worth, you're not alone. We saw this problem (periodic dropout every 68-ish seconds, lasting only a couple seconds each time, according to the DS log) last night on 1519's practice robot. I don't recall having ever seen it before.

I'll investigate further tonight and let you know what we find out. We have many hours of DS logs on the driver station laptop that we can look through (including logs from Week 1 and Week Zero tournaments) to help see if the problem is caused by other things in the environment. I am quite certain we were NOT having this problem on the competition field at Week 1, as I had been looking at the DS logs for our robot at the tournament with an FTA to troubleshoot a different problem and didn't see this behavior in those logs.

For what it's worth, we're in a somewhat different programming environment, so I'm a little skeptical that the problem is in the robot code. It also sounds like you got the problem to go away by switching laptops, so it seems likely that the problem is induced by something on the laptop. Our DS is running Windows 7 and we are running Java on the robot, but are getting a very similar periodic glitch.

--ken
__________________
Ken Streeter - Team 1519 - Mechanical Mayhem (Milford Area Youth Homeschoolers Enriching Minds)
2015 NE District Winners with 195 & 2067, 125 & 1786, 230 & 4908, and 95 & 1307
2013 World Finalists & Archimedes Division Winners with 33 & 469
2013 & 2012 North Carolina Regional Winners with teams 435 & 4828 and 1311 & 2642
2011, 2010, 2006 Granite State Regional Winners with teams 175 & 176, 1073 & 1058, and 1276 & 133
Team 1519 Video Gallery - including Chairman's Video, and the infamous "Speed Racer!"
  #24   Spotlight this post!  
Unread 07-03-2014, 09:36
jmartin jmartin is offline
Registered User
AKA: Joseph Martin
FRC #0172 (Northernforce)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Gorham
Posts: 30
jmartin is on a distinguished road
Re: Consistent robot flicker every 64 seconds

I think I have been having the same problem - when connected wirelessly to the robot, there are occasional lapses in communication, and though I haven't measured the frequency, ~60sec seems about right.

I am pretty sure that this never happened when on the field while we were at GSD, but it is very annoying when testing at home.
  #25   Spotlight this post!  
Unread 07-03-2014, 10:35
Hoover's Avatar
Hoover Hoover is offline
Registered User
no team (None)
 
Join Date: Mar 2013
Rookie Year: 2013
Location: New Jersey
Posts: 116
Hoover is a name known to allHoover is a name known to allHoover is a name known to allHoover is a name known to allHoover is a name known to allHoover is a name known to all
Re: Consistent robot flicker every 64 seconds

One time at our astronomy lab we were playing with a USB multi band radio. We hit a frequency that was some noise each 11.5 seconds. We never found out what it was but one said it might have been a weather radar sweep.

We are bathed in radio waves. With the right equipment you might be able to find if it is coming from an outside source. If changing channels on your wifi to the low one then the high one, if you still get this drop out and its external its got to be a fairly strong signal.

In our lab we have a second training robot with a program no more than just to drive it. A situation like this could prove to isolate it to one robot and then it would be software/hardware. Even with one robot, uploading the smallest program to drive the robot could implicate or eliminate software.

But what would be the most interesting is if both robots were to drop out at the same time.
  #26   Spotlight this post!  
Unread 08-03-2014, 14:09
Ken Streeter's Avatar
Ken Streeter Ken Streeter is offline
Let the MAYHEM begin!
FRC #1519 (Mechanical Mayhem)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Team: Milford, NH; Me: Bedford, NH
Posts: 475
Ken Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond repute
Re: Consistent robot flicker every 64 seconds

Quote:
Originally Posted by Ken Streeter View Post
We saw this problem (periodic dropout every 68-ish seconds, lasting only a couple seconds each time, according to the DS log) last night on 1519's practice robot. I don't recall having ever seen it before.

I'll investigate further tonight and let you know what we find out.
We investigated this further last night. We had the problem (lost packets every 64-68 seconds) with 100% consistency when the robot D-Link 1522 was configured as an "access point" with the Driver Station laptop connecting to the D-Link 1522 wirelessly.

We then switched to our normal driving practice configuration, with the robot D-Link 1522 in "bridge" mode, connecting to a Cisco/Linksys WRT-610N serving as the access point, with the Driver Station laptop wired directly to the WRT-610N. This latter configuration worked fine without any of the "64-68 second problem" occurring.

There is no evidence of the "64-68 second problem" in any of 1519's Driver Station logs from the Week Zero or Week 1 tournaments in which we participated.
__________________
Ken Streeter - Team 1519 - Mechanical Mayhem (Milford Area Youth Homeschoolers Enriching Minds)
2015 NE District Winners with 195 & 2067, 125 & 1786, 230 & 4908, and 95 & 1307
2013 World Finalists & Archimedes Division Winners with 33 & 469
2013 & 2012 North Carolina Regional Winners with teams 435 & 4828 and 1311 & 2642
2011, 2010, 2006 Granite State Regional Winners with teams 175 & 176, 1073 & 1058, and 1276 & 133
Team 1519 Video Gallery - including Chairman's Video, and the infamous "Speed Racer!"

Last edited by Ken Streeter : 08-03-2014 at 14:16.
  #27   Spotlight this post!  
Unread 09-03-2014, 07:55
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,756
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: Consistent robot flicker every 64 seconds

Ken, do you have a copy of WireShark? If you can cause this to happen, you can record the traffic on the laptop interface and may be able to determine whether the router is being slow or bombarded by something, or if the laptop is doing something. Also, I can provide an instrumented DS if that helps.

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:12.

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