Chademo Controller Development

Development and discussion of fast charging systems eg Chademo , CCS etc
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Chademo Controller Development

Post by Bigpie »

Same unit failed today, then wouldn't let me retry, unit stayed offline.

I went round to the Instavolt, but that didn't recognise me being plugged in. I notice that pin 2 wasn't at 12v.
I guess I've still got work to do.

EDIT, I've just thought, I'd changed the code to send my SoC as the charged_reference from my BMS, I was on -8% when I pulled up, that might have upset it.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

Hurah!
I managed to charge on ABB charger at some Lidl store.
I set up the ISA in reverse to confirm my suspicion.
First i connected chademo and i could go up to 46A, which is a limit imposed from Lidl EVSE.
Chademo faithfully drew amps while i inspected the protocol in debug mode. See doc file attached...

Then i had almost nothing to do but observe BMS. Cell temp went up from 19°C to 24°. About 1K per 5 minutes! I think i will need that cooling after all.

Some seconds later i was looking at AC plug... what if...? NO...it cant be that simple...
I connected the plug and got my 9kW chargers working. I got to 60A 400Vdc!!! 24kW, pretty good considering fast charger is limited to about 17kW.

Now i just need to inspect what is wrong with my protocol so that the other EVSE refuses charging...

EDIT: I have noticed VCU reports everything in negatives while EVSE reports in positives.
First i will go and reprogram ISA so it will measure in reverse. Then i will try again...
Attachments
CAR CHADEMO.docx
(225.41 KiB) Downloaded 121 times
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

Well i managed to preprogram ISA code to see +/- keys for innitializing different direction for current reporting.
replace your code with files inside SimpleISA.zip
replace your ino file with LeafVCUChademo.zip

When in serial monitor you can select +/- keys to innitialize positive or negative current orientation
I am pretty sure i could make the same interface for voltage too.
Tomorrow i will test EVSE again

EDIT: on my github:
https://github.com/arber333/CHAdeMOSoft ... VCUChademo
https://github.com/arber333/SimpleISA
Attachments
SimpleISA.zip
(3.43 KiB) Downloaded 67 times
LeafVCUChademo.zip
(4.14 KiB) Downloaded 74 times
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

With my direction switch i went on testing...
I tried two similar Chademo charging stations and they were working in Chademo mode 6
JLD505: 411.157v -46.26A 5.1Ah 19.0kW 2.1kWh OUT1:1 OUT2:1 OUT3:1 IN1:1 IN2:0 CHG T: 190
Chademo Mode: 6
EVSE: MaxVoltage: 500 Max Current:47 Threshold Voltage:420 Time:0:7:51.212
EVSE: Measured Voltage: 410 Current: 45 Time remaining: 5220 Status: 101 Time:0:7:51.214
CAR: Charging Time Time:0:7:51.260
EVSE: MaxVoltage: 500 Max Current:47 Threshold Voltage:420 Time:0:7:51.312
EVSE: Measured Voltage: 410 Current: 45 Time remaining: 5220 Status: 101 Time:0:7:51.315
CAR: Protocol:2 Target Voltage: 420 Current Command: 46 Target Amps: 46 Faults: 0 Status: 1 kWh: 2.07 Time:0:7:51.338
CAR: Absolute MAX Voltage:420 Pack size: 43.00 Time:0:7:51.411
EVSE: MaxVoltage: 500 Max Current:47 Threshold Voltage:420 Time:0:7:51.414
EVSE: Measured Voltage: 410 Current: 45 Time remaining: 5220 Status: 101 Time:0:7:51.416
CAR: Charging Time Time:0:7:51.485
EVSE: MaxVoltage: 500 Max Current:47 Threshold Voltage:420 Time:0:7:51.512
EVSE: Measured Voltage: 410 Current: 45 Time remaining: 5220 Status: 101 Time:0:7:51.514
CAR: Protocol:2 Target Voltage: 420 Current Command: 46 Target Amps: 46 Faults: 0 Status: 1 kWh: 2.07 Time:0:7:51.563
EVSE: MaxVoltage: 500 Max Current:47 Threshold Voltage:420 Time:0:7:51.612
EVSE: Measured Voltage: 410 Current: 45 Time remaining: 5220 Status: 101 Time:0:7:51.614
CAR: Absolute MAX Voltage:420 Pack size: 43.00 Time:0:7:51.636
JLD505: 411.182v -46.26A 5.1Ah 19.0kW 2.1kWh OUT1:1 OUT2:1 OUT3:1 IN1:1 IN2:0 CHG T: 190
Then i went to this propriatery station that wouldnt work and this time it did pull contactors and started charging, but almost immediately declared error. It remained all the time in Chademo mode 4, whatever this is...
Also it reports measured voltage & current 0! Also status 100000? Should i try changing voltage direction too?
Attachments
Chademo fail.txt
(11.5 KiB) Downloaded 85 times
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Chademo Controller Development

