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

Converting and injecting CAN bus signals

 
New Topic Reply 🔗 🖨 CANhack.de - Index » Engine CAN
Author Message
Christian0482



Joined: 03/19/2014
Posts: 4
Karma: +0 / -0   Thank you, like it!
Location: Höchstadt

Free account, no CAN development support

Post22-09-2016, 16:25    Subject: Converting and injecting CAN bus signals Quote

Hi.

Perhaps someone here can help me. I'm looking for a way to convert a speed signal from the CAN bus of an Audi A6 4B, model year 2003, into a CAN bus signal compatible with an Audi A3 8P, model year 2011. Additionally, I need to feed the reverse signal into the CAN bus as well. Maybe someone can help me so that I can fully utilize the RNSE 193 navigation system with the media button. My research indicates that the problem is caused by a change from 1.6 to 2.0 on the CAN bus.

Sincerely,
Christian Kaiser
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post22-09-2016, 17:42    Subject: Converting and injecting CAN bus signals Quote

Hello Christian,

The tricky part is knowing which CAN ID needs to be converted into which other information, at least when it comes to speed. If you have it, it's not a problem.

If, on the other hand, control units need to communicate with each other, and one uses TP1.6 while the other expects TP2.0, I foresee significant challenges, as the effort required would be quite substantial.

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Softwareentwicklung
CANhack.de System RKS+CAN: CAN-Bus Interface
Back to top Profile PM WWW
Christian0482



Joined: 03/19/2014
Posts: 4
Karma: +0 / -0   Thank you, like it!
Location: Höchstadt

Free account, no CAN development support

Post22-09-2016, 19:11    Subject: Converting and injecting CAN bus signals Quote

Thankfully, they don't have to talk to each other. It only needs to modify an existing signal for the navigation system and then route it back to the bus.

Unfortunately, I'm a complete beginner when it comes to building things or writing programs.

How would you start there?
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post22-09-2016, 19:58    Subject: Converting and injecting CAN bus signals Quote

Is the CAN ID that the RNSE 193 expects to use for speed information already in use?

If not, the hardware is already complete and just needs to be connected to the bus. Flash the software that reads the speed information from the existing CAN ID and re-transmits it using the required CAN ID. icon_smile.gif
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Softwareentwicklung
CANhack.de System RKS+CAN: CAN-Bus Interface
Back to top Profile PM WWW
Christian0482



Joined: 03/19/2014
Posts: 4
Karma: +0 / -0   Thank you, like it!
Location: Höchstadt

Free account, no CAN development support

Post22-09-2016, 22:24    Subject: Converting and injecting CAN bus signals Quote

Honestly, I'm completely lost right now icon_sad.gif icon_sad.gif icon_sad.gif.
Let me explain my problem to you.


I have an Audi A6 Allroad, model year 2003.

He has CAN bus 1.6.

I installed a navigation system from a 2012 Audi A3 into my car. Everything seems to be working fine so far. Also, navigation and fish finder display.
The only thing that doesn't work is the tunnel navigation because it doesn't receive a speed signal from the CAN bus.
According to my information, there is a speed signal, but it operates with 8 pulses. The A3 uses 42 pulses and 2.0. Since the rnse cannot process the 8 pulses, it thinks there is none. There was apparently an adapter from the company Canshack available in 2012. However, I can't find anything else, and the company no longer exists.
Since my knowledge in this area is practically nonexistent, I hope someone can help me. Or is it really impossible? Sincerely,
Back to top Profile PM
Christian0482



Joined: 03/19/2014
Posts: 4
Karma: +0 / -0   Thank you, like it!
Location: Höchstadt

Free account, no CAN development support

Post22-09-2016, 22:30    Subject: Converting and injecting CAN bus signals Quote

I don't think that CAN ID is already in use. There are no systems in the vehicle that would require that.

How do you mean that regarding hardware and flashing?
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post22-09-2016, 22:34    Subject: Converting and injecting CAN bus signals Quote

Hi,

The speed information is transmitted as a numerical value within a CAN identifier, for example, in the A6 4F model, it is distributed across 2 bytes within CAN identifier 0x1a0. You will extract this information and use it to create a new CAN ID for the RNSE.

The CAN ID in messages is roughly comparable to a mailbox number.

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Softwareentwicklung
CANhack.de System RKS+CAN: CAN-Bus Interface
Back to top Profile PM WWW
muurman



Joined: 07/24/2016
Posts: 14
Karma: +4 / -1   Thank you, like it!


Free account, no CAN development support

Post23-09-2016, 20:47    Subject: Converting and injecting CAN bus signals Quote

I think you need two CAN bus modules and two Arduinos because you need to convert from CAN bus 1.6 to 2.0.
In the CAN bus 2.0 system, ID 0x555 is used to transmit the vehicle's speed, and this is how it should be written.
You should probably start by logging the ID that corresponds to the speed information on CAN bus 1.6.

For Arduino code, see http://www.canhack.de/en/viewtopic.php?t=2212
Back to top Profile PM
Zampan0
CAN-Profi
CAN-Profi


Joined: 06/28/2016
Posts: 30
Karma: +20 / -0   Thank you, like it!


CAN Support

Post26-09-2016, 16:57    Subject: Converting and injecting CAN bus signals Quote

muurman wrote:
I think you need two CAN bus modules and two Arduinos because you need to convert from CAN bus 1.6 to 2.0.
In the CAN bus 2.0 system, ID 0x555 is used to transmit the vehicle's speed, and this is how it should be written.
You should probably start by logging the ID that corresponds to the speed information on CAN bus 1.6.

For Arduino code, see


It doesn't necessarily have to be two Arduinos with 2 CAN modules each; it's also possible to use one Arduino with 2x CAN connected in parallel via SPI and 2x CS (Chip Select).
"Regarding, for example:"
MCP_CAN CAN0(10)
MCP_CAN CAN1(9)

This makes it very easy to implement a gateway.http://www.canhack.de/en/viewtopic.php?t=2212{MARKER}
Back to top Profile PM
Richard1973



Joined: 05/02/2017
Posts: 1
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post02-05-2017, 23:09    Subject: Converting and injecting CAN bus signals Quote

I'm looking for the same thing.
I have an ABS TP 1.6 and a combination instrument with TP 2.0.
And unfortunately, the speedometer no longer displays the speed.

Best regards, Richard.


Last edited on 02-05-2017, 23:10, edited 1 time in total.
Back to top Profile PM
New Topic Reply 🔗 🖨 CANhack.de - Index » Engine CAN
Similar articles and topics
Topic Forum
No new posts Peugeot Van-bus auf Can-bus umwandeln Interior / Comfort CAN
No new posts Injecting a speed signal into the CAN bus? Engine CAN
No new posts Rückfahrsignal am Audi A5 von Analog ins CAN Bus einspeisen CAN Smalltalk, CAN News, Smalltalk
No new posts PWM Signale am Fahrzeug CAN Bus General
Jump to:  
You cannot post new topics in this forum.