Building the example applications, Running the examples – Echelon LonTal Stack User Manual

Page 219

Advertising
background image

LonTalk Stack Developer’s Guide

207

Function

Description

Ip852Router

A router that connects an IP-852 channel to a native

LonTalk channel.
For the native LonWorks channel attached to this router,
this example requires OpenLDV 4.0 (or later) and a Layer

2 network interface such as the Echelon U10 USB

Network Interface or PCC-10, PCLTA-20, or PCLTA-21
network interface card. This network interface cannot be

shared with the OpenLNS Commissioning Tool or any
other application.
For the IP-852 channel, you need to install the Echelon

IP-852 Configuration Server (you can download this app
for free from the Echelon Web site at

www.echelon.com/support/downloads

).

In the IP-852 Configuration Server, you will define the
IPv4 address and port number of the Ip852Router and

any other IP-852 devices that it communicates with.

For example, to test the Ip852Router with the OpenLNS

Commissioning Tool, you can define an IP-852 channel

that consists of two IP-852 devices: the Ip852Router and
the OpenLNS Commissioning Tool.

The following sections describe the three example applications, including their

design, how to build them, and how to run them.

Building the Example Applications

To build the example applications, start Visual Studio 2008, open the
Examples\Examples.sln file, and then click Build and click Build Solution.

This will build a project for each of the three example applications.

Running the Examples

Each example application is implemented as a simple Windows console

application with a command line parameters to specify the network interfaces.

Invoking the application with no parameters prints help information.

Starting an example application automatically runs the application and displays

the following options on the console:

Command

Description

S

Sends service pin message.

E

Exit.

Q

Quit.

?

Print this screen.

Advertising