celeron55
Posts: 19
Joined: Fri Dec 08, 2017 2:52 pm
Location: Finland

Re: LEAF CANbus decoding. (Open discussion)

Wed Feb 07, 2018 11:48 am

Nice!

I predict this to be a bit more difficult than the inverter, but we'll see.

stef
Posts: 1
Joined: Thu Mar 15, 2018 7:33 am
Delivery Date: 04 Jul 2018

Re: LEAF CANbus decoding. (Open discussion)

Mon Mar 19, 2018 6:01 am

found this in pdf from a revision for IEC 61851-24
https://ibb.co/cAEZSx
so a bit of a conformation of the QC canbus off the ev side

and a more detailed explanation of the flowcode
https://ibb.co/f0N2fH

p4ppo
Posts: 3
Joined: Tue Jun 20, 2017 10:44 am
Delivery Date: 06 Mar 2017

Re: LEAF CANbus decoding. (Open discussion)

Wed Apr 04, 2018 7:54 am

Hello everyone,

thanks for this brilliant post, i read it all but i cannot understand how to read data that comes out of the EV can.

I have understood the message id 5BC is the SOC.
I have my Leaf with 2 bars out of 12 on the display and the can gives me these values for id 5BC

5D C0 28 64 C2 10 1F FF
5D C0 F0 64 C3 11 03 DE
5D C0 28 64 C2 10 A1 86
5D C0 F0 64 C3 11 66 72
5D C0 28 64 C2 11 03 DE


and so on...

So it looks like 5D C0 does not change, but i cannot convert the into any reasonable way, even reading the canmsg file, anyone can help me?

Thanks

I'll edit this to add that today was trying again to decode it and i have full charge and ID5BC keeps saying me

Code: Select all

can1  5BC   [8]  5D C0 F0 64 C3 11 00 3C
  can1  5BC   [8]  59 80 F0 64 C3 01 60 5A
  can1  5BC   [8]  5D C0 F0 64 C3 12 5F FF
  can1  5BC   [8]  59 80 F0 64 C3 02 BF FF
  can1  5BC   [8]  5D C0 F0 64 C2 13 1F FF
  can1  5BC   [8]  59 80 F0 64 C2 00 1F FF
  can1  5BC   [8]  5D C0 F0 64 C2 10 A0 28
  can1  5BC   [8]  59 80 F0 64 C2 01 00 3C
  can1  5BC   [8]  5D C0 F0 64 C2 11 60 5A


so it really makes me mad to understand how this should be taken as SOC...
Last edited by p4ppo on Thu Apr 12, 2018 6:50 am, edited 1 time in total.

nealm
Posts: 2
Joined: Wed Apr 11, 2018 6:45 am
Delivery Date: 11 Apr 2018

Re: LEAF CANbus decoding. (Open discussion)

Wed Apr 11, 2018 6:53 am

Hi,

I would like to program a new key fob as we lost one of ours. Does anyone know how to do that using an OBD interface ?

The "stealer" -ship wants $200 just to program a new FOB. I would love to do this myself but have no clue how. I do have my existing pin code for the one fob I have.

Thanks,

Neal :)

Turbo3
Gold Member
Posts: 1966
Joined: Mon Jul 19, 2010 8:34 pm
Delivery Date: 12 May 2011
Leaf Number: 002191
Location: San Jose, CA

Re: LEAF CANbus decoding. (Open discussion)

Wed Apr 11, 2018 4:48 pm

nealm wrote:Hi,

I would like to program a new key fob as we lost one of ours. Does anyone know how to do that using an OBD interface ?

The "stealer" -ship wants $200 just to program a new FOB. I would love to do this myself but have no clue how. I do have my existing pin code for the one fob I have.

Thanks,

Neal :)

To do that with a Consult 3+ you need a special security card to do the programming.

GreenaGiant
Posts: 1
Joined: Mon Apr 30, 2018 3:48 am
Delivery Date: 30 Apr 2018
Leaf Number: 038843

Re: LEAF CANbus decoding. (Open discussion)

Thu May 03, 2018 7:14 am

Hello all,

Firstly, thank you to all for an excellent thread here. I have just started working on a datalogger for my Leaf to support my research at Loughborough University. http://elevateproject.co.uk/

