ESP 32 beta loss of WiFi connection

Uploaded later firmware having problems connecting this morning. I have not restarted EVSE left in sleeping state from yesterday.
When I tried to connect (safari) there appeared to be some attempt at connection, Hangs at
OpenEVSE
WiFi

Loading, please wait… (/) but soon timed out
In firefox a very crude text only response
OpenEVSE

WiFi

OpenEVSE System Services

WiFi Setup

Mode: Client (STA)

Network RSSI dBm
-88

IP Address:
192.168.1.132

Successful packets:
1695 of 1906

OpenEVSE

RAPI packets:
28639 of 28639

Administration

Username:
15 characters max

Password:

Show password
15 characters max
Web interface HTTP authentication.

WiFi Firmware

ESP8266

Version: 0.0.0

Developer Mode

Enabled:

Powered by OpenEVSE and OpenEnergyMonitor

Version: V0.0.0
I was looking at the services page yesterday
Any help to you?
Geoffrey

Hi Glyn since last post the board has been working fine though not done a lot of charging the last two weeks but all that will change tomorrow back to charging every night .
I put one of my other esp32 boards (ebay) back on to the other charger on saturday
i noticed that when i uploaded the new software via the wifi that on reboot it would not conect due to the host adress witch was “192.168.0.115” this had become “emonpi192.168.0.115”
this may be a bug in the online updater . ?
This has been running fine since saturday . so far so good …
only problem is that it would seem that last night for some reason i have lost control via the demand shaper i keep getting "settings Mismatch " on all devices that i have conected i have left a message for Trystan as this seems to be his Baby .
i was also wondering how things were coming along with ajusting the code to use solar power but also letting this stop when solar no longer avalable ? as i would be intrested in testing this . regards Bill

1 Like

Hi
I came across this thread while searching for solutions for my OpenEVSE WiFi connection problems. I have updated to the 3.0.4 firmware from this thread and it’s better than my original version (3.0.2) but it still drops WiFi connection after a while without reconnection. I have looked the recent WiFi stability fix that was added which I think is good but it would be even better if OpenEVSE can periodically (5s?) ping the IP gateway and reset WiFi connection if there is several (5-10?) consecutive missing gateway responses. It seems WiFi routers can drop connection and OpenEVSE WiFi module does not always detect it with the WiFi connection status check.

Hi
Regarding the ping what I found last time I had problem was that the WiFi link was still active as I could get Mqtt. To send and receive data from the evse. It was just that it would not let me logon via http webpage

… regards bills

Regards. Bill

That’s a good point. There could also be some kind of memory leak/bug in the WiFi web server that prevents it from responding after a while.

If anyone is able to get serial logs (from the second UART, not the one connected to the main module) from their ESP32 that would be really handy.

Hi @jeremypoulter

I have an ESP32 running 3.1.0 dev this morning i was unable to load the OpenEVSE webpage, I could see the ESP connected to the wifi network (unifi) and that it was getting a DHCP address (set to renew every 10 minuites). I did not test to see if i could ping the unit. I kicked the ESP off the wifi network and when it reconnected I could connect to web interface.

Paul

1 Like

Hi I have two of the esp 32 with same software one is a Chinese version of the 32 and the other one that glyn sent me to try . These seemed to work fine for two weeks when I was self isolating . But since I have returned to work I am finding that I am having to power off both of them every few days . As they will not let me connect to there web page. And also they both now display in the demand shaper as not contactable . Before software upgrade they did seem to keep communication with the demand shaper . It is interesting that both units are giving problem as one is not being used a lot as the wife’s car is locked down with her and the kids . I did fit some surpressors to the contractor coil connections
But these do not seemed to make any Diferance
I will try what you have done next time I have problem and see if I can get them back by taking them of network . I was wondering if I could port the code to a aurdino device with hardwire network port
As I don’t need them to be WiFi .

Just looked now and the unit has crashed again. (forget the excess one)

Ping looks a little rough

Webpage wont load

I then sent a ping -t and the web page loaded, turned on advanced mode and then restart but still hung.

Kicking it off the wifi network and waiting 30 seconds I was then able to reboot from the web interface. but pings are still all over the place but RAPI Packets are 100% ok

@glyn.hudson
We have a network cable to our charger, is they an option for a esp32 with a network socket?

don’t know if it would work, but this looks interesting.

Hi intresting post gave me a prompt to check mine again . yes both of them have stopped comunicating. i have two units at 192.168.0.116 and 115 .
both do not respond to ping . time out . i have checked my wifi router and both of these addresses do not show as conected . so i can only conclude that they have failed to conect back to the router . next step is to take laptop down and see if any infomation is being sent
from the usb port on the device . i think that i was told that this is used as a debug port .
so off to do that now . befor i power on off again .

