LoRa E32 433t30d No Response from device

Home Forums The libraries hosted on the site EByte LoRa e32 UART devices sx1262/sx1268 LoRa E32 433t30d No Response from device

Viewing 8 reply threads
  • Author
    Posts
    • #28837
      Srill
      Participant

        Thank you for replying to my previous comment,
        I have bought the LoRa E32 433T30D from the following Link , along with the TX433 JKD-20p antenna. When I checked using RF Setting software with USB to TTL, there is a message saying ‘No Response from devices.’ I have three LoRa devices, and all of them have the same message.
        When I checked using the GetConfiguration library example with an ESP32 board and following the schematic you provided, I got the following results

        RX MIC ---> -1
        TX MIC ---> -1
        AUX ---> 15
        M0 ---> 21
        M1 ---> 19
        Init AUX pin!
        Init M0 pin!
        Init M1 pin!
        Begin ex
        Begin Hardware Serial
        Begin
        MODE NORMAL!
        AUX HIGH!
        Complete!
        MODE PROGRAM/SLEEP!
        AUX HIGH!
        Complete!
        AUX HIGH!
        Complete!
        MODE NORMAL!
        AUX HIGH!
        Complete!
        MODE PROGRAM/SLEEP!
        AUX HIGH!
        Complete!
        Available buffer: 0 structure size: 6
        ----------------------------------------
        HEAD : 10100101 165 A5
        
        AddH : 165
        AddL : 165
        Chan : 165 -> 575MHz
        
        SpeedParityBit : 10 -> 8E1
        SpeedUARTDatte : 100 -> 19200bps
        SpeedAirDataRate : 101 -> 19.2kbps
        OptionTrans : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
        OptionPullup : 0 -> TXD, RXD, AUX are open-collectors
        OptionWakeup : 100 -> 1250ms
        OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
        OptionPower : 1 -> 17dBm
        ----------------------------------------
        MODE NORMAL!
        AUX HIGH!
        Complete!
        MODE PROGRAM/SLEEP!
        AUX HIGH!
        Complete!
        AUX HIGH!
        Complete!
        Clear buffer...ok!

        When I attempted to send a message with the following code, the LoRa did not receive any message response.
        SendFixedTransmission

        #include "Arduino.h"
        #include "LoRa_E32.h"
        LoRa_E32 e32ttl(&Serial2,15,21,19); // AUX M0 M1LoRa_E32 e32ttl(&Serial2,15,21,19); // AUX M0 M1
        void printParameters(struct Configuration configuration);
        void printModuleInformation(struct ModuleInformation moduleInformation);
        //The setup function is called once at startup of the sketch
        void setup()
        {
        Serial.begin(9600);
        while (!Serial) {
        ; // wait for serial port to connect. Needed for native USB
        }
        delay(100);
        e32ttl.begin();
        // After set configuration comment set M0 and M1 to low
        // and reboot if you directly set HIGH M0 and M1 to program
        ResponseStructContainer c;
        c = e32ttl.getConfiguration();
        Configuration configuration = *(Configuration*) c.data;
        configuration.ADDL = 0x01;
        configuration.ADDH = 0x00;
        configuration.CHAN = 0x02;
        configuration.OPTION.fixedTransmission = FT_FIXED_TRANSMISSION;
        e32ttl.setConfiguration(configuration, WRITE_CFG_PWR_DWN_SAVE);
        printParameters(configuration);
        c.close();
        // ---------------------------
        }
        
        // The loop function is called in an endless loop
        void loop()
        {
        delay(2000);
        Serial.println("Send message to 00 03 04");
        ResponseStatus rs = e32ttl.sendFixedMessage(0, 3, 0x04, "Hello");
        Serial.println(rs.getResponseDescription());
        }
        
        void printParameters(struct Configuration configuration) {
        Serial.println("----------------------------------------");
        Serial.print(F("HEAD : ")); Serial.print(configuration.HEAD, BIN);Serial.print(" ");Serial.print(configuration.HEAD, DEC);Serial.print(" ");Serial.println(configuration.HEAD, HEX);
        Serial.println(F(" "));
        Serial.print(F("AddH : ")); Serial.println(configuration.ADDH, BIN);
        Serial.print(F("AddL : ")); Serial.println(configuration.ADDL, BIN);
        Serial.print(F("Chan : ")); Serial.print(configuration.CHAN, DEC); Serial.print(" -> "); Serial.println(configuration.getChannelDescription());
        Serial.println(F(" "));
        Serial.print(F("SpeedParityBit : ")); Serial.print(configuration.SPED.uartParity, BIN);Serial.print(" -> "); Serial.println(configuration.SPED.getUARTParityDescription());
        Serial.print(F("SpeedUARTDatte : ")); Serial.print(configuration.SPED.uartBaudRate, BIN);Serial.print(" -> "); Serial.println(configuration.SPED.getUARTBaudRate());
        Serial.print(F("SpeedAirDataRate : ")); Serial.print(configuration.SPED.airDataRate, BIN);Serial.print(" -> "); Serial.println(configuration.SPED.getAirDataRate());
        Serial.print(F("OptionTrans : ")); Serial.print(configuration.OPTION.fixedTransmission, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getFixedTransmissionDescription());
        Serial.print(F("OptionPullup : ")); Serial.print(configuration.OPTION.ioDriveMode, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getIODroveModeDescription());
        Serial.print(F("OptionWakeup : ")); Serial.print(configuration.OPTION.wirelessWakeupTime, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getWirelessWakeUPTimeDescription());
        Serial.print(F("OptionFEC : ")); Serial.print(configuration.OPTION.fec, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getFECDescription());
        Serial.print(F("OptionPower : ")); Serial.print(configuration.OPTION.transmissionPower, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getTransmissionPowerDescription());
        Serial.println("----------------------------------------");
        }
        void printModuleInformation(struct ModuleInformation moduleInformation) {
        Serial.println("----------------------------------------");
        Serial.print(F("HEAD BIN: ")); Serial.print(moduleInformation.HEAD, BIN);Serial.print(" ");Serial.print(moduleInformation.HEAD, DEC);Serial.print(" ");Serial.println(moduleInformation.HEAD, HEX);
        Serial.print(F("Freq.: ")); Serial.println(moduleInformation.frequency, HEX);
        Serial.print(F("Version : ")); Serial.println(moduleInformation.version, HEX);
        Serial.print(F("Features : ")); Serial.println(moduleInformation.features, HEX);
        Serial.println("----------------------------------------");
        
        }

        RecaiveFixedTransmission

        #include "Arduino.h"
        #include "LoRa_E32.h"
        
        LoRa_E32 e32ttl(&Serial2,15,21,19); // AUX M0 M1
        
        void printParameters(struct Configuration configuration);
        void printModuleInformation(struct ModuleInformation moduleInformation);
        //The setup function is called once at startup of the sketch
        void setup()
        {
        	Serial.begin(9600);
        	while (!Serial) {
        	    ; // wait for serial port to connect. Needed for native USB
            }
        	delay(100);
        
        	e32ttl.begin();
        
        	e32ttl.resetModule();
        	// After set configuration comment set M0 and M1 to low
        	// and reboot if you directly set HIGH M0 and M1 to program
        	ResponseStructContainer c;
        	c = e32ttl.getConfiguration();
        	Configuration configuration = *(Configuration*) c.data;
        	configuration.ADDL = 3;
        	configuration.ADDH = 0;
        	configuration.CHAN = 0x04;
        	configuration.OPTION.fixedTransmission = FT_FIXED_TRANSMISSION;
        	e32ttl.setConfiguration(configuration, WRITE_CFG_PWR_DWN_SAVE);
        	printParameters(configuration);
        	c.close();
        	// ---------------------------
        	Serial.println();
        	Serial.println("Start listening!");
        }
        
        // The loop function is called in an endless loop
        void loop()
        {
        	if (e32ttl.available()  > 1){
        		ResponseContainer rs = e32ttl.receiveMessage();
                // First of all get the data
        		String message = rs.data;
        
        		Serial.println(rs.status.getResponseDescription());
        		Serial.println(message);
        	}
        }
        
        void printParameters(struct Configuration configuration) {
        	Serial.println("----------------------------------------");
        
        	Serial.print(F("HEAD : "));  Serial.print(configuration.HEAD, BIN);Serial.print(" ");Serial.print(configuration.HEAD, DEC);Serial.print(" ");Serial.println(configuration.HEAD, HEX);
        	Serial.println(F(" "));
        	Serial.print(F("AddH : "));  Serial.println(configuration.ADDH, DEC);
        	Serial.print(F("AddL : "));  Serial.println(configuration.ADDL, DEC);
        	Serial.print(F("Chan : "));  Serial.print(configuration.CHAN, DEC); Serial.print(" -> "); Serial.println(configuration.getChannelDescription());
        	Serial.println(F(" "));
        	Serial.print(F("SpeedParityBit     : "));  Serial.print(configuration.SPED.uartParity, BIN);Serial.print(" -> "); Serial.println(configuration.SPED.getUARTParityDescription());
        	Serial.print(F("SpeedUARTDatte  : "));  Serial.print(configuration.SPED.uartBaudRate, BIN);Serial.print(" -> "); Serial.println(configuration.SPED.getUARTBaudRate());
        	Serial.print(F("SpeedAirDataRate   : "));  Serial.print(configuration.SPED.airDataRate, BIN);Serial.print(" -> "); Serial.println(configuration.SPED.getAirDataRate());
        
        	Serial.print(F("OptionTrans        : "));  Serial.print(configuration.OPTION.fixedTransmission, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getFixedTransmissionDescription());
        	Serial.print(F("OptionPullup       : "));  Serial.print(configuration.OPTION.ioDriveMode, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getIODroveModeDescription());
        	Serial.print(F("OptionWakeup       : "));  Serial.print(configuration.OPTION.wirelessWakeupTime, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getWirelessWakeUPTimeDescription());
        	Serial.print(F("OptionFEC          : "));  Serial.print(configuration.OPTION.fec, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getFECDescription());
        	Serial.print(F("OptionPower        : "));  Serial.print(configuration.OPTION.transmissionPower, BIN);Serial.print(" -> "); Serial.println(configuration.OPTION.getTransmissionPowerDescription());
        
        	Serial.println("----------------------------------------");
        
        }
        void printModuleInformation(struct ModuleInformation moduleInformation) {
        	Serial.println("----------------------------------------");
        	Serial.print(F("HEAD BIN: "));  Serial.print(moduleInformation.HEAD, BIN);Serial.print(" ");Serial.print(moduleInformation.HEAD, DEC);Serial.print(" ");Serial.println(moduleInformation.HEAD, HEX);
        
        	Serial.print(F("Freq.: "));  Serial.println(moduleInformation.frequency, HEX);
        	Serial.print(F("Version  : "));  Serial.println(moduleInformation.version, HEX);
        	Serial.print(F("Features : "));  Serial.println(moduleInformation.features, HEX);
        	Serial.println("----------------------------------------");
        
        }
        • This topic was modified 1 year, 10 months ago by Srill.
      • #28840
        Srill
        Participant

          This is for the screenshotScreenshot

        • #28852
          Renzo Mischianti
          Keymaster

            Hi Srill,
            Strangely, the library does not say again any response from the device. You get
            Available buffer: 0 structure size: 6
            and means that the device doesn’t give a response.

            There is a power supply problem or wiring problem.
            Bye Renzo

            • #28874
              Srill
              Participant

                After I checked the wiring as you suggested, here were several jumper cables that broken, wkwkwkwk. Two of the LoRa modules can transmit and receive messages properly, but one module can only receive messages because previously I tried it on Arduino without looking at the schematic you provided, and I didn’t use a voltage divider like your scheme.

                thanks renzo. Have a great day!

            • #28877
              Renzo Mischianti
              Keymaster

                Hi Srill,
                perfect!
                Bye Renzo

                • #28880
                  Srill
                  Participant

                    Hi Renzo,
                    I would like to ask again. How do I define the hardware serial for the LoRa E32?
                    i want use UART1 for GPS and UART2 for LoRa, but when I define it as follows :

                    #define RXD1 12
                    #define TXD1 13
                    HardwareSerial neogps(1);
                    HardwareSerial Serial2(2);
                    LoRa_E32 e32ttl(&Serial2, 15, 33, 32);
                    [...]
                    void setup(){
                    neogps.begin(9600, SERIAL_8N1, RXD1, TXD1);
                    e32ttl.begin();
                    

                    the system encounters an error like this.

                    invalid conversion from 'HardwareSerial*' to 'byte' {aka 'unsigned char'} [-fpermissive]

                    i use ESP32 DevkitC V4 board

                    • This reply was modified 1 year, 10 months ago by Srill.
                • #28882
                  Renzo Mischianti
                  Keymaster

                    Hi Srill,
                    in which line?
                    Bye Renzo

                    • #28915
                      Srill
                      Participant

                        in the following line

                        LoRa_E32 e32ttl(&Serial2, 15, 33, 32);

                        if i change Serial2 to:

                        HardwareSerial lora(2);
                        LoRa_E32 e32ttl(&lora, 15, 33, 32);

                        There are no errors, but when I upload it to the board, there is no data received or sent from LoRa or GPS, here an error screenshot

                        https://i.postimg.cc/h4NZC82N/image.png

                        • This reply was modified 1 year, 10 months ago by Srill.
                        • This reply was modified 1 year, 10 months ago by Srill.
                        • This reply was modified 1 year, 10 months ago by Srill.
                        • This reply was modified 1 year, 10 months ago by Renzo Mischianti.
                        • This reply was modified 1 year, 10 months ago by Renzo Mischianti.
                    • #28932
                      Renzo Mischianti
                      Keymaster

                        Hi Srill,
                        you must pass the reference of Serial.

                        
                        LoRa_E32 e32ttl(&Serial2, 15, 33, 32);
                        

                        Bye Renzo

                        • #28967
                          Srill
                          Participant

                            Yayy, it works! thanks.
                            I want to ask, is it possible for the LoRa E32 module to communicate with the LoRa E220?

                        • #28968
                          Renzo Mischianti
                          Keymaster

                            Hi Srill,
                            haaa perfect!
                            No, I think it’s not possible, they use a different chip to implement the communication.
                            Bye Renzo

                          • #29555
                            Srill
                            Participant

                              hello Renzo,
                              I want to ask, why when I use Lora E220 (E220-400T30D) with an antenna (Tx433 JKD-20p) my ESP32 board always restarts when sending messages, but when I remove the antenna everything works fine receiving and sending messages. I use a supply from an 18660 4.2v battery and I have tried using 5v/3a, the results are still the same.

                            • #29558
                              Renzo Mischianti
                              Keymaster

                                It’s bizarre, but the only thing I have in mind is that the antenna is short something.
                                Try to change the antenna or similar.
                                Bye RM

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