VCDS and OBD diagnostic device in the On-Board Diagnostics Shop
Diesel, Engine Technology and Vehicle Technology. Repair, Maintenance and Diagnostics (OBD).

Adapter Optimization: Tips & Best Practices

 
Go to page: 1, 2  Next
New Topic Reply 🔗 ⭐ 🖨 Dieselschrauber - Index » Diesel Engine Technology
Author Message
ulf
Profi-Schrauber
Profi-Schrauber


Joined: 04/13/2002
Posts: 11058
Karma: +18 / -0   Thank you, like it!
Location: Saarland
2023 MG ZS
Premium Support

Post02-10-2002, 11:34    Subject: Adapter Optimization: Tips & Best Practices Quote

Hello everyone.

Although I believe that my VAGCOM adapter version 1.1 will generally perform more reliably than the initial design, I cannot rule out the possibility that problems may still arise.

To minimize potential issues, I need data about the interfaces that will be connected – specifically, from the diagnostic connector on the car and from the COM port on the PC.

It is especially important to consider the signal levels, impedances (internal resistances), and detection thresholds for both high and low states of all signal pins involved.

Apparently, not all cars or PCs/laptops have the same specifications, because otherwise, the same adapter wouldn't work in some cars/computers and not in others.

Therefore, it wouldn't be very helpful for me to continue measuring the conditions within my own system, as those would only represent one example within the possible range of interface data.

Instead, I need something like normal ranges for levels, impedances, and high/low thresholds, within which (theoretically) all pairings of cars and PCs should operate (let the mischievous think what they want icon_lol.gif icon_redface.gif).

Who knows data, links, etc.?
Gruß Ulf
_________

MG4 Electric


Translated on 02-10-2026, 16:28.
Back to top Profile PM Garage
BlauBaer
Guest




 


Free account, no CAN development support

Post02-10-2002, 12:55    Subject: Adapter Optimization: Tips & Best Practices Quote

Just a question... is it possible to measure these voltages and everything around them using a standard multimeter, or to determine them in some other way?

I would like to help you... but unfortunately, I'm not quite sure how..icon_smile.gif

best regards, BB


Translated on 02-10-2026, 16:30.
Back to top
ulf
Profi-Schrauber
Profi-Schrauber


Joined: 04/13/2002
Posts: 11058
Karma: +18 / -0   Thank you, like it!
Location: Saarland
2023 MG ZS
Premium Support

Post02-10-2002, 13:22    Subject: Adapter Optimization: Tips & Best Practices Quote

BlauBaer wrote:
just a question...is it possible to measure these swellings and everything around them with a regular multimeter, or to determine them in some other way...?
I would like to help you... but unfortunately, I'm not quite sure how.. icon_smile.gif


Hi.

No, that probably won't help.

