Echelon i.LON SmartServer User's Guide Page 20

  • Download
  • Add to my manuals
  • Print
  • Page
    / 266
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 19
6 Introduction
just re-name the sample DLL file LicenseSecurity.dll; however, you are solely responsible for the
creation of the security DLL file.
You also need to modify your FPM application so that it can check whether a customer’s SmartServer
has a valid FPM license file for running your FPM. This entails writing a separate license validation
routine in your FPM application that (1) checks whether the Lock ID (MACID, LUID, or other user-
defined lock type) specified in the FPM license file matches the one on the customer’s SmartServer,
and (2) checks whether the license key in the FPM license file is valid.
Once you have created the security DLL and license generator configuration files and you have
enabled license validation in your FPM application, you can use the i.LON License Generator user
interface to create FPM application licenses. The FPM application license is an XML file that must be
on a SmartServer in order for it to run your licensed FPM. This means that you can make your FPMs
available to customers, while protecting your FPMs from unauthorized use or piracy.
A customer who orders a licensed FPM application from you must install the FPM application license
for that FPM on their SmartServer. If a customer attempts to run your FPM application without
installing the FPM license file on their SmartServer, the SmartServer will report a license error and the
FPM will not run on the SmartServer. This means that a customer running one of your FPMs must
have two licenses installed on their SmartServer: an FPM programming license from Echelon and the
FPM application license from your company that you generated for that FPM.
See Chapter 7,
Creating FPM Application Licenses, for more information on creating FPM licenses
and enabling license validation in your FPM application.
Quick-Start FPM Exercise
The following section describes how to create a simple FPM application called UFPTMath and then
deploy, test, and connect the FPM on your SmartServer. The Math application adds two SNVT_count
input data points and stores the result in a SNVT_count output data point. To create, deploy, test, and
connect the Math FPM application, you perform the following steps:
1. With the NodeBuilder Resource Editor, create a user-defined functional profile template (UFPT)
for the FPM, and then generate your company’s FPM resource file set. Copy your company’s
updated FPM resource file set to the root/lonWorks/types/User/<YourCompany> folder on the
SmartServer flash disk.
2. With a text editor such as Notepad, create a model file (.nc extension) in which you declare all the
data points in the UFPT, and a functional block that implements an instance of the UFPT. With
the i.LON SmartServer 2.0 LonWorks Interface Developer tool, generate a device interface (XI F)
file from your model file. Copy the XIF to the root/lonWorks/Import/<YourCompany> folder on
the SmartServer flash disk.
3. With the i.LON SmartServer 2.0 Programming Tool, create a new FPM project from the UFPT
you created in step 1.
4. With the i.LON SmartServer 2.0 Programming Tool, write the FPM application and then build it.
Note: The full version of the i.LON SmartServer 2.0 Programming Tools must be installed on
your computer to build the FPM.
5. On your SmartServer, deploy the FPM. To do this you upload the FPM application to the
root/modules/User/<YourCompany>folder on the SmartServer flash disk. You then add a new
internal device to the SmartServer that uses the device interface (XIF) file that you created for the
FPM.
6. On your SmartServer, test the FPM. To do this, you open the View – Data Points Web page, add
the input and output data points in the FPM application, update one of the input data points, and
observe that the output data point is updated accordingly.
Page view 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 265 266

Comments to this Manuals

No comments