05-11-2016 02:40 PM
ALREADY SOLVED BUT I THOUGHT I'D SHARE.
I've spent countless hours troubleshooting network issues with cRIOs. MAX cannot find the target whether my computer has a static IP set to what cRIOs boot to (169.254.103.162), or my computer is set to automatically obtain an IP address. i ensure i have all the correct drivers installed on my computer, specifically the latest NI-RIO device drivers, and MAX will still smetimes not work. A friend of mine showed me this useful trick.
I'm usually dealing with: NI 9072/9073/9074, NI 9075/9076, NI 9148. The 9072/9073/9074 must have the console out rocker switch enabled. THE NI 9075/9076 AND NI 9148 MUST HAVE ENABLE CONSOLE OUT CHECKBOX CHECKED IN MAX, SYSTEM SETTINGS TAB DURING A PREVIOUS CONNECTION BETWEEN THE CRIO AND COMPUTER. Note the default login for cRIOs is user: admin & leave the password blank.
If you still cannot find the cRIO in MAX, do the following.
References and Notes
How Do I Enable the Console Out on CompactRIO, Single-Board RIO, CompactFieldPoint Controllers?
http://digital.ni.com/public.nsf/allkb/354A5124E6A667988625701B004A77CD
Configure CompactRIO With a Static IP Address
http://www.ni.com/getting-started/set-up-hardware/compactrio/static-ip
To change the computer IP address: start>control panel, network and internet>network and sharing center>change adapter settings>right click properties on network connection>double click Internet Protocol Version 4 (TCP/IPv4)> then enter the desired IP address.
05-13-2016 10:30 AM
For structural, mechanical, & controls projects, contact me.
Ryan Moore, PE, CLD
ryan.moore@aiken-engineering.com
Aiken Engineering Company
Office: 281-580-8468
01-21-2021 09:10 AM
Hello @Ryan01
Reviving a rather old thread, but hopefully there is still someone around to reply.
I have a cRIO9072 that I try to get working. I have connected it directly with an Ethernet cable to the network card in my PC, but I cannot find the IP address. I also tried a cross-over cable, starting in safe mode, updating drivers, disabling firewall, etc. All to no avail.
I have also tried the method described in your answer via the null-modem / serial option you described and get a reply from the cRIO. It however replies with:
Device 1 - MAC address: 00:80:2F:10:F1:30 - 0.0.0.0 (primary)
System state: Unconfigured
ERR [KERN] in_arpinput:1232: arp: d8:47:32:a3:a2:2d is using my IP address 0.0.0.0!
So an empty IP address basically. I still can't connect to it. What can be going wrong and how can I solve it?
01-21-2021 10:02 AM
Do you have the NI-RIO drivers installed on the PC that has MAX installed? I know without those drivers, MAX won't find cRIO's.
01-21-2021 10:10 AM - edited 01-21-2021 10:10 AM
Hello RavensFan
I have what I believe to be the correct drivers installed. I for example also have a cRio 9035 connected to the same PC (not at the same time with the one I'm trying right now though), and that works like a charm.
Further info (progress of the last few minutes): In MAX I can find the cRIO device with the correct "MAX system identification name" on the 0.0.0.0 IP address under "Remote Systems" via the "Troubleshoot Remote Systems Discovery". It then creates and lists the device under "Remote Systems", but says its status is Disconnected, and I can't change any of the settings. IP reset (the DIP switch method) does not work.
01-21-2021 10:24 AM
Okay. That sounds like it should be working.
Have you tried connected though both of the ethernet ports or just one? In case there is a settings issue or a physical hardware issue with one particular port.
01-22-2021 02:23 AM - edited 01-22-2021 02:26 AM
I have indeed tried both ethernet ports, but that did not help.
Some more progress: I have multiple NI9072 devices. So I tried a second one. This one did respond with a 'normal' IP address and I was able to find it as a remote system. I then proceeded with the steps to configure dhcp as via here: https://www.ni.com/getting-started/set-up-hardware/compactrio/dhcp
The device rebooted, but now gave an error over the serial:
Initializing network...
Ethernet initialization timed out.
dhcpcBind failed, errno=0x31
initializeDHCP FAILED!
Unable to configure the primary network device
Loading LVRT...
Time sync source: rct now active
NI-RIO Server 2.4 started succesfully.
NI-VISA Server 4.3 started succesfully.
Welcome to LabVIEW Real-Time 8.5.1
NI Variable Engine: Error: Failed to initialize PSP XT Server
I then proceeded with restarting the cRIO, but with the "Reset IP" DIP switch to ON. I reset it, and now it gives the exact same error as the first module (IP = 0.0.0.0)! The status LED is blinking with 2s interval.
What to do?
01-22-2021 04:20 AM
You should only enable DHCP if there is actually a DHCP server available on your network! That is usually the case if you connect it to your office network and even your ADSL modem or similar at home should provide a DHCP service. But if you do a direct crossover connection to your computer's TCP/IP port, there won't be any DHCP server available to serve the request from the cRIO system. Windows, except the Server versions, has no DHCP server enabled normally as that would potentially conflict if you connect your computer to a network that does have a DHCP server already.
Did you reset the "Reset TCP/IP address" switch to off and restarted again?
01-22-2021 06:03 AM
Hello Rolf.
My bad about the DHCP. That was indeed not so smart. Thanks for your explanation, that does make it clear.
Unfortunately the 9072 now seems to be locked in this state (similar to the one I tried yesterday). Toggling the "IP reset" switch and resetting the module does not seem to have any effect. It keeps on responding with IP 0.0.0.0. How can I get it out of this state again?
What I have tried:
- "IP reset" switch to on -> reset cRIO (still 0.0.0.0) -> switch to off -> reset cRIO (still 0.0.0.0)
- Toggle switch to on and back to off while it is on -> reset cRIO (still 0.0.0.0)
- The two above procedures both with and without the module connected to the PC with the ethernet cable.