• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Determine that comport opening/closing procedure is finished

Started by Roman Novgorodov, April 08, 2008, 08:54:49 am

Previous topic - Next topic

Roman Novgorodov

Hello

The opening/closing serial port process is synchronous operation.
Methods do not return while this process is not complete.

If you need be sure that serial port is ready, especial in case virtual port over Bluetooth, IrDA and etc.
You can monitor control lines (TraceState = [tsCTS,tsDSR, tsRLSD] and OnTraceStates event)
for additional detection of current port state.

Also you can use simple timeout delay - sleep() API function.

Roman

Quote
....
3.
How I can determine that comport opening/closing procedure is finished
after setting Active to true or false respectivelly ?
....


DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.