Re: serial port: fconfigure -handshaking fails



spooky130@xxxxxxx schrieb:

# open the serial port...
set f [open /dev/cuad0 r+]
# set bidirectional (RFR/CTS) flow control
fconfigure $f -handshaking rtscts

Results in

bad option "-handshaking": should be one of -blocking, -buffering,
-buffersize, -encoding, -eofchar, or -translation

According to posts I've read here, this should work

Only if Tcl recognizes /dev/cuad0 as a serial port. If the ioctl() call
fails, you may get a misleading error message.

Maybe the driver on /dev/cuad0 does not support this specific ioctl() call?

Kind regards

Jan

.



Relevant Pages

  • serial port: fconfigure -handshaking fails
    ... # set bidirectional (RFR/CTS) flow control ... fconfigure $f -handshaking rtscts ... options, that rtscts is, in fact, bidirectional, and not the older, ...
    (comp.lang.tcl)
  • Re: Events on Serial port
    ... I have data waiting on the embbeded device and can query it. ... with out putting load on the main CPU at the script level. ... can you give details on what [fconfigure] you're doing to query ... Can the fileevent readable be triggered by a flow control state ...
    (comp.lang.tcl)
  • Re: Events on Serial port
    ... I have data waiting on the embbeded device and can query it. ... can you give details on what [fconfigure] you're doing to query ... I'm not sure fileevents are available for the flow control lines are ...
    (comp.lang.tcl)