beautypg.com

Echelon i.LON SmartServer 2.0 User Manual

Page 5

background image

i.LON SmartServer 2.0 Programming Tools User’s Guide

v

Updating Device Interfaces ............................................................ 139

Deploying FPMs on Multiple SmartServers................................................. 142

Deploying Licensed FPM Applications ........................................................ 143

7

Creating FPM Application Licenses ............................................ 145

Licensing Overview ..................................................................................... 146

Creating an FPM Licensing Tool........................................................... 146

Creating a License Generator Configuration File ........................... 146

Creating a Security DLL File........................................................... 149

Enabling License Validation in an FPM Application.............................. 150

Step 1: Inserting Include Directives and Macro Definitions............ 152

Step 2: Declaring Data Variables ................................................... 153

Step 3: Creating the License Validation Routine............................ 154

Step 4: Writing the License Validation Algorithm ........................... 156

Step 5: Implementing the License Validation Call Mechanism ...... 160

Step 6: Compiling the Licensed FPM Application .......................... 160

Building the Release Version of a Licensed FPM Application .............. 160

Creating FPM Application Licenses ...................................................... 161

Supplying FPMs to Customers ............................................................. 164

8

Localizing the SmartServer Web Interface ................................. 167

Language Localization Overview ................................................................ 168

Creating a Language Localization Project ............................................ 168

Creating Localized Custom SmartServer Web Pages.......................... 172

Translating Common Properties..................................................... 173

Translating Embedded Application Properties ............................... 178

Creating a Localized Custom SmartServer Web Page .................. 179

Creating Localized FPM Configuration Web Pages ............................. 182

Localizing the Language of the SmartServer Web Interface ................ 185

Translating Property Files............................................................... 185

Creating New Language Folders.................................................... 185

Editing the index.htm File to Enable a New Language on the
SmartServer .................................................................................... 186

Translating the Welcome.htm File.................................................. 187

Translating the Menu.htm File ........................................................ 191

Translating the Sidebar.htm File .................................................... 198

Viewing the Localized SmartServer Web Interface........................ 201

Appendix A FPM Programmer’s Reference .................................... 203

Overview...................................................................................................... 204

Template Files ............................................................................................. 204

Routines....................................................................................................... 204

Initialize()............................................................................................... 205

FPM Application Example .............................................................. 205

FPM Driver Example ...................................................................... 205

Work() ................................................................................................... 205

FPM Application Example .............................................................. 206

FPM Driver Example ...................................................................... 206

OnTimer().............................................................................................. 206

FPM Application ............................................................................. 207

FPM Driver...................................................................................... 207

Shutdown()............................................................................................ 208

FPM Application Example .............................................................. 208

FPM Driver Example ...................................................................... 208

Methods ....................................................................................................... 208

Variable Types ...................................................................................... 208