First, you would need to bring the COM port on the PC to specific states and maintain them for the measurement duration (I'm not sure how to do that).
On the other hand, your PC would "only" provide a 2nd example that falls somewhere within the range of possible (and compliant, if such a standard exists) values.

The same applies to cars.

I, on the other hand, need, as I said, the
possible overall bandwidth of the interface parameters.

Thank you anyway
.icon_smile.gif
Gruß Ulf
_________

MG4 Electric


Translated on 02-10-2026, 16:31.
Back to top Profile PM Garage
Gremlin
Guest




 


Free account, no CAN development support

Post02-10-2002, 16:00    Subject: Adapter Optimization: Tips & Best Practices Quote

look:

http://www.carbussystems.com/pdfs/ECT2002Workshop.pdf

http://techtrain.microchip.com/masters2002/Classes/647/647%20LIN.pdf

CU Gremlin.


Translated on 02-10-2026, 16:33.
Back to top
ulf
Profi-Schrauber
Profi-Schrauber


Joined: 04/13/2002
Posts: 11058
Karma: +18 / -0   Thank you, like it!
Location: Saarland
2023 MG ZS
Premium Support

Post02-10-2002, 16:35    Subject: Thank You: A Simple Expression of Gratitude Quote

Hi.

Great, I now have what I need for the car section. icon_smile.gif

Does anyone else know of anything similar for the PC's COM port?
Gruß Ulf
_________

MG4 Electric


Translated on 02-10-2026, 16:33.
Back to top Profile PM Garage
chris11
Profi-Schrauber
Profi-Schrauber


Joined: 10/02/2002
Posts: 326
Karma: +3 / -1   Thank you, like it!
Location: Münster

Premium Support

Post02-10-2002, 18:00    Subject: RS232 Interface: PC Guide & Tutorial Quote

icon_biggrin.gif

Hello,

auf der PC-Seite ( meist eher Laptop ) sieht es eigentlich ganz gut spezifiziert aus. But!!!
The RS232 standard specification allows for voltage levels between +/-2.5V and +/-15V with a 3kOhm load. Older desktop PCs had drivers that were connected to the +12V and -12V of the PC power supply.
"For example, in the years 1488/1489, these circuits produced voltage levels of +/-10V. Laptops, however, don't have the luxury of a +/-12V power supply. Therefore, RS232 drivers generate these voltages from a charge pump, starting with +5V to create +9V, and then inverting it to -9V. Typically, only 100nF capacitors are used for the charge pump, and good charge pump drivers require silicon, which costs money. Modern laptops use multipliers based on the 3.3V logic voltage."
A better example here http://www.linear.com/pdf/1348fa.pdf

I estimate that most laptops can handle a load of 3 kΩ with a voltage level of +/-5V, while better ones can handle +/-6V. The extent to which the voltage levels sag with smaller load resistors (i.e., how high the internal resistance of the individual driver is, and how high the resistance of the entire charge pump is when multiple outputs are simultaneously high) is unknown. The specifications are usually given for a load of 3 kΩ. However, they typically drive 10mA without any problems. It should be clear that exceeding the RS232 load specification can lead to significant differences due to this.

The situation is slightly better with the RS232 inputs, which typically operate in the TTL voltage range, i.e., between +0.8V and 1.5V, with some hysteresis (approximately 0.3V).

Are all questions answered?

Best regards.
Christian icon_biggrin.gif


Translated on 02-10-2026, 16:35.
Back to top Profile PM
Gremlin
Guest




 


Free account, no CAN development support

Post02-10-2002, 18:37    Subject: Adapter Optimization: Tips & Best Practices Quote

now I'm going to completely confuse things icon_twisted.gif

Okay, so the side facing the car is now clear. Now you just need to ensure proper voltage levels on the RS232 connection. You can use a MAX232 or similar to make sure everything works correctly with the laptop as well.

However, I must reiterate: Jeff's wiring diagram, with a 1-meter cable to the car and a 1.5-meter cable to the laptop, has worked without issues on A4 (1997), A4 (1999), Octavia (2002), Passat (2001), Golf (1994), and Ibiza (1995)...more to come.

icon_smile.gif

CU Gremlin.


Translated on 02-10-2026, 16:38.
Back to top
ulf
Profi-Schrauber
Profi-Schrauber


Joined: 04/13/2002
Posts: 11058
Karma: +18 / -0   Thank you, like it!
Location: Saarland
2023 MG ZS
Premium Support

Post02-10-2002, 22:11    Subject: Adapter Optimization: Tips & Best Practices Quote

Gremlin wrote:
So, the side facing the car is now clear. Now you just need to ensure proper voltage levels on the RS232. You can use a MAX232 or similar to ensure everything works correctly with the laptop as well.


Hi.

As someone who's not very tech-savvy when it comes to PCs, I obviously don't know what a MAX232 is...

...but I've devised a circuit with an "afterburner" that essentially replicates the Jeff plan and includes the transistor stage that I initially removed.

While this makes the whole thing a bit more complicated, I think, in a grandiose way, "it can't get much better for a universal solution."


Quote:
However, I must also say this again: Jeff's wiring diagram, 1 meter cable to the car, 1.5 meters cable to the laptop, and no problems with A4 (1997), A4 (1999), Octavia (2002), Passat (2001), Golf (1994), Ibiza (1995)...more to come


What always surprises me is how this thing can even function properly, considering how primitively the driver transistor is controlled towards the PC (only 140 k ohms between the K-line and the base), and how only levels below approximately 0.6 volts are recognized as "really low".

. . . but practice is when it works and nobody knows why icon_redface.gif.
Gruß Ulf
_________

MG4 Electric


Translated on 02-10-2026, 16:41.
Back to top Profile PM Garage
ulf
Profi-Schrauber
Profi-Schrauber


Joined: 04/13/2002
Posts: 11058
Karma: +18 / -0   Thank you, like it!
Location: Saarland
2023 MG ZS
Premium Support

Post02-10-2002, 22:26    Subject: RS232 Interface: PC Setup & Troubleshooting Quote

chris11 wrote:
The RS232 standard specification allows for load levels between +/-2.5V and +/-15V at 3 kOhms. Older desktop PCs had drivers that were connected to the +12V and -12V of the PC power supply.
"For example, in the years 1488/1489, these circuits produced voltage levels of +/-10V. Laptops, however, don't have the luxury of a +/-12V power supply. Therefore, RS232 drivers in laptops generate these voltages using a charge pump, starting from +5V to create +9V, and then inverting it to -9V. Typically, only 100nF capacitors are used for the charge pump, and good charge pump drivers require silicon, which costs money. Modern laptops use multipliers based on the 3.3V logic voltage."

I estimate that for most laptops, you can calculate with a load of 3 kOhms and a voltage level of +/-5V, and for good ones, +/-6V.


Hi Chris,

...and that's the situation we're in.

In my opinion, an LED in an optocoupler should be able to be safely powered with 10 mA.

However, 5 volts across a 3 kOhm resistor only results in a current of 1.7 mA, which is only about 1/6 of the desired current.

15 volts at 3 kOhms is already 5 mA.

To effectively manage the relatively low impedances on the device side with such a wide range, it appears necessary to use an impedance converter, as Noxon and Stautz already planned, but I initially didn't understand the purpose – I wasn't aware that some computers have such weak output signals.

So, I'm going to expand the adapter plan again and send Rainer version 2.0.
(hopefully he doesn't feel completely screwed over yet icon_redface.gif).


Quote:
Things are slightly better with the RS232 inputs, which usually operate in the TTL voltage range, i.e., between +0.8V and 1.5V, with some (0.3V) hysteresis.


What do you mean by "mostly"?
Where are the actual low-high decision thresholds located?
And what are the input impedances?

During my oscilloscope measurements, for example, I observed both positive and negative voltage levels of varying heights on the RXD pin.

Quote:
Are all ambiguities cleared up?


Yes, quite so. icon_lol.gif Thank you very much for getting this far!
Gruß Ulf
_________

MG4 Electric


Translated on 02-10-2026, 16:45.
Back to top Profile PM Garage
dieselschrauber
Administrator
Administrator
Avatar-dieselschrauber

Joined: 04/12/2002
Posts: 18113
Karma: +800 / -0   Thank you, like it!
Location: St.Gallen
2018 Volkswagen T6 Consumption


Post02-10-2002, 22:47    Subject: RS232 Interface: PC Setup Guide Quote

Hello Ulf,

ulf wrote:
(hopefully he doesn't feel completely screwed yet icon_redface.gif)

No, don't worry, besides, I had already suspected something like that. icon_mrgreen.gif
Tomorrow, I'll take a look at the PDFs. Maybe we can incorporate a MAX232 chip into the circuit. The MAX232 is a level converter that converts TTL signal levels (i.e., 0V / 5V) into RS232 levels, and vice versa.

Best regards, Rainer.


Translated on 02-10-2026, 16:49.
Back to top Profile PM WWW Garage
ulf
Profi-Schrauber
Profi-Schrauber


Joined: 04/13/2002
Posts: 11058
Karma: +18 / -0   Thank you, like it!
Location: Saarland
2023 MG ZS
Premium Support

Post02-10-2002, 22:57    Subject: Adapter Plan 2.0 Quote

Rainer K. wrote:
Perhaps it would be useful to integrate a MAX232 into the circuit.
The MAX232 is a level converter that converts TTL signal levels (i.e., 0V / 5V) into RS232 levels and vice versa.}

Hi Rainer,

What the farmer doesn't know, he won't eat.

I have some experience building things with discrete transistors (unlike with a MAX232), so I'm using them as an add-on.

I'll email you the plan right away.

Perhaps you could make both versions available for download: version 1.1 for PCs with a "strong" COM port output, and version 2.0 for devices with weak driver levels or unknown data.
Gruß Ulf
_________

MG4 Electric


Translated on 02-10-2026, 16:51.
Back to top Profile PM Garage
dieselschrauber
Administrator
Administrator
Avatar-dieselschrauber

Joined: 04/12/2002
Posts: 18113
Karma: +800 / -0   Thank you, like it!
Location: St.Gallen
2018 Volkswagen T6 Consumption


Post03-10-2002, 12:52    Subject: Adapter Optimization: Tips & Best Practices Quote

Hello Ulf, okay, upload it icon_smile.gif.

Best regards, Rainer.


Translated on 02-10-2026, 16:52.
Back to top Profile PM WWW Garage
Gremlin
Guest




 


Free account, no CAN development support

Post03-10-2002, 17:13    Subject: Adapter Optimization: Tips & Best Practices Quote

Oh, guys...

It doesn't force me to design an interface either icon_wink.gif.
'We don't have time.'

@ulf

RS232 defines 12V as the LOW level and -12V as the HIGH level. Therefore, ICs like the MAX232 generate ±12V from 5V using a charge pump, which is then used to drive the RS232 interface. On the other side, a TTL signal is output. It's extremely simple to use such a component.

CU Gremlin.


Translated on 02-10-2026, 16:53.
Back to top
ulf
Profi-Schrauber
Profi-Schrauber


Joined: 04/13/2002
Posts: 11058
Karma: +18 / -0   Thank you, like it!
Location: Saarland
2023 MG ZS
Premium Support

Post03-10-2002, 17:50    Subject: MAX232: Where does it go? Quote

Gremlin wrote:

RS232 defines 12V as the LOW level and -12V as the HIGH level. Therefore, ICs like the MAX232 generate ±12V from 5V using a charge pump, which is then used to drive the RS232 interface. On the other side, TTL signals are output. It is extremely simple to use such a component.


Hi.

It might be possible, if you have the application documentation... but where exactly did you want to build something like that into the adapter ?

1. The PC does not provide sufficient power via the RS-232 interface.

2. The fundamental galvanic isolation between the car and PC sides should be maintained.

icon_question.gif icon_question.gif

According to my understanding, the best way to install the Max in a PC/laptop would be to bring the RS232 up to the required power level... or am I completely wrong?

It seems to me that an adapter with output transistors acting as afterburners (powered by the vehicle's electrical system) is the simplest overall solution.
Gruß Ulf
_________

MG4 Electric


Translated on 02-10-2026, 16:54.
Back to top Profile PM Garage
Gremlin
Guest




 


Free account, no CAN development support

Post03-10-2002, 18:39    Subject: MAX232: Where to use it? Quote


According to my understanding, the best way to install the Max into a PC/laptop would be to bring the RS232 up to the required power level... or am I completely wrong?


Actually, yes, because the laptop's RS232 port should, in theory, comply with the specifications.

Please send me your address via private message, and I'll send you something. icon_wink.gif

CU Gremlin.


Translated on 02-10-2026, 16:56.
Back to top
chris11
Profi-Schrauber
Profi-Schrauber


Joined: 10/02/2002
Posts: 326
Karma: +3 / -1   Thank you, like it!
Location: Münster

Premium Support

Post03-10-2002, 18:56    Subject: RS232 Interface: PC Setup & Troubleshooting Quote

ulf wrote:
chris11 wrote:


The situation is slightly better with the RS232 inputs, which usually operate in the TTL voltage range, i.e., between +0.8V and 1.5V, with some (0.3V) hysteresis.



What do you mean by "mostly"?
Where are the actual low-high decision thresholds located?
And what are the input impedances?

During my oscilloscope measurements, for example, I observed both positive and negative voltage levels of different magnitudes at the RXD pin. . .



Hello,

The above datasheet specifies that all voltages above +2.4V are recognized as electrically high (not to be confused with logically 0), and all voltages below +0.8V are recognized as electrically low. In normal operation, with a short cable, the output voltages of an RS232 driver are +/-5 to +/-10V at the receiver. Therefore, it is normal to measure negative voltages during operation.
The input impedance of the receiver is specified in the same datasheet as 3kΩ to 7kΩ relative to ground. This should also apply to most laptops and PCs.

To maintain isolation, you will either need to build discrete circuits using transistors or use an RS232 driver chip like the MAX232 or LT1181, along with an external 5V power supply (e.g., a 9V battery with a 78L05 regulator). Based on my experience, batteries often run out of power when you need them on a Saturday evening, and it's important to figure out why you can't get the vehicle to the gas station (where you can get a replacement battery) before resorting to a solution that requires an external power source. Therefore, I prefer a solution that doesn't require any external power.

Best regards.
Christian.


Translated on 02-10-2026, 16:59.
Back to top Profile PM
New Topic Reply 🔗 ⭐ 🖨 Dieselschrauber - Index » Diesel Engine Technology
Go to page: 1, 2  Next
Similar articles and topics
Topic Forum
No new posts Dimensions GT17/BV43 Turbocharger Adapter Technical Data
No new posts DIY OBD Adapter: Build Your Own Diagnostic Tool Troubleshooting & Guides
No new posts Ansaugung am 3C/1K und ggf. Optimierung Diesel Engine Technology
No new posts Turbolader Optimierung sinnvoll oder zu riskant? Diesel Engine Technology
No new posts Audi BKD: Optimize PD Timing After Head Replacement On-Board Diagnostics (OBD)
No new posts USB Diagnostic Adapter: Access Engine Control Unit On-Board Diagnostics (OBD)
Jump to:  
You cannot post new topics in this forum.