Bug in SerialComm

  • There is a bug in implementation of serial communication.


    With setting of


    Code
    1. COMMTIMEOUTS m_CommTimeouts;
    2. m_CommTimeouts.ReadIntervalTimeout = 0;
    3. m_CommTimeouts.ReadTotalTimeoutMultiplier = 0;
    4. m_CommTimeouts.ReadTotalTimeoutConstant = 0;
    5. SetCommTimeouts(m_hComm, &m_CommTimeouts);


    there should be no timeouts used for ReadFile. That means if ReadFile is called, it should be not return until a byte is arrived. In the current implementation of PicoCom1, ReadFile return immediatly if no byte is available to read.


    With NetDCU8, PicoMod1 and also x86 Windows-Systems, the behavior is like expected.

  • This problem has already been resolved on PicoCOM2 (bugID: 0000180) and it should be portable to PicoCOM1 very easily.

    Software developer, F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.