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: info@mc-technologies.net
57
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.
Basic functionality
The tool supports the -h parameter to print information about its usage.
The output might look like this:
Output formats
The tool supports different output formats, which can be individually set for each output
channel (URL, FILE, Command line).
hex
Hex produces the message in hexadecimal. One message per line.
Example on hex Output:
json
Json interprets the message and gives as much information as possible. It also contains the
raw message as a hexadecimal string.
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 communication (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