Home › Forums › The libraries hosted on the site › EByte LoRa e220 UART devices LLCC68 › E220-900T30D No Interrupt
Tagged: Code, deep sleep, E220, Interrupts, structures
- This topic has 9 replies, 2 voices, and was last updated 9 months, 2 weeks ago by
Renzo Mischianti.
-
AuthorPosts
-
-
4 July 2024 at 15:20 #30893
Have resolved and modified code as of 7/4/2024; only remaining issue no receiver interrupt except on ESP32 reset. Think if code is correct; only leaves a defective E220 module.
Renzo could you or a forum reader; please check the Receiver, mode settings, been working hard at coding this project. I am no expert on coding for RF modules of any kind. Old age of mid 70’s is setting in… still trying my best!
Load index7.h andsender from same folder. When sender and receiver are running; open web browser to 10.0.0.27/relay. this will send structure Message to receiver.
Kind Regards,
William-
This topic was modified 10 months, 1 week ago by
William.
-
This topic was modified 10 months, 1 week ago by
William.
-
This topic was modified 10 months, 1 week ago by
William. Reason: Added note to send Message structure
Attachments:
You must be logged in to view attached files. -
This topic was modified 10 months, 1 week ago by
-
5 July 2024 at 08:54 #30901
Hi William,
to manage the WOR, you must do some additional things.
To preserve Sleep mode, you must hold down the M0 M1 pin and enable the ext GPIO wake-up.
You can find what you need in this article.Ebyte LoRa E32 device for Arduino, esp32 or esp8266: WOR (wake on radio) and new ESP32 shield – 8
Bye Renzo
-
This reply was modified 10 months, 1 week ago by
Renzo Mischianti.
-
This reply was modified 10 months, 1 week ago by
-
8 July 2024 at 07:42 #30910
Function switchOne not sending struct Message members to Sender:
`void switchOne(int data) {
if (data == 1) {
int data = 1;
Serial.println(“\nBattery Switch is ON”);
Serial.println(“ESP32 waking from Deep Sleep\n”);
}if (data == 2) {
int data = 2;
Serial.println(“\nBattery power switched OFF”);
Serial.println(“ESP32 going to Deep Sleep\n”);
}Serial.println(“Hi, I’m going to send message!”);
e220ttl.setMode(MODE_0_NORMAL);
delay(delayTime);get_time();
Message message;
//initialize struct members
message.switchState = data;//Initialize the dateTime
String dateTimeStr = get_time();
if (!dateTimeStr.isEmpty()) {
strncpy(message.dateTime, dateTimeStr.c_str(), MAX_dateTime_LENGTH – 1);
message.dateTime[MAX_dateTime_LENGTH – 1] = ‘\0’; // Ensure null-termination
}Serial.print(“switchState: “); Serial.println(message.switchState);
Serial.print(“dateTime: “); Serial.println(message.dateTime);// Send message
ResponseStatus rs = e220ttl.sendFixedMessage(0, DESTINATION_ADDL, CHANNEL, &message, sizeof(Message));
// Check If there is some problem of succesfully send
Serial.println(rs.getResponseDescription());
}Additionally WOR message is transmitted successfully; Receiver does not respond. Checked pullup resistors; all 3.3V opposite of the 3.3V rail, referenced to ground.
M0 = 21, M1 = 19, TXD = 17, RXD = 16, AUX = 15 Vcc = 3.3V, and GND = Ground. Pin connections verifed by continuity tests. Modules programmed by Ebyte, RF software. Receiver ADDL 2, Channel 66, Tran Fixed, WOR period 2000ms, Power 30dbm. Sender same except ADDL 3.
Regards,
William-
This reply was modified 10 months ago by
William. Reason: Correcting text
-
This reply was modified 10 months ago by
-
11 July 2024 at 08:36 #30917
Hi William,
check the connection with a simple sender example so we can exclude some electronic issue.
Bye Renzo -
12 July 2024 at 08:16 #30937
Confused with simple Fixed Transmission, Sender example reults.
Modules configuration was done using Ebyte software application.
First, used the “Normal connections” to program E220 module, then used “Fully connected” to execute sketch. Sending of message from either Sender or Receiver only produces word “Success”; on module sending message. Message does not appear as the sent word “test”; does not appear on either serial monitor.
Both Sender and Receiver crash when trying to exeute sketch with “Normal connections”.
Please explain diffence between the pin connections listed as comments at top of sketch and the pins used in esp32 constructor.
Both Send and Receiver reported wrong configuration values from what was programmed with Ebyte programming software.
Best Regards,
William-
This reply was modified 10 months ago by
William. Reason: Clarifcation of early morning post
-
This reply was modified 10 months ago by
-
16 July 2024 at 08:30 #30941
Hi William,
I think there is a wiring issue or device problem; I think you must return to a breadboard and arrive at a working solution, then start to check all variations from this version.
Bye Renzo -
17 July 2024 at 20:19 #30960
Have E220-Remote_Switch project working; posted to Espressif, ESP32.com, link to project code on Github and a Demo video of E220-Remote-Switch project.
Respectfully,
William -
21 July 2024 at 10:18 #31026
Hi William,
the project It’s interesting, would you like to publish an article about that?
Bye RM -
22 July 2024 at 19:00 #31085
Have article ready; do you want it uploaded here or somewhere else?
William
-
28 July 2024 at 12:08 #31114
Hi William,
I write to you by EMail.
Thanks Renzo
-
-
AuthorPosts
- You must be logged in to reply to this topic.