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

    VSCode connection timed out

    Scheduled Pinned Locked Moved Pymakr
    vscodelopy4pytrack
    8 Posts 5 Posters 884 Views 5 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.
    • D Offline
      dfcarpenter
      last edited by

      I just got a new LoPy4 mounted on a PyTrack and cannot connect to the board at all through VSCode. I am using a Mac with USB-C ports and have a usb hub which the lopy4 is plugged into. The blue heartbeat is working and I can use the osx screen utility to connect to the board and run a few commands.

      In VScode when I run List Serial Ports I get

      /dev/tty.usbmodemPyb3c080 (Pycom) (copied to clipboard)
      

      I have switched between both

      /dev/tty.usbmodemPyb3c080
      /dev/cu.usbmodemPyb3c080 (which I see in /dev/)
      

      and on running Pymakr > Connect I just keep getting "Connection timed out. Click here to try again."

      I have tried pressing reset on the LoPy and nothing seems to work.

      Pymakr.json

      {
      	"address": "/dev/cu.usbmodemPyb3c080",
      	"username": "micro",
      	"password": "python",
      	"sync_folder": "",
      	"open_on_start": true,
      	"safe_boot_on_upload": false,
      	"sync_file_types": "py,txt,log,json,xml,html,js,css,mpy",
      	"ctrl_c_on_connect": false,
      	"sync_all_file_types": false,
      	"auto_connect": false
      }
      
      danD 1 Reply Last reply Reply Quote 0
      • T Offline
        tttadam
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • danD Offline
          dan @dfcarpenter
          last edited by

          @dfcarpenter have you tried restarting your Mac? Sometimes I had issues with serial ports and that usually solved it. /dev/tty.usbmodemPyb3c080 should be the correct one.

          D 2 Replies Last reply Reply Quote 0
          • D Offline
            dfcarpenter
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • D Offline
              dfcarpenter @dan
              last edited by

              @dan

              Still getting connection errors

              Found 4 serialports

              /dev/tty.usbmodemPyb3c080 (Pycom) (copied to clipboard)
              /dev/tty.MALS (Unknown manufacturer)
              /dev/tty.SOC (Unknown manufacturer)
              /dev/tty.TaoTronicsTT-BH07-CSRGA (Unknown manufacturer)
              Connecting on /dev/tty.usbmodemPyb3c080...
              > Connection timed out. Click here to try again.
              
              1 Reply Last reply Reply Quote 0
              • D Offline
                dfcarpenter @dan
                last edited by

                @dan

                Also for the screen utility on OSX I noticed I can only connect using

                /dev/cu.usbmodel* 115200

                not
                /dev/tty.usbmodel* 115200

                Which is strange to me because the List Serial Ports command from the plugin show me the *tty.

                1 Reply Last reply Reply Quote 0
                • V Offline
                  voneone
                  last edited by

                  Facing the extract same problem in VSCode (connection timed out). Do you have a solution?

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gijs
                    last edited by Gijs

                    This is a new issue (please do not reopen old threads), only on VSCode, we are working on a solution. There's another thread here on the recent issues: https://forum.pycom.io/topic/6809/pymakr-1-1-8-vs-code-failed-to-connect/ In the meantime, you can use Atom + Pymakr. Sorry for the inconvenience

                    Gijs

                    1 Reply Last reply Reply Quote 1

                    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 / 1
                    • First post
                      Last post

                    Pycom on Twitter

                    Pycom