I have written a shutdown controller based on shorting pin 4 with 8 on the serial port, have a look here:
New shutdown controller - software
The software above will work but the radio button display will be wrong if you try to use two inputs at the same time. Sorry I just threw this together real quick to show how the circuit works.
FetLyd, were you thinking more of something that will display the reverse camera without going thru the computer? If so there is a way shown in the following thread, however it requires the purchase of another $70+ gadget to get it working. I am hoping somebody will find a way to switch the Lilliput from VGA to Video1 and back using a relay, so I could just have the backup cam come on whenever I am backing up - even with the computer off.
Displaying reverse camera on a carputer?
OK, I wasn't thinking of a shutdown controller when I posted this but none-the-less the two solutions are pretty much the same.Originally Posted by weekendowel
The only difference is that your circuit floats the input pin (CTS pin 8) when the relay is open. I mentioned that such an approach is possible above. Still, I think the input values are undefined when the input voltage is between -3V and +3V. I guess it's possible the inputs have pull-up or pull-down resistors installed to force them to a valid value when floating. If not, then it's possible that CTS could read either high or low while floating. Obviously a resistor could be installed to force the pull-up/down if needed.
The circuit here uses a DT relay so that the input line always gets a valid value.
In any case, the software above should work with either circuit. Hopefully a future version of FP will support this mechanism to allow enable/disable of video playback and applications while the car is in motion (required in CA).
Originally Posted by rando
So, for testing purposes, say I get a SPDT switch.
I hook it up like the diagram below.
I set DTR Low
I set RTS High
Then I can read the status of the switch by checking the state of the pole line ? Right ?
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
@Frodo: Yes, assuming you hook the pole up to one of your serial input lines.
Rando, I don't have VB.NET so I can't see what the code is. However I wrote a test one on VB6 to see how it work compare to your exe one. Now I need a serial cable so that I can use the "paper clip" switch to check the port. Maybe base on this I can code some thing like software shutdown controller as well. Now I don't really feel comfortable driving with the screen on and the cops is on the next lane.
No, just a simple usb webcam.. But however, i just cannot figure how to wire this damn thing.. And yes, I'm slow with these things..Originally Posted by Supermike
You don't need VB.NET to read the source files. They are ASCII files and can be read with the text editor of your choice. There isn't much relatioship between this source and what you'd do in VB6. In VB6, the easiest thing to do is use the MSCOMM control. Just open the port, set the output lines, and enable events. When an event comes in, just check the status line values. Shouldn't be more than 10-20 lines of code.Originally Posted by MatrixPC
For a shutdown controller, you might just use the built-in UPS service in XP. It can be configured to simply monitor the serial status lines for low/high values. You'll have to figure out which lines it monitors for which things. I believe (but am just guessing) that it's CTS (battery low), CD(UPS on/off), and RI(Line / Battery). I could (and probably am) wrong about that.
Here is a nicer schematic for those of you who like clean pictures.