Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FRC Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=176)
-   -   Help needed for loading codes into cRIO (Java) (http://www.chiefdelphi.com/forums/showthread.php?t=90922)

RoboElite640 04-02-2011 16:28

Help needed for loading codes into cRIO (Java)
 
Error comes up while downloading java codes into cRIO. I installed the FRC plugins. Formatted the cRIO and reimaged it. Firewall is also turned off and the IP address is set to 10.6.40.5


C:\Documents and Settings\Developer\sunspotfrcsdk\build.xml:95: The following error occurred while executing this line:
C:\Documents and Settings\Developer\sunspotfrcsdk\ant\upgrade.xml:4 0:
java.net.ConnectExtension:Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at org.apache.commons.net.DefaultSocketFactory.create Socket(DefaultSocketFactory.java:53)
at org.apache.commons.net.SocketClient.connect(Socket Client.java:162)
at org.apache.commons.net.SocketClient.connect(Socket Client.java:250)
at com.sun.spot.sdk.tool.ftp.JakartaFtpWrapper.connec tAndLogin(JakartaFtpWrapper.java:37)
at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(Upgr adeTask.java:213)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:39 0)
at org.apache.tools.ant.Target.performTasks(Target.ja va:411)
at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1397)
at org.apache.tools.ant.helper.SingleCheckExecutor.ex ecuteTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1249)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(C allTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor149.invoke(Unkn own Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:39 0)
at org.apache.tools.ant.Target.performTasks(Target.ja va:411)
at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project .java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1249)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl .run(BridgeImpl.java:281)
at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(Run ClassThread.java:154)

Build Failed (total time:59 seconds)

HELP NEEDED

RoboElite640 05-02-2011 07:58

Re: Help needed for loading codes into cRIO (Java)
 
bump

slijin 05-02-2011 08:27

Re: Help needed for loading codes into cRIO (Java)
 
First off, no bumping threads.

Can you ping the cRIO from the Classmate (or whatever computer you're using to load code)? Is the ethernet cable a crossover (I've heard straight-throughs can be used, but FIRST recommends a crossover). Is the cable actually plugged in (i.e. not slipping out of anything)?

RoboElite640 05-02-2011 14:04

Re: Help needed for loading codes into cRIO (Java)
 
sorry, didnt know about the no bumping. Being new, im not sure what you mean by ping. We're using a straight cable and its plugged in (not loose).

1168Programmer 05-02-2011 21:25

Re: Help needed for loading codes into cRIO (Java)
 
Quote:

Originally Posted by RoboElite640 (Post 1016241)
sorry, didnt know about the no bumping. Being new, im not sure what you mean by ping. We're using a straight cable and its plugged in (not loose).

To ping, go to command prompt, (for windows, if you see "run" on the start menu, click that and select cmd [or type it], a black window should pop up), type "ping" and the ip address of your crio. It will send data packets to your crio, if they are sent back then you are connected and the problem is something else.

RoboElite640 06-02-2011 16:44

Re: Help needed for loading codes into cRIO (Java)
 
Well we can't try to ping it until Monday, but if it doesn't ping then what should we do?

1168Programmer 06-02-2011 17:07

Re: Help needed for loading codes into cRIO (Java)
 
Try to deploy tethered, if you're not doing that already.

In your original post it says an error occurred at a certain line, I think it says line 95. So, maybe check that.

Hmm, do you have the most recent plugin update?

Is there anything in your code that would cause the connection to just time out?

inkspell4 06-02-2011 17:36

Re: Help needed for loading codes into cRIO (Java)
 
You will have to have it connected to the wireless and then make sure that the dric=ver station is deployed then build if this doesnt work follow the instructions on http://www.usfirst.org/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2011_Assets/Kit_of_Parts/How_to_Build_and_Load_Programming_in_LabVIEW,_C,_a nd_Java.pdf this is supplied by first if on monday the problem still exists i will speek with one of my fellow programers. We are also a new team so we understand this situation.:)

RoboElite640 06-02-2011 19:48

Re: Help needed for loading codes into cRIO (Java)
 
We do have the most recent plugins for java. I dont think theres anything that would cause the connection to be timed out because i tried using simple codes and it still said connection timed out. I'll try wireless tomorrow but if the connection is interrupted then wont the cRIO be corrupted or is that only when you reimage it?

1168Programmer 06-02-2011 19:52

Re: Help needed for loading codes into cRIO (Java)
 
Did you reimage it to the right programming language?

Definitely try pinging it and let us know what happens.

RoboElite640 07-02-2011 08:59

Re: Help needed for loading codes into cRIO (Java)
 
I tried pinging it and i got 4 packages sent and 4 packages received. I also tried using a crossover cable and still got the same error. I have the cRIO IP address at 10.6.40.2, but what exactly should the subnet be at 255.0.0.0?

adf0221 07-02-2011 12:12

Re: Help needed for loading codes into cRIO (Java)
 
make sure you disconnect from the radio on your robot before you attempt to download or else you will receive that error

RoboElite640 07-02-2011 13:43

Re: Help needed for loading codes into cRIO (Java)
 
We have the Dlink router disconnected the entire time.

RoboElite640 07-02-2011 13:56

Re: Help needed for loading codes into cRIO (Java)
 
we also have it saying waiting to connect to OTA command server of 10.6.40.2:8001

RoboElite640 07-02-2011 15:14

Re: Help needed for loading codes into cRIO (Java)
 
I was also wondering if the status light is supposed to be blinking yellow.


All times are GMT -5. The time now is 05:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi