Skip to content
Tcl Source Code Artifact [fc668c390f]
Login

Artifact [fc668c390f]

Artifact fc668c390fbea5c9287dc12f86b7307973088ea4:

Ticket change [fc668c390f] - Closed ticket [656112ffffffffff|656112ffff]: <i>fconfigure -ttycontrol -mode problem</i> plus 9 other changes by dkf on 2016-07-10 08:14:16.
D 2016-07-10T08:14:16.612
J assignee aku
J closedate 2457579.84324782
J closer dkf
J comment The\sorder\sof\sthe\sarguments\sfor\sthe\sfconfigure\scommand\saffects\sthe\soutcome\sof\sthe\soperation\son\sWIndows\s98.\r\n\r\nI\sam\susing\sActiveTcl\s8.4.1\son\sboth\sLinux\sand\sWindows\s98\sSecond\sEdition\r\nto\srun\sa\sprogram\sI\swrote\swhich\suses\sthe\sserial\sport.\r\n\r\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.\r\n\r\nUsing\sa\ssimple\sline\smonitor,\sI\scan\ssee\sthat\sthe\sRTS\sline\r\nis\snot\sbeing\sheld\slow\son\sWindows\swhen\sI\sexecute\sthis\scommand:\r\n\r\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\\\r\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\\\r\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\\\r\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\\\r\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\\\r\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{\r\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\r\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}\r\n\r\nThe\sRTS\sline\sis\sheld\slow\son\sRed\sHat\sLinux\s7.3.\r\n\r\nI\sconsulted\swith\sRolf\sSchroedter,\swho\sresponded:\r\n\r\n"...Yes\sI\ssee\sthe\sproblem.\sIn\sWindows\sthe\s-mode\s"string"\sinterpretation\sresets\sall\sTTY\sstates\sto\stheir\sdefault\svalues.\r\nA\ssimple\sworkaround\sfor\syou\sis\sto\sset\sthe\sbaud\srate\sfirst\sand\sonly\sthen\sthe\r\n-ttycontrol.\sThe\sfollowing\sshould\swork:\r\n\r\n\s\s\s\s\s\s\s\sfconfigure\s$Sid\s-buffering\snone\s-translation\sbinary\s\s-blocking\s1\s\\\r\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}\r\n\r\nOr\seven\r\n\s\s\s\s\s\s\s\sfconfigure\s$Sid\s-buffering\snone\s-translation\sbinary\s\s-blocking\s1\r\n\s\s\s\s\s\s\s\sfconfigure\s$id\s\s-mode\s4800,$parity,8,2\r\n\s\s\s\s\s\s\s\sfconfigure\s$id\s-ttycontrol\s{DTR\s1\sRTS\s0}\r\n\r\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."
J icomment Win98\snot\ssupported.\sIf\sthe\sproblem\sstill\sexists\swith\sone\sof\sthe\sversions\sof\sWindows\sbuilt\son\sthe\sNT\skernel,\smaybe\swe\scan\sreexamine?
J login dkf
J mimetype text/x-fossil-wiki
J resolution Out\sof\sDate
J severity Minor
J status Closed
K 656112ffffffffffffffffffffffffffffffffff
U dkf
Z 6427e8744f3039bb80ad11a6119c6dd1