XBee Wifi S6B with Basic Stamp 2 Homework Board...
Hi! Relative Noob, here, so please bear with me.
I just received a Digi Xbee S6B Wifi module (32412). I also purchased an Xbee USB adapter (32400) to power it properly and configure it. I'm hoping to get it to work with a BS2 Homework board to learn and prototype with it.
When plugged into the USB cable (after installing the latest USB drivers from Parallax), the Xbee powers up as it should and it's LED's seem happy, but I see no Xbee wifi network to connect to with my computer (per Digi documentation), and I can therefore not configure the Xbee to access my network. I have verified this with multiple wireless devices.
I was hoping to find a good tutorial for this, but all I find is propeller/Xbee, not basic stamp, tho the Xbee is advertised to work with the basic stamp. Please advise, or point to a good tutorial. Thanks.
I just received a Digi Xbee S6B Wifi module (32412). I also purchased an Xbee USB adapter (32400) to power it properly and configure it. I'm hoping to get it to work with a BS2 Homework board to learn and prototype with it.
When plugged into the USB cable (after installing the latest USB drivers from Parallax), the Xbee powers up as it should and it's LED's seem happy, but I see no Xbee wifi network to connect to with my computer (per Digi documentation), and I can therefore not configure the Xbee to access my network. I have verified this with multiple wireless devices.
I was hoping to find a good tutorial for this, but all I find is propeller/Xbee, not basic stamp, tho the Xbee is advertised to work with the basic stamp. Please advise, or point to a good tutorial. Thanks.
Comments
Oh, and before I forget...the only way to connect the XBee module to the BASIC Stamp Module is via the XBee 5V/3.3V Adapter, but you didn't mention having one of those. Since the XBee modules are 3.3V connecting the BASIC Stamp to them without a buffer would damage the XBee module.
Please see the following post for what I did to connect to my network.
http://forums.parallax.com/showthread.php/153072-XBee-Wifi-amp-Propeller-Activity-Board-how-to-connect?p=1233532&viewfull=1#post1233532
Also, I was under the impression that the Xbee USB adapter (32400), was also a voltage regulator. Did I err and just fry my nice new wifi module?
The "Reset" button they refer to is on their evaluation board and many other board have the reset pin brought out (as does ours) so you can connect a reset button if you like. On the XBee USB Adapter you can connect the button between the RESET line and ground (VSS).
When you try to detect the module the first thing you need to do is select the COM port that the XBee Adapter was assigned. It should show up as USB Serial Port (COMxx) where xx is the assigned port. Are you selecting this port? You should be asked as soon as you click the + button to add a module.
Sadly, the only connections I have made between the basic stamp to the USB adapter are VDD and VSS to the USB adapter with the Wifi module stacked on top of it. You make it sound like I have fried my module. Please confirm.
I was under the impression that the different adapters were simply offering more options: Good, better, best. DAMN! I hate learning the hard way.
USB power is 5 VDC. The XBee USB Adapter has a regulator that drops that down to the 3.3 VDC that the XBee Module operates on. So at this point all connections to any pin on the XBee Module need to be at 3.3 V. THe FTDI chip has it's own internal voltage selection for 3.3 V and therefore has a safe connection to the XBee Module. The BASIC Stamp 2 module is 5V and therefore cannot be connected to the I/O pins of the XBee Module without using a buffered or level-translating adapter such as the XBee 5V/3.3V Adapter. If you were to connect an I/O pin from the BASIC Stamp module to the I/O pins on the XBee Module without such protection you could damage the XBee Module.
In addition to that I am also stating that the XBee USB Adapter is not intended to connect a microcontroller to the XBee Module. The on-board FTDI chip is connected to the DIN, DOUT and a few other pins, so they're not available to an external microcontroller. On top of that, even if they were you would still have the signal level issue with a BASIC Stamp module. I only stated what would cause damage, not that you did cause damage. I also didn't know you only connected power. Intuitively you would have connected more than power as just the power connections would not accomplish anything.
I have it connecting to my router and able to send data to a URL and receive data (set up port forwarding)
and all is well using XCTU however im just not understanding how to do the same with my basic stamp 2 in pbasic
im trying to send this get request
how can i do the same with the basic stamp?
in xctu the frame i use for a get request is as follows (sent as tx ipv4 0x20)
this is some of the things I've been trying
yes i have the latest firmware which is 2012.
i want to clarify before i go off the deep end...
so you are saying that with firmware version 2012 i cant communicate with my server with the xbee wifi ?
im a little confused why you would say that since i can communicate with the server and vice versa using xctu instead of the basic stamp.
so clearly it is capable of sending and receiving get command because im using it already .. did you read my previous post?
im just tryjng to figure out how to do the same thing i do with xctu with the basic stamp.
i included some of the code i have tried .. pretty sure none of those were the correct method
http://www.digiboard.com/support/forum/37564/getting-xbee-wifi-module-work-correctly-tcp-mode-with-browser
im sorry i think there has been some confusion as my xbee wifi s6b is working as expected
and am not having issues with post or get or tcp
everything works
i was just asking for a example code for the basic stamp which is Pbasic
i want to do what i am already doing fine but want to use the basic stamp to send my data to the xbee wifi s6b 2021
sorry for the confusion
well if you are saying that via xctu it can work but not via the micro controller then what is the difference besides the way it is connected
when i use via xctu im using the xbee development board with usb breakout (serial)
when i connect to the micro controller i connect to the i/o pins (parallel)
so correct me if im wrong but in theory the i can accomplish the same thing xctu does by converting parallel to serial and breakout to usb and plug it into my xbee dev board just like i do for my computer.
can you see anything wrong with that theory?
Not at all. I am simply referring to what I read and the symptoms described by others. I won't be able to validate it until I try it myself which I won't get a chance to do until Friday or this weekend.
I don't know what should be happening in this case but I can tell you what I would expect to be happening looking at the example.
SEROUT transmits the GET string
SERIN assigns the byte variable temp with a single byte response from the XBee
DEBUGIN temp is a repeat of the line above
which makes me think DEBUGIN was coded to display the returned value when in actual fact the instruction should be DEBUG. If temp is not an ASCII character value then the debug output will need formatting.
I may be wrong in my assumptions but looking for a one byte response as a means of testing your system makes perfect sense to me, it just appears your existing needs a little tweeking.
thank you for pointing this out however as my server access log didnt show any hits its clearly not a debug issue
i rewrote the code using a parallax PINK example still to no avail
any help would be appreciated