Probably should have a category for vehicle weight and one for drivetrain (FWD vs RWD).
Some people might be interested in a field for driving/tune style, i.e. street/track, smooth/aggressive, commuter/racecar
Re: Parameter database
Posted: Mon Oct 26, 2020 9:15 pm
by johu
Yes that makes much sense
Re: Parameter database
Posted: Tue Oct 27, 2020 5:31 am
by jalovick
Assuming that vehicle weight and wheel diameter are factors that would effect the tune, is it worth including that, or is there another calculation for that? Final drive ratio for RWD or AWD (if a motor with reduction gear is centre mounted, in place of a transfer case) may also be a factor.
Re: Parameter database
Posted: Tue Oct 27, 2020 1:03 pm
by ZooKeeper
Nice idea!
I wonder if the upload could be added to the user Profile and viewable in the "Manage Attachments" option. Associating with a UID is a good idea I think, to aid in searching.
Re: Parameter database
Posted: Tue Oct 27, 2020 4:09 pm
by Bigpie
Joined your Patreon, hopefully that gets you to your goal. This is a pretty cool idea, would be handy to have maybe versions to subscribe to and the car can automatically check for parameter updates and notify the user somehow that they might want to update. Also direct downloading and updating of firmware would be cool.
Re: Parameter database
Posted: Tue Oct 27, 2020 5:06 pm
by james@N52E01
Just wondering how the database would appear for selection. If someone uploads several versions of their parameters (i.e. they've made improvements) they should be able to remove their previous uploads, however they may want to host multiple iterations of the same setup for different tunes (e.g. race track, commuting).
In terms of GDPR, you could have a brief GDPR warning and asking users to confirm they are happy to have their username appended without warranty to the parameters.
Re: Parameter database
Posted: Tue Oct 27, 2020 5:46 pm
by Bigpie
I don't think GDPR is an issue for usernames.
They are displayed on the forum anyway. You just have to state what it'll be used for and how long you're storing it, I think you have to have a way to annonomise it on request too. That's my understanding.
Re: Parameter database
Posted: Wed Oct 28, 2020 7:55 am
by johu
Thanks for jumping on Patreon and joining development.
I take it away that metadata implementation must be very flexible All questions to the poster will be stored in the database. Some items (like AWD, FWD RWD) are maybe better off as enums instead of free text to avoid semantic duplicates like "FWD" vs. "Front wheel drive".
Every parameter set that is posted does have a date attached to it. The user who posted it can delete their own set.
Concerning GDPR I'll just have a checkbox and a description of how the data is used.
I think the database will be free for all to view, even non-forum members. I will have a "digikey" style filter that lets you filter the posted parameter sets by the metadata suggested above.
Re: Parameter database
Posted: Wed Oct 28, 2020 10:26 am
by johu
I'm also now thinking whether to have a list of parameters that are highly custom to you personal preference or your setup. For example "dirmode" or the various regen parameters. Those parameters can then be excluded when applying the set to your inverter.
Bigpie wrote: ↑Tue Oct 27, 2020 4:09 pm
Joined your Patreon, hopefully that gets you to your goal. This is a pretty cool idea, would be handy to have maybe versions to subscribe to and the car can automatically check for parameter updates and notify the user somehow that they might want to update. Also direct downloading and updating of firmware would be cool.
Yes, goal reached
The only challenge with automatic updates is to setup your connection. By default you connect to the inverter via wifi (be it your phone or laptop) and thereby loose internet connectivity. Easy to solve, as you can just enable mobile data (and disable "use for internet" in wifi options) or plug in an ethernet cord. Just something people need to be made aware of so they don't write "it doesn't work" forum posts
Otherwise it would be easy to subscribe to a specific parameter set by its numeric id.
When you post a parameter set you can choose to update the existing one which will get people notified or create a new one with different goals, that will NOT get people notified.
Re: Parameter database
Posted: Sun Nov 01, 2020 1:53 pm
by EV_Builder
Shouldn't we use svn or git in this design? Comparing files becomes then easy and version administration is included.
Perhaps we can build an interpreter for the differences and for storage of the individual parameters and for storage git and then save the git link with the user.
Re: Parameter database
Posted: Sun Nov 01, 2020 3:47 pm
by johu
It won't be file based but based on parameters and categories. So you can use for example motor parameters from one set and inverter parameters from another.
I'm using a mysql database for now. Source code will go on github.
Re: Parameter database
Posted: Thu Nov 05, 2020 9:08 am
by johu
Just want to let everyone know we (Dima, me) are making good progress with the database.
Re: Parameter database
Posted: Thu Nov 05, 2020 10:49 am
by james@N52E01
Thank you both. You guys rule, can’t wait to see how you get on
Re: Parameter database
Posted: Fri Nov 13, 2020 10:59 pm
by johu
It is done
Huge shoutout to Dima who designed the graphical interface on the server side.
Now, to use it:
- Download https://github.com/jsphuebner/esp8266-web-interface
- Upload the files inverter.js, index.js, index.html to your ESP module (via Update on top of the page)
- Refresh
- Upgrade your inverter firmware to 4.95.R if you want to submit parameters (release coming)
- If you think your parameters are awesome, submit them with the apparent button
To download parameters
- Go to https://openinverter.org/parameters
- Choose a parameter set
- Choose the parameter categories you want to download, e.g. just "Motor"
- a) download as json file and apply that to your inverter
- or b) subscribe to the parameter set - now every time it is updated you will be notified!
- Subscription is done by pressing subscribe, copying the token and pasting it into the ESP web interface + <Enter>
In order for this to work your computer/phone must be connected to the internet AND the wifi module simultaneously.
Re: Parameter database
Posted: Sat Nov 14, 2020 7:56 am
by james@N52E01
Awesome, many thanks to you and Dima for implementing this feature. You guys rock!
One suggestion: Allow people to name them, or number them, or something, so people know what they're using and can refer to them.
Re: Parameter database
Posted: Mon Nov 16, 2020 4:05 am
by jalovick
Is it possible to calculate the power and torque output (at the output shaft) from the parameters?
Re: Parameter database
Posted: Mon Nov 16, 2020 12:47 pm
by johu
MattsAwesomeStuff wrote: ↑Sun Nov 15, 2020 9:38 pm
One suggestion: Allow people to name them, or number them, or something, so people know what they're using and can refer to them.
Just posted Tesla SDU and LDU parameters.
Please start posting your parameters for other hardware
Re: Parameter database
Posted: Thu Nov 26, 2020 11:02 am
by Bigpie
It doesn't seem to let me post. I'll have to try re-uploading the new files to the web interface. It seems to be missing the token parameter as it goes through to the open inverter website for login etc.