Go to Post You know when the school health nurse advises "always wear a condom"? She doesn't actually mean "ALWAYS". ::safety:: I think Dean and Woodie have a pretty good idea of when they need safety glasses and when they don't. Jason - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 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: 25
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
  #2   Spotlight this post!  
Unread 03-02-2017, 17:27
Maxcr1's Avatar
Maxcr1 Maxcr1 is offline
Registered User
AKA: Max D
FRC #2169 (KING TeC)
Team Role: Programmer
 
Join Date: Nov 2016
Rookie Year: 2013
Location: Savage, MN
Posts: 9
Maxcr1 is an unknown quantity at this point
Re: pynetworktabless connection issue

I can't tell if you are doing it because you don't want us to know what team you are from, but the TE.AM should be replaced with your numbers. For example, I am from 2169, so it would be 21.69, or if you were from a 3 digit team it would be 02.54

I assume this isn't the case but it doesn't hurt to try
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2017, 17:34
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,108
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: pynetworktabless connection issue

It would be useful to see the entire traceback for the crash, not just the error message.

Which version of python are you using? Which version of pynetworktables is installed? What are you running on the driver station: labview dashboard, smartdashboard, no dashboard?
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
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 19:19.

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