Home > Software engineering >  How to use MSComm control set 230400 bit rate
How to use MSComm control set 230400 bit rate

Time:10-09

I use setsettings can only be set to the highest 115300, seek guidance

CodePudding user response:

 m_mscomm. Put_CommPort (1); No.//select COM 
M_mscomm. Put_InBufferSize (1024);//receive buffer
M_mscomm. Put_OutBufferSize (1024);//send buffer
M_mscomm. Put_InputLen (0);//set the current receiving area data length is 0, said all read
M_mscomm. Put_InputMode (1);//read and write data in a binary way
M_mscomm. Put_RThreshold (1);//receive buffer when there are more than 1 and 1 character, will trigger a receiving data OnComm events
M_mscomm. Put_Settings (_T (" 115300, n, 8, 1 "));//115300 baud rate test, 8 data bits, one stop bit

CodePudding user response:

Your device supports the baud rate so high?

CodePudding user response:

To switch to USB connection

CodePudding user response:

Haven't seen use such high baud rate, used to estimate unstable also

CodePudding user response:

reference 1st floor SWWLLX response:
 m_mscomm. Put_CommPort (1); No.//select COM 
M_mscomm. Put_InBufferSize (1024);//receive buffer
M_mscomm. Put_OutBufferSize (1024);//send buffer
M_mscomm. Put_InputLen (0);//set the current receiving area data length is 0, said all read
M_mscomm. Put_InputMode (1);//read and write data in a binary way
M_mscomm. Put_RThreshold (1);//receive buffer when there are more than 1 and 1 character, will trigger a receiving data OnComm events
M_mscomm. Put_Settings (_T (" 115300, n, 8, 1 "));//115300 baud rate test, 8 data bits, stop bit 1


The baud rate is up to 115300 ah, what I need is 230400

CodePudding user response:



refer to the second floor VisualEleven response:
your device supports the baud rate is so high?



Is there a way to?

CodePudding user response:

Use the API, controls so high rate response may not come

USB transfer 232 of that kind of can now support high baud rate, I used FDTI, chip information can support up to 900 k,
With 256 k stable jobs on our equipment

CodePudding user response:

115300 this is not right, standard, is 115200, you set up 115300, 115200, just as you set 9601, or 9600, actually
  • Related