Skip to content

Using the driver provided by freemodbus and SX1278, a communication protocol with LoRa as the physical layer and Modbus as the protocol layer was built.

Notifications You must be signed in to change notification settings

sage-xiong/lora_based_modbus_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Introduction

Based the Freemodbus Client and the drivers of SX1278.

Files Tree

examples
modbus  ---->  freemodbus source
    port  ---->  freemodbus source interface
radio  ---->  sx1278 Drivers
    sx1276-Hal.c  ---->  Hardware Interface
    sx1276-Hal.h  ---->  Hardware Interface Config file
tranceive  ----> Lora transceiver

How To Use

Hardware Interface

You should modify the sx1276-HAL.h and sx1276-HAL.c files accroding to use chips.

I've already modifed accroding to my STM32F103.

When using, you need to implement platform.h and platform.c files by yourself to complete the functions of initializing the chip pins and the SPI module used, capturing the input of specific pins, etc., please refer to the comments in the sx1276-Hal.c file for details.

Modbus Register

When using FreeModbus, you need to write callback functions with relevant instructions to achieve direct operation of different function codes. For more detailed information, please refer to the official freemodbus routine.

About

Using the driver provided by freemodbus and SX1278, a communication protocol with LoRa as the physical layer and Modbus as the protocol layer was built.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages