E220-900T22D Data Size not match!

Home Forums The libraries hosted on the site EByte LoRa e220 UART devices LLCC68 E220-900T22D Data Size not match!

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #25284
      Giuseppe
      Participant

        Hi Renzo first of all thanks for you excellent and hard work.
        i am having problems with a esp32 and a E220-900T22D, i get this serial outoput when i run your example “get configuration”(first screenshot) and when i run the set parameters i get the second screenshot.

      • #25288
        Renzo Mischianti
        Keymaster

          Hi Giuseppe,
          Data size not matching can be caused by wrong M0 M1 wiring or low power supply.
          Bye Renzo

          • #31923
            simone
            Participant

              Hi, I have the same problem. Data size does not match! I think the wiring is correct

            • #31926
              simone
              Participant

                i miei componenti sono
                LoRa 868 MHz 915 MHz LLCC68 Modulo wireless 22 dBm Lungo raggio 5 km CDEBYTE E220-900T22D SMA-K UART RSSI Trasmettitore Ricevitore DIP
                e
                RP2040
                sto usando la libreia E220
                ed ho modificato il codice LoRa_E220 e220ttl(&Serial2, 1, 10, 11); // RX AUX M0 M1 perche rp e diverso da quello originale

                • This reply was modified 10 months ago by simone.
              • #31925
                simone
                Participant

                  /*
                  * LoRa E220
                  * Get configuration.
                  * You must uncommend the correct constructor.
                  *
                  * by Renzo Mischianti <https://www.mischianti.org&gt;
                  *
                  * https://www.mischianti.org
                  *
                  * E220 —– WeMos D1 mini —– esp32 —– Arduino Nano 33 IoT —– Arduino MKR —– Raspberry Pi Pico —– stm32 —– ArduinoUNO
                  * M0 —– D7 (or 3.3v) —– 19 (or 3.3v) —– 4 (or 3.3v) —– 2 (or 3.3v) —– 10 (or 3.3v) —– PB0 (or 3.3v) —– 7 Volt div (or 3.3v)
                  * M1 —– D6 (or 3.3v) —– 21 (or 3.3v) —– 6 (or 3.3v) —– 4 (or 3.3v) —– 11 (or 3.3v) —– PB10 (or 3.3v) —– 6 Volt div (or 3.3v)
                  * TX —– D3 (PullUP) —– TX2 (PullUP) —– TX1 (PullUP) —– 14 (PullUP) —– 7 (PullUP) —– PA2 TX2 (PullUP) —– 4 (PullUP)
                  * RX —– D4 (PullUP) —– RX2 (PullUP) —– RX1 (PullUP) —– 13 (PullUP) —– 8 (PullUP) —– PA3 RX2 (PullUP) —– 5 Volt div (PullUP)
                  * AUX —– D5 (PullUP) —– 18 (PullUP) —– 2 (PullUP) —– 0 (PullUP) —– 2 (PullUP) —– PA0 (PullUP) —– 3 (PullUP)
                  * VCC —– 3.3v/5v —– 3.3v/5v —– 3.3v/5v —– 3.3v/5v —– 3.3v/5v —– 3.3v/5v —– 3.3v/5v
                  * GND —– GND —– GND —– GND —– GND —– GND —– GND —– GND
                  *
                  */

                  #include “Arduino.h”
                  #include “LoRa_E220.h”

                  // ———- esp8266 pins ————–
                  //LoRa_E220 e220ttl(RX, TX, AUX, M0, M1); // Arduino RX <– e220 TX, Arduino TX –> e220 RX
                  //LoRa_E220 e220ttl(D3, D4, D5, D7, D6); // Arduino RX <– e220 TX, Arduino TX –> e220 RX AUX M0 M1
                  //LoRa_E220 e220ttl(D2, D3); // Config without connect AUX and M0 M1

                  //#include <SoftwareSerial.h>
                  //SoftwareSerial mySerial(D2, D3); // Arduino RX <– e220 TX, Arduino TX –> e220 RX
                  //LoRa_E220 e220ttl(&mySerial, D5, D7, D6); // AUX M0 M1
                  // ————————————-

                  // ———- Arduino pins ————–
                  //LoRa_E220 e220ttl(4, 5, 3, 7, 6); // Arduino RX <– e220 TX, Arduino TX –> e220 RX AUX M0 M1
                  //LoRa_E220 e220ttl(4, 5); // Config without connect AUX and M0 M1

                  //#include <SoftwareSerial.h>
                  //SoftwareSerial mySerial(4, 5); // Arduino RX <– e220 TX, Arduino TX –> e220 RX
                  //LoRa_E220 e220ttl(&mySerial, 3, 7, 6); // AUX M0 M1
                  // ————————————-

                  // ————- Arduino Nano 33 IoT ————-
                  // LoRa_E220 e220ttl(&Serial1, 2, 4, 6); // RX AUX M0 M1
                  // ————————————————-

                  // ————- Arduino MKR WiFi 1010 ————-
                  // LoRa_E220 e220ttl(&Serial1, 0, 2, 4); // RX AUX M0 M1
                  // ————————————————-

                  // ———- esp32 pins ————–
                  // LoRa_E220 e220ttl(&Serial2, 15, 21, 19); // RX AUX M0 M1

                  //LoRa_E220 e220ttl(&Serial2, 22, 4, 18, 21, 19, UART_BPS_RATE_9600); // esp32 RX <– e220 TX, esp32 TX –> e220 RX AUX M0 M1
                  // ————————————-

                  // ———- Raspberry PI Pico pins ————–
                  LoRa_E220 e220ttl(&Serial2, 1, 10, 11); // RX AUX M0 M1
                  // ————————————-

                  // —————- STM32 ——————–
                  //HardwareSerial Serial2(USART2); // PA3 (RX) PA2 (TX)
                  //LoRa_E220 e220ttl(&Serial2, PA0, PB0, PB10); // RX AUX M0 M1
                  // ————————————————-

              • #25305
                Giuseppe
                Participant

                  Thanks Renzo, it work but know i am getting this “Save mode returned not recognized!” in the example “set configuration”, what could be cousing that problem?

                  • #31933
                    Renzo Mischianti
                    Keymaster

                      Hi,
                      try to put 5v on power and 3.3v on logic level.
                      Bye Renzo

                  • #25306
                    Renzo Mischianti
                    Keymaster

                      Hi,
                      about this issue here you can find a possible solution
                      https://github.com/xreef/EByte_LoRa_E220_Series_Library/pull/11
                      It’s seems that there is an issue with software serial, but it’s very strange.
                      Even if the message say that the module working.
                      Bye Renzo

                    • #32009
                      JamieSue
                      Participant

                        Thanks for the info.

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