It seam you didn't rear all !
This is what is sent from sender
31 32 33 34 35 36 37 38 39 30 27 0D 0A
and THAT is what is waiting in serial buffer to be read from INPUT function.
SO THIS IS 13 BYTES !!! NOT 11.
Since matching character is 0A
and
Config input = CRLF
Input routine should read 11 bytes for every received packet and put it in just very good dimensioned string
Dim ADCHEX as String * 11
Since you are very smart, explain why this code read all strings correctly
[code:1:a6d4d8012a]Serial2CharMatch:
ADCHEX = ""
Input #3 , ADCHEX
print ADCHEX
clear serialin2[/code:1:a6d4d8012a]
and this is note
[code:1:a6d4d8012a]Serial2CharMatch:
ADCHEX = ""
Input #3 , ADCHEX
print ADCHEX
[/code:1:a6d4d8012a]
I'm tired....
↧