Go to Post Pulling off an off season during a hurricane isn't easy. - Arefin Bari [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 08-03-2012, 15:08
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,063
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Driver Station cannot connect to cRio

I'm having a problem where I installed the driver station software on my development computer, but I've had problems with getting it to connect to our cRio sometimes (directly wired, so not a wireless problem).

Last night in particular, it refused to do anything other than say "No Robot Communication" However, it's definitely lying to me. Why do I say that?

- I can FTP things back and forth to the robot while it's saying this
- Netconsole works, I can see output from the robot. Nothing strange here
- Using wireshark, I can see packets going back and forth rapidly to/from the computer
- If I click the 'Reboot cRio' button on the driver station software, it works (even though the software warns me that it isn't connected to the cRio, so I will have to physically reboot the cRio)
- The 'robot' light in the diagnostics tab turns green for a second or two, then turns off. It also says 'pinging', then stops saying that.
- VirtualDS 0.7 can communicate with the cRio and enable/disable it with no problems

I reformatted the cRio just in case, and no change. The driver station that I'm using shows version 11.30.11.00, and we're running with the C++ environment.

I vaguely remember having this problem before, and then it magically fixed itself when there was a joystick plugged in. Is it a requirement to have a joystick plugged in for the driver station to work? I'll try again tonight to see if that fixes it, as I didn't have a joystick available to me last night.

Any further thoughts are welcome.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #2   Spotlight this post!  
Unread 08-03-2012, 15:19
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 cannot connect to cRio

Quote:
Originally Posted by virtuald View Post
I vaguely remember having this problem before, and then it magically fixed itself when there was a joystick plugged in. Is it a requirement to have a joystick plugged in for the driver station to work? I'll try again tonight to see if that fixes it, as I didn't have a joystick available to me last night.

Any further thoughts are welcome.
No joystick is required for this.

What is the IP address of your computer? The DS expects it to be a .6 address in order to use it as a local Dashboard. An easy to fix for this is to set your team number in the Driver Station or you can manually change the IP address yourself.
__________________
  #3   Spotlight this post!  
Unread 08-03-2012, 15:41
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Driver Station cannot connect to cRio

Quote:
Originally Posted by DavidGitz View Post
What is the IP address of your computer? The DS expects it to be a .6 address in order to use it as a local Dashboard. An easy to fix for this is to set your team number in the Driver Station or you can manually change the IP address yourself.
The DS expects and sets a .5 address on the wired interface.

It sounds like communication may be going from the DS -> the cRIO but the status packets may not be coming back from the cRIO. This would likely be a firewall issue.
  #4   Spotlight this post!  
Unread 08-03-2012, 15:43
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,063
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Driver Station cannot connect to cRio

Quote:
Originally Posted by DavidGitz View Post
No joystick is required for this.

What is the IP address of your computer? The DS expects it to be a .6 address in order to use it as a local Dashboard. An easy to fix for this is to set your team number in the Driver Station or you can manually change the IP address yourself.
I've had success using different IP address than the 'official' address.

However, I did try setting the team number in the driver station and telling it to configure the network device. Didn't fix it.

Quote:
Originally Posted by RufflesRidge View Post
The DS expects and sets a .5 address on the wired interface.

It sounds like communication may be going from the DS -> the cRIO but the status packets may not be coming back from the cRIO. This would likely be a firewall issue.
But then why did the virtual DS work correctly?

Also, the Driver Station software asks for administrative rights -- presumably this is because it needs to disable the firewall appropriately. I can try disabling the firewall however, that might fix it.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #5   Spotlight this post!  
Unread 08-03-2012, 16:01
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,063
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Driver Station cannot connect to cRio

... just looked at my firewall config, apparently I had the driver station set to be allowed on 'private' networks, and disallowed on 'public' networks. Or something stupid like that... GRR.

Can someone add something to the driver station software to check to see if it's being firewalled so that way it can warn the user? After all, it does ask for administrative privileges.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #6   Spotlight this post!  
Unread 09-03-2012, 12:50
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,063
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Driver Station cannot connect to cRio

It was the firewall. Sigh.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #7   Spotlight this post!  
Unread 10-03-2012, 15:32
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,752
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 Station cannot connect to cRio

I'll look into it. The DS calls netsh to request that the firewall allow through various programs, but I suppose it could have forgotten itself, it could be getting an error, etc.

Just a bit more background. The terminology of the Robot Comms is a bit confusing, as it really means that the DS isn't receiving the expected information from the FRC Communications library on the robot. This could be for many reasons, and the diagnostics tab can ping for you and show if that is the issue.

Also, the DS IP is not that important for development. After all, it is very convenient to have dev tools on other computers along with a copy of the DS. But I'm pretty sure that the field looks to talk to the DS at 10.te.am.05.

Greg McKaskle
  #8   Spotlight this post!  
Unread 13-03-2012, 23:56
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Driver Station cannot connect to cRio

the field looks for .6 as of this year, but if using the lite FMS, it looks for .5
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
  #9   Spotlight this post!  
Unread 14-03-2012, 00:25
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Driver Station cannot connect to cRio

Quote:
Originally Posted by blackflame2996 View Post
the field looks for .6 as of this year, but if using the lite FMS, it looks for .5
Once again, the DS automatically sets .5 when using the NIC Selection Dialog and that is what the field looks for the DS at.
  #10   Spotlight this post!  
Unread 14-03-2012, 19:57
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Driver Station cannot connect to cRio

Quote:
Originally Posted by RufflesRidge View Post
Once again, the DS automatically sets .5 when using the NIC Selection Dialog and that is what the field looks for the DS at.
"In the IP address text box, if this computer is the Classmate and you have run the Driver Station software and successfully set your team number, you should see 10.xx.yy.5, where xx corresponds to the first one or two digits of your team number and yy corresponds to the last two digits of your team number. If this is not the classmate PC you should set the address to 10.xx.yy.6 as the Driver Station defaults to 10.xx.yy.5 for its IP address. In this text box, change the final digit .5 to .6."

this is a quote from:
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Getting%20Started%20with%20the%202012%20FRC%20Cont rol%20System_2.pdf
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
  #11   Spotlight this post!  
Unread 15-03-2012, 00:07
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Driver Station cannot connect to cRio

I apologize, I was misreading the documentation. it is the .5 adress for the classmate. my bad.
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
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 19:20.

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