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:
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?
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:
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.
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?
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.
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.
What is your exact setup? If you use the wireless router on the robot as an access point, you don’t need to configure the default gateway on your computer. Disable DHCP on the router and manually change your address to 10.17.43.x, where x is an integer 0~255 and not 1, 2, 4 or 6, or 11 (to be safe).