lr
2.0.0.0
|
LR Click is a compact add-on board that contains a low-power, long-range transceiver. This board features the RN2483, RF technology-based SRD transceiver, which operates at a frequency of 433/868MHz from Microchip Technology.
We provide a library for the LR 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.
This library contains API for LR Click driver.
void lr_cfg_setup ( lr_cfg_t *cfg );
void lr_default_cfg ( lr_t *ctx, bool cb_default, void ( *response_p )( char *response ) );
void lr_cmd ( lr_t *ctx, char *cmd, char *response );
uint8_t lr_rx ( lr_t *ctx, char *window_size, char *response );
uint8_t lr_tx ( lr_t *ctx, char *buffer );
This example reads and processes data from LR clicks.
The demo application is composed of two sections :
Initializes driver init and LR init.
Transmitter mode - sends one by one byte sequence of the desired message each second and checks if it is sent successfully. Receiver mode - displays all the received characters on USB UART.
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:
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.