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

    Problems with Pymakr in VS code

    Scheduled Pinned Locked Moved Software Tools
    pymakrotherbug
    9 Posts 3 Posters 1.2k 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.
    • N Offline
      nervencid
      last edited by nervencid

      Hello:

      I'm new and i tried to install Pymakr in atom and worked fine for now, but when i tried to install it on VSCODE, it didn't worked, the device is not connecting and it crashes.

      I got in the console this:

      Connecting on 192.168.4.1...
      Connection error: Error: Login timed out

      Where can i report this bug?

      Thank you

      1 Reply Last reply Reply Quote 0
      • R Offline
        Ralph
        last edited by

        Hi @nervencid, can you provide any info on how it crashes? The 'Connection error: Error: Login timed out' is not a crash, it's that you are not connected to the boards wifi. If you want to connect over usb, I'd recommend enabling auto_connect in the general settings.

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          nervencid @Ralph
          last edited by

          @ralph Thank you for your answer:

          The autoconnect via USB is enabled, and i am connecting via USB it works fine on atom, but it is not connecting on VScode

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            Ralph @nervencid
            last edited by

            @nervencid Did you set auto_connect in the global settings? This setting is not allowed in the project settings, so it's ignored. Which would result in the message you're seeing.

            N 1 Reply Last reply Reply Quote 0
            • W Offline
              washcycle
              last edited by

              This is my project pymakr.conf in vscode

              {
                  "address": "COM6",
                  "username": "micro",
                  "password": "python",
                  "open_on_start": true,
                  "safe_boot_on_upload": true,
                  "sync_folder": "wipy"
              }
              

              If you are using USB you are going to want to fill in the COM portion. I haven't used the atom IDE yet, not sure if it is smarter.

              1 Reply Last reply Reply Quote 0
              • N Offline
                nervencid @Ralph
                last edited by

                @ralph Hello and thank you for the answer:

                How can i find the configurations for VS Code¡

                Thank you

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  Ralph @nervencid
                  last edited by

                  @nervencid On the bottom there's a button called 'all commands' which opens a list. In the list click 'global settings'. There you can change the 'auto_connect' setting.

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    nervencid @Ralph
                    last edited by

                    @ralph Hello and thank you for the answer, but the autoconnect is already in false, this is te configuration settings on VS Code:

                    {
                    	"address": "192.168.4.1",
                    	"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,
                    	"py_ignore": [],
                    	"fast_upload": false
                    }
                    
                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      Ralph @nervencid
                      last edited by

                      @nervencid With autoconnect to false, it indeed tries to connect to the address 192.168.4.1, so the output you posted is as expected. To connect you can either:

                      • connect to the devices wifi and klik connect again, or:
                      • change the auto_connect setting to true, or:
                      • set the address setting to the correct comport (you can find it using the 'list serialports' command)
                      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 / 1
                      • First post
                        Last post

                      Pycom on Twitter

                      Pycom