ESP32 Based Web Interface & Data Logger
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Sound promising!
Even without FW enabled the Mtpa will let you push above base freq.
The throttle limit is the only thing I can think of. Johannes mentioned over in the simulator thread that it's not been working too well for him either so I'd disable it (I probably shouldn't have left it in but just used the latest source, the pwm bug only got fixed because mjc506 noticed it!).
Even without FW enabled the Mtpa will let you push above base freq.
The throttle limit is the only thing I can think of. Johannes mentioned over in the simulator thread that it's not been working too well for him either so I'd disable it (I probably shouldn't have left it in but just used the latest source, the pwm bug only got fixed because mjc506 noticed it!).
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Throttle seemed fine, I'll see if I can smash through 40kw tomorrow:D
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
That would be good , just don't smash anything else!
If you do want to disable the limiter see here https://openinverter.org/forum/viewto ... 0#p47230 , otherwise just avoid too much throttle at high speeds. If it does cut in you will know about it as it is a bit binary at the moment
If you do want to disable the limiter see here https://openinverter.org/forum/viewto ... 0#p47230 , otherwise just avoid too much throttle at high speeds. If it does cut in you will know about it as it is a bit binary at the moment
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Did 65kw this morning without cutting out. Logger seemed to fail to mount the SD Card so no log unfortunately
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Wow! that's great!
How does it drive, any other differences?
Do you know whether it failed to mount or failed to start logging?
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
I think it's failing to mount. I've added a couple more logs from today to the Google Drive.
I've added a button to disable/enable auto logging and it's stored to EEPROM.
I've added a button to disable/enable auto logging and it's stored to EEPROM.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Good idea.
I'll have a look at the data later.
Not sure why the card would fail to mount, you could try reducing the sdio clock speed (the command you used for auto format can set that too)
I'll have a look at the data later.
Not sure why the card would fail to mount, you could try reducing the sdio clock speed (the command you used for auto format can set that too)
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
It's intermittent, so it could be a duff board, the female header pins making a rubbish connection or maybe a counterfeit card. It's supposed to be a class 10 but who knows.
Think the logs might be duff, having trouble with the converter/pulseview
Pretty pleased with the car now though, might not bother with the leaf motor upgrade.
Think the logs might be duff, having trouble with the converter/pulseview
Pretty pleased with the car now though, might not bother with the leaf motor upgrade.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Will have a look at the logs once I have the PC turned on this afternoon.
Fantastic news on the performance Do you think 65kW is the limit or might there be a bit more to come?
Fantastic news on the performance Do you think 65kW is the limit or might there be a bit more to come?
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
I'll be upping the amps to see. Not sure what rpm it got to, but did 60 mph in first gear. I can pretty much floor the throttle now. I had one cut out while doing this but sadly the SD card must not have mounted as there's no log.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Just had a go at opening the files.
The first one gives a few errors at the start but then decodes OK. However, when opened most of the waveforms look like the funny areas of the first log with the others fixed at zero.
The second one has a corrupted area in the header which is preventing decoding. I might be able to copy the header from the first one to get it to decode but my guess is the data will be the same as above
Could it be the SD card? Seems a little coincidental that there were corruptions and now it doesn't want to mount. Have you got another you can try?
60mph in 1st is impressive! What speed is the motor spinning up to? Any issues with unwanted acceleration or regen?
The first one gives a few errors at the start but then decodes OK. However, when opened most of the waveforms look like the funny areas of the first log with the others fixed at zero.
The second one has a corrupted area in the header which is preventing decoding. I might be able to copy the header from the first one to get it to decode but my guess is the data will be the same as above
Could it be the SD card? Seems a little coincidental that there were corruptions and now it doesn't want to mount. Have you got another you can try?
60mph in 1st is impressive! What speed is the motor spinning up to? Any issues with unwanted acceleration or regen?
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
No idea what speed the motor was going My in car display tops out at 8k and I didn't have any other logging going. Would be good to calculate the frequency as part of the log.
I'll dig out another SD card to try. No noticeable unwanted behaviour, aside from the 1 cut out.
I'll dig out another SD card to try. No noticeable unwanted behaviour, aside from the 1 cut out.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Is there any way the inverter can put itself into binnary logging mode? Commented out //binaryLoggingStart(); and still having issues loading the params. not figured out why. If I power up at the same time doesn't work. If I then restart the inverter they load.
Code: Select all
Sending 'json' to inverter
fa
ka
{a
oa
oa
�a
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Don't believe so, if it doesn't get the command then it should just behave like the standard non logging code.
What have you commented out?
Edit - just looked at the code and can see what you commented out. Without that line the stm should never start logging.
What have you commented out?
Edit - just looked at the code and can see what you commented out. Without that line the stm should never start logging.
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Can't make sense of it. Seems to be only when they are powered up at the same time, but with the start commented out, it does seem to be responding with binary data.
changed to
and the output to serial is
Certainly looks like binary data, this doesn't make any sense :s
changed to
Code: Select all
void uart_readUntill(char val)
{
int retVal;
do
{
Serial.println(uartMessBuff);
retVal = uart_read_bytes(UART_NUM_2, uartMessBuff, 1, UART_TIMEOUT);
}
while((retVal>0) && (uartMessBuff[0] != val));
}
Code: Select all
Sending 'fastuart' to inverter
m
a
n
d
s
e
q
u
e
n
c
e
fa
Sending 'json' to inverter
fa
ka
{a
oa
oa
�a
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Does it do on your test setup or just in the car?
That second message is the end of "unknown command sequence" so it looks like the inverter received something it didnt understand. If you let me know how you have it set up ill try to reproduce it here?
That second message is the end of "unknown command sequence" so it looks like the inverter received something it didnt understand. If you let me know how you have it set up ill try to reproduce it here?
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Could be binary data or could be one has switched to the fast baudrate and the other hasn't. That would look like binary data and fit with the log. Might be the esp32 booting quicker than the esp8266 and sending the fastuart command before the stm is ready.
Try putting a few second delay at the beginning of the esp setup function.
Try putting a few second delay at the beginning of the esp setup function.
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Think I've got it now, I've put a delay in at the very end of setup to enable time for the wifi connection to be made etc and that seems to work. Not sure why commenting it out didn't work
*EDIT* Also, I need to come up with a way to no log when I'm charging. The inverter is in run mode, but forward or reverse are not selected.
I've also added a we to retry mounting the SDCard from the web interface without having to restart
*EDIT* Also, I need to come up with a way to no log when I'm charging. The inverter is in run mode, but forward or reverse are not selected.
I've also added a we to retry mounting the SDCard from the web interface without having to restart
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Think is was the wrong baud rate not binary. When the esp sends a command to the stm the it first checks to see if it using fast comms (both start in slow comms mode for backward compatibility), if slow it sends the fastuart command first to switch (this was in the esp8266 code too). My guess is that the esp32 boots quicker and was managing to send the command before the stm had finished its boot so the esp ended up at the fast baud rate while the stm was still on slow baud. The data would then be corrupted and look like binary. There is a handshake to prevent this from happening but Im guessing there must be a case it doesn't catch?Bigpie wrote: ↑Sun Oct 23, 2022 8:27 pm Think I've got it now, I've put a delay in at the very end of setup to enable time for the wifi connection to be made etc and that seems to work. Not sure why commenting it out didn't work
*EDIT* Also, I need to come up with a way to no log when I'm charging. The inverter is in run mode, but forward or reverse are not selected.
I've also added a we to retry mounting the SDCard from the web interface without having to restart
Good point on the charging but not too sure how to do it. Can't see a way to tell the difference between charging and driving but not having selected forward or reverse yet?
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Maybe make a request for the json and look at the direction parameter before starting logging?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Trouble is that could just mean you haven't selected forward or reverse yet?
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Been having some problems with parameters this morning, not sure whether it's related to your issues or not. When I try to write settings to flash the controller seems to lock up and won't respond till I do a full chip erase and reprogram. Guessing this is more likely to be a flash incompatibility on my test board but thought it worth mentioning just in case.
With the added delay is yours behaving OK now?
With the added delay is yours behaving OK now?
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Nope, went out earlier and there was no logs. Didn't check why, will try again later
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: ESP32 Based Web Interface & Data Logger
Just had 70kw :O hope the logs are working.
EDIT
Log out to the shops worked, the one where my shunt reported 70kw before I caught up with traffic. The log home didn't record, but at higher speed the power comes on and off, not sure if that because of some parameter or firmware, not got there before without cutting out, id usually changed up gear by then else it would cut.
EDIT again.
Lots of message lost
EDIT
Log out to the shops worked, the one where my shunt reported 70kw before I caught up with traffic. The log home didn't record, but at higher speed the power comes on and off, not sure if that because of some parameter or firmware, not got there before without cutting out, id usually changed up gear by then else it would cut.
EDIT again.
Lots of message lost
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 347 times
Re: ESP32 Based Web Interface & Data Logger
Bigpie wrote: ↑Mon Oct 24, 2022 2:38 pm EDIT
Log out to the shops worked, the one where my shunt reported 70kw before I caught up with traffic. The log home didn't record, but at higher speed the power comes on and off, not sure if that because of some parameter or firmware, not got there before without cutting out, id usually changed up gear by then else it would cut.
EDIT again.
Lots of message lost
Is this with a different card?
If you want to stick it online I can have a look?