Digi S6B User manual

XBee® Wi-Fi RF Module
S6B
User Guide

Revision history—90002180
Revision Date Description
L September
2015
Fixed an error related to instructions for DIO13/DOUT. Added note to the
Pull Direction in the AT command table. Updated to new template.
M September
2015
Added serial data interface and serial data throughput to the RF
specifications.
N April 2016 Updated Device Cloud and XCTU information. Explained the use of ZigBee
frames in the firmware. Added New Zealand certification information.
P May 2017 Added information on the Associate LED. Revised the manual. Changed
Device Cloud to Remote Manager. Updated frame 0x20 Transmit options bit
description.
R June 2017 Modified regulatory and certification information as required by RED (Radio
Equipment Directive).
Trademarks and copyright
Digi, Digi International, and the Digi logo are trademarks or registered trademarks in the United
States and other countries worldwide. All other trademarks mentioned in this document are the
property of their respective owners.
© 2017 Digi International Inc. All rights reserved.
Disclaimers
Information in this document is subject to change without notice and does not represent a
commitment on the part of Digi International. Digi provides this document “as is,” without warranty of
any kind, expressed or implied, including, but not limited to, the implied warranties of fitness or
merchantability for a particular purpose. Digi may make improvements and/or changes in this manual
or in the product(s) and/or the program(s) described in this manual at any time.
Warranty
To view product warranty information, go to the following website:
www.digi.com/howtobuy/terms
Send comments
Documentation feedback: To provide feedback on this document, send your comments to
techcomm@digi.com.
Customer support
Digi Technical Support: Digi offers multiple technical support plans and service packages to help our
customers get the most out of their Digi product. For information on Technical Support plans and
XBee Wi-Fi RF Module User Guide 2

Contents
Applicable firmware and hardware 12
Technical specifications
General specifications 14
RF characteristics 14
RF data rates 14
Receiver sensitivity 15
RF transmit power - typical 16
Error vector magnitude (EVM) maximum output power - typical 17
Electrical specifications 18
Serial communication specifications 19
UART pin assignments 20
SPI pin assignments 20
GPIO specifications 20
Regulatory conformity summary 21
Hardware
Mechanical drawings 23
Through-hole device 23
Surface-mount device 24
Pin signals 24
Design notes 26
Power supply 26
Pin connection recommendations 27
Board layout 27
Antenna performance 27
Design notes for the RF pad version 29
Mounting considerations 32
Operation
Serial interface 34
UART data flow 34
Serial data 34
SPI communications 35
Select the SPI port 36
Serial buffers 37
Serial receive buffer 37
XBee Wi-Fi RF Module User Guide 4

XBee Wi-Fi RF Module User Guide 5
Serial transmit buffer 37
UART flow control 37
CTS flow control 38
RTS flow control 38
The Commissioning Button 38
Connection indicators 39
The Associate LED 40
TCP connection indicator 40
Remote Manager connection indicator 40
Perform a serial firmware update 40
Modes
Serial modes 43
Transparent operating mode 43
API operating mode 43
Command mode 44
Modes of operation 46
Idle mode 46
Transmit mode 46
Receive mode 47
Configuration mode 47
Sleep mode 48
Sleep modes 48
Soft AP mode 48
Enable Soft AP mode 49
Station (STA) connection in Soft AP Provisioning mode 49
Use the webpage to configure a connected device 49
Station (STA) connection in Soft AP Pass Through mode 50
Sleep modes
About sleep modes 52
Use the UARTSleep mode 52
Use the SPI Sleep mode 52
AP Associated Sleep mode 53
Pin Sleep mode 53
Cyclic Sleep mode 53
Deep Sleep (Non-Associated Sleep) mode 53
Pin Sleep mode 54
Cyclic Sleep mode 54
Use sleep modes to sample data 54
802.11 bgn networks
Infrastructure networks 56
Infrastructure Wireless Network 56
Ad Hoc networks 56
Set Ad Hoc creator parameters 56
Set Ad Hoc joiner parameters 57
Network basics 57
802.11 standards 57
Encryption 58

