Go to Post Whoooo, just got my wheels from AM! Sometimes it's cool to live in Indiana. - IndySam [more]
Home
Go Back   Chief Delphi > Technical > 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 30-01-2017, 15:02
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 39
origamitaco is an unknown quantity at this point
Connect to RoboRIO from Internet

I need to be able to drive a robot across the school using the wifi, but I can't figure out how. My first thought was a bridge with a Pi or a laptop on the robot with the wifi being bridged out to Ethernet, but I don't know how I would access the roboRIOs IP and not the host of the bridge's IP. My second thought was installing a USB wifi card on to the RIO directly, but terminal is a nightmare without APT. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2017, 15:07
Kevin Zhang Kevin Zhang is offline
Registered User
FRC #3501
 
Join Date: Dec 2014
Location: usa
Posts: 12
Kevin Zhang is an unknown quantity at this point
Re: Connect to RoboRIO from Internet

The openmesh for competition can be operated from the driverstation over wifi. Just flash the bridge with a 2.4ghz or 5ghz(probably better, less collisions with school network) and connect the driverstation to the bridge wifi.

Then you can operate the robot using your driver station wirelessly as long as you are within range.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2017, 15:09
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 39
origamitaco is an unknown quantity at this point
Re: Connect to RoboRIO from Internet

Quote:
Originally Posted by Kevin Zhang View Post
The openmesh for competition can be operated from the driverstation over wifi. Just flash the bridge with a 2.4ghz or 5ghz(probably better, less collisions with school network) and connect the driverstation to the bridge wifi.

Then you can operate the robot using your driver station wirelessly as long as you are within range.
Sorry if I was unclear. I meant I needed to use the school wifi to drive the robot. Like from across the campus. The robot is the client in this case not the server like usual
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2017, 15:37
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Connect to RoboRIO from Internet

The RoboRio and the Driver Station expect to have IP Addresses of 10.XX.YY.zz where XX and YY are the same for the DS and RoboRio (team number).

Most likely, you will have to ask the School's IT people to give you 3 static IP address that you can use (third one for the Radio).

You will then have to program the Radio to be a bridge between the school's wifi and the robot. Not sure how to do that.

It is not advisable to drive you robot where you can't see it. So, the configuration you propose is not recommended.

Also, it opens up your robot to anyone driving it that happens to have a Driver Station.
__________________

Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2017, 21:05
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 39
origamitaco is an unknown quantity at this point
Re: Connect to RoboRIO from Internet

Quote:
Originally Posted by rich2202 View Post
The RoboRio and the Driver Station expect to have IP Addresses of 10.XX.YY.zz where XX and YY are the same for the DS and RoboRio (team number).

Most likely, you will have to ask the School's IT people to give you 3 static IP address that you can use (third one for the Radio).

You will then have to program the Radio to be a bridge between the school's wifi and the robot. Not sure how to do that.

It is not advisable to drive you robot where you can't see it. So, the configuration you propose is not recommended.

Also, it opens up your robot to anyone driving it that happens to have a Driver Station.
I was able to take another laptop and use it as a bridge between the RIO and the Driver Station on our primary laptop, however I could only get it to work on a private router and not our school's routers. Any idea why that is? Our school has several networks and I tried every single one of them. I noticed on one of them there was actually per-device isolation, meaning I couldn't even ping the laptop from our primary laptop. On the ones where I could, it could never read the RIO, even though it was bridged. I saw that Team 423 accomplished why I am trying to do and it is mind boggling how they did so. I have also tried VPNs and bridging those, and it worked for a few seconds but even then, when I pinged the RIO I got a response back from the laptop instead.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2017, 09:57
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Connect to RoboRIO from Internet

You should chat with the School's IT person. There may be protections to keep you from doing what you want. For instance computers (clients) from directly talking to each other (per device isolation). Security like that would limit viruses from transferring from one computer to another, or hackers trying to do bad things, etc. In general, there should be no reason in the school for a computer to talk directly to another computer (talking through a server is totally different).

If you are using mDNS, and there is a Local Names Server, that will be a problem.

Why are you trying to drive over the school's wifi? Driving from anything farther than the Radio can handle is not recommended. If you can't physically see the robot, you should not be controlling it.
__________________

Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2017, 10:04
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 330
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Connect to RoboRIO from Internet

Quote:
Originally Posted by rich2202 View Post
If you can't physically see the robot, you should not be controlling it.
Tell that to the GDC.

Edit: but seriously, check to see if the port is blocked over the school wifi.

Last edited by bobbysq : 31-01-2017 at 10:17.
Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2017, 10:12
dirtbikerxz's Avatar
dirtbikerxz dirtbikerxz is offline
Captain | Driver | CAD | Junior
AKA: Rohit Gondi
FRC #3991 (KnightVision)
Team Role: Driver
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Baton Rouge, LA
Posts: 493
dirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud of
Re: Connect to RoboRIO from Internet

Quote:
Originally Posted by bobbysq View Post
Tell that to the GDC.
HAHAHAHAHAHAHAHAHAHA

