What follows is a guide to setting up the RN-XV in the way I have – so it operates autonomously, connects to a wifi network periodically, posts it’s sensor data, and then disconnects. A few people have shown an interest in how I got it working, so I thought I’d share it here.
When I was considering buying a WiFly, I did a lot of searching for information on the web, and for details of other people’s experiences with the device. The main thing I noticed was that there seemed to be a large number of people who were struggling just to get the device connected in the first place, in order to then set it up properly.
Most folks seemed to be either using some kind of serial breakout board or cable, or connecting to it using an Arduino or similar prototyping platform. I wasn’t sure how I was going to go about it, but I ordered one anyway.
This page was last updated on Monday 28th January 2013.
I’m pretty weird in that I like reading instruction manuals. A couple of long flights I had to take for work meant I had plenty of time to peruse the RN-XV manual. This certainly made it seem easy to connect to the device wirelessly in order to set it up.
So when mine arrived, that’s what I tried first. I used the Arduino to supply the required 3.3V power, and connected a further cable to PIN8 on the RN-XV. This forces it to boot up in ad-hoc mode. Basically the device creates it’s own wifi network, that you can then log into.
The manual gives the following information about the network the RN-XV creates:
SSID: WiFly-GSX-XX, where XX is the final two bytes of the devices MAC address
DHCP: OFF IP address: 169.254.1.1
set wlan phrase [your wpa passphrase]
set wlan ssid [the SSID of your wifi network]
set ip address [enter an IP address outside of your DHCP range]
set ip dhcp 0
set ip gateway [IP address of your router]
set ip host [IP Address of the server]
set ip remote 80
set wlan auth 4
set wlan hide 1
set ip proto 18
set com remote GET$/thepage.php?DATA=
set q sensor 0xFF
set option format 7
set sys autoconn 250