Go to Post I think the best driver team of the post season would be Mike Wade and Pete Baltzell- because they have been driving that NASA field all over the Northeast so all of us can play.Thanks guys!! - Wayne C. [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 01-25-2016, 09:38 PM
jweston's Avatar
jweston jweston is offline
Registered User
FRC #1124 (The Überbots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Avon, CT
Posts: 71
jweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to behold
Radio wifi packet loss

Hoping someone can help us with our radio. We have our roboRIO hooked up to a OM5P-AN. We get a lot of packet loss when we are connected via wifi, significant enough to interfere with manual motor control (i.e. motors will stop turning for a second or more).

We don't experience loss when the driver station laptop is plugged into the roboRIO via ethernet or USB nor does it happen when the driver station laptop is connected to the radio via ethernet.

After checking the battery and wiring to make sure everything was well-connected and powered, we tried the following with no effect:
- swapped out the radio with a different OM5P-AN
- swapped out the roboRIO
- re-imaged the roboRIO
- reconfigured the radio with the Radio Configuration Utilitiy (16.2)
- checked wifi channels to ensure there was no interference

At one point, we swapped out the OM5P-AN with a D-Link which we reconfigured with the Radio Configuration Utility. The D-Link had much less loss although there was a little. Swapping the OM5P-AN back in produced the same loss as it originally did.

Any thoughts? The driver station laptop is running Windows 7.
  #2   Spotlight this post!  
Unread 01-25-2016, 09:59 PM
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Radio wifi packet loss

How sound are the connections going from the router too the VRM? Like are all of the wires tinned and soldered, are they just twisted together with electrical tape and bare copper shoved in to the VRM. Even crimped wires aren't the greatest.
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
  #3   Spotlight this post!  
Unread 01-25-2016, 10:48 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,683
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: Radio wifi packet loss

Have you tried a different laptop?
There are two sides to a WiFi connection.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 01-26-2016, 12:27 AM
jweston's Avatar
jweston jweston is offline
Registered User
FRC #1124 (The Überbots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Avon, CT
Posts: 71
jweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to behold
Re: Radio wifi packet loss

Yes, we did try with another laptop. It actually was worse there. That may have been that laptop. It kept losing track of its network card. The primary laptop has a pretty good track record for wifi but I know that is subject to change.

Forgot to include a snapshot of the loss graph. I hadn't previously got a good look at the volts graph under it (wasn't driving). Interesting. Not sure if it's causative or correlative. Suspicous nonetheless.
Click image for larger version

Name:	packet-loss.jpg
Views:	66
Size:	98.8 KB
ID:	19881

Btw, we were not sending commands during most of the time represented by this graph. Sending and receiving does not correlate at all to the drop outs.
  #5   Spotlight this post!  
Unread 01-26-2016, 12:47 AM
rod@3711 rod@3711 is offline
Registered User
AKA: rod nelson
FRC #3711 (Iron Mustangs)
Team Role: Mentor
 
Join Date: May 2014
Rookie Year: 2014
Location: Trout Lake, WA
Posts: 64
rod@3711 is an unknown quantity at this point
Re: Radio wifi packet loss

In many ways this reminds me of 2015. We had lots of similar problems. Our packet loss sessions came on one minute intervals. At our last event, we quit enabling the USB camera and our problems went away.
  #6   Spotlight this post!  
Unread 01-26-2016, 12:50 AM
IronicDeadBird's Avatar
IronicDeadBird IronicDeadBird is offline
Theory Crafting Fo days...
AKA: Charles Ives "M" Waldo IV
FRC #1339 (Angelbots)
Team Role: Tactician
 
Join Date: Feb 2014
Rookie Year: 2005
Location: Colorado
Posts: 940
IronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond repute
Re: Radio wifi packet loss

I should get a macro for this.
Anyway we had a similar problem where our CAD software had some update thing that would eat our packets alive. Pull up task manager next time you run and see if anything seems out of place.
__________________
HERO 俺を讃える声や 喝采なんて 欲しくはないさ
#GLITTERFORCEHYPE!
Play is for kids this is serious...
  #7   Spotlight this post!  
Unread 01-26-2016, 12:55 AM
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 66
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Radio wifi packet loss

If you click on the little gear icon near the chart app, you can pull up a list of all the saved logs. It also displays more attributes than just the ones shown on the DS view.
See if there's another event being logged coinciding with the lost packets.

On the CRIO it was possible to overuse the available ethernet buffers with network traffic, but I doubt something like that is happening on the roborio.

The other thing to check is to see if you are getting network interference from another wifi network in your workspace.
  #8   Spotlight this post!  