Quote:
Originally Posted by origamitaco View Post
I was able to take another laptop and use it as a bridge between the RIO and the Driver Station on our primary laptop, however I could only get it to work on a private router and not our school's routers. Any idea why that is? Our school has several networks and I tried every single one of them. I noticed on one of them there was actually per-device isolation, meaning I couldn't even ping the laptop from our primary laptop. On the ones where I could, it could never read the RIO, even though it was bridged. I saw that Team 423 accomplished why I am trying to do and it is mind boggling how they did so. I have also tried VPNs and bridging those, and it worked for a few seconds but even then, when I pinged the RIO I got a response back from the laptop instead.
Schools are notorious for blocking devices from talking to each other, blocking ports, etc. Assuming this is a school sanctioned project, your best bet would be to talk to your it guys and see what they can open up for you.
__________________

Team 3991: Driver since freshman (2015-), Captain since sophomore (2016-), CADer
"The human condition is not perfect. We are not perfect specimens, any of us. We're not robots." - Michael Ovitz
My posts may or may not reflect the views of my team, they are my opinions, and mine alone.
Reply With Quote
  #9   Spotlight this post!  
Unread 31-01-2017, 15:53
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,746
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Connect to RoboRIO from Internet

Quote:
Originally Posted by bobbysq View Post
Tell that to the GDC.

Edit: but seriously, check to see if the port is blocked over the school wifi.
But seriously though, you shouldn't be doing this unless you have a very well thought out plan for doing it safely. How are you going to tell where you're going? How are you going to tell what's behind/beside you if you need to turn? How will you know everyone's hands/faces are clear before you launch a ball or whatever? What happens if you lose a sensor and the robot starts spinning in place at top speed or takes off down the hall? What happens if you have a stroke and fall forward on the joystick? What if the connection is laggy and you have choppy video and can only control the robot in 1/2 second intervals? (That's happened in matches on FRC fields.) Have you disabled those "annoying" MotorSafetyHelpers that kill motors if you don't command them often enough? What about the Watchdog?

What's so important that you want to risk damaging people and property by driving a robot you can't see or stop effectively? The things are dangerous enough when you're watching them from 5 feet away.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #10   Spotlight this post!  
Unread 02-02-2017, 08:33
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 39
origamitaco is an unknown quantity at this point
Re: Connect to RoboRIO from Internet

Quote:
Originally Posted by Kevin Sevcik View Post
But seriously though, you shouldn't be doing this unless you have a very well thought out plan for doing it safely. How are you going to tell where you're going? How are you going to tell what's behind/beside you if you need to turn? How will you know everyone's hands/faces are clear before you launch a ball or whatever? What happens if you lose a sensor and the robot starts spinning in place at top speed or takes off down the hall? What happens if you have a stroke and fall forward on the joystick? What if the connection is laggy and you have choppy video and can only control the robot in 1/2 second intervals? (That's happened in matches on FRC fields.) Have you disabled those "annoying" MotorSafetyHelpers that kill motors if you don't command them often enough? What about the Watchdog?

What's so important that you want to risk damaging people and property by driving a robot you can't see or stop effectively? The things are dangerous enough when you're watching them from 5 feet away.
Our robot only runs after hours and this would be on the schools track, not inside, but the track has multiple wifi repeaters. I'm looking at severe circumstances to train autonomous and refine it. It will eventually be able to navigate through a mapped out model of the real world (this is for off season, but the networking would be cool to set up now).
Reply With Quote
  #11   Spotlight this post!  
Unread 02-02-2017, 09:26
Joey1939's Avatar
Joey1939 Joey1939 is offline
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 145
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
Re: Connect to RoboRIO from Internet

I actually tried this last year at my school. I was able to setup the radio to bridge my school's wifi connection, and then connect to the robot over the school's wifi network. It seemed like a great idea for training for drive by wire, but I discovered that as the robot drove down the hallway, it had to switched between different access points. Each time it switched access points, I lost driver station comms for just a second, and it proved to be unusable.
__________________


Reply With Quote
  #12   Spotlight this post!  
Unread 02-02-2017, 13:23
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Connect to RoboRIO from Internet

Quote:
Originally Posted by origamitaco View Post
Our robot only runs after hours and this would be on the schools track, not inside, but the track has multiple wifi repeaters. I'm looking at severe circumstances to train autonomous and refine it. It will eventually be able to navigate through a mapped out model of the real world (this is for off season, but the networking would be cool to set up now).
The robot radio should be more than capable of handling the distance. You shouldn't need to use the School's wifi.
__________________

Reply With Quote
  #13   Spotlight this post!  
Unread 02-02-2017, 14:21
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,946
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Connect to RoboRIO from Internet

The robot communicates over Ethernet. All is simple as long as you are on the same LAN & same subnet. The robot typically uses non-routable IP addresses. Which means they don't go through the router. If the drive station is on the other side of the router as it would be if you are using the internet or some building Ethernet typologies. You would need a VPN or other Ethernet voodoo for it to work
__________________
If you don't know what you should hook up then you should read a data sheet
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 11:46.

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