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

    PyTrack not recognised as DFU device

    Scheduled Pinned Locked Moved Issues & Bugs
    pytrackfirmware update
    16 Posts 5 Posters 3.6k 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.
    • J Offline
      jmarcelino @dandrews
      last edited by

      @dandrews
      Does that same cable work to get a serial terminal?

      1 Reply Last reply Reply Quote 0
      • D Offline
        dandrews
        last edited by

        Yeah, I can connect to the pymakr atom plugin with it. Which is why Im so surprised this doesn't work. I don't suppose there's a means of pushing the firmware via atom?

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

          @dandrews
          Are you running dfu-util with sudo? Could be a permissions problem

          1 Reply Last reply Reply Quote 0
          • D Offline
            dandrews
            last edited by

            No, running with sudo gives the same output

            1 Reply Last reply Reply Quote 0
            • X Offline
              Xykon administrators
              last edited by

              I would suggest you run sudo tail -f /var/log/kern.log in a second terminal window.

              If the board is discovered in DFU update mode you should see the following:

              Sep 15 22:03:37 UDOO-X86 kernel: [ 3803.217901] usb 1-2: new full-speed USB device number 34 using xhci_hcd
              Sep 15 22:03:37 UDOO-X86 kernel: [ 3803.358711] usb 1-2: New USB device found, idVendor=04d8, idProduct=f014
              Sep 15 22:03:37 UDOO-X86 kernel: [ 3803.358728] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
              

              Once you see this message run sudo dfu-util -D pytrack_0.0.4.dfu within 7 seconds in the other terminal window.

              If you see the following instead your board is running in normal mode and dfu-util will not work:

              Sep 15 22:03:46 UDOO-X86 kernel: [ 3812.526338] usb 1-2: new full-speed USB device number 35 using xhci_hcd
              Sep 15 22:03:46 UDOO-X86 kernel: [ 3812.669469] usb 1-2: New USB device found, idVendor=04d8, idProduct=f013
              Sep 15 22:03:46 UDOO-X86 kernel: [ 3812.669486] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
              Sep 15 22:03:46 UDOO-X86 kernel: [ 3812.669499] usb 1-2: Product: Pytrack
              Sep 15 22:03:46 UDOO-X86 kernel: [ 3812.669510] usb 1-2: Manufacturer: Pycom
              Sep 15 22:03:46 UDOO-X86 kernel: [ 3812.669518] usb 1-2: SerialNumber: Py343434
              Sep 15 22:03:46 UDOO-X86 kernel: [ 3812.676628] cdc_acm 1-2:1.0: ttyACM1: USB ACM device
              

              Christian Ehlers

              1 Reply Last reply Reply Quote 0
              • J Offline
                jcaron @dandrews
                last edited by

                @dandrews just to be sure, you have only USB and no battery connected, right?

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dandrews
                  last edited by

                  @Xykon Apologies for the late reply, day job getting in the way. I ran tail and saw the update mode output you described, but dfu-util still won't recognise PyTrack as a DFU device. Could this perhaps be a driver issue? Am going to attempt on my desktop (also ubuntu, but not a Dell) now to see if there is any difference.

                  @jcaron 100% pure USB, no battery at all

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dandrews
                    last edited by

                    Success! Worked on the desktop first time! To that end though, does anyone have an idea as to how I check which driver I have/do not have on my laptop... and which one should I have?

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

                      @dandrews
                      There is no driver, dfu-util communicates directly via libusb.

                      Are the two Ubuntu versions different? Perhaps one is more locked down?

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dandrews
                        last edited by

                        @jmarcelino Both are exactly the same version (16.04) The only reason I mention drivers is because I know Dell have to install some proprietary ones when you buy Ubuntu direct from them. But, as you say, it could very well be a case of it being more locked down. I've no real experience in what to do about that though, any thoughts?

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

                          This is a very long shot but can you try to disable Bluetooth in your Dell BIOS and try dfu-util again?

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pyoneer
                            last edited by pyoneer

                            Using sudo tail -f /var/log/kern.log was indeed helpful! Another marker is btw the displayed info:

                            Apr 30 15:51:51 tpX270 kernel: [81026.317961] usb 1-4.2: New USB device found, idVendor=04d8, idProduct=f011, bcdDevice= 0.08
                            

                            You want to look for idProduct=f011. Compare that ID with the table on the firmware update guide. For the pysense expension f011 indicates update mode.

                            You can also retrieve the same information with the simpler: lsusb command which should yield (among others):

                            Bus 001 Device 028: ID 04d8:f011 Microchip Technology, Inc. 
                            

                            Again the info f011 is what you are interested in.

                            However, even while being in update mode I got the error message from above. What worked for me was to keep holding the button on the Pysense board while executing:

                            sudo dfu-util -D pysense_0.0.8.dfu 
                            

                            and a little update: I just had to do a firmware update on a second Pysense expansion board. Things didn't work as before, even though the board was clearly in update mode. This time I just repeated the process a couple of times (unchanged) until it worked ... there seems to be some randomness :(

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              jcaron @pyoneer
                              last edited by

                              @pyoneer It's mostly a matter of timing. Too early and the device is not yet up. Too late and the Pysense has exited DFU mode and booted normally. IIRC the window is about 7 seconds.

                              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