Universal WiFi Interface

Discussion about various user interfaces such as web interface, displays and apps
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

Bigpie wrote: Wed Feb 12, 2020 10:05 am Stick some of the features you are looking for up as issues on github and I'll pick some up. Web programming is my bread and butter these days.
You don't have an issue tab:?

My first suggestions: It would be nice if you could edit the names and units of the gauges in the config page.
Then they can be used for anything......... Like SOC, very useful in a electric car :)
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

Can someone help me with my decimal problem??
This is just a "for fun" project, not very important.... ;)
Capture1.JPG
I get right number of decimals on serial console LCD and web "green arrow"
But on BAT TEMP I get no decimals in web, but right in serial console and LCD "red arrow"

SERIAL2 is where the ESP is connected.
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

Your source on github?
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

Bigpie wrote: Sat Feb 15, 2020 9:14 am Your source on github?
I dont have it on github, just wanted to play around with your code.
I'm hoping your code will be configurable and useful for my setup, without to much changes, or any changes?
I will follow your github code and give you some feedback.

I still can't see any issue tab, on your github?
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

Create them on Damien's repo and I'll create pull requests to resolve them.

I assume you are adding data in to the serial string read in by the olimex card? Is the open inverter going to spit this out?
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

Bigpie wrote: Sat Feb 15, 2020 12:53 pm I assume you are adding data in to the serial string read in by the olimex card? Is the open inverter going to spit this out?

I have decided to have a main ECU/display unit with wifi, to send/receive data from tesla charger, Simp BMS, openinverter and instrument cluster via CAN bus.
Since there is no communication between these from the "manufacturer" :)
I also need to control heating/cooling this is done by the same ECU.
I have a 2x16 LCD i2c display, but your ESP wifi web server would be a nice feature.

I use a Teensy 4.0 with 3 CAN ports and a ESP 01S.
https://github.com/jomy-tech/Teensy-CAN ... ller-in-EV

Have modified the instrument cluster to CAN bus.
viewtopic.php?f=16&t=433
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

To make this as universal as possible and useable without too much technical knowledge, I'm thinking that the user should be able to configure the gauges so that you just enter the prefix that's coming in the data and the webserver can split the serial data on comma and serve up the requested prefix for the gauge.
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
User avatar
Jack Bauer
Posts: 3831
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 75 times
Been thanked: 696 times
Contact:

Re: Universal WiFi Interface

Post by Jack Bauer »

Makes sense to me.
I'm going to need a hacksaw
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

To Johannes, Damien, Dima, Tom, Bigpie and others making openinverter stuff

If we could make a common "openinverter" CAN bus standard.
Then it would be much easier, to put the different products together.
Then all the openinverter products, could have a default CAN bus setting.

I could set up a table in the wiki, for all the openinverter stuff that has CAN bus?
And we could see how it develops.....

I have modified my Tesla charger, Simp BMS and my own stuff to send out CAN messages.
The openinverter already has very extensive CAN bus support, but no standard setting.
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
johu
Site Admin
Posts: 6969
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 455 times
Been thanked: 1771 times
Contact:

Re: Universal WiFi Interface

Post by johu »

Do it.
I can easily flash a CAN mapping when sending out "my" boards and all others could just flash another hex file.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Kevin Sharpe
Posts: 1339
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 9 times

Re: Universal WiFi Interface

Post by Kevin Sharpe »

johu wrote: Sat Feb 15, 2020 7:04 pm Do it.
This is all thats holding back OVMS so agree, do it :)
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
User avatar
tom91
Posts: 2753
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 264 times
Been thanked: 717 times

Re: Universal WiFi Interface

Post by tom91 »

joromy wrote: Sat Feb 15, 2020 5:27 pm To Johannes, Damien, Dima, Tom, Bigpie and others making openinverter stuff
So the BMS information is transmitted in a 'common' format used by Victron.

I have shared my/Zero-EV CanBus structure for the driveunit/inverter before.

Attached in the DBC, it does not have the latest BMS canbus info (this only adds info) but should be a good starting point.

If there is any info you feel is missing I can add it to the .dbc file.
Attachments
zeroev - Copy.rar
(1.24 KiB) Downloaded 358 times
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
RE3Rotor
Posts: 74
Joined: Thu Feb 06, 2020 11:37 pm
Location: Vancouver, Canada

Re: Universal WiFi Interface

Post by RE3Rotor »

I found this github repo: https://github.com/commaai/opendbc
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

