E220-900T30D No Interrupt

Viewing 9 reply threads
  • Author
    Posts
    • #30893
      William
      Moderator

        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 1 year, 3 months ago by William.
        • This topic was modified 1 year, 3 months ago by William.
        • This topic was modified 1 year, 3 months ago by William. Reason: Added note to send Message structure
      • #30901
        Renzo Mischianti
        Keymaster

          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

        • #30910
          William
          Moderator

            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.

            7/6/2024 E220 Project code

            Regards,
            William

            • This reply was modified 1 year, 3 months ago by William. Reason: Correcting text
          • #30917
            Renzo Mischianti
            Keymaster

              Hi William,
              check the connection with a simple sender example so we can exclude some electronic issue.
              Bye Renzo

            • #30937
              William
              Moderator

                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 1 year, 3 months ago by William. Reason: Clarifcation of early morning post
              • #30941
                Renzo Mischianti
                Keymaster

                  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

                • #30960
                  William
                  Moderator

                    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.

                    E220-Remote-Switch Post link

                    Respectfully,
                    William

                  • #31026
                    Renzo Mischianti
                    Keymaster

                      Hi William,
                      the project It’s interesting, would you like to publish an article about that?
                      Bye RM

                    • #31085
                      William
                      Moderator

                        Have article ready; do you want it uploaded here or somewhere else?

                        William

                      • #31114
                        Renzo Mischianti
                        Keymaster

                          Hi William,
                          I write to you by EMail.
                          Thanks Renzo

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