Go to Post Skill in software engineering is all about algorithmic understanding and intuition. Implemenation is an important, but ultimately secondary, concern. Programming languages are more or less arbitrary. - phrontist [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 16-01-2015, 14:21
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
TCP Ports and sockets on the field

This year, I have a Vision Server (which will be released in a couple of days when some bugs are sorted). It communicates using a TCP connection to the roboRIO. That will require one port.

The Vision Server will require another two ports because all of the configuration will be held through the web browser, separate integrated web servers, embedded in the code.

The roboRIO will be having at least one (maybe a couple more as the season progresses, along with my code) port in use. All of the port configurations will take place over a web server.

I am wondering what the port blocks are and why they exist.
If I wanted to run an HTTPd on the roboRIO, on port 890, would I be able to access it during a match? (890 is an arbitrary number that's not in the manual)
  #2   Spotlight this post!  
Unread 16-01-2015, 14:24
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,091
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: TCP Ports and sockets on the field

Quote:
Originally Posted by yash101 View Post
This year, I have a Vision Server (which will be released in a couple of days when some bugs are sorted). It communicates using a TCP connection to the roboRIO. That will require one port.

The Vision Server will require another two ports because all of the configuration will be held through the web browser, separate integrated web servers, embedded in the code.

The roboRIO will be having at least one (maybe a couple more as the season progresses, along with my code) port in use. All of the port configurations will take place over a web server.

I am wondering what the port blocks are and why they exist.
If I wanted to run an HTTPd on the roboRIO, on port 890, would I be able to access it during a match? (890 is an arbitrary number that's not in the manual)
Pg 16 of the game manual has all the ports that are open on the field. TCP 5800-5810 are open for team use, so that is what I would recommend using.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #3   Spotlight this post!  
Unread 16-01-2015, 14:27
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: TCP Ports and sockets on the field

Quote:
Originally Posted by Thad House View Post
Pg 16 of the game manual has all the ports that are open on the field. TCP 5800-5810 are open for team use, so that is what I would recommend using.
I know, but does that mean that other ports are closed? I don't see any point in that!
  #4   Spotlight this post!  
Unread 16-01-2015, 14:34
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,091
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: TCP Ports and sockets on the field

Quote:
Originally Posted by yash101 View Post
I know, but does that mean that other ports are closed? I don't see any point in that!
Yeah I believe the other ports are closed. That way they can control field access, and make sure nothing rogue goes through the system with other ports.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #5   Spotlight this post!  
Unread 16-01-2015, 21:42
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: TCP Ports and sockets on the field

From our experience, the other ports are closed. This bit us badly in 2012, the first year we think they did that. It was updated partway through the build season and we didn't notice that "detail".

For consistency, I'd recommend using the same port as the Axis cameras and try to use the same format.

Side note, it is possible to develop a library which will allow you to integrate an interface with the build in web-browser on the RIO. I think you just need to drop a library into a specific folder. This would be advantageous as it would reduce overhead on the RIO.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
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:55.

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