Go to Post Every event that starts with "a little bit of fun" has the potential to end in disaster. Please think about all possible outcomes before you do anything stupid. - sanddrag [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 22-11-2010, 16:42
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
java code won't download

My Driver Station shows that the robot is connected through the wireless router, but when I try to download my Java code from NetBeans, it won't download. I click the RUN button in NetBeans and the output window shows it compiles and everything, but then it just says this:
Waiting to connect to OTA command server of 10.32.5.2:8001 for past 67s
It just says that repeatedly every second and I have to stop it. I tried to connect to the robot with the ethernet cable, but it wouldn't connect.
I am new to NetBeans, and I'm not sure exactly how to download it, I was just hitting the RUN button.
Please help!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-11-2010, 17:53
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: java code won't download

First questions first: what OS are you running?

edit:

I noticed this error a lot more often on windows rather than linux, try an ubuntu install on a flashdrive and see if that fixes it

Last edited by Robototes2412 : 23-11-2010 at 01:17. Reason: more clarity
Reply With Quote
  #3   Spotlight this post!  
Unread 23-11-2010, 07:25
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: java code won't download

I'm running XP, but I think I might have found a solution though. I tried re-imaging the robot and it seems to work now, at least I can download the code. But now when I run it the infamous watchdog is hungry! The DS says Watchdog not fed whenever I try to do anything. I tried directly disabling the Watchdog in my Java code, but it still said it wasn't fed.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-11-2010, 03:56
Jeremy Germita's Avatar
Jeremy Germita Jeremy Germita is online now
Co-Advisor/Lead Engineering Mentor
AKA: wood is good. plastic is fantastic.
FRC #5012 (Gryffingear) / (Antelope Valley FIRST Teams)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Lancaster, CA
Posts: 284
Jeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond repute
Re: java code won't download

Can you post the code that you are trying to download?
If it compiles and downloads correctly now, but you still get the watchdog error, it is most likely the code you are trying to run.

A Possible Cause could be that you are trying to download camera code, but the camera isn't pugged into the cRio via an ethernet crossover cable
__________________
Drive Coach Team 5012 Gryffingear / Antelope Valley FIRST teams / EWCP - (2013 - Current)
Student / Driver / Programmer / CAD - FRC Team 399: Eagle Robotics / FTC Team 72: GarageBots - (2009 - 2013)
Los Angeles Region FTC FTA/CSA/Head Ref
[FF] FIRST Pick
2014 FTC Los Angeles Regional Compass Award Winner.

2017 - San Diego Regional / Sacramento Regional / Las Vegas Regional
2016 - Los Angeles Regional Creativity + Winners (1197, 987, 5012) / Las Vegas Regional Team Spirit + SF (5012, 5851, 5049) / Galileo Subdivision
2015 - Inland Empire QF (597, 5012, 4413) / Las Vegas Imagery + Winners (148, 987, 5012) / Newton Subdivision and World Champions (118, 1678, 1671, 5012)
2014 - Inland Empire Rookie All Star + Highest Rookie Seed + SF (2339, 1967, 5012) / Las Vegas Rookie All Star / Galileo Division Imagery
Reply With Quote
  #5   Spotlight this post!  
Unread 26-11-2010, 19:25
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: java code won't download

add getWatchdog().kill();
Reply With Quote
  #6   Spotlight this post!  
Unread 29-11-2010, 18:33
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: java code won't download

I looked at the documentation on the Watchdog and it said that you have to feed it yourself, so I did that and everything works fine now.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Robot code won't load RevusHarkings C/C++ 3 18-02-2010 15:19
Java program won't run I am error Java 3 29-01-2010 13:51
User code won't download/run-possible causes? nathanww C/C++ 3 21-01-2009 11:00
Won't Download! diaperrash89 Programming 4 25-10-2007 23:02
2005 default code won't compile Robby Programming 22 04-02-2005 18:21


All times are GMT -5. The time now is 22:42.

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