XBee Wi-Fi RF Module User Guide 6
Authentication 58
Open authentication 58
Shared Key 58
Channels 58
IP services
XBee Application Service 61
Local host access 61
Network client access 62
Serial Communication Service 67
Transparent mode 67
UDP 67
TCP 68
API mode 68
UDP mode 68
TCP mode 68
I/O support
Analog and digital I/O lines 70
Through-hole device 70
Surface-mount device 70
Configure I/O functions 71
I/O sampling 72
Queried sampling 73
Periodic I/O sampling 73
Change detection sampling 74
Example 74
RSSI PWM 74
Wi-Fi Protected Setup (WPS)
Enable WPS 77
Use WPS 77
Pre-shared key (PSK) mode security 77
General Purpose Flash Memory
General Purpose Flash Memory 79
Work with flash memory 79
Access General Purpose Flash Memory 79
General Purpose Flash Memory commands 80
PLATFORM_INFO_REQUEST (0x00) 81
PLATFORM_INFO (0x80) 81
ERASE (0x01) 81
ERASE_RESPONSE (0x81) 82
WRITE (0x02) and ERASE_THEN_WRITE (0x03) 83
WRITE _RESPONSE (0x82) and ERASE_THEN_WRITE_RESPONSE (0x83) 83
READ (0x04) 84
READ_RESPONSE (0x84) 84
FIRMWARE_VERIFY (0x05) and FIRMWARE_VERIFY_AND_INSTALL(0x06) 85
FIRMWARE_VERIFY_RESPONSE (0x85) 86

XBee Wi-Fi RF Module User Guide 7
FIRMWARE_VERIFY _AND_INSTALL_RESPONSE (0x86) 86
Update the firmware over-the-air 87
Over-the-air firmware updates 87
Distribute the new application 87
Verify the new application 88
Install the application 88
Configure the XBee Wi-Fi RF Module using Digi Remote Manager
Use XCTU to enable Remote Manager 90
Configure the device 90
Output control 91
IO command bits 91
Send I/O samples to Remote Manager 92
View I/O samples in Remote Manager 92
Update the firmware 93
Send data requests 93
Enable messages to the host 93
About the device request and frame ID 94
Populate and send a Device Request frame (0xB9) 94
Transparent mode data 95
Send data to Remote Manager 95
AT command settings to put serial data in Remote Manager 95
Send files 96
Send binary data points 96
Receive data from Remote Manager 97
API operation
API mode overview 99
API frame specifications 99
API operation (AP parameter = 1) 99
API operation with escaped characters (AP parameter = 2) 99
Escape characters 100
Start delimiter field 100
Length field 100
Frame data 101
Checksum field 101
API examples 101
APIUARTand SPI exchanges 102
AT command frames 102
Transmit and receive RF data 102
Remote AT commands 102
Frame descriptions 104
TX (Transmit) Request: 64-bit - 0x00 104
Remote AT Command Request - 0x07 106
AT Command Frame - 0x08 108
ZigBee Transmit Packet - 0x10 109
ZigBee Explicit Transmit Packet - 0x11 111
ZigBee Remote AT Command - 0x17 114
Transmit (TX) Request: IPv4 - 0x20 116
Send Data Request - 0x28 118
Device Response - 0x2A 120
Rx (Receive) Packet: 64-bit - 0x80 121