Post by Bigpie »

Code: Select all

enum CHADEMOSTATE
{
  STARTUP, //0
  SEND_INITIAL_PARAMS,//1
  WAIT_FOR_EVSE_PARAMS, //2
  SET_CHARGE_BEGIN, //3
  WAIT_FOR_BEGIN_CONFIRMATION, //4
  CLOSE_CONTACTORS,//5
  RUNNING,//6
  CEASE_CURRENT,
  WAIT_FOR_ZERO_CURRENT,
  OPEN_CONTACTOR,
  FAULTED,
  STOPPED,
  LIMBO
};
I think 4 is wait begin.
Mine worked today on the charger that died other day, but then spontaneously dropped out after 10 min or so.
19:44:37.818 -> Chademo Mode: 6
19:44:37.818 -> CAR: Protocol:1 Target Voltage: 393 Current Command: 50 Target Amps: 50 Faults: 0 Status: 1 kWh: -2.54 Time:0:10:32.8
19:44:37.856 -> EVSE: MaxVoltage: 475 Max Current:125 Threshold Voltage:395 Time:0:10:32.16
19:44:37.856 -> EVSE: Measured Voltage: 365 Current: 50 Time remaining: 4980 Status: 101 Time:0:10:32.17
19:44:37.891 -> CAR: Absolute MAX Voltage:395 Pack size: 7.00 Time:0:10:32.83
19:44:37.928 -> EVSE: MaxVoltage: 475 Max Current:125 Threshold Voltage:395 Time:0:10:32.116
19:44:37.928 -> EVSE: Measured Voltage: 365 Current: 50 Time remaining: 4980 Status: 101 Time:0:10:32.117
19:44:37.966 -> CAR: Charging Time Time:0:10:32.157
19:44:38.036 -> EVSE: MaxVoltage: 475 Max Current:125 Threshold Voltage:395 Time:0:10:32.216
19:44:38.036 -> EVSE: Measured Voltage: 365 Current: 49 Time remaining: 4980 Status: 101 Time:0:10:32.217
19:44:38.074 -> CAR: Protocol:1 Target Voltage: 393 Current Command: 50 Target Amps: 50 Faults: 0 Status: 1 kWh: -2.54 Time:0:10:32.233
19:44:38.149 -> CAR: Absolute MAX Voltage:395 Pack size: 7.00 Time:0:10:32.308
19:44:38.149 -> EVSE: MaxVoltage: 475 Max Current:125 Threshold Voltage:395 Time:0:10:32.316
19:44:38.149 -> EVSE: Measured Voltage: 365 Current: 50 Time remaining: 4980 Status: 101 Time:0:10:32.317
19:44:38.149 -> Stopping chademo process.
19:44:38.225 -> EVSE: MaxVoltage: 475 Max Current:125 Threshold Voltage:395 Time:0:10:32.416
19:44:38.225 -> EVSE: Measured Voltage: 402 Current: 0 Time remaining: 4980 Status: 100101 Time:0:10:32.417
19:44:38.345 -> CAR: VCU Wake Up Time:0:10:32.491
19:44:38.345 -> JLD505: 366.213v 0.02A -5.7Ah 0.0kW -2.5kWh OUT1:0 OUT2:0 OUT3:1 IN1:1 IN2:0 CHG T: 388
Attachments
6minChademo.txt
(1.36 MiB) Downloaded 69 times
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

