Skip to content
Tcl Source Code Artifact [82bbfd4a52]
Login

Artifact [82bbfd4a52]

Artifact 82bbfd4a52a1038dadafa64591954720f601d422:

Ticket change [82bbfd4a52] - New ticket [656112ffffffffff|656112ffff] <i>fconfigure -ttycontrol -mode problem</i>. by parnass on 2002-12-19 03:53:56.
D 2002-12-19T03:53:56
J assignee dkf
J cmimetype text/plain
J comment The\sorder\sof\sthe\sarguments\sfor\sthe\sfconfigure\scommand\saffects\sthe\soutcome\sof\sthe\soperation\son\sWIndows\s98.\n\nI\sam\susing\sActiveTcl\s8.4.1\son\sboth\sLinux\sand\sWindows\s98\sSecond\sEdition\nto\srun\sa\sprogram\sI\swrote\swhich\suses\sthe\sserial\sport.\n\nMy\sprogram\scommunicates\swith\sthe\speripheral\sdevice\sok\son\sLinux\sbut\snot\sWindows\sand\sI've\straced\sthe\sproblem\sto\sfconfigure's\snew\s-ttycontrol\soption.\n\nUsing\sa\ssimple\sline\smonitor,\sI\scan\ssee\sthat\sthe\sRTS\sline\nis\snot\sbeing\sheld\slow\son\sWindows\swhen\sI\sexecute\sthis\scommand:\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{\s[catch\s{fconfigure\s$Sid\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-buffering\snone\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-translation\sbinary\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-ttycontrol\s{DTR\s1\sRTS\s0}\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-mode\s4800,$parity,8,2\s-blocking\s1}]\s}\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sset\scode\s-1\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\nThe\sRTS\sline\sis\sheld\slow\son\sRed\sHat\sLinux\s7.3.\n\nI\sconsulted\swith\sRolf\sSchroedter,\swho\sresponded:\n\n"...Yes\sI\ssee\sthe\sproblem.\sIn\sWindows\sthe\s-mode\s"string"\sinterpretation\sresets\sall\sTTY\sstates\sto\stheir\sdefault\svalues.\nA\ssimple\sworkaround\sfor\syou\sis\sto\sset\sthe\sbaud\srate\sfirst\sand\sonly\sthen\sthe\n-ttycontrol.\sThe\sfollowing\sshould\swork:\n\n\s\s\s\s\s\s\s\sfconfigure\s$Sid\s-buffering\snone\s-translation\sbinary\s\s-blocking\s1\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-mode\s4800,$parity,8,2\s-ttycontrol\s{DTR\s1\sRTS\s0}\n\nOr\seven\n\s\s\s\s\s\s\s\sfconfigure\s$Sid\s-buffering\snone\s-translation\sbinary\s\s-blocking\s1\n\s\s\s\s\s\s\s\sfconfigure\s$id\s\s-mode\s4800,$parity,8,2\n\s\s\s\s\s\s\s\sfconfigure\s$id\s-ttycontrol\s{DTR\s1\sRTS\s0}\n\nI'll\shave\sa\slook\swhether\sthere\sis\sa\sway\sto\scorrect\sthis\sfor\sfuture\sTcl\sversions.\sOn\sthe\sother\shand\ssetting\s-mode\sis\san\selementary\sthing\swhich\sreconfigures\sthe\sUART\shardware\sand\sshould\snot\sbe\sdone\sduring\scommunication.\s\sThank\syou\sfor\spointing\sout\sthe\sproblem."\n\n\n\n
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter parnass
J subsystem 16.\sCommands\sA-H
J title fconfigure\s-ttycontrol\s-mode\sproblem
J type Bug
K 656112ffffffffffffffffffffffffffffffffff
U parnass
Z 63bd251412ab7115e151c4bb2b7d3d38