Reading data of COM-port

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    Reading data of COM-port

    With the GetByte command I am reading a certeain amount of data of the
    COM-port. The problem is that I do not know the amount of data.
    And the GetByte command waits until it has received a byte, so there is a
    problem when there is no data coming from the COM-port.

    Has anyone a suggestion how to deal with this problem.
  • Floyd Burger

    #2
    Re: Reading data of COM-port

    yep, do your blocking reads from a separate thread.

    --
    Floyd

    "Mark" <Mark@discussio ns.microsoft.co m> wrote in message
    news:8C53332D-2AF3-4A5E-95EC-7E8C602B3A8D@mi crosoft.com...[color=blue]
    > With the GetByte command I am reading a certeain amount of data of the
    > COM-port. The problem is that I do not know the amount of data.
    > And the GetByte command waits until it has received a byte, so there is a
    > problem when there is no data coming from the COM-port.
    >
    > Has anyone a suggestion how to deal with this problem.[/color]


    Comment

    Working...