ChicagoTurtle
Posts: 1
Joined: Tue Apr 21, 2020 4:27 pm
Delivery Date: 15 May 2020

Re: Stand alone OBC/PDModule EV system Can 2015

Mon May 04, 2020 9:21 am

I have a Gen2 charger on the bench right now (and do not have access to a complete Leaf)
I've been feeding it your 1F2 adn 1D4 messages that you posted previously, and after several seconds I have been catching a single reply from from with ID:679 and a single empty byte 0x00 payload.
Have you seen this message pop up before?

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

Re: Stand alone OBC/PDModule EV system Can 2015

Fri Jun 26, 2020 5:26 pm

https://www.divemaster.ca/RAV4EV/LEAF/P ... %2023.xlsx

Hi folks, I dropped off this list for a few months and have just been catching up.
Looks like some progress was made in understanding whats happening but I am not sure if anyone got it going reliably.
I have been distracted with the RAV4 EV pack conversion. I have been able to run the RAV4 EV from the leaf pack now and by spoofing the RAV into thinking it has the original pack we were even able to get the factory paddle charger to charge the leaf pack. We intend to use the leaf BMS to feed the RAV4 ECU.

Anyway as far as the OBC/PDM is concerned the link above is my data collection spread sheet from a working 2015 using MUX's man in the middle CAN device. Thanks Mux.
Many of the commands mentioned are clearly recorded here including the 393
I hope to get back on to this project by the end of next week.

Any updates ? is the above helpful, I note there is a better data base on github I have downloaded the DB tool and am looking at that now.
Thanks to everyone who is working on this.

Peter
Last edited by 49thdiver on Tue Aug 18, 2020 12:54 pm, edited 2 times in total.
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: 36
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Sat Jun 27, 2020 12:03 am

Regarding message 0x679 I get this every time I plug or unplug the j1772 plug from the car. I believe it originates from the OBC as do messages 0x390 and 0x393 which follow 0x679
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: 36
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Fri Jul 10, 2020 10:26 am

I am about to launch into another session with the OBC. Reading thru my notes, my can capture logs and the conversation here I can say the charger needs more than the 1F2 and 1D4 commands to function. I can say this because my set up includes most of the electronics except the BMS the Inverter and ABS specifically and the 1F2 and 1D4 commands are being provided by the VCM.

This is what it my set up looks like. The laptops and the can bridges are off to the side with the OBC and there is 380 volts of batteries on the floor. I am using the precharge relay and main relays from my RAV4. (so far they do not kick in).

Image

As you can see in the data lists below the 1F2 and the 1D4 commands are being provided by I assume the VCM. I have not isolated the VCM with the Can Bridge to confirm yet. I have however isolated the OBC with the bridge and can confirm that the 679, 390 & 393 commands originate with the OBC.

I have two recordings here, one from a working car and the 2nd from my "Leaf on Plywood" test bed.
Sorry for the poor and different formats. I would be kicked off the android forums for it ;)
You can see that starting at line 4 of Al's Leaf there are 5 commands not present in the Plywood leaf.
I plan to insert these missing commands into the Plywood Leaf dialog one at a time to see what happens.
The comments on the left are either from some of the data that is out there that you are all familiar with or my own.
All advice and comments appreciated.

Al's 2015 100% functional Leaf ;
-------------------------------------------
J1772 Plug detection from OBC......... 0x679 0x0
On board Charger (OBC).................... 0x390 0x4 0 0 0 0 80 3C 7
On board Charger............................... 0x393 0x0 10 0 0 20 0 0 2
VCM Car wakeup cmd......................... 0x50B 0x0 0 0 C0 0 0 0
Possible VCM related to charge......... 0x54A 0xDA 80 70 E 0 0 0 54
Possible VCM related to charge......... 0x481 0x4B 0
Possible VCM related to charge......... 0x54B 0x10 8 80 0 4 0 0 0
Possible VCM related to charge......... 0x54C 0x59 FF 0 0 0 F8 FF 0
Possible VCM related to charge......... 0x54F 0x14 0 0 0 8 40 C0 14
Back ground messages VCM.............. 0x1F2 0x0 64 4 A0 0 1 0 83
Back ground messages VCM.............. 0x1D4 0x6E 6E 0 0 2 6 E0 CA
Possible VCM related to charge......... 0x50A 0x4 80 0 F 0 2 4 0
Possible VCM related to charge......... 0x50C 0x0 0 0 0 5D C8
Possible VCM related to charge......... 0x5A9 0xFF FF FC FF FF F7 FE 0
Back ground messages VCM.............. 0x1F2 0x0 64 4 A0 0 1 1 84
Back ground messages VCM.............. 0x1D4 0x6E 6E 0 0 42 6 E0 D
Back ground messages VCM.............. 0x1F2 0x0 64 4 A0 0 1 2 85
Back ground messages VCM.............. 0x1D4 0x6E 6E 0 0 82 6 E0 C1
Possible VCM related to charge......... 0x45E 0x0
Possible VCM related to charge......... 0x5B9 0x7 FF 7 FF 2F FF 80
Back ground messages VCM.............. 0x1F2 0x0 64 4 A0 0 2 3 87
Back ground messages VCM.............. 0x1D4 0x6E 6E 0 0 C2 6 E0 6

