| Author |
Message |
goofy36 Guest
Free account, no CAN development support
|
25-10-2006, 4:34 Subject: Programmable CAN adapter with analog output |
Quote |
|
Hello.
I'm new here and I just wanted to modify my motorcycle!
So, I bought a computer to control the fuel injection and ignition.
'It's possible to make changes, but how do I get feedback to see what I'm doing? That's when I came across the CAN bus...'
Motorcycle  . It can't be that expensive to retrieve sensor data from the CAN bus and process it further. Now, I am searching for...
However, I haven't found a solution that is affordable  .
In addition to that, I'm not sure which adapter I need. Is there a CAN bus adapter that supports all standards?
Is there an affordable CAN bus adapter that can read the CAN signals?
can output in the range of 0-5V? The only one I've found should...
With 4 outputs, it costs $800.  Wouldn't that be something as a project???
Best regards, Gordon.
Translated on 19-07-2026, 14:49.
|
|
| Back to top |
|
 |
vespadriver Guest
Free account, no CAN development support
|
25-10-2006, 9:39 Subject: Programmable CAN adapter with analog output |
Quote |
|
Hi goofy,
I've seen you on the chip tuning forum before, so welcome here as well. (No, I'm not a chip tuner!
Why do you want to convert individual messages into a 0-5 volt range? As I understood it, you were planning to put a laptop in the saddlebag anyway, and then you can log everything happening on the CAN bus via USB. Then you can calmly analyze the IDs you collect later, and if you identify any new ones later, you can update them accordingly.
Der hier angebotene Adapter vom Fuchs ( http://www.canhack.de/en/viewtopic.php?t=24 ) kann an sich alle möglichen und unmöglichen High-Speed CAN Geschwindigkeiten. Damit solltest du deinen Motor CAN (und der interessiert dich ja) mitloggen können. Du solltest schon wissen welche Geschwindigkeit der Bus bei dir hat (kann man evtl mit nem Oszi messen?) und dann etwas Zeit einplanen um die einzelnen ID's zu identifizieren. Unless you find someone who tells them to you  .
Good luck!
Sebastian.
(Oh yeah, it's pretty quiet in this forum, so don't be surprised.)
Translated on 19-07-2026, 14:51.
|
|
| Back to top |
|
 |
goofy36 Guest
Free account, no CAN development support
|
25-10-2006, 12:29 Subject: Programmable CAN adapter with analog output |
Quote |
|
Hello Vespa driver.
Yes, I am also active in the chip tuning forum, more or less.
The reason I want the CAN signals to be in volt values is very simple!
Most good data loggers in the tuning sector have one or more inputs for sensor data to be logged.
I have a device like that here and I want to install it permanently.
Instead of having to ride with the laptop on my back, I can now drive normally, and this device logs all the data.
At the end of the day, I can then analyze all the data that was written to the SD card and adjust the motor control accordingly.
The device wasn't just purchased for the current motorcycle! That's why I need an adapter.
It can convert CAN data, such as the throttle valve position, into voltage signals.
Since I'm new to this field and don't yet have any understanding of how to handle the CAN bus from a hardware perspective, I have a question for the experts.
Can every CAN bus adapter understand all protocols and hardware, or what should one pay attention to?
(Protocol?, Chipset?, Standard?)
Best regards, Gordon.
Best regards, Gordon.
Translated on 19-07-2026, 14:54.
|
|
| Back to top |
|
 |
vespadriver Guest
Free account, no CAN development support
|
25-10-2006, 13:29 Subject: Programmable CAN adapter with analog output |
Quote |
|
Hi Gordon,
Under http://shop.dieselschrauber.de/can-bus-ganz-einfach-p-143.php, you will find some basic information about the CAN bus.
You generally need to distinguish between low-speed and high-speed CAN. There are different hardware drivers available, but the protocols themselves are essentially the same. The speed is a factor, but it should be adjustable within a wide range.
In principle, it's not that difficult to output a CAN message as a 0-5 volt signal, although I don't know of any suppliers who sell such devices.
Depending on your crafting skills, you could try building something yourself. I think a C-Control2 from Conrad might be a good starting point for the hardware; it has a CAN bus and DAC outputs, as far as I know. Then, all you would need to do is write the software.
(P.S. I just checked, and it's still available for purchase: Article number: 191111 - 62)
On the CAN bus, various control units send data that other control units need to function (e.g., the ESP control unit sends 'THROTTLE POSITION!!' to the engine control unit, etc.). Each control unit uses one or more fixed IDs with different information. For example, in a Smart car, ID 0x080, bytes 1 & 2 represent the high byte and low byte of the wheel speed for the first wheel, bytes 3 & 4 represent the second wheel, and so on, up to bytes 7 & 8.
In a CAN bus hacking setup, you can observe which IDs are being transmitted and what content they contain at any given time.
Time ID DLC Data Comment
54.312 0C2 8 A7 0B 00 00 01 B0 00 9D
54.314 220 8 81 04 00 95 11 81 00 00
54.319 310 8 0E 08 3B 09 00 00 25 7C
54.319 631 8 FE 04 04 04 04 04 04 04
54.322 0C2 8 A7 0B 00 00 01 C0 00 8D
54.323 23A 6 00 00 82 00 00 00
54.324 238 8 00 14 00 00 00 00 00 00
54.328 300 8 00 04 3B 00 40 04 00 00
54.329 210 8
43 00 FF 22 40 00 00 00
54.329 631 8 FE 04 04 04 04 04 04 04
54.329 310 8 0E 08 3B 09 00 00 25 7E
54.329 190 8 08 08 2B 01 A2 4E 00 00
54.330 080 8 00 00 00 00 00 00 00 00
54.330 090 8 00 81 7E 7F 00 2C 00 00
54.330 208 8 23 21 FE 80 00 80 83 00
54.332 0C2 8 A7 0B 00 00 01 D0 00 7D
54.334 220 8 81 04 00 95 11 81 00 00
54.338 310 8 0E 08 3B 09 00 00 25 7E
54.339 631 8 FE 04 04 04 04 04 04 04
54.341 0C2 8 A7 0B 00 00 01 E0 00 6D
54.344 238 8 00 05 00 00 00 00 00 00
54.347 23A 6 00 00 82 00 00 00
54.348 300 8 00 04 39 00 40 04 00 00
Now you start changing something, for example, rotate a wheel and see which number changes, or give it full throttle and check again which ID and which value change. Based on this, you can already determine which ID is being sent by which control unit (at least almost; some control units 'echo' the information once), and identify some measured values.
Now you can set up a hardware filter so that only the desired IDs pass through, and then you can process them in the software, scale them to 0-5 volts, and output them via a DAC. That's the basic principle... but it requires some work.
Sebastian.
Translated on 19-07-2026, 14:58.
|
|
| Back to top |
|
 |
|