ESP32S3 – E22-900T22S not working

Viewing 3 reply threads
  • Author
    Posts
    • #32332
      Pataone
      Participant

        Hello Renzo,

        I’m encountering some issues with the E22-900T22S modules.

        Here’s some context:

        I have two boards:

        – The first board (Flag) is equipped with an ESP32.
        – The second board (Master) is equipped with an ESP32-S3.

        The Flag board works correctly; I’m able to successfully send and receive data between Flag boards.

        However, sending data from the Master to the Flag board isn’t working.

        When retrieving the module configuration for the first time, I get error code 11: “Save mode not recognized.” This issue occurs only during the initial attempt.

        Afterward, when configuring the E22 module, I receive a “success” message, and retrieving the configuration afterward returns the correct settings. Nevertheless, I’m uncertain whether the returned values are reliable.

        RX MIC ---> 17
        TX MIC ---> 18
        AUX ---> 38
        M0 ---> 40
        M1 ---> 39
        Init RX MIC!
        TX MIC pin!
        Init AUX pin!
        Init M0 pin!
        Init M1 pin!
        Begin ex
        Begin Hardware Serial
        Begin
        1
        9600
        134217756
        17
        18
        MODE NORMAL!
        AUX HIGH!
        Complete!
        MODE CONFIGURATION!
        AUX HIGH!
        Complete!
        3
        Available buffer: 12 structure size: 12
        AUX HIGH!
        Complete!
        ----------------------------------------
        HEAD : FC C1 0
        
        AddH : 9
        AddL : 0
        NetID : 6
        
        Chan : 0 -> 850MHz
        
        SpeedParityBit     : 10 -> 8E1
        SpeedUARTDatte     : 0 -> 1200bps
        SpeedAirDataRate   : 10 -> 2.4kbps (default)
        
        OptionSubPacketSett: 1 -> 128bytes
        OptionTranPower    : 10 -> 13dBm
        OptionRSSIAmbientNo: 1 -> Enabled
        
        TransModeWORPeriod : 100 -> 2500ms
        TransModeTransContr: 0 -> WOR Receiver (default)
        TransModeEnableLBT : 0 -> Disabled (default)
        TransModeEnableRSSI: 0 -> Disabled (default)
        TransModeEnabRepeat: 0 -> Disabled (default)
        TransModeFixedTrans: 0 -> Transparent transmission (default)
        ----------------------------------------
        MODE NORMAL!
        AUX HIGH!
        Complete!
        Save mode returned not recognized!
        11
        ---------------------------------------------
        Parametres du module LoRa avant configuration
        ---------------------------------------------
        ----------------------------------------
        HEAD : FC C1 0
        
        AddH : 9
        AddL : 0
        NetID : 6
        
        Chan : 0 -> 850MHz
        
        SpeedParityBit     : 10 -> 8E1
        SpeedUARTDatte     : 0 -> 1200bps
        SpeedAirDataRate   : 10 -> 2.4kbps (default)
        
        OptionSubPacketSett: 1 -> 128bytes
        OptionTranPower    : 10 -> 13dBm
        OptionRSSIAmbientNo: 1 -> Enabled
        
        TransModeWORPeriod : 100 -> 2500ms
        TransModeTransContr: 0 -> WOR Receiver (default)
        TransModeEnableLBT : 0 -> Disabled (default)
        TransModeEnableRSSI: 0 -> Disabled (default)
        TransModeEnabRepeat: 0 -> Disabled (default)
        TransModeFixedTrans: 0 -> Transparent transmission (default)
        ----------------------------------------
        MODE CONFIGURATION!
        AUX HIGH!
        Complete!
        AUX HIGH!
        Complete!
        Clear buffer...ok!
        Available buffer: 12 structure size: 12
        AUX HIGH!
        Complete!
        ----------------------------------------
        HEAD : C1 0 9
        
        AddH : 0
        AddL : 6
        NetID : 12
        
        Chan : 4 -> 854MHz
        
        SpeedParityBit     : 0 -> 8N1 (Default)
        SpeedUARTDatte     : 11 -> 9600bps (default)
        SpeedAirDataRate   : 10 -> 2.4kbps (default)
        
        OptionSubPacketSett: 0 -> 240bytes (default)
        OptionTranPower    : 0 -> 22dBm (Default)
        OptionRSSIAmbientNo: 0 -> Disabled (default)
        
        TransModeWORPeriod : 11 -> 2000ms (default)
        TransModeTransContr: 0 -> WOR Receiver (default)
        TransModeEnableLBT : 0 -> Disabled (default)
        TransModeEnableRSSI: 0 -> Disabled (default)
        TransModeEnabRepeat: 0 -> Disabled (default)
        TransModeFixedTrans: 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
        ----------------------------------------
        MODE NORMAL!
        AUX HIGH!
        Complete!
        Success
        1
        ---------------------------------------------
        Parametres du module LoRa apres configuration
        ---------------------------------------------
        MODE CONFIGURATION!
        AUX HIGH!
        Complete!
        3
        Available buffer: 12 structure size: 12
        AUX HIGH!
        Complete!
        ----------------------------------------
        HEAD : C1 0 9
        
        AddH : 0
        AddL : 6
        NetID : 12
        
        Chan : 4 -> 854MHz
        
        SpeedParityBit     : 0 -> 8N1 (Default)
        SpeedUARTDatte     : 11 -> 9600bps (default)
        SpeedAirDataRate   : 10 -> 2.4kbps (default)
        
        OptionSubPacketSett: 0 -> 240bytes (default)
        OptionTranPower    : 0 -> 22dBm (Default)
        OptionRSSIAmbientNo: 0 -> Disabled (default)
        
        TransModeWORPeriod : 11 -> 2000ms (default)
        TransModeTransContr: 0 -> WOR Receiver (default)
        TransModeEnableLBT : 0 -> Disabled (default)
        TransModeEnableRSSI: 0 -> Disabled (default)
        TransModeEnabRepeat: 0 -> Disabled (default)
        TransModeFixedTrans: 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
        ----------------------------------------
        MODE NORMAL!
        AUX HIGH!
        Complete!
        Success
        1
        ----------------------------------------
        HEAD : C1 0 9
        
        AddH : 0
        AddL : 6
        NetID : 12
        
        Chan : 4 -> 854MHz
        
        SpeedParityBit     : 0 -> 8N1 (Default)
        SpeedUARTDatte     : 11 -> 9600bps (default)
        SpeedAirDataRate   : 10 -> 2.4kbps (default)
        
        OptionSubPacketSett: 0 -> 240bytes (default)
        OptionTranPower    : 0 -> 22dBm (Default)
        OptionRSSIAmbientNo: 0 -> Disabled (default)
        
        TransModeWORPeriod : 11 -> 2000ms (default)
        TransModeTransContr: 0 -> WOR Receiver (default)
        TransModeEnableLBT : 0 -> Disabled (default)
        TransModeEnableRSSI: 0 -> Disabled (default)
        TransModeEnabRepeat: 0 -> Disabled (default)
        TransModeFixedTrans: 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
        ----------------------------------------
        Hi, I'm going to send message!
        0AUX HIGH!
        Complete!
        Clear buffer...ok!
        Success

        Despite using the same NET-ID, Channel, and properly setting the LOW_ADDRESS of the receiver, I’m unable to send data from the Master to the Flag board in fixed transmission mode. The transmission returns “success” on the Master, but the Flag board doesn’t receive anything.

        Here are my questions:

        – What exactly does the error “Save mode not recognized” mean?
        – Could my issue be hardware-related?
        – I’m not currently using any pull-up resistors. Could this cause problems?
        – Can the length of the AUX, RX, and TX traces affect the transmission?

        For reference, here are the trace lengths on my setup:
        – AUX: 21.6 mm
        – LORA_RX: 34.6 mm
        – LORA_TX: 39.2 mm

        I’ve already tested with a new Ebyte module, but the issue persists.
        I can share my code if needed.

        Thanks for your help!

        Thomas

      • #32333
        Pataone
        Participant

          Hey,

          Just a quick update from my recent investigation:

          At the beginning of the received frame, I noticed an unexpected 0xFC byte:

          Serial available before read: 13
          Received bytes: FC C1 00 09 00 06 12 62 00 04 43 00
          Available buffer: 12, Structure size: 12

          This extra byte (0xFC) shifts the configuration data by one byte. It’s consistently the same byte (0xFC), leading me to believe the issue is software-related, possibly with the ESP32-S3.

          I verified this by capturing the frame with an FTDI device. The E22 module indeed sends the correct frame: C1 00 09 00 06 12 62 00 04 43 00 00, without the extra 0xFC.

          I’m unsure about the cause, but I’ll continue investigating further tomorrow.

          Thomas

        • #32338
          Renzo Mischianti
          Keymaster

            Hi Pataone,
            This can be generated by noise on the channel. I have already heard of problems like that. When I have some time, I will fix it via code and release a flag to bypass that problem.
            Bye Renzo

          • #32339
            Renzo Mischianti
            Keymaster

              Hi Pataone,
              This can be generated by noise on the channel. I have already heard of problems like that. When I have some time, I will fix it via code and release a flag to bypass that problem.
              Bye Renzo

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