 |
Forums |
Admin Start New Thread
By: Tony Buser
RE: Send program to NXT with ruby-nxt? [ reply ] 2007-01-26 02:58
|
You're welcome!
Not entirely sure what you're asking. There's several ways it can be used.
Primarily, you can use ruby-nxt to control the NXT by sending direct commands from a ruby script running on your computer. Like a remote control of the nxt from your computer.
You can also communicate with a program running on the nxt (created with something like NXT-G) by sending messages to an inbox. The program running on the nxt needs to read the inbox to look for messages and act on them.
If you're asking how to upload a pre-compiled program (an rxe file created by NXT-G) from your computer to the NXT, in other words upload/download files, that functionality isn't done yet. I'm working on that now and some of it is implemented in the subversion repository.
|
By: Leo Edmiston-Cyr
Send program to NXT with ruby-nxt? [ reply ] 2007-01-26 01:36
|
I've been reading over the source of ruby-nxt and finally gotten most of the test programs to run -- I had issues where I thought I had /dev/rfcomm0 setup but I didn't and problems with some require statments in nxt.rb (mentioned in an earlier comment).
1) So what do I want? Thanks for the awsome code base!
2) (You knew I wanted something ;) I don't see any methods to send programs to the NXT. I looked in many source files but especially nxt_comm.rb:NXTComm.
Have I missed a built in way to send a program? Is the only way to write a "server" program that runs on the NXT, receives bytecodes as bluetooth messages to an inbox, and writes them to the correct place on the NXT filesystem?
|
|
 |