Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java to Crio Downloading Issues (http://www.chiefdelphi.com/forums/showthread.php?t=100200)

pureFloat 01-14-2012 04:48 PM

Java to Crio Downloading Issues
 
My team is using Java to program our robot, and we want to put a simple project we created onto the Crio. We have imaged our Crio and have set the laptop's IP address. When loading the code, Netbeans gives us this message:
Code:

Target IP: 10.35.6.2
Network interfaces on host:
    Realtek PCI FE Family Controller: address: 10.35.6.7 netmask: 255.255.255.0 <--- on robot's subnet
Connection FTP @10.35.6.2

And then it stops. It doesn't give an error or anything. Does anyone have any idea what's going on?

bdbayes 01-14-2012 05:02 PM

The computer is unable to connect to the robot. There is likely an iphone address set incorrectly somewhere.

pureFloat 01-14-2012 05:27 PM

Re: Java to Crio Downloading Issues
 
Ok, we got it. It turns out I overlooked firewall. Stupid firewall. However, now we're running into a new issue. Netbeans is now giving us this message:
Code:

Waiting to connect to OTA command server of 10.35.6.2:8001 for past 43s
Waiting to connect to OTA command server of 10.35.6.2:8001 for past 44s
Waiting to connect to OTA command server of 10.35.6.2:8001 for past 45s

It keeps going on. My friend says it should work in 7 seconds, but now it's at around 700. Does anyone know what this means and how we can fix it? Thanks to anyone who helps.

bdbayes 01-14-2012 05:29 PM

You need to restart your crio and download once more. This happens once after imaging the crio.

pureFloat 01-14-2012 05:48 PM

Re: Java to Crio Downloading Issues
 
Cool! That works. Now we just need to get the actual code working :)

bdbayes 01-14-2012 06:11 PM

Glad to hear it works. You should try some of the examples.

leeboy1312 01-16-2012 05:30 PM

Re: Java to Crio Downloading Issues
 
We are having a similiar problem when we try to deploy the code onto the CRio the program stops without a build error at

[cRIO] Default disabled() method running, consider providing your own
[cRIO] task 0x25c7a58 (System Web Services Load Thread) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2869f70 (mDNS resolve) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2bff0d0 (mDNS resolve) deleted: errno=0 (0) status=0 (0)


I have tried almost everything i can think of so any help would be strongly appreciated.

Thanks,
F.I.R.S.T. Team #4021

bdbayes 01-16-2012 06:09 PM

That is displayed whenever you finish deploying the code.

matthysen2 02-08-2012 10:41 PM

Re: Java to Crio Downloading Issues
 
Quote:

Originally Posted by bdbayes (Post 1105502)
You need to restart your crio and download once more. This happens once after imaging the crio.

I have had this same problem aswell. When you say restart do you mean pressing the button on the or cutting the power off and then turning it back on? And should this be done while the code is trying to run?

bdbayes 02-08-2012 11:16 PM

Re: Java to Crio Downloading Issues
 
Quote:

Originally Posted by matthysen2 (Post 1122797)
I have had this same problem aswell. When you say restart do you mean pressing the button on the or cutting the power off and then turning it back on? And should this be done while the code is trying to run?

You will need to power cycle the entire robot. You do not want to power cycle the robot while it is running the code.

Patrick Chiang 02-09-2012 03:08 AM

Re: Java to Crio Downloading Issues
 
Quote:

Originally Posted by matthysen2 (Post 1122797)
I have had this same problem aswell. When you say restart do you mean pressing the button on the or cutting the power off and then turning it back on? And should this be done while the code is trying to run?

It's a known bug since last year.

SOP for flashing/updating the crio:
1. Flash it
2. Upload code
3. Reboot the crio
4. Pretend nothing happened and upload code
5. Success.

touchdownjesus4 02-09-2012 08:25 AM

Quote:

Originally Posted by leeboy1312 (Post 1107089)
We are having a similiar problem when we try to deploy the code onto the CRio the program stops without a build error at

[cRIO] Default disabled() method running, consider providing your own
[cRIO] task 0x25c7a58 (System Web Services Load Thread) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2869f70 (mDNS resolve) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2bff0d0 (mDNS resolve) deleted: errno=0 (0) status=0 (0)


I have tried almost everything i can think of so any help would be strongly appreciated.

Thanks,
F.I.R.S.T. Team #4021

This same thing happens when I deploy code to our cRIO. It gets to the mDNS resolve and hangs. I've found that if you just stop the process it deploys the code correctly, it just seems to get hung up after its finished deploying for some reason. It says that there is robot code when we switch to the driver station and any changes we make work even though it hangs.

derekwhite 02-09-2012 10:57 AM

Re: Apparent "hangs" in code deploy to cRIO...
 
The deploy process is not supposed to "finish". It stays connected to your robot in order to display any output that your robot or the cRIO prints out.

This message is printed by WPILibJ if you haven't overridden the disabled() method (which isn't a requirement by the way):
Quote:

[cRIO] Default disabled() method running, consider providing your own
If you see that message, then it's very likely that your robot code is running fine.

This message is printed by the cRIO for some reason. I think it is an ordinary status message though, not any real problem:
Quote:

[cRIO] task 0x25c7a58 (System Web Services Load Thread) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2869f70 (mDNS resolve) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2bff0d0 (mDNS resolve) deleted: errno=0 (0) status=0 (0)
For your own sanity and/or peace of mind, you might want to print a message at the beginning and end of your disabled(), autonomous() and operatorControl() methods - something like "entering autonomous mode", "exiting autonomous mode", etc.

austin1743 02-09-2012 07:57 PM

Re: Java to Crio Downloading Issues
 
Quote:

Originally Posted by pureFloat (Post 1105500)
Ok, we got it. It turns out I overlooked firewall. Stupid firewall. However, now we're running into a new issue. Netbeans is now giving us this message:
Code:

Waiting to connect to OTA command server of 10.35.6.2:8001 for past 43s
Waiting to connect to OTA command server of 10.35.6.2:8001 for past 44s
Waiting to connect to OTA command server of 10.35.6.2:8001 for past 45s

It keeps going on. My friend says it should work in 7 seconds, but now it's at around 700. Does anyone know what this means and how we can fix it? Thanks to anyone who helps.


hello, we are having the same problem as you, we dont have any firewall running that we know of and have had 3 people check it. Can you tell us what you did so we can try to fix ours?

we try to send code but get the same error that says connection has timed out and we can't figure out why....


heres what we get...

Target IP: 10.0.0.2
Network interfaces on host:
Intel(R) 82567LM Gigabit Network Connection: address: 10.17.43.5 netmask: 255.0.0.0 <--- on robot's subnet
Intel(R) WiFi Link 5100 AGN: address: 10.10.12.154 netmask: 255.255.255.254
Connecting FTP @10.0.0.


we are thinking we need to change the target ip address to the 10.17.43.5 but are unsure of how to do this and are trying to figure out if this is the real reason for our problem...

TravSatEE 02-10-2012 12:49 AM

Re: Java to Crio Downloading Issues
 
There is a netbeans configuration option to change, in the menu:

Tools -> Options -> Miscellaneous -> FRC Configuration

Change your team number.

This step is missing from [1]. Their section on Netbeans is a little sparse and references an older version (6.7). No one took credit as author on that document to suggest this change.

[1] http://www.usfirst.org/sites/default...20System_2.pdf


All times are GMT -5. The time now is 08:41 AM.

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