View Single Post
  #6   Spotlight this post!  
Unread 06-08-2016, 10:13
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is online now
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 149
nickbrickmaster is an unknown quantity at this point
Re: Python Socket Between Devices

Quote:
Originally Posted by Technologyman00 View Post
Also I know all the IPs it could be but is there a way to know immediately what ip or use s.connect much faster?
Yes. You need to find out what your Pi's local IP address is. Try the command
Code:
ip addr show
and look for section eth0 and the line inet. Alternately, you can address the Pi using its mDNS name, which is raspberrypi.local. I'm not sure if this is set up by default.

Quote:
Originally Posted by Technologyman00 View Post
I am running it on the Driver Station and I know about R60 but the client picks a random port to respond on. How do I fix that?
What is the client responding to? It shouldn't do anything like choose a random port. Your port selection of 5800 should be fine.

If it's working now (despite taking a time to connect) you should be fine.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote