14 Feb
2021
14 Feb
'21
2:25 a.m.
On Sat, 13 Feb 2021 at 12:39, Michael Balzer <dexter@expeedo.de> wrote:
I suggest all vehicle developers check their v.e.on logic before we change this.
Well the bmwi3 logic is like so:
- v_env_on is initialised to false when the module is initialised
- When the OBD-2 bus goes dead for 3 seconds I turn off my polling and set v_env_on to false
- Otherwise, v_env_on is set to (pollerstate == POLLSTATE_READY && StdMetrics.ms_v_env_gear->AsInt() != 0) - i.e. OBD alive, car is responsive on the OBD, and its in gear. You can't put it in gear unless its "ready". This was the best I could do since I can't find an OBD2 that plainly distinguishes "on" (viz accessory position) from "ready" (let's go).
If the module boots up and the OBD2 is alive there will be a brief interval of v.e.on being false and as soon as we see obd2 traffic and see the car in gear (that is polled every 4 seconds when the car is READY) then v.e.on will change to true.
I suppose that may be enough time for this alarm to go off?
Steve
-- https://www.telviva.co.za/legal/email-disclaimer <https://www.telviva.co.za/legal/email-disclaimer>