/*
* 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.
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;
Re: The SuperYacht BMW E65 7 Series
Posted: Tue Mar 24, 2020 6:37 pm
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:
Re: The SuperYacht BMW E65 7 Series
Posted: Tue Mar 24, 2020 9:35 pm
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!
Re: The SuperYacht BMW E65 7 Series
Posted: Wed Mar 25, 2020 1:56 pm
by clanger9
Great video! Looks like a sweet drive
Re: The SuperYacht BMW E65 7 Series
Posted: Wed Mar 25, 2020 3:28 pm
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?
Re: The SuperYacht BMW E65 7 Series
Posted: Wed Mar 25, 2020 4:14 pm
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?
Re: The SuperYacht BMW E65 7 Series
Posted: Wed Mar 25, 2020 5:50 pm
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...
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...
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?
Re: The SuperYacht BMW E65 7 Series
Posted: Mon Mar 30, 2020 11:29 pm
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 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.
Re: The SuperYacht BMW E65 7 Series
Posted: Tue Mar 31, 2020 5:01 pm
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.
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?
Re: The SuperYacht BMW E65 7 Series
Posted: Sat May 02, 2020 10:02 am
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.
Re: The SuperYacht BMW E65 7 Series
Posted: Sat Jul 18, 2020 3:55 pm
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.
Re: The SuperYacht BMW E65 7 Series
Posted: Sat Jul 18, 2020 6:03 pm
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...
Re: The SuperYacht BMW E65 7 Series
Posted: Thu Sep 10, 2020 9:18 am
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
Re: The SuperYacht BMW E65 7 Series
Posted: Thu Sep 10, 2020 5:13 pm
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:)
Re: The SuperYacht BMW E65 7 Series
Posted: Sun Sep 20, 2020 3:06 pm
by Jack Bauer
Re: The SuperYacht BMW E65 7 Series
Posted: Sun Sep 20, 2020 8:04 pm
by AlexD
Looks good mate, what is the total kWh of your new packs? Are you selling the old ones?
Re: The SuperYacht BMW E65 7 Series
Posted: Tue Sep 22, 2020 9:06 am
by Jack Bauer
The old batteries are scrap. Should have about 40kwh with the new pack.
Re: The SuperYacht BMW E65 7 Series
Posted: Tue Sep 22, 2020 11:02 am
by TFirenza
Excited to see anchor up and on the road again ! Should be lively with the new cells