View Full Version : code crash sendto: Network is unreachable
cpapplefamily
14-10-2016, 16:14
The set up we have is this DriverStation laptop wireless to Robot. Programming Laptop connected to Roborio via USB for program downloads. Every time we download code to the robot and disconnect the usb cord when we run the claw to set point command the Rio crashes and the console say sendto: Network is unreachable
1 If the USB is left plugged in it works.
2 After the crash it works.
HELP Please
Mark McLeod
14-10-2016, 16:18
Does it work if you hit the reset button on the roboRIO before running the claw?
Try it without disconnecting the USB and also after disconnecting the USB tether.
cpapplefamily
14-10-2016, 16:47
Try it without disconnecting the USB and also after disconnecting the USB tether.
Yep as I said with the USB tether connected to the Programming PC it functioned fine. When the tether was removed the code rebooted.
I did notice when I removed the tether the COMM light was red on the Rio. Hit the reset with no tether and worked.
On a final note it seems to work fine with or with out tether after a download now. What gives? Was there some console connection created to the programing laptop each time I downloaded?
cpapplefamily
14-10-2016, 16:55
Check that Nope still crashed on first code execute
Mark McLeod
14-10-2016, 18:13
So, it only happens the first time the newly downloaded code is executed?
That might mean it's an initial condition that isn't being handled.
Like a sensor value variable that is garbage the first time it gets used.
When you leave the tether in place is the code rebooting after the new code is downloaded?
Just wondering if the old code happens to continue to run until the moment that the tether is pulled, e.g., 5 minutes later.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.