Bt2Nxt.exe ---------- Downloads files to a LEGO NXT device via a Bluetooth serial port Usage: BT2NXT port [/N name] [/D files] [/S files] [/R files] [/P files] [/M] [/V] [/Q] [/X] Command line switches: port specifies a Bluetooth serial port /N name specifies target NXT device name /D files delete one or more files /S files send one or more files to NXT /R files run one or more NXT files /P files play one or more NXT sound files /M get available user memory /V get battery voltage /Q quiet mode /X stop executing program (if any) Filenames & NXT device name must be quoted if they contain spaces. Downloaded files use the PC filename as the NXT filename in 15.3 format. Sending deletes first. Switches execute left-to-right, & abort on first error. Bt2NxtUtils.dll --------------- C# .NET 2 Bluetooth to NXT communications utilities DLL module: namespace Bt2NxtUtils { public class NxtBox { public static void Open(string port); public static void Close(); public static bool IsOpen(); public static int KeepAlive(); public static string GetName(); public static int GetBatteryVoltage(); public static long GetFreeMemory(); public static void Beep(int freq, int time); public static int PlaySoundFile(string filename, bool bLoop); public static bool IsValid(string filename); public static byte Delete(string filename); public static byte Download(string filename); public static byte RunProgram(string filename); public static byte StopProgram(); } } Updated: 6 April 2006 Author: paul.spurgeon@blueyonder.co.uk