Skip to content
Tcl Source Code History Of Ticket 1027924fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1027924fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1027924fffffffffffffffffffffffffffffffff

  1. Ticket change [ca83ecd340] (rid 95360) by nobody on 2004-09-14 13:56:47:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "None"
    10. title initialized to: "translation binary"
    11. type initialized to: "Bug"
  2. Ticket change [9d6dfa50a9] (rid 96303) by dkf on 2004-09-14 21:00:57:

    1. assignee changed to: "andreas_kupries"
    2. closedate changed to: "2004-09-14T14:00:57"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      
      This is by design. Use:
        puts -nonewline $tty $tx_comms
      
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. subsystem changed to: "24. Channel Commands"
    10. username: "dkf"