The Plywood Leaf : Including OBC, VCM, BCM, MWI,IPDM not including BMS, Inverter or ABS
-----------------------------------------
J1772 plug in....................................... 679 0
OBC:380, Byte1=04 is ac charge....... 390 04000000008C3C03
From OBC 49thdiver.......................... 393 10000020000002
VCM Car Wakeup command............. 50B 000000C0000000
From VCM : Charge Power................ 1F2 646404A00000038F
Motor Amps : From VCM................... 1D4 6E6E0000C006E075
Temperature ?..................................... 50A 042800FF00020400
VCM wake/sleep request signal........ 50C 000000015D5F
SOC ? 1 & 2 = FF while chg................. 5A9 FFFFFCFFFFF7FE00
VCM...................................................... 11A 008000AAC0000067
Charge Power..................................... 1F2 046404A000020088
Motor Amps........................................ 1D4 6E6E00000206E0CA
VCM...................................................... 11A 80005500000171
Charge Power...................................... 1F2 046404A00004018B
Motor Amps......................................... 1D4 6E6 E00004206E00D
VCM....................................................... 11A 00800055400002BC
Charge Power...................................... 1F2 046404A0000A0282
Motor Amps......................................... 1D4 6E6E00008206E0C1
VCM....................................................... 11A 008000AA800003AA
Charge Power...................................... 1F2 646464A000290380
Motor Amps......................................... 1D4 6E6E0000C006E075

Sorry for the funky formatting, if any one knows how to do formatted tables or tabulation I can fix it.
Last edited by 49thdiver on Sat Jul 11, 2020 9:20 am, edited 2 times in total.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

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

Re: Stand alone OBC/PDModule EV system Can 2015

Sat Jul 11, 2020 1:01 am

VCM 0x50B contains the wakeup/sleep command which most of the EV drivetrain requires to see.

0x603 and 0x679 are wakeup messages. 0x603 from VCM and 0x679 from the charger.

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: Stand alone OBC/PDModule EV system Can 2015

Sat Jul 11, 2020 2:33 am

Nice progress, the info provided here allowed me to remove some questionmarks from the database files!

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

Re: Stand alone OBC/PDModule EV system Can 2015

Tue Jul 14, 2020 9:18 pm

The journey continues:
I have started sending CAN Commands 54A and 481 with the appropriate data as posted earlier.
I have the man in the middle between the charger and the rest of the EVCAN bus streaming data to a terminal screen. I have a recorder and a play back device on the charger side of the MIM.
I was getting some relay clicks internally in the IPDM. I opened up the IPDM to figure out what was going on with the relay clicks and found that it is the F/S relay. Beware of the difference between the F/S relay (j1772) and the F/S CHG relay (chademo). The commands sent cause the F/S relay to kick in the VCM responds with the usual commands back 1f2,1d4 etc and the OBC even responds with 390 and 393 commands. Other than that nothing else different has happened.

The IPDM is connected via CAN and I assume that the "CPU" receives the appropriate command to turn the F/S relay on.

This is a diagram of the IPDM with the relevant circuit board detail. I added an LED to the F/S relay circuit so I could see when it comes on.

Image

There are some board photo's here : https://photos.app.goo.gl/GTFeUP7SHQ1jBUNW6
check the info for descriptions.