XBee Wi-Fi RF Module User Guide 8
Remote Command Response - 0x87 123
AT Command Response frame - 0x88 125
Transmission Status frame - 0x89 126
Modem Status frame - 0x8A 127
ZigBee TX Status frame - 0x8B 128
I/O Data Sample RX Indicator frame - 0x8F 130
ZigBee Receive Packet frame 0x90 132
Description 134
Format 134
Example 134
ZigBee Remote AT Command Response frame - 0x97 136
RX (Receive) Packet: IPv4 - 0xB0 138
Send Data Response frame - 0xB8 140
Device Request frame - 0xB9 141
Device Response Status frame - 0xBA 142
Frame Error - 0xFE 143
AT commands
Addressing commands 145
EQ (Device Cloud FQDN) 145
LA (Lookup IP Address of FQDN) 145
PG (Ping an IP Address) 145
NS (DNS Address) 145
DL (Destination Address Low) 146
MY (IP Network Address) 146
MK (IP Address Mask) 146
GW (Gateway IP Address) 146
SH (Serial Number High) 147
SL (Serial Number Low) 147
NI (Node Identifier) 147
DE (Destination Port) 147
KP (Device Description) 147
KC (Device Cloud Contact) 148
KL (Device Location) 148
C0 (Serial Communication Service Port) 148
DD (Device Type Identifier) 148
NP (Maximum RF Payload Bytes) 148
Network commands 149
DO (Device Options) 149
ID (SSID) 149
AH (Network Type) 150
IP (IP Protocol) 150
MA (IP Addressing Mode) 150
TM (Timeout) 151
TS (TCP Server Socket Timeout) 151
CE (Infrastructure Mode) 151
Security commands 151
EE (Encryption Enable) 151
PK (Security Key) 152
RF interfacing commands 152
PL (Power Level) 152
CH (Channel) 153
Serial interfacing commands 153
AP (API Enable) 153

XBee Wi-Fi RF Module User Guide 9
AO (API Options) 153
BD (Interface Data Rate) 154
NB (Serial parity) 154
SB (Stop Bits) 155
RO (Packetization Timeout) 155
FT (Flow Control Threshold) 155
D7 (DIO7 Configuration) 155
D6 (DIO6 Configuration) 156
I/O settings commands 156
IS (Force Sample) 156
IR (I/O Sample Rate) 157
IC (Digital Change Detection) 157
IF (Sample from Sleep Rate) 157
P0 (DIO10 Configuration) 158
P1 (DIO11 Configuration) 158
P2 (DIO12 Configuration) 158
P3 (DOUT) 159
P4 DIN 159
P5 (DIO15 Configuration) 160
P6 (DIO16 Configuration) 160
P7 (DIO17 Configuration) 160
P8 (DIO18 Configuration) 161
P9 (DIO19 Configuration) 161
D0 (DIO0/AD0/ CB Configuration) 162
D1 (DIO1/AD1 Configuration) 162
D2 (DIO2/AD2 Configuration) 163
D3 (DIO3/AD3 Configuration) 163
D4 (DIO4/AD4 Configuration) 164
D5 (DIO5 Configuration) 164
D8 (DIO8 Configuration) 164
D9(DIO9 Configuration) 165
LT (Associate LED Blink Time) 165
PR (Pull-up Resistor) 166
PD (Pull Direction) 167
DS (Drive Strength) 167
AV (Analog Voltage Reference) 167
M0 (PWM0 Duty Cycle) 168
M1 (PWM1 Duty Cycle) 168
Output Control 168
IO (Set Output Pins) 168
OM (Output Mask) 168
T0 (Set time to hold DIO0) 169
T1 (Set time to hold DIO1) 169
T2 (Set time to hold DIO2) 169
T3 (Set time to hold DIO3) 169
T4 (Set time to hold DIO4) 169
T5 (Set time to hold DIO5) 170
T6 (Set time to hold DIO6) 170
T7 (Set time to hold DIO7) 170
T8 (Set time to hold DIO8) 170
T9 (Set time to hold DIO9) 170
Q0 (Set time to hold DIO10) 171
Q1 (Set time to hold DIO11) 171
Q2 (Set time to hold DIO12) 171
Q3 (Set time to hold DIO13) 171

