From frog at bunyip.wheelycreek.net Sun Jan 4 16:29:24 2026 From: frog at bunyip.wheelycreek.net (Michael Geddes) Date: Sun, 4 Jan 2026 16:29:24 +0800 Subject: [Ovmsdev] More support for Scripting a Vehicle implementation Message-ID: I'm well on the way to finishing bms and vector support in scripted vehicle implementation via the DBC infrastructure. This is the documentation I'm adding into the 'DBC Introduction' page. It's kind of the correct place, but it's going to be common to the other script support for polling.. so maybe I should link to it in a common area. //.ichael DBC Signals? <#dbc-signals> DBC Signal names can be used to store values directly into metrics. Eg a signal v_b_soc would be sent to the metric v.b.soc. If the unit name on a signal matches a valid ?unit code? or ?unit label?, then this will be passed on too. For signal names, _ will get translated to a . for looking up metrics (. is still a valid character in a DBC ID). It is also possible to store into a vector by putting a number at the end of the signal id. Eg the signal v_t_pressure_0 would be sent to the first element of the v.t.pressure vector. BMS Targets? <#bms-targets> There are also special BMS (battery management) targets that make sure the averages etc are calculated. The format is: bms.*{type}*.*{operation}*[*.* *{index}*]. The *{type}* is either v for voltage or t for temperature. Operation Description Has Index n Total number of cell voltage readings No m Readings per module No r Reset stats Optional c Cell value Yes DBC Examples? <#id1> Example Description bms.t.n Set total number of cell temperature readings to incoming value. bms.t.m Set total number of cells per grouping to incoming value. bms.v.r Reset stats for cell voltages (ignore value) bms.v.r.0 Reset stats and set Voltage at index *0* to incoming value bms.t.c.2 Set cell temperature at index *2* to incoming value. bms.v.c.5 Set cell voltage at index *5* to incoming value. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dexter at expeedo.de Sun Jan 4 20:41:46 2026 From: dexter at expeedo.de (Michael Balzer) Date: Sun, 4 Jan 2026 13:41:46 +0100 Subject: [Ovmsdev] Config framework: race condition fix & storage transaction scheme [PR #1310] Message-ID: <88ecaf78-e230-43b3-9f05-2b6cfd02b890@expeedo.de> Happy new year everyone :) I've been working on a somewhat larger rework of the config framework: https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/1310 This touches a lot of places and changes an 8 year old foundational framework component, so I'd love to get some audit and test feedback for this before actually including this in the edge build. Thanks & kind regards, Michael -- Michael Balzer * Am Rahmen 5 * D-58313 Herdecke Fon 02330 9104094 * Handy 0176 20698926 -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 203 bytes Desc: OpenPGP digital signature URL: From dexter at expeedo.de Mon Jan 5 00:23:50 2026 From: dexter at expeedo.de (Michael Balzer) Date: Sun, 4 Jan 2026 17:23:50 +0100 Subject: [Ovmsdev] More support for Scripting a Vehicle implementation In-Reply-To: References: Message-ID: Sounds all reasonable. Regards, Michael Am 04.01.26 um 09:29 schrieb Michael Geddes via OvmsDev: > I'm well on the way to finishing?bms and vector support in scripted > vehicle implementation via the DBC infrastructure. > > This is the documentation I'm adding into the 'DBC Introduction' page. > > It's kind of the correct place, but it's going to be common to the > other script support for polling.. so maybe I should link to it in a > common area. > //.ichael > > > DBC Signals? <#dbc-signals> > > DBC Signal names can be used to store values directly into metrics. Eg > a signal |v_b_soc|?would be sent to the metric |v.b.soc|. If the unit > name on a signal matches a valid ?unit code? or ?unit label?, then > this will be passed on too. > > For signal names, |_|?will get translated to a |.|?for looking up > metrics (|.|?is still a valid character in a DBC ID). > > It is also possible to store into a vector by putting a number at the > end of the signal id. Eg the signal |v_t_pressure_0|?would be sent to > the first element of the |v.t.pressure|?vector. > > > BMS Targets? <#bms-targets> > > There are also special BMS (battery management) targets that make sure > the averages etc are calculated. The format is: > bms./{type}/./{operation}/[/.//{index}/]. > > The /{type}/?is either v?for voltage or t?for temperature. > > Operation > > > > Description > > > > Has Index > > n > > > > Total number of cell voltage readings > > > > No > > m > > > > Readings per module > > > > No > > r > > > > Reset stats > > > > Optional > > c > > > > Cell value > > > > Yes > > DBC Examples? <#id1> > > Example > > > > Description > > |bms.t.n| > > > > Set total number of cell temperature readings to incoming value. > > |bms.t.m| > > > > Set total number of cells per grouping to incoming value. > > |bms.v.r| > > > > Reset stats for cell voltages (ignore value) > > |bms.v.r.0| > > > > Reset stats and set Voltage at index /0/?to incoming value > > |bms.t.c.2| > > > > Set cell temperature at index /2/?to incoming value. > > |bms.v.c.5| > > > > Set cell voltage at index /5/?to incoming value. > -- Michael Balzer * Am Rahmen 5 * D-58313 Herdecke Fon 02330 9104094 * Handy 0176 20698926 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 203 bytes Desc: OpenPGP digital signature URL: