Home › Forums › The libraries hosted on the site › EByte LoRa e220 UART devices LLCC68 › MicroPython EByte E220: Data size not match!
Tagged: ebyte, esp32, lora, micropython
- This topic has 5 replies, 2 voices, and was last updated 2 years, 2 months ago by
Renzo Mischianti.
-
AuthorPosts
-
-
18 April 2023 at 06:18 #25351
Hello,
Something similar happens to me:>>> %Run -c $EDITOR_CONTENT
Initialization: {} Success
Retrieve configuration: {} Data size not match!
—————————————-
Traceback (most recent call last):
File “<stdin>”, line 17, in <module>
File “/lib/lora_e220.py”, line 245, in print_configuration
AttributeError: ‘NoneType’ object has no attribute ‘_COMMAND’I wire everithing as you say and import the modules and use the get configuration program
How can i fix this?
-
18 April 2023 at 07:54 #25354
Hi xwingmll,
when the device return data size does not match It’s a high probability that you wrong set M0 and M1 pins, or power supply issues.
Bye Renzo -
18 April 2023 at 10:41 #25357
Hi Renzo,
I have an E220-900T220 with ESP32-WROOM-32.
I had to modify line 330 module lora_E220 because I was getting an error from Invalid model
class LoRaE220:
# now the constructor that receive directly the UART object
def __init__(self, model, uart, aux_pin=None, m0_pin=None, m1_pin=None,
uart_baudrate=SerialUARTBaudRate.BPS_RATE_9600):
self.uart = uart
self.model = modelpattern = ‘^(400|433|868|900|915|170)(T|R|S|M)(22|27|30)(S|D|C)?..?(\\d)?$’
Now I get the data size error, see image
Attachments:
You must be logged in to view attached files. -
18 April 2023 at 12:31 #25360
Sorry,
I fixed the regular expression, and I re-tested the library with an esp32 devkit v1 and It’s works correctly, I can reproduce your error by putting an AUX pin or M0 M1 pin wrong
Check the wiring or power supply.
Bye Renzo -
19 April 2023 at 05:20 #25368
In the end, keeping the same wiring, I formatted the ESP32 and reinstalled the firmware and it worked fine.
Thank you for responding so quickly and for your work. It’s a very good job, congratulations
-
19 April 2023 at 08:47 #25380
Hi xwingmll,
hehehehe.. sometimes the solution is to power off and power on.
Thanks, sorry for the issue I insert, but It’s a work in progress.
Please keep in touch if you find some other problem.
Bye Renzo
-
-
AuthorPosts
- You must be logged in to reply to this topic.