Echelon OpenLDV User Manual

Page 7

Advertising
background image

OpenLDV Programmer’s Guide

vii

Implement the ILdvxLookup Interface .............................................. 119

Add the Extension to the Component Category ................................ 121

Build and Register the COM Server .................................................. 121

Create a Custom xDriver Profile ........................................................ 122

Test the Lookup Extension ................................................................. 124

Optional Steps ..................................................................................... 124

Creating a Custom Lookup Extension in Visual Basic ............................ 125

Create a New Visual Studio Project ................................................... 125

Add a Reference to the xDriver Type Library ................................... 127

Add a COM Class ................................................................................. 127

Delete the Project Default Class ......................................................... 128

Import xDriver Types to Your System Namespace ........................... 129

Implement the ILdvxLookup Interface .............................................. 129

Build and Register the Lookup Extension ......................................... 130

Create a Custom xDriver Profile ........................................................ 130

Test the Lookup Extension ................................................................. 132

Sample Lookup Extension Component ..................................................... 132

xDriver Profiles .......................................................................................... 134

Starting the Connection Broker ......................................................... 135

Chapter 7. LNS Programming with xDriver .......................................... 137

Downlink Sample Applications ................................................................. 138

Opening a Single Remote Network With xDriver ............................. 138

Opening Multiple Remote Networks for Downlink ........................... 139

Uplink Sample Application ....................................................................... 142

Appendix A. Custom Network Interfaces................................................ 147

Overview ..................................................................................................... 148

Working with a Custom Network Interface ............................................. 148

Windows Registry Entries ......................................................................... 150

Appendix B. LNS Methods and Events for xDriver Support ............. 153

xDriver Methods and Events ..................................................................... 154

AcceptIncomingSession ....................................................................... 154

BeginIncomingSessionEvents ............................................................. 155

EndIncomingSessionEvents................................................................ 155

NetworkInterfaces.Item( ) ................................................................... 156

OnIncomingSessionEvent ................................................................... 157

ReleasePendingUpdates ...................................................................... 158

Appendix C. Custom Lookup Extension Programming ...................... 161

Overview ..................................................................................................... 162

ILdvxConfigure Interface .......................................................................... 162

SetInstance Method ............................................................................. 162

SetOptions Method .............................................................................. 163

ILdvxLookup Interface .............................................................................. 164

DownlinkLookup Method .................................................................... 164

UpdateLookup Method ........................................................................ 165

UplinkLookup Method ........................................................................ 165

ILdvxSCO Interface ................................................................................... 166

GetAdditionalDownlinkPacketHeader Method ................................. 167

GetAdditionalDownlinkPacketTrailer Method ................................. 167

GetAuthenticationFlag Method .......................................................... 168

GetCurrentAuthenticationKey Method ............................................. 168

GetDownlinkKey Method .................................................................... 169

Advertising