Wi-Fi program loader?
Phil Pilgrim (PhiPi)
Posts: 23,514
I'll be receiving a couple Activity Board WXs tomorrow, along with the Wi-Fi modules. I've read a lot of blurbs about loading programs via Wi-Fi, but I haven't seen any PC software that can do that. Is this a feature of the most current Propeller Tool, or is there a separate loader that I need to download? Or ... is there a TCP driver that emulates a serial port?
Enquiring minds want to know. TM
Thanks,
-Phil
Comments
It's all in the secret sauce of the WiFi modules firmware.
The WiFi module is listening for a UDP packet to be broadcasted and then responses with it's information that can then be used to create a TCP connection to the board.
SimpleIDE can load program that way and I have a program that can load programs over WiFi to the P2 that way.
Works great for application that you don't want tethered.
Mike
BlocklyProp Solo is another option that natively supports WiFi loading.
When detected in the local subnet, WiFi modules get added to the com-port dropdown in both BlocklyProp and SimpleIDE.
I think with the command line loaders (prop-loader / etc..), you can either autodetect or specify the IP address too; handy should the module be on another subnet.
Neither SimpleIDE nor Blockly help me since I'm programming in Spin for the P1. Nor does PropLoader unless I can find a pre-compiled .exe.
Thanks anyway,
-Phil
You can get a pre-compiled version of proploader.exe by downloading Flexprop from: https://github.com/totalspectrum/flexprop/releases
You'll find proploader.exe in flexprop's bin directory. And, yes works with P1 or P2!
proploader.exe usage:
As Dennis mentioned, a pre-complied proploader comes with FlexProp. For that matter you can use the FlexProp GUI to download binaries via WiFi, and the flexspin compiler can compile binaries for P1 -- either as P1 LMM (fast but big) or P1 bytecode (slower but small). The bytecode support is marked experimental because there are still some missing features that C or BASIC might need, but for Spin programs it should work fine. Ada did a very nice job of creating the P1 bytecode backend.
(Or, you can compile with openspin, bstc, or some other compiler, and just use the GUI for downloading the final binaries).