Coder Social home page Coder Social logo

xreef / ebyte_lora_e220_micropython_library Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 4.34 MB

MicroPython LoRa EBYTE E220 LLCC68 device library complete and tested with Arduino, esp8266, esp32, STM32 and Raspberry Pi Pico (rp2040 boards).

Home Page: https://www.mischianti.org/category/my-libraries/lora-e220-llcc68-devices/

License: Other

Python 100.00%
arduino arduino-samd-boards e220 ebyte esp32 esp8266 llcc68 lora micropython pico python radio raspberry raspberry-pi rp2040 stm32 uart

ebyte_lora_e220_micropython_library's Introduction

 

Renzo Mischianti

www.mischianti.org

 
Maintaining a repository (or site or forum) is a lot like tending to a garden - it requires constant care and attention to keep it thriving. If you're a skilled gardener (or coder!) and want to help keep our repository blooming, we'd love to have you on board! We're also looking for talented writers and forum moderators to help us grow our community. Interested in joining our team? Don't hesitate to reach out and let us know how you can contribute!
 

 
 

ebyte_lora_e220_micropython_library's People

Contributors

xreef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bugu

ebyte_lora_e220_micropython_library's Issues

Data size no match with Raspberry Pi pico

Hello,

I have connected the E220-900T22D module to the Raspberry Pi pico as follows:
Pico ----- E220
1 -------- 4 (TxD)
2 -------- 3 (RxD)
15 ------- 5 (AUX)
21 ------- 1 (M0)
19 ------- 2 (M1)

I use the UART0 on the Pico (pin 1 and 2). I have also connected a 4.7kOhm pull-up resistor to each of TxD, RxD and AUX.

Unfortunately, I always get the following message:

Initialisation: {} Success
Retrieve configuration: {} Data size not match!

Traceback (most recent call last):
File "", line 29, in
File "/lib/LoraWanE220/lora_e220.py", line 245, in print_configuration
AttributeError: 'NoneType' object has no attribute '_COMMAND'

What could be the reason?

best regards
Woto

How do 3 ebytes work together?

Hello, I need to use 3 ebytes for a project and 1 ebyte must communicate with all of them. Also, the data needs to go every 1 second. We communicated 2 ebytes with a loop, but it worked very slowly and we could not add the 3rd ebyte. Thanks in advance.

uart: tout_thresh = 244 > maximum value = 101

Hey everyone,

I am trying to set up a communication between two esp32 (WROOM-32) with a EBYTE E220-900T22D.
The ESP is flashed with Micropython 1.21.0 (I also tried 1.22.0) and I did the wiring as described by xreef.

Until now I wasn't able to set up any communication.
Currently I get the following error (sender and receiver):

uart: tout_thresh = 244 > maximum value = 101
Initialization: {} Success
Set configuration: {} Data size not match!
Send message: {} Success

Even though it tells me 'Success', no message is received at the other ESP.
I'm using the two examples

  • send_fixed_string_message.py
  • receive_string_message.py

I'm really hoping someone can help me here.
Thanks
M

Save mode returned not recognized!

Hi!, I'm testing the library with a RP2040 and a E220900T22D, seems like something went wrong using get_configuration()

DEBUG  MODE NORMAL!
  DEBUG  AUX HIGH!
  DEBUG  Complete!
Initialization: {} Success
  DEBUG  check_UART_configuration: 1
  DEBUG  MODE PROGRAM!
  DEBUG  AUX HIGH!
  DEBUG  Complete!
  DEBUG  set_mode: 1
  DEBUG  data: b'\x00\x00\xc1\x00\x08\x01\x02b\x00\x01\x03\x00\x00\x00'
  DEBUG  data len: 14
  DEBUG  model: 900T22D
  DEBUG  MODE NORMAL!
  DEBUG  AUX HIGH!
  DEBUG  Complete!
Retrieve configuration: {} Save mode returned not recognized!
----------------------------------------
HEAD :  0x0   0x0   0xc1

AddH :  0x0
AddL :  0x8

Chan :  98  ->  948

SpeedParityBit :  0b0  ->  8N1 (Default)
SpeedUARTDatte :  0b0  ->  1200bps
SpeedAirDataRate :  0b1  ->  2.4kbps

OptionSubPacketSett:  0b0  ->  200bytes (default)
OptionTranPower :  0b10  ->  13dBm
OptionRSSIAmbientNo:  0b0  ->  Disabled (default)

TransModeWORPeriod :  0b0  ->  500ms
TransModeEnableLBT :  0b0  ->  Disabled (default)
TransModeEnableRSSI:  0b0  ->  Disabled (default)
TransModeFixedTrans:  0b0  ->  Transparent transmission (default)
----------------------------------------

with this code

from machine import Pin
from time import sleep

from lora_e220 import LoRaE220, print_configuration, Configuration
from lora_e220 import logger
from lora_e220_operation_constant import ResponseStatusCode
from machine import UART

# Init Lora
# https://github.com/xreef/EByte_LoRa_E220_micropython_library
uart1 = UART(1)
lora = LoRaE220('900T22D', uart1, aux_pin=7, m0_pin=2, m1_pin=3)
logger.enable_debug = True

code = lora.begin()
print("Initialization: {}", ResponseStatusCode.get_description(code))

# read config
code, configuration = lora.get_configuration()
print("Retrieve configuration: {}", ResponseStatusCode.get_description(code))
print_configuration(configuration)

Am I doing something wrong?

Data size not match...

Hello everyone, I'm using this library to employ several Lora devices, in this case the e220-400t22d.

However in several raspberry pico's, such as raspberry Pico x8, waveshare rp2040 plus X2 and even using the Raspberry Pi 3b X1 with the developed library.

In the function getconfiguration of your examples get the error:

Data size not match.

I'll appreciate if anyone had any idea to solve this issue.

In advance rhanks

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.