Skip to content
Tcl Source Code History Of Ticket 08872796bc
Login

History Of Ticket 08872796bc

Artifacts Associated With Ticket 08872796bc

  1. Ticket change [2a6bcb24ea] (rid 141128) by fenugrec on 2015-01-28 15:47:39:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
       I'm having a strange problem reading a serial port on winXP. In short, I can only perform one "read", all the following attempts fail. Here's an example, with TX and RX shorted to echo everything back :
      > *****
      > (tuner-ctl) 306 % catch {set curchan [open $curport r+ ]}
      > 0
      > (tuner-ctl) 307 % chan configure $curchan -buffering none -translation binary -mode 9600,n,8,1 -handshake none -timeout 100
      > (tuner-ctl) 308 % puts -nonewline $curchan \x55
      > (tuner-ctl) 309 % read $curchan
      > U
      > (tuner-ctl) 310 % puts -nonewline $curchan \x55
      > (tuner-ctl) 311 % read $curchan
      > (tuner-ctl) 312 % close $curchan
       > *****
       If I close+open the same port right after, I will get the same result : first read works regardless, second read gives nothing!
      
       Here's what I tried :
       - different serial ports (USB->FTDI adapter, com0com software virtual port); either configured/wired as simple loopback devices or connected with a known-good, responding device. (I see the responses come in on the RXD line with a scope)
       - various combinations of blocking = 1, =0, buffering = full (and calling "flush $curchan" when required)
       - sending a longer string with puts : if I do, the first read will correctly give back the entire string echo. Second read still fails.
       - [eof $curchan] ==1, and [chan pending input $curchan] ==0 before the second read. So the data is getting lost somewhere before the second read is called ?
      - "set errorInfo" after every command shows nothing (no errors)
      
      Other terminal software (realterm, etc) works fine of course.
      
      I can run ollydbg for simple debugging if needed.
      
    5. foundin initialized to: "8.6.3.1"
    6. is_private initialized to: "0"
    7. login: "fenugrec"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "5aa950fce2ca1705453aec59adc8d0c3c9186502"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "fenugrec"
    14. subsystem initialized to: "24. Channel Commands"
    15. title initialized to: "win: serial port read works only once"
    16. type initialized to: "Bug"
  2. Ticket change [ecd77fa66e] (rid 141132) by dgp on 2015-01-29 18:35:00:

    1. icomment:
      
      See new test io-73.4 on 8.5 and trunk to
      demo the trouble.
      
      [gets] was properly fixed to operated after
      EOF everywhere, but the [read] fix only got
      done right on the 8.5 branch, not the trunk.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [149a228a4c] (rid 141136) by dgp on 2015-01-29 18:40:31:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2457052.27814107"
    3. closer changed to: "dgp"
    4. icomment:
      
      fixed on trunk for 8.6.4.
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"