Thread: cRIO networking
View Single Post
  #4   Spotlight this post!  
Unread 10-05-2010, 15:51
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 255
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: cRIO networking

Quote:
Originally Posted by byteit101 View Post
How would one go about changing the IP addresses of the cRIO's ports? More specifically, how would you (assuming it is possible) change the cRIO's port 2 from the 192.168.0.x network to a different network (ex 10.4.52.x)?

Also, Is it possible for the cRIO to have a proxy program on it, so stuff on port 1 can communicate with stuff on port 2 (like wireless camera access)?

For networking, how does the cRIO know what port to put it out on? With subnet 255.0.0.0? 255.255.255.0?
I believe the ni-rt.ini file in the root of the cRIO filesystem is where the IP addresses are set (although there might be another ini file as well, I'd have to look). The cRIO knows which port to send data out of based on the IP address and subnet mask set up for each port. It may have a default route set up for IP addresses within neither of those ranges, but I don't know what it is.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)