XBee Wi-Fi RF Module User Guide 10
Q4 (Set time to hold DIO14) 172
Q5 (Set time to hold DIO15) 172
Q6 (Set time to hold DIO16) 172
Q7 (Set time to hold DIO17) 172
Q8 (Set time to hold DIO18) 173
Q9 (Set time to hold DIO19) 173
Diagnostics interfacing 173
VR (Firmware Version) 173
HV (Hardware Version) 173
HS (Hardware Series) 174
AI (Association Indication) 174
DI (Device Cloud Indicator) 175
AS (Active Scan) 175
TP (Temperature) 176
CK (Configuration Code) 176
%V (Supply Voltage) 176
LM (Link Margin) 176
Command mode options 176
CT (Command Mode Timeout) 177
CN (Exit Command mode) 177
GT (Guard Times) 177
CC (Command Mode Character) 177
Sleep commands 178
SM (Sleep Mode) 178
SP (Sleep Period) 178
SO (Sleep Options) 178
WH (Wake Host) 179
ST (Wake Time) 179
SA (Association Timeout) 179
Execution commands 180
AC (Apply Changes) 180
WR (Write) 180
RE (Restore Defaults) 180
FR (Software Reset) 180
NR (Network Reset) 181
CB (Commissioning Pushbutton) 181
Regulatory information
United States (FCC) 183
OEM labeling requirements 183
FCC notices 183
FCC-approved antennas (2.4 GHz) 185
RF exposure 190
Europe (CE) 191
Maximum power and frequency specifications 191
OEM labeling requirements 191
Declarations of conformity 192
Approved antennas 192
Canada (IC) 193
Labeling requirements 193
Transmitters with detachable antennas 193
Detachable antenna 193
Australia (RCM)/New Zealand (R-NZ) 194
Brazil (ANATEL) 194

XBee Wi-Fi RF Module User Guide
The XBee Wi-Fi RF Module provides wireless connectivity to end-point devices in 802.11 bgn networks.
Using the 802.11 feature set, these modules are interoperable with other 802.11 bgn devices,
including devices from other vendors. With XBee Wi-Fi RF Module, you can have an 802.11 bgn network
up and running in a matter of minutes.
The XBee Wi-Fi RF Modules are compatible with other devices that use 802.11 bgn technology. These
include Digi external 802.11x devices like the ConnectPort products and the Digi Connect Wi-SP, as
well as embedded products like the ConnectCore series and Digi Connect series of products.
Applicable firmware and hardware
This manual supports the following firmware:
nx202x
It supports the following hardware:
nS6B
XBee Wi-Fi RF Module User Guide 12

Technical specifications
General specifications 14
RF characteristics 14
RF data rates 14
Receiver sensitivity 15
RF transmit power - typical 16
Error vector magnitude (EVM) maximum output power - typical 17
Electrical specifications 18
Serial communication specifications 19
GPIO specifications 20
Regulatory conformity summary 21
XBee Wi-Fi RF Module User Guide 13

Technical specifications General specifications
XBee Wi-Fi RF Module User Guide 14
General specifications
The following table describes the general specifications for the devices.
Specification XBee Wi-Fi through-hole
XBee Wi-Fi surface-
mount
Dimensions 2.438 cm x 2.761 cm (0.960 in x 1.087 in) 2.200 x 3.378 cm (0.866 x
1.330 in)
Operatingtemperature -30 to 85 °C
Antenna options PCB antenna, U.FL connector, RPSMA
connector, or integrated wire
PCB antenna, U.FL
connector, or RF pad
RF characteristics
The following table provides the RF characteristics for the device.
Specification XBee Wi-Fi through-hole XBee Wi-Fi surface-mount
Frequency Industrial, scientific and medical (ISM) 2.4 - 2.5 GHz
Number of channels 13
Adjustable power Yes
Wi-Fi standards 802.11 b, g, and n
Transmit power output
(average)
Up to +16 dBm
+13 dBm for Europe/Australia and New Zealand/Brazil; see RF
transmit power - typical
FCC/IC test transmit power
range (peak)
802.11b 2.73 to 26.81
dBm
802.11b 2.08 to 26.13
dBm
802.11g 7.87 to 28.52
dBm
802.11g 7.15 to 27.72
dBm
802.11n (800
ns GI)
8.03 to 28.75
dBm
802.11n (800
ns GI)
7.02 to 27.89
dBm
802.11n (400
ns GI)
8.04 to 28.64
dBm
802.11n (400
ns GI)
7.33 to 28.20
dBm
RF data rates 1 Mb/s to 72.22 Mb/s; see RF data rates
Serial data interface UART up to 1 Mb/s, SPI up to 6 MHz
Serial data throughput UART up to 320 Kb/s, SPI up to 1 Mb/s
Receiver sensitivity
(25 °C, <10% PER)
-93 to -71 dBm; see Receiver sensitivity
RF data rates
The following table provides the RF data rates for the device.

