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

    Failed to connect (Port is not open)

    Scheduled Pinned Locked Moved Comments & Feedback
    pytrack
    28 Posts 3 Posters 13.7k Views 3 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.
    • M Offline
      MJ
      last edited by MJ

      Currently try to run the coding for the pytrack but when connect the pytrack it show error.

      0_1507775962117_error.JPG

      Before this i have update the firmware with everything done and replace the "COM6" on the global setting. However, after few days i try to connect the pytrack it show the error. May i know how to fix it?

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

        @mj a) Did you check in the device manager, which port is actually used?
        b) Is another program running wich uses this port?

        1 Reply Last reply Reply Quote 0
        • M Offline
          MJ
          last edited by

          Hi @robert-hh , i checked in device manager it only showing pytrack without the COM port number and i have no program running on the same port.

          0_1507805551395_device manager.JPG

          Any ideas on solving this problem? I have no problem to connect my lopy and expansion board but pytrack together with lopy can not work for it.

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

            @mj You may need a driver. There was discussion here:
            https://forum.pycom.io/topic/1291/solved-pytrack-usb-driver
            and here:
            https://forum.pycom.io/topic/1840/pytrack-guidelines

            1 Reply Last reply Reply Quote 0
            • M Offline
              MJ
              last edited by

              @robert-hh i have tried to install the driver and done for the step but the problem is still there showing 0 serial port. How can i fix it?

              0_1507821104753_0 serial por.JPG

              How can i fix it? Hopefully can solve this in a very short time, need it urgently.

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

                @mj I understand that it worked before. Did you change anything in the set-up, even such a trivial thing like the USB cable or the USB port you used?

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MJ @robert-hh
                  last edited by

                  @robert-hh Thanks for replying. I have try for another usb cable and port instead but the problem is still the same.

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    crumble @MJ
                    last edited by

                    @mj have you changed boot.py? You need these lines in it:
                    '''
                    from machine import UART

                    uart = UART(0, baudrate=115200)
                    os.dupterm(uart)
                    '''

                    And the pins P0, P1 shall not be used by your hardware extensions or reconfigured in your program.

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

                      @crumble Reconfiguring P0/P1 should not affect the cisibility as COM port. The UART/USB bridge should always be registered by Windows as such, even is the ESP32 is not connected to it. So I still guess it's a driver problem. Try to reinstall the USB driver from the vendor's web site: http://www.ftdichip.com/Drivers/VCP.htm

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        MJ
                        last edited by

                        @crumble i have try to install the driver and follow the step given. But when i install the driver it showing the driver is already update.

                        0_1507858090340_update.JPG

                        I try connect the pytrack in atom it stills showing the "Found 0 serial port"

                        0_1507858159552_0 serial por.JPG

                        May i know how to get it fix ?

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

                          @mj Do not use the driver method, download the driver file and execute that manually.

                          M 1 Reply Last reply Reply Quote 0
                          • C Offline
                            crumble @MJ
                            last edited by crumble

                            Have you updated the firmware of the pytrack?

                            After that mine was not detected as a com device. You are using windows, right? Please check in the device manager, if your pytrack ist detected as a com or a dfu device. I can't remember how i fixed this. I guess I deinstalled the dfu driver, so that the pytrack was detected as a com device again.

                            Install todays pytrack firmware, before you do this ;)

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              MJ @robert-hh
                              last edited by

                              @robert-hh I have downloaded the driver and follow the step inside the link but still showing the same problem.

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                MJ @crumble
                                last edited by

                                @crumble I have installed the dfu driver in the pycom.documentation yesterday and update the Pytrack, I also ensure that the Pytrack is in DFU mode as well. The problem is still there.
                                I have tried my Pytrack on my friends laptop since she only using Lopy and expansion board only. My Pytrack works on her laptop as normal but when I tried it on my laptop it stated zero serial board. I have no problem for my expansion board too only Pytrack goes wrong. This make me feel confuse and I have no idea what happen to my Pytrack.

                                Today's dfu driver is it the latest?

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

                                  @mj I understand that @crumble suggests to deinstall the dfu driver on that USB device (and maybe otehr drivers too) and reinstall the COM-VCP driver again. That sounds reasonable.

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    crumble @MJ
                                    last edited by

                                    @mj My PyTrack is now nón 0.0.6 as well. While libusK is installed, Windows 7 detects it as a libusK device for some seconds. You have to be quick again.

                                    • Open the device manager,
                                    • Plugin the pytrack. It will be listed as a libusK device not as com
                                    • right click on pytrack
                                    • select deinstall driver, hook uninstall driver
                                    • rescan devices
                                    • pytrack will become a com device
                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      MJ @crumble
                                      last edited by

                                      @crumble According to the pycom.io documentation, the latest Pytrack dfu is version 0.0.4. So far, I had tried to uninstall driver ans scan again it still under libusbK. Not showing COM.

                                      C 1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        crumble @MJ
                                        last edited by

                                        @mj this worked on my machine. Have you cecked that files shall be removed when uninstalling the driver?

                                        Version 0.0.6 is linked in the Announcement section of the forum. The docu still shows 0.0.4 as the latest. 0.0.6 fixed the wake-up from deepsleep reason.

                                        I Stuck now on upgrading the firmware of the LoPy on the PyTrack. Last time, I Pluged it on a ExpansionBoard. This time I soldered a switch on the LoPy. As a resut it fails allways with connection problems :-/

                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          MJ @crumble
                                          last edited by

                                          @crumble Hi, i have uninstall the pytrack from the device manager and plugin in again it show under "other devices" as shown below.

                                          0_1507998184566_pytrack devices.JPG

                                          I followed the link in https://docs.pycom.io/chapter/pytrackpysense/installation/drivers.html although my windows is windows 8 not windows 7. But when i update the driver i encounter this showing that the third party does not contain the INF digital signature information.

                                          0_1507998279819_1510.JPG

                                          How can solve this problem?

                                          C 1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            crumble @MJ
                                            last edited by

                                            Please try to install the driver with administrator rights.The driver is not signed by someone whicht the OS trust. If you have the rights, you can tell the system that you trust the driver.

                                            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