Go to Post So is it important to try? Without a doubt. Does it become frustrating to not win? Most certainly. Should you stop trying? Never! - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > 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 15-02-2014, 17:32
Potatonator's Avatar
Potatonator Potatonator is offline
much potato very robot wow
FRC #4360 (Spudnik)
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Moorhead, MN
Posts: 15
Potatonator is an unknown quantity at this point
Driver won't communicate with robot

Our driver station won't communicate properly with our D-Link. Initially it'll connect just fine, but then the connection will start going in and out. We'll be driving the robot and it will lose and regain connection every 2 seconds. Then, after about 30 or so seconds, it loses connection entirely.

Obviously, it's a bit of an issue that we really can't drive our robot. Any idea what could be causing this? We've tried changing several things, but nothing we did fixed it.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2014, 20:10
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Re: Driver won't communicate with robot

check to see if there are any wifi networks that could be interfering with your signal, if there is, change it to something that isnt being used. If that doesn't work, check the diag tab of the driverstation and see if you are getting watchdog errors, if you are then look at your code and see if there are any functions that are taking a ton of cpu and slowing down the rest of the program.

if all else fails, reconfigure the bridge and the router from defaults .
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2014, 20:17
Chris_Ely's Avatar
Chris_Ely Chris_Ely is offline
Registered User
AKA: luckof13
FRC #3414 (HackBots)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Farmington, Michigan
Posts: 365
Chris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond repute
Re: Driver won't communicate with robot

How is you radio wired?
Be sure it is wired according to this diagram.
__________________
2013: Waterford Finalist, Livonia Winner, MSC Quarterfinalist, Curie Division
2012: Waterford, Northville, Livonia
2011: Waterford Finalist, Livonia
2010: Ann Arbor Rookie Inspiration Award, Troy

Mechanical Engineering Student,
Michigan Technological University
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2014, 18:03
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: Driver won't communicate with robot

You may also want to see if other computers are using the same IP address. You would normally see a nice message telling you such, but this weekend at a scrimmage, I saw it simply act squirrelly and drop the connection. Of course the router would also lose power because the battery was low and radio wasn't boosted, so it was hard to tell what was causing what.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2014, 11:40
Potatonator's Avatar
Potatonator Potatonator is offline
much potato very robot wow
FRC #4360 (Spudnik)
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Moorhead, MN
Posts: 15
Potatonator is an unknown quantity at this point
Re: Driver won't communicate with robot

Thanks for the suggestions--we have triple-checked the radio wiring, no luck. There are also no other computers with the IP address we are using.

We get many dropped packets (typically ~25) and repeated warning messages in the diagnostics:

Warning 44004 Error on Driver Station [paraphrased, but the error code is right]
Warning 44002

and the status of the connection to the robot keeps changing from good to bad and back.

We do not have that problem when using the wired connection.

We are trying to connect wirelessly, but the complete network settings on the classmate are:

wired connection:
IP: 10.43.60.5
subnet mask: 255.0.0.0

wireless connection:
IP: 10.43.60.9
subnet mask: 255.0.0.0
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2014, 11:45
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,513
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Driver won't communicate with robot

This would initially appear to be one of three cases:

Network congestion. Are your robot and driverstation the ONLY two computers on the network?

Wifi congestion. Are there other networks in close proximity that utilize the same channel that might be interfering?

Gaming adapter placement. Is your adapter away from the drive motors, battery cable, and also not surrounded by metal?

Also, you should check the CPU usage of the cRIO. You can check it from the driver station. If it is at 100%, your code is likely the culprit.

Do the symptoms disappear when you tether? Do they happen when your robot is stationary, or only when it is trying to move (under electrical load)?
Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2014, 12:06
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 won't communicate with robot

Have you accidentally started the Driver Station program under two users simultaneously?
Reply With Quote
  #8   Spotlight this post!  
Unread 17-02-2014, 13:24
Potatonator's Avatar
Potatonator Potatonator is offline
much potato very robot wow
FRC #4360 (Spudnik)
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Moorhead, MN
Posts: 15
Potatonator is an unknown quantity at this point
Re: Driver won't communicate with robot

Quote:
Originally Posted by Tom Line View Post
This would initially appear to be one of three cases:

Network congestion. Are your robot and driverstation the ONLY two computers on the network?

Yes

Wifi congestion. Are there other networks in close proximity that utilize the same channel that might be interfering?

We aren't sure how to check on that

Gaming adapter placement. Is your adapter away from the drive motors, battery cable, and also not surrounded by metal?

Yes

Also, you should check the CPU usage of the cRIO. You can check it from the driver station. If it is at 100%, your code is likely the culprit.

CPU usage is just fine

Do the symptoms disappear when you tether? Do they happen when your robot is stationary, or only when it is trying to move (under electrical load)?

Problems go away when we tether, but they do happen even if it's not moving.
@Alan: We checked, we aren't running it twice.

We're thinking it might be a bad router, but not sure yet.

Last edited by Potatonator : 17-02-2014 at 13:29.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2014, 16:47
icecube45's Avatar
icecube45 icecube45 is offline
Drive|Programming|Captain
FRC #0114 (Eaglestrike)
Team Role: Driver
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Los Altos
Posts: 30
icecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the rough
Re: Driver won't communicate with robot

Potatonator,

We had the same problem, and unfortunately lost about 3 days of build time trying to solve it.

I believe it is simply wifi congestion for you,
at our workspace (school), we get the same error, but at nasa yesterday for driver practice (thanks 254), we had no problem, as there were only two wifi networks there, compared to the ~10 here.

If you can, try to go somewhere with less wifi, and check if you still have the problem.

We're kind of stuck with driver practice until we can find a spot at the school to practice (put your robot on the cart, and go travel around to different areas, looking for a less congested space)


Hope you resolve this,
icecube45
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2014, 17:12
Potatonator's Avatar
Potatonator Potatonator is offline
much potato very robot wow
FRC #4360 (Spudnik)
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Moorhead, MN
Posts: 15
Potatonator is an unknown quantity at this point
Re: Driver won't communicate with robot

I just checked the wifi channels at our school. As far as I can tell, our router is channel 1, and all the school's networks are 11. So I doubt interference is the issue.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-02-2014, 17:26
Chris_Ely's Avatar
Chris_Ely Chris_Ely is offline
Registered User
AKA: luckof13
FRC #3414 (HackBots)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Farmington, Michigan
Posts: 365
Chris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond repute
Re: Driver won't communicate with robot

I have seen this happen at demos when there are many WiFi networks , and devices around. Other devices like smart phones will try to connect automatically to the network. We solved this problem by making the robot network an encrypted hidden network by selecting enable hidden wireless in the radio's wireless settings.
__________________
2013: Waterford Finalist, Livonia Winner, MSC Quarterfinalist, Curie Division
2012: Waterford, Northville, Livonia
2011: Waterford Finalist, Livonia
2010: Ann Arbor Rookie Inspiration Award, Troy

Mechanical Engineering Student,
Michigan Technological University
Reply With Quote
  #12   Spotlight this post!  
Unread 17-02-2014, 17:55
Potatonator's Avatar
Potatonator Potatonator is offline
much potato very robot wow
FRC #4360 (Spudnik)
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Moorhead, MN
Posts: 15
Potatonator is an unknown quantity at this point
Re: Driver won't communicate with robot

How would we access the radio's settings? We can't seem to find it.
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 07:30.

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