Technical specifications Receiver sensitivity
XBee Wi-Fi RF Module User Guide 15
Standard Data rates (Mb/s)
802.11b 1, 2, 5.5, 11
802.11g 6, 9, 12, 18, 24, 36, 48, 54
Standard MCSindex
Data rates (Mb/s)
800 ns guard interval 400 ns guard interval
802.11n 0 6.5 7.22
1 13 14.44
2 19.5 21.67
3 26 28.89
4 39 43.33
5 52 57.78
6 58.5 65
7 65 72.22
Receiver sensitivity
Receiver sensitivity (25 °C, < 10% PER)
Standard Data rate Sensitivity (dBm)
802.11b 1 Mb/s -93
2 Mb/s -91
5.5 Mb/s -90
11 Mb/s -87
802.11g 6 Mb/s -91
9 Mb/s -89
12 Mb/s -88
18 Mb/s -86
24 Mb/s -83
36 Mb/s -80
48 Mb/s -76
54 Mb/s -74

Technical specifications RF transmit power - typical
XBee Wi-Fi RF Module User Guide 16
Receiver sensitivity (25 °C, < 10% PER)
Standard Data rate Sensitivity (dBm)
802.11n MCS 0 6.5/7.22 Mb/s -91
MCS 1 13/14.44 Mb/s -88
MCS 2 19.5/21.67 Mb/s -85
MCS 3 26/28.89 Mb/s -82
MCS 4 39/43.33 Mb/s -78
MCS 5 52/57.78 Mb/s -74
MCS 6 58.5/65 Mb/s -73
MCS 7 65/72.22 Mb/s -71
RF transmit power - typical
The following table provides the average RF transmit power for the device.
Standard Data rate
Power (dBm)
North
America/Japan
Europe/Australia and New
Zealand/Brazil
802.11b 1 Mb/s 16 13
2 Mb/s
5.5 Mb/s
11 Mb/s
802.11g 6 Mb/s 16 13
9 Mb/s
12 Mb/s
18 Mb/s
24 Mb/s
36 Mb/s
48 Mb/s 14 13
54 Mb/s

Technical specifications Error vector magnitude (EVM) maximum output power - typical
XBee Wi-Fi RF Module User Guide 17
Standard Data rate
Power (dBm)
North
America/Japan
Europe/Australia and New
Zealand/Brazil
802.11n MCS 0 6.5/7.22 Mb/s 15 13
MCS 1 13/14.44 Mb/s
MCS 2 19.5/21.67
Mb/s
MCS 3 26/28.89 Mb/s
MCS 4 39/43.33 Mb/s
MCS 5 52/57.78 Mb/s
MCS 6 58.5/65 Mb/s 14 13
MCS 7 65/72.22 Mb/s 8.5 8.5
Error vector magnitude (EVM) maximum output power - typical
The following table shows the EVM at 25 °C, maximum output power.
Standard Data rate EVM (dB)
802.11b 1 Mb/s -40
2 Mb/s -40
5.5 Mb/s -38
11 Mb/s -36
802.11g 6 Mb/s -18
9 Mb/s -20
12 Mb/s -21
18 Mb/s -22
24 Mb/s -22
36 Mb/s -23
48 Mb/s -25
54 Mb/s -26

Technical specifications Electrical specifications
XBee Wi-Fi RF Module User Guide 18
Standard Data rate EVM (dB)
802.11n MCS 0 6.5/7.22 Mb/s -19
MCS 1 13/14.44 Mb/s -21
MCS 2 19.5/21.67 Mb/s -22
MCS 3 26/28.89 Mb/s -24
MCS 4 39/43.33 Mb/s -25
MCS 5 52/57.78 Mb/s -25
MCS 6 58.5/65 Mb/s -26
MCS 7 65/72.22 Mb/s -28
Electrical specifications
The following table provides the electrical specifications for the XBee Wi-Fi RF Module.
Specification XBee Wi-Fi
Supply voltage 3.14 - 3.46 VDC

