Stand alone OBC/PDModule EV system Can 2015 - SOLVED

My Nissan Leaf Forum

Help Support My Nissan Leaf Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
nlspace said:
Did you ever get that counter added to your CAN code--i put an example code in the other thread

ybpvin said:
Can-data I recorded from a serviceable car. Edited and removed the ID that forms the engine. But battery charging is not going on.

@nlspace (Kenny) what the counter talking about and other thread ?
Seen a cycles pattern in message but not a counter.

And what can see in the diagrams the interlock is connected on fuse and connection lead.
Which is detected by the battery management unit.
Nothing stopping power up if relayed engaged with 12v on relay 1 and relay 2
 
At the bottom of this page he was asking about celeron55's protocol code linked mid-page

https://www.mynissanleaf.com/viewtopic.php?f=44&t=25027&start=20
 
TrueSoln said:
nlspace said:
Did you ever get that counter added to your CAN code--i put an example code in the other thread

ybpvin said:
Can-data I recorded from a serviceable car. Edited and removed the ID that forms the engine. But battery charging is not going on.

@nlspace (Kenny) what the counter talking about and other thread ?
Seen a cycles pattern in message but not a counter.

And what can see in the diagrams the interlock is connected on fuse and connection lead.
Which is detected by the battery management unit.
Nothing stopping power up if relayed engaged with 12v on relay 1 and relay 2
For the test, I connected a high-voltage battery without a relay to the pdm unit.
Charging 12 volts battery starts and infects up to 14.4 volts.
 
I just kept the code simple for number sequence, and seem that I was getting the charger to turn on.

Still have to work out actual pattern but below is what I used for code on an UNO
I look at the logs for a charge from MUX and Damien
ID 50B is same message during the whole charge (Every 100ms)
ID 1D4 & ID 1F2 Both come from VCM also and need to be simulated. (Every 10ms)


1D4 and 1F2 do still need to work out what it all means
But on Byte[5] of 1D4 seem to be control value

//F7 07 00 04 87 46 E0 64
//F7 07 00 04 C7 46 E0 A3
//F7 07 00 04 07 46 E0 6F
//F7 07 00 04 47 46 E0 A8
//- Every 10ms
uint8_t 1d4_incremental_counter = 0;
byte SendSignal_0x1d4()
{
byte messageData[8] = {0xf7, 0x07,0x00,0x04,0x00,0x46,0xe0,0x00 };

byte seqCtr[4] = {0x87, 0xc7,0x07, 0x45 };
messageData[4] = seqCtr[1d4_incremental_counter];

// Set the CRC and send
nissan_crc(messageData, 0x85);

1d4_incremental_counter++;
if (1d4_incremental_counter >= 4)
1d4_incremental_counter = 0;

return SendCanMessage(0x1d4, 0, 8, messageData);
}

//30 64 20 00 00 82 00 0B
//30 64 20 00 00 82 01 0C
//30 64 20 00 00 82 02 0D
//30 64 20 00 00 82 03 0E
//- Every 10ms
uint8_t counter_1f2 = 0;
byte SendCanMessage_1f2()
{
byte messageData[8] = { 0x30, 0x64, 0x20, 0x00, 0x00, 0x82, 0x00, 0x00 };

byte seqCtr[4] = {0x0b, 0x0c,0x0d, 0x0e };

//- Sets the sequence
messageData[6]=counter_1f2;
messageData[7] = seqCtr[counter_1f2];

counter_1f2++;
if(counter_1f2 >= 4)
counter_1f2 = 0;

//- Not sure if a CRC or Just a sequence pattern
//nissan_crc(messageData, 0x85);

return SendCanMessage(0x1f2, 0, 8, messageData);
}

//- Every 100ms
void Send50bMessage()
{
byte gen1_MessageData[6] = {0x00, 0x00, 0x00, 0xc0, 0x00, 0x00 }; // While charging
byte sndStat = CAN_OK;

return SendCanMessage( 0x50b,0, 6, gen1_MessageData);
}
 
ybpvin said:
Colleagues, did anyone manage to run PDM to charge a high-voltage battery?

@ybpvin yes I have seen that charger seem to be working
But have to run few more test before I can confirm charging correctly
Need to replace the main 225amp fuse and just completed getting water cooling working
So will then be able to try longer charge and check volts again
 
Does any one know if we need to use the pre-charge relays prior to starting to charge HV battery pack.
As from what I can see in logs, is some message that showing inverter is on (Maybe as a load)

Was told by some one that want to turn inverter on first
Do pre-charge relay and then main relays also
Then start up the charger.
Any one have knowledge of this being needed ?

And with CAN messages.
And one know any of the message that indicate the relay states.
Was in manual that some message indicate the relays on/off state so if know bit mask to use could confirm from logs relays that on and off at start of this.
 
TrueSoln said:
Does any one know if we need to use the pre-charge relays prior to starting to charge HV battery pack.

