Hello all. Hope I can give something back. I did at some point promise to document things but you know.. life and all that.
My car: 6MT, E92 03/08 N54.
What you guys are trying to accomplish is a bit above what my requirements were at the time I wrote that sketch.
Flashing the MDSC ZB or indeed a hardware change would have enabled the throttle map switching. However, I also have ACC which I wasn't willing to part with.
You're all probably aware but the MDSCs don't have the ECBA (interface for the ACC to request deceleration from DSC).
I went through all M ZBs (E82, E9X and E6X) with the same results. I even tried rebuilding the CAN structure for ECBA but that was silly since all it would have done is trick ACC into working but without actual braking...
So, I set about replacing the missing message 0x1D9 while keeping the stock DSC. MDM notwithstanding, the MK60E5 with stock software is superior in terms of the functionalities it affords. Brake fade, pre-tensioning, disc drying etc. are useful in a street car.
I wanted it to behave like stock so it took a bit of tweaking with filters, reducing the size of libraries etc. to make it nice. It's not 100% (i.e sometimes it doesn't pick up the key press unless you hold it for a bit) but that is rare. The board has been installed in my LDM for about a year now.
View attachment 48262View attachment 48263
The module is Longan's "Serial CAN Bus Module" v1.2. I think a capacitor may be a good idea on the 5V line to prevent spikes from crashing the LM2594 in the LDM. I never had any issues tho.
Small bit about the code. Not sure if it's been answered yet, but the checksum is simply a counter between F0 and FF sent every 100ms. I can see that I made a mistake in my sketch and did the checksum between 00 and FF. The DME never complained oddly enough. I will correct now.
As mentioned above, I do want to get the shift lights working and it just so happens a friend picked up an LCI DKG M3 but we're in lock-down here so
P.S, sport mode in MSD81 can also be triggered with the FDS switch from the Z4. I did succeed in doing this, just grounding the line from JBBF with FDS set to aktiv. No indicators when it's on. Can't get anything on my CIC either (FDS popup). I did check RealOEM and E89 Z4 has its own CIC part no. Presumably because of FDS. Adding the FDS popup when pressing the M key on my sketch would be cool too. Don't have the ICOM yet and I've already killed a CIC (word of advice for anyone typing in a flashctl command, double check you didn't forget '0x' when writing in an address
)
P.S.S Has anybody disassembled the firmware from JBBF3 to see why COMFORT/SPORT never toggle? I think I can dump it with XPROG.
P.S.S.S? I'm also fitting EDC. Harness is 70% complete, module is fitted and working. Awaiting some hardware. Doing it with M4 hubs, 370mm brakes and E92 M shocks. Rear subframe swap is still pending.