Running EcMonitorDemo

5.1. Running EcMonitorDemo

To capture the EtherCAT® traffic insert a TAP device between the EtherCAT® adapter of the MainDevice and the first SubDevice.

Diagram of an EtherCAT network with a TAP device inserted between the MainDevice and the first SubDevice for traffic capture

Start the EcMonitorDemo from the command line to process the captured EtherCAT® frames. At least a Real-time Ethernet Driver and a ENI file must be specified.

> EcMonitorDemo -ndis 192.168.157.2 1 -f eni.xml -t 0 -v 3

See also

Platform and Operating Systems (OS) for OS specific additional instructions to run the demo application

5.1.1. Command line parameters

EcMonitorDemo <LinkLayer> [-f ENI-FileName] [-t time] [-b cycle time] [-a affinity] [-v level] [-perf] [-log prefix [msg cnt]] [-lic key] [-sp [port]] [-rec [prefix]] [-play pcap-FileName] [-daqrec file name]

The parameters are as follows:

-f <ENI-FileName>

Path to ENI file

-t <time>

Running duration [ms]. When the time expires the demo application exits completely.

<time>:

Time [ms], 0 = forever (default = 120000)

-b <cycle time>

Specifies the bus cycle time. Defaults to 1000 µs (1 ms).

<cycle time>:

Bus cycle time in µsec

-a <affinity>

The CPU affinity specifies which CPU the demo application ought to use.

<affinity>:

0 = first CPU, 1 = second, …

-v <level>

The verbosity level specifies how much console output messages will be generated by the demo application. A high verbosity level leads to more messages.

<level>:

Verbosity level: 0=off (default), 1..n=more messages

-perf [<level>]

Enable max. and average time measurement in µs for all EtherCAT® jobs (e.g. ProcessAllRxFrames).

<level>:

Depending on level the performance histogram can be activated as well.

-log <prefix> [<msg cnt>]

Use given file name prefix for log files.

<prefix>:

<msg cnt>:

Messages count for log buffer allocation

-lic <key>

Set License key.

<key>:

License key string

-oem <key>

Use OEM key

<key>:

64 bit OEM key.

-fingerprint <method>

Read license fingerprint

<method>:

Fingerprint method

-sp [<port>]

If platform has support for IP Sockets, this command-line option enables the Remote API Server to be started. The Remote API Server is going to listen on TCP Port 6000 (or port parameter if given) and is available for connecting Remote API Clients.

<port>:

RAS server port

-rec [<prefix>]

Packet capture file recording

<prefix>:

File name prefix

-play <FileName>

Packet capture file processing

<FileName>:

File name (*.pcap|*.pcapng)

-genebi <FileName>

Export ENI Builder config on demo stop

<FileName>:

File name (*.xml)

-mqtt <BrokerAddress>

Publish process data to MQTT broker. EcMonitorDemoMqtt only

<BrokerAddress>:

MQTT broker address

-mqttCycTime <Msec>

Minimum time between cyclic messages for a variable. EcMonitorDemoMqtt only

<Msec>:

Time in milliseconds

-mqttChgTime <Msec>

Minimum time between change-detection based messages for a variable. EcMonitorDemoMqtt only

<Msec>:

Time in milliseconds

-daqrec <FileName>
<FileName>:

Configuration file