I got an XBee WiFi module the other day and managed to get it configured on my home WiFi network. Using techBASIC installed on my iPhone I successfully connected to the XBee WiFi module and can send serial data back and forth with relative ease. The XBee module is wired to a Propeller Activity Board so I can turn LEDs on and off using a simple app on my iPhone.
The next feat I wish to accomplish is to do the same type of serial data communication with the XBee when I am not home (i.e. not connected to my home WiFi). As you might have guessed this is the beginnings of some home automation with remote capabilities.
It seems from this link (http://www.savagecircuits.com/content.php?201-XBee-Wi-Fi-via-WAN-IP
) that this can be done. However, I am in no way internet savvy and so starting from the lowest of levels. From what I have been able to piece together I need to do something called "port forwarding" on my home router in order to expose the XBee to the internet. My home internet service is Verizon FIOS. To complicate things a bit more I have an Apple Time Capsule hard wire connected to the FIOS router. The XBee and my iPhone connect to the Time Capsule's WiFi and not the FIOS WiFi. So I am guessing I need to do some type of port forwarding on the FIOS router to expose the Time Capsule and then port forward on the Time Capsule to the XBee. Does this sound right? Can someone point me in the right direction of how to get my XBee exposed to the internet?
Assuming my XBee is now "open" to the internet can I expect to use the same techBASIC openTCPIP( filenum, IPaddr, port, )
routine to establish a TCP link with the XBee via the WWW? This sounds a little too easy to be true, but would be great if it were! Are there any step-by-step instructions on how to communicate with an XBee WiFi module via the internet?
By the way, for those just learning the basics of these XBee WiFi modules you should ave a look at this Savage Circuit video of using the XCTU to configure the S6B modules: http://www.savagecircuits.com/content.php?219-Short-Circuits-3-XBee-Wi-Fi-Setup-for-Existing-Wireless-Networks
Chris did a really nice job of explaining some of the basics of these nifty devices. Thank you, thank you, thank you!!