Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: E220-900T22D Data Size not match! #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
      // ————————————————-

      in reply to: E220-900T22D Data Size not match! #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 1 month ago by simone.
        in reply to: E220-900T22D Data Size not match! #31923
        simone
        Participant

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

          Attachments:
          You must be logged in to view attached files.
        Viewing 3 posts - 1 through 3 (of 3 total)