PC can only receive the first byte
I saw the single step, every time an interrupt receive 0 x55, second, or 0 x55, the third is...
MSComm1. InputLen=0 'receive buffer size
MSComm1. To receive an InputMode=comInputModeBinary 'binary
MSComm1. RThreshold=1 '
Select Case mEvent 'serial events
MSComm1.ComCase comEvReceive 'receives the data
Buffer=MSComm1. Input 'clean up the receive Buffer, at this point, to receive the number of bytes have 0
Numbuf (RecvCount)=Buffer (0)
-- -- -- -- -- - handler -- -- -- -- -- -- -- -- -- --
End the select
Because the instruction length is different, so a byte oncomm event time,
Lower machine is straight hair,
Using vb for the first time, I wish to call for help, thank you
CodePudding user response:
Use this to try?CodePudding user response: