MicroPython EByte E220: Data size not match!

Home Forums The libraries hosted on the site EByte LoRa e220 UART devices LLCC68 MicroPython EByte E220: Data size not match!

Viewing 5 reply threads
  • Author
    Posts
    • #25351
      xwingmll
      Participant

        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?

      • #25354
        Renzo Mischianti
        Keymaster

          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

        • #25357
          xwingmll
          Participant

            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 = model

            pattern = ‘^(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

          • #25360
            Renzo Mischianti
            Keymaster

              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

            • #25368
              xwingmll
              Participant

                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

              • #25380
                Renzo Mischianti
                Keymaster

                  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

              Viewing 5 reply threads
              • You must be logged in to reply to this topic.
              Exit mobile version