Getting the Radio Shack kit to work with linux
Hobiwan
Posts: 10
I love me some linux, but I understand why it's not officially supported by parallax, and have great respect for those who made some code available to use the Stamp on linux machines. (Especially since my linux compy is the only one I have with a serial connection). I've been stumbling in getting it to work, though, and I feel like I'm at the very end; *almost* getting code to run.
I've gotten a sample program to compile, but when I run 'bstamp_run code.tok', the led flickers slightly on the Stamp, and nothing else happens. I don't know enough about serial communication to do any testing as to the connection.
Is there a way to see if code is getting passed to the Stamp, or else control it manually through a TTY connection or something? You'll have to pardon my ignorance, I really just want to work through the workbook.
by the way, the code I'm attempting to run is
thanks!
I've gotten a sample program to compile, but when I run 'bstamp_run code.tok', the led flickers slightly on the Stamp, and nothing else happens. I don't know enough about serial communication to do any testing as to the connection.
Is there a way to see if code is getting passed to the Stamp, or else control it manually through a TTY connection or something? You'll have to pardon my ignorance, I really just want to work through the workbook.
by the way, the code I'm attempting to run is
' {$STAMP BS2} ' {$PBASIC 2.5} DEBUG "Hello" END
thanks!
Comments
I believe that, in another thread, you mentioned having the board from RS with the BS2 on it?
The biggest stumbling block in linux is usually the PATH to the appropriate directory.
Indications that your tokenized code is being loaded onto the Stamp are: The LED goes out momentarily ( when download starts) then remains green
Messages appear in the (rudimentary) DEBUG window to as each packet of bytes is sent to the Stamp
(something similar to this: "18 bytes sent"
" 18 bytes sent"
etc.
When the code has finished loading, you will get a message that reminds you to close the window when finished with a control-C
Getting message from the Stamp is pretty straightforward, and your example code should work.
Wine has been suggested and has the portential advantage of allowing you to use the Parallax editor, which does a LOT of syntax checking for you, but it can be difficult to get working...
Regards,
Terry
(who cannot get wine to recognize serial ports!)
PS Here is the results that I got when I ran your code.
Post Edited (terry_bear) : 3/30/2008 5:21:51 PM GMT