User avatar
Dala
Forum Supporter
Posts: 261
Joined: Sun Oct 28, 2018 11:24 am
Delivery Date: 01 Jan 2015
Leaf Number: 316851
Location: Finland
Contact: Website

Re: LEAF CANbus decoding. (Open discussion)

Wed Mar 25, 2020 6:10 am

coleafrado wrote:
Sun Mar 22, 2020 4:59 pm
Saw this on the OVMS docs: https://docs.openvehicles.com/en/latest ... index.html
Assistance is appreciated as I haven’t had time to try to override the TCU using the OVMS or find an alternative solution to prevent the TCU overriding the messages while still allowing the hands free microphone to work.
Has this been addressed by anyone yet? Not sure I fully understand the issue.
Not adressed yet. AFAIK unplugging the TCU fixes so that OVMS can function and send heating requests, but the downside is thet the hands free microphone stops working.

can2sky
Posts: 3
Joined: Tue Mar 31, 2020 7:54 am
Delivery Date: 31 Mar 2020

Re: LEAF CANbus decoding. (Open discussion)

Tue Mar 31, 2020 8:09 am

Dala wrote:
Mon Dec 09, 2019 2:15 pm
I've been working for over 10+ hours with the CAN database files. I recently stumbled upon new information, and can finally solve 60% of the EV-CAN with this information. I am uploading all my findings to GitHub, so anyone wanting to take it into use will have an excellent starting point.

Database files can be found here: https://github.com/dalathegreat/leaf_can_bus_messages


Hi, Dala.
Your work is excellent! Won't you mind if i will use your DBC file in free CAN bus cloud decoder? Website is can2sky.com
Everybody can upload raw CAN bus log (several formats are supported) and see all decoded parameters in readable form, built plots.
Also there are some tools to investigate unknown parameters.

Some screenshots:
Image

Image

Image

Image

Best regards,
Andrew

User avatar
Dala
Forum Supporter
Posts: 261
Joined: Sun Oct 28, 2018 11:24 am
Delivery Date: 01 Jan 2015
Leaf Number: 316851
Location: Finland
Contact: Website

Re: LEAF CANbus decoding. (Open discussion)

Tue Mar 31, 2020 12:29 pm

can2sky wrote:
Tue Mar 31, 2020 8:09 am
Hi, Dala.
Your work is excellent! Won't you mind if i will use your DBC file in free CAN bus cloud decoder? Website is can2sky.com
Everybody can upload raw CAN bus log (several formats are supported) and see all decoded parameters in readable form, built plots.
Also there are some tools to investigate unknown parameters.

Best regards,
Andrew
Feel free :) Tool looks cool!

can2sky
Posts: 3
Joined: Tue Mar 31, 2020 7:54 am
Delivery Date: 31 Mar 2020

Re: LEAF CANbus decoding. (Open discussion)

Wed Apr 01, 2020 3:57 am

Dala wrote:
Tue Mar 31, 2020 12:29 pm
can2sky wrote:
Tue Mar 31, 2020 8:09 am
Hi, Dala.
Your work is excellent! Won't you mind if i will use your DBC file in free CAN bus cloud decoder? Website is can2sky.com
Everybody can upload raw CAN bus log (several formats are supported) and see all decoded parameters in readable form, built plots.
Also there are some tools to investigate unknown parameters.

Best regards,
Andrew
Feel free :) Tool looks cool!
thanks!!

there are some results based on your DBC
not sure if they are correct.. I am not familiar with Leaf
Image
Image

User avatar
Dala
Forum Supporter
Posts: 261
Joined: Sun Oct 28, 2018 11:24 am
Delivery Date: 01 Jan 2015
Leaf Number: 316851
Location: Finland
Contact: Website

Re: LEAF CANbus decoding. (Open discussion)

Thu Apr 02, 2020 12:57 am

can2sky wrote:
Wed Apr 01, 2020 3:57 am
thanks!!

there are some results based on your DBC
not sure if they are correct.. I am not familiar with Leaf
The values are correct, but when you see a sawtooth like that it is due to the data being multiplexed. That location contains several datapoints, and another part of the message defines that. The "LB_Historical_Data_Swich_Flag" is the multiplex in that message.

