logo elektroda
logo elektroda
X
logo elektroda

ESP32 - Timed out waiting for packet header at BME280

wosiekpl 1332 12
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18303128
    wosiekpl
    Level 21  
    Hello

    This time ( for the umpteenth time ) I have a problem with programming this module of the
    ESP32. This is what pops up for me after trying to save the file

    esptool.py v2.6
    Serial port COM23
    Connecting........____
    Chip is ESP32D0WDQ6 (revision 1)
    Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None

    A fatal error occurred: Timed out waiting for packet header
    A fatal error occurred: Timed out waiting for packet header

    I am trying to write a program that monitors the data sent from the BME280 sensor .
    There is a lot of advice on Youtube but none has worked for me
    Maybe some hints

    Greetings
  • ADVERTISEMENT
  • #3 18304092
    wosiekpl
    Level 21  
    Hello
    As I write I want to program the ESP32 module so that I can read data from the BME280 sensor but before I do this I am trying to do a test of the module itself

    ESP32 - Timed out waiting for packet header at BME280 .
    ESP32 - Timed out waiting for packet header at BME280 .

    and this pops up

    esptool.py v2.6
    Serial port COM23
    Connecting........_____..
    Chip is ESP32D0WDQ6 (revision 1)

    A fatal error occurred: Invalid head of packet (0x01)
    A fatal error occurred: Invalid head of packet (0x01)
  • #4 18304109
    faber
    Level 24  
    Esp32 has manual boot, hold boot for a few seconds while connecting.
  • ADVERTISEMENT
  • #5 18304197
    wosiekpl
    Level 21  
    It doesn't work , that's how I've done it because I've seen it on the internet. Unfortunately it doesn't work
  • ADVERTISEMENT
  • #6 18304224
    faber
    Level 24  
    wosiekpl wrote:
    It doesn't work , that's how I did it because I saw it on the internet. Unfortunately it does not work
    .
    ah, now i see that the chip detects, this com a bit unusual/high, have you checked in the manager if the device is correctly installed on this 23 port ? did you install any special drivers ? what speed do you have set ?

    Added after 10 [minutes]:

    ok, i see your previous topic, i think you have the wrong board selected, check node32s, speed 912600, 80MHz
  • #7 18304265
    wosiekpl
    Level 21  
    Further error

    ESP32 - Timed out waiting for packet header at BME280 .
  • ADVERTISEMENT
  • #8 18304373
    faber
    Level 24  
    If you have the same error on both modules then everything points to the usb driver.
    And have you checked at all if the serial port monitor shows anything ? putty ?
    Link
  • #9 18304538
    khoam
    Level 42  
    Are you running at 921,600 when loading code? Switch to 115,200. If it gives you problems, switch Flash Mode to DOUT mode (now you have QIO).
  • #10 18304723
    wosiekpl
    Level 21  
    Still nothing , maybe the module is faulty ? Only the red diode is illuminated during programming . In another during programming one diode "blinks".

    Maybe there is another sketch to try that I can upload to check the module
  • #11 18304864
    faber
    Level 24  
    Now I don't quite understand you. There is no connection, so what kind of programming are you talking about?
    Have you checked this serial to see if it works ?
    Another sketch is:
    void setup() {
    }
    
    void loop() {
    
    }
    .
  • #12 18304998
    wosiekpl
    Level 21  
    Still nothing, I suspect a faulty module

    ESP32
    ESP32 - Timed out waiting for packet header at BME280

    NODEMU32
    ESP32 - Timed out waiting for packet header at BME280 NODEMU32


    I selected the module first as ESP32 and then as NODEMU32 and still nothing.

    I'll buy a new one and then we'll see if it's OK.

    Added after 33 [minutes]:

    Still nothing , I suspect there is a faulty module

    ESP32
    ESP32 - Timed out waiting for packet header at BME280

    NODEMU32
    ESP32 - Timed out waiting for packet header at BME280 NODEMU32





    I selected the module first as ESP32 and then as NODEMU32 and still nothing.

    I'm going to buy a new one and then we'll really see if it's OK.


    Here it says which module should be selected in the settings


    ESP32 - Timed out waiting for packet header at BME280

    Then I will try to change the drivers as my colleague Faber writes

    Added after 2 [hours] 34 [minutes]:

    Hello

    This time I have a question about ports and their detection. The modul , according to what I found on the internet is NodeMCU V1.0/V3 . In the pictures on the internet , it differs a little in the location of the LEDs . From what I have seen on the internet , it has two leds , one is on the left side next to the CP2102 chip and the other is on the right , at the top next to the Wifi antenna.
    On mine both leds are at the bottom , below the metal screen. One is lit , the red one on the left , the other on the right I have never seen lit.
    I power the modul from the USB port of my computer and on the 5 volt pin I have 4.65 volts and on the 3.3 volt pin I have 3.28 volts. On the board underneath it says ESP32 DEVKIT V1 .
    And back to the ports. When connected to the HUB 5 X USB splitter in the manager shows port 23 , when connected to another USB port directly on the computer also shows the same port ie 23 .

    ESP32 - Timed out waiting for packet header at BME280 .
  • #13 18311949
    wosiekpl
    Level 21  
    Hello

    Finally managed to program the module , which was so resistant. This module is an ESP32 and such I had to install manually because the Arduino IDE program did not detect it. Then the problem

    A fatal error occurred: Timed out waiting for packet header

    I solved it with a 10 uF capacitor connected to ground and to the EN pin. I replaced the USB cable with a thicker one and the last thing I did was to connect the module directly to the USB port on the computer and not the way I had it before, i.e. through a Hub.

    After programming, the red diode lights up constantly and the blue diode flashes according to the programmed on and off times.

Topic summary

The discussion revolves around issues faced while programming the ESP32 module, specifically encountering a "Timed out waiting for packet header" error during the upload process. Users suggest various troubleshooting steps, including checking the correct board selection (Node32s), ensuring proper USB drivers are installed, and adjusting the baud rate settings. One user resolved the issue by using a thicker USB cable, connecting directly to the computer's USB port, and adding a 10 uF capacitor between the EN pin and ground. The user also confirmed that the red LED lights up constantly while the blue LED flashes according to the programmed intervals after successful programming.
Summary generated by the language model.
ADVERTISEMENT