Licensing and device manufacturing, Testing devices, Using the lns license utilities – Echelon LNS User Manual

Page 309: Using the lns server license wizard

Advertising
background image

LNS Programmer's Guide

295

RestoreLicense() method is called with the wasLNS parameter set to

False

, the LNS

Server will debit LNS Device Credits based on the commissioned count.

Licensing and Device Manufacturing

In a manufacturing setting, you may want to load devices with the same configuration
information. The AppDevice object's Replace() method is a convenient way to

configure devices quickly in an "assembly line" fashion. The LNS License Agreement

specifies that the customer must use an LNS Device Credit for each device configured in
this way. However, the Replace() method does not automatically deduct LNS Device

Credits from the credit pool. To facilitate compliance with the license agreement, the
System object provides the DebitLicense() method. This method deducts the number
of LNS Device Credits specified by its count parameter.

For example, if 10 replace operations were performed, you could use the following code to

debit your LNS Device Credit pool:

MySystem.DebitLicense(10)

Testing Devices

The current version of the LNS License Agreement provides additional means to create

LNS-based manufacturing test tools that do not consume LNS Device Credits. Typical

production, calibration and test software will commission devices in a test network, and

then perform the necessary production steps. Since most L

ON

W

ORKS

devices should be

shipped in the unconfigured state, the production tool will decommission the device at

the completion of the burn-in and test phase:

MyDevice.Decommission()

As decommissioning returns the device credit, the entire manufacture tool consumes just

one credit for each device that is under test simultaneously.

Using the LNS License Utilities

The LNS Application Developer’s Kit includes two utilities that allow users to add or

transfer LNS Device Credits to their LNS Server PC. These utilities are the LNS Object
Server License Wizard and the LNS Object Server License Transfer Utility. These

applications are described briefly in this section. For more detailed information, see each

application’s online help.

Using the LNS Server License Wizard

You can use the LNS Server License Wizard to add LNS Device Credits to an LNS

Server. To do so, follow these steps:

1. Open the LNS Server License Wizard through the Echelon LNS Utilities group in the

Windows Programs menu on the PC running the LNS Server. The utility opens with the

dialog shown in figure 13.1.

Advertising