| 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
|
|
|
|