Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    UART connexion failled

    Scheduled Pinned Locked Moved SiPy
    22 Posts 4 Posters 414 Views 4 Watching
    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.
    • Q Offline
      quentho
      last edited by

      Hello,

      It will soon be a year and a half that I use my sipy in UART connection via USB by means of an FTDI. I have never had a problem with it. Since the update of Atome and Pymakr I can't get the prompt. I tried with a new sipy and it does not work. I also tried with different FTDI but I had the same results. But when I use a pysense it works. I have updated the latest firmware for sipy cards.
      My question is did someone experience the same problem and if not do you have any suggestions on how to resolve it.

      you can see the Electrical wiring on the picture

      88968134_2265947897039986_2877973635618832384_n-ConvertImage-ConvertImage.jpg

      Thank you in advance and good day to you.!89211857_635942097199263_3804664605561585664_n-ConvertImage.jpg

      89124651_512283819673648_5741414068275642368_n-ConvertImage.jpg

      robert-hhR 1 Reply Last reply Reply Quote 0
      • T Offline
        thibault
        last edited by

        The Vin of the SIPY need voltage >= 3.5 volt isn't it? On your picture it seems you give 3.3 volt. Are you sure that the sipy was started? You got wifi connection?

        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @quentho
          last edited by

          @quentho ddi you try to use a simple terminal emulator like Putty or screen or picocom as crosscheck for the UART connection? After updates of Atom or VSC, pymakr sometimes stumbles.
          @thibault I tested at least a LoPy with lower input voltages. It worked fine down to 2.8V. Below 3.5V, the regulator switches to bypass mode, resulting at ~3.2V on the board. The ESP32 works fine down to 2.3V. The Sigfox/Lora chip may not work that far down, but 3.2V should be OK.

          T Q robert-hhR 3 Replies Last reply Reply Quote 0
          • T Offline
            thibault @robert-hh
            last edited by

            @robert-hh nice tip thank's for this information

            1 Reply Last reply Reply Quote 0
            • Q Offline
              quentho @robert-hh
              last edited by

              @robert-hh said in UART connexion failled:

              crosscheck
              Thank for the answer. I can see my board connected but i can't have the prompt.

              I will use putty, it is the putty connection good ? because i can't open
              putty.JPG

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                thibault @quentho
                last edited by thibault

                @quentho don't hesitate to check this page: https://docs.pycom.io/gettingstarted/programming/repl/serial/

                The baudrate was (by default) 115200 so i think is that your problem. (maybe you need to remove the flow control too)

                Q 1 Reply Last reply Reply Quote 0
                • Q Offline
                  quentho @thibault
                  last edited by

                  @thibault

                  i try with 115200 , with and without flow control but i always have :
                  puttty_erro.JPG

                  robert-hhR 2 Replies Last reply Reply Quote 0
                  • robert-hhR Offline
                    robert-hh @robert-hh
                    last edited by

                    @robert-hh the baud rate is 115200, and you have to turn off flow control.

                    1 Reply Last reply Reply Quote 0
                    • robert-hhR Offline
                      robert-hh @quentho
                      last edited by

                      @quentho close atom.

                      1 Reply Last reply Reply Quote 0
                      • robert-hhR Offline
                        robert-hh @quentho
                        last edited by

                        @quentho you can check whether it is COM12 in the device manager. The device should appear and disappear when you plug and unplug the FTDI board.

                        Q 1 Reply Last reply Reply Quote 0
                        • Q Offline
                          quentho @robert-hh
                          last edited by

                          @robert-hh i did what you said but i always have the seem result.
                          Unable to open connection to COM12

                          robert-hhR 1 Reply Last reply Reply Quote 0
                          • robert-hhR Offline
                            robert-hh @quentho
                            last edited by

                            @quentho Are you sure that COM12 exists and is the proper port? Putty will not tell you.

                            Q 1 Reply Last reply Reply Quote 0
                            • Q Offline
                              quentho @robert-hh
                              last edited by

                              @robert-hh
                              i see the connection on putty but i haven't the prompt.
                              I had install the FTDI driver but it's not working.
                              i chaned the sipy , the ftdi , the wire but it's not working.
                              when i connect with a pysense or pytrack it's working. I don't understand...

                              robert-hhR 1 Reply Last reply Reply Quote 0
                              • robert-hhR Offline
                                robert-hh @quentho
                                last edited by

                                @quentho A few things to check:

                                • Please ensure, that the flow control setting of putty is disabled.
                                • Try to swap RX and TX
                                • Windows assigns COMxx numbers based on the USB ID. So if Pysense uses COM12, the FTDI will most probably be assigned to a different COMxx number. Open the device manage in Windows, section COM ports, and look, which COM ports are active, when the FTDI is connected. It shoul disappear when you disconnect the FTDI adapter.
                                Q 1 Reply Last reply Reply Quote 0
                                • Q Offline
                                  quentho @robert-hh
                                  last edited by

                                  @robert-hh
                                  "Please ensure, that the flow control setting of putty is disabled."

                                  When i disconnect and reconnect my sipy, the flow controle set at XOn/XOFF. The speed is 9600. But after i change to none and 115200 for the speed bhut it's not working.

                                  "Try to swap RX and TX"
                                  i did both each time.

                                  "Windows assigns COMxx numbers based on the USB ID. So if Pysense uses COM12, the FTDI will most probably be assigned to a different COMxx number. Open the device manage in Windows, section COM ports, and look, which COM ports are active, when the FTDI is connected. It shoul disappear when you disconnect the FTDI adapter."
                                  i had check this one and it's on the good port. My bord is connected but i don't have the prompt . sometimes I have strange characters parading

                                  robert-hhR 1 Reply Last reply Reply Quote 0
                                  • robert-hhR Offline
                                    robert-hh @quentho
                                    last edited by robert-hh

                                    @quentho Strange characters are a sign of wrong baud rate. What happens if you are connected with 115200 baud and push reset on the SiPy?
                                    As terminal emulator you may also try TeraTerm. TeraTerm remembers the recent setting ant lets you only use active COM ports.

                                    Edit: You can also start Putty from the command line, specifying Port and speed, e.g.:

                                    putty -serial COM12 115200

                                    Q 1 Reply Last reply Reply Quote 0
                                    • Q Offline
                                      quentho @robert-hh
                                      last edited by

                                      @robert-hh
                                      i have a prompt but in can't write inside. And i can't run or download!!

                                      bug_ftdi.JPG

                                      robert-hhR 1 Reply Last reply Reply Quote 0
                                      • robert-hhR Offline
                                        robert-hh @quentho
                                        last edited by

                                        @quentho that looks like a flow control issue, or a problem with the wire into RX of the sipy.

                                        Q 1 Reply Last reply Reply Quote 0
                                        • Q Offline
                                          quentho @robert-hh
                                          last edited by

                                          @robert-hh said in UART connexion failled:

                                          that looks like a flow control issue, or a problem with the wire into RX of the sipy.

                                          I had chane rx to tx , i set the bit flow controle with tera term and i had change my sipy and it's working thank you for your time !

                                          robert-hhR 1 Reply Last reply Reply Quote 1
                                          • robert-hhR Offline
                                            robert-hh @quentho
                                            last edited by

                                            @quentho That is good. Just to add some more information for those who are in a similar situation: with Putty you can also specify all settings on the command line, e.g.:

                                            putty -serial COM12 -sercfg 115200,8,1,n,N

                                            And I faintly recall, that one of either Putty or TeraTerm is using it's own drivers. So it may still be a driver problem.

                                            L 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom