Go to Post Coming from one of the biggest mecanum fanboys in FIRST- have fun, drive fast, and forget the haters. - Brandon Zalinsky [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 11-01-2014, 13:49
wolfspell12 wolfspell12 is offline
Registered User
FRC #3244
 
Join Date: Jan 2014
Location: Minnesota
Posts: 16
wolfspell12 is an unknown quantity at this point
Question cRIO Connection Failure

We're having some problems deploying code to the cRIO. Other people have had this problem before by the looks of some googling, but I think we tried all the traditional fixes, such as disabling firewalls, checking IP address, and went as far as uninstalling our antivirus in attempt to fix the connection issue. The cRIO port is lit green, as it should be when tethered to the cRIO. Any help would be greatly appreciated. The following is the error message we get whenever clicking the run button in NetBeans.

Code:
ant -f C:\\Users\\gcgh\\Documents\\NetBeansProjects\\RobotTemplate deploy run
clean:
Deleting directory C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build
Created dir: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build
Created dir: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\classes
[crio-compile] ./src, C:/Users/gcgh/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/gcgh/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/gcgh/sunspotfrcsdk\lib\squawk.jar -> ./build/classes
Compiling 1 source file to C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\classes
compile:
preverify:
Created dir: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\preverify
Created dir: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\preverify.raw.util
[crio-preverify] ./build/classes, , C:/Users/gcgh/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/gcgh/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/gcgh/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify
Expanding: C:\Users\gcgh\sunspotfrcsdk\lib\wpilibj.jar into C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\preverify
Expanding: C:\Users\gcgh\sunspotfrcsdk\lib\networktables-crio.jar into C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\preverify
jar:
[crio-jar] ./build/preverify, ./resources -> ./build/app.jar
Building jar: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\app.jar
suite:
Created dir: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\suite
[crio-suite] ./build/app.jar -> ./build/suite/image
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: squawk] ...]
### Excluding compile: com.sun.squawk.Method::getParameterTypes
### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
[Including resource: META-INF/MANIFEST.MF]
[Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.properties]
[Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.xml]
Romizer processed 388 classes and generated 4 files.
Expanding: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\app.jar into C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\suite
Moving 1 file to C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\suite
Moving 1 file to C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\suite
Moving 1 file to C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\build\suite
Deleting: C:\Users\gcgh\Documents\NetBeansProjects\RobotTemplate\image.suite.api
deploy:
[crio-configure] Configuration files not included in this version of the sdk
[crio-configure] Checking that crio is configured for Java
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) Client VM 24.45-b08
Target IP: 10.32.44.2
Network interfaces on host:
    Intel(R) PRO/1000 PL Network Connection:  address: 10.32.44.100 netmask: 255.255.255.0 <--- on robot's subnet
Connecting FTP @10.32.44.2
C:\Users\gcgh\sunspotfrcsdk\build.xml:79: The following error occurred while executing this line:
C:\Users\gcgh\sunspotfrcsdk\ant\configure.xml:41: 
java.net.ConnectException: Connection timed out: connect
	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at org.apache.commons.net.SocketClient.connect(SocketClient.java:182)
	at org.apache.commons.net.SocketClient.connect(SocketClient.java:203)
	at org.apache.commons.net.SocketClient.connect(SocketClient.java:296)
	at com.sun.spot.sdk.tool.ftp.JakartaFtpWrapper.connectAndLogin(Unknown Source)
	at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(Unknown Source)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
	at net.sf.antcontrib.logic.Switch$Case.execute(Switch.java:171)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at net.sf.antcontrib.logic.Switch.execute(Switch.java:138)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 31 seconds)
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2014, 14:58
wolfspell12 wolfspell12 is offline
Registered User
FRC #3244
 
Join Date: Jan 2014
Location: Minnesota
Posts: 16
wolfspell12 is an unknown quantity at this point
Re: cRIO Connection Failure

More details, from an attempt to ping the robot with command prompt.
Code:
C:\Users\gcgh>ping 10.32.44.2
Pinging 10.32.44.2 with 32 bytes of data:
Reply from 10.105.255.249: TTL expired in transit.
Reply from 10.105.255.249: TTL expired in transit.
Reply from 10.105.255.249: TTL expired in transit.
Reply from 10.105.255.249: TTL expired in transit.

Ping Statistics for 10.32.44.2:
     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss).
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2014, 15:32
Krotn's Avatar
Krotn Krotn is offline
Registered User
FRC #1816 (The Green Machine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Minnesota
Posts: 1
Krotn is an unknown quantity at this point
Re: cRIO Connection Failure

We've seen the same exception before as well. Generally when it's happened to me it's that NetBeans is configured for the wrong team number, the firewall is blocking the connection, there's a problem with the ip settings on the development computer.

It looks like NetBeans is set up right and you said that you tried disabling the firewall (maybe double check that you turned it off on both public and private networks). You could also let the driver station set up your ip for you by hitting the "Choose NIC" button under setup. Also, did you image your cRIO, was there an error during that possibly?
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2014, 17:20
wolfspell12 wolfspell12 is offline
Registered User
FRC #3244
 
Join Date: Jan 2014
Location: Minnesota
Posts: 16
wolfspell12 is an unknown quantity at this point
Re: cRIO Connection Failure

We tried the IP fixes suggested and it's not working. We tried to re-image and the tool wouldn't even pick up the existence of the module. Something may also be wrong with safe mode-that kind of reboot won't fix it. One of our mentors is convinced the cRIO is corrupted and says we need to remove the software from it entirely. If that is indeed the case, then how do we fix it?

Last edited by wolfspell12 : 11-01-2014 at 17:42.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2014, 20:54
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: cRIO Connection Failure

