Yojimbo
06-02-2005, 10:10 AM
I am having some trouble trying to use the SERIN and SEROUT commands properly. I am attempting to write program to act as a go between from the CMUcamGUI program on my computer and the CMUcam1 mounted on my boe bot. I've written a test program to see what the java based CMUcamGUI is outputting. My code is as follows:
SERIN 16, 84, [STR result\4] 'here I am using an stringarray with 4 bytes because the java prog is sending "rs/r"
FREQOUT 4, 2000, 3000 'since both the CMUcamGUI and my Stamp Editor Debug window use COM1
PAUSE 10000 'I've added these 3 lines of code to give me time to close the java app after it sends the "rs/r"
FREQOUT 4, 2000, 3000 'command and open the debug window to view what it caught.
DEBUG STR result 'this should output the string "rs/r" SHOULD is the key word here, heh
when I run the program as I described in the 'comments, all I get back is a weird character that looks kinda like a y with umlots over it (you know, the two dots you sometimes see over U and A and other characters in other languages. Any help here would be much appreciated. Been trying to puzzle this out for a while so I can get this program working with the bot/cam.
SERIN 16, 84, [STR result\4] 'here I am using an stringarray with 4 bytes because the java prog is sending "rs/r"
FREQOUT 4, 2000, 3000 'since both the CMUcamGUI and my Stamp Editor Debug window use COM1
PAUSE 10000 'I've added these 3 lines of code to give me time to close the java app after it sends the "rs/r"
FREQOUT 4, 2000, 3000 'command and open the debug window to view what it caught.
DEBUG STR result 'this should output the string "rs/r" SHOULD is the key word here, heh
when I run the program as I described in the 'comments, all I get back is a weird character that looks kinda like a y with umlots over it (you know, the two dots you sometimes see over U and A and other characters in other languages. Any help here would be much appreciated. Been trying to puzzle this out for a while so I can get this program working with the bot/cam.