Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

sbRIO 9637- lost ethernet connection after restart

Dear colleagues. I have sbRIO card connected via straight FTP cable to the secondary ethernet controller on host PC (windows 7). The PC is equipped by gigabit ethernet card that detects the straight/cross cable. I realized that if don't connect the device to the ethernet prior to swithing on the host PC, then I loose connection between PC and sbRIO. In the PC control panel I see as if the ethernet cable was unplugged (red cross) and I cannot either ping the RIO. Then each time I must restart the host PC to keep detecting it. The cable is OK, I tried also crossed cable, with no result. Both green LEDs on RIO board light all the time.

Can you please help me?

Ivan

0 Kudos
Message 1 of 9
(5,831 Views)

Ivan,

It does appear to be weird behavior that sbRIO has to be plugged in and then the PC must be turned on. Have you already installed software on the sbRIO and  configured the sbRIO? Also, what version of NI CompactRIO Device Drivers are installed? Just to inform you that the sbRIO-9637 attempts to

initiate a DHCP network connection at powerup. So the IP you tried to ping may have changed.

Matthew

0 Kudos
Message 2 of 9
(5,757 Views)

Matthew, 

the sbRIO device is normally working. I can load a custom program (compiled bitfile from VI). So I think that all the needed software is running. However, If I switch it off temporarily and again reconnect (e.g. if I am connecting some hardware on RIO connectors), then the windows system  shows as if the network cable was unplugged. If I place an ethernet switch between host PC and RIO, I don't encounter this problem. I see that it takes a little time to connect after reset (probably due to mentioned DHCP attempt), but after that it works fine. Only if I want to connect the device directly, the ethernet connection is lost after hard reset.

0 Kudos
Message 3 of 9
(5,745 Views)

Ivan,

If you set the IP to static, do you still see this issue? Also, referring to your original post one you plug in the secondary cable and restart your PC are you able to detect and use both cables plugged into the sbRIO?

0 Kudos
Message 4 of 9
(5,727 Views)

Matthew, 

I am using static IP. BTW I can check the secondary ethernet controller on host PC and we will see the result.

0 Kudos
Message 5 of 9
(5,723 Views)

Ivan,

You might want to verify that the IP is not changing and that nothing weird is happening when plug in the second Ethernet port after you restart the PC

0 Kudos
Message 6 of 9
(5,701 Views)

You may want to take a look at the ni-rt.ini file on the board through FTP. My IP address disappeard from the file so the board defaulted to IP address: 169.254.25.118. I changed the IP of my secondary NIC card to 169.254.18.1 and went in through FTP and found the ni-rt.ini had been corrupted. This was a sbRIO-9636, but as I understand it the 9637 uses the ni-rt.ini file even thought it uses NI Linux Real-time. (My 9636 uses VxWorks).

 

I hope this helps.

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 7 of 9
(5,630 Views)

Matthew, just to summarize my last attempts:

 

The secondary ethernet controller is not a gigabit link, so I need to use the crossed cable. if I do so, windows shows that the cable is plugged, but I still cannot ping the device. System tells me that the destination host is not reachable. 

If I use the secondary adapter, it shows that the cable is unplugged and writes that destination host is not reachable.

However, If I place a gigabit switch between RIO and PC, I get rid of these problems and everything goes fine. Both green and yellow LEDS on RIO ethernet connector are on.

 

0 Kudos
Message 8 of 9
(5,622 Views)

IvanRyger,

That is interesting that the switch allows it to run as expected. Did it appear that the IP was being changed when you plugged in the second Ethernet without a switch? Also, is the switch a viable solution? As far as the LEDs on the Ethernet connector go, they indicate  a connection has been made and that that connection speed is 1,000 Mbit/s.

0 Kudos
Message 9 of 9
(5,600 Views)