I am trying to get the following code to work but get garbage on the other side.
Code:
serin2 GPIO.1,84,5000,mainloop,[str command\4\13] ' This could be Acr, E'dc1'cr or E'dc3'cr
If (command[1] == 19) then ' 19 = DEC for 'dc3' char
goto IButton
else
SEROUT2 GPIO.4,84,[str command,13] ' Cannot get the same on the output
serin2 GPIO.5,84,5000,mainloop,[str command\31\13] ' Then get response
SEROUT2 GPIO.0,84,[str command,13 ' Then send back to PC
endif
Any ideas? Should I wait a few ms between sending back out the other port? Should I be using something other than STR to send back to the pc?
Thanks in advance,
Scott
Bookmarks