OFF
MIKROE-4137
18 g
Status:
M-Bus Slave Click is a Click board™ equipped with the TSS721A, a single chip transceiver developed by Texas Instruments for Meter-Bus applications according to EN1434-3 standard. The connection to the bus is polarity independent and serves as a slave node in the system. M-Bus Slave Click has full galvanic isolation with optocouplers to improve the reliability of the whole circuit. The circuit is supplied by the master via the bus. Therefore, this circuit offers no additional load for the slave battery. The TSS721A has a power-fail function integrated within. This solution is perfect for a plethora of applications like remote reading of gas, water, heat or electricity, or other types of consumption meters.
The M-Bus Slave Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
M-Bus is a bus system used for the remote reading of gas, water, heat, electricity, etc. It also supports various sensors and actuators. This is a cost-optimized bus for the transfer of energy consumption data since it is made for communication on only two wires. M-Bus can be used in the industry, but also, it’s convenient to be used in private households. By the standard, M-Bus master can read up to 250 slave devices. They can be meters, water, electrical, or gas meters. You can also use M-bus in applications like alarm systems, flexible illumination installations, heating control, etc. It can monitor different consumption meters, and it can monitor any leakage.
One of the biggest advantages of M-Bus are:
M-Bus Slave Click uses the TSS721A, a single chip transceiver developed for Meter-Bus standard (EN1434-3) applications. The connection to the bus is polarity independent and serves as a slave node in the system. M-Bus Slave Click has full galvanic isolation with optocouplers to improve the reliability of the whole circuit. The circuit is supplied by the master via the bus. The benefit of the TSS721A in M-Bus slaves is the reduction of the number of components needed, and therefore the cost of slaves. Apart from the transmission and reception of data by the M-Bus specification, this IC also provides translation from and to the operating voltage of the microprocessor to which it is connected, to be able to communicate with it. The communication can take place at baudrates from 300 to 9600 Baud. Additional features include integrated protection against reversed polarity, a constant 3.3V power supply for the microprocessor, and the prompt indication of failure of the bus voltage.
Type
RS232
Applications
Remote sensor reading, remote control over M-Bus
On-board modules
M-Bus Slave Click uses the TSS721A IC, a single chip transceiver developed for Meter-Bus standard, from Texas Instruments
Key Features
Galvanically isolated, Slave node
Interface
UART
ClickID
No
Compatibility
mikroBUS
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V
This table shows how the pinout on M-Bus Slave Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | -0.3 | 3.3 | 3.5 | V |
M-Bus Voltage Level | -50 | - | 50 | V |
Operating Temperature Range | -55 | - | 85 | °C |
We provide a library for the M-Bus Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions to control M-Bus Slave Click board. Library performs a standard UART interface communication.
Key functions:
void mbus_write_byte ( uint8_t input )
- Write Single Byte.uint8_t mbus_read_byte( void )
- Read Single Byte.uint8_t mbus_byte_ready ( void )
- Check for new byte received.Examples description
The application is composed of three sections :
void application_task ( ) { char tmp; uint8_t drdy_flag; if ( app_mode == APP_MODE_RECEIVER ) { // RECEIVER - UART polling drdy_flag = mbus_byte_ready( ); if ( 1 == drdy_flag ) { tmp = mbus_read_byte( ); mikrobus_logWrite( &tmp, _LOG_BYTE ); } } else { // TRANSMITER - TX each 2 sec for ( tmp = 0; tmp < 9; tmp++ ) { mbus_write_byte( demo_message_data[ tmp ] ); mikrobus_logWrite( " >> MESSAGE SENT <<", _LOG_LINE ); Delay_ms( 100 ); } Delay_ms( 2000 ); } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.