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]
50
15 MBus
The MC100 terminal/gateway can be used with an additional module to receive M-Bus
packets from various sensors (heat cost allocators, electricity meters ...).
15.1 Setting up the MBUS module
The internal radio module for the wireless M-Bus is connected to a serial interface of the
MC100 via a multiplexer.
Communication specifications
Technological feature
Description
Interface
/dev/ttymxc2
Speed
depending on the device, Probably 2400bd
Configuration
8 data bits, no parity, 1 stop bit
For MBUS the PMIC must activate the power supply of the M-Bus module.
This is done at start-up by the script in /etc/rc.d/s90pmic
The most common source of error for a non-functioning M-BUS is the lack of this script.
15.2 Using libmbus
On the MC100, libmbus and certain programs for communication with Mbus are installed.
Those are:
mbus-serial-request-data-multipli-reply
mbus-serial-request-data
mbus-serial-scan
mbus-serial-scan-secondary
mbus-serial-set-address
mbus-serial-select-secondary
mbus-serial-switch-baudrate
Using the parameter -h, short user information is shown for each of the programs and the
parameters are explained.
Function
Command line
A list of all connected devices
mbus-serial-scan -b 2400 /dev/ttymxc2
Requesting data from device 10:
mbus-serial-request-data -b 2400 /dev/ttymxc2 10