Prop and WiFly Radio
T Chap
Posts: 4,223
I have made some progress sorting out the WiFly GSX wifi radio over the weekend. I created an app to program the module over a local connection via TCP on a mac or pc. The module can also be be programmed via UART from the Prop or over TCP. There are a lot of things to learn still but I thought I would post some beginning stages progress since this seems like a very useful gadget that others might enjoy.
I have the module able to go to my website and read test.html file. The module will send or get data using a number of methods, including timers and UART control. It will allow the Prop to just send it data and have the data get sent to a destination as it arrives in user defined packet sizes. The new firmware allows putting files via FTP or getting FTP files.
I got the RN134 module which is a breakout board with easy connections for Tx/Rx and Rs232. I use only the Tx/Rx connected directly to the Prop. It does have 10 general purpose i/o's and 8 sensor inputs, all inputs can be configured to forward data over TCP.
I have connected the module to a router over WEP128 using a key. The hard part is figuring out what mode to use the radio in since there are several modes depending on your goals, then sorting out how to communicate with HTTP/php to the remote servers.
The module just sends whatever it receives from TCP straight to the Prop and the Prop can send it data and it will send it back out. I am told that php is the way to go for real time bi directional communication between a remote computer and the wifi radio>Prop.
The Wifly controller app is in Realbasic and cross platform. If anyone is interested I can post the RB files and application. Soon the the app will store pre-programmed setups for different configurations.
I have the module able to go to my website and read test.html file. The module will send or get data using a number of methods, including timers and UART control. It will allow the Prop to just send it data and have the data get sent to a destination as it arrives in user defined packet sizes. The new firmware allows putting files via FTP or getting FTP files.
I got the RN134 module which is a breakout board with easy connections for Tx/Rx and Rs232. I use only the Tx/Rx connected directly to the Prop. It does have 10 general purpose i/o's and 8 sensor inputs, all inputs can be configured to forward data over TCP.
I have connected the module to a router over WEP128 using a key. The hard part is figuring out what mode to use the radio in since there are several modes depending on your goals, then sorting out how to communicate with HTTP/php to the remote servers.
The module just sends whatever it receives from TCP straight to the Prop and the Prop can send it data and it will send it back out. I am told that php is the way to go for real time bi directional communication between a remote computer and the wifi radio>Prop.
The Wifly controller app is in Realbasic and cross platform. If anyone is interested I can post the RB files and application. Soon the the app will store pre-programmed setups for different configurations.
Comments
So how is this project going?
I just stumbled here whilst googling for "wifly propeller". I'm surprised that there only one such thread and that there is no discussion going on because it sounds like a fun project.
I'd also be interested in getting a Prop with wifly talking to my Android devices.
Jim
The serial connection to the Prop shouldn't be a problem for most on this forum, so I guess the Java code on the Android would be the difficulty. It basically just opens a TCP socket with the WiFly module. I'll see if I can dig up the source code and upload.
it uses port 3000 but you can change that below and on the wilfy to any port.
on the wilfy do this. (if you use a battery powered wifly, you should also use idle,sleep and wake)
set ip host (your computer ip) without ()
set ip remote_port 3000
set sys autoconn 10
save
reboot
You can use the tiny Quicksharp to compile the sourcecode.
http://quicksharp.sourceforge.net/