Page 46 of 53

Re: LEAF CANbus decoding. (Open discussion)

Posted: Fri Dec 08, 2017 3:06 pm
by celeron55
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.

Re: LEAF CANbus decoding. (Open discussion)

Posted: Fri Dec 08, 2017 6:10 pm
by Turbo3
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.

Re: LEAF CANbus decoding. (Open discussion)

Posted: Sat Dec 09, 2017 12:54 am
by celeron55
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?

Re: LEAF CANbus decoding. (Open discussion)

Posted: Sat Dec 09, 2017 12:35 pm
by Turbo3
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/co ... af_Spy_Pro

Re: LEAF CANbus decoding. (Open discussion)

Posted: Sat Dec 09, 2017 5:57 pm
by celeron55
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)

Re: LEAF CANbus decoding. (Open discussion)

Posted: Sat Dec 09, 2017 9:25 pm
by Turbo3
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?

Re: LEAF CANbus decoding. (Open discussion)

Posted: Sat Dec 09, 2017 9:47 pm
by lorenfb
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.

Re: LEAF CANbus decoding. (Open discussion)

Posted: Sun Dec 10, 2017 2:00 pm
by celeron55
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.

Re: LEAF CANbus decoding. (Open discussion)

Posted: Sun Dec 10, 2017 6:37 pm
by lorenfb
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.

Re: LEAF CANbus decoding. (Open discussion)

Posted: Mon Dec 11, 2017 8:15 am
by JeremyW
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. :)