Xbee WiFi in Soft AP Mode

There have a request from the customer on how to make the Xbee WiFi in AP mode. It means you can connect to Xbee WiFi directly without using a router. The previous version of Xbee WiFi (S6) is not support this feature (correct me if I’m wrong), then Digi International upgrade the module to version S6B. This version support the Soft AP mode but you need to update the firmware first. Luckily, the new version of Xbee WiFi (S6B) is available in our online store. 🙂

HARDWARE
1. Xbee WiFi (link).
2. Xbee Starter Kit Without Module (link).
3. USB Mini Cable (link).

SOFTWARE
XCTU V6.1.0.

UPDATING XBEE WIFI FIRMWARE
1. Stack Xbee WiFi to Xbee Starter Kit Without Module and connect to PC via USB Mini Cable.

Xbee WiFi Connection

2. Open XCTU V6.1.0 software. Click on “add Xbee module” icon.

xctu1

3. Click on the Xbee COM port. Hit “Finish”.

xctu2

4. It will takes a few seconds to verify the Xbee module.

xctu3

5. If there don’t have any problem, it will display the Xbee name, function, port and MAC under Radio Modules box. Click on it.

xctu4

6. It will read all the parameters stored in the Xbee module. As usual, it will takes a few seconds.

xctu5

7. After successful reading, it will display all the parameters at the right side. The current firmware version is 2004. To update the firmware, click on the icon highlighted with red box below.

xctu6

8. Under “Firmware Version”, choose “2021 (Newest)” version. Hit Finish.

xctu7

9. It will takes a few minutes to update the firmware.

xctu8

10. Radio firmware has been updated successfully.

xctu9

Soft AP MODE
1. Now, the Xbee parameters is updated. There have additional parameters for “Soft AP mode” under “Infrastructure Mode”.

xctu10

2. Set “IP Protocol” to “TCP”.

xctu11

3. Fill up “SSID”, for example “CytronXbeeWiFi”. Then click “Write” icon.

xctu12

4. It will takes a few seconds to write new settings into the Xbee module.

xctu15

TESTING
1. In order to make sure the Soft AP mode working on the Xbee WiFi module. First, I search the WiFi with “CytronXbeeWiFi” SSID using my Android phone, and connect to it.

Android WiFi

2. I installed WiFly Remote apps to do a testing. Open the apps and fill up the IP address (192.168.1.10) and Port (9750). Touch “CONNECT”.

WiFly Remote

3. When the arrow is touch, it will sent the data to the connected network, Xbee WiFi.

WiFly Remote 2

4. Open terminal in the XCTU software. Then, click “open serial connection” as shown in the picture below. Data receive by the Xbee WiFi will be displayed on the terminal.

xctu13

5. The same method applied to the iPhone user, search the WiFi with “CytronXbeeWiFi” SSID and connect to it.

iPhone WiFi

6. Installed TOSR-WiFi apps for testing. Open the apps and fill up the IP address (192.168.1.10) and Port (9750). Touch “Connect”.

TOSR-WiFi 1

7. This apps will continue sent data to the connected network (Xbee WiFi), touch the button to send the different data.

TOSR-WiFi 2

8. Open the terminal to see the data.

xctu14

Thank you and good luck! 🙂

Xbee WiFi in Soft AP Mode video:

,

Related Post

Recovering Your XBee

Remote Mobile Robot with XBee-WiFi

Getting Started with XBee-WiFi

11 thoughts on “Xbee WiFi in Soft AP Mode

  1. Thank you for your email(report). But I was wondering what port No. 9750 means? Is it possible to change port No. 9750 to 502

  2. I have a similar question. I am able connect my phone to the xbee s6b, however, when I try to connect the wifly control, it has a connection error. The default port (C0, DE) settings seem to be 2616. I’ve tried 2616, 9750 but cannot get it to connect. Any ideas?

  3. Actually, after re-writing the default values back to the Xbee a couple of times, it works with all the settings you show. Thanks.

  4. Hi,

    i also tried your configs with an xbee s6b

    i can connect to the soft ap Network, but i always get a Connection timeout if i try to send data with the Smartphone app.
    i have the same Setting you showed here in your walktrough…
    maybe someone could give me some tipps to get it work.

  5. Hi,

    Can the xbee s6 handle multiple tcp connections? Meaning can I connect more than 1 device with xbee s6? Can the xbee s6 or s6b listen on multiple ports?

    Thanks

  6. Hi, how do you get the IP address of 192.168.1.10? Is it automatically assigned to the XBee or you have to set it yourself in XCTU?

    I realized that port 9750 = 0x2616. It’s written as 2616 in XCTU because it’s in hexadecimal.

  7. Good catch on the port number, I was scratching my head too. I tried to modify the port number and the IP address, but it would not change (I’m using the older WinXP version of XCTU) – always reverted to the defaults. Are they just static at this point?

Leave a Reply

Your email address will not be published. Required fields are marked *