Yet another CAN module - Shiftlights, MDrive, NBT and more

superwofy

Corporal
Jan 18, 2021
109
146
0
Did you install this in PDC module?
What CAN BUS transceiver are you using for D-CAN? Is TJA1050 or TJA1051 capable to read D-CAN? (As I know MCP2551 is not capable to read CAN BUS low speed)

I used an old PDC housing and PCB with all smd components stripped. It's a nice case and the board has nice TE automotive connectors.

I've gone through a few hardware revisions, the latest of which is based on Teensy 4.0. Expansion board is SK Pang triple can. The transceivers are MCP2561/2.

D-CAN is actually high-speed 500K. You're thinking of KCAN which is 100K and should be used with Fault Tolerant transceivers.

I really should update the OP as it's woefully out of date.
 

KClemente

Sergeant
Nov 26, 2019
284
147
0
Ride
E90 335i
Hi @superwofy, thanks for all the hard work developing this.

I'm super interested in building one to pretty much unlock all the M drive features, and was wondering what the most cost efficient way of building one of these can modules is?
 

Hotter

Specialist
Jan 23, 2021
93
7
0
I used an old PDC housing and PCB with all smd components stripped. It's a nice case and the board has nice TE automotive connectors.
Is there an easy way to stip all smd components from the PCB?

D-CAN is actually high-speed 500K. You're thinking of KCAN which is 100K and should be used with Fault Tolerant transceivers.
Indeed I was talking about KCAN.
 

superwofy

Corporal
Jan 18, 2021
109
146
0
OP updated with what it currently does/can do. Since I started code has grown from ~300 lines to over 5K. Hardware is vastly more powerful, more inputs are considered etc. It's gone from an MDrive emulator to more a convenience module where I've implemented any functionality I wanted / was missing.
 

hpfiend

New Member
Sep 15, 2023
4
0
0
OP updated with what it currently does/can do. Since I started code has grown from ~300 lines to over 5K. Hardware is vastly more powerful, more inputs are considered etc. It's gone from an MDrive emulator to more a convenience module where I've implemented any functionality I wanted / was missing.
What happened to your work with the Longan Labs Dual Can Bed?
 

superwofy

Corporal
Jan 18, 2021
109
146
0
What happened to your work with the Longan Labs Dual Can Bed?

I dropped it in favor of the Teensy. While it's more expensive it's vastly more powerful and expandable.

That implementation by Longan is just weird. RP2040 talking over I2C to an STM32 clone that does the actual CAN comm? Not to mention that the firmware appears to have been made by an intern and was unfinished. I had done about 80% of the work of improving the firmware for my own use.

I was also limited by having just two CAN interfaces but was itching to tap DCAN.
 

hpfiend

New Member
Sep 15, 2023
4
0
0
I dropped it in favor of the Teensy. While it's more expensive it's vastly more powerful and expandable.

That implementation by Longan is just weird. RP2040 talking over I2C to an STM32 clone that does the actual CAN comm? Not to mention that the firmware appears to have been made by an intern and was unfinished. I had done about 80% of the work of improving the firmware for my own use.

I was also limited by having just two CAN interfaces but was itching to tap DCAN.

Would love to talk about this more- could you please email me at hpfiend at gmail com ?
 

Boorda

Corporal
Jul 15, 2018
145
62
0
45
Royse City, TX
futemire.com
Ride
328xi, 335xi M Sport
You guys blow me away with all this CAN stuff. I have tried to understand it all, but just hasn't clicked for me yet.

I've been wanting to create a little 2-4 input CAN injection module that would allow me to send custom messages for addon sensors over the bus.
Idea is that I can use something like Torque Pro or another app to monitor custom PIDs. In my case I want to send messages from my methanal system sensors - fuel level, line pressure, pump amperage, and temp. I was able to craft together a little Lolin D1 Mini Pro and a MCP2515 CAN driver to read the sensors but fell flat when it came to writing the code to send configurable can messages out. 😭
 

AzNdevil

Lieutenant
Staff member
Nov 4, 2016
566
269
0
Hong Kong
You guys blow me away with all this CAN stuff. I have tried to understand it all, but just hasn't clicked for me yet.

I've been wanting to create a little 2-4 input CAN injection module that would allow me to send custom messages for addon sensors over the bus.
Idea is that I can use something like Torque Pro or another app to monitor custom PIDs. In my case I want to send messages from my methanal system sensors - fuel level, line pressure, pump amperage, and temp. I was able to craft together a little Lolin D1 Mini Pro and a MCP2515 CAN driver to read the sensors but fell flat when it came to writing the code to send configurable can messages out. 😭

torque pro/obd pid doesnt work this way
 

Hotter

Specialist
Jan 23, 2021
93
7
0
I was wondering how does COMFORT_EXIT work?
Do you just move seat back once driver door open was detected?
How does seat move back to preprogrammed position? (I noticed that it can move only on door open or unlock)
 
Last edited:

That4chanhackerguy

Specialist
May 27, 2022
54
8
0
I was wondering how does COMFORT_EXIT work?
Do you just move seat back once driver door open was detected?
How does seat move back to preprogrammed position? (I noticed that it can move only on door open or unlock)

Also maybe this can be solved by coding?
View attachment 87567
Found this in my seat module. Does anyone know what this do and has it active?
This isn’t relevant to the topic please remove and repost
 

Hotter

Specialist
Jan 23, 2021
93
7
0
This isn’t relevant to the topic please remove and repost
Fixed so that it would be relevant. The question to Superwofy.

I was wondering how does COMFORT_EXIT work?
Do you just move seat back once driver door open was detected?
How does seat move back to preprogrammed position? (I noticed that it can move only on door open or unlock)
 

That4chanhackerguy

Specialist
May 27, 2022
54
8
0
Superwofy has them explained in his github repo here:
Thanks for that however im not seeing the CAN messages specfically for triggering the lights only the video demo and a lot of other can readouts but not the lights.
 
Last edited: