I don't know if you can use the fanthom driver, let others comment on that. But I do know that it is possible to use direct commands over BT (and USB?). You can write a program that opens a serial port on your computer associated with the NXT. Your program can then write commands to it that are executed on the NXT. You can start programs, control motors, read senors, access the file system and communicate with a program running on the NXT.
Information about direct commands can be found on the lego website.
Btw, the fanthom dtiver can only be used from within a program written in, or linkable to, C.
Note: Corrections made
Last edited by aswin0 on 25 Apr 2011, 22:05, edited 1 time in total.
On a Mac you can use the Fantom driver to do all the things you mention. All of them can be done using the nexttool command line application for Mac OS X or the NeXTTools for Mac OS X GUI application. These tools are written in Free Pascal - not C - and they link to the Fantom driver library that LEGO provides for Mac OS X. I think any scripting language that supports C library linking could be used to make calls into the Fantom driver library. Using shell scripts wrapped around my nexttool utility is another approach that would work for doing the things you mention.
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
I have updated the utilities page with proper links for Mac OS X, Linux, and Windows versions of the nexttool command line executable. I have not had a chance to properly test the Mac OS X build so please let me know if you run into any trouble.
I have also added links for the Linux version of the NeXT Tools GUI application and the NeXT Command Center (nxtcc) tool (NeXT Tools plus code editor/compiler integration) for Linux and Mac OS X. The Mac OS X link is currently broken but I will upload the archive for that OS later today or tomorrow (if all goes well).
afanofosc wrote:I have updated the utilities page with proper links for Mac OS X, Linux, and Windows versions of the nexttool command line executable.
John Hansen
Ok, so here is the first obstacle which I can't seem to overcome - I can't find the download link to the Mac OS X command line executable. Am I missing something?