Hi,
You would have to know what commands to send, and what responses to look
for. There is nothing standard about this, so there cannot be any "one"
answer. For example, if you wanted to detect if a modem is connected, you
could send the string:
"ATE1V1Q0" & vbCr 'VB .NET
Then wait for the modem (or similar device) to respond with a reply that
includes, but may not be limited to:
"OK" & vbCrLf
Other types of serial devices will work quite differently, so one cannot
generally say what commands and responses will work.
Dick
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
Seewww.hardandsoftware.netfor details and contact information.