View Single Post
  #1   Spotlight this post!  
Unread 03-02-2017, 16:56
Bo8_87 Bo8_87 is offline
Registered User
no team
 
Join Date: Aug 2016
Rookie Year: 2014
Location: California
Posts: 24
Bo8_87 is an unknown quantity at this point
pynetworktabless connection issue

Hello, we are using pynetworktables to send data from our TX1 back to the roborio. We are unable to send data back to the roborio if both the driver station and the TX1 are connected; networktables runs fine when the driver station is not connected, but then continuously crashes after the driver station connects.

Crashing Message: UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 23: invalid start byte
INFO: nt: DISCONNECTED 10.TE.AM.2 port 1735(Robot)
DEBUG: nt:write thread died (<ntcore.network_connection.NetworkConnection object at 0xf31d9430>)
DEBUG:nt:client connected
DEBUG:ntNetworkConnection stopping (<ntcore.network_connection.NetworkConnection object at 0xf31d9430>)
ERROR:nt:Unhandled exception during handshake.

NetworkTables Code:
NetworkTables.initialize(server='10.TE.AM.2')
sd = NetworkTables.getTable('SmartDashboard')
while True:
sd.putNumber('test', 3)

We are using these static IP's:
RIO:
IP: 10.TE.AM.2
Subnet Mask: 255.255.255.0
Gateway: 10.TE.AM.1

DS:
IP: 10.TE.AM.5
Subnet Mask: 255.0.0.0
Gateway: 10.TE.AM.1

We are unsure if this is a networktables issue, or a networking issue.
Does anyone have any idea what is going on? Thanks.
Reply With Quote