xreef / EByte_LoRa_E220_micropython_library

MicroPython LoRa EBYTE E220 LLCC68 device library complete and tested with Arduino, esp8266, esp32, STM32 and Raspberry Pi Pico (rp2040 boards).
https://www.mischianti.org/category/my-libraries/lora-e220-llcc68-devices/
Other
12 stars 1 forks source link

uart: tout_thresh = 244 > maximum value = 101 #5

Closed manuf3006 closed 2 months ago

manuf3006 commented 2 months ago

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: toutthresh = 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

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

xreef commented 2 months ago

Hi, first try to retrieve the configuration, the message Set configuration: {} Data size not match! say that there is a problem. Bye Renzo

manuf3006 commented 2 months ago

Hey Renzo, Thank you so much for your help. I ran your script 'get_configuration.py' (HERE) and got the following output:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:4728 load:0x40078000,len:14876 ho 0 tail 12 room 4 load:0x40080400,len:3368 entry 0x400805cc E (860) uart: tout_thresh = 244 > maximum value = 101 Initialization: {} Success Retrieve configuration: {} Data size not match!

Traceback (most recent call last): File "main.py", line 39, in File "lora_e220.py", line 245, in print_configuration AttributeError: 'NoneType' object has no attribute '_COMMAND' MicroPython v1.21.0 on 2023-10-05; Generic ESP32 module with ESP32

Thank you again for your Help. Manuel

xreef commented 2 months ago

Hi Manuel, ah, ok, It's a wiring problem, It can't retrieve the data. Bye Renzo

manuf3006 commented 2 months ago

Hey Renzo,

Okay, that is very very strange. I checked the wiring 5 times. I use this Dev Board Pinout HERE I've connected

There is actualy not really much to make wrong. At least I thought so :) Manuel

xreef commented 2 months ago

Hi, Ahh! Okay, you must put 3.3v in M0 and M1. Use this article for reference https://mischianti.org/ebyte-lora-e220-llcc68-device-for-arduino-esp32-or-esp8266-configuration-3/ https://mischianti.org/nodemcu-v3-high-resolution-pinout-and-specs/

Bye Renzo

manuf3006 commented 2 months ago

Hey Renzo, Thank you again for your help. Unfortunately that didn't help either. As I mentioned above, I tried different wiring for M0 and M1. GND, 3.3V and 5V. I'm really stuck here.

BR Manuel

manuf3006 commented 2 months ago

Hey Renzo, i found my problem. I mixed RX and TX. I've connected

But it should be the other way round (RX to TX and viceversa) I still get the uart error, but I get some configuration back:

E (920) uart: tout_thresh = 244 > maximum value = 101 -> Disabled (default)

TransModeWORPeriod : 0b11 -> 2000ms (default) TransModeEnableLBT : 0b0 -> Disabled (default) TransModeEnableRSSI: 0b1 -> Enabled TransModeFixedTrans: 0b1 -> Fixed transmission (first three bytes can be used as high/low address and channel)

Can I ignore the error?