XBee WiFi info
Rsadeika
Posts: 3,837
Yesterday I received my XBee WiFi module from Parallax, this morning I plugged it into my Activity Board XBee socket, now what do I do? I downloaded XCTU, ran the program, since my AB is on COM11 I chose that for the XCTU, and ran the find module, nothing showed up. I also read in the docs that you can go to 192.168.1.10 and that should bring up some kind of built in program that is on the WiFi, but since my WiFi hotspots are password protected, nothing came of that.
It seems like I need some handholding on this one, any help will be greatly appreciated.
Thanks
Ray
It seems like I need some handholding on this one, any help will be greatly appreciated.
Thanks
Ray
Comments
It is to bad that Digi does not have a simplified version of getting the XBee WiFi module up and running, unless of course what they have now is the simplified version. Once you do make a connection, does anybody know what is supposed to appear on the Putty screen?
Ray
When I am in the XCTU program mode and I tried using Putty with the 192.168.1.10 address, I do not get a connection. Since the setting in Putty is SSH, I wonder if that could be a problem. I just scanned over the info in XCTU, and it looks like the XBee WiFi module IP address got changed, will have to try the new address. Just tried the new address, while still in XCTU, and it did not make a connection, Hmm.
Ray
When I have the module connected to the PC and I am running XCTU, it seems to be talking to the module, so the module is not broken, it just will not let any program make a connection to the WiFi module. Once I got past the "Active Scan" setup I thought everything from that point would be easy, not going my way.
Ray
Wait a minute, I just checked Putty, it has a Telnet option which I just tried, no luck it just timed out. I also just did a ping to the new IP via the command prompt, it sent and received some data, so ping gets to it without any problem. What would be the most obvious thing that I would be overlooking at this point?
Ray
Ray
David Betz wrote a Propeller Loader for the S6B device last year that sends programs to EEPROM over the serial port. I also created a project for controlling the ActivityBot+S6B with an early version of David's code which is described here.
Jeff Martin completed his Delphi based propeller loader for the S6B afterwards. Someone is translating that to Objective C ... (still?).
There's also the command-line telnet program that comes with OSX.
I think maybe tomorrow I will have to dig into this some more, and get this thing to work for me.
Ray
Today I will try making some headway with XBee WiFi module, from the Digi docs it says that you are supposed to be able to connect without having an HTML setup, that is what I am aiming for, the simplest form of connection to the module.
Ray
No surprise there.
The links are part of a huge repository not intended to be zipped. It is intended to be used with the mercurial source control program. Maybe I'll post a zip of the demo program pieces later.
At this point, according to the XCTU, the module has been set up correctly for accessing my closest hotspot, it just does not seem to want to go to work.
Ray
Ray
One of the XBee S6B configurations is as a simple HTTP server. Then any web browser can be used as a client to talk to the server. The examples I suggested were based on this concept. It is similar to the idea of having an XBee serial on a PC XBee USB to a separate XBee acting as a serial port connection for a microcontroller.
I'll come up with a procedure and some binaries for you to use later today for the xbee-abs example linked above. It will take a while to reproduce it.
Gotta go shopping first.
Ray
Ray, your device has probably never been configured correctly. The S6B will respond to pings without having a propeller program driving the server.
Attached are some propeller binaries loadable using propeller-load that will allow configuring the XBee S6B on the Wifi network and provide a quick test for interoperability. The web page code can be used on any PC or server (using the right address path for the file index.html of course).
xbee-config.elf
xabs-server.elf
index.html
cssAbsDemo.css
shine.js
events.js
images (...)
How to use this:
- Download files to your PC from the .zip
- Extract the .zip file keeping the file structure in tact
- Connect ActivityBoard XBee DO to Propeller P9
- Connect ActivityBoard XBee DI to Propeller P8
- Connect ActivityBoard XBee RTS* to Propeller P7
- Enter: propeller-load -r -t xbee-config.elf
- Enter security type. Example: wpa
- Enter Wifi SSID. Example: MyNetwork
- Enter Wifi passcode. Example: 12345678
- If config fails, repeat last 4 steps; else Control+C to quit.
- Enter propeller-load -r -e -t xabs-server.elf
- Note the IP address. Example 192.168.1.95
- Open the downloaded, unzipped index.html in your web browser
- Enter IP address (example 192.168.1.95) in the top left side text box
- Click the HELLO button. Hello! should be echoed in the bottom text box area
- Click the LED26 button, and LED on P26 should light; click again to toggle off
- Click the LED27 button, and LED on P27 should light; click again to toggle off
A simpleide demo is not available. You must use propeller-load for loading the program.I noticed that when the WiFi module got setup, it still came up with the same IP address that XCTU provided, so some things did not change. I checked my router and it shows the IP address of the XBee WiFi module, but their is no name that should be showing. Because I have a couple of hotspots to get coverage, I guess I will have to go through install procedure to program it with a new SSID and passcode.
This all shows potential, if you can keep xabs-server.elf to <= 32K ??, you can have a lot of the other stuff done with the PC side of things. Now I am wondering how you could actually program the Activity Board or any other board that has access to the XBee WiFi module, from your desktop. Have to do some more digging...
Ray
Yes, one can load a propeller using the xbee-server.elf that David wrote. It overwrites EEPROM, but is a good general solution.
The xabs-server.elf code is actually much smaller than the .elf file. The .elf files contain lots of information not really needed for a binary.
Ray
Ray
The functional xabs-server code is in the xbee-loader folder.
Regarding using putty, I don't believe a telnet server is built-in to the S6B Wifi module.
What got me to this point, I have an experiment going on where I am using the Activity Board/RPi WiFi combination. In order to minimize some power issues, I thought maybe removing the RPi WiFi, and replacing it with the XBee WiFi, might do the trick. Well, if I were an expert programmer, or there was some canned software, that might be a possibility. As it stands now this is going to the very back burner, but I will occasionally keep looking to see if I can do any more with it.
Ray