Overview
| Artifact ID: | ca83ecd340dbc956072b13c03c18aa9a33935396 |
|---|---|
| Ticket: | 1027924fffffffffffffffffffffffffffffffff
translation binary |
| User & Date: | nobody on 2004-09-14 13:56:47 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
tcl version 8.4.2 system windows xp problem:- setting serial com port to translation binary causes data to be output to the serial port ending with a LF. The data should end blank. This is a problem when using RS485 Modbus protocol for the commands sent are not recognized by remote equipment because of this LF. I can supply oscilloscope traces of a working solution using Visual Basic and the erroneous output using Tcl. code: #send rtu command to config use with asci set tty [open com2 {WRONLY}] fconfigure $tty -translation {binary} fconfigure $tty -buffering {none} -buffersize 8 fconfigure $tty -handshake {none} -mode 9600,n,8,1 fconfigure $tty -blocking 1 -timeout 1000 fconfigure $tty -eofchar {} set tx_comms [binary format "W1" 0x0105000300003dca] puts $tty $tx_comms pause 100 set tty [close $tty] - foundin changed to: "obsolete: 8.4.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "None"
- title changed to: "translation binary"
- type changed to: "Bug"