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

superwofy

Corporal
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
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?
 

superwofy

Corporal
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
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
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
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
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
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
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:
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
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)
 
Top