What I know so far.
The PDM sits on the "EV SYSTEM CAN Circuit" There are a number of connections on the B24 connector that need to be hard wired in order to function along with an external j1772 charger to start with ChaDemo can come later.
The connections are
- Pin 10, Plug in signal, LightGreen
- Pin 11, EV System CAN-L, DarkGreen
- Pin 12, HV detecting circuit Interlock In, Orange
- Pin 15, HV detecting signal Interlock Out, Pink
- Pin16 Power On (IGN) , Violet
- Pin 18, Battery Power Supply, Red
- Pin 27, EV System CAN-H, Blue
- Pin 29, EVSE Connection Signal, White
- Pin30, EVSE communication PWM, Brown
This is my set up :
and my connection diagram :
When the PDM powers up all I get is a high on pin 29 and two CAN messages, each one transmitted several times
This is my first CanBus Grab from the PDM.
I understand that Can messages are formated like this.
- SOF - BASEID - FRAME TYPE - DLC - DATA UP TO 8 BYTES- CRC - NAK - EOF
- SOF 30C DATA 4 0 20 0 81 CRC-D N EOF
- SOF 302 REMOTE 2 CRC-D A ACK-D EOF
Others on this forum have advised the following :
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.
Been lurking here for a while, I'm trying to hack a leaf OBD charger. I've come quite a way closer to charging. I've written a program which makes the charger think it's in the leaf. And it seems to work the charger is no longer sending "fault" signals by CAN. And I'm trying to make it charge by sending the same messages that the VCM sends to the leaf when charging, according to CAN captures by carrot. I still haven't been able to make it charge. Is it possible that the charger like the inverter saves DTC and refuses to start charging? If so what's my best option to remove stored DTCs?
If anyone wants my codes for the program or help with making the charger "think" its in a leaf just contact me!