Running the simpleltdevice example, Running the simpleip852device example, Running the ip852router example – Echelon LonTal Stack User Manual

Page 220: Details

Advertising
background image

208

Appendix G: Appendix G


Example LonTalk

Stack Applications

To test the example application, you can use the OpenLNS Commissioning Tool

or another OpenLNS installation tool to install the device or router.

Running the SimpleLtDevice Example

The console application takes one argument: niName (the network interface

name). If you run the console application without entering any parameters, the

application prints the following message and then exits:

SimpleLtDevice <niName>

<niName> is the name of the native LonTalk network interface

Running the SimpleIp852Device Example

The command takes two arguments: ipAddress (the IPV4 address in decimal
dotted format) and port (the port used by the device). If you run the console

application without entering any parameters, the application prints the following
message and then exits:

SimpleIp852Device <ipAddress> <ipPort>

<ipAddress> is the IPv4 dotted-decimal address to use

for the IP852 interface

<port>

is a decimal port number to use for the
IP852 interface

Running the Ip852Router Example

The command takes three arguments: niName (the network interface name),

ipAddress (the IPV4 address in decimal dotted format), and port (the port used
by the device). If you run the console application without entering any

parameters, the application prints the following message and then exits:

Ip852Router <niName> <ipAddress> <ipPort>

<niName> is the name of the native LonWorks network

Interface

<ipAddress> is the IPv4 dotted-decimal address to use for

the IP-852 interface

<port> is a decimal port number to use for the IP-852

interface

SimpleLtDevice and SimpleIp852Device Example
Application Details

The SimpleLtDevice example is a simple voltage amplifier application that
simulates a voltage actuator with a built-in gain of 2. This device receives an

input voltage value, multiplies the value by 2, and updates the simulated output
feedback value. For a real voltage actuator device, the input value would be used

to set a voltage level. After the device updated the voltage level, the application

would read the actual level and use that value to set the feedback value.

Advertising