How would you tell EVSE hiw much kWh or Ah is there at beginning? Do we send that information out? I guess that some EVSE want to know where to begin. Normaly BMS should know this. Where would we innitiate this parameter without complex BMS then?
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Chademo Controller Development

Post by Bigpie »

Code: Select all

0x102   outFrame.data.byte[6] = (uint8_t)settings.kiloWattHours; 
0x100   outFrame.data.byte[6] = (uint8_t)settings.packSizeKWH; 
I think you can set 100 byte 6 to 100 and 102 byte 6 to the SoC percentage
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: Chademo Controller Development

Post by larsrengersen »

I think the SOC is just for representation, it does not influence or control the charge process. The only lever you have is the amount of current you request. And you are right it is up to the BMS to calculate the max. allowed DC charge current depending on parameters such as temperature and pack voltage / cell voltage / SOC. Then it is up to the CHAdeMO controller to translate that into a current request and ramp that up and down appropriately.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

I have successfully charged at 4 different EVSE types. 2x ABB, 1x Ionity and one unknown type. 8-)
https://leafdriveblog.wordpress.com/202 ... ademo-box/

Though this Petrol proprietary ultra fast EVSE is still giving me grief. It is the newer model that can provide 100kW :shock:
Messages x201 and x202 are unknown to me.... maybe if i just copy them from x101 and x102?
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: Chademo Controller Development

Post by larsrengersen »

Congratulations!
Wild guess: Perhaps 0x201 and 0x202 are for V2G?
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

larsrengersen wrote: Tue Jun 07, 2022 10:36 am Congratulations!
Wild guess: Perhaps 0x201 and 0x202 are for V2G?
TNX :D

Maybe we are just a bit behind in implementation of Chademo 2.0? But... shouldnt that be retro compliant?
paaa
Posts: 209
Joined: Fri Dec 06, 2019 8:59 pm
Location: Dublin & Kilkenny Ireland
Has thanked: 2 times
Been thanked: 11 times
Contact:

Re: Chademo Controller Development

Post by paaa »

larsrengersen wrote: Tue Jun 07, 2022 10:36 am Congratulations!
Wild guess: Perhaps 0x201 and 0x202 are for V2G?
They show up in my v2g log anyway haven't looked into updating .dbc yet.
User avatar
CCSknowitall
Posts: 105
Joined: Fri Jun 04, 2021 1:47 pm
Has thanked: 1 time
Been thanked: 28 times

Re: Chademo Controller Development

Post by CCSknowitall »

If you post the raw can messages from your failed sessions I can try to take a look.

0x201 and 0x202 are V2G. You can ignore them.
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: Chademo Controller Development

Post by larsrengersen »

CCSknowitall wrote: Sat Jun 11, 2022 6:08 am 0x201 and 0x202 are V2G. You can ignore them.
And if I want V2G, do you know more about how that process works and the role of these messages?
I think Pin 5 plays a role as well but I'm not sure if that is an option or requirement.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

CCSknowitall wrote: Sat Jun 11, 2022 6:08 am If you post the raw can messages from your failed sessions I can try to take a look.

0x201 and 0x202 are V2G. You can ignore them.
Sorry i made a mistake with CAN msg. IDs that EVSE is putting out are 0x208 and 0x209 not x201 and x202 as i stated before.
Does that change the situation anyhow.

Attached is can traffic with particular EVSE for a minute or so...
EDIT: Changed to CSV file, hope it is better
Attachments
chademo test_0001_0000.csv
(24.65 KiB) Downloaded 68 times
User avatar
CCSknowitall
Posts: 105
Joined: Fri Jun 04, 2021 1:47 pm
Has thanked: 1 time
Been thanked: 28 times

Re: Chademo Controller Development

Post by CCSknowitall »

I’m really having trouble dealing with that file. Can you try reupping it? Prefer CSV with time stamp, id, D0-D7 in that order if you could.
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: Chademo Controller Development

Post by larsrengersen »

+1
Tried to look into it, but could not parse the file.
Can you perhaps do a SavvyCAN capture?
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

