busware

Logger ecmd LOGGER ECMD

Archive — discontinued

This product is no longer manufactured and cannot be ordered. The page stays online as a reference for devices still in use; specifications, prices and external links date from the time it was sold and may be out of date.

Command reference for the ecmd HTTP interface of the S0 kWh logger.

Logger ecmd — command reference

Call:

http:///ecmd?command+parameter1+parameter2+…

Read the current pulse counts

Call:

http:///ecmd?s0ticks

Returns:

159863 3254 0 0

Read the current meter readings

in effect: the pulse counters converted to kWh Call:

http:///ecmd?s0kwh

Returns:

199.829 4.067 0.000 0.000

Read the current pulse periods

Call:

http:///ecmd?s0periods

Returns milliseconds:

8908 85169 58483 0

If no pulse arrives within two S0 intervals, “0” is returned.

Read the current power

in effect: the pulse periods converted Call:

http:///ecmd?s0power

Returns watts:

427 52 614 0

If no pulse arrives within two S0 intervals, “0” is returned.

Last 10 entries from the log file

Call:

http:///ecmd?s0data+ = a, b, c, d

Returns:

2010-11-01 23:53:22, 18, 2947917, 6697, 6492, 6846, 671 2010-11-01 23:55:22, 16, 2947933, 7114, 6846, 10312, 632 2010-11-01 23:57:22, 12, 2947945, 10525, 10467, 10575, 427 2010-11-01 23:59:22, 12, 2947957, 10527, 10369, 10568, 427 2010-11-02 00:01:22, 14, 2947971, 8745, 6139, 10550, 514 2010-11-02 00:03:22, 15, 2947986, 7686, 6121, 7921, 585 2010-11-02 00:05:22, 15, 2948001, 8218, 7454, 8964, 547 2010-11-02 00:07:22, 14, 2948015, 8909, 8866, 8976, 505 2010-11-02 00:09:22, 13, 2948028, 9080, 8897, 10491, 495 2010-11-02 00:11:22, 12, 2948040, 10523, 10369, 10591, 427

Read or set the meter constants (TicksPerKiloWattHour)

Call:

http:///ecmd?s0tpkwh

Returns:

800 800 1000 1000

To set it:

http:///ecmd?s0tpkwh++++

Example:

http:///ecmd?s0tpkwh+800+800+1000+1000

Read or set the logging interval

Call:

http:///ecmd?s0interval

Returns seconds:

60

To set it:

http:///ecmd?s0interval+

Example:

http:///ecmd?s0interval+120

Clear all meter readings

Call:

http:///ecmd?s0clear

Returns:

Read the free memory

Call:

http:///ecmd?mem

Returns:

MemFree: 12460 kB SwapFree: 126076 kB

Read the uptime

Call:

http:///ecmd?whm

Returns:

00:24:58 up 4:32, 0 users, load average: 0.01, 0.02, 0.00

Read the kernel version

Call:

http:///ecmd?version

Returns:

Linux 2.6.31-626-g602af1c armv5tejl

Read the co-processor firmware version

Call:

http:///ecmd?s0version

Returns:

5.3

Read the pulse counter time base

Call:

http:///ecmd?s0time

Returns:

up: 15511185 msec

Read the state of the data storage

the data partition of the microSD card Call:

http:///ecmd?sd

Returns:

size: 1.2G used: 34M free: 1.1G == 4%

Set the admin password for web access

The default login is user admin, password admin. Call:

http:///ecmd?pam+admin+

Example:

http:///ecmd?pam+admin+geheim

Read or set the IP address

Call:

http:///ecmd?ip

Returns:

192.168.1.50

To set it:

http:///ecmd?ip+

Example:

http:///ecmd?ip+192.168.1.50

Read or set the gateway address

Call:

http:///ecmd?gw

Returns:

192.168.1.1

To set it:

http:///ecmd?gw+

Example:

http:///ecmd?gw+192.168.1.1

Read or set the netmask

Call:

http:///ecmd?netmask

Returns:

255.255.255.0

To set it:

http:///ecmd?netmask+

Example:

http:///ecmd?netmask+255.255.255.224

Read or set the DHCP state

Call:

http:///ecmd?s0nodhcp

Returns:

0

To enable DHCP:

http:///ecmd?s0nodhcp+0

To disable DHCP:

http:///ecmd?s0nodhcp+1