I ran the wifiScan and wifiClientStaticIP sketches without a problem and can ping the static IP ok. Then, trying to run wifi_Web_Server_Outputs and I get the output below. Below that is the output from web_server_with arduino sketch.
from wifiClientStaticIP
Sketch uses 642654 bytes (49%) of program storage space. Maximum is 1310720 bytes.
Global variables use 38016 bytes (11%) of dynamic memory, leaving 289664 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port COM17
Connecting…….._____….._____..
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: c4:4f:33:0a:6c:e1
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47…
Writing at 0x0000e000… (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 5957.7 kbit/s)…
Hash of data verified.
Compressed 15328 bytes to 9994…
Writing at 0x00001000… (100 %)
Wrote 15328 bytes (9994 compressed) at 0x00001000 in 0.1 seconds (effective 936.1 kbit/s)…
Hash of data verified.
Compressed 642768 bytes to 384536…
Writing at 0x00010000… (4 %)
Writing at 0x00014000… (8 %)
Writing at 0x00018000… (12 %)
Writing at 0x0001c000… (16 %)
Writing at 0x00020000… (20 %)
Writing at 0x00024000… (25 %)
Writing at 0x00028000… (29 %)
Writing at 0x0002c000… (33 %)
Writing at 0x00030000… (37 %)
Writing at 0x00034000… (41 %)
Writing at 0x00038000… (45 %)
Writing at 0x0003c000… (50 %)
Writing at 0x00040000… (54 %)
Writing at 0x00044000… (58 %)
Writing at 0x00048000… (62 %)
Writing at 0x0004c000… (66 %)
Writing at 0x00050000… (70 %)
Writing at 0x00054000… (75 %)
Writing at 0x00058000… (79 %)
Writing at 0x0005c000… (83 %)
Writing at 0x00060000… (87 %)
Writing at 0x00064000… (91 %)
Writing at 0x00068000… (95 %)
Writing at 0x0006c000… (100 %)
Wrote 642768 bytes (384536 compressed) at 0x00010000 in 5.6 seconds (effective 910.3 kbit/s)…
Hash of data verified.
Compressed 3072 bytes to 144…
Writing at 0x00008000… (100 %)
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1755.4 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…
from wifi_web_server_outputs
Sketch uses 648306 bytes (49%) of program storage space. Maximum is 1310720 bytes.
Global variables use 38024 bytes (11%) of dynamic memory, leaving 289656 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port COM17
Connecting…….._____….._____….._____….._____….._____….._____….._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Hello, yes you are correct the first time the code uploaded successfully. However, in your 2nd attempt it looks like the ESP32 is failing to establish a serial communication, please read this section “4. A fatal error occurred: “Failed to connect to ESP32: Timed out… Connecting…”: https://rntlab.com/esp32-troubleshooting-guide/
Thanks for your patience!
I have done that exactly (holding down the right boot button until is says connecting) and I get this every time.
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
Sketch uses 648306 bytes (49%) of program storage space. Maximum is 1310720 bytes.
Global variables use 38024 bytes (11%) of dynamic memory, leaving 289656 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port COM17
Connecting…….._____….._____….._____….._____….._____….._____….._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Just went threw it again, starting with wifiClientStaticID. That seemed to go ok. I could ping the IP (192.168.0.155) and got four responses.
Ran wifl_web_server_outputs holding down the boot button until connecting was done.
I could no longer ping the IP and could not connect to 192.168.0.155. I am missing something here, but as far as I can tell, I have followed the instructions. After running this, I could not open it in the browser either.
Here is the output…
Sketch uses 648306 bytes (49%) of program storage space. Maximum is 1310720 bytes.
Global variables use 38024 bytes (11%) of dynamic memory, leaving 289656 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port COM17
Connecting…..
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: c4:4f:33:0a:6c:e1
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47…
Writing at 0x0000e000… (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 6553.6 kbit/s)…
Hash of data verified.
Compressed 15328 bytes to 9994…
Writing at 0x00001000… (100 %)
Wrote 15328 bytes (9994 compressed) at 0x00001000 in 0.1 seconds (effective 936.1 kbit/s)…
Hash of data verified.
Compressed 648416 bytes to 387524…
Writing at 0x00010000… (4 %)
Writing at 0x00014000… (8 %)
Writing at 0x00018000… (12 %)
Writing at 0x0001c000… (16 %)
Writing at 0x00020000… (20 %)
Writing at 0x00024000… (25 %)
Writing at 0x00028000… (29 %)
Writing at 0x0002c000… (33 %)
Writing at 0x00030000… (37 %)
Writing at 0x00034000… (41 %)
Writing at 0x00038000… (45 %)
Writing at 0x0003c000… (50 %)
Writing at 0x00040000… (54 %)
Writing at 0x00044000… (58 %)
Writing at 0x00048000… (62 %)
Writing at 0x0004c000… (66 %)
Writing at 0x00050000… (70 %)
Writing at 0x00054000… (75 %)
Writing at 0x00058000… (79 %)
Writing at 0x0005c000… (83 %)
Writing at 0x00060000… (87 %)
Writing at 0x00064000… (91 %)
Writing at 0x00068000… (95 %)
Writing at 0x0006c000… (100 %)
Wrote 648416 bytes (387524 compressed) at 0x00010000 in 5.7 seconds (effective 916.0 kbit/s)…
Hash of data verified.
Compressed 3072 bytes to 144…
Writing at 0x00008000… (100 %)
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1890.5 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…
Rui, I have done what you suggested and I am still no where. Can you (or somebody) help.
Hello, the second attempt that you’ve posted earlier was completely successful and your ESP should have received the code:
Connecting….. Chip is ESP32D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None MAC: c4:4f:33:0a:6c:e1 Uploading stub… Running stub… Stub running… Changing baud rate to 921600 Changed. Configuring flash size… Auto-detected Flash size: 4MB Compressed 8192 bytes to 47… Writing at 0x0000e000… (100 %) Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 6553.6 kbit/s)… Hash of data verified. Compressed 15328 bytes to 9994… Writing at 0x00001000… (100 %) Wrote 15328 bytes (9994 compressed) at 0x00001000 in 0.1 seconds (effective 936.1 kbit/s)… Hash of data verified. Compressed 648416 bytes to 387524… Writing at 0x00010000… (4 %) Writing at 0x00014000… (8 %) Writing at 0x00018000… (12 %) Writing at 0x0001c000… (16 %) Writing at 0x00020000… (20 %) Writing at 0x00024000… (25 %) Writing at 0x00028000… (29 %) Writing at 0x0002c000… (33 %) Writing at 0x00030000… (37 %) Writing at 0x00034000… (41 %) Writing at 0x00038000… (45 %) Writing at 0x0003c000… (50 %) Writing at 0x00040000… (54 %) Writing at 0x00044000… (58 %) Writing at 0x00048000… (62 %) Writing at 0x0004c000… (66 %) Writing at 0x00050000… (70 %) Writing at 0x00054000… (75 %) Writing at 0x00058000… (79 %) Writing at 0x0005c000… (83 %) Writing at 0x00060000… (87 %) Writing at 0x00064000… (91 %) Writing at 0x00068000… (95 %) Writing at 0x0006c000… (100 %) Wrote 648416 bytes (387524 compressed) at 0x00010000 in 5.7 seconds (effective 916.0 kbit/s)… Hash of data verified. Compressed 3072 bytes to 144… Writing at 0x00008000… (100 %) Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1890.5 kbit/s)… Hash of data verified. Leaving… Hard resetting via RTS pin…
The code was uploaded successfully in that case. So after that, simply open the Arduino IDE serial monitor at the correct baud rate and press the ESP32 ENABLE/RESET button to restart it and run the newly uploaded code.
What do you see in the serial monitor?
Thanks for your patience!
i get the following. This may mean success, but I am unclear where to go from here. Do I load my program now? Won’t that overwrite this code?
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:8424
ho 0 tail 12 room 4
load:0x40080400,len:5868
entry 0x4008069c
Connecting to BHNDVW3201B4B28
………………………………………………………………………………………………………….
This is really frustrating. I can see the ip of the ESP32 if I can with Advanced IP Scanner and it shows the correct MAC address for that IP. But if I try to go to the IP in Chrome (in this case 192.168.0.155) I get “host can not be reached”. If I try and ping the IP, I get “unreachable”. I thought it might be a firewall issue so I turned off both the windows firewall and the McAffee firewall and that made no difference. I can still see the IP in Advanced IP Scanner, but can’t ping or connect via the browser, so I can do nothing with it.
Any clue what I might be doing wrong?
If you only see these dots being printed in the serial monitor:
………………………………………………………………………………………………………….
It means that you’ve entered the wrong SSID name or a wrong Password in your code (or both).
Your code is uploading fine and the board is working, but you need to double-check your network credentials typed in your code.
Make sure that your ESP is also in the fairly near your Internet router to establish a Wi-Fi connection.
Wow! That was it. I had a typo in the SSID. I feel a bit dumb, but glad it’s working.
Thank you for your help and patience.
Charlie