Go to Post we learned that's what happens when you start building without even thinking about weight. next year, we'll lighten everything BEFORE we mount it. - greencactus3 [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 16-02-2010, 18:32
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: cRIO v20 Update Problems

We have the same exact problem. We are updating from the correct address and have done all the steps posted above and our cRIO still doesn't work. Has anyone gotten their cRIO to work? If so, how? Is there anything that can be done that hasn't already been posted?

Thanks in advance
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2010, 20:36
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: cRIO v20 Update Problems

As an addition, the output that we are seeing when we try to upload the code to the cRIO is as follows:

...
Connecting FTP @10.11.68.2
upgrade:
Sending local file image.suite
flashapp:
deploy:
init:
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 11s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 12s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 13s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 14s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 15s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 16s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 17s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 18s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 19s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 20s
...


and it will continue to print the "waiting to connect to OTA command server" line until we halt it.

Any help is appreciated.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2010, 21:36
urg8rb8 urg8rb8 is offline
Registered User
FRC #0108
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Plantation
Posts: 22
urg8rb8 is an unknown quantity at this point
Re: cRIO v20 Update Problems

Quote:
Originally Posted by 1168Programmer View Post
As an addition, the output that we are seeing when we try to upload the code to the cRIO is as follows:

...
Connecting FTP @10.11.68.2
upgrade:
Sending local file image.suite
flashapp:
deploy:
init:
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 11s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 12s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 13s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 14s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 15s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 16s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 17s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 18s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 19s
Waiting to connect to OTA command server of 10.11.68.2:8001 for past 20s
...


and it will continue to print the "waiting to connect to OTA command server" line until we halt it.

Any help is appreciated.
I had this exact same problem today after I reformatted and programmed the crio with v20. The only thing I did was reboot the crio to "fix" the problem. I have not seen that problem again since.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2010, 21:47
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: cRIO v20 Update Problems

Quote:
Originally Posted by urg8rb8 View Post
I had this exact same problem today after I reformatted and programmed the crio with v20. The only thing I did was reboot the crio to "fix" the problem. I have not seen that problem again since.
Thanks for the response.

I have tried power cycling the cRIO and using the reset button - neither of those actions solved the problem. Is there anything else that we can try?

Thank you.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2010, 21:49
urg8rb8 urg8rb8 is offline
Registered User
FRC #0108
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Plantation
Posts: 22
urg8rb8 is an unknown quantity at this point
Re: cRIO v20 Update Problems

Quote:
Originally Posted by 1168Programmer View Post
Thanks for the response.

I have tried power cycling the cRIO and using the reset button - neither of those actions solved the problem. Is there anything else that we can try?

Thank you.
Try reformatting the crio and programming it with v20. Are you using 802.11 to program the crio? Or are you using an ethernet cable?

Last edited by urg8rb8 : 16-02-2010 at 21:54.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2010, 21:56
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: cRIO v20 Update Problems

Quote:
Originally Posted by urg8rb8 View Post
Try reformatting the crio and programming it with v20. Are you using 802.11 to program the crio? Or are you using an either cable?
We are using an ethernet crossover cable for programming. We have already reimaged the cRIO twice with v20, but I suppose it can't hurt to try again. I don't have access to the robot until tomorrow though.

Thanks again.

EDIT: Any other ideas on what could be causing this or how to fix it?
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2010, 22:05
urg8rb8 urg8rb8 is offline
Registered User
FRC #0108
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Plantation
Posts: 22
urg8rb8 is an unknown quantity at this point
Re: cRIO v20 Update Problems

Quote:
Originally Posted by 1168Programmer View Post
We are using an ethernet crossover cable for programming. We have already reimaged the cRIO twice with v20, but I suppose it can't hurt to try again. I don't have access to the robot until tomorrow though.

Thanks again.

EDIT: Any other ideas on what could be causing this or how to fix it?
Did you also reformat the crio when you reimaged it? I'm also assuming that you ran the latest updates for the DS and LabView? I can't think of anything else at the moment. Try reformatting/reimaging of the crio and tell us what happens.
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2010, 23:48
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: cRIO v20 Update Problems

1168Programmer,

The run command is failing after deploying the app but either before rebooting the crio or before connecting to the netconsole output.

So in theory your program is on the cRIO and will run on the next reboot.

To find out what is going on, go to a command line:
- change the directory to the directory of your robot project
- reboot the cRIO
- enter the command "ant echo"

You should then see a stream of text as the cRIO boots up, starts Java, and runs your robot code.

Please post what you find.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2010, 10:30
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: cRIO v20 Update Problems

Quote:
Originally Posted by derekwhite View Post
1168Programmer,

The run command is failing after deploying the app but either before rebooting the crio or before connecting to the netconsole output.

So in theory your program is on the cRIO and will run on the next reboot.

To find out what is going on, go to a command line:
- change the directory to the directory of your robot project
- reboot the cRIO
- enter the command "ant echo"

You should then see a stream of text as the cRIO boots up, starts Java, and runs your robot code.

Please post what you find.
We will do so tonight. Thank you for your input.
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2010, 18:37
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: cRIO v20 Update Problems

Ok, I just reformatted and reimaged the cRIO with v20. The first attempt to load code onto it resulted in the OTA command server error. I then rebooted the cRIO and attempted to load the code again - it now works. I don't know what I did differently than we were doing yesterday - maybe we were not reformatting when we reimaged the cRIO.

Thanks everyone for your help.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-02-2010, 22:12
imcmahon01 imcmahon01 is offline
Registered User
FRC #1143
 
Join Date: Feb 2010
Location: Scranton, PA
Posts: 8
imcmahon01 has a spectacular aura aboutimcmahon01 has a spectacular aura aboutimcmahon01 has a spectacular aura about
Re: cRIO v20 Update Problems

Hi Derek, our team seems to be experiencing similar problems to those which have been posted in this thread. We updated the cRIO and Netbeans and experienced OTA errors, but believed power cycling had solved our issue until netbeans began to hang and not communicate with the cRIO at all. Listed are the steps we took to remedy this problem since the update:

1) Updated cRIO & netbeans to v20
2) Tried to deploy & run code from netbeans
3) Waiting to connect to OTA command server error
4) Power cycled the robot
5) Deployed and ran code twice to the cRIO without issue
6) Code would not deploy the third time - communications would hang
7) Re-imaged the cRIO & attempted to run the code - communications would hang
8) Left it over night
9) Attempted to program today, received "Waiting to connect to OTA command server" error
10) Power cycled the robot
11) The code deployed and ran twice without issue
12) The third time code was attempted, communications just hung, again. Here is the output from that attempt:

