User avatar
49thdiver
Posts: 95
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 - SOLVED

Do you have the VCM and the BMS disconnected, you also do not need the inverter.
If you have any of these connected you could get message crc conflicts as the message must be sent in a specific order.
My code was designed to work with only the OBC connected. That is how it works on the Gen2. Are you able to observe messages from the OBC.
You should get a message when you plug in the charging station and messages once the system is live before your turn on the DUE and execute the arduino code.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ
ETrrijal2
Posts: 7
Joined: Wed Jul 06, 2022 8:11 am
Delivery Date: 06 Jul 2022

Re: Stand alone OBC/PDModule EV system Can 2015 - SOLVED

I have not connected anything except for 2, 12 volt power supply and ground. I did got change to take data from working OBC and tried to put to that message still not progress. While getting the datas I found out that the values of 0x1D4, 1F2 has more than for different values and I am trying to figure that out.

Thanks
Rochak
User avatar
49thdiver
Posts: 95
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 - SOLVED

There definitely are more values as the status of the battery pack changes and so reports other information that is not relevent to getting the charger started.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ
ETrrijal2
Posts: 7
Joined: Wed Jul 06, 2022 8:11 am
Delivery Date: 06 Jul 2022

Re: Stand alone OBC/PDModule EV system Can 2015

TrueSoln wrote: 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);
}

Could you please provide the full code?
I have send all the messages as show. I have connection of 12v, ground and CAN high and CAN low. I am not seeing any DC voltage after sending these code?
tomdickmeyer
Posts: 3
Joined: Mon Sep 05, 2022 6:34 am
Delivery Date: 05 Sep 2022

Re: Stand alone OBC/PDModule EV system Can 2015 - SOLVED

@ETrrijal2 Did you ever get the OBC for Gen1 working?

I am new on the forum and new to Arduino. I have my Gen1 OBC wired on the bench, and i have an Arduino UNO with a Seeed Can-bus shield. I am seeing the 0x380 and 0x5BF messages. I do not have the HV Battery or the LBC connected yet; I have been trying to confirm that the EVSE plug in/out is working (I kind of think it is) but don't get any additional CAN messages when I do that - the EVSE charge light does come on when plugged in. Maybe the plugin status is embedded in the x5BF message and not a separate message?

My goal is to be able to use the OBC to charge the HV Battery in a simple stand alone mode if I can by simulating the VCM messages with the Arduino.

Any guidance from the group is appreciated, I have read the Gen2 blog a couple times and probably will do it again. Meanwhile I will connect the HV Battery up and work on simulating dumb Gen1 messages from the UNO using info provided above in the blog.

Thanks, TomD
Alibro
Posts: 29
Joined: Tue Nov 30, 2021 2:58 pm
Delivery Date: 30 Nov 2021

Re: Stand alone OBC/PDModule EV system Can 2015 - SOLVED

tomdickmeyer wrote: Wed Sep 14, 2022 1:23 pm @ETrrijal2 Did you ever get the OBC for Gen1 working?

I am new on the forum and new to Arduino. I have my Gen1 OBC wired on the bench, and i have an Arduino UNO with a Seeed Can-bus shield. I am seeing the 0x380 and 0x5BF messages. I do not have the HV Battery or the LBC connected yet; I have been trying to confirm that the EVSE plug in/out is working (I kind of think it is) but don't get any additional CAN messages when I do that - the EVSE charge light does come on when plugged in. Maybe the plugin status is embedded in the x5BF message and not a separate message?

My goal is to be able to use the OBC to charge the HV Battery in a simple stand alone mode if I can by simulating the VCM messages with the Arduino.

Any guidance from the group is appreciated, I have read the Gen2 blog a couple times and probably will do it again. Meanwhile I will connect the HV Battery up and work on simulating dumb Gen1 messages from the UNO using info provided above in the blog.

Thanks, TomD
I spent a couple of weeks trying to get my Gen1 OBC to charge the HV battery but in the end I went with the Outlander PHEV charger. It is smaller, a better shape for installing has the 12V charger built in and is better documented so was a better solution all round for me.
If you ever get it working please share your findings.
ETrrijal2
Posts: 7
Joined: Wed Jul 06, 2022 8:11 am
Delivery Date: 06 Jul 2022

Re: Stand alone OBC/PDModule EV system Can 2015 - SOLVED

tomdickmeyer wrote: Wed Sep 14, 2022 1:23 pm @ETrrijal2 Did you ever get the OBC for Gen1 working?

I am new on the forum and new to Arduino. I have my Gen1 OBC wired on the bench, and i have an Arduino UNO with a Seeed Can-bus shield. I am seeing the 0x380 and 0x5BF messages. I do not have the HV Battery or the LBC connected yet; I have been trying to confirm that the EVSE plug in/out is working (I kind of think it is) but don't get any additional CAN messages when I do that - the EVSE charge light does come on when plugged in. Maybe the plugin status is embedded in the x5BF message and not a separate message?

My goal is to be able to use the OBC to charge the HV Battery in a simple stand alone mode if I can by simulating the VCM messages with the Arduino.

Any guidance from the group is appreciated, I have read the Gen2 blog a couple times and probably will do it again. Meanwhile I will connect the HV Battery up and work on simulating dumb Gen1 messages from the UNO using info provided above in the blog.

Thanks, TomD
I have not, I have a similar set up, I was able to read the can and send the data. I think I was not able to send the correct data or in a correct manner, but I was not able to turn that on for now. I will be starting that project later but for now I bought elcon charger.
tomdickmeyer
Posts: 3
Joined: Mon Sep 05, 2022 6:34 am
Delivery Date: 05 Sep 2022

Re: Stand alone OBC/PDModule EV system Can 2015 - SOLVED

I have been troubleshooting my Gen1 OBC and it looks like the control board has R897 missing. Can someone look at their board and tell what the value is supposed to be so I can replace it? It is located on the bottom of the board near IC509. TIA for any help. TomD
tomdickmeyer
Posts: 3
Joined: Mon Sep 05, 2022 6:34 am
Delivery Date: 05 Sep 2022

Re: Stand alone OBC/PDModule EV system Can 2015 - SOLVED

Can someone out there that has a Gen1 OBC on the bench look at R897 and tell me its value? It looks like mine has fallen off and needs to be replaced; mine looks like a component used to be soldered on the board. R897 is located inside the Gen1 OBC on the bottom of the top board. I have embedded an image of the missing component below. I can't find R896 or pads for it either. I know this thread is somewhat dormant but don't know a better place to post my question.

TIA again, TomD

Image

Return to “LEAF CANBus”