xreef / EByte_LoRa_E220_Series_Library

Arduino 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
80 stars 20 forks source link

Does it support E220P? #19

Closed Catta1997 closed 9 months ago

Catta1997 commented 9 months ago

Hi! I have an issue with E220P-400T22S , I'm not able to send/receive messages . This is the code:

#include "Arduino.h"
#include "LoRa_E220.h"

LoRa_E220 e220ttl(DD3, DD2, DD4, DD6, DD5);
// LoRa_E220 e220ttl(DD2, DD3, DD4, DD6, DD5);
void setup() {
    Serial.begin(115200);
    delay(500);
    e220ttl.begin();
    Serial.println("Setup Done!");
}

void leggo() {
    if (e220ttl.available() > 1) {
        Serial.println("Miracolo, ricevuto qualcosa!");
        ResponseContainer rc = e220ttl.receiveMessage();
        if (rc.status.code != 1) {
            Serial.println(rc.status.getResponseDescription());
        } else {
            Serial.println(rc.status.getResponseDescription());
            Serial.println(rc.data);
        }
    }
}

void mando() {
    ResponseStatus rs = e220ttl.sendMessage("Messaggio di prova");
    Serial.println(rs.getResponseDescription());
    delay(2500);
}

void loop() {
    // leggo(); -> read
    // mando(); -> write
}

Setup log:

RX MIC ---> 3
TX MIC ---> 2
AUX ---> 4
M0 ---> 6
M1 ---> 5
Init AUX pin!
Init M0 pin!
Init M1 pin!
Begin ex
Begin Software Serial
Begin 
MODE NORMAL!
AUX HIGH!
Complete!
Setup Done!

Sender log:

Send message: Messaggio di prova size: 18
 memcpy 
AUX HIGH!
Complete!
Clear buffer...ok!
Success

Rec Log: nothing more than setup log

I'm doing something wrong? What I tried:

Pin:

E220P Pin
M0 D6
M1 D5
AUX D4
RXD D3
TXD D2
xreef commented 9 months ago

Hi, I don't know witch mcu you have but normally people fix this by check the power supply of e220 and add an antenna. Bye Renzo

Catta1997 commented 9 months ago

ok thanks