larsrengersen wrote: Tue Jun 14, 2022 5:44 am +1
Tried to look into it, but could not parse the file.
Can you perhaps do a SavvyCAN capture?
I changed CAN data to CSV file attachment
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

In other news i managed to fast charge on a multitude of CHADEMO stations YAY! :P
Only Petrol Delta ultra fast charging station is making trouble. Like i said it seems it still needs some CAN command because it pulls in contactors but then stops. https://www.deltaww.com/en-US/products/EV-Charging/4865

Now i have a real obstacle with battery heating up really fast. With OAT at 30°C and 30kWh session of 60% charge temperature got as high as 47°C!!!
I really need to setup some kind of battery box cooling system for while charging and driving.

There are stations where i managed to charge via CHADEMO port AND L2 Mennekes plug! On a parking lot of Lidl stores... Just for fun...
Of course you need to be present if someone would need to charge from the other connector :).
Attachments
20220530_182002.jpg
User avatar
asavage
Posts: 328
Joined: Sat May 14, 2022 10:57 pm
Location: Oak Harbor, Washington, USA
Has thanked: 269 times
Been thanked: 103 times
Contact:

Re: Chademo Controller Development

Post by asavage »

arber333 wrote: Tue Jun 21, 2022 12:16 pm There are stations where i managed to charge via CHADEMO port AND L2 Mennekes plug! On a parking lot of Lidl stores... Just for fun...
AHAHAHAHA!
Al Savage
2014 RAV4 EV
NissanDiesel
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

Yesterday i put one 3A LED driver to HV contacts in CHADEMO box. I had to ispect it for component rating. I found out HV input capacitor was only rated for 400Vdc. I had to replace it for one with 450Vdc rating. I am not so sure of other components either. I just hope they work...
This is supposed to provide 12V power for running my VCU and contactors so CHADEMO box would be independent from car aux power.

Today in the morning i went to one EVSE and tried. Nothing happened! EVSE refused to charge and stated no communication!
Seems there is no direct link beetween power GND and Arduino GND or something...

When i removed LED driver and replaced it with direct aux power from the car i got good charging session. I will try again later... :roll:
User avatar
CCSknowitall
Posts: 105
Joined: Fri Jun 04, 2021 1:47 pm
Has thanked: 1 time
Been thanked: 28 times

Re: Chademo Controller Development

Post by CCSknowitall »

arber333 wrote: Tue Jun 21, 2022 12:11 pm
larsrengersen wrote: Tue Jun 14, 2022 5:44 am +1
Tried to look into it, but could not parse the file.
Can you perhaps do a SavvyCAN capture?
I changed CAN data to CSV file attachment
There's still a lot of garbage in the file, are the data bytes 0 - 7 left to right?

Maybe another capture would be a good idea.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Chademo Controller Development

Post by arber333 »

CCSknowitall wrote: Thu Jun 23, 2022 6:59 pm There's still a lot of garbage in the file, are the data bytes 0 - 7 left to right?

Maybe another capture would be a good idea.
OK i will do this again.
Data in Canalyst is sent left to right and received right to left. Dont know why but there it is.
paaa
Posts: 209
Joined: Fri Dec 06, 2019 8:59 pm
Location: Dublin & Kilkenny Ireland
Has thanked: 2 times
Been thanked: 11 times
Contact:

Re: Chademo Controller Development

Post by paaa »

larsrengersen wrote: Sat Jun 11, 2022 6:44 am
CCSknowitall wrote: Sat Jun 11, 2022 6:08 am 0x201 and 0x202 are V2G. You can ignore them.
And if I want V2G, do you know more about how that process works and the role of these messages?
I think Pin 5 plays a role as well but I'm not sure if that is an option or requirement.
Im also interested in these messages, for v2g does chademo need live current info or does it just work inside a set of limits for charge and discharge and simply keeps contractors closed as long as coms continues ?
User avatar
Renegate2020
Posts: 50
Joined: Tue Dec 01, 2020 6:20 am
Location: Odessa UA
Has thanked: 1 time
Contact:

Re: Chademo Controller Development

Post by Renegate2020 »

Where can you buy a kit?
The link in the first post is not working :(
Post Reply