Code:
init:
init:
No to.jar.file specified.
Using "suite/FRC_2010_Team1143_1.0.0.jar"
Deleting directory /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/build
Deleting directory /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite
Deleting directory /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/j2meclasses
clean:
Created dir: /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/build
Compiling 1 source file to /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/build
compile:
Created dir: /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/j2meclasses
preverify:
Created dir: /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite
Building jar: /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite/FRC_2010_Team1143_1.0.0.jar
jar-app:
Using "suite/FRC_2010_Team1143_1.0.0.jar"
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
Romizer processed 136 classes and generated these files:
  /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/image.sym
  /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/image.suite
  /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/image.suite.metadata
  /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/image.suite.api
Expanding: /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite/FRC_2010_Team1143_1.0.0.jar into /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite
Moving 1 file to /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite
Moving 1 file to /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite
Moving 1 file to /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/suite
Deleting: /Users/imcmahon01/Documents/FIRST Robotics/Java Development/Java Programs/NetBeansProjects/FRC_2010_Team1143/image.suite.api
Connecting FTP @10.11.43.2
/Users/imcmahon01/sunspotfrcsdk/build.xml:95: The following error occurred while executing this line:
/Users/imcmahon01/sunspotfrcsdk/ant/upgrade.xml:39: 
java.net.ConnectException: Operation timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:186)
        at org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:53)
        at org.apache.commons.net.SocketClient.connect(SocketClient.java:162)
        at org.apache.commons.net.SocketClient.connect(SocketClient.java:250)
        at com.sun.spot.sdk.tool.ftp.JakartaFtpWrapper.connectAndLogin(JakartaFtpWrapper.java:37)
        at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(UpgradeTask.java:114)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
