Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20562

BASCOM-AVR : INPUT funcion, Very strange behaviour in serialmatch interru : REPLY

$
0
0
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....

Viewing all articles
Browse latest Browse all 20562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>