I am trying to transfer data between two XBee’s using an ad-hoc network. My end goal is to have one XBee hooked to a microcontroller transmitting data via UART while a second XBee connected to my computer reads that data.
I use the following settings (from this blog) with no results.
Radio 1 - Ad-Hoc Creator
Radio 2 - Ad-Hoc Joiner
I have searched through the entire forum trying every possible combination of parameters. I tried both STA mode and SoftAP mode, made sure that my serial connection is sent to transparent, etc. The modules work when I connect them to a wireless router so I know they are not faulty.
What am I missing?
Have you tried the steps listed on pages 39 - 40 of the product manual located at http://ftp1.digi.com/support/documentation/90002180_K.pdf ?
Yes that was the first thing I tried. One caveat is that I cannot set the channel if the device is IBSS Creator.
I also tried updating the firmware to 2024 from 2021 but now I don’t even see options for DL or MY.
You wan to use 2023 or above; Set the CH command via the ATCH command from the Terminal tab and AT command mode.
I flashed both to 2023 and set the channel of the creator to 1. I followed the manual exactly. Here is what I get:
AI - FF
DI - 4
CH - 1
LM - FF
AI - 0
DI - 4
CH - A
LM - FF
Should both XBee’s be in STA mode? Do I have to set DO to anything?
The CE command should be at the default value of 2. What I would suggest is that you issue the following commands from the terminal tab and then follow the directions on the pages I mentioned before.
I did the procedure for each XBee and then followed the manual exactly, but it still did not work.