Skip to content

SSU-NC/toiot-lora-sensor-node-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 

Repository files navigation

toiot-lora-sensor-node-driver

Things to know before you begin.

For LoRa and LoRaWAN information, check this repo:
https://github.com/gjlee0802/LoRaWAN-Study

Getting Started with LoRa

  1. Use the Arduino Library Manager to install the RadioHead, AESLib library if you want to use ToIoTwithLoRa.
  2. Download ToIoTwithLoRaor ToIoTwithLoRaWAN and put it in the Arduino/libraries folder.
  3. Fill in the contents of config.h and put it in the sketch folder. You can set this application through this file.
  4. Write the main source code like example

Connection

  • For Arduino:
    Connect SX1278 with arduino as shown as below.
    Transmitting-Side-Connecting-LoRa-SX1278-with-Arduino-UNO LoRa_with_UNO
  • For NodeMCU SENDER:
    Connect SX1278 with NodeMCU as shown as below.
    LoRa_with_NodeMCU

Install follow dependecies to start ToIoTwithLoRa (not for LoRaWAN)

LoRa Packet Information

If you use ToIoTwithLoRa (RF95 Packet format)

All messages sent and received by this RH_RF95 Driver conform to this packet format:

  • LoRa mode:
  • 8 symbol PREAMBLE
  • Explicit header with header CRC (default CCITT, handled internally by the radio)
  • 4 octets HEADER: (TO, FROM, ID, FLAGS)
  • 0 to 251 octets DATA
  • CRC (default CCITT, handled internally by the radio)

If you use ToIoTwithLoRaWAN

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published