Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i detect change of RT Target IP

I thought this would be a very common question, but upon searching i am not finding anything helpful.

 

Basically our cRIO controller is connected to the internet using GPRS/EDGE modem in the field and it publishes data using webpages. Cellular provider here sometimes change IP address on you when the modem is say disconnected momentarily, maintenance or bad weather etc. Once the IP changes, we cant connect to remote cRIO obviously because we dont know the new IP.

 

Is there a way in RT controller to detect IP address change?

A slightly similar question would be, is there a way to know if the ethernet cable has been pulled off from cRIO (for logging purposes)?

 

Thanks all,

Message Edited by Paracha on 05-25-2010 09:12 AM
0 Kudos
Message 1 of 4
(3,668 Views)

Hello Paracha,

 

There is a VI called RT Get Target Information which is a polymorphic VI that takes in a MAC address and displays the information of the controller including the IP address. From here you can compare this to the previous value to see if it was the same. You can find this VI under the Real Time Palette in the Real Time Utilities.

 

As for the second question, I have done some research into this and I couldn't find a way to do this. The only idea I came up with is to ping out to a known address and when it can't ping it, then its disconnected. There is a developer zone about this here.

 

I hope this information helps you with it.

 

JimS.


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 2 of 4
(3,643 Views)

Hello Paracha,

 

Try this vi that searches a remote subnet for a particular MAC address (your cRIO) and returns an IP address if found.

 

What modem hardware are you using?  I would like to deploy my cRIO remotely also.

 

Thanks,

HLB

0 Kudos
Message 3 of 4
(3,571 Views)
0 Kudos
Message 4 of 4
(3,563 Views)