NOTE: The 32001353 module is certified for European region.
How does it work?
LR 4 Click as its foundation uses the 32001353, a low-power long-range RF technology-based transceiver module from Mipot. It offers a long-range spread spectrum communication with high interference immunity. The network is implemented as a star topology, where endpoints work in duty cycle mode, significantly reducing the overall power consumption. This Click board™ features an embedded LoRaWAN Class A and Class C compliant stack offering an easy and reliable solution for developing low-power, highly integrated IoT networks, security systems, alarm networks, and similar applications that require simple and reliable networking solutions.
To join a LoRaWAN network, the 32001353 requires a LoRaWAN concentrator/gateway. The endpoint device has to use a unique endpoint address, an application session key, and a network session key. The first method is called over-the-air activation (OTAA), where these keys are issued after a specific join procedure. The second method is to assign these keys manually, using UART commands. This method is called activation by personalization (ABP) and can be prone to some security issues. In any case, before an end-device can communicate on the LoRaWAN network, it must be activated.
LR 4 Click communicates with MCU using the UART interface with commonly used UART RX and TX pins at data rates up to 115200bps for the data transfer. In addition to these features, the 32001353 also uses several GPIO pins connected to the mikroBUS™ socket. The WK pin routed on the CS pin of the mikroBUS™ represents the Wake-up function used for waking up the device, while the RST pin on the mikroBUS™ socket can perform Hardware Reset function by putting this pin in a logic low state. This Click board™ also has an indicator routed on the INT pin of the mikroBUS ™ socket, which will provide the user with feedback after a successfully received package and verified checksum.
LR 4 Click features the SMA antenna connector with an impedance of 50Ω, so it can be equipped with the appropriate 868MHz compliant antenna that Mikroe has in its offer.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. A proper logic voltage level conversion is performed by the TXB0106 voltage level shifter, while the LDO ensures that recommended values power the module. This allows for both 3.3V and 5V capable MCUs to use the UART communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
LoRa,Sub-1 GHz Transceievers
Applications
Can be used for developing highly integrated long-range IoT networks, security systems, alarm networks, and similar applications that require simple and reliable networking solutions.
On-board modules
32001353 – low-power long-range RF technology-based transceiver module from Mipot
Radio Region
Europe
Key Features
Low power consumption, RF technology based wireless networking, LoraWAN protocol, easy to use UART interface, and more.
Interface
UART
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on LR 4 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
LR 4 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Operating Frequency Range | 863 | 868 | 870 | MHz |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the LR 4 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
Library Description
This library contains API for LR 4 Click driver.
Key functions:
void lr4_cfg_setup ( lr4_cfg_t *cfg );
– Config Object Initialization function.LR4_RETVAL lr4_init ( lr4_t *ctx, lr4_cfg_t *cfg );
– Initialization function.
Examples description
This example reads and processes data from LR 4 clicks.
The demo application is composed of two sections :
void application_task ( void ) { log_printf( &logger, "Get Activation Status!rn" ); uint8_t status = lr4_get_status( &lr4, LR4_GET_ACTIVATION_MODE ); log_printf( &logger, "Status: " ); switch ( status ) { case LR4_STATUS_NOT_ACTIVATED : { log_printf( &logger, "Not activated.rn" ); break; } case LR4_STATUS_JOINING : { log_printf( &logger, "Joining...rn" ); break; } case LR4_STATUS_JOINED : { log_printf( &logger, "Joined.rn" ); break; } case LR4_STATUS_MAC_ERROR : { log_printf( &logger, "MAC ERROR.rn" ); break; } default : { break; } } log_printf( &logger, "------------------------rn" ); Delay_ms( 1000 ); log_printf( &logger, "Get Session Status!rn" ); status = lr4_get_status( &lr4, LR4_GET_SESSION_STATUS_MODE ); log_printf( &logger, "Status: " ); switch ( status ) { case LR4_STATUS_IDLE : { log_printf( &logger, "Idle.rn" ); break; } case LR4_STATUS_BUSY : { log_printf( &logger, "Busy (LR session running).rn" ); break; } case LR4_STATUS_DEV_NOT_ACTIVATED : { log_printf( &logger, "Device not activated.rn" ); break; } case LR4_STATUS_DELAYED : { log_printf( &logger, "Delayed (LR session paused due to Duty-cycle).rn" ); break; } default : { break; } } log_printf( &logger, "------------------------rn" ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LR4
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.
mikroSDK
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.