Click to See Complete Forum and Search --> : receive line detect


Elroacho
January 18th, 2000, 10:10 AM
I have written two VB applications(only prototypes at the moment) which run on separate PCs connected via comm port 1. One of the application performs a break event on its output line for a set duration. The other application can detect this using the OnComm error event. What I’m trying to do is time the duration of the break on the receiving PC. The problem is there’s no event that detects when the break on the line is removed. I have an idea that I may be able to use an API call to detect the status of the receive line but I fear this may take to long as the time scale is in milliseconds. The serial cable used only consists of an input, output and gound. Therefor I can't use the Carrier Detect and other similar properties. I’d be much obliged if you can help.

Elroacho

Nick A.
January 19th, 2000, 08:30 AM
I haven't played with the comm control and i don't know what you want to do but here's an idea:

Send a break at the start of the duration you mention and another at the end.

Just a thought

Elroacho
January 20th, 2000, 03:58 AM
Thanks for the tip Nik, however I'm trying to emulate input from a device which only sends a single break for 180 to 250 milliseconds. This is used to start a comms session with the receiving application.

Thanks anyway
Elroacho