Problems with EBYTE E220-900T22D

Home Forums The libraries hosted on the site EByte LoRa e220 UART devices LLCC68 Problems with EBYTE E220-900T22D

Viewing 8 reply threads
  • Author
    Posts
    • #23307
      schewski
      Participant

        Hello and thanks for the great library. Unfortunately I can’t get the EBYTE E220-900T22D module to run. I am using an ESP-32 Dev Kit C V4. I configured the modules using a USB adapter. Both configurations are identical. Unfortunately I am not receiving anything. Below is my code:

        
        #define ENABLE_RSSI true
        #include "LoRa_E220.h"
        LoRa_E220 e220ttl(&Serial2); // esp32 RX 16 –> e220 TX | esp32 TX 17 –> e220 RX
        
        void setup() {
        	Serial.begin(115200);
        	delay(500);
        	e220ttl.begin();
        	Serial.println("Hi, I’m going to receive a message!");
        	ResponseStatus rs = e220ttl.sendMessage("Receiver listening");
        	Serial.println(rs.getResponseDescription()); // Check If there is some problem of succesfully send
        }
        
        void loop() {
        // If something available
        	if (e220ttl.available() > 1) {
        // read the String message
        #ifdef ENABLE_RSSI
        		ResponseContainer rc = e220ttl.receiveMessageRSSI();
        #else
        ResponseContainer rc = e220ttl.receiveMessage();
        #endif
        // Is something goes wrong print error
        		if (rc.status.code != 1) {
        			Serial.println(rc.status.getResponseDescription());
        		} else {
        // Print the data received
        			Serial.println(rc.status.getResponseDescription());
        			Serial.println(rc.data);
        #ifdef ENABLE_RSSI
        			Serial.print("RSSI: ");
        			Serial.println(rc.rssi, DEC);
        #endif
        		}
        	}
        	if (Serial.available()) {
        		String input = Serial.readString();
        		e220ttl.sendMessage(input);
        	}
        }
        
        

        Can you help me please? Thanks in advance and best regards.

      • #23310
        Renzo Mischianti
        Keymaster

          Hi schewski,
          the code is ok, so I think you made some errors in others parts.

          You must give us the wiring, and all other information to do a debug.
          Bye Renzo

        • #23325
          schewski
          Participant

            Hello Renzo. Thank you for your quick feedback. The wiring looks like this:

            E220 ESP32
            —- —–
            GND > GND
            VCC > 5V
            AUX > NONE / FLOATING
            TXD > 16
            RXD > 17
            M1 > GND
            M0 > GND

            What I also noticed is that I cannot set a key for either module via the USB adapter. If I enter a value and click on set, I get a success – if I read in the data again, the key entry is 0 again. This happens with both modules. If I change the channel it works without problems. Is that normal? Maybe the modules are broken?

            • #30829
              echo9
              Participant

                I know this response is very late but in case anyone else runs into this looking for why they cannot read the key. From what I can tell, the system only allows you to set the key. Once the key is set it will return 00 00 for the key if you ask for it. When using the Window Configuration program this does the same thing. So you will “Get params”, and it will say key 0000. You can then set the key, say to 9999, and then it will set the key, but when you run Get Parms again, it will simply say 00 00, so this is expected behavior. However, when using the radios together, if you do not do a set key on both sides, they will not communicate. I am using a USB module SH-L1A from DSD Tech, and I just wanted something quick that I could use to play with LoRa a bit. Now of course I am wishing I had bought something with a MCU and chip so I can use the libs easier, Oh Well, I will write my own, or modify what is out there. 🙂

            • #23334
              Renzo Mischianti
              Keymaster

                If you can’t manage the module with a USB adapter and EByte program probably, the devices are broken, but It’s very strange.
                Try to wire the AUX pin and check the behavior.
                Bye Renzo

              • #23335
                Renzo Mischianti
                Keymaster

                  If you can’t manage the module with a USB adapter and EByte program probably, the devices are broken, but It’s very strange.
                  Try to wire the AUX pin and check the behavior.
                  Bye Renzo

                • #24990
                  aishwarya
                  Participant

                    Hello

                    I try to connect E220-900T22D with micro controller but the data is received in module but it is not transmitted to module B. Even I can see data :the output pin in data visualizer .Advance thanks

                    Regards,

                    aishwarya

                  • #24991
                    Renzo Mischianti
                    Keymaster

                      Hi Aishwarya,
                      first of all, connect AUX pin to have real feedback.
                      Then pay attention to the power supply and ensure the wiring of M0 and M1 is correct.
                      Bye Renzo

                    • #25239
                      aishwarya
                      Participant

                        Helllo ,
                        I got error values when transferring data

                      • #25241
                        aishwarya
                        Participant

                          Advance thanks

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