Hi;

I try to retrieve 8 byte data from com 3 however it is not working properly. I dont know what is wrong with my program! The code is below!
Thanks in advance!

VB Code:
  1. Dim coming As String
  2. MSComm1.PortOpen = True
  3. MSComm1.InputLen = 0
  4. MSComm1.Output = "AT" + Chr$(13)
  5. If MSComm1.InBufferCount Then
  6. MSComm1.InBufferCount = 0
  7. End If
  8. Do
  9. DoEvents
  10. Loop Until MSComm1.InBufferCount >= 8
  11. coming = MSComm1.Input
  12. txtpassword.Text = coming