Skrevet av Emne: Simulating BMI  (Lest 9681 ganger)

BauDemo

  • Hero Member
  • *****
  • Innlegg: 646
    • Vis profil
    • www.uppladdning.nu
Simulating BMI
« på: mandag 31. oktober 2016, klokken 15:43 »
Hi there,
I have been getting some e-mail about simulating BMI with the Duinomite Mega - the same hardware used on the Nicometer. Hope we can all chip in this thread and get to a point where one can easily change battery in the Think...
So keep posting about it here and I will help with what I can.

Nikolay
laddplats? -www.uppladdning.nu
nikometer? - www.evmonitor.info

motorulf

  • Jr. Member
  • **
  • Innlegg: 63
    • Vis profil
Sv: Simulating BMI
« Svar #1 på: mandag 31. oktober 2016, klokken 16:57 »
Exactly was i was planing for aswell.

I found some information on page 18 of this file  http://vehiculeselectriques.free.fr/Download/Think/THINK%20City%20Enerdel%20Battery%20Service%20Manual.pdf

Also member Orla Pedersen says the BMI controlls the charger by a simple 0-100% command.
That is something i havnt found more information on yet.

Member VWspirit says ther is no special PCU-firmware for different batteries.
So I think the same CAN-commands would work on both gen1 and gen2.

motorulf

  • Jr. Member
  • **
  • Innlegg: 63
    • Vis profil
Sv: Simulating BMI
« Svar #2 på: mandag 31. oktober 2016, klokken 17:32 »
The service manual seams to mostly show info on error codes, maybe not very intresting... 

Also, there is this open source project called gevcu started by EVTV.
Somebody wrote some code to talk to the think BMI.
https://github.com/collin80/GEVCU/blob/master/ThinkBatteryManager.cpp
There we can see some CAN commands, 2 bytes for controlling charging voltage, 2 bytes for controlling charging current. There are also other quite interesting info there  :)

In a code comment they are refering to other CAN frames in the Think BMI specification.
It would be golden to find that specification  :)

PRensel

  • Jr. Member
  • **
  • Innlegg: 82
    • Vis profil
Sv: Simulating BMI
« Svar #3 på: mandag 31. oktober 2016, klokken 17:34 »
For some reason the Zebramonitor software doesnt see that my Peak adapter is installed so i have used pcanview to read the CAN traffic.

I have traced down the error to msg 0x305 bit 51/52 (byte 6, bit 3/4), sys_Zebra_TempError.
According to the A306 CAN Messages definitions the value 0, 1 and 3 are defined but my error has value of 2.
0 = OK
1 = Power Limit Temp reached
3 = Full Power Limit Temp reached

Anyone know what error value 2 means ?

Could this be a defective temp sensor ?









===============
My personal EV collection:
----------------------------
- Audi A2 Electric
- Citroen Saxo Electrique 2-doors
- Vectrix VX1 (in different colors)
- CityEl Fact4
- MiniEl Targa/Cabrio/Basic: red, red
- Th!nk A266 PIV4 (also for sale)
- Th!nk A306 City (cars, parts, service)
===================

PRensel

  • Jr. Member
  • **
  • Innlegg: 82
    • Vis profil
Sv: Simulating BMI
« Svar #4 på: mandag 31. oktober 2016, klokken 17:37 »

It would be golden to find that specification  :)

I have 3 documents about the CAN traffic for the Enerdel and Zebra BMI.
===============
My personal EV collection:
----------------------------
- Audi A2 Electric
- Citroen Saxo Electrique 2-doors
- Vectrix VX1 (in different colors)
- CityEl Fact4
- MiniEl Targa/Cabrio/Basic: red, red
- Th!nk A266 PIV4 (also for sale)
- Th!nk A306 City (cars, parts, service)
===================

motorulf

  • Jr. Member
  • **
  • Innlegg: 63
    • Vis profil
Sv: Simulating BMI
« Svar #5 på: mandag 31. oktober 2016, klokken 17:43 »
I can has too?   8)

maybe put on some file sharing site, like minus.com or other.

aurba

  • Full Member
  • ***
  • Innlegg: 129
    • Vis profil
Sv: Simulating BMI
« Svar #6 på: mandag 31. oktober 2016, klokken 18:44 »
I can has too?   8)

maybe put on some file sharing site, like minus.com or other.

And link to it here elbilwiki.no-Ny-Think
 :D
Think City 2010, Lithium

PRensel

  • Jr. Member
  • **
  • Innlegg: 82
    • Vis profil
Sv: Simulating BMI
« Svar #7 på: mandag 31. oktober 2016, klokken 20:00 »
This is what I have:

MES-DEA Zebra:
https://dl.dropboxusercontent.com/u/27571755/ThinkA306/MES-DEA%20BMI.pdf

Enerdel CAN Bus Guide rev 3.0
https://dl.dropboxusercontent.com/u/27571755/ThinkA306/Vehicle_CAN_Bus_Guide_V3.0.docx


