Go to Post ADMIT IT! Dave Lavery has better legs than Amanda Morrison! - DCA Fan [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 28-02-2016, 17:34
NathanCJohnson's Avatar
NathanCJohnson NathanCJohnson is offline
Registered User
FRC #5517 (District 5517 The Engineers on Fire)
Team Role: Driver
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Burton, MI (USA)
Posts: 15
NathanCJohnson is an unknown quantity at this point
Exclamation Driver Station/RoboRIO communication issues

We've been having a couple different communications issues. The first one is that whenever we turn off the robot and turn it back on the laptop has to be restarted in order for the Driver Station program to connect again. It seems to be an mDNS issue because when this happens the Wi-Fi still connects and I am able to ping 10.55.17.2 (roborio IP) but am unable to ping roborio-5517-frc.local (it does work once I restart the computer, though). I am worried this might be an issue at our week 2 competition.

The second issue we discovered today at the Kettering practice/demo event: when connected it would keep momentarily dropping communication ("No Robot Communication") and then reconnecting -- whether it was disabled or enabled. In one of the matches our robot dropped comms and reconnected and then drove forward very fast by itself as if the joystick values queued up and then all fired at once when it reconnected. It hit the castle wall of the opposing alliance pretty hard. We definitely do not want that to happen at our actual competitions.

This event didn't have an FMS so everyone was connecting directly from their driver station to the robot, so this problem may have been due to all the robot Wi-Fi networks in the small area. I'm not sure though.

This year seems really bad for communications for us. Last year we barely had any problems and had everything up and running fine. I really don't know if it is to do with the RoboRIO/radio or the PC but this does worry me quite a bit.

Has anyone else had these issues and solved them? I don't have access to our robot right now and it is bagged again, so won't be able to test anything right now. But we will be using part of our 6 hour unbag time next week for cleaning up some wiring, finish programming, and fixing issues, so I will be able to try any solutions/suggestions then.

Thanks.
__________________
Team 5517 - The Engineers on Fire "Catching The Fire Of FIRST."
Facebook | Twitter | YouTube

Last edited by NathanCJohnson : 28-02-2016 at 18:12.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-02-2016, 19:40
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,695
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/RoboRIO communication issues

When your PC won't reconnect instead of rebooting your PC, the consensus is to Disable/Enable your network adaptor.
What OS are you using?

The radio dropping in and out was probably due to a crowded 2.4GHz band or the particular automatic channel selection being too busy.
The real field is much better at coordinating robot channels, or asking the venues to turn off the access points or 5GHz bands in the area.

Based on your robot's over response you may want to tinker with the motor safety margin and how your code sets motors only when new driver packets come in.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 28-02-2016 at 19:46.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-02-2016, 21:15
NathanCJohnson's Avatar
NathanCJohnson NathanCJohnson is offline
Registered User
FRC #5517 (District 5517 The Engineers on Fire)
Team Role: Driver
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Burton, MI (USA)
Posts: 15
NathanCJohnson is an unknown quantity at this point
Re: Driver Station/RoboRIO communication issues

Quote:
Originally Posted by Mark McLeod View Post
When your PC won't reconnect instead of rebooting your PC, the consensus is to Disable/Enable your network adaptor.
What OS are you using?
Ah, ok. We will try disabling/enabling the network adaptor when it happens again. We are using Windows 10. I wonder if there is a way to prevent it from happening? It happens on all of the Windows 10 laptops we have tried which leads me to believe it's a Windows 10 issue. I did notice my Mac doesn't have the issue - Eclipse is able to connect and deploy code again after restarting the robot without having to change settings or restart the computer.

Our Windows 7 Classmate we got in the KOP last year won't even connect to the radio at all so we had to switch to another laptop.

Quote:
The radio dropping in and out was probably due to a crowded 2.4GHz band or the particular automatic channel selection being too busy.
The real field is much better at coordinating robot channels, or asking the venues to turn off the access points or 5GHz bands in the area.
Yeah, I figured it was probably due to all the robot networks in the area.

Quote:
Based on your robot's over response you may want to tinker with the motor safety margin and how your code sets motors only when new driver packets come it.
I will look into the code. What do you mean by motor safety margin? (I know how to enable motor safety, actually I think it actually may be disabled for RobotDrive motors which may be the issue.) And I'm not sure how to make it set the motors only when new driver packets come in - or is that what motor safety does?

Thank you for the suggestions!
__________________
Team 5517 - The Engineers on Fire "Catching The Fire Of FIRST."
Facebook | Twitter | YouTube
Reply With Quote
  #4   Spotlight this post!  
Unread 28-02-2016, 22:02
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,695
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/RoboRIO communication issues

Windows 10 has introduced several new networking issues.
It can be difficult to find and shutdown all the firewall options and network "helpers".

I'd suggest taking your old Classmate to your competition and asking the CSA there to take a look at getting it working.

How you handle the Motor Safety will depend on the language you use.
There will be a call to set the interval, but by default it'll be 0.1 sec.
How the motor safety works is simply if subsequent Set motor calls aren't made within that 0.1 sec, then the PWM output automatically gets set to neutral.
If your code just calls the Set Motor constantly no matter what, then it'll defeat the purpose of the safety.
__________________
"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 21:23.

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