Wireless programming

All Moteinos come with the DualOptiboot bootloader which enables them to be wirelessly programmed when the FLASH MEM chip is installed (also available separately).

The wireless programming protocol is generic and supported by all Moteinos with DualOptiboot and FLASH Memory option, but the example implementation was only done for RFM69 transceivers

You will need to program a Moteino with a sketch that listens to such wireless programming commands first before it can be programmed over the air. There’s a proof of concept and source code described in this blog post.

A Windows desktop GUI app is available to make wireless programming easy. This program is available here at Gihub. The sample programmer and target sketches that support the wireless programming are in the RFM69 library. Here’s the GUI interface:Here’s a rundown of the features:

  • gives you a list of available serial ports so you don’t have to guess (you still have to know which serial port your wireless programmer Moteino is connected to)
  • allows you to type/paste or browse for a hex file
  • allows a numeric target node ID
  • once all controls are populated with valid info, the Start! button is enabled
  • upon exit, it saves the settings to registry and attempts to read them back in future launches

Using python instead of desktop app

You can now use the OTA.py python script cross platform which does the same thing as the Windows application except it needs to be passed command line arguments (com port, baud, hex file etc) – type python OTA.py -help for details. The OTA.py script is now bundled and can be invoked in the Windows application.