Go to Post "We used to shut the robot up in a box and send it away from home. Now we just suffocate it." - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 14-10-2016, 16:14
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 243
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
code crash sendto: Network is unreachable

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
Code:
sendto: Network is unreachable
1 If the USB is left plugged in it works.
2 After the crash it works.

HELP Please
Reply With Quote
  #2   Spotlight this post!  
Unread 14-10-2016, 16:18
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: code crash sendto: Network is unreachable

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-10-2016, 16:47
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 243
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: code crash sendto: Network is unreachable

Quote:
Originally Posted by Mark McLeod View Post
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 14-10-2016, 16:55
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 243
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: code crash sendto: Network is unreachable

Check that Nope still crashed on first code execute
Reply With Quote
  #5   Spotlight this post!  
Unread 14-10-2016, 18:13
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: code crash sendto: Network is unreachable

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-10-2016 at 18:25.
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 10:48.

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