MC100
Mobile programmable gateway
MC Technologies GmbH, Kabelkamp 2, 30179 Hannover, Germany
Tel: +49511 67 69 99-0, Fax: +49511 67 69 99-150, Website & Shop: www.mc-technologies.net, Email: [email protected]
41
13 WMBus
13.1 General information
The MC100 Terminal/Gateway can be extended with an extension board for Wireless M-
Bus packages.
13.2 Installing Command line tool mcwmbus
To interact with the WM-Bus extension, mcwmbus command line tool is needed.
It can be installed using opkg:
root@MC100: ~# opkg update
root@MC100: ~# opkg install mcwmbus
Update the tool to ensure that you get the latest features and stability
updates.
13.3 Basic functionality
The tool supports the -h parameter to print information about its usage.
The output might look like this:
13.4 Output formats
The tool supports different output formats, which can be individually set for each output
channel (URL, FILE, Command line)
.
hex
13.4.1
Hex produces the message in hexadecimal. One message per line.
Example on hex Output:
Usage:
mcwmbus [options]
Copyright (C) 2020 MC-Technologies GmbH
Options:
-h
Show this help message and exit.
-V
Show version information and exit.
-v
Print verbose debug information
-d
DEVICE tty device (default: /dev/ttymxc2)
-b
BAUD Baud rate for comunication (default: 19200)
-f
FILENAME Write data to file.
-u
URL Send Data via POST Request to URL
-c
Print Data on commandline
-F
FORMAT Data format for files (default: hex)
-U
FORMAT Data format for POST data (default: json)
-C
FORMAT Data format for command-line data (default: json)
FORMAT must be one of the following:
hex - RAW-Data HEX encoded
json - Data interpreted as JSON
json_hex - Data as JSON, uninterpreted
xml - Data interpreted as XML
FILENAME and URL allow the following special characters,
which will be replaced:
%M - Manufacturer ID
%D - Device Type / Medium
%U - Ident Nr.
%V - Version
1644AF4C02000041011B7A980000000266E8000266E900