The SuperYacht BMW E65 7 Series

Tell us about the project you do with the open inverter
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The SuperYacht BMW E65 7 Series

Post by mdrobnak »

Jack Bauer wrote: Mon Mar 23, 2020 3:49 pm Do you know how the byte 2 checksum is calculated?
Should be the same as the other checksums.

This is how Motec described it (LOL):

Code: Select all

/*
 * Checksum is done as follows:
 * Sum bytes 1 to 7 and 16 bit can ID
 * Add hi byte of result to low byte
 * use low byte result as checksum WTF !!!!!!!!!
 */
canID = 0xAA;
byte1 = roll;
...
checksum =      byte1 + byte2 + byte3 + byte4 + byte5 + byte6 + byte7 + canID;
checksum = (checksum / 0x100) + (checksum & 0xff);
checksum = checksum & 0xff;
Probably a better way to do that. But that's what they came up with for another BN2000 based vehicle.

That's pretty much what the assembly is doing:

Code: Select all

int __fastcall can_checksum_calc(int a1, int a2, int a3, int a4)
{
  int *mailbox_struct; // r7@1
  int v5; // r3@1
  int v6; // r6@2
  int i; // r7@4
  __int16 v8; // r4@6

  mailbox_struct = &can_routine_table[6 * a1];
  v5 = *(mailbox_struct + 0x15);
  if ( a4 )
    v6 = mailbox_struct[3]; // This is the can ID like 0xAA, etc.
  else
    LOWORD(v6) = 0;
  for ( i = 0; i < v5; i = (i + 1) & 0xFF )
    LOWORD(v6) = v6 + *(a2 + i);
  v8 = (v6 >> 8) + v6;
  if ( a3 == 4 )
    LOBYTE(v8) = (((((v6 >> 8) + v6) & 0xFF) >> 4) + ((BYTE2(v6) + v6) & 0xF)) & 0xF;
  return v8;
  
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

Today saw a major milestone. I drove the Bexus on the motorway today to the local NCT (annual test) and it was just perfect. Despite the crappy test battery sagging horribly at no point was I running out of voltage. I would like to say that this should put the 650V nonsense to bed. A diesel diff swap is a lot easier:) We went from 3.6 as fitted to the 735i to a 2.8 from a 730d. All for a cost of 100 euros.

Here is some video to enjoy:
I'm going to need a hacksaw
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The SuperYacht BMW E65 7 Series

Post by mdrobnak »

Jack Bauer wrote: Tue Mar 24, 2020 6:37 pm Today saw a major milestone. I drove the Bexus on the motorway today to the local NCT (annual test) and it was just perfect. Despite the crappy test battery sagging horribly at no point was I running out of voltage. I would like to say that this should put the 650V nonsense to bed. A diesel diff swap is a lot easier:) We went from 3.6 as fitted to the 735i to a 2.8 from a 730d. All for a cost of 100 euros.

Here is some video to enjoy:
Nice job!
User avatar
clanger9
Posts: 203
Joined: Mon Oct 28, 2019 7:41 am
Location: Chester, UK
Been thanked: 1 time
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by clanger9 »

Great video! Looks like a sweet drive 8-)
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

We have reversing lights:) Am I right in looking at message 0xA8 in that it has two bits that flip on press of the brake?
Attachments
2020-03-25 10.11.49.jpg
I'm going to need a hacksaw
User avatar
sfk
Posts: 289
Joined: Mon Jan 14, 2019 8:29 pm
Location: Wellington, NZ
Has thanked: 2 times

Re: The SuperYacht BMW E65 7 Series

Post by sfk »

Jack Bauer wrote: Tue Mar 24, 2020 6:37 pm Today saw a major milestone. I drove the Bexus on the motorway today to the local NCT (annual test) and it was just perfect.
Looks great. Was MG1 in use and contributing any torque at all or was it just MG2 doing the driving?
-< Mazda Eunos JC Cosmo rotary -> EV conversion w/ Lexus GS450H gear >-
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The SuperYacht BMW E65 7 Series

