User avatar
49thdiver
Forum Supporter
Posts: 52
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: LEAF CANbus decoding. (Open discussion)

Sun Jan 10, 2021 12:32 am

More good info, thanks Dala. I am away from home at the moment but am doing two things while away:
1- rewriting my code to include the MPRUN/CSUM/CRC as described in your video. This will certainly change some of the outcomes I am getting and explains a lot about my lack of success on the OBC/charger project, I will be revisting that shortly I hope to. The more I think about it the more significant this information is.
2- Writing a new piece of code to run on a stand alone UNO and an MCP2515 that emulates a Nissan Leaf or at least the BMS relevant VCM & OBC communication. This will help reduce the code development time by not having to connect to the car until the code is really ready ;) and advance the OBC charger project.
More to follow, Thanks again.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

User avatar
49thdiver
Forum Supporter
Posts: 52
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: LEAF CANbus decoding. (Open discussion)

Sun Jan 17, 2021 11:46 pm

Dala, As I am coding my leaf emulator I notice that byte 4 of 5BC has different lengths associated with signals 2, 5 and 9 creating bit overlaps. I may just only use 2 permutation of this command for my first version as the information in bytes 5,6 & 7 are not critical for reading GIDS. Signal 5 bit 0 would appear to be the multiplex for charge and capacity bars and bits 3 2,1 being part of signal 4. Signal 9 is perhaps not relevant, other than bit 0 as noted above. Any comments ?
With thanks
Peter.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

User avatar
Dala
Forum Supporter
Posts: 297
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)

Mon Jan 18, 2021 3:32 am

49thdiver wrote:
Sun Jan 17, 2021 11:46 pm
Dala, As I am coding my leaf emulator I notice that byte 4 of 5BC has different lengths associated with signals 2, 5 and 9 creating bit overlaps. I may just only use 2 permutation of this command for my first version as the information in bytes 5,6 & 7 are not critical for reading GIDS. Signal 5 bit 0 would appear to be the multiplex for charge and capacity bars and bits 3 2,1 being part of signal 4. Signal 9 is perhaps not relevant, other than bit 0 as noted above. Any comments ?
With thanks
Peter.
Shouldn't affect GIDs reading. Just alternate something like this
5x
0x000005bc 8 0x4c 00 98 64 be 03 ff ff
5x
0x000005bc 8 0x4c 00 f0 64 bf 03 ff ff
....

User avatar
Dala
Forum Supporter
Posts: 297
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 Feb 23, 2021 12:07 am

damienmaguire posted some raw CAN logs from a ZE1 "gen3" inverter. This helps decode the CAN-messages on EV-CAN for ZE1 even further
https://github.com/damienmaguire/Nissan ... m_cold.csv

https://github.com/dalathegreat/leaf_ca ... c293c67769

Return to “LEAF CANBus”