Echelon i.LON SmartServer 2.0 User Manual
Page 209

i.LON SmartServer 2.0 Programmer’s Reference
14-9
14.1.3.2 Issuing Network Scan Commands to Discover Devices
You can use the InvokeCmd function to discover all the uncommissioned devices on a L
ON
W
ORKS
network. When you send this command, a message is broadcast to the devices on the network that
triggers the devices to identify themselves by their Neuron IDs.
The network scan automatically generates a Data Log named “
includes entries for each uncommissioned device discovered by the network scan. Each entry includes
a Net/VirtCh/iLON System/VirtFb/LonDiscoveryMessage data point that is set to the program ID
and Neuron ID of a discovered device. You can periodically read the data log for uncommissioned
devices while the network scan is ongoing based on the log’s
wait until the network scan has been completed to read the uncommissioned devices in the data log all
at once. See Processing Discovered Devices later in this section for more information.
Note: Section 21.1.6, Discovering and Installing External Devices in Visual C# .NET, includes a C#
programming example demonstrating how to discover and install uncommissioned L
ON
W
ORKS
devices. Section 21.2.6, Discovering and Installing External Devices in Visual Basic.NET, describes
how to do this in Visual Basic. Section 22.3.4, Discovering and Installing External Devices in JAVA,
describes how to do this in JAVA.
The following example demonstrates how to scan a L
ON
W
ORKS
network for uncommissioned devices:
xsi:type="string" LonFormat="UCPTstatus">STATUS_REQUEST
LonFormat="UCPTscan">NST_ILON_DOMAIN
The input parameters you supply to this function include one
LON_Network_Scan_Command_Invoke xsi type and a LONNetworkEScanCommand attribute that is
set to “SetScan”. The
that is set to “NST_ILON_DOMAIN”. The following table lists the required properties of the
element.
Option Description
The name of the L
ON
W
ORKS
to be scanned for uncommissioned
devices.
A LONNetworkEScanCommand type that requires the
following two properties:
property to ScanOnce, so that the SmartServer scans the
network once.
•
status of the network scan command. When issuing a
network scan command, you must set this property to
STATUS_REQUEST.
This property may be one of the following values:
STATUS_REQUEST