[Ovmsdev] Leaf 2016 30Kwh flapping SOC

Robin O'Leary ovmsdev at caederus.org
Wed May 2 21:55:03 HKT 2018


On Wed, May 02, 2018 at 03:43:33PM +0200, ovms wrote:
> Tom, you are right. I used a standard cable, not a Leaf-specific cable. And the 0x50d is on the car-bus.
> I have now swapped to a Leaf-specific cable, and tried to change the code to look for 0x50d on the car bus, but I apparently did something wrong. No data from the car-bus is received now.

Can you try to see if adding this code also works for you?
After "case 0x1db:"

      // state of charge percentage, as shown on dash info panel
      uint8_t soc = d[4] & 0x7f;
      if(soc != 0x7f)
        {
        StandardMetrics.ms_v_bat_soc->SetValue(soc);
        }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180502/f40f1d0b/attachment-0002.sig>


More information about the OvmsDev mailing list