If anyone has more or other info, please share.
« Siste redigering: mandag 31. oktober 2016, klokken 21:43 av PRensel »
===============
My personal EV collection:
----------------------------
- Audi A2 Electric
- Citroen Saxo Electrique 2-doors
- Vectrix VX1 (in different colors)
- CityEl Fact4
- MiniEl Targa/Cabrio/Basic: red, red
- Th!nk A266 PIV4 (also for sale)
- Th!nk A306 City (cars, parts, service)
===================

motorulf

  • Jr. Member
  • **
  • Innlegg: 63
    • Vis profil
Sv: Simulating BMI
« Svar #8 på: tirsdag 01. november 2016, klokken 08:57 »
I have edited the 8 pages that was here for a while yesterday.
I have checked with the appropriate person and these are ok for sharing here now.
https://www.dropbox.com/sh/jc7kh4kp9ta91mb/AAC0AUfTG5XneNdjZ1Xq9Tvva?dl=0

Orla Pedersen

  • Jr. Member
  • **
  • Innlegg: 69
    • Vis profil
Sv: Simulating BMI
« Svar #9 på: tirsdag 01. november 2016, klokken 12:33 »
I never meant to hide the information, and "motorulf" have done a great job in removing the comments from the dokuments. The comments could/could not, compromise my source if noticed by the wrong persons. That is, if anyone chases copyrights anymore.

Now we don't know where it comes from, right   ;D
Mvh
Orla Pedersen

motorulf

  • Jr. Member
  • **
  • Innlegg: 63
    • Vis profil
Sv: Simulating BMI
« Svar #10 på: tirsdag 01. november 2016, klokken 14:28 »
I was trying to get my head around what a BMI simulator needs to do.
I started making a flowchart and ended upp with something with a little bit of BMS functionallity.
Maybe this is not what others need, but this is what i need it to do.

This flowchart is not by any means complete, far from it, and i know plenty missing functions.
I made it online on draw.io and i will link to the XML if somebody wants to edit it, correct it, expand it... Please share if you do.
https://www.dropbox.com/s/4fueyz5e1fgtro1/BMI-emulator_flowchart.xml?dl=0

Maybe it is useful for somebody, who knows?  :D

PRensel

  • Jr. Member
  • **
  • Innlegg: 82
    • Vis profil
Sv: Simulating BMI
« Svar #11 på: tirsdag 01. november 2016, klokken 19:03 »
That is, if anyone chases copyrights anymore.

Nobody owns the rights to anything of the Think anymore so dont worry about that.

Just made progress on the 'Think-o-later' (short for Think Simulator). It can now mimic the BMI so my Think is now 'thinking' that everything is ok.
No more flashing wrenches, Power-limit or hazard symbol anymore, even without the BMI unplugged.
I can even control the fuel-meter so i can take an actual Ah-counter and reflect the SOC to the fuel meter.

Next step is to attach a suitable battery pack and drive away....




===============
My personal EV collection:
----------------------------
- Audi A2 Electric
- Citroen Saxo Electrique 2-doors
- Vectrix VX1 (in different colors)
- CityEl Fact4
- MiniEl Targa/Cabrio/Basic: red, red
- Th!nk A266 PIV4 (also for sale)
- Th!nk A306 City (cars, parts, service)
===================

Orla Pedersen

  • Jr. Member
  • **
  • Innlegg: 69
    • Vis profil
Sv: Simulating BMI
« Svar #12 på: tirsdag 01. november 2016, klokken 19:07 »
A few things to consider when building a BMI-emulator.

When working with battery powered circuits there are things to consider. First of all, no software should be allowed to run without a separate hardware implemented watchdog, periodicalle reset by the running software. If the software stops for any reason, the watchdog must disconnect the main contactors.

It's always a good idea to devide the software control into to systems with separate hardware, ei. one hardware with software doing calculation and main control of systems, and another hardware/software taking care of data collection and safety issues, both of them checking each other and making controlled shutdown if one of the hardware/software fails.

Remember that even the "small" output of the charger, out of control is capable of setting the batteries on fire.
Mvh
Orla Pedersen

Orla Pedersen

  • Jr. Member
  • **
  • Innlegg: 69
    • Vis profil
Sv: Simulating BMI
« Svar #13 på: tirsdag 01. november 2016, klokken 19:10 »

Nobody owns the rights to anything of the Think anymore so dont worry about that.


Probably not, it's all in the hands of the recievers for many years to come.......
Mvh
Orla Pedersen

PRensel

  • Jr. Member
  • **
  • Innlegg: 82
    • Vis profil
Sv: Simulating BMI
« Svar #14 på: tirsdag 01. november 2016, klokken 19:26 »
Since the Zebra battery is pretty new to me can someone explain how the Zebra/AC heater stuff works ?

===============
My personal EV collection:
----------------------------
- Audi A2 Electric
- Citroen Saxo Electrique 2-doors
- Vectrix VX1 (in different colors)
- CityEl Fact4
- MiniEl Targa/Cabrio/Basic: red, red
- Th!nk A266 PIV4 (also for sale)
- Th!nk A306 City (cars, parts, service)
===================