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,,,