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

Re: LEAF CANbus decoding. (Open discussion)

Fri Dec 08, 2017 3:06 pm

Hi. I'm planning on controlling a Leaf inverter on my own, with none of the rest of a Leaf at my disposal.

I've done some reading and it appears the inverter is able to store DTCs and go in a permanent low power mode according to the stored DTCs.

It seems I cannot clear inverter DTCs using LeafSpy because if it was able to clear them, it would do it through the VCM. I don't have a VCM.

Does anyone have a capture of the EV CAN bus when inverter DTCs are being cleared, or does anyone have the resources to do one for me?

E.g. unplug the motor sensor wire to get some DTCs and then capture the reading and clearing of them.

Turbo3
Gold Member
Posts: 1936
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)

Fri Dec 08, 2017 6:10 pm

celeron55 wrote:Hi. I'm planning on controlling a Leaf inverter on my own, with none of the rest of a Leaf at my disposal.

I've done some reading and it appears the inverter is able to store DTCs and go in a permanent low power mode according to the stored DTCs.

It seems I cannot clear inverter DTCs using LeafSpy because if it was able to clear them, it would do it through the VCM. I don't have a VCM.

Does anyone have a capture of the EV CAN bus when inverter DTCs are being cleared, or does anyone have the resources to do one for me?

E.g. unplug the motor sensor wire to get some DTCs and then capture the reading and clearing of them.

To clear DTCs from a standalone motor/inverter unit you would need a new version of LeafSpy Pro that skips trying to read information from all the other ECUs.

This was done to support clearing BMS DTCs from a standalone battery pack.

I can look into adding that on a future update I am working on for another person. You would then go into Settings and change the Model year to Motor/Inverter.

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

Re: LEAF CANbus decoding. (Open discussion)

Sat Dec 09, 2017 12:54 am

Turbo3 wrote:I can look into adding that on a future update I am working on for another person. You would then go into Settings and change the Model year to Motor/Inverter.


I imagine then I'd just connect the EV CAN bus to the regular CAN pins of an ELM327, fiddle with some settings and be on my way?

Any estimate on when this feature would be available?

Turbo3
Gold Member
Posts: 1936
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)

Sat Dec 09, 2017 12:35 pm

celeron55 wrote:
Turbo3 wrote:I can look into adding that on a future update I am working on for another person. You would then go into Settings and change the Model year to Motor/Inverter.


I imagine then I'd just connect the EV CAN bus to the regular CAN pins of an ELM327, fiddle with some settings and be on my way?

Any estimate on when this feature would be available?

Working on it right now. Probably a couple of days.
-------------------------------------
Update done. Version 0.40.107, which I will release shortly, now supports a Motor/Inverter only mode. Just go into Settings and select the top most item for Model Year ("MTR/INV").

Use this link to get the latest test version. https://play.google.com/apps/testing/com.Turbo3.Leaf_Spy_Pro

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

Re: LEAF CANbus decoding. (Open discussion)

Sat Dec 09, 2017 5:57 pm

Ha, nice! Now I just need an Android device of some kind... LOL

I modded a sure-fire way to clear DTCs from my inverter:

Image

Yes, it now has a replaceable EEPROM that I already read onto my laptop. This was the content: https://pastebin.com/Vb3WGWks (tighter format: https://pastebin.com/dUAREEvr)

Interestingly, I can find my resolver calibration values in there. (The plate on the motor reads 78 0073 0058)

Turbo3
Gold Member
Posts: 1936
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)

Sat Dec 09, 2017 9:25 pm

celeron55 wrote:Ha, nice! Now I just need an Android device of some kind... LOL

I modded a sure-fire way to clear DTCs from my inverter:

Yes, it now has a replaceable EEPROM that I already read onto my laptop. This was the content: https://pastebin.com/Vb3WGWks (tighter format: https://pastebin.com/dUAREEvr)

Interestingly, I can find my resolver calibration values in there. (The plate on the motor reads 78 0073 0058)