Unread 01-26-2016, 12:59 AM
mdballard's Avatar
mdballard mdballard is offline
SW and Control Systems Mentor
AKA: Matthew Ballard
FRC #4329 (Lutheran Roboteers)
Team Role: Mentor
 
Join Date: Aug 2014
Rookie Year: 2014
Location: Missouri
Posts: 5
mdballard is an unknown quantity at this point
Re: Radio wifi packet loss

We have noticed this as well. It didn't seem to depend on relative location between the robot or driver station. Still looking into the issue.
  #9   Spotlight this post!  
Unread 01-26-2016, 01:21 AM
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,116
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Radio wifi packet loss

What version of Windows are you running?
  #10   Spotlight this post!  
Unread 01-26-2016, 07:13 AM
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: Radio wifi packet loss

Because this is periodic, I'd open up the task manager, click on Processes and sort by the CPU column. Watch these displays together to see if something doesn't jump up at the same time as the loss starts. This is commonly caused by a SW update or a scan.

Another solution is to leave the laptop on and plugged in overnight and let it finish its background stuff so that it will leave you alone. But I prefer to turn these things off as it will come back to life in the future and cause the same issues.

Greg McKaskle
  #11   Spotlight this post!  
Unread 01-26-2016, 05:04 PM
jweston's Avatar
jweston jweston is offline
Registered User
FRC #1124 (The Überbots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Avon, CT
Posts: 71
jweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to behold
Re: Radio wifi packet loss

Thanks for the suggestions! We'll investigate futher. Planning on:
* check the wiring. You know what the electrical team is going to say if we ask if it's solid; of course it is! Ethernet cables and connectors were already checked. They're in great shape.
* watch the process list for CPU usage and other culprits that may be hijacking packets
* try out another laptop
* dig deeper into the DS saved logs

The odd thing is for much of this, the DS should not have been sending or receiving very much data. The camera was disabled.

As for the voltage changes during packet loss, our lead programmer speculates that when the comm fails, the talons are cutting out and back in, causing a change in current draw. That's a plausible explanation but I don't want to assume it's definitely the case. I expect to have more info later tonight.
  #12   Spotlight this post!  
Unread 01-26-2016, 11:51 PM
jweston's Avatar
jweston jweston is offline
Registered User
FRC #1124 (The Überbots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Avon, CT
Posts: 71
jweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to behold
Re: Radio wifi packet loss

Results were unsatisfyingly inconclusive. The wiring, while not tinned, is pretty secure so it's unlikely the cause. We used a few more laptops to connect. They had no trouble connecting but all had varying amounts of packet loss. It wasn't consistent. At times, it seemed like if the robot was enabled or disabled, the loss basically went away. It was tempting to say it was the network card except we would go back to a previously used laptop that was having more loss and it was also experiencing little to no loss.

I'm at the point that I'm thinking it has to be environmental. We checked wifi channels. No interference there. The motors and motor controllers are quite close to radio but they remained powered through the lossless comm periods.

We're going to move the robot into another space and try it there tomorrow.

Thank so much for everyone's help.
  #13   Spotlight this post!  
Unread 01-28-2016, 02:52 PM
Mr.Robby Mr.Robby is offline
Team 4480 Mentor
FRC #4480 (UC-Botics)
Team Role: Coach
 
Join Date: Jan 2016
Rookie Year: 2013
Location: Upsala, MN
Posts: 6
Mr.Robby will become famous soon enough
Re: Radio wifi packet loss

We had experienced this ourself, but again it was brought back to autodesk. We un-installed Autodesk, However still experienced loss. That is because of Akamai Netsession. This program is the Downloader for Autodesk, and is the background downloader causing grief.

Look for it in your add/remove programs. Or if you want to keep autodesk, Akamai has an interface options menu. You can Disable it. That will effectively kill the net connection for Akamai and then you shouldn't experience the loss as well!

Hope this helps!

(Reference thread for Akamai and 4480 http://www.chiefdelphi.com/forums/sh...02#post1531602)
  #14   Spotlight this post!  
Unread 01-28-2016, 06:28 PM
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: 563
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: Radio wifi packet loss

If it's at all possible, I recommend using a machine with a clean install of Windows and nothing else as the driver station machine. There are lots of cheap machines out there. Slap a cheap SSD in there, upgrade to Windows 10, and you're golden.
__________________
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
  #15   Spotlight this post!  
Unread 01-28-2016, 08:58 PM
cbf cbf is online now
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 73
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Radio wifi packet loss

You may be getting a lot of interference on the WiFi band (presumably 2.4Ghz). Try using the inSSIDer utility to map out the WiFi sources around you.

Consider switching to the 5Ghz WiFi band (802.11ac), if your laptop supports that.

Check the bandwidth usage from your laptop using the steps found here.
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 08:00 PM.

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