c-RIO connection troubles

I made the IP changes, and pinged 10.23.93.2 and got 4 time outs. I assume this is not a good thing.

Yup, that means that either your cRIO isn’t responding or your network connection is down. This is where having the serial port hooked up will help you. That will tell you if the cRIO is booting at all. BTW, the serial port runs at 9600 baud, No parity, 8 data bits, 1 stop bit. You’ll need a female-female null modem cable (Radio Shack Model: 03044 | Catalog #: 55010600 $14.99) and a serial port on your PC.

HTH,

Mike Anderson
Mentor
Team 116

Bad news: got the cable, but my laptop lacks the proper receptacle.

Unfortunately no. WinDoze won’t detect the cRIO on the other end of a serial port. You’ll need to run hyperTerminal or other terminal emulator like Teraterm and set it up to connect to your serial port at the 9600,N,8,1 setting I described earlier.

On the other hand, it should be able to detect when the Ethernet carrier comes up because the cRIO has booted. If the settings are right, you’ll see a “Ethernet connected” message show up in the task bar on the lower right-hand corner of the window.

HTH,

Mike Anderson
Mentor
Team 116

While that probably would solve my problems, I have two problems with that.

1)I have the wrong port on my computer (in stead of a 4-5 double male stack, i have a 5-5-5 triple female stack)
2)I have no emulator. =/

Hi Sev,

OK, that means that you don’t have a serial port on your computer. That’s not uncommon these days as serial ports are considered “legacy” ports. In order to address this, you’ll need a USB to RS-232 adapter. They’re available from Radio Shack or Best Buy for about $30. You can get them cheaper from NewEgg, but you’ll have shipping costs and lose time.

As for the terminal emulator, you’ve already got one with WinDoze. It’s in the accessories tab of the start menu called Hyperterminal. Or, you can download Teraterm for free from the Internet.

Good luck,

Mike Anderson
Mentor
Team 116

Have you run the FRC cRIO Imaging Tool to select C++ development and set the cRIO’s IP address to match your team number?

Alan has a good point. I was under the assumption that your cRIO had booted at some point. If it’s brand new and hasn’t been set up, then you’ll need to use the cRIO imaging tool to load v19 firmware before you’ll be able to do anything else.

HTH,

Mike Anderson
Mentor
Team 116

No, this is our third year overall. It worked last year and the year before.
Also: have the cable (confused some of the guys at best buy too) and teraterm

If the same cRIO worked last year, chances are it is working and you simply can’t connect the PC.

I don’t have a Vista PC, but what I’d suggest you try first is to check your PC network port is set for a static IP address of 10.23.93.xx and use e.g. 6 for xx. The cRIO should already be on 10.23.93.2 and the Classmate will need to be on 10.23.93.5 so you can’t use 2 or 5. Then you can open the PC cmd window and “ping 10.23.93.2” and get a response. For instructions on setting the IP address of a PC running Vista, try google or maybe Vista itself has sufficient Help to get it done. It’s not difficult but I’d need a Vista PC to give you the precise instructions.

As soon as you get a successful ping, run the FIRST cRIO imaging tool to install image v19 (select C++) on the cRIO.

‘Should work’ doesn’t always apply.
The IP’s are set correctly (I checked) and I pinged from the classmate, but it timed out.

You didn’t say if you have run the Imaging tool. If the cRIO is not imaged correctly, it might not be set for IP 10.23.93.2 and then it wouldn’t respond to a ping, or maybe the IP is set but the cRIO image is damaged and it’s not booting the image. The Imaging tool will enable you to (re)set the cRIO IP address. Select the C++ option in the Imaging tool if you plan to use Windriver.

If this works, I’m going to be very disappointed/angry with myself…

Edit: Didn’t work

Edit II: Got the following error when using a different computer:
Unable to complete operation because of unexpected error 56:
TCP Open Connection in repFPC open connection.vi->SendRebootCmd.vi->RebootSystem.vi->ConfigUtility.lvlib:ReImageTarget.vi->ConfigUtility.lvlib:Dialog.vi

Which ethernet jack on the cRIO are you plugged into? Does it have a green light? Is there any activity on the yellow light when you’re trying to communicate with the cRIO?

Are all of the cRIO’s DIP switches in the “off” position?

Jack 1, green light, no yellow light, and yes.

Edit: There is now a yellow light blinking on the ethernet 1 port.

Edit II: Using Terterm also produces a time out

Perhaps you need to use MAX, Start>>National Instruments>>Measurement and Automation Explorer.

In the left column it will have an entry for remote targets which you can open and it will hopefully list your cRIO. If it does, you can determine its IP address, change the IP address, etc.

If MAX also cannot locate your cRIO, it could possibly be a firewall issue. You stated it was off, but it is certainly worth verifying. Also, you may need to toggle one of the DIP switches on the cRIO to reset the IP address and then try formatting again either using the format utility. Finally, there is a safe mode DIP for cRIOs that have corrupted Flash. You may be able to find the step by step instructions on ni.com/FIRST searching for safe mode reformat or some similar query.

Greg McKaskle

Update: able to ping the cRIO, still not able to connect or download to it. New error:
Failed to connect to 10.23.93.2 (Registry localhost) failed to connect target
Possibly caused by: runtime information undefined or uncatchable, TOS library support for target OS “6.3” cannot be loaded
How are the DIPs supposed to be set up?

In normal operation all DIP switches are off, you may want to leave the console out on if you have the serial cable connected.

Greg McKaskle

Error when trying to update the cRIO:
Unable to complete operation because of unexpected error 54:
TCP Open Connection in repFPC open connection.vi->SendRebootCmd.vi->RebootSystem.vi->ConfigUtility.lvlib:ReImageTarget.vi->ConfigUtility.lvlib: Dialog.vi

Edit: Realized we had the DIPs backwards: new error: Unable to complete operation because of unexpected error 1:
TCP Read in NI_InternetTK_Common_VIs.lvlib:TCP Read xTP Reply.vi:14->NI_InternetTK_FTP_VIs.lvlib:FTP Get Command Reply.vi:13->NI_InternetTK_FTP_VIs.lvlib:FTP Open Session.vi->NI_InternetTK_FTP_VIs.lvlib:FTP Put Multiple Files and Buffers.vi->NI_InternetTK_FTP_VIs.lvlib:FTP Put File.vi->ConfigUtility.lvlib:ReImageTarget.vi->ConfigUtility.lvlib: Dialog.vi

Edit edit: FTP Timeout

Crossover czble and XP laptop: all is fix’d now

Edit: Still won’t connect in windriver; still says backend is disconnected. i can ping, but cant connect. crossover cable doesnt change anything, except allowing me to connect with the Re imager