Can you take a screenshot of all the DTCs before you clear them?

lorenfb
Posts: 1669
Joined: Tue Dec 17, 2013 10:53 pm
Delivery Date: 22 Nov 2013
Leaf Number: 416635
Location: SoCal

Re: LEAF CANbus decoding. (Open discussion)

Sat Dec 09, 2017 9:47 pm

celeron55 wrote:Ha, nice! Now I just need an Android device of some kind... LOL

I modded a sure-fire way to clear DTCs from my inverter:

Image

Yes, it now has a replaceable EEPROM that I already read onto my laptop. This was the content: https://pastebin.com/Vb3WGWks (tighter format: https://pastebin.com/dUAREEvr)

Interestingly, I can find my resolver calibration values in there. (The plate on the motor reads 78 0073 0058)


Whose large processor is located near the serial EEPROM you removed, i.e. the one most likely doing system diagnostics?
Surely that processor has flash, but having an external EEPROM possibly simplifies external access for diagnostic tools.

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

Re: LEAF CANbus decoding. (Open discussion)

Sun Dec 10, 2017 2:00 pm

lorenfb wrote:Whose large processor is located near the serial EEPROM you removed, i.e. the one most likely doing system diagnostics?
Surely that processor has flash, but having an external EEPROM possibly simplifies external access for diagnostic tools.


The board has two Renesas MCUs: R5F71476FPV (the big 32-bit one) and R5F2120 (a 16-bit one on the backside). Neither has internal EEPROM, and usually you don't store anything in flash when you have an external EEPROM at your disposal.

More photos if someone is interested (including all chip markings on the logic board, annotated where not visible otherwise): https://imgur.com/a/cQNVs

Does anyone know of a gen2 EV CAN capture for a "switch on, switch to D, drive, stop, switch off" sequence?

I'm currently basing my work on a gen1 capture, which is not ideal at all.

lorenfb
Posts: 1669
Joined: Tue Dec 17, 2013 10:53 pm
Delivery Date: 22 Nov 2013
Leaf Number: 416635
Location: SoCal

Re: LEAF CANbus decoding. (Open discussion)

Sun Dec 10, 2017 6:37 pm

celeron55 wrote:
lorenfb wrote:Whose large processor is located near the serial EEPROM you removed, i.e. the one most likely doing system diagnostics?
Surely that processor has flash, but having an external EEPROM possibly simplifies external access for diagnostic tools.


The board has two Renesas MCUs: R5F71476FPV (the big 32-bit one) and R5F2120 (a 16-bit one on the backside). Neither has internal EEPROM, and usually you don't store anything in flash when you have an external EEPROM at your disposal.

More photos if someone is interested (including all chip markings on the logic board, annotated where not visible otherwise): https://imgur.com/a/cQNVs

Does anyone know of a gen2 EV CAN capture for a "switch on, switch to D, drive, stop, switch off" sequence?

I'm currently basing my work on a gen1 capture, which is not ideal at all.


Thanks for the info. Most Bosch automotive ECMs for the last 15-20 years rarely use a small serial EEPROM and utilize the processor's
on-board flash. That serial memory was mostly used to store a rolling remote key code for the main ECM processor's immobilizer function.

User avatar
JeremyW
Posts: 1532
Joined: Sun Nov 13, 2011 12:53 am
Delivery Date: 23 Jun 2012
Leaf Number: 19136
Location: San Gabriel, CA

Re: LEAF CANbus decoding. (Open discussion)

Mon Dec 11, 2017 8:15 am

As far as I know, Bosch doesn't make anything in the leaf. The main ECU is made by Hitachi. TCU is by Continental. My guess is the inverter is designed by Nissan in house.

celeron55, some great work there. Can you post the EEPROM contents? What are you using the motor for?

Maybe a new thread is necessary for your project. :)
Former 2012 SL leasee 6/23/12 - 9/23/15
Now driving Honda Fit EV, License plate: CHADEMO
2000 Honda Insight for long trips

Return to “LEAF CANBus”