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

    [SOLVED] Linux pytrack USB to serial

    Scheduled Pinned Locked Moved Getting Started
    usbseriallinuxpytrack
    10 Posts 3 Posters 3.8k 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.
    • Tamm BuhezT Offline
      Tamm Buhez
      last edited by Tamm Buhez

      Hi folks,

      When I plug the pytrack on the USB port of my laptot, the device is not recognized as a USB serial device converter. I got the following log looping over and over:

      Jun 13 02:07:27 mp-de-053 kernel: [ 727.050092] usb 1-1: USB disconnect, device number 85
      Jun 13 02:07:28 mp-de-053 kernel: [ 727.467729] usb 1-1: new full-speed USB device number 86 using xhci_hcd
      Jun 13 02:07:28 mp-de-053 kernel: [ 727.608256] usb 1-1: New USB device found, idVendor=04d8, idProduct=f014
      Jun 13 02:07:28 mp-de-053 kernel: [ 727.608258] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      Jun 13 02:07:36 mp-de-053 kernel: [ 735.651707] usb 1-1: USB disconnect, device number 86
      Jun 13 02:07:36 mp-de-053 kernel: [ 736.067624] usb 1-1: new full-speed USB device number 87 using xhci_hcd
      Jun 13 02:07:36 mp-de-053 kernel: [ 736.207949] usb 1-1: New USB device found, idVendor=04d8, idProduct=f014
      Jun 13 02:07:36 mp-de-053 kernel: [ 736.207951] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      Jun 13 02:07:44 mp-de-053 kernel: [ 744.251230] usb 1-1: USB disconnect, device number 87
      Jun 13 02:07:45 mp-de-053 kernel: [ 744.667687] usb 1-1: new full-speed USB device number 88 using xhci_hcd
      Jun 13 02:07:45 mp-de-053 kernel: [ 744.807839] usb 1-1: New USB device found, idVendor=04d8, idProduct=f014
      Jun 13 02:07:45 mp-de-053 kernel: [ 744.807841] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      Jun 13 02:07:53 mp-de-053 kernel: [ 752.850206] usb 1-1: USB disconnect, device number 88

      I tried to change without succeeded the USB cable. Also disabling USB3 in the BIOS does not help.
      My wipy2 expansion board is well recognized as a FTDI USB Serial Device converter and works like a charm.

      I'm running Debian 8.8 with a 4.9.0-0.bpo.3-amd64 kernel (4.9.25-1~bpo8+1)

      Any help would be grately appreciated.

      Best regards,

      1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino
        last edited by

        That's acting as if the PyTrack was constantly entering DFU mode.

        If you're not consciously pressing the button on the board, perhaps it's somehow 'stuck', try pressing it or maybe tap it to see if it somehow dislodges. Can you check the button for continuity with a multimeter?

        Is it possible you have something connected to the G4/P14 pin on your WiPy/LoPy/..?

        1 Reply Last reply Reply Quote 0
        • Tamm BuhezT Offline
          Tamm Buhez
          last edited by

          Hello @jmarcelino ,

          Thank you very much for your help. To answer your questions, I'm not pressing the buttton at all, it seems indeed stuck. I already tried to press the button without effect.
          With a multimeter the continuity is established when I press the button.
          The behaviour is identical with and without the WiPy and nothing is connected to the G4/P14 pin.

          Is there a way to "unstuck" the device? I received it yesterday, it's a bit disapointing.

          Best regards.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jmarcelino @Tamm Buhez
            last edited by

            @Tamm-Buhez
            Thanks, I'm not sure what it can be but since it is in DFU mode you can try upgrading the firmware using the procedure at https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html#updating-pysense-and-pytrack-firmware

            Do the dfu-util -D ... step right after Linux picks up the device, when
            New USB device found, idVendor=04d8, idProduct=f014
            shows up in the log. You only have 7 seconds after that to enter the dfu-util command.

            Hope this helps!

            Tamm BuhezT 1 Reply Last reply Reply Quote 1
            • Tamm BuhezT Offline
              Tamm Buhez @jmarcelino
              last edited by

              @jmarcelino I already tried after you first answer but dfu-util says that the device is not in DFU mode.

              Tamm BuhezT 1 Reply Last reply Reply Quote 0
              • Tamm BuhezT Offline
                Tamm Buhez @Tamm Buhez
                last edited by

                @jmarcelino
                I finally successfully updated the device as root user. Problem resolved. Thanks a lot!

                1 Reply Last reply Reply Quote 1
                • J Offline
                  jacquej1
                  last edited by

                  Hello,
                  When I connect the Pytrack and send the linux command "dmesg", I have the following message "failed to set dtr/rts". Before I have updated the firmware with fd-util -D ...
                  So, what is way to solve this problem ?
                  Thanks

                  Tamm BuhezT 1 Reply Last reply Reply Quote 0
                  • Tamm BuhezT Offline
                    Tamm Buhez @jacquej1
                    last edited by

                    @jacquej1 said in [resolved] Linux pytrack USB to serial:

                    failed to set dtr/rts

                    HI @jacquej1 ,

                    What is exactly your problem? I also have those messages and my device works very well.

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      jacquej1 @Tamm Buhez
                      last edited by

                      Hi@Tamm-Buhez ,

                      I work with Atom environment.
                      When I want to connect, with the plugin, I have the following message :
                      Failed to connect (Error: Port is not open). Click here to try again. Failed to connect ( error..

                      My seetings are :
                      {
                      "address": "/dev/ttyUS0",
                      "username": "micro",
                      "password": "python",
                      "sync_folder": "/home/jacquesj/OUTILS/PYCOM"
                      }

                      Tamm BuhezT 1 Reply Last reply Reply Quote 0
                      • Tamm BuhezT Offline
                        Tamm Buhez @jacquej1
                        last edited by

                        @jacquej1

                        You should create a new post as your problem is really different from the original I posted to avoid confusing people.
                        That beeing said, I see a typo on address path "/dev/ttyUS0" should be /dev/ttyUSB0"
                        If you want to continue the discussion please create a new topic.

                        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