For Programmers: Free Programming Magazines  


Home > Archive > Tcl > January 2006 > Re: Can tcl use serial port flow control?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Can tcl use serial port flow control?
Gerald W. Lester

2006-01-26, 9:57 pm

Zoner wrote:
> Hi guys...
>
> I am writing a little tcl script that needs to talk over a serial port
> to piece of hardware.
>
> I have it working with no flow control, and everything is great.
>
> However, I am limitted on how much I can send at once to the hardware,
> as its buffer will overflow.
>
> I would like to enable flow control on this connection. I can do it on
> the hardware, but I can not figure out how to enable hardware flow
> control from TCL. I can not find any options for this in fconfigure. I
> can set BAUD, Data bits, Parity, and Stop bits, but no flow control? My
> present setting is 115200,8,n,1
>
> Can someone comment on if tcl supports hardware flow control?


Did you miss the -handshake option of the fconfigure command. It is
documented in the SERIAL COMMUNICATIONS section of the open command.

> I am using Active State tcl 8.4 on Windows operating systems. If tcl
> really does not support flow control, will setting the defaults in
> windows device manager to have flow control work?


Tcl does support flow control (see above), setting the defaults in the
device manager should also work.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com