Thanks Ben,
There are many GUI programs out there. I’m looking for something I can run from the DOS command line. It would seem simpler than a GUI and yet I can’t find a single one.
It’s not too hard to make your own command line program that sends and receives bytes on a serial port.
First, download a version of Microsoft Visual Studio. I recommend Microsoft Visual C# 2008 Express Edition, but if you have experience with Visual Basic or C++ then you might prefer those versions, and those versions will probably work too.
Run Visual Studio. Click “File -> New Project”. Select “Console Application” to make a program you can run from the DOS command line.
Then you can use the System.IO.Ports.SerialPort class to open up a serial port and write bytes to it. Here is a simple (untested) example that opens COM1 at 9600 baud and writes the bytes 0x01, 0x02, and 0x03 to it:
Thanks. Will try that the next time I want to package that operation into a nice utility like that. For now, I’m putting DLL calls in my script. The command line program that can be called from another app is preferable - a ‘lite’ solution.
I’m surprised Pololu is recommending this though - considering the tutorial on GUI and interfacing uses cygwin. On the other hand, it’s understandable, since that example is out of date - doesn’t build any more - something about WinMain_16 missing or something like that.
Once someone writes a program that one can call with options like