Xbee S6B Wifi Arduino sensor via browser.

I’m a complete newbie…

I’m wondering how to use an Xbee S6B Wifi with an arduino, essentially I want to send the A0 input of the arduino via the Xbee and local wifi to a web browser on the same network.

DHT-11 Sensor > Arduino > Xbee S6B > home wi-fi network > browser on desktop.

Xbee to Xbee communication seems to be a plug and play operation with the second Xbee receiving the data for it to be read via XCTU. All the arduino sketch is doing is printing to a serial line “Serial.print(DHT.humidity);”.

Apparently the S6B should have a WebUI but I’ve been unable to access that including in SoftAP mode when connected with a laptop.

Have you assigned any IP addresses to the XBee WIFI module?

I’ve tried both static and dynamic, with the correct subnet mask before that is suggested as an issue. (Bog standard class C 192.168.1.X 255.255.255.0 default gateway 192.168.1.254)

What firmware version are you working with?

2026 which XCTU informs me is the newest.

Try the following:

  1.    Open X-CTU
    
  2.   Go to the Terminal tab
    
  3.   Input “+++” to enter command mode.
    
  4.   Enter in AT commands for each radio, starting with the IBSS Creator (the Ad-Hoc master node)
    
  5.   Once you have entered the AT values, you will need to write those values to the non-volatile memory.  This is done with an ATWR command.
    
  6.   To exit command mode issue an ATCN.
    

Radio 1 - Ad-Hoc Creator

Radio 2 - Ad-hoc Joiner

ATIDUNICO

ATIDUNICO

ATAH1

ATAH0

ATMA1

ATMA1

ATDL192.168.1.11

ATDL192.168.1.22

ATMY192.168.1.22

ATMY192.168.1.11

ATMK255.255.0.0

ATMK255.255.0.0

ATCH1

ATCH1

ATBR1

ATBR1

These settings will create a network on channel 1 with an SSID of UNICO. The over-the-air data rate will be 1Mbps.

The Creator will have a static IP address of 192.168.1.22 and will talk to the radio with the address of 192.168.1.11

The Joiner will have a static IP address of 192.168.1.11 and will talk to the radio with the address of 192.168.1.22

By default the radio will use the UDP protocol. (This can be changed with the ATIP parameter)

Please refer to the chart below for reference to AT commands used to create an ad-hoc network.

Command

Description

Example

ATID

Sets the SSID for the network

ATIDDIGI

ATAH

Sets the network type (infrastructure, IBSS Creator, IBSS Joiner)

ATAH1

ATIP

Sets network protocol (UDP or IP)

ATIP0

ATMA

Sets IP addressing mode (Static or DHCP client)

ATMA1

ATDL

Sets destination IP address

ATDL192.168.1.11

ATMY

Sets module IP address

ATMY192.168.1.22

ATMK

Sets IP address mask

ATMK255.255.0.0

ATCH

Sets channel of the network

ATCH1

ATBR

Sets Bit Rate of IBSS creator and thus, the network

ATBR1