can2sky
Posts: 3
Joined: Tue Mar 31, 2020 7:54 am
Delivery Date: 31 Mar 2020

Re: LEAF CANbus decoding. (Open discussion)

Sat Apr 04, 2020 12:04 pm

Dala wrote:
Thu Apr 02, 2020 12:57 am

The values are correct, but when you see a sawtooth like that it is due to the data being multiplexed. That location contains several datapoints, and another part of the message defines that. The "LB_Historical_Data_Swich_Flag" is the multiplex in that message.
thanks! a lot of headache to implement this

TrueSoln
Posts: 28
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: LEAF CANbus decoding. (Open discussion)

Mon Apr 13, 2020 12:30 am

Looks like has been some update on this thread , So will have to read them all again.
Been spending lots hours reading and looking at logs.
Learn a lot so thanks to all random bits of info it all helps.

At moment does any one any of the message that indicate the relay states.
Want to know from OBC (On board charger), BCM (Battery Control Module)
The states of what relays they have turned on.
Trying to see from logs how long pre-charge relays on when running and when charging.


Just as a random
I did work out some info on
Message ID:380 from OBC
If Byte[0] = 2
then byte[2] seem to indicate charger in port (Use binary mask 1000 to check plugged in)
then byte[4] seem to indicate charger working (Use binary mask 10000 to check plugged in)

Message ID:1DB from BMU
byte[2] if 0xFF seem seem to indicate charger that the Main fuze is out, based on wiring could also mean that HV interlock is not connected also

mux
Posts: 303
Joined: Sat Jan 13, 2018 3:52 am
Delivery Date: 13 Oct 2011
Leaf Number: 6177

Re: LEAF CANbus decoding. (Open discussion)

Mon Apr 13, 2020 1:30 am

0x1DB byte 1 [2:0] are the error flags. Bit 0 indicates an EV system error (just the EV system warning light on the dash), bit 1 stops the car from charging and bit 2 is the turtle light and immobilizes the car.

NiallDarwin
Posts: 49
Joined: Thu Jul 09, 2015 1:58 am
Delivery Date: 12 Dec 2015
Leaf Number: 004321
Location: New Zealand

Re: LEAF CANbus decoding. (Open discussion)

Sat May 09, 2020 3:20 am

TrueSoln wrote:
Mon Feb 17, 2020 1:56 am
NiallDarwin wrote:
Sun Nov 24, 2019 3:21 pm
Tremelune wrote:
Sun Aug 25, 2019 12:27 pm


Jimma Hanna's video on getting the DC-DC converter working: https://www.youtube.com/watch?v=BMhcHkOg-Mk
@Tremelune Broken Link! Any chance its still up but moved?
I think I found the video inside another very long one
This link jumps to his part: https://youtu.be/ipEzK1yzxHY?t=6424
Thank you. That's Gold

wjbitner
Posts: 1
Joined: Fri May 15, 2020 8:48 am
Delivery Date: 15 May 2020
Leaf Number: 331010

Re: LEAF CANbus decoding. (Open discussion)

Fri May 15, 2020 9:04 am

IskeSoderlund wrote:
Sat Sep 08, 2018 1:22 pm
Hi!
Been lurking here for a while, I'm trying to hack a leaf OBD charger. I've come quite a way closer to charging. I've written a program which makes the charger think it's in the leaf. And it seems to work the charger is no longer sending "fault" signals by CAN. And I'm trying to make it charge by sending the same messages that the VCM sends to the leaf when charging, according to CAN captures by carrot. I still haven't been able to make it charge. Is it possible that the charger like the inverter saves DTC and refuses to start charging? If so what's my best option to remove stored DTCs?

If anyone wants my codes for the program or help with making the charger "think" its in a leaf just contact me!
I would like to see your code. I would like to re-use the leaf charger and dc/dc converter outside the Leaf. I have 2 leaf motors. I have the inverter/section working well and would like to use the charger also.

Thanks.
Bill Bitner
wjbitner@yahoo.com
bbitnerblogs.com/e-miata

Return to “LEAF CANBus”