Hi everyone,
I have decided to share a stand-alone program I wrote that allows wireless programming of Moteino nodes. I essentially decoded Felix's Python script and put everything in a single program. I have been testing it for a couple of days, and it worked perfectly. All the serial code is in a Class, and is event driven.
Now for the bad news: this is written in VB6
So I am supplying the source code so that anyone fluent in DotNet could port it. All the serial code is in a Class, and is event driven.
Not many comments or error checking in the code yet: I ran out of time, I am leaving for a vacation tomorrow...
You can find the EXE program and source files on GitHub at:
[Edit]
https://github.com/msjfb/Moteino-Wireless-ProgrammingA direct link for the (larger) Runtime package (may not be required, see below) can also be found at CNET here:
http://download.cnet.com/Visual-Basic-6-0-Extended-Runtime/3000-2070_4-76018551.html If you get a 'COMDLG' error when starting the EXE program you need to install VB6
EXTENDED runtimes. You will find the install package in the directory.
I tested this in Windows 7, SP1 and it ran fine. Just install the Run-times only (see enclosed screenshot), and ignore and 'STDOLE' error you may get (I did).
W
ARNING: If you decide to install the runtime, please create a restore point before. I cannot guarantee that the setup will not damaged your Windows installation!
I can only confirm that I installed it on a clean Windows7, SP1 machine and had no problems.
Usage is pretty simple: Choose the HEX file to upload, local serial port number and Baud rate, and finally the destination NodeId.
Press the START button and the bottom status bar will keep you informed.
Prerequisites have not changed from the Python method: you must have the 'magic code line' present in your destination node sketch to allow wireless programming, and you must have the Wireless Gateway sketch running on your local Gateway node (that is connected to your PC).
Enjoy and please report any bugs, difficulties, etc.
François