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.