Results 1 to 6 of 6

Thread: MSComm DCD line change counter problem

Threaded View

  1. #6
    Fanatic Member
    Join Date
    Sep 2009
    Location
    Lakewood, Colorado
    Posts
    621

    Re: MSComm DCD line change counter problem

    MSComm does not expose Ring Indicate state (because it was designed to work with a modem, where RI is transient, thus the only indication is via CommEvent = comRingEvent). The only way to read the RI state is via the UART Modem Status Register. You can download IOOcx from my homepage to do this. However, note, that this works only with built-in serial ports, where there is a physical UART.

    If you are using a USB serial adapter, then there is no practical way to get the RI status, AFAIK. This "issue" is caused by the way that the serial port device drivers are written, and is historical in nature.

    Dick (www.hardandsoftware.net)
    Last edited by DickGrier; Sep 6th, 2011 at 12:41 PM. Reason: add link
    Richard Grier, Consultant, Hard & Software
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width