Echelon OpenLDV User Manual

Page 6

Advertising
background image

vi

LdvCombineFlags Enumeration ........................................................... 39

LdvDeviceCaps Enumeration ............................................................... 40

Structures and Enumerations for the Driver API ..................................... 42

LDVDriverInfo Structure ...................................................................... 42

LdvDriverID Enumeration ................................................................... 43

LdvDriverType Enumeration ............................................................... 44

Windows Messages for Session Notifications ............................................. 44

OpenLDV API Return Codes ....................................................................... 45

Example: A Simple OpenLDV Application ................................................ 52

Chapter 3. Sending/Receiving Messages with the OpenLDV API ....... 57

Constructing Messages ................................................................................ 58

Application Buffer Structure ....................................................................... 58

Layer 2 Buffer Structure ....................................................................... 61

Application Layer Header .............................................................. 61

Layer 2 Header ................................................................................ 61

NPDU ............................................................................................... 61

CRC .................................................................................................. 62

Layer 5 Buffer Structure ....................................................................... 62

Application Layer Header .............................................................. 62

Message Header .............................................................................. 62

Network Address ............................................................................. 67

Message Data .................................................................................. 73

Sending Messages to the Network Interface ....................................... 75

Receiving Messages from the Network Interface ................................ 75

Using the Network Interface Command Interface .................................... 76

Downlink Commands ............................................................................ 76

Uplink Commands ................................................................................. 77

Immediate Commands .......................................................................... 77

Network Interface Commands .............................................................. 77

Chapter 4. The OpenLDV Developer Example ........................................ 89

Overview ....................................................................................................... 90

Common Definitions .................................................................................... 90

COpenLDVapi and COpenLDVtrace .......................................................... 90

COpenLDVni, Message Pumps, and Message Dispatchers ...................... 90

Toolkits and User Interface ......................................................................... 91

Developer Example Diagram ...................................................................... 92

Chapter 5. Using the xDriver Default Profile .......................................... 93

Configuring an xDriver Profile.................................................................... 94

LNS Applications for xDriver ...................................................................... 98

Chapter 6. Extending xDriver ...................................................................... 99

Extending xDriver ...................................................................................... 100

xDriver Sessions ......................................................................................... 100

Downlink Sessions ............................................................................... 100

Uplink Sessions ................................................................................... 104

Session Control Object ........................................................................ 108

Authentication Key Handling ................................................................... 111

Setting the Current Authentication Key ........................................... 111

Changing the Current Authentication Key ....................................... 112

Creating a Custom Lookup Extension in C++ ......................................... 113

Create a New Visual Studio Project ................................................... 114

Add a COM Object ............................................................................... 116

Advertising