
Originally Posted by
jmbanales21485
on the transmitter side i have:
serout SerialOut, mode, ["LCD", $FE, 1, "transmit", CR]
i am transmitting at 2400 baud, sends "LCD" to initialize LCDDriver, and then sends the LCD commands, which in this case is $FE, 1, "transmit"
on the reciever i have :
serin2 SerialIn, mode, [WAIT("LCD"), testHEX, testHEX2, STR testSTR\16\CR]
I am receiving at 2400 baud, it will wait for "LCD" and receive the data. the string testSTR will receive 16 characters.
when i do this my LCD will display "transmit" (GOOD!!!) BUT will fill the remaining 8 slots with random characters (BAD).
so i need to know if there is a way of determining the last leter of a string sent or something that gives me an indication that its done transmitting so the receiving side won't fill the remaining characters with random. attached is a sample code that i have and works (except for the random characters issue)
thank you all in advanced!
Bookmarks