I have two CAN bus interfaces from Race Technology. https://www.race-technology.com/gb/racing/products/ecu-interfaces/can-interface

These are hooked up to my laptop using a standard serial to USB dongle, with the CAN interfaces reading off the Car CAN and EV CAN.

So far, decoding has been a pain, as is obvious from other posts here. I am finding this spreadsheet very useful though; https://docs.google.com/spreadsheets/d/1EHa4R85BttuY4JZ-EnssH4YZddpsDVu6rUFm0P7ouwg/edit#gid=1

Question regarding the message structure. I am guessing it isn't the intel standard, instead it is Motorola backward for the byte ordering??? Page 16 here; http://www.race-technology.com/upload/PDF%20manuals/CAN%20Interface%20Manual%20v2.3_25%20May%202010.pdf

Thanks in advance for any help or suggestions.

Note, being a research project I will be making all my work open source when it is done in the next 12 months, including a python model of the Nissan Leaf which is still work in progress here; https://github.com/howroyd/ELEVATE

Cheers

Simon

sandeen
Posts: 125
Joined: Fri May 12, 2017 1:45 pm
Leaf Number: 026685
Location: Minnesota

Re: LEAF CANbus decoding. (Open discussion)

Sun May 27, 2018 7:34 pm

Is there any existing library out there to do basic LEAF canbus/evbus decoding over bluetooth? I'd really like to teach OpenEVSE to be able to monitor state of charge for example (by using an ESP32 in place of the ESP8266 it currently uses, to get the built in bluetooth support...)
2012 SL from TX, (mfg 8/12), used, dropped to 8 bars at 43.50 Ahr, 40,601 miles. my daily stats =/= my collected data on 4-bar losers

ksidener
Posts: 1
Joined: Sun Dec 10, 2017 4:11 pm
Delivery Date: 10 Dec 2017
Leaf Number: 306132

Re: LEAF CANbus decoding. (Open discussion)

Thu Jun 14, 2018 10:59 am

sandeen wrote:Is there any existing library out there to do basic LEAF canbus/evbus decoding over bluetooth? I'd really like to teach OpenEVSE to be able to monitor state of charge for example (by using an ESP32 in place of the ESP8266 it currently uses, to get the built in bluetooth support...)


This question is very close to mine. I am working on a CAN Bus shield for an Arduino shield I purchased from EVTV. My project is a V2H interface to my Nissan Leaf. I am just starting out so I apologize for my ignorance, but working with the Users Manual and programming the CAN interfaces I need to set up the CAN_FRAME Data Type Structure. Here i set the Frame size and structure.

Can anyone share with me what the basic frame size and structure of the CAN_FRAME is for Nissan Leaf?

Thank you in advance if you are able to help.

Regards,

Kelly Sidener

celeron55
Posts: 19
Joined: Fri Dec 08, 2017 2:52 pm
Location: Finland

Re: LEAF CANbus decoding. (Open discussion)

Sat Jun 23, 2018 11:05 am

Project update: I was unable to reverse the charger CAN protocol to an extent that would have made it do any... well, charging. I did get the DC-DC converter to operate, but that was it.

Basically I found out bit 0x04 in the 0x1f2 frame disables the converter (set low to enable, just spam 0x1f2 00 64 00 a0 00 00 00 00 or so every 10ms). You might also need 50b, 1d4 and maybe 55b (probably not). Anyway, that's worthless without the charging working.

I'm now in the process of developing the necessary hardware mods to get it to charge without any co-operation of Nissan's original software. This is actually going fairly well (I already have full control in a lab setup), but making this reproducible or to be something that I can use daily is more difficult.

EDIT: I've basically reverse-engineered enough of the connections to the Renesas R5F35MEEJFE chip that controls the PDM in order to write a new program from scratch for it to do regular charging and dc-dc conversion. Not sure if I'll do that, I'd need a E8a emulator ($150) and basically IAR Embedded Workbench for M16C ($2000? $4000?) to program it. Also, nobody sells these chips for a hobbyist if the one on board is somehow locked. I can find different ones with the same pinout though, eg. R5F35L2EJFE.

Return to “LEAF CANBus”