Page 1 of 4
Re: Universal WiFi Interface
Posted: Fri Feb 14, 2020 4:54 am
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

Re: Universal WiFi Interface
Posted: Fri Feb 14, 2020 10:33 pm
by joromy
Can someone help me with my decimal problem??
This is just a "for fun" project, not very important....
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.
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 9:14 am
by Bigpie
Your source on github?
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 10:52 am
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?
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 12:53 pm
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?
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 1:32 pm
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
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 3:04 pm
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.
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 4:06 pm
by Jack Bauer
Makes sense to me.
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 5:27 pm
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.
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 7:04 pm
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.
Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 8:51 pm
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

Re: Universal WiFi Interface
Posted: Sat Feb 15, 2020 10:21 pm
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.
Re: Universal WiFi Interface
Posted: Sun Feb 16, 2020 1:21 am
by RE3Rotor
Re: Universal WiFi Interface
Posted: Sun Feb 16, 2020 2:14 pm
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
Re: Universal WiFi Interface
Posted: Mon Feb 17, 2020 4:26 pm
by dima
Arduino "Debug" serial interferes with the real serial ....therefore you cannot use serial to debug. Make a dynamic web page instead.
Re: Universal WiFi Interface
Posted: Mon Feb 17, 2020 5:48 pm
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.
Re: Universal WiFi Interface
Posted: Mon Feb 17, 2020 8:07 pm
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.
Re: Universal WiFi Interface
Posted: Tue Feb 18, 2020 12:09 pm
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.
Re: Universal WiFi Interface
Posted: Tue Feb 18, 2020 2:01 pm
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

Re: Universal WiFi Interface
Posted: Tue Feb 18, 2020 2:34 pm
by Bigpie
: made it easier to split the string. Got some other changes I'd like to make, but after that. Open to suggestions.
Re: Universal WiFi Interface
Posted: Tue Feb 18, 2020 2:50 pm
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.
Re: Universal WiFi Interface
Posted: Tue Feb 25, 2020 4:11 pm
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.
Re: Universal WiFi Interface
Posted: Tue Feb 25, 2020 4:47 pm
by bulletbug
This looks very cool. I'm excited to try it out. Thank you for making it.
Re: Universal WiFi Interface
Posted: Tue Feb 25, 2020 6:41 pm
by Jack Bauer
Looks excellent. Link to your repo?
Re: Universal WiFi Interface
Posted: Tue Feb 25, 2020 7:17 pm
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);
}