Something other than commands is preventing the charger from powering up. I am going to double check all my connections.

Just a note in passing I manually engaged the Chademo F/S CHG relay to see what would happen, nothing obvious happened but it caused a DTC error (unknown) that locked down the VCM from responding to my inserted commands. I used LeafSpy Pro to clear the DTC's and resolved that thankfully I was beginning to think I had bricked it or blown something up.
While on the DTC subject I have 25 to 30 DTC's mostly not critical I think from systems not connected SRS, ABS, BMS, etc. I am not yet convinced that they are preventing the charger from powering up. I may have to connect the BMS which I do not have here, it is still in the battery pack. If I do not make any progress past this point I will try and post a wiring diagram of what I have so far.
Any suggestions appreciated.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

ybpvin
Posts: 27
Joined: Fri Aug 24, 2018 4:55 am
Delivery Date: 24 Aug 2018
Leaf Number: 022135
Location: Ukraine
Contact: Facebook

Re: Stand alone OBC/PDModule EV system Can 2015

Thu Jul 16, 2020 10:30 am

Dear 49thdiver, you have done a great job.
I can't start the charger yet either. Could the PDM use the motor as a transformer?
Second point. When the PDM module is started on the working machine, a quiet whistle of the converter is heard. I think it might be using some command CAN.

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

Re: Stand alone OBC/PDModule EV system Can 2015

Thu Jul 16, 2020 7:19 pm

ybpvin wrote:
Thu Jul 16, 2020 10:30 am
I can't start the charger yet either. Could the PDM use the motor as a transformer?
I don't think so.
The one part however that is required is the main capacitor bank from the inverter.
The system watches the voltage across the capacitor once the precharge relay & resistor are turned on. When the voltage across the capacitors either stops rising or reaches some maximum it allows the VCM to turn the main relays on.
ybpvin wrote:
Thu Jul 16, 2020 10:30 am
Second point. When the PDM module is started on the working machine, a quiet whistle of the converter is heard. I think it might be using some command CAN.
I have not noted this, when I have access to that car again ,probably next week, I will check that.
In my experience a "whistle" sound is usual associated with an inverter it might be the DC to DC converter.

I am just finishing up my wiring check and connecting a couple of other systems to reduce the DTC errors.
Airbags is interesting I found out you can put a 2.2-3 ohm resistor in place of the air bag and seat belt pretensioner to make the box think it's ok :)
Thanks for the feed back.
More to follow.
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: 36
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Sat Jul 18, 2020 11:07 pm

July 18 2020, a lot of work was done but no significant progress made.
What I have learned for sure and is repeatable.
Cmd's 679, 390 and 393 originate with the OBC/PD
Cmd 679 indicates that J1772 charger has been plugged in.
Cmd 605 indicates that the immediate charge button has been pressed.
I have been inserting the following commands strings on to the EV-CAN bus, they all initiate a start up sequence that is similar to plugging in the charger.
1- 54A followed by 481 : Two responses from recorded from a working car : no change to test platform response
2- 605 followed by 50B : Immediate charge button sequence : no change to test platform response
3- 679 followed by 390 : plug in charger sequence : no change to platform response.
4- 1D4 is the only one that does anything, it initiates the same start up sequence.
5- 1D4 I think triggers the OBD/PD to transmit the 390 and 393 commands and the VCM responds accordingly..

It's worth noting :
1- commands must be 300ms apart or less.
2- 393 is not required to initiate a start up sequence.

I have manually entered all of the other commands recorded during a working cars charge sequence one at a time or in the sequence recorded with no other responses.
All of the above has been brute force insertion either when the car is sleeping or when a charge sequence has been initiated by plugging in the charger.

I plan now to use Mux's man in the middle to insert commands in a controlled manner hoping that it makes a difference.
I am concerned that perhaps my charger is just not working, it came from a wrecked car that we were unable to get fully functional including charging because the of the extensive damage to the motor, inverter and wiring. I am actively looking for another car and may have to let this rest until I get one.

Here is a nice picture of the 16 bit micro-controller that runs at least the communications of the OBC/PD. It has built in CAN BUS controller. If you search for RENESAS M16 R5F35 you can find all kinds or great information.
Image

Stay tuned.
Peter
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

Return to “LEAF CANBus”