Pre-charging relay is necessary! I use two 220 volt incandescent lamps connected in series.
If you connect a high-voltage battery without prior charging, there will be a short circuit for a short time. PDM can go into protection mode.
 
ybpvin said:
Pre-charging relay is necessary! I use two 220 volt incandescent lamps connected in series.
If you connect a high-voltage battery without prior charging, there will be a short circuit for a short time. PDM can go into protection mode.

Thanks ybvin, I have the pre-charge option in the leaf battery so will make sure use it.
I think that is what I did to blow my fuse in first place not using the pre-charge when connecting up to inverter.
Still will keep looking for relay state info, that will be good to confirm who Nissan does it

Just a glimpse for those wondering what Im up to.
Gen1 e-motor and inverter under the cover of 200HP outboard
0000635_blogimages.jpeg
 
Hi all,

I'm attempting the same (running OBC standalone) with a 2014 Gen2 one.
Because that's what I've got lying around in case you're wondering :).
I've got most of the original loom connecting the PDM to the type 1 charge port and 12V battery.
An Arduino + CAN shield are playing VCM on pins 24 & 25 of plug E61.
I'm sending out the 1F2 message carousel and get message 393 with data 20,70,00,00,20,00,00,1b in return.
So something's not quite right yet :eek: .

Would anyone have a recording of the relevant CAN traffic for a Gen2?
Ideally starting with the car off > plug in > wait for contactors to click > count to 20 > plug out.

Cheers,
Cees.
 
Cees said:
I'm sending out the 1F2 message carousel and get message 393 with data 20,70,00,00,20,00,00,1b in return.

You sure about a message from OBC of ID 393,
never seen any one mention a message ID off 393 before on threads.

Not in this or main threads
https://docs.google.com/spreadsheets/d/1EHa4R85BttuY4JZ-EnssH4YZddpsDVu6rUFm0P7ouwg/edit#gid=0
 
Oh yeah, 393 exists on gen2, I have it in a bunch of my logs as well. It's basically completely static data all the time.
 
TrueSoln said:
You sure about a message from OBC of ID 393,
never seen any one mention a message ID off 393 before on threads.

Not in this or main threads
https://docs.google.com/spreadsheets/d/1EHa4R85BttuY4JZ-EnssH4YZddpsDVu6rUFm0P7ouwg/edit#gid=0

That excel sheet is obsolete, all the cool kids are using proper database files now ;)
https://github.com/dalathegreat/leaf_can_bus_messages

Good info, I'll add it that on the AZE0 this comes from the PDM. Previously it was listed as unknown sender module.
 
Thank you for creating the DBC database files, trying to sort thru the spreadsheets was painful.

"The DBC file type was developed by Vector Informatik GmbH in the 1990s to provide a standard means of storing information described in a CAN network. Used by the automotive industry primarily, Vector database files (.dbc) have since become the de facto standard for exchanging CAN descriptions."
 
Dala said:
That excel sheet is obsolete, all the cool kids are using proper database files now ;)
https://github.com/dalathegreat/leaf_can_bus_messages

Can some one just delete all the sheet's in that google excel page and just have it so have URL then of where most update info is then.
 
Been able now to source a new fuze,
But still not see it charge

When I turn it on, and activate CAN messages
I do see the light on the EVSE change to charging,
And I hear some relays in junction box click
But Im just not seeing any volts out of the box yet

Im wondering is I have woken it up and now need send cmd to say next step.
Any one actual got it to work yet on Gen1 or Gen2 charger from leaf ?

To know its working I would expect to see about 400v on the High Voltage Bus line
Is that what other would expect also as confirm it working?
 
Which fuse blew?

The charger will read the pack voltage and adjust the output to match that voltage, then ramp up the charging current to the pack and adjust up the voltage as needed to maintain the commanded set point current.
 
nlspace said:
Which fuse blew?
Was the battery fuse, was playing with inverter cmd and forgot to pre charge


nlspace said:
The charger will read the pack voltage and adjust the output to match that voltage,
then ramp up the charging current to the pack and adjust up the voltage
as needed to maintain the commanded set point current.
Ahh ok, so wont actual see a spike in voltage when charger turns on.
Not able to check current so will just have to leave on longer and see if battery can messages show higher SOC.

nlspace said:
maintain the commanded set point current.
Is set point current one done with CAN message or relating to the charger we have ?

FYI, I just manged get a complete 2104 Nissan Leaf (Damaged one)
So will try and get working and can do some test on Gen2 with it.
Cut some wires and do some invasive test.
 
TrueSoln said:
...
Is set point current one done with CAN message or relating to the charger we have ?

FYI, I just manged get a complete 2104 Nissan Leaf (Damaged one)
So will try and get working and can do some test on Gen2 with it.
Cut some wires and do some invasive test.

It is all done by CAN messages. Sounds like you have something fun to play with now.
 
Back
Top