Echelon OpenLDV User Manual
Page 7

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
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
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
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
Appendix A. Custom Network Interfaces................................................ 147
Working with a Custom Network Interface ............................................. 148
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
SetInstance Method ............................................................................. 162
SetOptions Method .............................................................................. 163
DownlinkLookup Method .................................................................... 164
UpdateLookup Method ........................................................................ 165
UplinkLookup Method ........................................................................ 165
GetAdditionalDownlinkPacketHeader Method ................................. 167
GetAdditionalDownlinkPacketTrailer Method ................................. 167
GetAuthenticationFlag Method .......................................................... 168
GetCurrentAuthenticationKey Method ............................................. 168
GetDownlinkKey Method .................................................................... 169