TrueSoln
Posts: 24
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: Stand alone OBC/PDModule EV system Can 2015

Sun Apr 12, 2020 2:52 pm

nlspace wrote:
Fri Apr 10, 2020 3:55 am
Did you ever get that counter added to your CAN code--i put an example code in the other thread
ybpvin wrote:
Sun Apr 12, 2020 12:29 pm
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

nlspace
Posts: 206
Joined: Mon Jun 05, 2017 10:21 pm
Delivery Date: 06 Jun 2017

Re: Stand alone OBC/PDModule EV system Can 2015

Sun Apr 12, 2020 6:57 pm

At the bottom of this page he was asking about celeron55's protocol code linked mid-page

viewtopic.php?f=44&t=25027&start=20

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

Sun Apr 12, 2020 11:53 pm

TrueSoln wrote:
Sun Apr 12, 2020 2:52 pm
nlspace wrote:
Fri Apr 10, 2020 3:55 am
Did you ever get that counter added to your CAN code--i put an example code in the other thread
ybpvin wrote:
Sun Apr 12, 2020 12:29 pm
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.

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

Sun Apr 12, 2020 11:55 pm

Colleagues, did anyone manage to run PDM to charge a high-voltage battery?

TrueSoln
Posts: 24
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: Stand alone OBC/PDModule EV system Can 2015

Mon Apr 13, 2020 12:11 am

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);
}

TrueSoln
Posts: 24
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: Stand alone OBC/PDModule EV system Can 2015

Mon Apr 13, 2020 12:15 am

ybpvin wrote:
Sun Apr 12, 2020 11:55 pm
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

TrueSoln
Posts: 24
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: Stand alone OBC/PDModule EV system Can 2015

Mon Apr 13, 2020 12:20 am

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.

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

Mon Apr 13, 2020 12:23 am

@TrueSoln, Very much hope for luck))

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

Mon Apr 13, 2020 12:34 am

TrueSoln wrote:
Mon Apr 13, 2020 12:20 am
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.

TrueSoln
Posts: 24
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: Stand alone OBC/PDModule EV system Can 2015

Mon Apr 13, 2020 12:46 am

ybpvin wrote:
Mon Apr 13, 2020 12:34 am
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
Image

Return to “LEAF CANBus”