CANhack.de CAN-Interface RKS+CAN
Diesel technology, engine technology, vehicle diagnostics, repair & maintenance.

Writing messages to the CAN bus with a button press

 
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Author Message
JanS213



Joined: 02/19/2022
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post19-02-2022, 15:36    Subject: Writing messages to the CAN bus with a button press Quote

Hello,

My name is Jan, I am 25 years old, I come from near Tübingen, and I work as an automotive electrician.

I would like to send some messages via the "User Interface-CAN" bus at 500 kbit/s from my car, using a hardware device triggered by a button press.

The context is that I want to suppress a message in the instrument cluster. There's a diagnostic service that triggers this suppression. I then measured the CAN signals and recorded the ID and data.
With this device, I can also send these messages to the bus, achieving the desired result.

"I don't want to always have to carry a laptop around; I'd like to integrate the functionality directly into a piece of hardware that displays the messages on the bus."

It would be great if someone could give me a tip on what would be suitable for this. And possibly, I might need a little help with programming icon_smile.gif.



Thank you very much, and have a nice weekend!
Jan.



You are not permitted to view these file(s), please log in or register for extended rights or status updates.

Back to top Profile PM
ZZottel



Joined: 02/19/2022
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post20-02-2022, 20:36    Subject: Writing messages to the CAN bus with a button press Quote

"When you say 'by pressing a button', do you mean a button that is specifically installed for this purpose, or is there already a button in the vehicle that could be used, and whose status is visible on the CAN bus?"

As for hardware, I would get a cheap CAN bus simulator. So, one of the things these aftermarket radios do is extract the ignition signal from the CAN bus.
The components are proven and more cost-effective than developing your own hardware.
The circuit boards typically use PIC or AVR microcontrollers from Microchip, or ARM Cortex-M processors.
They can often be reprogrammed relatively easily.


Last edited on 20-02-2022, 20:37, edited 1 time in total.
Back to top Profile PM
JanS213



Joined: 02/19/2022
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post20-02-2022, 20:45    Subject: Writing messages to the CAN bus with a button press Quote

Good evening.

I would like to install an additional button.

Okay, with which tools could one, for example, reprogram such a simulator?
Back to top Profile PM
ZZottel



Joined: 02/19/2022
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post20-02-2022, 21:34    Subject: Writing messages to the CAN bus with a button press Quote

Hmm, I don't know of any cheap CAN bus modules that have button inputs directly.
But you could use a button to switch the power supply of a CAN simulator on or off.

When you press the button, the circuit board receives power and sends the CAN message. This should happen in less than a second. Then you can release the key.

The question now is whether you want to buy ready-made hardware or prefer to build something yourself.

The programming depends on the microcontroller being used.
Back to top Profile PM
postmann
CAN-Profi
CAN-Profi


Joined: 05/23/2013
Posts: 142
Karma: +63 / -0   Thank you, like it!


CAN Support

CAN-Diagnose likes this.
Post21-02-2022, 15:53    Subject: Writing messages to the CAN bus with a button press Quote

I think the easiest way to do this is with an Arduino. They are easy to program and also offer inputs.
Back to top Profile PM
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Similar articles and topics
Topic Forum
No new posts Golf 4 MFA schreiben?! Interior / Comfort CAN
No new posts Golf 5 Text in MFA zentriert schreiben... wie? Interior / Comfort CAN
No new posts VW Golf 6 - Geschwindigkeit lesen und MFA+ schreiben Interior / Comfort CAN
No new posts Audi A3 8PA 2011 eigene Texte ins FIS schreiben Vehicle-specific Hardware and Pin Assignments
Jump to:  
You cannot post new topics in this forum.