SylvainMontagny / LoRaE5

16 stars 2 forks source link

1. Learn more about LoRaWAN

Savoie Mont Blanc University provides many educationnal ressources about LoRaWAN:

:notebook: One free ebook available here: LoRaWAN for beginners books

:tv: E-learning platform available here: LoRaWAN for beginners videos

:bulb: 2 days training sessions available here: LoRaWAN and IoT Training

2. About this Arduino library

This library has been tested with the following boards:

  1. Legacy Arduino : Leonardo, Uno, Zero, Due.
  2. ESP32 Espressif.
  3. STM32 Nucleo Boards : NUCLEO_F446, NUCLEO_L073, NUCLEO_F411RE, NUCLEO_L433RC-P, NUCLEO_WL55JC1, NUCLEO_G031K8, NUCLEO_F746ZG.
  4. Seeed Studio: Wio Terminal.

:bulb: If you've tested this library with any other boards than the one listed we would be happy to have your feedback :

This Arduino Library communicates with the Grove Wio E5 LoRa-E5. The application configuration is done thanks to a unique file called config_application.h. Here are the possible configuration :

#define Possible values Behavior
REGION EU868 or US915 Region
ACTIVATION_MODE ABP or OTAA Activation Method
CLASS CLASS_A or CLASS_C Class
SPREADING_FACTOR Number [7;12] 7 = SF7, 8 = SF8, ..., 12 = SF12
ADAPTIVE_DR true or false Enable Adaptive Data Rate (if true)
CONFIRMED true or false Frame Confirmed (if true) OR Frame Unconfirmed (if false)
PORT_UP Number [0;255] Application Port number
SEND_BY_PUSH_BUTTON true or false Sending method (Time or Push Button)
FRAME_DELAY Time (ms) Time between 2 frames (Minimum 7000)

The board configuration is done thanks to a unique file called config_board.h. The default configuration is:

2.1. Arduino IDE Installation

2.2. Arduino Hardware

This library works with any boards with two serial ports (or one USB + one Serial).

2.3. How to use this library

2.4. How to add sensors

2.5. Best practices