I'm not able to get any serial data out after "SDK:2.2.1(cfd48f3)/Core:2.5.2=20502000/lwIP⸮" on my MOD-WIFI-ESP8266 any suggestions?

It's serving up my files from SPIFFs and returning data from my new endpoint, but struggling to debug without the Serial IO
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada
Been thanked: 1 time

Re: Universal WiFi Interface

Post by dima »

Arduino "Debug" serial interferes with the real serial ....therefore you cannot use serial to debug. Make a dynamic web page instead.
arduino_debug_disabled.png
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

I've got it rolling now.

It can accept serial input in the format t:90,p:50,ect or individually t:90
The chart config if such that you just configure the min and max values and the data prefix as above and it'll update.
I also got fed up having to switch wifi so it can now (compile time at the moment) either join a wifi network or act as a access point.

I'll be doing a PR for my changes when it's a little more polished.
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

johu wrote: Sat Feb 15, 2020 7:04 pm Do it.
I can easily flash a CAN mapping when sending out "my" boards and all others could just flash another hex file.
Does this deserve it's own forum section under hardware (or software)?

https://openinverter.org/wiki/Main_Page ... er_CAN_std.
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

I've created a PR to add the edit chart page, still not 'pretty' but functional so the user can setup gauges without recompiling and flashing. Let me know how you get on with it.
Attachments
Screenshot 2020-02-18 at 12.07.38 pm.png
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

Bigpie wrote: Tue Feb 18, 2020 12:09 pm I've created a PR to add the edit chart page, still not 'pretty' but functional so the user can setup gauges without recompiling and flashing. Let me know how you get on with it.
Looks nice, but dos not work for me..
I have changed the baud to 115200.
Have set up two gauges: Volt v and SOC s in setup.
Sending v306,s68* from both serial traffic generator (PC) and from BMS (Teensy3.2)

This is what I get on traffic generator:
<-v306,s68*
->adding: v306 v306#0D#0Aadding: s68 s68#0D#0A

The gauges are there, but no value.
If I go back to your previous version. is works

BTW the setup icon is a little hidden behind the gauge, in my phone.

Edit:
Sorry, it WORKS!
Stupid me, did not see you changed to : after prefix :D
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

: made it easier to split the string. Got some other changes I'd like to make, but after that. Open to suggestions.
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Universal WiFi Interface

Post by joromy »

Bigpie wrote: Tue Feb 18, 2020 2:34 pm : made it easier to split the string. Got some other changes I'd like to make, but after that. Open to suggestions.
"Open to suggestions" you said it...
Adding:
Digital readout, gauges are nice, but number readout can be good to.

Text readout, like: READY, RUN, CHARGING, ON/OFF etc.

And off course input, configurable icon (text box)
And maybe an input field, sending custom commands to serial, this would be heaven for me since I now have all my modules on CAN bus.
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
Bigpie
Posts: 1845
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 89 times
Been thanked: 481 times

Re: Universal WiFi Interface

Post by Bigpie »

I've pushed some changed to my repo. I've not done a PR to Damiens repo.

Changes:
- /admin page can now select to either join a network or create an AP
- The chart config page now has selectable display types of "Text" or "Gauge"
- The display page now requests all the data in a single request and no longer requests data again until the previous request has been returned.

Upcoming:
- Ability to write arbitrary commands out to serial from the edit page
- Ability to add buttons to write out specified commands to serial to the main page.
Attachments
Screenshot 2020-02-25 at 4.02.03 pm.png
Screenshot 2020-02-25 at 4.02.18 pm.png
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Outlander Compressor
Renault Kangoo 36kWh battery
FOCCCI CCS
bulletbug
Posts: 94
Joined: Thu Sep 26, 2019 5:12 pm
Location: West Jordan, Utah USA

Re: Universal WiFi Interface

Post by bulletbug »

This looks very cool. I'm excited to try it out. Thank you for making it.
User avatar
Jack Bauer
Posts: 3831
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 75 times
Been thanked: 696 times
Contact:

Re: Universal WiFi Interface

Post by Jack Bauer »

Looks excellent. Link to your repo?
I'm going to need a hacksaw
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada
Been thanked: 1 time

Re: Universal WiFi Interface

Post by dima »

I recommend adding these 3 lines of code for future "easy web updates" there will be a new page /update

Code: Select all

#include <ESP8266HTTPUpdateServer.h>
ESP8266HTTPUpdateServer updater;

void setup()
{
	//.....
	updater.setup(&server);
}
Post Reply