|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
The computer is unable to connect to the robot. There is likely an iphone address set incorrectly somewhere.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
You need to restart your crio and download once more. This happens once after imaging the crio.
|
|
#5
|
|||
|
|||
|
Re: Java to Crio Downloading Issues
Cool! That works. Now we just need to get the actual code working
![]() |
|
#6
|
|||
|
|||
|
Glad to hear it works. You should try some of the examples.
|
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
That is displayed whenever you finish deploying the code.
|
|
#9
|
|||
|
|||
|
Re: Java to Crio Downloading Issues
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?
|
|
#10
|
|||
|
|||
|
Re: Java to Crio Downloading Issues
You will need to power cycle the entire robot. You do not want to power cycle the robot while it is running the code.
|
|
#11
|
|||
|
|||
|
Re: Java to Crio Downloading Issues
Quote:
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. |
|
#12
|
||||
|
||||
|
Quote:
|
|
#13
|
||||
|
||||
|
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:
This message is printed by the cRIO for some reason. I think it is an ordinary status message though, not any real problem: Quote:
|
|
#14
|
|||
|
|||
|
Re: Java to Crio Downloading Issues
Quote:
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... Last edited by austin1743 : 09-02-2012 at 20:10. Reason: added error |
|
#15
|
||||
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|