Upgrading devices – Echelon LNS User Manual

Page 148

Advertising
background image

LNS Programmer's Guide

134

automatically. However, you may need to manually replace your Network Service Device
in some cases. You will need to use the PreReplace() method to do so.

For example, you will need to use this method if you open a network remotely from a new

PC, and want that client to use the Network Service Device configuration that was
previously associated with another remote client PC (effectively moving the remote

application and Network Service Device configuration from one PC to another). An
exception to this is if the original remote client used a standard network interface, and

you move the network interface to the new PC as well. In this case, LNS will

automatically associate the new PC with the original client based on the standard
network interface’s Neuron ID.

You will also need to follow the procedure described below to reattach a Network Service
Device to a network if the network has been removed from the RemoteNetworks

collection for the PC, and you are using a high-performance (Layer 2/VNI) network

interface, or if you install a new network interface on the PC.

To re-associate a client with the correct Network Service Device and re-attach the client

to the network, follow these steps:

1. Get the Network Service Device to be attached to from the

NetworkServiceDevices collection.

Dim MyNSD as LcaNetworkServiceDevice

Set MyNSD = MyNetworkServiceDevices.Item(“Supervisor Room”)

2. Call

PreReplace() on the network you want to attach your application to, with the

selected Network Service Device as the sourceNSD element.

MyNetwork.PreReplace(MyNSD)

3. Close the network, and release all references to the network.

MyNetwork.Close()

4. Call

Replace() on the network.

MyNetwork.Replace()

5. Call

Open() on the network to open the network with all previously created monitor

sets present.

MyNetwork.Open()

Upgrading Devices

When a device has a new application loaded, or when a device is replaced, the device's
external interface may change. You can call the Upgrade() method to upgrade the

device to be compatible with the updated the external interface with minimal disruption
to existing connections and configuration. You can use the Upgrade() method on all

device types. However, it generally only makes sense to upgrade a device to support

functionality similar to the device’s original purpose (e.g. to upgrade to a later version of
the device).

To upgrade a device, follow these steps:

Advertising