Quote:
Originally Posted by wolfspell12 View Post
More details, from an attempt to ping the robot with command prompt.
Code:
C:\Users\gcgh>ping 10.32.44.2
Pinging 10.32.44.2 with 32 bytes of data:
Reply from 10.105.255.249: TTL expired in transit.
Why is 10.105.255.249 replying? Something is very much wrong with the network setup.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2014, 22:43
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,861
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: cRIO Connection Failure

Did you Disable the laptop's wireless NIC and all other NICs leaving the Ethernet port the only Enabled one?
If the wireless NIC is active the tool may get confused and try to use that instead of the wired Ethernet port. It's possible the wireless is connecting to a school router running a 10. network.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 11-01-2014, 23:16
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: cRIO Connection Failure

Quote:
Originally Posted by wolfspell12 View Post
More details, from an attempt to ping the robot with command prompt.
Code:
C:\Users\gcgh>ping 10.32.44.2
Pinging 10.32.44.2 with 32 bytes of data:
Reply from 10.105.255.249: TTL expired in transit.
Reply from 10.105.255.249: TTL expired in transit.
Reply from 10.105.255.249: TTL expired in transit.
Reply from 10.105.255.249: TTL expired in transit.

Ping Statistics for 10.32.44.2:
     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss).
Can you post the information from

Code:
tracert 10.32.44.2
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2014, 18:08
wolfspell12 wolfspell12 is offline
Registered User
FRC #3244
 
Join Date: Jan 2014
Location: Minnesota
Posts: 16
wolfspell12 is an unknown quantity at this point
Re: cRIO Connection Failure

Disconnected from wi-fi, no different. The cRIO imaging tool is not detecting any modules, despite the fact that there are three installed(This is an older style which has room for 8 modules if that matters.)

Code:
C:\Users\gcgh>tracert 10.32.44.2
Tracing route to 10.32.44.2 over a maximum of 30 hops
   1   gcgh02 [10.32.44.6]   reports: Destination host unreachable.
Trace complete.
C:\Users\gcgh>
Edit: also pinged again with wi-fi disconnected. Command prompt said pinging 10.32.44.2 but got a reply fro 10.32.44.6. (The computers IP) Sent 4 packets but lost none.

Last edited by wolfspell12 : 13-01-2014 at 18:16.
Reply With Quote
  #9   Spotlight this post!  
Unread 13-01-2014, 18:15
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: cRIO Connection Failure

Quote:
Originally Posted by wolfspell12 View Post
Disconnected from wi-fi, no different. The cRIO imaging tool is not detecting any modules, despite the fact that there are three installed(This is an older style which has room for 8 modules if that matters.)

Code:
C:\Users\gcgh>tracert 10.32.44.2
Tracing route to 10.32.44.2 over a maximum of 30 hops
   1   gcgh02 [10.32.44.6]   reports: Destination host unreachable.
Trace complete.
C:\Users\gcgh>
Edit: also pinged again with wi-fi disconnected.
Try to IP Reset the cRIO and then re-image it.
Reply With Quote
  #10   Spotlight this post!  
Unread 14-01-2014, 01:09
garyk garyk is offline
Programming Mentor: 668, 972, 2643
FRC #0668 (Apes of Wrath)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Santa Clara (Silicon Valley) Calif.
Posts: 94
garyk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the rough
Re: cRIO Connection Failure

Quote:
Originally Posted by wolfspell12 View Post
We tried the IP fixes suggested and it's not working. We tried to re-image and the tool wouldn't even pick up the existence of the module. Something may also be wrong with safe mode-that kind of reboot won't fix it. One of our mentors is convinced the cRIO is corrupted and says we need to remove the software from it entirely. If that is indeed the case, then how do we fix it?
Has it ever worked?

Try connecting your computer directly to the cRIO with a crossover (orange) lan cable, plugged into the cRIO's LAN port, so there's no switch/bridge in the data path. As was mentioned before, disable WiFi on your computer (not just disconnect any connection, go to Control Panel => Networking and disable WiFi). Your computer's LAN IP address should be 10.32.44.5. Then run the NI imaging tool and let us know what happens.

If you did find a solution please post so others with the same problem benefit! Thanks!
__________________

Silicon Valley Regional 2005, 2006 972
Silicon Valley Regional 2007 668 Xerox Creativity Award
Championship Event 2007 668
Portland Regional 2008 668
Silicon Valley Regional 2008 668, 972
Beta Test Team 2008 668 (with 100 & 254)
Silicon Valley Regional 2009 668 Regional Chairman's Award; 2643
Sacramento Regional 2009 668 Winning Alliance (thanks, 1717 & 2473!), 2010 Winning Alliance 3256
CalGames 2006, 2007, 2008, 2009, 2010, 2011 Field Tech
NorCal FTC Regional 2008, 2009 Inspector
Championship Event 2009
San Diego, Silicon Valley Regionals; Champ. Event 2010 668, 2643, 3256
Silicon Valley, Madera Regional 2012 2643
WRRF Programming Instructor 2006-2016
Regional Woodie Flowers Award 2014 2643 Utah Regional

Reply With Quote
  #11   Spotlight this post!  
Unread 18-01-2014, 15:06
wolfspell12 wolfspell12 is offline
Registered User
FRC #3244
 
Join Date: Jan 2014
Location: Minnesota
Posts: 16
wolfspell12 is an unknown quantity at this point
Re: cRIO Connection Failure

We switched pc's and we were able to reboot the cRIO in safe mode, and reformat it from there. We called National Instruments support number (check their website if you need it.) and they walked us through debugging. They wound up having us change a few things within cRIO FTP server. After that we were still having problems with getting the cRIO to respond. It turned out there was a problem with the digital sidecar because one of the ports went bad. We moved a PWM cable, then both sides of tank drive started to respond .

Thank you all for the help!
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 12: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