Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ca83ecd340dbc956072b13c03c18aa9a33935396
Ticket: 1027924fffffffffffffffffffffffffffffffff
translation binary
User & Date: nobody on 2004-09-14 13:56:47
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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]
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "None"
  10. title changed to: "translation binary"
  11. type changed to: "Bug"