🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    SIM7020G echoing even after using ATE0

    Modules
    2
    20
    10.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jeetS
      last edited by jeetS

      UPDATE:

      I tried AT+CPOWD=0 command and netlight stopped blinking. So, I am guessing command is being sent and accepted by SIM.

      and also it can be turned on using AT+CFUN=1 command.

      J 1 Reply Last reply Reply Quote 0
      • J
        jeetS @jeetS
        last edited by

        @jeets said in SIM7020G echoing even after using ATE0:

        UPDATE:

        I tried AT+CPOWD=0 command and netlight stopped blinking. So, I am guessing command is being sent and accepted by SIM.

        and also it can be turned on using AT+CFUN=1 command.

        However, I am still getting echo in response. How can I get "OK" or "ERROR" or something else?

        I don't understand why this is happening. I am using this USB to TTL converter. I changed converters too.

        It is not possible to troubleshoot or program efficiently without proper responses from SIM7020G.
        Thank you.

        1 Reply Last reply Reply Quote 0
        • felmueF
          felmue
          last edited by

          Hello @jeetS

          a blinking netlight means the modem is (already) turned on (at least that is my experience). You need to take into account that there already is some logic on the green board regarding POWERKEY (no schematic available unfortunatley) and some additional logic on the carrier board. See schematic here.

          Regarding the USB TTL converter: as long as it is set / using 3.3 V towards the COM.X module you should be fine.

          Maybe try an ATZ0 to restore default settings.

          Thanks
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          1 Reply Last reply Reply Quote 1
          • felmueF
            felmue
            last edited by felmue

            Hello @jeetS

            I did some experiment using an USB to TTL converter (set to 3.3 V) and I think you are missing a common GND connection.

            When I only connect TX and RX (but no common GND) I get exactly what you are seeing. The "AT" is echoed, but no "OK" or "ERROR" is returned.

            So make sure you have TX, RX and GND connected between USB TTL converter and COM.X module.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            J 1 Reply Last reply Reply Quote 1
            • J
              jeetS @felmue
              last edited by jeetS

              @felmue

              I tried to connect the ground but the problem is there is 2V difference between Ground of USB to TTL converter and Ground of COM.X module.

              How should I remove it?

              Thank you

              J 1 Reply Last reply Reply Quote 0
              • J
                jeetS @jeetS
                last edited by jeetS

                @jeets said in SIM7020G echoing even after using ATE0:

                @felmue

                I tried to connect the ground but the problem is there is 2V difference between Ground of USB to TTL converter and Ground of COM.X module.

                How should I remove it?

                I connected Green PCB and USB to TTL converter with PC (Supplying voltage via USB connector)

                I am able to ON/OFF SIM7020G using AT commands but I am not getting any response in PuTTY. There are no echo in UART but also no response from SIM7020G.

                I measured voltage over Tx pin of SIM7020G and its 0.9V.

                Observation:

                I can see both TX and RX LED blinking on my USB to TTL converter whenever I send command but not receiving data on serial monitor.

                I have tried different baudrate but the issue is not solved.

                Thank you so much to put your efforts and time felix!

                1 Reply Last reply Reply Quote 0
                • J
                  jeetS
                  last edited by jeetS

                  I connected to two USB to TTL converter. One to transmit data and another one to receive the data.
                  and opened two different serial terminal in PuTTY.

                  TX LED of one converter and RX LED for another converter is still blinking but there are no data on PuTTY terminal

                  I also used tera term and Terminal software to verify it.

                  0_1688185580730_a405c5d0-2b7a-42a2-820c-266b4cc5f4e1-image.png

                  1 Reply Last reply Reply Quote 0
                  • felmueF
                    felmue
                    last edited by

                    Hello @jeetS

                    can you explain what you mean about the 2 V difference?

                    The USB to TTL converter I use can be switched between 5 V and 3.3 V and I set it to 3.3 V.

                    Is your USB to TTL converter switched to 3.3 V (or a 3.3 V version)?

                    In my test case (when GND is not connected) TX and RX LED both blink as well. That is because RX is floating and picking up whatever TX is sending. That is (I think) creating the echo you are seeing.

                    Thanks
                    Felix

                    GPIO translation table M5Stack / M5Core2
                    Information about various M5Stack products.
                    Code examples

                    J 1 Reply Last reply Reply Quote 1
                    • J
                      jeetS @felmue
                      last edited by jeetS

                      @felmue

                      Thanks for quick response.

                      when I was measuring voltage between GND of USB to TTL converter and GND of COM.X module. Multimeter shows 2V. (See the illustration)

                      But this issue is resolved by supplying power to same power source (My PC).

                      I want add that when I use two different USB to TTL converters then RX LED is not blinking and that means i am not getting any response.

                      I think this is due to Rx pin HIGH is 1.7V only and my USB to TTL converter (using CP2102) is not recognizing 1.7V. (Just a guess)

                      Can you share the converter you are using?

                      0_1688192317361_19120120-e210-4dd9-b550-621ee3ef622c-image.png

                      1 Reply Last reply Reply Quote 0
                      • felmueF
                        felmue
                        last edited by felmue

                        Hello @jeetS

                        without a common GND, e.g. COM.X GND not connected to USB to TTL GND and then measuring the voltage between the two is not very useful in most cases. That is why, when two circuits which are powered from different power sources, a common GND is required.

                        Anyhow if you power COM.X without RX connected to anything and then measure between RX and GND and you only get 1.7 V then yes, that is probably too low.

                        If I do the same then I get 3.3 V between RX and GND.

                        I use this USB TTL converter set to 3.3 V.

                        Maybe this article about common ground can help.

                        Thanks
                        Felix

                        GPIO translation table M5Stack / M5Core2
                        Information about various M5Stack products.
                        Code examples

                        1 Reply Last reply Reply Quote 2
                        • J
                          jeetS
                          last edited by jeetS

                          @felmue

                          Hi there,

                          Now, Module is working correctly there were few issues and solved it step by step. This solution is for someone if they found this post & they need help.

                          1. USB to TTL convert was not recognizing UART signals transmitted from SIM7020G module. (as it was 1.7V)
                          2. GND was missing between different module (MOST IMP) (Use common supply maybe PC, SMPS or something else)
                          3. CR should be there after command.

                          What I did is add Logic Level Converter module between USB to TTL converter and SIM7020G module.

                          NOTE: Refer datasheet of IC and do the same connection as shown in datasheet for less garbage data and proper communication.

                          Thank you so much Felix for your help and efforts.

                          0_1688378299054_cb99b643-beb8-4abd-863a-852f34a09dc9-image.png

                          1 Reply Last reply Reply Quote 2
                          • felmueF
                            felmue
                            last edited by

                            Hello @jeetS

                            you are welcome. I am glad to hear you got it working to your liking. And thank you for letting me/us know and for the detailed step by step explanation.

                            Thanks
                            Felix

                            GPIO translation table M5Stack / M5Core2
                            Information about various M5Stack products.
                            Code examples

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post