Page 3 of 8

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Mon Apr 06, 2020 10:14 pm
by mux
The 'plug in signal' is the signal that causes the car to beep when you plug in a charging lead. The charger detects PP connection, then sends a pulse on that line. You don't need to do anything with this line, it's unidirectional

EV activation request likewise sends a signal to the VCM when a valid CP signal is detected, so the VCM can wake up the relevant parts of the EV drivetrain to start charging. The VCM controls the battery relays for instance. This is something you can use as an input to your controller to know when it's safe to engage the battery to the charger.

It shouldn't be hard at all to get the OBC from gen1 to work. Synthesize the battery and VCM CAN messages (I'd expect you need at least: 0x1DB, 0x1DC, 0x55B, 0x5BC, 0x50B, 0x1F2) and otherwise just hard-connect a charging port and power to the OBC. I think you can get away with not even using any relays, just connect a 400V battery directly to the charger. It is a very simple bit of kit internally, I've played with it a bit and it seems to not care at all about the majority of CAN messages, even if you mangle everything but the important bits.

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Mon Apr 06, 2020 10:45 pm
by TrueSoln
mux wrote:
Mon Apr 06, 2020 10:14 pm
The 'plug in signal' is the signal that causes the car to beep when you plug in a charging lead. The charger detects PP connection, then sends a pulse on that line. You don't need to do anything with this line, it's unidirectional
mux wrote:
Mon Apr 06, 2020 10:14 pm
EV activation request likewise sends a signal to the VCM when a valid CP signal is detected, so the VCM can wake up the relevant parts of the EV drivetrain to start charging. The VCM controls the battery relays for instance. This is something you can use as an input to your controller to know when it's safe to engage the battery to the charger.
That good to know that both outputs from OnBoard Charger.
So I should just be able to leave them floating.
Do you know what sort of signals they outputting ?
As I could check first that my charger is being detected by the unit first if know what to check for

mux wrote:
Mon Apr 06, 2020 10:14 pm
It shouldn't be hard at all to get the OBC from gen1 to work. Synthesize the battery and VCM CAN messages
(I'd expect you need at least: 0x1DB, 0x1DC, 0x55B, 0x5BC, 0x50B, 0x1F2)

and otherwise just hard-connect a charging port and power to the OBC.

I think you can get away with not even using any relays,
just connect a 400V battery directly to the charger.
It is a very simple bit of kit internally,
I've played with it a bit and it seems to not care at all about the majority of CAN messages, even if you mangle everything but the important
its.
I actual have the OnBoard charger, PDM (Junction box) and Battery with Battery Management Unit (BMU) all on bench
So should be ok with the CAN messages for battery, will be the VCM message that I need to send.
Image

But I dont have a Live Gen1 Leaf that can trial to find what message need to get charger to work
It trying to work out what messages and content for CAN message that need help with.

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Tue Apr 07, 2020 1:14 am
by mux
Here's my car during a charging session: https://pastebin.com/9Ajk7UyB

As for the signal types: look up the service manuals for the Leaf, it actually has signal descriptions in the troubleshooting sections of the relevant manuals. I'd expect these signals to show up in vc, evc or evb

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Tue Apr 07, 2020 2:24 pm
by TrueSoln
mux wrote:
Tue Apr 07, 2020 1:14 am
Here's my car during a charging session: https://pastebin.com/9Ajk7UyB
Thanks MUX,
I have share that log as a Google Sheet if any one want to view and see my notes on it.
https://docs.google.com/spreadsheets/d/ ... 1426443992

@Mux what is the 2>1 and 1>2 referring to
Did you have a dual can on Due and is connected as a bridge ?

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Tue Apr 07, 2020 11:08 pm
by 49thdiver
mux wrote:
Tue Apr 07, 2020 1:14 am
Here's my car during a charging session: https://pastebin.com/9Ajk7UyB
Thanks for this it looks very similar to my GEN2 car. I will be comparing your comments with my own shortly.
I finally received the programmer for the CAN Bridge and have now got it running and processing recorded data from the 2015 Leaf.
I have been distracted with the Virus and emergency services work. I spent my spare time getting our emergency radios (HAM) up and running. I have erected a 40 foot tower to do VHF and HF and have reinstalled all the mobile two meter rigs in the cars.
Hope to get back onto the Leaf Charger over the weekend if I am lucky.
Stay safe everyone.

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Tue Apr 07, 2020 11:30 pm
by 49thdiver
[/quote]
@Mux what is the 2>1 and 1>2 referring to
Did you have a dual can on Due and is connected as a bridge ?
[/quote]
The 2>1 and 1>2 is indicating from CAN port 2 to CAN Port 1 and vice versa.

When I started this project I started doing my work with an OBDII bluetooth dongle hot wired into the EVCAN to collect al the data from all devices and a data analyzer that did very poor data decoding which sent me off on a tangent for a while.

Once I got serious I started using a Due and the EVTV Candue Shield with Collin Kidders code (GitHUB).
It took me a while to get it working but I was able to sort of get it to work as a bridge, there was still some handshake problems.

I picked up a CAN recorder play back device based on a OLIMEX Pic32 from a guy in the UK and have been using that to record CAN data from a working 2015. Although I have found that at high speed it also has some handshake problems and that may be related to the above.

I am now using the OLIMEX as a simulator to feed recorded data to the CAN Bridge I got from Mux which is based on an Amtel XMEGA32C4 with Three ! MCP25625 CAN bus interface. His code is written in C and is quite easy to implement.
My testing of the bridge is complete and I hope to insert the bridge between the Charger and the rest of the car electronics I have set up on a bench to see if I can't spoof the charger into charging.
Stay tuned.

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Wed Apr 08, 2020 2:37 am
by TrueSoln
@49thdiver
I'm just using a UNO with CAN module to decode and send messages. (They cheap to pick up and code also)
Im direct to the can bus of devices same as EVCAN i believe.
Its all on a bench with my setup no car (Its Gen1)

I have done more logging with OBC only on
And work out a few of packets, logs and notes on google doc
https://docs.google.com/spreadsheets/d/ ... xMxh8PBB1k


Message #380 from OBC
If Byte[0] = 2
then byte[2] seem to indicate charger in port (Use binary mask 1000 to check plugged in)
then byte[4] seem to indicate charger working (Use binary mask 10000 to check plugged in)

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Wed Apr 08, 2020 3:11 am
by ybpvin
I put together the pdm module plus the engine. Pdm infects a 12 volt accumulator, but I can 't infect a high voltage battery. I took the stream off the working Nissa leaf 2015. Removed id from the tray that forms the motor. Everything starts, there are no mistakes, but the charging is not going.
The charging unit is constantly retractable.

[youtube]https://www.youtube.com/watch?v=WcicLyrgxBE[/youtube]

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Wed Apr 08, 2020 7:08 am
by nlspace
@ybpvip, That was an interesting video, thanks for sharing.

Do you have all the High Voltage Interlock pins wired up for the PDM and "Battery Pack"? Missing interlock will prevent charging.

Where are you located?

Re: Stand alone OBC/PDModule EV system Can 2015

Posted: Wed Apr 08, 2020 7:37 am
by ybpvin
@nlspace, We use three relays to turn off the battery. Two main and pre-charge relays.
But I cannot start the charge of the high-voltage accumulator ((. Pdm starts, but the charge does not go.
I live in Ukraine.