WiFly Radio Installation
WiFly Radio Installation Instructions
[Note: the original WiFly radio system is no more recommended, mostly because of the disconnection problems in polluted WiFi environments. The new XBee S6B WiFi radio is a much better radio, and the new installation instructions are here.]
The WiFly RN-XV is available from Sparkfun:
Download a terminal program
I use the TeraTerm the terminal program on Windows to send the configuration messages to the WiFly
On the Mac you can use the built-in command line "screen" if you are hard core, or the much easier to use app CoolTerm:
Connect to your WiFly via the terminal program, enter the WiFly command mode
Plug your WiFly into the USB dongle, the USB dongle to your PC/Mac.
This will automatically create a COM port or serial entry on your computer (on Windows, you can find out on which COM ports it appears by looking at the Serial Ports in the Device Manager).
Configure your terminal program for serial communication as follows:
9600 bauds, 8bits, no parity, one stop bit (known as 8N1) on whatever serial COM port number your adapter shows up
Enter the WiFly command mode and confirm your firmware version
Now hit enter a couple times, and the version of the firmware you have should be in the prompt:
If your firmware version is not 4.41, you need to update it, see "updating the firmware" below.
Configure the WiFly (for firmware 4.41)
Restoring defaults in case of a mishap
Connecting to R2 Touch
Launch the R2 Touch application on your iPhone. Press on the little wrench button to go to the settings:
Once in the R2 Touch settings, choose TCP as the Connection Method.
Enter your Receiver IP address exactly you set it up while configuring your WiFly above.
Change the Wifly port to 2000.
The picture below shows the custom address for my setup (169.254.100.100), but the default is 169.254.1.1 and you should use that unless you have also changed the WiFly IP address. The IP address you enter here should match exactly the one you programmed into the WiFly.
Press done, which will return to the main screen.
If all is well, you should see some traffic to the terminal. It's going to be mostly garbage, because the WiFly is not connected to the MarcDuino yet. The indicator in R2 Touch is NOT going to turn green either. You might be seeing "open" followed by an almost immediate "close" as the app is not receiving a confirmation from the MarcDuino. But if you see any traffic, this test is enough to confirm that you WiFly connection is established properly.
Your Wifly is now configured, you can connect it to your MarcDuino as explained here:
Arcane Option: Disabling UDP Support
Obsolete configurations for previous firmware versions
For reference only. These firmware versions are obsolete, update to 4.41 instead.