ok first problem the offical esp32 board has no usb port … so i can only pull this from the other
non offical board
does this mean anything to anyone .

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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:788
load:0x40078000,len:8160
load:0x40080400,len:5732
entry 0x4008069c
$GV^35
$GS^30
$GV^35
$GA^22
$GE^26
$F0 0^42
$FP 0 0 OpenEVSE WiFI^32
$FP 13 0       ^20
$FP 0 1 3.0.4.dev^7D
$FP 9 1       ^1A
$FP 15 1       ^27
$GE^26
$GS^30
$F0 1^43
$GG^24
$GP^33
$GU^36
$GF^25
$GE^26
$GS^30
$GG^24
$GP^33
$GU^36
$GF^25
$GE^26
$GS^30
$GG^24
$GP^33
$GU^36
$GF^25
$GE^26
$GS^30
$GG^24
$GP^33
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:788
load:0x40078000,len:8160
load:0x40080400,len:5732
entry 0x4008069c
$GV^35
$GS^30
$GV^35
$GA^22
$GE^26
$F0 0^42
$FP 0 0 OpenEVSE WiFI^32
$FP 13 0       ^20
$FP 0 1 3.0.4.dev^7D
$FP 9 1       ^1A
$FP 15 1       ^27
$GE^26
$GS^30
$F0 1^43
$GG^24
$GP^33
$GU^36
$GF^25
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:788
load:0x40078000,len:8160
load:0x40080400,len:5732
entry 0x4008069c
$GV^35
$GS^30
$GV^35
$GA^22
$GE^26
$F0 0^42
$FP 0 0 OpenEVSE WiFI^32
$FP 13 0       ^20
$FP 0 1 3.0.4.dev^7D
$FP 9 1       ^1A
$FP 15 1       ^27
$GE^26
$GS^30

Edit - formatted for readability. BT, Moderator

ok did a power off reboot of unit and i get this from the comport 0

it looks as if the board dont know the true date but that is prob not relevent as i dont think it has a rtc

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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:788
load:0x40078000,len:8160
load:0x40080400,len:5732
entry 0x4008069c
$GV^35
$GS^30
$GV^35
$GA^22
$GE^26
$F0 0^42
$FP 0 0 OpenEVSE WiFI^32
$FP 13 0       ^20
$FP 0 1 3.0.4.dev^7D
$FP 9 1       ^1A
$FP 15 1       ^27
$GE^26
$GS^30
$F0 1^43
$GG^24
$GP^33
$GU^36
$GF^25
$GE^26
$GS^30
$GG^24
$GP^33
$GU^36
$GF^25
$GE^26
$GS^30
$GG^24
ets Jun  8 2016 00:22:57

ok well i have found that by pluging the usb cable in to my china board it causes the board to do a reboot .
now i also find that some times it will restart and i can log on and it seems to work ok
then some times it reboots the board and wont conect to network and let me log on
the sequnce coming from the usb port seens to be the same

$GF^25
$GE^26
$GS^30
$GG^24
$GP^33
$GU^36
$GF^25

over and over during these reboots the main evse board stayed powerd up .
got to go shoping now .

not sure if this helps.
I could not load the webpage this morning so kicked the ESP32 off the wifi and let it reconnect. I could then access the webpage and charge mode grid import/export time is when i kick it off the wifi.

Restarting the unit fixes it

The ESP32 build does have support for wired ethernet, we have tested it with ESP32-GATEWAY - Open Source Hardware Board. It should work ok with that board to, should just be a case of configuring the Serial port pins, which can be harder than it sounds, especially on the Ethernet boards as there are a lot of pins used.

It would be helpful to get some serial logs, not from the port connected to the OpenEVSE (that outputs $GS, $F0, etc), but the debug serial port.

There are several configs for boards for USB serial built in like the Feather Huzzah 32 or NodeMCU 32S. With these the USB serial gives the debug and the EVSE is connected to be different pins (board/config dependant). On the ‘official’ (Adafruit Huzzah 32) board the debug serial is on pin #1.

@jeremypoulter whats needed to help with debuging this? I have an IT background but programing is not my strong point.

I have just installed a new Unfii Access Point near to the charger but the ESP keeps attaching its self to the old AP a few more meters away. is the AP’s mac address stored in the WIFI config?

Hi Jeremy So what I uploaded is not debug I take it
So I need to connect to pin 1 a rs232 driver and then monitor that out put to get the logs you need .
Is that correct .
Thanks bill