Use your forum account to login.

LOGIN

TOP Contributors

  1. MikroElektronika Team (735 codes)
  2. Shawon Shahryiar (262 codes)
  3. Alcides Ramos Zambrano (170 codes)
  4. S P (67 codes)
  5. Dany (66 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. Armstrong Subero (26 codes)
  9. Roman Toropov (26 codes)
  10. FOURNET Olivier (25 codes)

Most Downloaded

  1. Timer Calculator (94307 times)
  2. FAT32 Library (49349 times)
  3. Network Ethernet Library (44577 times)
  4. USB Device Library (34720 times)
  5. Network WiFi Library (31934 times)
  6. FT800 Library (27705 times)
  7. GSM click (21625 times)
  8. PID Library (21443 times)
  9. microSD click - Example (17686 times)
  10. GSM 2 click (14645 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

LoRa click

Rating:

12

Author: MikroElektronika Team

Last Updated: 2018-03-06

Category: Communication

Downloaded: 4026 times

Followed by: 32 users

LoRa click is a LoRa RF technology based SRD transceiver, which operates at a sub-gigahertz frequency of 433/868MHz. The main active element of the LoRa click the RN2483, low-power long range LoRa technology transceiver module, from Microchip. It features the Class A LoRaWAN compliant stack, optimized for a robust LoRaWAN networking.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "LoRa click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "LoRa click" changes.

Do you want to report abuse regarding "LoRa click".

  • Information
  • Comments (6)
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

LoRa click

LoRa click

Native view of the LoRa click board.

View full image
LoRa click

LoRa click

LoRa click front and back view.

View full image

Library Description

The library covers all functionalities of the Click board through simplified API calls.

Key functions:

  • uint8_t lora_tx( char *buffer ) - Transmit function, sends the message provided using the buffer.
  • uint8_t lora_rx(char* window_size, char *response) - Receive function, provides a message using the response buffer.
  • void lora_process() - The library state machine must be placed inside an infinite loop.

Examples Description

The application is composed of three sections:

  • System Initialization - Initializes the UART module and CS pin, RST pin as output and INT pin as an input.
  • Application Initialization - Initializes the driver and the LoRa module found on Click board.
  • Application Task - (code snippet) - Can be used as a receiver or a transmitter. It is necessary to uncomment the appropriate part of the code. The transmitter sends one by one byte, each second, while the receiver receives the message using continuous mode and logs the received data on UART.
void applicationTask()
{
 lora_process();

// RECEIVER
 rxState = lora_rx( 0, &tmp_txt[0]);

 if (rxState == 0)
 {
 _data = xtoi(&tmp_txt[11]);
 mikrobus_logWrite( &_data,_LOG_BYTE);
 mikrobus_logWrite( " ",_LOG_LINE);
 }

// TRANSMITER
 for (cnt = 0; cnt < 7; cnt++)
 {
 send_data = sendMessage[cnt];
 IntToHex(send_data,sendHex);
 txState = lora_tx( &sendHex[0] );

 if (txState == 0)
 {
 mikrobus_logWrite( " Response : ",_LOG_TEXT );
 mikrobus_logWrite( tmp_txt,_LOG_LINE );
 }
 Delay_1sec();
 }
}

Other mikroE Libraries used in the example:

  • UART
  • Conversions

Additional notes and information

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

Thumbwheel click

15

Thumbwheel click is a mikroBUS add-on board with a 10-position rotary sprocket connected to a 1-Wire 8-Channel Addressable Switch.

[Learn More]

Current 2 click

8

The Current 2 click is an accurate current sensing Click board suitable for a very accurate measurement of the current through the load. It utilizes the high-side current sensing approach, which has a few advantages over the low-side current sensing.

[Learn More]

TILT-n-SHAKE click

5

TILT-n-SHAKE click carries Freescale’s MMA8491Q IC. It’s a multifunctional 3-axis digital accelerometer that can also be configured as a 45-degree Tilt sensor. As an accelerometer, it communicates with the target MCU through mikroBUS™ I2C pins (SCL, SDA).

[Learn More]