Technical specifications Serial communication specifications
XBee Wi-Fi RF Module User Guide 19
Specification XBee Wi-Fi
Operating current (transmit,
maximum output power)
802.11b 1 Mb/s 309mA
2 Mb/s
5.5 Mb/s
11 Mb/s
802.11g 6 Mb/s 271 mA
9 Mb/s
12 Mb/s
18 Mb/s
24 Mb/s
36 Mb/s
48 Mb/s 225 mA
54 Mb/s
802.11n MCS 0 6.5/7.22 Mb/s 260 mA
MCS 1 13/14.44 Mb/s
MCS219.5/21.67Mb/s
MCS 3 26/28.89 Mb/s
MCS 4 39/43.33 Mb/s
MCS 5 52/57.78 Mb/s
MCS658.5/65Mb/s 217 mA
MCS765/72.22Mb/s 184 mA
Operating current (receive) 100 mA
Deep sleep current 6 µA @ 25 °C
Associated sleep current 2 mA asleep, 100 mA awake. For more information, see AP
Associated Sleep mode.
Serial communication specifications
The XBee Wi-Fi RF Module supports both Universal Asynchronous Receiver / Transmitter (UART) and
Serial Peripheral Interface (SPI)serial connections.

Technical specifications GPIO specifications
XBee Wi-Fi RF Module User Guide 20
UART pin assignments
Specifications Device pin number
UART pins XBee (surface-mount) XBee (through-hole)
DIO13/DOUT 3 2
DIO14/DIN 4 3
DIO7/CTS 25 12
DIO6/RTS 29 16
For more information on UART operation, see UART data flow.
SPI pin assignments
Specifications Device pin number
SPI pins XBee (surface-mount) XBee (through-hole)
DIO2/SPI_SCLK 14 18
DIO3/SPI_SSEL 15 17
DIO4/SPI_MOSI 16 11
DIO12/SPI_MISO 17 4
DIO1/SPI_ATTN 12 19
For more information on SPI operation, see SPI communications.
GPIO specifications
The XBee Wi-Fi RF Modules have 14 (through-hole version) and 20 (surface-mount version) General
Purpose Input Output (GPIO)ports available. The exact list depends on the module configuration, as
some GPIO pads are used for purposes such as serial communication.
See I/O sampling for more information on configuring and using GPIO ports. The following table
provides the electrical specifications for the GPIO pads.
Parameter Condition Min Max Units
Input low voltage 0.3VDD V
Input high voltage 0.7VDD V
Output high voltage relative to VDD Sourcing 2 mA, VDD = 3.3 V 85 %
Output low voltage relative to VDD Sinking 2 mA, VDD = 3.3 V 15 %
Table of contents
Other Digi Wireless Router manuals

Digi
Digi TransPort WR21 User manual

Digi
Digi TransPort WR44 User manual

Digi
Digi TransPort DR64 User manual

Digi
Digi TransPort WR11 User manual

Digi
Digi IX14 User manual

Digi
Digi TransPort WR21 User manual

Digi
Digi PortServer TS1 W MEI User manual

Digi
Digi TransPort WR44 User manual

Digi
Digi DR6410W User manual

Digi
Digi IX20 User manual

Digi
Digi ConnectPort X2e Wi-Fi User manual

Digi
Digi TransPort WR44 User manual

Digi
Digi WAN 3G User manual

Digi
Digi TransPort LR54 Application guide

Digi
Digi TransPort WR44v2 User manual

Digi
Digi Connect WAN Series User manual

Digi
Digi Transport DR64-H User manual

Digi
Digi MR4110 User manual

Digi
Digi Digi TransPort WR User manual

Digi
Digi TransPort WR44RR User manual