Hello, I am not technically savvy enough, I use a code that configures an E32-TTL-100 module (not available), and I would like to be able to use an E32-433T20D module (available).
I kept the same byte data string, but the E32-433T20D module remains in programming mode. (M0=HIGH, M1=HIGH, AUX=LOW)
I have a doubt about the byte data string, for me the setup is identical between the two.
Is there a specialist to help me?
thank you
void setup() {
// Initialize Serial2 at 9600 baud rate
for (byte i = 0; i <= 11; i++) pinMode(i, INPUT_PULLUP); // to save deepsleep current
Serial.begin(9600);
pinMode(M0, OUTPUT);
pinMode(M1, OUTPUT);
pinMode(LED, OUTPUT);
digitalWrite(M0, HIGH);
digitalWrite(M1, HIGH);
pinMode(AUX, INPUT_PULLUP);
pinMode(SWITCH_OPENING, INPUT_PULLUP);
pinMode(SWITCH_DOOR, INPUT_PULLUP);
delay(100);
byte data[] = { 0xC0, 0x0, 0x1, 0x1A, 0x17, 0x44 }; // for 20dBm Module
for (unsigned int i = 0; i < sizeof(data); i++) {
Serial.write(data[i]);
}
delay(100);
goToSleep();
digitalWrite(M0, LOW);
digitalWrite(M1, LOW);
Serial.write(EMPTY);
Serial.flush();
}
hello, thanks for the very interesting link.
In fact it is an existing and functional project Mailbox Notification.
The lora E32-TTL-100 is driven by an Atinnt1614. I just replaced it, by an E32-433T20D.
I tested the programming of the atinny with a blink program, everything is OK.
For now I have a doubt about the init chain of the Lora, the latter goes well in prog mode, M1 = M0 = HIGH, but does not return ack by the AUX pin, so it remains in the state.
I have tested with the Ebyte software, I can talk with LORA and programm it ( Lora is OK) .
The software gives me a different chain (I tested it without success too), but for me it shouldn't.