Giter Site home page Giter Site logo

ebyte-lora-e22-serial's Introduction

Ebyte E22 Serial T serie ๐Ÿ“

This library has been created to faciliate the communication between an MCU and the Ebyte E22 serial module. The code has been developped and tested with the Ebyte E22-900-T22 serie and an ESP32.

Change Log

Version 1.0:

  • The communication with the module is fully functional and tested.
  • The wake up over the air mode (WOR) has not been tested.
  • The wireless configuration is not complete yet.

Get Started ๐Ÿš€

Install the library ๐Ÿ“˜ from PlatformIO and connect the Ebyte module to your MCU.

You need to have two hardware serial ports, one for the communiation with the Ebyte module and one for debugging, optional.

  • one interrupt capable GPIO pin to read the Aux from the Ebyte module.
  • two output GPIO pin to control M0 & M1.

The source code also use FreeRTOS.

Usage

Include the library and declare the class by providing the reference to the hardware serial and the pin connected to Aux, M0 and M1.

#include <LoRaEbyteSerial.h>

LoRa_Ebyte_Serial lora(&Serial1, 27, 33, 34);

Initialize the module:

lora.Init();

Use SendMessage and ReceiveMessage to send and receive the payload over LoRa.

To apply any configuration change to the module, you have to use the function CommitChange() such like:

lora.SetTransmittingPower(E22_TransmissionPower::POWER_10);
lora.SetChannel(9);
lora.CommitChanges();

Comments โœ

I do not recommend to change the communication baud rate as it seems to be badly managed by the module. After such a change, it is often not possible to switch to the configuration mode which has a fixed 9600 bps communication speed.

ebyte-lora-e22-serial's People

Contributors

tintin4000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.