Post by mdrobnak »

Jack Bauer wrote: Wed Mar 25, 2020 3:28 pm We have reversing lights:) Am I right in looking at message 0xA8 in that it has two bits that flip on press of the brake?
Glad I could help. :)

Two bits are taken into account to set the variable - ensuring the logic of the brake switch / test switch is all working correctly, and that's what sets v15...

Code: Select all

  bn_can_send_temp_byte0 = (32 * v15) & 0xE0 | (bn_can_send_temp_byte0 & 0x1F);
...but only one bit actually gets set on the bus.

-Matt
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

sfk wrote: Wed Mar 25, 2020 4:14 pm
Looks great. Was MG1 in use and contributing any torque at all or was it just MG2 doing the driving?
MG1 and MG2
I'm going to need a hacksaw
slow67
Posts: 151
Joined: Thu Jan 30, 2020 6:52 pm
Location: Texas
Been thanked: 1 time

Re: The SuperYacht BMW E65 7 Series

Post by slow67 »

Jack Bauer wrote: Wed Mar 25, 2020 6:26 pm
sfk wrote: Wed Mar 25, 2020 4:14 pm
Looks great. Was MG1 in use and contributing any torque at all or was it just MG2 doing the driving?
MG1 and MG2
Except when you backup!
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The SuperYacht BMW E65 7 Series

Post by mdrobnak »

Code: Select all

/* Normal scenario?
Brakes off:
v3 = 1
v2 = 0

Brakes applied:
v3 = 0
v2 = 1

*/
If brakes are off, I think it falls back to v15 = 2. So, actually, you're right, it's gonna be 2 bits. Test switch is gonna set 2, regular is gonna set 1..So if everything is working those two states should just flip...
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: The SuperYacht BMW E65 7 Series

Post by Kevin Sharpe »

This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
User avatar
drprox
Posts: 28
Joined: Sat Mar 07, 2020 12:50 pm
Location: England

Re: The SuperYacht BMW E65 7 Series

Post by drprox »

Damien, did you remove the engine ECU completely or leave it in?
I am curious as to how much of the electrical system needs 'simulating'. I assume the bits you are currently trying to work out the messaging for is the DSC/TCS system? What about other things such as iDrive, airbags, central locking etc?
xp677
Posts: 435
Joined: Sat Jul 27, 2019 10:53 am
Location: UK
Has thanked: 1 time
Been thanked: 13 times

Re: The SuperYacht BMW E65 7 Series

Post by xp677 »

slow67 wrote: Wed Mar 25, 2020 7:02 pm Except when you backup!
You could use MG1 as well for reverse if you wanted, I left it out of the code as it seems pointless for a reverse gear. I never tested it on a car though, so no idea how it handles that mechanically. The rotor will still be spun by MG2, no idea where that current goes. I guess it's just fine looking at Damiens videos.

In the same vein, you could run the whole thing in reverse as easily as forward, in case you have a less-common differential setup which is backwards to normal.
slow67
Posts: 151
Joined: Thu Jan 30, 2020 6:52 pm
Location: Texas
Been thanked: 1 time

Re: The SuperYacht BMW E65 7 Series

Post by slow67 »

xp677 wrote: Mon Mar 30, 2020 11:29 pm
slow67 wrote: Wed Mar 25, 2020 7:02 pm Except when you backup!
You could use MG1 as well for reverse if you wanted, I left it out of the code as it seems pointless for a reverse gear. I never tested it on a car though, so no idea how it handles that mechanically. The rotor will still be spun by MG2, no idea where that current goes. I guess it's just fine looking at Damiens videos.

In the same vein, you could run the whole thing in reverse as easily as forward, in case you have a less-common differential setup which is backwards to normal.
Yeah I commented out that line in my code. The region current would just go back into the HV bus. If its too much torque to backup, you could easily modify the code to not be as sensitive.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

