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(Unknown 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:390)
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:390)
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

bump

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)?

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.

Well we can’t try to ping it until Monday, but if it doesn’t ping then what should we do?

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?

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,_and_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.:slight_smile:

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?

Did you reimage it to the right programming language?

Definitely try pinging it and let us know what happens.

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?

make sure you disconnect from the radio on your robot before you attempt to download or else you will receive that error

We have the Dlink router disconnected the entire time.

we also have it saying waiting to connect to OTA command server of 10.6.40.2:8001

I was also wondering if the status light is supposed to be blinking yellow.

You can connect through the newest radio from the KOP this year. That’s why it has so many Ethernet ports.

You do have the correct subnet mask, it should be the default 225.0.0.0

By status light, do you mean the light that goes on the robot or the light on the cRIO, or a completely different light?

The status light on the cRIO…

One more thought: do the switches on the cRIO (other than ‘Safe Mode’) have to be turned on or off?

All of them, SAFE MODE included, should be off to start with.

The CONSOLE OUT switch can be turned on if you want to attach a terminal to the cRIO’s serial port (but don’t do that if you’re using a serial-to-CAN converter such as a Black Jaguar). The NO APP switch has no effect on anything other than LabVIEW programs. The USER1 switch can be read by software and can be set to whatever you want it to be.