The serial port is a bit less convenient to interface than the
parallel port. Can you just assume the DTR line triggers the
software? When the line is high/low (user configurable) the software should disable certain features (user configurable perhaps also), and also stop those same features if they are currently in use (i.e. stop any playing
video). Otherwise the software behaves as normal.
People would then be free to develop whatever schematic is appropriate for the switching mechanism in their vehicles.
For software developement /
testing, you might consider using a simple com port loop back (either virtual or real). This would give you programatic control over the DTR line.
In the real world, there are several ways to build a circuit. Here is a simple one with parts you should be able to get at
radio shack. I haven't tested this and it might need some tweeking but demonstrates how easily the circuit could be developed. Maybe someone with more EE skillz than I can come with something better/simpler.
7912: -12V Linear regulator
7812: 12V Linear regulator
** Pull DTR to -12V - Logic High **
ACC--7912IN
7912OUT--100K_Resistor---DTR
GND--7912GND
** Pull DTR to +12V - Logic Low When Park Switch is closed
ACC--PARK SWITCH--7812IN
7812OUT---DTR
GND--7812GND
Bookmarks