This document is intended to provide help using the iM871A Wireless M-Bus module. It gives an
overview about its features and the Wireless M-Bus Stack. It explains how to control the module
by a connected host controller.
This user manual includes the basic hardware specifications and describes how to put the
iM871A into operation with the Wireless M-Bus Starter Kit.
iM871A_WMBus_UserManual.docx, Wireless Solutions, v1.2 Page i
User Manual
iM871A Wireless M-Bus Table of Contents
Table of Contents
1. GENERAL4
1.1 Key Features 4
1.2 Applications 5
2. GENERAL FEATURE OVERVIEW6
3. MODULE FIRMWARE9
3.1 Wireless M-Bus Stack 9
3.1.1 General 9
3.1.2 WM-Bus Modes 10
3.1.3 WM-Bus Telegrams 12
3.2 Serial Interface 14
3.2.1 Connection Settings 14
3.2.2 Host Controller Protocol 14
3.2.3 General Device Functions 14
3.2.4 Device Configuration 15
3.2.5 Operation Modes 16
3.2.6 Real Time Clock Support 16
3.2.7 AES-128 Encryption / Decryption 17
3.3 Low Power and Wake-up 17
3.3.1 Auto Power Saving 17
3.4 Port Pin Signaling 17
4. MODULE SPECIFICATION18
4.1 General Radio Settings 18
4.1.1 Channel Setup 18
4.1.2 Power Level Setup 18
4.1.3 Data Rate Setup 19
4.2 System Timing 19
4.2.1 Wake-up after Low-Power-Mode 19
4.3 Current Consumption 21
5. WIRELESS M-BUS STARTER-KIT22
5.1 Demo Board 22
5.1.1 Power Supply 23
iM871A_WMBus_UserManual.docx, Wireless Solutions, v1.2 Page ii
User Manual
iM871A Wireless M-Bus Table of Contents
5.1.2 USB Interface 23
5.2 USB-Stick 24
5.2.1 USB Driver 24
5.3 Configuration with WM-Bus Studio 25
6. ORDERING INFORMATION26
7. APPENDIX27
7.1 List of Abbreviations 27
7.2 List of Figures 28
7.3 List of Tables 28
7.4 References 29
8. REGULATORY COMPLIANCE INFORMATION30
9. IMPORTANT NOTICE31
9.1 Disclaimer 31
9.2 Contact Information 31
iM871A_WMBus_UserManual.docx, Wireless Solutions, v1.2 Page iii
User Manual
iM871A Wireless M-Bus General
1. General
The iM871A is an ultra-low-power, high-performance, pre-certified Wireless M-Bus module
fully compliant with EN 13757 part 4, Wireless M-Bus standard.
The module offers a cost-effective wireless solution for smart metering applications
connecting water, heat, electricity and gas meters with data concentrators. It operates in the
868 MHz frequency band and it supports all unidirectional and bidirectional Wireless M-Bus
modes (S1, S1-m, S2, T1, T2, R2, C1 and C2).
With a standby current of less than 1 µA, the iM871A is well suited for battery powered
devices like water and gas meters. The pre-certified module provides a serial interface as well
as analog and digital inputs and outputs and can easily be integrated into a meter. With its
integrated Wireless M-Bus protocol stack it will reduce the development time and cost. The
iM871A can achieve a link budget up to 123 dB, resulting in exceptional RF range and
communication performance.
Figure 1-1: iM871A
1.1Key Features
- Compact module 16.8 x 18.6 x 2 mm for SMD mounting
- Ultra low power modes for extended battery lifetime
- Communication/Configuration via UART, SPI and I²C interface
The iM871A wireless M-Bus module offers a cost-effective RF solution for smart metering
applications connecting water, heat, electricity and gas meters with data concentrators in the
868 MHz frequency band.
The iM871A Wireless M-Bus module offers lots of features which gives the user the possibility
to save implementing functionalities on the host controller side. With the PC Application
Wireless M-Bus Studio the features can easily be explored. The module can either be used as
WM-Bus modem or can be taken as stand-alone solution (on request).
Figure 2-1: iM871A Metering Application Example with Host Controller
Figure 2-2: iM871A Metering Application Example Stand-Alone
User Manual
iM871A Wireless M-Bus General Feature Overview
iM871A Features
Host Controller Interface
With a message based serial protocol the user is able to connect the iM871A radio module
to a host system. It can be used for configuration, data exchange and device control. Each
message to or from the radio module is embedded in a specific message frame. For
Windows PC applications a library (DLL) can be used. To connect the radio module to
embedded systems example code is available.
Power Management
The iM871A radio module provides two different power saving modes to operate best in
battery driven applications:
Low Power Mode (with RTC running)
Low Power Mode (with RTC off)
These modes can be called via the Host Controller Interface (HCI). The wakeup can also be
done over the serial interface.
Moreover the iM871A provides the opportunity to enter one of the power save modes
automatically after a successful WM-Bus packet transmission.
Supported Device Modes
The iM871A is designed for metering applications (Meter-Mode), but it also can operate in
Other-Mode (Concentrator, Data Collector, etc.).
Operation- and State-Indication
When using the iM871A together with WiMOD Demoboard there is the option to indicate the
internal states of the module by LEDs.
TX Indicator LED: a WM-Bus packet is transmitted successfully
RX Indicator LED: a WM-Bus packet was received successfully
Alive Indicator LED: The module is awake and ready for operation
The LED indication can be disabled by configuration.
Real Time Clock
The iM871A provides an embedded RTC which can be used for timer controlled operations
e.g. automatic transmission of WM-Bus messages at specific times or with a configurable
interval (on inquiry).
User Manual
iM871A Wireless M-Bus General Feature Overview
AES Encryption
The iM871A supports automatic AES-128 encryption and decryption of radio link messages.
Hardware Test
Opportunity to generate a continuous wave signal on all supported channels.
Features in combination with the WM-Bus Studio
Packet Sniffer
With the Wireless M-Bus Studio a packet sniffer functionality for Wireless M-Bus packets is
given. An optional data logger can store the air traffic into a log file.
Radio Link Test
The iM871A offers the possibility to evaluate the radio link quality between two devices with
the Radio Link Test.
During this test a configurable number of packets including a TX packet counter is sent from
a local device which is connected to the WM-Bus Studio to a peer device. The peer device
returns the number of received packets back to the sender.
Wireless M-Bus Message Generator
The Message Generator offers the possibility to simulate real Wireless M-Bus packets. The
format is conform to the EN13757-4 standard. The content of these packets can be changed.
With this function the users is able to test the iM871A radio module against other Wireless MBus devices.
The Wireless M-Bus protocol stack implemented on iM871A is compliant the European
standard 13757 part 4: "Communication systems for meters and remote reading of meters"
[1]. It describes the wireless communication of water, heat, electricity and gas meters with
data concentrators. For sake of convenience in this manual such meter devices are called
"meter", the communications partner devices like concentrators are called "other".
The iM871A supports all link modes according to EN 13757-4: S (stationary), T (frequent
transmit), R (frequent receive) and C (compact operation). These four main modes are
divided into further sub-modes for dedicated applications. All modes are described from the
meters view. Table 3-1 gives an overview over all WM-Bus modes and their physical
parameters.
Table 3-1: Wireless M-Bus Modes
WM-Bus Mode S
Stationary mode
Mode S1 transmit only, unidirectional, long preamble
Mode S1-m unidirectional, transmission to mobile data collectors, short preamble
Mode S2 bidirectional, short preamble
Operation at 868.3 MHz, chip rate: 32.768 kcps, encoding: "Manchester"
Telegram Format A
WM-Bus Mode T
Frequent transmit mode
Mode T1 unidirectional, frequent operation
Mode T2 bidirectional, frequent operation
Transmission at 868.95 MHz, chip rate: 100 kcps, encoding: "3 out of 6"
Note: The iM871A can be used as RF-Adapter for Wireless M-Bus devices. It
provides the physical access to the Wireless M-Bus "Network". For complete
Wireless M-Bus protocol operation a host controller is needed which is able to
generate telegrams which meet the EN13757-3 requirements.
Some M-Bus modes require response times which cannot be fulfilled with an
external host controller due to long transmission times on the wired interface. For
these cases we can provide customized solutions.
iM871A Wireless M-Bus Module Firmware
WM-Bus Mode R2
Frequent receive mode
Mode R2 bidirectional, meter always available
Transmission at channel 0-9, chip rate: 4.8 kcps, encoding: "Manchester"
1 byte15 bytes or, if last block, (((L-9) MOD 16) -1) bytes
Data-FieldCRC-Field
2 bytes
iM871A Wireless M-Bus Module Firmware
3.1.3 WM-Bus Telegrams
In this section the message format on the air interface is described.
There are two different telegram formats specified in EN13757-4. Telegram Format A and
Telegram Format B. The operating modes S, T and R2 use Telegram Format A. The C-mode
supports both telegram formats.
Wireless M-Bus Telegram Format A
Figure 3-2: Wireless M-Bus Telegram Format A
Every Wireless M-Bus telegram starts with a preamble sequence followed by a synchronization
word. The length of these fields is mode-dependent. The implementation is done according to
EN13757-4 [1]. The postamble contains normally 8 chips. Only for even packet sizes in T
mode (Meter) the postamble consists of four chips.
Block 1:
Figure 3-3: Wireless M-Bus Telegram Format A, block1 (header)
The first byte of block 1 is the length byte. It describes the number of the following user bytes
including C-Field-, M -Field- and A-Field-Data, but without any CRC byte.
C-Field, M-Field and A-fields can be pre-configured and stored in the non-volatile memory.
L-Field and CRC-fields are filled by the firmware at transmission.
Block 2:
Figure 3-4: Wireless M-Bus Telegram Format A, block2
Note: In this chapter only a short summary of the serial interface commands is
given. For detailed information please refer please refer HCI specification [3].
iM871A Wireless M-Bus Module Firmware
3.2 Serial Interface
The iM871A can be controlled and configured via serial Interface (UART). On inquiry the
module can also be driven by Serial Peripheral Interface (SPI).
3.2.1 Connection Settings
The UART baud rate which is required for communication between host controller and radio
module is 57600 baud. Further 8 data bits, 1 stop bit and no parity bit have to be
configured.
3.2.2 Host Controller Protocol
The iM871A offers the user a host controller interface (HCI) and uses a specific host
controller message protocol With this message based serial protocol the user is able to
connect the iM871A radio module to a host system. It can be used for configuration, data
exchange and device control. Each message to or from the radio module is embedded in a
specific message frame.
Figure 3-10: Message format on serial interface
3.2.3 General Device Functions
Ping Request
This function can be used to check the wired communication interface (HCI) and if the
connected device is alive. If a “Ping Command” message is received the device answers
with a “Ping Response” message.
Receive time after transmission in ms (Meter only)
50
Power Saving Mode
Enable / disable automatic power saving after transmission (Meter only)
Off
LED Control
LED indication for TX/RX/Alive
Off
RX Timestamp
Timestamp attachment on HCI message for received messages
Off
RSSI Attachment
RSSI attachment on HCI message for received messages
Off
Real Time Clock
Enable / disable Real Time Clock
Off
Encryption
Enable / disable encryption
Off
iM871A Wireless M-Bus Module Firmware
Get Device Info
For identification purpose the WM-Bus firmware provides a service to readout some
information elements e.g. Module Type, Firmware Version. This command returns the
basic device information block.
3.2.4 Device Configuration
The WM-Bus Firmware supports several kinds of configurable system parameters which can
be stored in a non-volatile parameter memory. The configuration parameters are readout
during start-up and used to configure the firmware components and the hardware units.
Table 3-2 gives an overview about all changeable parameters.
Table 3-2: Parameter Overview
When sending a WM-Bus message by HCI command the Block 1 parameters can either be
taken from the configuration or can individually be transferred with each message.
For reading and writing the parameters listed in Table 3-2 the following functions can be
used.
Get Device Configuration
This function can be used to readout all configuration parameters.
Note: The new configuration gets active after reboot.
iM871A Wireless M-Bus Module Firmware
Set Device Configuration
This function can be used to change several system parameters. The function allows to
change parameter directly and to save them in a non-volatile memory. Please get the list
of the configurable parameters from the HCI Specification.
Factory Reset Request
This function can be used to reset the WM-Bus device configuration to its default factory
settings.
3.2.5 Operation Modes
The WM-Bus firmware can operate in different kinds of System Operation Modes. The
operation modes enables the device to align its behaviour according to a given use case e.g.
test mode, application mode. The system operation mode is determined during firmware
start-up and requires a reset to get changed.
Get System Operation Mode
This function returns the current System Operation Mode.
Set System Operation Mode
The following System Operation Modes are supported:
- Application Mode
- Hardware Test Mode
3.2.6Real Time Clock Support
The iM871A provides an embedded RTC which can be used for timer controlled operations
e.g. automatic transmission of WM-Bus messages at specific times or with a configurable
interval.
The iM871A supports automatic AES-128 encryption and decryption of radio link messages.
There is the chance to configure up to 16 decryption keys for 16 different devices. The keys
can be stored in a RAM table together with the complete WM-Bus device address. For
detailed information please refer the WM-Bus Studio User Manual [2].
3.3 Low Power and Wake-up
The Low Power Mode can be entered manually by sending a command via the serial
interface. The radio part is in shutdown state and the CPU is in sleep mode. Additionally the
Real Time Clock can be disabled to reduce the power consumption to the minimum. The
module can be woken up again by sending a new HCI command.
3.3.1 Auto Power Saving
For devices which are configured to operate in Meter mode the feature Auto Power Saving
can be enabled. Automatic Power Saving means, that the device enters the configured power
saving mode automatically when a WM-Bus message was sent. The next command on the
serial interface will wake-up the device.
For devices operation in Other mode power saving is not intended. Other devices are always
on and ready to receive Wireless M-Bus packets.
3.4 Port Pin Signaling
The embedded Firmware can be configured to use three port pins of the radio module as
follows:
Alive Indicator (module pin 1)
indicates if the module is active (pin 1 high) or sleeping (pin 1 low)
TX Indicator (module pin 3)
toggles every time a message was sent
RX Indicator (module pin 6)
toggles every time a message was received
When using the iM871A in Wireless M-Bus Starter-Kit the indicator pins are connected to
LEDs of the Demo Board.
Notes: The TX power values are dependent on the supply voltage of the radio module.
These values are valid for 3V supply voltage.
iM871A Wireless M-Bus Module Specification
4. Module Specification
4.1 General Radio Settings
In this chapter the possible radio configurations of the iM871A are described.
4.1.1 Channel Setup
Table 4-1 shows the RF channel setup. These channels are available in R-Mode for
transmissions from Meter to Other devices. The opposite direction is always done in 868.33
MHz (channel 5).
Table 4-1: Possible Frequency Channel Settings in R-Mode
4.1.2 Power Level Setup
Table 4-2 shows the possible power level setup relating to the 50 connector (pin ANT).
chip rate, results in a data rate of 2.4 kbps (Manchester coding)
32.768
chip rate, results in a data rate of 16.384 kbps (Manchester coding)
50
chip rate = data rate (NRZ coding)
100
chip rate, results in a data rate of 66.66 kbps (3 out of 6 coding)
chip rate = data rate (NRZ coding)
iM871A Wireless M-Bus Module Specification
4.1.3 Data Rate Setup
Table 4-3 shows the used RF data rates setups. They are configured automatically by the
module firmware dependent on the selected Wireless M-Bus mode, the Device Mode and the
data direction.
Table 4-3: Possible RF Data Rates
4.2 System Timing
4.2.1 Wake-up after Low-Power-Mode
Figure 4-1 shows the timing diagram of the transmission of a 42 byte WM-Bus packet in SMode. The device is in Low Power Mode and is woken up by the edge of the first UART bit
that is received from the host controller. After successful RF transmission, the host controller is
informed with a status message. Hereafter the metering device is able to receive command
messages (e.g. from a data collector) for the configure RX Window (here: 10ms). If no
command is received the radio is shutdown and the module returns to Low Power Mode
again.
Figure 4-3 shows schematically the current consumption of a meter device, that is triggered
by the host controller to transmit a Wireless M-Bus packet every 2 seconds. After transmission
the meter is able to receive commands from a master device (concentrator, data collector,
etc.). The rest of the time the meter remains in Low Power Mode.
User Manual
iM871A Wireless M-Bus Wireless M-Bus Starter-Kit
5. Wireless M-Bus Starter-Kit
To explore the features and capabilities of the iM871A Wireless M-Bus radio module a plug
& play Starter-Kit solution is available.
5.1 Demo Board
The Starter-Kit usually contains two Demo Boards where the iM871A modules can be
mounted on. The Demo Boards offer several often used peripherals like e.g. buttons and
LEDs. The module can easily be accessed via the on board FTDI RS232 to USB converter.
Figure 5-1 gives an overview of the Demo Board and its peripherals.
Figure 5-1: Demo Board
Using the Demo Board with the iM871A it must be soldered on its specific adapter board and
plugged into X1 and X2. Now all necessary module pins are available on X5, X6, and X7 of
the Demo Board.
Table 5-1 shows the used peripherals and its mapping to the radio module iM871A when
setting the corresponding jumper on X5, X6 and X7.
Table 5-1: Pin mapping to important peripherals of the Demo Board
5.1.1 Power Supply
The Demo Board and the attached radio module may be powered from either two “AAA” size
batteries or from the USB bus when connected to a USB port on a PC. The sliding switch S1
toggles between these power sources and must be set according to what power source is
used. In position “USB” the USB bus voltage together with a voltage regulator (3 V) is used. In
position “BAT” the battery voltage is used directly. LED 6 is turned on when the iM871A is
powered on. Additionally LED 5 is turned on if a USB connection to a PC is established. It is
recommended either to use the battery or the USB power, thus S1 can be used as on-offswitch.
To supply the radio module with power jumper JP1 must be set.
Power supply of the iM871A (except the USB interface) and the attached radio module is
interrupted if push button B4 is pressed. Because the radio module has a Power-On-Reset
(POR) functionality B4 serves as the RESET button.
5.1.2 USB Interface
The USB interface of the Demo Board can be used for communication between the attached
radio module and a PC. The USB controller (FT232RQ) is turned on once the connection to
a PC is established. This is also signalized by LED 5. The USB interface supports ”USB 1.1“ and “USB 2.0 full speed“ modes.
Before the USB interface can be used for the first time, the desired hardware driver for the
USB controller must be installed on the PC. If the PC will detect the Demo Board as new
hardware please follow the given instructions to install the new virtual COM port.
For more information see http://www.ftdichip.com/Drivers/VCP.htm
User Manual
iM871A Wireless M-Bus Wireless M-Bus Starter-Kit
5.2 USB-Stick
Figure 5-2: iM871A USB-Stick
For an easy use a compact iM871A USB adapter is available. It covers all the main
communication functionalities of the demo board and can be used with the Wireless M-Bus
Studio as well. With its internal antenna nothing more is needed as a free USB port on the
host system. The iM871A USB-Stick is not part of the Wireless M-Bus Starter-Kit, it has to be
ordered separately.
5.2.1 USB Driver
Before the USB interface can be used for the first time, the desired hardware driver for the
USB controller must be installed on the PC. If the PC will detect the USB-Stick as new
hardware please follow the given instructions to install the new virtual COM port.
The USB-Stick contains the Silabs USB-to-UART-Bridge CP210x. Virtual Com Port (VCP)
drivers for Microsoft WindowsTM, WindowsCE and Linux available.
Note: For detailed information please refer the WM-Bus Studio User Manual [2].
iM871A Wireless M-Bus Wireless M-Bus Starter-Kit
5.3 Configuration with WM-Bus Studio
The Wireless M-Bus Studio is a Windows tool which allows to explore the capabilities of the
iM871A. The GUI offers a comfortable way to configure and control some features of the
embedded Wireless M-Bus Stack like:
User Manual
iM871A Wireless M-Bus Regulatory Compliance Information
8. Regulatory Compliance Information
The use of radio frequencies is limited by national regulations. The radio module has been
designed to comply with the European Union’s R&TTE (Radio & Telecommunications Terminal
Equipment) directive 1999/5/EC and can be used free of charge within the European Union.
Nevertheless, restrictions in terms of maximum allowed RF power or duty cycle may apply.
The radio module has been designed to be embedded into other products (referred as “final
products”). According to the R&TTE directive, the declaration of compliance with essential
requirements of the R&TTE directive is within the responsibility of the manufacturer of the final
product. A declaration of conformity for the radio module is available from IMST GmbH on
request.
The applicable regulation requirements are subject to change. IMST GmbH does not take
any responsibility for the correctness and accuracy of the aforementioned information.
National laws and regulations, as well as their interpretation can vary with the country. In
case of uncertainty, it is recommended to contact either IMST’s accredited Test Center or to
consult the local authorities of the relevant countries.
User Manual
iM871A Wireless M-Bus Important Notice
9. Important Notice
9.1 Disclaimer
IMST GmbH points out that all information in this document is given on an “as is” basis. No
guarantee, neither explicit nor implicit is given for the correctness at the time of publication.
IMST GmbH reserves all rights to make corrections, modifications, enhancements, and other
changes to its products and services at any time and to discontinue any product or service
without prior notice. It is recommended for customers to refer to the latest relevant
information before placing orders and to verify that such information is current and complete.
All products are sold and delivered subject to “General Terms and Conditions” of IMST
GmbH, supplied at the time of order acknowledgment.
IMST GmbH assumes no liability for the use of its products and does not grant any licenses
for its patent rights or for any other of its intellectual property rights or third-party rights. It is
the customer’s duty to bear responsibility for compliance of systems or units in which products
from IMST GmbH are integrated with applicable legal regulations. Customers should provide
adequate design and operating safeguards to minimize the risks associated with customer
products and applications. The products are not approved for use in life supporting systems
or other systems whose malfunction could result in personal injury to the user. Customers
using the products within such applications do so at their own risk.
Any reproduction of information in datasheets of IMST GmbH is permissible only if
reproduction is without alteration and is accompanied by all given associated warranties,
conditions, limitations, and notices. Any resale of IMST GmbH products or services with
statements different from or beyond the parameters stated by IMST GmbH for that
product/solution or service is not allowed and voids all express and any implied warranties.
The limitations on liability in favor of IMST GmbH shall also affect its employees, executive
personnel and bodies in the same way. IMST GmbH is not responsible or liable for any such
wrong statements.