drprox wrote: Sun Mar 29, 2020 9:51 pm Damien, did you remove the engine ECU completely or leave it in?
I am curious as to how much of the electrical system needs 'simulating'. I assume the bits you are currently trying to work out the messaging for is the DSC/TCS system? What about other things such as iDrive, airbags, central locking etc?
ECU and egs (gearbox controller) removed. All functions in the car work as normally as the new vcu software emulates the necessary can to keep the car happy.
I'm going to need a hacksaw
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: The SuperYacht BMW E65 7 Series

Post by arturk »

Kevin Sharpe wrote: Thu Feb 27, 2020 8:04 pm
mattndex@gmail.com wrote: Sun Feb 23, 2020 2:49 pm Is there a chance of you posting a schematic of how the high voltage junction box is wired.
The participants on next weeks course are building a HVJB for the Grey Goose project. It will be very similar to that used on BEXUS. I'll ask them to document the build and post details in that thread :)

IMG_20200227_152751.jpg
What are AMP ratings on those fuses? Fast acting?
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: The SuperYacht BMW E65 7 Series

Post by Kevin Sharpe »

arturk wrote: Sat May 02, 2020 7:49 am What are AMP ratings on those fuses? Fast acting?
Damien tends to use whatever he has laying around... in the Grey Goose he fitted 400A main and 100A accessory fuses iirc.
IMG-20200307-WA0015.jpg
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

After a long absence the SuperYacht is back home. Drove today with the same crappy batteries but oh my god it is a BEAST! Clocked 90mph at 5500rpm on MG2 with the battery sagged to under 300v and it was still pulling!

Thanks to an amazing donation from a customer I have a 40kwh pack of Kokam cells that will be fitted soon.
Attachments
2020-07-18 11.50.56.jpg
2020-07-18 15.32.53.jpg
I'm going to need a hacksaw
JaniK
Posts: 391
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 49 times
Been thanked: 10 times

Re: The SuperYacht BMW E65 7 Series

Post by JaniK »

Great to hear you get support in donation parts too :)

I have shown your cars to friends and they seem to be in disbelief that they are electric. But world is changing and soon DIY EV conversion can be as normal as ICE engine swaps. I am asked weekly about my leaf that: its not a hybrid? What, its only electric? Where can you go charge it? Well maybe in few years...
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
User avatar
AlexD
Posts: 28
Joined: Tue Sep 08, 2020 12:25 pm
Location: Portsmouth, UK
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by AlexD »

Hi guys, great project, really enjoyed watching the YouTube series and reading through this thread. I am hoping to copy your setup into an E61 (Why re-invent the wheel?!).

I'm interested in your final battery setup and how you think it is going to perform with the car towing / decent amount of extra load. In my personal case 100 miles would suit me perfectly fine but obviously the higher the amount the better.

Thanks
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

Well, the path of my conversions rarely runs smooth or to any kind of plan. Currently fitting a 40kwh pack of Kokam cells. the original pack was just to prove the setup worked at "normal" ev voltages. it does:)
Attachments
IMG_20200910_131601_709.jpg
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

I'm going to need a hacksaw
User avatar
AlexD
Posts: 28
Joined: Tue Sep 08, 2020 12:25 pm
Location: Portsmouth, UK
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by AlexD »

Looks good mate, what is the total kWh of your new packs? Are you selling the old ones?
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The SuperYacht BMW E65 7 Series

Post by Jack Bauer »

The old batteries are scrap. Should have about 40kwh with the new pack.
I'm going to need a hacksaw
User avatar
TFirenza
Posts: 35
Joined: Sun Mar 08, 2020 8:18 pm
Location: Herefordshire

Re: The SuperYacht BMW E65 7 Series

Post by TFirenza »

Excited to see anchor up and on the road again ! Should be lively with the new cells
Post Reply