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 (136546 times)
  2. FAT32 Library (69740 times)
  3. Network Ethernet Library (55845 times)
  4. USB Device Library (46184 times)
  5. Network WiFi Library (41803 times)
  6. FT800 Library (40991 times)
  7. GSM click (28926 times)
  8. PID Library (26385 times)
  9. mikroSDK (26287 times)
  10. microSD click (25300 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 RF 4 click

Rating:

5

Author: MIKROE

Last Updated: 2019-10-14

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 2968 times

Not followed.

License: MIT license  

M-BUS RF 4 Click is a mikroBUS add-on board with a MIPOT 32001324 RF wireless transceiver. This module operates in the 868 MHz SRD Band.

No Abuse Reported

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

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

Do you want to report abuse regarding "M-BUS RF 4 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 RF 4 click

M-BUS RF 4 click

Native view of the M-BUS RF 4 click board.

View full image

Library Description

The library provides the functions of sending commands and receiving data using UART communication. For additional commands and their form - and the number of parameters to be sent, look at the datasheet.

Key functions:

  • void mbusrf4_sendCommand( uint8_t command, uint8_t length, uint8_t *payloadBuff) - Send command - UART communication
  • void mbusrf4_setCommunicationMode(uint8_t mode) - Set communication SPI/UART

Examples description

The application is composed of three sections :

  • System Initialization - Initializes UART Module and sets all the necessary GPIO pins
  • Application Initialization - Initializes driver init, reads basic information and checks communication
  • Application Task - In the RX mode it is waiting to receive data from another module... - In the TX mode sends the data packet....
  • The interrupt routine must be adapted to each separate board MCU card
  • it serves to receive all the data that arrives on the module
void applicationTask()
{
    /* RX App mode */
    if(fDataResp == 1 && _appMode == _MBUSRF4_USER_APP_RX_MODE)
    {
       mikrobus_logWrite ( " ----- NEW - RX DATA ---- ", _LOG_LINE );
       _display_rxBuffer( 20 );
       mikrobus_logWrite ( " ------------------------ ", _LOG_LINE );
       fDataResp = 0;
    }
    
    /* TX App Mode */
    if(_appMode == _MBUSRF4_USER_APP_TX_MODE)
    {
        mbusrf4_sendCommand( _MBUSRF4_CMD_TX_MSG, 18, &txBuffer[0] );
        mikrobus_logWrite ( " --- SEND - TX BUFFER --- ", _LOG_LINE );
        _display_rxBuffer( 5 );
        mikrobus_logWrite ( " ------------------------ ", _LOG_LINE );
        
        Delay_ms( 1500 );
    }
}

Additional Functions :

  • void _display_rxBuffer(uint8_t nBytes) - logs the received data
  • UART Interrupt functions

Other mikroE Libraries used in the example:

  • UART
  • Conversions
  • String

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

8x8 R click

5

8x8 clicks are 8x8 LED matrix displays in form of add-on boards in mikroBUS form factor. Boards feature MAX7219 8-digit LED display driver module as well as 64 LED diodes.

[Learn More]

Remote Weather Station with ClickCloud platform

0

The most popular topic with which we all start the day is the weather. You can measure temperature, humidity, ambient lighting and UV and IR indexes in real time, easily, with our Weather Station Kit. Access this data remotely by adding our G2C click–a reliable connection to the Click Cloud platform, a cloud-based rapid prototyping environment.

[Learn More]

Thermo K click

0

THERMO K click carries the MCP9600 IC from Microchip. Depending on the type of probe it uses the click can measure temperatures from −200 °C to +1372 °C.

[Learn More]