Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Serial Port Access under NT

0 views
Skip to first unread message

Richard D. Hunt

unread,
Nov 5, 1998, 3:00:00 AM11/5/98
to
I need to create a piece of TCL code that monitors serial ports under
Windows NT. Ultimately,
I will be adding 16 ports to my computer and will need to monitor all of
them. Does anyone
have any sample code that creates a server that will setup,
periodically poll the serial lines
and print the data received?

Thanks

--

Richard D. Hunt
_/_/_/ _/ _/ _/ SANDIA NATIONAL LABORATORIES _/_/_/
_/ _/_/ _/ _/ P.O. Box 5800 M/S 0965 _/_/
_/_/_/ _/ _/ _/ _/ Albuquerque, NM 87185-0965 _/_/_/_/_/_/
/ _/ _/_/ _/ Voice: (505)844-3193 _/ _/_/ _/
_/_/_/ _/ _/ _/_/_/_/ Fax: (505)844-5993 _/ _/_/ _/
E-Mail: rdh...@sandia.gov _/_/_/


Alexandre Ferrieux

unread,
Nov 5, 1998, 3:00:00 AM11/5/98
to
Richard D. Hunt wrote:
>
> I need to create a piece of TCL code that monitors serial ports under
> Windows NT. Ultimately,
> I will be adding 16 ports to my computer and will need to monitor all of
> them. Does anyone
> have any sample code that creates a server that will setup,
> periodically poll the serial lines
> and print the data received?

For nonblocking read (polling) or event-driven I/O (fileevent) to work
with serial devices on Windoze, you'll need ExpectNT. Look at:

http://www.thecliff.com:8015/tcl/af/cachedfull.html#1002

-Alex

0 new messages