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

    Exception: Failed to connect to ESP32: Timed out waiting for packet header

    Scheduled Pinned Locked Moved LoPy
    12 Posts 3 Posters 5.3k 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.
    • C Offline
      chrisq
      last edited by

      Trying to upgrade the firmware I get the error in the topic.

      The lopy is placed in the expansion board, led at the same end as usb.
      G23 and GND are connected.
      I have read/write access to the usb-serial device it presents itself as.

      Any ideas?

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        abilio @chrisq
        last edited by

        Hi @chrisq, can you confirm the LED blinking if you turn the board on without the wire?

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          chrisq @abilio
          last edited by

          @abilio Thank you for the quick reply.
          Yes, the led is blinking blue about every 4 seconds without the wire.

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            abilio @chrisq
            last edited by

            @chrisq Do you have the jumpers in the expansion board?

            C 2 Replies Last reply Reply Quote 0
            • C Offline
              chrisq
              last edited by

              In case it's useful:

              [ 8032.623635] usb 2-2: new full-speed USB device number 20 using xhci_hcd
              [ 8032.807496] ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
              [ 8032.807536] usb 2-2: Detected FT-X
              [ 8032.807724] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
              
               chrisq@berber   ~  lsusb
              Bus 002 Device 020: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
              
               chrisq@berber   ~  groups
              adm disk uucp log rfkill video audio floppy input power users docker chrisq
              
               chrisq@berber   ~  ls -la /dev/ttyUSB0
              crw-rw---- 1 root uucp 188, 0 Oct 31 15:29 /dev/ttyUSB0
              
              lsusb -vvv
              
                bcdUSB               2.00
                bDeviceClass            0
                bDeviceSubClass         0
                bDeviceProtocol         0
                bMaxPacketSize0         8
                idVendor           0x0403 Future Technology Devices International, Ltd
                idProduct          0x6015 Bridge(I2C/SPI/UART/FIFO)
                bcdDevice           10.00
                iManufacturer           1
                iProduct                2
                iSerial                 3
                bNumConfigurations      1
                Configuration Descriptor:
                  bLength                 9
                  bDescriptorType         2
                  wTotalLength           32
                  bNumInterfaces          1
                  bConfigurationValue     1
                  iConfiguration          0
                  bmAttributes         0x80
                    (Bus Powered)
                  MaxPower               90mA
                  Interface Descriptor:
                    bLength                 9
                    bDescriptorType         4
                    bInterfaceNumber        0
                    bAlternateSetting       0
                    bNumEndpoints           2
                    bInterfaceClass       255 Vendor Specific Class
                    bInterfaceSubClass    255 Vendor Specific Subclass
                    bInterfaceProtocol    255 Vendor Specific Protocol
                    iInterface              2
                    Endpoint Descriptor:
                      bLength                 7
                      bDescriptorType         5
                      bEndpointAddress     0x81  EP 1 IN
                      bmAttributes            2
                        Transfer Type            Bulk
                        Synch Type               None
                        Usage Type               Data
                      wMaxPacketSize     0x0040  1x 64 bytes
                      bInterval               0
                    Endpoint Descriptor:
                      bLength                 7
                      bDescriptorType         5
                      bEndpointAddress     0x02  EP 2 OUT
                      bmAttributes            2
                        Transfer Type            Bulk
                        Synch Type               None
                        Usage Type               Data
                      wMaxPacketSize     0x0040  1x 64 bytes
                      bInterval               0
              
              
              
              1 Reply Last reply Reply Quote 0
              • C Offline
                chrisq @abilio
                last edited by

                @abilio Yes

                1 Reply Last reply Reply Quote 0
                • C Offline
                  chrisq @abilio
                  last edited by

                  @abilio The lopy shows up when scanning for wifi ap's (unless there's someone else in the office who also got one :) ).

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

                    Can you check with a terminal program that you get this output when you reset the board while the G23/GND wire is connected?

                    rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
                    waiting for download
                    

                    Can you post the full output from the updater when you run it manually?

                    bin/updater.py -f firmware/lopy_0.9.1.b1_868.bin -p /dev/ttyUSB0
                    

                    Make sure to use the correct file for your region (868/915).

                    Christian Ehlers

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      chrisq
                      last edited by

                      @Xykon Thank you for the reply!

                      Below is the result.
                      I did just notice, however, that my expansion board did not come with a jumper on the "TX" pins, while in the picture docs.pycom.io it seems to be there. Could that be the issue?

                      
                      python2 bin/updater.py -f firmware/lopy_0.9.1.b1_868.bin -p /dev/ttyUSB0
                      Namespace(file='firmware/lopy_0.9.1.b1_868.bin', port='/dev/ttyUSB0')
                      Connecting...
                      Exception: Failed to connect to ESP32: Timed out waiting for packet header, on line 75
                      
                      
                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        abilio @chrisq
                        last edited by abilio

                        Yes @chrisq, we've just found that was the cause for another user (see here). Can you place a jumper on TX and retry. If you don't have spare jumpers, you can take out the one that says BAT and use it to test.

                        C 1 Reply Last reply Reply Quote 0
                        • C Offline
                          chrisq @abilio
                          last edited by

                          @abilio Mystery solved!
                          A paperclip worked as well, and I now found the original jumper lodged in a corner of the bubble bag.
                          Thanks for all the help, I think I'm good to go now :)

                          A 1 Reply Last reply Reply Quote 1
                          • A Offline
                            abilio @chrisq
                            last edited by

                            @chrisq, good to know you pulled a Macgyver and it worked :) . I'm proceeding to to close this thread now as it was solved.

                            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