How to Flash a Blank ESP32 module

Discussion and support for the Nmea4Wifi multiplexer - a 4-input Nmea 0183 wifi multiplexer.
Luis Sa
Site Admin
Posts: 845
Joined: Thu May 04, 2017 4:12 am

Re: How to Flash a Blank ESP32 module

Post by Luis Sa » Sat Aug 29, 2020 11:21 am

Hello

Thank you very much for describing your experiments. I have now a lot of information to explore. I am at the middle of a 60 mile crossing heading to the isle of Thassos. If you need an ESP32 module I can send you for a fraction of the cost that you see in EBay. I need to look with more detail to the board versions.

Regards, Luis

dagnall
Posts: 459
Joined: Wed Mar 04, 2020 6:36 pm

Re: How to Flash a Blank ESP32 module

Post by dagnall » Sat Aug 29, 2020 1:31 pm

Luis.
Enjoy your crossing!.
I have a new board on order, so thanks, but I expect mine should arrive sooner!.
I spent the morning doing some more experiments and it seems that the ON/OFF wifi connect/disconnect is repeatable. I made a couple of screen capture videos and posted them as "unlisted video" for you to see when you get some bandwidth.. not connecting.. https://youtu.be/zogbqQG11Ag
and one showing manual Ip setting .. https://youtu.be/1h-NTtJXBic
  • With a new unused board (actually an esp32 OLED and battery board). I uploaded the OTA flash using Arduino (remembering to press boot to get it to connect).
  • I then connected using PC to the wifi and opened 192.168.4.1:82 and uploaded Ver34 bin. -Board starts WIFI,
  • but on both Ipad and Iphone I need to set MANUAL IP config. (I used different IP address for each!)
  • Using 192.168.4.1 I set p1 and p2 to send to TCP as well as UDP, and set TCP port to 3000. --- But apart from this the board is exactly as factory default.
  • I then set simulation mode.
  • Using Imray Instruments as a NMEA viewer, I can reliably see TCP data on both simultaneously.
  • But with UDP, the Ipad gets data updates reliably, but the Iphone is only seeing data about every third second.
    Iphone is IOS 12.4.8 Ipad is 9.3.6.
Repeating the experiment with a different physical esp32 and both devices receive UDP equally quickly. (but still needs IP setting Manual..!)

I doubt that this will help you find the problem any sooner, but you never know.

All the very best

Dagnall

dagnall
Posts: 459
Joined: Wed Mar 04, 2020 6:36 pm

Re: How to Flash a Blank ESP32 module

Post by dagnall » Sat Aug 29, 2020 6:06 pm

One final (REALLY!) thing.

I managed to capture a serial trace whilst the iPhone was tying to connect with Automatic IP address mode.
The ESP32 seems to be doing a SW CPU reset synchronously with the iPhone disconnecting. (I also get the same message as soon as the PC tries to connect to this board's wifi)

I am sure this should help you trace the bug.. I was using Ver 34 binary.
This Board has an extra capacitor on 3v3 to help prevent brownouts (that have caused some issues on another board). But other than that, it is standard and just being run from PC USB. It works OK if using "Manual" IP

Code: Select all

rst:0xc (SW_CPU_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:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac

D

Post Reply