07-26-2006 03:30 PM
07-27-2006 04:49 PM
Hi Walter,
Yes, the RT Ping Controllers.vi will not return the MAC address if you don't have any thing connected to the ethernet port. So one work-around is to have an ethernet jack connected to it with a small amount of ethernet cable and then connecting the transmit wire to the receive wire. This is similar to serial loop back testing where the transmit and receive pins are shorted.
If this does not work for you then I recommend you create a service request online and call National Instruments directly to see if there may be other options available depending on your specific situation. Thanks and have a great day!
Regards,
Prashanth
07-27-2006 05:48 PM
07-28-2006 10:35 AM
07-28-2006 01:43 PM
07-28-2006 02:10 PM - edited 07-28-2006 02:10 PM
Oh, sorry, I also meant to reply to your "theories" about what the RT controller does when there is no ethernet plugged in.
1. If the Ethernet device is configured in DHCP mode (the "Obtain IP address from DHCP server" radio button in MAX is selected), if there's no ethernet cable plugged in then LVRT loads the ethernet driver and attempts to contact the DHCP server for an IP address. Using an exponential backoff, the controller tries around 6-7 times to get a DHCP address and then reboots itself, trying again. After the 3rd reboot the device starts up in Safe Mode with a static IP address usually configured to 0.0.0.0.
2. If the Ethernet device is configured in Static IP mode (the "Edit the IP settings" in MAX is selected) then the device is immediately brought up with the specified IP address and is ready to rock and roll. However, you cannot send ethernet traffic until a cable is plugged in - you're in essence sending a message out into the ether that is eventually routed back to you. There isn't a "loopback" mode you can set, so you cannot get a "ping" to work unless you do the cable loopback trick previously specified (at least not by hitting your IP address as reported, I *think* you can ALWAYS use 127.0.0.1 as an IP address to reference yourself).
So, in your situation where the device is connected to a "dead" host PC via a loopback cable, check to make sure you're not in DHCP mode. In Static IP mode you should be able to make your cRIO controller fire up no matter what you're plugged up to (or not plugged into, rather). If this is not the case, I'd be interested in hearing what controller model you've got and the version of the DLLs found in the ETHERNET directory mentioned in my last post in this same thread...
-Danny
Message Edited by texasdiaz on 07-28-2006 02:29 PM
07-28-2006 05:19 PM
07-28-2006 06:10 PM