Skip to content
Tcl Source Code Artifact [086714dfbd]
Login

Artifact [086714dfbd]

Artifact 086714dfbd09785e3e4ab623756681639cce79d6:

Ticket change [086714dfbd] - Ticket [656112ffffffffff|656112ffff] <i>fconfigure -ttycontrol -mode problem</i> status still Open with 5 other changes by schroedter on 2002-12-19 20:53:08.
D 2002-12-19T20:53:08
J icomment Logged\sIn:\sYES\s\nuser_id=99573\n\nDonal,\sI\shope\syou\sagree\sthat\sI\sassigned\sthis\sbug\sto\sme.\n\nA\scall\sto\s"fconfigure\s$serial\s-ttycontrol\s{RTS\s0}\s-mode\n4800,n,8,2"\sresults\sin\stwo\scalls\sto\sSerialSetOptionProc(),\none\swith\sthe\s"-ttycontrol"\sand\sthe\sother\swith\sthe\s"-mode"\noption.\sTherefore\sit's\snot\spossible\sfor\sthe\sserial\sdriver\sto\nknow\sthat\sboth\soptions\sare\sset\stogether\sin\sone\s"fconfigure"\ncall.\n\nThe\sproblem\sis\sa\sresult\sof\susing\sthe\sWin-API\sBuildCommDCB(),\nwhich\simplicitly\sresets\sthe\shandshake\sparameters.\n\nThe\spatch\sis\sobvious:\sSetting\s"-mode"\sshould\sonly\sset\sthe\nBAUD,PARITY,DATA;STOP\sparameters,\sbut\snot\stouch\shandshake.\nThis\swould\smake\s"-mode"\sbehave\smore\scompatible\sto\sthe\sUnix\nversion.\n\nThe\spatch\swould\shave\stwo\sside\seffects\s(incompatibilities):\n\n(1).\sCurrently\sthere\sis\san\sundocumented\sfeature\sthat\sWindows\nstyle\smode\sstrings\sare\sallowed\sfor\s"fconfigure\s-mode"\s(see\nbelow).\sA\spatch\swould\sin\sfuture\signore\sall\shandshake\nsettings\svia\sWindows\sstyle\smode\sstrings.\n\n(2).\sFor\sWindows/Tcl\s<=\s8.3\s"-mode"\sresets\shandshake.\sThat\nmeans\sthe\sserial\sport\snever\sstalls\scompletely.\sIf\snow\n"-mode"\sdoesn't\stouch\shandshake,\sthen\sthe\ssame\sscript\smay\nblock\sfor\sTcl\s8.4\sif\shandshake\sis\sthe\ssystem\sdefault.\nOn\sone\shand\sthis\sis\san\sincompatibility\sfor\s8.3\s==>\s8.4,\sbut\non\sthe\s\sother\shand\sthis\sis\sthe\sUnix\sbehaviour.\n\nA\ssolution\sfor\s(2)\scould\sbe\sto\sreset\shandshake\sat\sopening\nthe\scom-port,\sor\seven\sto\ssetup\sa\scomplete\sdefault\sbaud\srate,\ne.g.\s2400,n,8,1.\n\nThe\squestion\sis:\sShould\sthis\sbe\sdone\sor\swill\swe\slive\swith\s(2).\nAre\sthere\sother\sdrawbacks\sof\sresetting\shandshake\sat\sopen\n(e.g.\sfor\sstandard\schannels\s?)\s?\n\nMode\sstrings:\s\nWindows\s98(SE):\nC:\\>mode\s/?\nSerieller\sAnschluss:\s\s\s\s\sMODE\sCOMm[:]\s[BAUD=b]\s[PARITY=p]\n[DATA=d]\s[STOP=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\s\s\s\s\s\s\s\s[RETRY=r]\n\nWindows\s2000:\nC:\\>mode\s/?\nSerieller\sAnschluss:\s\s\s\sMODE\sCOMm[:]\s[BAUD=b]\s[PARITY=p]\n[DATA=d]\s[STOP=s]\n[to=on|off]\s[xon=on|off]\s[odsr=on|off]\n[octs=on|off]\s[dtr=on|off|hs]\n[rts=on|off|hs|tg]\s[idsr=on|off]\n\n
J login schroedter
J mimetype text/plain
J subsystem 27.\sChannel\sTypes
J username schroedter
K 656112ffffffffffffffffffffffffffffffffff
U schroedter
Z 56eaf2cbc98ddf1e9bea26df8ab9dbc8