BUILD FAILED (total time: 1 minute 22 seconds)
Finally, I took your advice intended for 1168Programmer and rebooted the robot while using the ant echo command while in the robot project directory:

Code:
imcmahon01$ ant echo
Buildfile: build.xml

-pre-init:

-do-init:

-post-init:

-warn-jar-file:

init:

-prim-find-spots:

-checkhasremoteaddress:

-do-find-spots:

-local-echo:
  [frcecho] [cRIO] * Loading StartupDlls: niserial
  [frcecho] [cRIO] * Loading StartupDlls: FRC_FPGA
  [frcecho] [cRIO] * Loading StartupDlls: FRC_NetworkCommunication
  [frcecho] [cRIO] FRC_NetworkCommunication was compiled from SVN revision 2123
  [frcecho] [cRIO] FPGA Hardware GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
  [frcecho] [cRIO] FPGA Software GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
  [frcecho] [cRIO] FPGA Hardware Version: 2010
  [frcecho] [cRIO] FPGA Software Version: 2010
  [frcecho] [cRIO] FPGA Hardware Revision: 1.3.0
  [frcecho] [cRIO] FPGA Software Revision: 1.3.0
  [frcecho] [cRIO] * Loading StartupDlls: FRC_JavaVM
  [frcecho] [cRIO] ...FRC_JavaVM failed to load.
  [frcecho] [cRIO] 
  [frcecho] [cRIO] Welcome to LabVIEW Real-Time 8.6.1f2
  [frcecho] [cRIO] task 0x1308700 (t2) deleted: errno=0 (0) status=0 (0)
  [frcecho] [cRIO] 
  [frcecho] [cRIO] NI-VISA Server 4.5 started successfully.
  [frcecho] [cRIO] task 0xe62f30 (t1) deleted: errno=1835009 (0x1c0001) status=1 (0x1)
Do you have any advice for us moving forward? Thanks in advance!
Reply With Quote
  #12   Spotlight this post!  
Unread 17-02-2010, 22:19
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: cRIO v20 Update Problems

Hi all,
I reformatted and reimaged the cRIO with v20. I then attempted to download code onto the cRIO and encountered the OTA server error. After that I power cycled the cRIO and the code downloads and runs normally now. I don't know what we did differently than yesterday (maybe we were not reformatting yesterday?) but it seems to work now.

Thanks for all the help.

EDIT: imcmahon01, I will post again if we encounter the problem that you described. Unfortunately I can't offer you any advice right now.
Reply With Quote
  #13   Spotlight this post!  
Unread 18-02-2010, 15:10
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: cRIO v20 Update Problems

imcmahon01,

The 2nd error may be due to FRC_JavaVM somehow being deleted from the cRIO. You can ftp to the cRIO, and see if there's a file named /ni-rt/system/FRC_JavaVM.out.

I'm still trying to figure out why it works for a while then falls apart. But a work-around may be to use an ftp tool to delete FRC_JavaVM.out, squawk.out, squawk.suite, and robot.suite. Then reboot the cRio and try to deploy your code from netBeans normally.
Reply With Quote
  #14   Spotlight this post!  
Unread 18-02-2010, 16:16
imcmahon01 imcmahon01 is offline
Registered User
FRC #1143
 
Join Date: Feb 2010
Location: Scranton, PA
Posts: 8
imcmahon01 has a spectacular aura aboutimcmahon01 has a spectacular aura aboutimcmahon01 has a spectacular aura about
Re: cRIO v20 Update Problems

Thanks for your input, Derek. We ftp:// 'ed into the cRIO only to find that the ni-rt/system/ folder did not contain FRC_JavaVM.out, squawk.out, squawk.suite, or robot.suite. So these files are somehow deleting upon programming?
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
cRio problems blazingshadow Programming 2 31-01-2010 17:18
cRio problems tanguma26 Programming 4 21-01-2010 21:09
cRIO Firmware Update? Sauce Programming 10 19-01-2010 23:05
cRIO update 3.0 problems Two-Face Programming 3 14-02-2009 10:06
crio update file nickmagus Programming 1 28-11-2008 19:20


All times are GMT -5. The time now is 10:33.

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