Log in

View Full Version : Connection Problems


theNerd
08-02-2012, 15:33
Lately I've been having connection problems everytime I try to compile code to the cRIO. I have all the updates installed for Java and the most recent cRIO image. My computers network setup is using IPv4: 10.33.29.5 and subnet mask is set to 255.0.0.0. For some reason everytime I try to compile and run code - using netbeans our only IDE - we recieve the:

Network interfaces on host:
...... adress: 10.33.29.5 netmask: 255.255.255.254
Warning: host is not on same subnet as robot. May not be able to complete all communication with robot.
Connecting FTP @10.33.29.2
Remote OTA server does not match, upgrading
C:...\sunspotfrcsdk\build.xml:96 ... bunches of errors.

I see that netbeans is detecting an incorrect subnet mask, however the netmask on the computer is in the correct format. Could anybody help? Thanks

Alan Anderson
08-02-2012, 20:00
Run ipconfig /all and look for possible multiple IP address bindings to your network interface.

dellagd
08-02-2012, 21:08
Hey. My team always gets this error with the subnet mask. If you wanna send a screenshot, that would be greaaaat. IDK why this happens, but it really isnt a big deal.

First ping the crio with ping --IP address of your crio-- (an example would be ping 10.26.07.2) and make sure you have a good connection

Then do as follows:

open up command prompt

type ren C:\Users\--InsertYourUserNameHere--\Documents\NetBeansProjects\--InsertYourProjectNameHere--\suite\image.suite robot.suite

type ftp --IP of the crio-- (Example would be ftp 10.26.07.2)

type cd ni-rt

type cd system

type send C:\Users\--InsertYourUserNAmeHere--\Documents\NetBeansProjects\--InsertYourProjectNameHere--\suite\robot.suite



Reboot the crio

What you just did was exactly what NetBeans wanted to do, just you did it manually. You ftp-ed into the crio and manually replaced the code and rebooted. You have sucessfully uploaded code the right way :) yourself!

I was gonna write a batch file for you, but this is just quicker

theNerd
09-02-2012, 14:16
Reboot the crio

What you just did was exactly what NetBeans wanted to do, just you did it manually. You ftp-ed into the crio and manually replaced the code and rebooted. You have sucessfully uploaded code the right way :) yourself!

I was gonna write a batch file for you, but this is just quicker

WOw! I had no idea it worked like that. I'm a Linux user so I am very interested in the guts of how systems like this work. I'm not very knowledgable in the networking arena of computers yet, but I'll definitely try this out and see if it works. How do I get a screenshot on here?

theNerd
09-02-2012, 15:00
Here is the first time through. This one happened a couple times in a row. I tried to run the ftp and it stopped after I typed send - like it said something about recieving the robot.suite but just sat there for 10 min like that.

Out of the blue I unconnected the camera and tried to load a program onto the cRIO and it worked for some reason. So I plugged the camera back in and tried to reload a program; failure. So I reconfigured the camera and plugged it back into the radio and now everything is back to working. I'm not sure what the problem was from earlier. If anyone has any ideas then that would be of some great help. Thanks!