Use your forum account to login.

LOGIN

TOP Contributors

  1. MikroElektronika Team (635 codes)
  2. Shawon Shahryiar (254 codes)
  3. Alcides Ramos Zambrano (153 codes)
  4. Dany (66 codes)
  5. S P (63 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. FOURNET Olivier (25 codes)
  9. Alberto Trasimeni (25 codes)
  10. Roman Toropov (25 codes)

Most Downloaded

  1. Timer Calculator (89118 times)
  2. FAT32 Library (45332 times)
  3. Network Ethernet Library (42546 times)
  4. USB Device Library (33022 times)
  5. Network WiFi Library (30673 times)
  6. FT800 Library (25256 times)
  7. PID Library (20706 times)
  8. GSM click (20693 times)
  9. microSD click - Example (17171 times)
  10. GSM 2 click (13864 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:

Author: MikroElektronika Team

Last Updated: 2018-03-06

Category: Communication

Downloaded: 3366 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

TFT Proto 7in - Example

TFT Proto 7in carries a 800x480 HT050AWV40T TFT screen covered with a 4-wire resistive touchscreen panel. To drive the 262k-color display, there's an SSD1963 graphic controller with a 8/9/16/24-bit MCU interface. The touchpanel is driven by an advanced STMPE811 controller. TFT Proto 7in uses a 3.3V power supply only.

[Learn More]

Flash 2 click

Flash 2 click is a mikroBUS add-on board for adding more Flash Memory to your target board microcontroller. It carries Microchip’s SST26VF064B flash-memory module with 64 Mbits capacity. It’s a highly reliable module with a specified minimum of 100,000 read and write cycles and with over 100 years of Data Retention.

[Learn More]

Charger 5 click

Charger 5 click carries the MCP73113, a single-cell Li-Po/Li-ion battery charge IC from Microchip, along with the digital potentiometer chip labeled as MCP4161, from the same company. This click can be used to easily and securely charge and fast-charge batteries on many different devices that use 3.7V Li-Po/Li-Ion batteries.

[Learn More]