Page 1 of 2
M-BUS RF click
From MikroElektonika Documentation
M-BUS RF click is a mikroBUS™ add-on board with a Telit ME70-169 RF wireless module. The radio
operates at the unlicensed ISM frequency band between 169.400 and 169.475 MHz. The device is
compliant with EN13757 part 4 2013.
M-BUS RF click
Features and usage notes
The module has specified serial data rates of up to
115.2 Kbps and radio data rates of 2.4, 4.8 and 19.2
kbps. For security, the wireless signal has AES and
NRZ encryption. Output power is from 125 mW to
631 mV (28dBm). According to the vendor’s data
sheet, the module has wireless range of up to 20 km
(an external antenna is required).
Short for Meter-Bus, this protocol was designed for
remote reading of gas or electricity meters in Europe,
but it’s also suitable for alarm systems, illumination
installations, heating control and more.
Schematic also available in PDF (http://cdndocs.mikroe.com/images/9/93/M-BUS_RF_click_sch
Devices that communicate with wireless M-Bus
modules are classified as either meters or ‘other‘
devices. There is a total of six different M-Bus
modes:
◾
◾
◾
◾
◾
◾
Mode S ‘Stationary
Mode T ‘frequent Transmit
Mode R2 ‘frequent Receive
Mode C ‘Compact
Mode N ‘Narrowband VHF
Mode F ‘Frequent receive and transmit
M-BUS RF click
IC/Module ME 70-169
(http://www.lte.com.tr/uploads/pdf/410.pdf)
Interface
CTS, TX, RX, RESET, RTS
Power
3.3V
supply
Website
www.mikroe.com/click/m-bus-rf
(http://www.mikroe.com/click/m-bus-rf)
The working of all six modes is explained in detail in the learn.mikroe.com article on M-Bus.
Telit also provides a M-Bus (http://www.telit.com/fileadmin/user_upload/products/Downloads/sr-rf/me70169/Telit_Wireless_M-bus_2013_Part4_User_Guide_r13.pdf) guide which provides an Learn article explaining the MikroElektronika M-BUS library overview
of the standard (http://learn.mikroe.com/wireless-m-bus/).
M-BUS RF click communicates with the target MCU through the mikroBUS™ UART interface, with additional functionality provided by RESET, RTS, and
CTS pins. The board is designed to use a 3.3 power supply only.
Programming
This example sets the M-Bus up for transmitting some data with a length field activated.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include
#include
#include
#include
"mbus_hw.h"
sbit MBUS_RST
sbit MBUS_RTS
sbit MBUS_CTS
at GPIOC_ODR.B2;
at GPIOD_ODR.B13;
at GPIOD_ODR.B10;
bool my_receive_flag = false;
//Extern for knowing when packet is received from another M-Bus RF click
void system_setup( void );
void main()
{
//Local Declarations
transmit_frame_t *transmit_frame;
// Malloc space for the Transmit Frame
MM_Init();
transmit_frame = Malloc( sizeof( transmit_frame_t ) );
// Setup GPIOs, communication pins, interrupts, e.t.c.
system_setup();
//Initialize Conifguration Mode
UART1_Write_Text( "Entering Config Mode\r\n" );
mbus_at_init();
// Set MBUS Mode
UART1_Write_Text( "Setting MBUS Mode\r\n" );
check_status( mbus_set_mbus_mode( ROLE_N1_METER ) );
// Set RX / TX formats
check_status( mbus_set_serial_tx_format( LENGTH_TX ) );
// TX Format must have Length.. so that sending / receiving works properly
Page 2 of 2
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//Sending some data...
UART1_Write_Text( "\r\n\r\n Sending Frame Of Data...\r\n\r\n" );
// Set OP Mode
check_status( mbus_op_init() );
//Send Frame
sprintf( transmit_frame->data_field, "My Name is Engineer and I am %d Years Old.", 22 );
transmit_frame->length_field = strlen( transmit_frame->data_field );
mbus_send_frame( transmit_frame, 1 );
/**< Using length field for TX format, so not length needed */
}
while ( 1 );
void system_setup( void )
{
GPIO_Digital_Output( &GPIOC_BASE, _GPIO_PINMASK_2
}
);
/**< Reset pin Output */
UART1_Init_Advanced( 9600, _UART_8_BIT_DATA,
_UART_NOPARITY,
_UART_ONE_STOPBIT,
&_GPIO_MODULE_USART1_PA9_10 );
Delay_ms(300);
/**< UART for Terminal */
UART3_Init_Advanced( 19200, _UART_8_BIT_DATA,
_UART_NOPARITY,
_UART_ONE_STOPBIT,
&_GPIO_MODULE_USART3_PD89);
Delay_ms(300);
/**< UART for MBus */
mbus_init();
Delay_ms(300);
/**< Initialize MBus HAL Layer */
RXNEIE_USART3_CR1_bit = 1;
NVIC_IntEnable( IVT_INT_USART3 );
EnableInterrupts();
void LO_RX_ISR() iv IVT_INT_USART3 ics ICS_AUTO
{
mbus_rx_isr( USART3_DR );
}
Code examples that demonstrate the usage of TK click with MikroElektronika hardware, written for mikroC for ARM, AVR, dsPIC, FT90x, PIC and PIC32 are
available on Libstock (http://libstock.mikroe.com/projects/view/1902/m-bus-click).
Resources
- Vendor’s data sheet (http://www.telit.com/fileadmin/user_upload/products/Downloads/sr-rf/me70-169/Telit_ME70-169_Datasheet.pdf)
- Vendor’s User guide (http://www.telit.com/fileadmin/user_upload/products/Downloads/sr-rf/me70-169/Telit_ME70_169_RF_module_User_Guide_r4.pdf)
- M-BUS library hosted on Libstock (http://libstock.mikroe.com/projects/view/1902/m-bus-click)
- Learn article explaining the MikroElektronika M-BUS library (http://learn.mikroe.com/wireless-m-bus/)
- mikroBUS™ standard specifications (http://download.mikroe.com/documents/standards/mikrobus/mikrobus-standard-specification-v200.pdf)
http://docs.mikroe.com/M-BUS_RF_click
9/15/2016
很抱歉,暂时无法提供与“MIKROE-2048”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+323.37007
- 4+310.37993