TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136552 times)
  2. FAT32 Library (69755 times)
  3. Network Ethernet Library (55853 times)
  4. USB Device Library (46193 times)
  5. Network WiFi Library (41813 times)
  6. FT800 Library (41008 times)
  7. GSM click (28930 times)
  8. PID Library (26386 times)
  9. mikroSDK (26296 times)
  10. microSD click (25304 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

M-BUS Master click

Rating:

5

Author: MIKROE

Last Updated: 2019-12-26

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: RS232

Downloaded: 2826 times

Not followed.

License: MIT license  

The M-Bus Master is a Click board is complete solution for a master node in M-Bus networks. The M-Bus (&amp;quot;Meter-Bus&amp;quot;) is a new European standard for remote reading of heat meters and it is also usable for all other types of consumption meters as well as for various sensors and actuators.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "M-BUS Master click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "M-BUS Master click" changes.

Do you want to report abuse regarding "M-BUS Master click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

M-Bus Master

M-Bus Master

Native view of the M-Bus Master click board.

View full image
M-Bus Master

M-Bus Master

Front and back view of the M-Bus Master click board.

View full image

Library Description

Initializes and defines UART bus driver, and defines driver's functions for writing data on the M-BUS terminal.

Key functions:

  • void mbusmaster_write_byte ( uint8_t input ) - Write one byte data

Examples description

The application is composed of three sections :

  • System Initialization - Initializes UART module
  • Application Initialization - Initializes driver init
  • Application Task - Sends a message [MikroE] to the M-BUS connector every 2 seconds.
void application_task ( )
{
    char tmp;

    for ( tmp = 0; tmp < 9; tmp++ )
    {
        mbusmaster_write_byte( demo_message_data[ tmp ] );
    }
    
    mikrobus_logWrite( ">> MESSAGE SENT <<", _LOG_LINE );
    Delay_ms(2000);
}


Note - M-Bus master communication works at 36v. - This click acts only as 'master', therefore it must be connected to appropriate 'slave'.

Other mikroE Libraries used in the example:

  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

RTC for STM32F2xx/3xx/4xx

7

RTC package for STM32F2xx/3xx/4xx mcus. In the package you can find source for library and example how to use RTC with alarms. Library and example written by Nikola Markovic from our Intern's lab.

[Learn More]

MIC24045 click

0

MIC24045 click carries MIC24045 I2C-programmable, high-efficiency, wide input range, 5A synchronous step-down regulator from Microchip.

[Learn More]

GNSS 13 click

0

GNSS 13 Click is a compact add-on board that provides positioning, navigation, and timing services. This board features the LG77LICMD, a global-region standard-precision GNSS module from Quectel Wireless Solutions. This module utilizes concurrent reception of up to three GNSS systems (GPS, GLONASS (or BeiDou), and Galileo), maximizing position availability, especially under challenging conditions such as deep urban canyons. By combining EASY™ (Embedded Assist System), an advanced AGNSS feature, with GLP (GNSS Low Power), a low-power mode, the LG77LICMD module achieves high performance, low power consumption, and fully meets industrial standards. It also has a configurable host interface, anti-jamming technology, and a multi-tone active interference canceller.

[Learn More]