.
D 2004-09-14T13:56:47
J assignee nobody
J cmimetype text/plain
J comment tcl\sversion\s8.4.2\nsystem\swindows\sxp\n\nproblem:-\nsetting\sserial\scom\sport\sto\stranslation\sbinary\scauses\sdata\s\nto\sbe\soutput\sto\sthe\sserial\sport\sending\swith\sa\sLF.\sThe\s\ndata\sshould\send\sblank.\n\nThis\sis\sa\sproblem\swhen\susing\sRS485\sModbus\sprotocol\sfor\s\nthe\scommands\ssent\sare\snot\srecognized\sby\sremote\s\nequipment\sbecause\sof\sthis\sLF.\n\nI\scan\ssupply\soscilloscope\straces\sof\sa\sworking\ssolution\s\nusing\sVisual\sBasic\sand\sthe\serroneous\soutput\susing\sTcl.\n\ncode:\n\n#send\srtu\scommand\sto\sconfig\suse\swith\sasci\nset\stty\s[open\scom2\s{WRONLY}]\nfconfigure\s$tty\s-translation\s{binary}\nfconfigure\s$tty\s-buffering\s{none}\s-buffersize\s8\nfconfigure\s$tty\s-handshake\s{none}\s-mode\s9600,n,8,1\nfconfigure\s$tty\s-blocking\s1\s-timeout\s1000\nfconfigure\s$tty\s-eofchar\s{}\nset\stx_comms\s[binary\sformat\s"W1"\s0x0105000300003dca]\nputs\s$tty\s$tx_comms\npause\s100\nset\stty\s[close\s$tty]
J foundin obsolete:\s8.4.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem None
J title translation\sbinary
J type Bug
K 1027924fffffffffffffffffffffffffffffffff
U nobody
Z ab1e45917fdee9b8797836fb170d8f73