Prop Boe-Bot WiFi Basic
Mike Green
Posts: 23,101
I've been playing with RovingNetworks' RN-XV on a Prop BOE and have gotten a version of BoeBotBasic to run using an iPad or iPhone as a console. I'd recommend using an external Bluetooth keyboard, but it does work with the on-screen touch keyboard.
You need to pre-configure the RN-XV for either Ad-Hoc mode or your favorite WiFi network, then do some extra configuration to suppress extra messages and output the connection status on one of the RN-XV I/O pins as follows:
set comm open 0
set comm close 0
set comm remote 0
set sys prntlvl 0
set sys iofunc 0x40
save
reboot
You'll need jumpers from J5 to J2: DO to P13, DI to P12, and ASOC to P11. You may want to jumper J5 from xBee /RST to serial /RST to reset the RN-XV when the Prop is reset.
When there's no TCP connection opened, the Basic interpreter uses the PC for a console. I use BST's serial terminal for this. When a TCP connection is opened, the Basic interpreter switches to the TCP connection.
I use MochaSoft's Mocha Telnet Lite on the iPad and iPhone. It's free from the Apple App Store.
Edited: Modified interpreter to better reinitialize if TCP connection dropped and reestablished. No longer uses PC connection.
You need to pre-configure the RN-XV for either Ad-Hoc mode or your favorite WiFi network, then do some extra configuration to suppress extra messages and output the connection status on one of the RN-XV I/O pins as follows:
set comm open 0
set comm close 0
set comm remote 0
set sys prntlvl 0
set sys iofunc 0x40
save
reboot
You'll need jumpers from J5 to J2: DO to P13, DI to P12, and ASOC to P11. You may want to jumper J5 from xBee /RST to serial /RST to reset the RN-XV when the Prop is reset.
When there's no TCP connection opened, the Basic interpreter uses the PC for a console. I use BST's serial terminal for this. When a TCP connection is opened, the Basic interpreter switches to the TCP connection.
I use MochaSoft's Mocha Telnet Lite on the iPad and iPhone. It's free from the Apple App Store.
Edited: Modified interpreter to better reinitialize if TCP connection dropped and reestablished. No longer uses PC connection.
zip
72K
Comments
That's pretty neat! I don't have a Prop BOE, but used a Proto Board.
I downloaded MochaSoft's Mocha Telnet Lite and set:
set comm open 0
set comm close 0
set comm remote 0
but had some issues getting the session to open, I need to go read the help file for that program. However set those values back to default:
set comm OPEN *OPEN*
set comm CLOSE *CLOS*
set comm REMOTE *HELLO*
save
And was able to open a session.
I'm about ready to sell all of my XBEE radios in favor of there RN-XV's.
Thanks!
Depending on what you're trying to accomplish, you might want to keep some of those xBees. They use less power than the RN-XVs and they're easier to set up. Still, the RN-XVs are handy and you can use them with your smartphone or tablet device. If you use an RN-XV with a WiFi network with Internet access, you can link to your device from anywhere else in the world with Internet access.
http://www.rovingnetworks.com/products/RN_XV
Didn't see the word XBee anywhere on the page, but it looks like the identical layout.
I guess you're using it in the Prop BOE XBee port.
What kind of distance from the router are you guys experiencing? I know a lot of factors come into play...
- Ron
<2.32> show rssi
RSSI=(-55) dBm
<2.32>
I used to have a WRT45G but switched to a CISCO Valet Plus and the antennas are internal - might cut my range somewhat.
I will probably write a socket server program in VB to experiment with the RN-XV since I don't have a Smart phone.
In fact I only have a pre-paid cell phone which I keep for emergencies (used it about 3 times in the last 18 months during power outages).
I might also look into Node.js or just create some ASP web pages for IIS.
I had a little trouble because I use MAC filtering on my router and the RN-171 had too many numbers - (figured out that I needed to ignore the first two)
Also had trouble saving the configuration so that it would reestablish the connection at power-up - finnaly worked when I added the "set wlan ssid" command
set wlan auth 4
set wlan phrase *******
join czapnet
set wlan ssid czapnet
save
I used a little VB6 TCP chat program example to connect to the module and send/receive strings from PST.
Need to study the manual some more...