Home > Software engineering >  For help! The application of VB2010 under about MSCOMM32
For help! The application of VB2010 under about MSCOMM32

Time:09-30

Masters, I recently used VB2010 a MSCOMM32 PC program, in the process of debugging, the PC to the single chip microcomputer sends data through the COM is normal, microcontroller up a machine to send data, using serial assistants to debug, the received data is also normal, but using the PC program of writing your own COM data reception, always can't trigger ON_COMM events, is this why?
Below is the PC program MSCOMM32 initialization code
AxMSComm1. InBufferSize=1024 'in the receive buffer size, the serial port is opened to set the
AxMSComm1. OutBufferSize=512 'send buffer size ()
ComboBox2. Text="9600"
ChangePortProperty ()
'set up to receive the data format for binary
AxMSComm1. An InputMode InputModeBinary=MSCommLib.InputModeConstants.com
'set all data read from the buffer
AxMSComm1. InputLen=0
'set to receive a serial port OnCommon events
AxMSComm1. RThreshold=1
'open the serial port
AxMSComm1. PortOpen=True
Excuse me each master, isn't this part of the initialization code has a problem?

CodePudding user response:

You let the serialport what about me,,,
  • Related