Home > Software engineering >  MFC using Mscomm get_CommEvent () returns a value is 6
MFC using Mscomm get_CommEvent () returns a value is 6

Time:09-19

In using MScomm serial interface communication, detect get_CommEvent () returns a value of 6, not 2, see from MSDN: detect the phone ringing, some UART (universal asynchronous transceiver) may not support this event, thinking of the solution to the problem, thank you!

CodePudding user response:

Not care about values can be ignored

CodePudding user response:

The content of the serial port initialization???

CodePudding user response:

You can MSComm1. RThreshold is set to receive the length of the make comevent=2 will not comevent is 6

CodePudding user response:

//if ComEvent==6 is ringing, have nothing to do with lz receiving data, ignore it,
//like ringing is nine nine feet to detect the signal of the serial port,
  • Related