For Programmers: Free Programming Magazines  


Home > Archive > Tcl > January 2006 > wincom vs. fconfigure ... silly question !!!









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 wincom vs. fconfigure ... silly question !!!
Huw M. Gough

2006-01-24, 7:05 pm

Hi

In the firm belief that I can't ask a silly question because I know that
only silly answers exist ...
I'm going to ask one anyway .... ;-)

My Port (serial) is "open"ed and "fconfigure"d as normal and then ...

in the past I've used .... ( worked well ... )
wincom::config $port_name -dtr disable

now I'd like to use ...
fconfigure $port_name -ttycontrol {DTR 0}

Why doesn't this work ... I get "Error bad option....-ttycontrol"


Thanks in advance & greets

Huw

PS: I' using Windows 2000 & tcl 8.4.11.2
Gerald W. Lester

2006-01-24, 7:05 pm

Huw M. Gough wrote:
> Hi
>
> In the firm belief that I can't ask a silly question because I know that
> only silly answers exist ...
> I'm going to ask one anyway .... ;-)
>
> My Port (serial) is "open"ed and "fconfigure"d as normal and then ...
>
> in the past I've used .... ( worked well ... )
> wincom::config $port_name -dtr disable
>
> now I'd like to use ...
> fconfigure $port_name -ttycontrol {DTR 0}
>
> Why doesn't this work ... I get "Error bad option....-ttycontrol"
>
>
> Thanks in advance & greets
>
> Huw
>
> PS: I' using Windows 2000 & tcl 8.4.11.2


Can you show the code you used to open the serial port?
Paul Whitfield

2006-01-24, 9:58 pm

Gerald W. Lester wrote:
> Huw M. Gough wrote:

This works for me (windowsxp tcl 8.4.12)
[color=darkred]
>set port [ open "COM1" r+ ]

filee0e828

>fconfigure $port -ttycontrol { DTR 0 }



Regards

Paul
Huw M. Gough

2006-01-25, 4:12 am

Oh .... if I could only read then I'd be dangerous .... sorry for the
trouble ...
I had a typing error in ttycontrol ........

greets

Huw

"Huw M. Gough" wrote:
>
> Hi
>
> In the firm belief that I can't ask a silly question because I know that
> only silly answers exist ...
> I'm going to ask one anyway .... ;-)
>
> My Port (serial) is "open"ed and "fconfigure"d as normal and then ...
>
> in the past I've used .... ( worked well ... )
> wincom::config $port_name -dtr disable
>
> now I'd like to use ...
> fconfigure $port_name -ttycontrol {DTR 0}
>
> Why doesn't this work ... I get "Error bad option....-ttycontrol"
>
> Thanks in advance & greets
>
> Huw
>
> PS: I' using Windows 2000 & tcl 8.4.11.2

Sponsored Links







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

Copyright 2008 codecomments.com