Echelon LNS Plug-in Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software Echelon LNS Plug-in herunter. Echelon LNS Plug-in User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Release 4

0 7 8 - 0 3 9 3 - 0 1 A®LNS®Plug-in Programmer’s Guide Release 4

Seite 3 - Table of Contents

1 Introduction This chapter describes the types of plug-ins that are used with LONWORKS networks, and it describes how director applications request

Seite 4

Introduction An LNS plug-in is an out-of-process automation server that implements the COM-based LNS Plug-in API so that it may be instantiated and co

Seite 5

configuration properties and enforce limits on configuration property values. You can create a device plug-in executable that operates on multiple de

Seite 6 - Preface

• A simple out-of-process server task model that supports plug-ins in the .NET environment (LNS plug-ins are out-of-process COM servers, for which su

Seite 7 - Related Manuals

2 Creating and Redistributing LNS Device Plug-ins This chapter explains how to create an LNS device plug-in using the LNS Plug-in Framework Develope

Seite 8 - Other Related Material

Creating and Redistributing Plug-ins Overview You can use the LNS Plug-in Framework Developer’s Kit to create an LNS device plug-in and create an inst

Seite 9

• The ObjectServer folder is common to all computers with the LNS Server runtime installed. • The Assemblies folder contains the .NET assemblies re

Seite 10

Creating the Plug-in Project You can create a C# or VB.NET plug-in project using Microsoft Visual Studio 2005 (or later) following these steps (note t

Seite 11 - Introduction

• In the Default namespace property, change the namespace to <YourCompany>.<YourProject>. • In the Assembly name property, enter a uniqu

Seite 12

Echelon, LON, LonWorks, Neuron, 3120, 3150, Digital Home, i.LON, LNS, LonMaker, LonMark, LonPoint, LonTalk, NodeBuilder, ShortStack, and the Echelon l

Seite 13 - LNS Plug-in Properties

7. Copy the PostBuild.bat file from the LonWorks\ObjectServer\Examples\PluginFramework\ExampleCSPlugin to your project folder. 8. In the Post-bui

Seite 14

13. Select the Echelon.LNS.Interop and the Echelon.LNS.Plugin.Framework .NET assemblies, and then click OK. • Echelon.LNS.Interop enables your ap

Seite 15 - Device Plug-ins

Implementing the Plug-in Server Class To implement your plug-in server class, modify the source as follows: 1. Add using System.Runtime.InteropServic

Seite 16

5. Add a PluginInfo public static property that returns a reference to a PluginInfo object that describes your plug-in. For efficiency, you should r

Seite 17

Field Description MultiObject Indicates to a director whether the plug-in supports MultiObject functionality. When supported, the MultiObject functi

Seite 18 - Plug-in Project

Field Description Prelaunch Indicates to a director whether the director may launch the plug-in in the background before the plug-in is needed. Supp

Seite 19

Field Description Scope A ComponentAppScope value identifying the scope of the plug-in’s command. This is known as the command scope, which should no

Seite 20

"Tests device.", // Description EnumCommandIds.Test, // CommandId

Seite 21

Field Description ObjectName The fully specified name of the LNS object on which to perform the command, as specified by the director. LcaObject A

Seite 22

Registering DeviceTemplate and LonMarkObject Scoped Plug-in Commands The LNS Plug-in Framework does not currently support registration of DeviceTempla

Seite 23

Table of Contents Preface ... vi Purpose ...

Seite 24

Redistributing your Plug-in After you have developed and tested your plug-in, you can create an installation project for it so that you can distribute

Seite 25

3 How Plug-ins Work with Directors This chapter details how directors and plug-ins interact. Once you understand the basic interaction between dire

Seite 26

How Plug-ins Are Represented in the LNS Object Server The LNS network database represents physical objects on a LONWORKS network with objects in the d

Seite 27

computer while checking to make sure that it does not overwrite newer versions. Next, the setup program adds a number of items to the Windows registr

Seite 28

1. The plug-in fetches the appropriate ComponentApps collection, based on the scope of the action. If the scope of the action is device or functiona

Seite 29 - Scoped Plug-in Commands

The plug-in does not need to register its registration command; the director will automatically add the registration command by adding a ComponentApp

Seite 30 - Redistributing your Plug-in

Director Action Plug-in Response requests. The Plug-in Framework automatically manages the plug-in’s reference counts. See How Plug-ins Know When T

Seite 31

Director Action Plug-in Response Releases the instance of the plug-in it created. COM decrements the plug-in’s usage count. If this is the last use

Seite 32

5. If the plug-in has not set the MultiObject value in the Windows registry to 1, release the reference to it. SingleInstance functionality is descr

Seite 33

How Directors Pass Object Names The objectName parameter of the SendCommand() method specifies the location of the target object in the LNS object hie

Seite 34

Appendix F Running the ACME Example C# Plug-in... 51

Seite 35 - Other than Registration

with the (now terminated) plug-in will result in exceptions in the directors. The desired behavior would be for the plug-in to become invisible (inst

Seite 36

After creating an instance of a plug-in, the director can set any property at any time, with the exception that the NetworkInterfaceName property, whi

Seite 38 - (COM Object)

Appendix A Standard Plug-in Commands This appendix lists the standard commands that may be implemented by plug-ins. Plug-ins may also implement manu

Seite 39

The following table lists the standard LNS plug-in commands. Command Description LcaCommandBrowse 20 Monitor and control the object. LcaCommandBuil

Seite 40

Appendix B Standard Plug-in Properties This appendix lists the standard properties that must be implemented by plug-ins, as well as optional properti

Seite 41 - Uninstallation Issues

The following table lists the standard LNS plug-in properties. Note that the property names CharacterEncoding and LanguageId are reserved for future

Seite 42

Name Type Description Batch Read-Write Long The optional Batch property allows plug-ins that support the MultiObject feature to cache incoming reques

Seite 43 - Standard Plug-in Commands

Name Type Description Prelaunch Long The optional Prelaunch property allows a director to launch the plug-in in the background, typically when the di

Seite 44

Name Type Description Version Read-Only String Version number of the plug-in. The version number is in “<major release>.<minor release>”

Seite 47

Appendix C Standard Plug-in Object Classes This appendix lists the standard classes of objects that may be passed to plug-ins, as well as the address

Seite 48

The following table lists the standard LNS plug-in classes. Object Class ID Addressing Syntax LcaClassIdAppDevice 7 network/system.subsystem[.subs

Seite 49

Object Class ID Addressing Syntax LcaClassIdExtension 50 extension (for Object Server) network/extension network/system.subsystem[.subsystem…]/appDe

Seite 50

Object Class ID Addressing Syntax LcaClassIdNetworkInterfaces 15 network/LcaNetworkServiceDevice:networkServiceDevice network/system LcaClassIdNetwo

Seite 51 - Appendix C

Appendix D Standard Plug-in Exceptions This appendix lists the standard exceptions that may be thrown by plug-ins. Plug-ins may also throw manufactu

Seite 52

The following table lists the standard LNS plug-in exceptions. Exception Code Description LcaComponentErrCantFindObject 20005 The plug-in could no

Seite 53

Appendix E Glossary This appendix provides definitions for key terms and concepts associated with plug-ins.

Seite 54

Glossary Action A command/object class pair implemented by a plug-in. A plug-in is defined by the actions that it can perform (for example, by the se

Seite 55 - Standard Plug-in Exceptions

The items managed by LNS. LNS treats each network as a collection of objects. These objects include application devices, routers, connections, funct

Seite 56

Preface You can use LNS device plug-ins to simplify the installation of your devices for network integrators. This manual provides an overview of the

Seite 57 - Glossary

The command scope of an action is indicated by the ComponentApps collection that the command is in. If an action is in the ObjectServer object’s Comp

Seite 58

Appendix F Running the ACME Example C# Plug-in This appendix describes the function of the ACME Example C# Plug-in provided with the LNS Plug-in Fram

Seite 59

Running the ACME Example C# Plug-in After installing the LNS Plug-in Framework Developer’s Kit, the ACME Example C# Plug-in will be installed on your

Seite 60

3. Register the ACME Example C# Device Plug-in (Version 1.0) plug-in and observe register command calls. The following image shows a representat

Seite 61 - Plug-in

5. Observe the command calls that occur after selecting the describe device command. 6. The ACME Example Device Plug-in dialog opens and displays th

Seite 66

www.echelon.com

Seite 67

Purpose This document describes how to write LNS plug-ins using .NET programming languages such as C# and Visual Basic .NET. After reading this docum

Seite 68

LNS®Programmer’s Guide Describes how to use the LNS Object Server ActiveX Control to develop an LNS application on a Microsoft Windows Vista™, Server

Seite 69

Region Languages Supported Contact Information Europe English German French Italian Echelon Europe Ltd. Suite 12 Building 6 Croxley Green Busin

Kommentare zu diesen Handbüchern

Keine Kommentare