[Ovmsdev] Mitsubishi logging problem

Thomas Bergo thomas.bergo at gmail.com
Sun Jun 8 15:44:14 HKT 2014


>From what i remember this should be a easy fix.

The car_speed and car_odometer @ PID 412 is only updated when ignition is
ON.
So setting the car_doors1bits.CarOn = 1 when PID 412 is received should fix
this issue. Setting car_doors1bits.CarOn = 0 when no CANBUS activity is
already implemented in the code.

Regards, Thomas


2014-06-08 7:51 GMT+02:00 Tom Saxton <tom at idleloop.com>:

> It sounds like the Mitsubishi code is setting the car_doors1bits.CarON
> incorrectly. That bit should only be set if the car is turned on. Perhaps
> it needs to be more discerning as to which CAN messages indicate the car is
> on.
>
>     Tom
>
> On 6/7/14, 2:32 PM, "Nikolay Shishkov" <nshishkov at yahoo.com> wrote:
>
> I have been testing the logging for the mitsubishi and noticed a problem
> with it - no matter if I was charging or driving the log was always showing
> driving.
> I have been looking at the code and I think I found the problem. If I
> understand this correctly in vehicle_mitsubishi_ticker1 function
> in vehicle_mitsubishi.c file the car_doors1bits.CarON is set depending on
> wheather there is CAN bus communication. This is unfortunate since
> the car_doors1bits.CarON (via CAR_IS_ON) is used in the logging.c to
> determine if the car is "driving"... and if it is, then it is not
> "charging".
>
> I am not sure what the best solution would be:
>  - to set the car_doors1bits.CarON to 0 if the car is charging or
>  - to refactore the logging code to prefer the CAR_IS_CHARGING and test
> for it first in the various if/else statements.
>
> I have not been able to build and test any of this yet.
>
> Any comments, ideas, suggestions on how to solve this?
>
> Nikolay
>
>
> _______________________________________________ OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20140608/5701bc3a/attachment.htm>


More information about the OvmsDev mailing list