Go to Post Sometimes the best feeling doesn't come from watching yourself excel but rather from watching others excel. - kristenliz_28 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-07-2016, 10:21
sjcbulldog sjcbulldog is offline
Registered User
FRC #1425
 
Join Date: May 2016
Location: West Lin, OR
Posts: 2
sjcbulldog is an unknown quantity at this point
Network Communications

I am a new SW mentor for this upcoming season. I bought the roboRIO control kit w/ two motors and built a software development station (Frankenbot) to learn all I can about the environment. In playing with various things I found something that seemed odd and wanted to understand if this is part of the environment. I have simplified what I was playing with down to this ...

I created a very simple c++ Robot application using Eclipse. This application is just the template application created by the new project wizard. I compile and deploy the application and use the driver station to put the robot in test mode, and then enable the robot. From here, if I connect to the roboRIO in a browser via the web address, or ssh to the robot, or any other non-driver station network communications the robot is disabled. I can immediately enable it again via the driver station, but any further network connections disables the robot.

Is this normal behavior for the roboRIO runtime environment? Is there some type of watchdog looking for non-First sanctioned traffic between the driver station and the robot?

As quirky as the smart dashboard is, I wanted to play with a way to tune closed loop control by communicating from the robot application to an external application. No communications during competition, but during the build season. But from this it does not look possible.

Thanks
Jack Griffin
Reply With Quote
  #2   Spotlight this post!  
Unread 20-07-2016, 10:43
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,704
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Network Communications

Welcome to ChiefDelphi!

The FMS Whitepaper may have some guidance.

To clarify - you're trying to connect to the various services on the robot which are available, but doing so disables the robot? I haven't seen this behavior before, but I also don't program robot code.

In the past I've programmed custom socket code over the allowed ports (5900-5910 iirc). I've done this with Java code (relatively straightforward if you say everything is an array of doubles). This year the kids setup a node server in the classroom on those ports. Then the robot wrote data to the node server, and clients could connect from any laptop on the robot's subnet to that node server. This has worked live on the field in the past. In 2016 we had to use NetworkTables to get any custom data off of the robot during a match.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #3   Spotlight this post!  
Unread 20-07-2016, 10:53
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 990
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: Network Communications

Any chance you are pressing the "Enter" key when making these other connections? The "Enter" key is a hotkey for robot disable that works regardless of window focus.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-07-2016, 11:00
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #5712 (Gray Matter)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 951
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Network Communications

Quote:
Originally Posted by RufflesRidge View Post
Any chance you are pressing the "Enter" key when making these other connections? The "Enter" key is a hotkey for robot disable that works regardless of window focus.
I thought that was spacebar?
Reply With Quote
  #5   Spotlight this post!  
Unread 20-07-2016, 11:10
frcguy's Avatar
frcguy frcguy is offline
#GearsAllDay
AKA: Nicholas Dal Porto
FRC #5940 (B.R.E.A.D.)
Team Role: Tactician
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Burlingame, CA
Posts: 904
frcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond repute
Quote:
Originally Posted by cbale2000 View Post
I thought that was spacebar?

Spacebar is the Estop, requiring the robot to be restarted before it can be enabled again. Enter is a normal disable.
__________________


2017: Team 5940 (Silicon Valley Regional/San Francisco Regional)
2016: Team 5940 (Silicon Valley Regional Rookie All-Star and Quarterfinalist, Curie Quarterfinalist)

Volunteer: 2016 (Chezy Champs Field Reset, Capital City Classic FTA, MadTown ThrowDown FTA)
Reply With Quote
  #6   Spotlight this post!  
Unread 20-07-2016, 12:26
sjcbulldog sjcbulldog is offline
Registered User
FRC #1425
 
Join Date: May 2016
Location: West Lin, OR
Posts: 2
sjcbulldog is an unknown quantity at this point
Re: Network Communications

Wow, the quick response was amazing. I quickly tried this out and the issue was the spacebar and enter key. I had read the article on the FMS in the past but had not ready about the driver station enter key or space key before. There is a lot of information to take in here to really understand everything.

Thanks again for the quick reply.
Jack Griffin
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 20:00.

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