Xytronix Research & Design CONTROL BY WEB XW-111 User manual


XW-111™ Wi-Fi Digital Sensor Users Manual
XW-111 User Manual Revisions
Revision Description
1.0 Initial release
1.1 Added Canadian IC declaration
2.0 Split t e combined XW-110 and XW-111 user manual into two separate manuals.
Added support for Remote Services, Modbus and ot er features available beginning wit firmware
revision 1.03
Added Modbus documentation.
C anged to 5-year warranty.
Page 2 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Introduction
Section 1: Introduction
T e XW-111 is an easy-to-use wireless Wi-Fi digital input monitoring device. T e XW-111 monitors and
reports t e status of switc -closure sensors and alarms. It is ideal for applications w ere equipment and
events must be monitored and Et ernet wiring is not accessible or practical to install.
T e XW-111 is powered by an external wall transformer (5VDC), or by two internal AA batteries (installed
inside t e enclosure). T e XW-111 will use t e wall transformer and automatically switc to t e batteries
in t e event of a power failure. Only use batteries to provide backup power, or for modes w ere t e
HTTP server, ModBus server, and Remote Services are not being used. If t e internal web server,
ModBus server, or Remote Services is enabled, t e XW-111 will need to be powered by an external wall
transformer. Some setting configurations consume more power t an ot ers, leading to some scenarios
w ere battery operation is not practical. For example, transmitting t e status every five seconds could
result in depleting t e batteries very quickly. Having more features enabled and/or an increased reporting
rate leads to lower battery life.
A t ree-position terminal strip provides connections for up to two switc -closure sensors for t e XW-111.
No ot er cables, interfaces, or PC utility programs are needed.
Two modes of Operation:
“Stand-Alone” Mode: T e XW-111 is a self-contained device t at does not require additional servers or
ControlByWeb devices. In t is mode t e XW-111 products provides real-time input status t roug a
standard web browser or t roug t e CBW Mobile app. In addition, stand-alone mode offers t e ability to
monitor input status and send out email alerts (w ic can be converted to text message alerts) w enever
an alarm condition occurs.
"Slave" Mode: T e XW-111 reports its inputs' status to ot er ControlByWeb devices. In t is mode, t e
XW-111 is not directly accessible to t e user. Instead, input status is transmitted to a server or to anot er
ControlByWeb device, suc as t e X-600M controller w ic acts as a "master.” T e master device t en
uses t e information provided by t e XW-111 as it would from any ot er sensor.
rovisioning the module:
Access Point Mode: Press t e “Access Point” button anytime to enable access point mode. Wit a PC or
smart p one you t en connect to and access t e internal web server no matter w at mode t e unit is
currently set to. Using t e web server, you configure t e measurement interval, access port, name, and
ot er setup parameters.
WPS: Alternatively, add t e XW-111 to an existing network by pressing t e “WPS” (Wi-Fi Protected
Setup) button on bot t e XW-111 and on your access point (i.e., router).
Network Discovery: Using t e Android or iOS app, t e XW-111 can be used to configure t e WiFi
network as well as any cloud or network settings.
ControlByWeb Cloud:
T e XW-111 can be configured to automatically connect to ControlByWeb.cloud after being connected to
a wireless network wit internet access. T is feature allows internet access to an XW-111 w ic is
installed be ind a network router, wit out t e need to setup port forwarding in t e router. T is also allows
easy installation using DHCP wit out t e need to assign a specific IP address. Since t e connection
from t e XW-111 is outgoing, rat er t an incoming, t e local router on t e network w ere t e XW-111
resides doesn't need to be configured to forward sockets. T is simplifies t e installation since t e router
configuration is not modified.
Xytronix Research & Design, Inc. Page 3

Introduction XW-111™ Wi-Fi Digital Sensor Users Manual
1.1.1 Features
➢Wireless Wi-Fi 802.11 b/g/n
➢Two digital inputs
➢Built-in web server for configuration and remote monitoring
➢Powered from two “AA” batteries or external DC power adapter
➢Small data packets provide long battery life
➢Input status can control relays on ot er ControlByWeb devices
➢Send email alarms and weekly status alerts (up to 3 addresses)
➢Send encrypted emails.
➢Includes auxiliary protocols including XML, Modbus/TCP and Remote Services
➢Simple and easy to use
➢5-year warranty
1.1.2 art Numbers and Accessories
Device Description art Number
XW-111 Wi-Fi digital input monitor wit built-in web server XW-111B
ower Supply Wall Transformer, 120VAC in, 5V, 1A out PS5VW1.0-2.5mm
1.1.3 Wireless Communication Notes
Due to t e nature of wireless communications, transmission and reception of data cannot be guaranteed.
Data may be delayed, ave errors, or be lost. Alt oug delays or losses of data are rare wit a well
constructed network, data can be lost due to interference, noise, reflections, or ot er environmental
conditions. T e XW-111 s ould not be used in situations w ere failure to transmit or receive data could
result in damage to property, equipment, direct, indirect, consequential, or incidental damage, including
damage for loss of business profit, business interruption, loss of data, life, and t e like.
Page 4 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Installation and Setup
Section 2: Installation and Setup
2.1 XW-111 Digital Input Connections
T e XW-111 can sense t e state of up to two switc -closure sensors. Sensors wit switc -closure
outputs include pus buttons, magnetic door alarm switc es, micro-switc es, or any device w ic as a
relay, switc closure or open collector output. Bot sensor inputs s are t e same GND connection. T e
XW-111 can be configured for t e alarm to be active w en t e switc is eit er open or closed. If possible,
use switc es w ic are normally open (NO). W en t e switc contact is open no current flows t ru t e
switc and t e longest battery life is ac ieved. W en t e switc is closed 17uA flows t ru t e switc .
T e inputs use 3.3Volt logic and
work wit simple switc es and
relays. Do not connect t e digital
inputs to a power source. T e
inputs will work wit cable lengt s
up to 20-feet and s ould not be
routed near motors or AC wiring.
T e connections for two switc es
are s own to t e rig t.
T e enclosure can be mounted to a wall or panel wit screws (not included). T e two screw oles are
located underneat t e batteries.
2.2 ower / Batteries
T e XW-111 is powered from eit er a 5-volt DC wall transformer or two internal 1.5V “AA” batteries. If t e
wall adapter is connected, no power is drawn from t e batteries. If t e external power fails t e module
automatically switc es to t e internal batteries. No jumpers or switc es are needed. T e wall adapter
s ould be used for certain modes wit ig current demands suc as: “Stand-Alone mode” wit HTTP
server, ModBus or Remote Services enabled, “Slave mode” wit ig reporting rates, or w en “access
point” is active.
Install t e batteries as s own. Observe t e “+” and “-”
markings molded in t e enclosure underneat t e
batteries. Bot batteries s ould be replaced at t e same
time. Do not install t e XW-111 inside a freezer or w ere
low temperature conditions would severely diminis t e
battery capacity.
Xytronix Research & Design, Inc. Page 5
Battery Installation

Installation and Setup XW-111™ Wi-Fi Digital Sensor Users Manual
2.3 rovisioning
After making t e sensor connections and providing power, you must provision t e XW-111 for use on
your wireless network. T e goal is to configure t e XW-111 suc t at it can recognize and attac to your
Wi-Fi access point. T ere are two met ods for doing t is:
1. Access oint Mode
By default, t e XW-111 comes up as a wireless access point w en powered for t e first time. Pressing
t e XW-111's "Access Point" button at any time also activates t e access point mode. It isn't really an
access point because it will not provide internet connectivity to your computer or smart p one, but it will
appear as an access point, meaning t at your computer or smart p one will detect it as an access point
and display it as suc . W en acting as an access point, t e XW-111 broadcasts an SSID of “XW111-
XXXXXX” w ere XXXXXX are t e last six digits of its MAC address.
Wit your wireless device (laptop computer or smart p one) scan for, and attac to t e XW111 wireless
network. Next, access t e web server in t e XW-111 using a web browser. To access t e setup pages,
enter t e following URL in t e address bar of your web browser:
http://192.168.1.2/setup.html
After t e page is requested, a password prompt will appear. Enter t e username and password. T e
username is admin and t e password is webrelay (password is case sensitive). T e next c apter
explains eac of t e setup tabs and screens. Use t e WiFi Networks tab for making t e proper settings
to allow t e XW-111 to connect to your access point.
Notes About Access Point Mode:
•Operates at full power and will consume large amounts of energy and drain batteries quickly. It is
recommended t at you use a wall-transformer to power t e unit w en operating in access point
mode or to configure t e XW-111 quickly.
•As an “access point” t e XW-111 functions independently of ot er wireless networks. It
broadcasts beacons and services Wi-Fi packet requests. In t is mode, your computer or smart-
p one is "connected" directly wit t e XW-111 on a private network and is NOT using anot er
Wi-Fi network. Typically you would use t is for configuration and not for normal operation.
•T e XW-111 as no ardware “restore defaults” button, to prevent t e installer from being locked
out, t e default username (admin) and password (webrelay) always work in t e access point
mode, even if t e password is c anged. If t e password as c anged via t e Password tab, bot
t e new password and t e webrelay password will work.
•Only one client (computer or smart-p one) can be connected to XW-111 at a time.
•SSID and password cannot be customized (once again t is mode is intended for configuration
only).
•Access point is unsecured and open.
Page 6 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Installation and Setup
2. W S (Wi-Fi rotected Setup)
T e WPS met od, provides a simple met od for attac ing t e XW-111 to a wireless network wit out
needing to use any setup pages. Alt oug using t is met od to connect t e XW-111 to t e network is
simple, you will not be able to access t e XW-111 web server unless you know t e IP address t at was
assigned by t e DHCP sever (router) or unless mDNS services are available on your device. For t is
reason, it is recommended t at you use t is met od of configuration only w en t e XW-111 units ave
been pre-configured to operate in a non-web-server mode or w en you ave full access to t e DHCP
server so you can obtain t e IP address t at was assigned.
To begin, press t e WPS button on your wireless router or access-point. You will generally ave about
two minutes to connect wireless devices to t e network wit WPS. Now remove t e cover of t e XW-111
and press t e “WPS” pus button. After a few seconds, t e XW-111 s ould register itself wit t e router
or access-point. If WPS fails, t e XW-111 will automatically enter t e access point mode.
T e XW-111 will use DHCP to obtain an IP address after a successful WPS association. Additionally, t e
connection information is also broadcast using mDNS. If you need to access t e XW-111 using its
internal web server you will need to obtain t e IP address t at was assigned to t e XW-111 t roug your
DHCP server or router. Alternatively, if using an mDNS capable device, it may be accessed by entering
t e appropriate URL into t e address bar of your web browser:
http://xw-111.local/setup.html
Xytronix Research & Design, Inc. Page 7

Installation and Setup XW-111™ Wi-Fi Digital Sensor Users Manual
2.4 Application Examples
T e XW-111 can be configured for many different applications. Applications w ic require long battery
life require careful planning and setup. Several examples are described below:
Storage Shed Door Example
You want to receive an email w enever someone opens t e door to your storage s ed. T e storage s ed
is wit in range of a Wi-Fi access point. No AC power is available.
Install a magnetic door switc sensor and connect it to an XW-111. In t is application, t e XW-111 is
workable wit batteries because transmissions are infrequent. For best battery life, t e magnetic door
switc s ould be wired suc t at w en t e door is closed, t e switc is open.
First, t e XW-111 must be configured to access your Wi-Fi network. If no network profiles ave been
configured, t e XW-111 will automatically enter t e access point mode and you can access t e XW-111
directly wit a computer or smart device wit a wireless connection. If t e XW-111 as been previously
configured for ot er uses, press t e Access Point button. Scan for, and attac to t e XW110-XXXXXX
wireless network. Access t e setup pages wit t e following URL: ttp://192.168.1.2/setup. tml
For t is application, configure t e XW-111 in stand-alone mode wit t e internal web server disabled.
Configure t e XW-111 to connect to your wireless network. Navigate to t e WiFi Networks tab and fill in
t e appropriate settings for your Wi-Fi network. Obtain t e IP address from your network administrator.
To increase battery life, disable t e HTTP web server and avoid using DHCP. Press t e Submit button at
t e bottom of t e page.
Navigate to t e Inputs tab. On t e Email Alert setting, select Send email when Input On You may also
want to set t e Email Deadband option to 5 seconds. T is will prevent multiple emails from being sent if
t e switc opens and closes multiple times as t e door is opened. You will receive an email t e moment
t e door is opened, but no more until at least 5 seconds as elapsed and t e switc were to close and
open again. C ange t e Module Description text to a descriptive name suc as “Storage Shed ” T is text
may be up to 35 c aracters long and appears on t e Control Page and in email messages w en email
alerts are enabled. C ange t e On Status Text to “Door is Open.” Click t e Submit button at t e bottom
of t e page.
Navigate to t e Email tab and enter t e SMTP server settings as well as t e username and password (if
required). You may need to searc online for your email provider's exact settings to use. To provide
ongoing assurance t at t e XW-111 is working, enable t e Weekly Status Email option.
Once all t e appropriate settings ave been applied, click on t e Reboot button. T e XW-111 will t en
reboot and begin low-power operation. T e XW-111 will no longer broadcast an SSID and t e web page
will no longer be accessible. If t e door is opened, t e XW-111 will awaken, connect to your Wi-Fi access
point and send an email. Once per week, t e XW-111 will send an email wit input state and battery
information.
Door Bell Example
You want to activate a buzzer to indicate someone as pressed a call button at your ware ouse door.
T e door is wit in range of a Wi-Fi access point. No AC power is available
T e XW-111 is workable wit batteries because transmissions are infrequent. Install a WebRelay™
anyw ere in your facility and connect it to your Et ernet network. Connect a buzzer to t e relay contact.
T e WebRelay must be accessible from t e Wi-Fi network and be assigned a fixed IP address. Your Wi-
Fi network must ave adequate coverage in t e ware ouse. Connect t e call button to t e XW-111 and
mount it indoors near t e door. For best battery life use a button wit normally open contacts (NO).
For t is application, configure t e XW-111 as a stand-alone device wit t e internal web server disabled.
Configure t e XW-111 to connect to your Wi-Fi network as explained in t e previous example.
Page 8 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Installation and Setup
Navigate to t e Inputs tab. Set t e Remote Relay Options to Send pulse command when input on. Wit
t is setting t e relay will pulse for t ree seconds w en t e button is pressed.
Note: T e “Remote command equals input” is not workable in t is application because t e user
may ave released t e call button by t e time t e XW-111 as awakened and connected to t e
Wi-Fi access point.
Upon selecting an action, t e remote relay options for specifying t e IP address, port, relay number and
ot er options will s ow. Enter t e IP settings for t e WebRelay in and press t e Submit button at t e
bottom of t e page.
Once all t e appropriate settings ave been applied, click on t e Reboot button, t e XW-111 will t en
reboot and begin low power operation. T e XW-111 will no longer broadcast an SSID and t e web page
will no longer be accessible. W en t e button is pressed, t e XW-111 will awaken and send t e
command to pulse (activate) t e remote relay.
Xytronix Research & Design, Inc. Page 9

Web Server XW-111™ Wi-Fi Digital Sensor Users Manual
Section 3: Web Server
T e internal web server presents two classes of web pages; Setup pages and Control pages. Setup
pages are used by an installer to provision and configure t e XW-111. T e Control page displays
measurement and status information for t e user.
To access t e setup pages, enter t e following URL in t e address bar of your web browser:
http://192.168.1.2/setup.html
To access t e control page, enter t e following URL in t e address bar of your web browser:
http://192.168.1.2
T e internal web server is enabled by default in stand-alone mode and disabled in slave mode. If you
wis to access t e web server w en it is disabled, press and old t e WPS button for 10 seconds. T is
will temporarily enable t e web-server for five minutes or until t e unit is rebooted.
Note t at if you are accessing t e unit as an access point, t e above IP address will work even if you
ave c anged t e IP address or port in t e setup pages. If you are accessing t e unit t roug t e
network after it as been configured (and t e web server remains enabled) you will need to enter t e IP
address t at was assigned to t e device.
If t e XW-111 as been added to a network using WPS, it will use DHCP and you will need to enter t e
IP address assigned to it. T is can be found in t e DHCP server, or by using mDNS. T e mDNS name is
http://xw-111.local/
3.1 Main Tab
T is is t e initial page t at is displayed
w en setup. tml is entered in t e
address bar of t e browser. It displays
model and serial number information,
and as navigation tabs w ic allow
access to t e configuration and setup
settings.
Page 1 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Web Server
Mode
T e XW-111 operates in two fundamental modes: “Stand-alone” and “Slave ” Depending on w ic mode
you select, t e menu tabs will c ange to reflect t e mode's settings. Select “Stand-Alone” if using t e
XW-111 to simply monitor t e inputs and provide input status information to users t roug its built-in web
pages, send email alerts, or control a remote relay. Select “Slave” if t e XW-111 is used to send data to a
master device suc as an X-600M™ controller.
T e Mode setting will not take effect until t e XW-111 is rebooted. To do t is click t e Reboot button after
making a c ange to t e Mode.
► Stand-Alone:
In t is mode t e XW-111 is self-contained and is used wit out ot er master devices. It can be configured
to operate in low-power mode and periodically c eck t e inputs and send alarm messages directly to
users via email or control remote relays. In stand alone mode it can also be used as a stand-alone web
server t at users can access at any time to view current input status.
•T e web server can be enabled w ic allows users to access t is device directly using a web
browser or t e CBW Mobile app. Users can view real-time input status. Note: Enabling the web
server requires considerably more power and battery operation is not practical
•T e Email tab is visible and t e Remote Master tab is suppressed.
► Slave:
In t is mode t e XW-111 sends t e input status to a master device suc as an X-600M controller. In t is
mode t e XW-111 sleeps most of t e time to conserve power. It periodically awakens, c ecks t e inputs
and transmits (pus es) t e data to a remote server. T e "master" ControlByWeb device uses t e XW-
111 just like ot er wired sensors t at may be attac ed.
•In t is low power mode t e XW-111 sleeps most of t e time. It periodically awakens, c ecks t e
inputs, connects to a Wi-Fi network and transmits data to t e master device.
•Use longer interval for long battery life.
•No emails are supported
•T e internal web server is not accessible
•T e Email tab is suppressed, and t e Remote Master tab is s own
Xytronix Research & Design, Inc. Page 11

Web Server XW-111™ Wi-Fi Digital Sensor Users Manual
art Number
T is is t e full model number of t e XW-111
Firmware Revision
T is is t e current product revision of t e internal software
Serial Number
T is is t e serial number of t e XW-111. T e serial number is also t e MAC address of t e unit.
ower Supply
T is field s ows if t e XW-111 is currently being powered by batteries or t e DC wall transformer. T e
battery voltage is periodically measured and an estimate is made of t e remaining battery life. If t e
module is powered by t e DC wall transformer, t e voltage is measured wit no load on t e battery. T e
calculations are made for alkaline “AA” batteries wit a usable capacity of 2000mAH. W en using ot er
types of batteries or in cold conditions, t e displayed estimate may be in error. Depending on t e activity,
t e battery life estimate may fluctuate (per aps even increase) as t e load current c anges. T e battery
voltage may recover (increase) w en t e XW-111 enters low-power sleep mode after a period of ig
current operation.
Signal Strength
T is indicates t e current receive Wi-Fi signal strengt . T e more negative t e number, t e less signal is
being received. -30dBm is a strong signal, and -90dBm is a very weak signal.
Reboot
After s owing a confirmation message, t is button will send a command to reboot t e device.
Restore Defaults
After s owing a confirmation message, t is button will erase all user settings and return t e module to its
factory defaults.
Page 12 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Web Server
3.2 WiFi Networks Tab
As a Wi-Fi client device, t e XW-111 attempts to automatically connect to configured Wi-Fi access
points. T e settings on t is page tab are used to configure t is connection.
WiFi SETTINGS
SSID
T e SSID (Service Set Identifier) is t e name of your Wi-Fi network. Click t e Refresh button to make a
fres scan of available networks. Note: The Refresh button is inactive if the XW-111 itself is an access
point
Xytronix Research & Design, Inc. Page 13

Web Server XW-111™ Wi-Fi Digital Sensor Users Manual
Security
Type of aut entication used by t e access point for connections.
Security Key
Enter t e security key or password for t e Wi-Fi network t at t e XW-111 s ould connect to. (Hidden
w en not applicable)
I SETTINGS
Use DHC
T is option allows DHCP to be enabled or disabled. If t is option is set to Yes, t e XW-111 will wait for an
IP address from a DHCP server eac time it is powered. T e default setting is No (t is is recommended
for most installations). If DHCP is set to Yes, t e Network page must be submitted and t e XW-111 must
be rebooted before an IP address will be assigned. Once t e XW-111 is assigned an IP address by t e
DHCP, t e new IP address can be found t roug t e clients list kept by t e DHCP server. For most
instances, t is is found on t e local gateway or router. Alternatively, t e device will broadcast its
information via mDNS. By not using DHCP, battery life is extended as t e device does not expend energy
for transmitting requests and receiving responses every time it connects to t e Wi-Fi network.
Brief Notes About DHCP: All devices on an IP network require an IP address. T is is a unique address
t at identifies eac device on t e network. DHCP (Dynamic Host Control Protocol) is a mec anism t at
automatically assigns an IP address to a computer (or ot er devices) w en it is connected to a network.
T is eliminates t e need to manually enter t e IP address. W en a computer is connected to t e
network, anot er device on t e network called a DHCP server detects t e presence of t e computer and
dynamically assigns t e IP address to t at computer. On many small networks, t e DHCP server is built
into t e router.
DHCP works well for "client" devices suc as computers, but is not ideal for servers. T is is because
servers usually don't initiate communications wit ot er devices, but rat er t ey wait for a request from
"clients." To make t is request, t e client must know t e IP address of t e server. If a server gets its IP
address dynamically, t e IP address may not always be t e same so client devices may not be able to
find t e server. For t is reason, servers usually use an IP address t at is fixed and does not c ange. T e
XW-111 is a server and manual IP address assignment is usually recommended.
I Address
Enter t e IP address for t e XW-111 in t is field. T e IP address is specific to t e network w ere t e XW-
111 will be installed and is obtained from t e network administrator. T e default setting for t is field is
192.168.1.2.
Subnet Mask
T e subnet mask defines t e size of t e local network. T is can be obtained from t e network
administrator. For additional information about sub-netting and IP networking, many tutorials are
available on t e Internet. T e default setting for t is field is 255.255.255.0.
Gateway
T is specifies t e IP address of t e gateway router. T is can be obtained from t e network administrator.
T e default setting for t is field is 192.168.1.1.
DNS Server
T e IP address of t e DNS server is specified ere. W en DNS services are required, t is is t e address
t at will be used. T e default setting for t is field is 192.168.1.1. An alternate DNS server is not
supported.
Page 14 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Web Server
HTT SERVER
HTT Server Enabled
T is option can turn t e internal HTTP web server on or off w en in stand-alone mode. In slave mode t e
HTTP web server is automatically disabled. W en t e web server is on, t e XW-111 can be accessed
using a web browser or t e CBW Mobile app and you can view t e current input status. W en t e web
server is off, t e input status is obtained w en t e XW-111 transmits (pus es) t e data. For example, you
can turn t e web server off but get input status information t roug email alerts. Turning t e web server
off will allow t e device to make use of more power saving features. Wit t e web server turned off, t e
device will be allowed to disconnect from t e Wi-Fi network or at t e very least service beacons
selectively to save power.
HTT ort
T e TCP port used for HTTP communications wit t e XW-111 can be customized ere. T e default
setting for t is field is 80, w ic is t e standard HTTP port. It is recommended t at t e port be left
unc anged unless t e user as an understanding of TCP/IP and ports.
MODBUS SERVER
Modbus Server Enabled
XW-111 can support Modbus/TCP. Modbus is a messaging structure protocol used in industrial
manufacturing control and automation. It is an open protocol and offers interoperability wit software and
devices from ot er manufacturers. T is is enabled by selecting Yes in t is field. T e default setting for
t is field is No. (See Section 5 1: Modbus Operation for more information on using XW-111 on a Modbus
network.)
Note: Modbus communications are disabled whenever the Control Password is enabled as Modbus does
not have support for passwords
Modbus ort
T is specifies t e port used for Modbus/TCP communications wit XW-111. By default t is is set to port
502 w ic is t e standard Modbus port. It can be set wit in t e range of 0 to 65535.
Endianness
32-bit data is treated as two individual 16-bit words using IEEE 754 floating point format. Floating point
format is used for reading t e battery voltage.
If t e Big radio button is set, t e XW-111 will use big-endian arc itecture and t e most significant 16-bit
word (big end) is sent first. If t e Little radio button is selected, t en t e XW-111 will use little-endian
arc itecture, and t e least significant word (little end) is sent first. T e default setting is little-endian.
For example, in little-endian format, a 32-bit floating point number represented by '1234 ABCD' is sent as
'ABCD 1234'.
Xytronix Research & Design, Inc. Page 15

Web Server XW-111™ Wi-Fi Digital Sensor Users Manual
REMOTE SERVICES
Remote Services Enabled
T is option enables or disables remote services. If Yes is selected, remote services will be enabled as
soon as t e Submit button is pressed and t e XW-111 will immediately attempt to make a connection
wit a custom remote server (power cycle not required). Once a connection is establis ed, t e
connection will remain until it is disconnected by t e remote server (see Remote Services Notes below).
Proper connection wit t e remote server can be verified by c ecking t e remote server. T e default
setting for t is field is No. If Remote Services is enabled, t e default settings will connect to t e
ControlByWeb.cloud cloud service. Users will need to supply eit er a token from t eir account or upload
SSL certificates. Most users s ould leave t ese settings at t eir default. (See Remote Services at t e
end of t is section for more information.)
If Remote Services Enabled is set to Yes, t e following settings are s own:
Hostname/I Address
Specify t e name or IP address of t e remote services' server ere. If t e IP address is specified, enter it
in t is format aaa.bbb.ccc.ddd. For numbers t at are less t an 100, preceding zeros s ould not be
included (for example, enter 80 rat er t an 080). T is field can be up to 40 c aracters long and as no
default setting.
Remote Services ort
Enter t e TCP port used for t e Remote Services server. T is can be set wit in t e range of 0-65535.
T e default setting for t is field is 8000.
Connection String
T is text is sent to t e remote services' server w en t e connection is establis ed. T is string s ould
include any information required by t e server at connection. For example, it may include an ID number,
customer number, password, etc. T e format is entirely dependent upon t e server requirements. T is
field can be up to 80 c aracters long. Default text is provided only as an example place older. T e
default text is [<Serial Number>]:ControlByWeb,XW-111.
Connection Interval
T is field specifies t e periodic interval in w ic t e XW-111 attempts to connect to t e remote server, or
if XW-111 is already connected, it is t e interval in w ic XW-111 sends t e connection string. T is field
Page 16 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Web Server
can be set wit in t e range of 1 to 55 minutes. T e default setting for t is field is 1 minute.
Version
T is field specifies t e version of t e remote services' protocol to use. Version 1 of t e protocol sends
t e connection string after successfully connecting to t e remote server and t en periodically per t e
connection interval specified. Version 2 of t e protocol sends t e connection string in addition to t e MAC
address, connection interval, model number and t en immediately sends t e state.xml file of t e device.
Version 2 of t e protocol requires t e remote server to reply to t e connection string wit a 3 byte packet
containing t e text “ACK”. If t e “ACK” is not received wit in 10 seconds of sending t e connection
string, t e XW-111 will close t e connection. Version 2 continues to send t e connection string and t e
state.xml file periodically per t e connection interval specified.
Use SSL Certificate
T is option enables encryption of t e remote services' connection wit t e remote services' server as
well as aut entication of t e XW-111 to t e server by a client certificate and key. Custom certificates and
keys can be loaded into t e XW-111 for t is purpose. (See Remote Services at t e end of t is section for
more information.)
By default, t e XW-111 does not come wit any SSL certificates already installed. T e certificates will
need to be installed eit er manually by uploading t e files or automatically wit a token. T e SSL
certificates must be in t e PEM format.
Certificate Request Token
W en t e XW-111 as a valid Certificate Request Token entered, it will automatically attempt to request
and download its Client Certificate, Key, and CA. Once successful, t e token will be erased and t e XW-
111 will stop its requests. (See Remote Services at t e end of t is section for more information.)
Certificate Request ort
T e certificate server is a server t at as been configured to deliver t e Client Certificate, Key, and CA
w en requested by t e XW-111. For t e XW-111 to request a Certificate, Key, and CA from t e certificate
server, it must ave a previously issued Certificate Request Token. T is field specifies w at port t e
Certificate Server listens on. T e server is found at t e same ost name as t e remote services' server.
(See Remote Services at t e end of t is section for more information.)
Manual Certificate Upload
Client Certificate
A client certificate is used wit custom remote services' servers for device aut entication. To upload a
custom client certificate to t e XW-111, click t e Browse button, find t e PEM formatted certificate file,
and select Submit.
Client Key
A client key is used wit custom remote services' servers for device aut entication. T e key t at is
uploaded must be t e correct key associated wit t e Client Certificate. Care s ould be taken wit w ere
t is client key is stored as it is meant only to be known to t e XW-111. To upload a custom client key to
t e XW-111, click t e Browse button, find t e PEM formatted file, and select Submit.
Client CA
A CA (Certificate Aut ority) is used by t e XW-111 to verify t e aut enticity of t e remote services' server
it is connecting to. It is important to note t at t is CA does not need to be t e CA t at signed t e Client
Certificate used by t e XW-111. Rat er t e CA needs to be t e one used to sign t e certificate used by
t e remote services server. To upload a custom CA to t e XW-111, click t e Browse button, find t e PEM
formatted file, and select Submit.
Remote Services Notes: Remote services initiates an outgoing connection to a server at a remote
Xytronix Research & Design, Inc. Page 17

Web Server XW-111™ Wi-Fi Digital Sensor Users Manual
location. T is can be used in an environment w ere a web server on t e Internet provides a custom web
page to XW-111 and ot er ControlByWeb products. Users access t e XW-111 t roug t e web server
rat er t an communicating directly wit it. T is met od is sometimes referred to as “web services” and
allows programmers to create powerful, custom web pages to multiple devices using t e web
programming languages of t eir c oice.
Remote services initiates t e connection to t e external web server (rat er t an t e web server initiating
communications to t e XW-111). T is as two main benefits. First, t e web server does not need to
know t e IP address of XW-111. T is means t at XW-111 can get its IP address dynamically from a
DHCP server, simplifying t e installation. Second, since t e connection from XW-111 is outgoing, rat er
t an incoming, t e local router on t e network w ere XW-111 resides doesn't need to be configured to
forward sockets. T is simplifies t e installation. Since t e router configuration is not modified, t e risk of
compromising security on t e local network is eliminated.
In order to allow remote services to operate is a power conscious fas ion, remote services will
disconnect from t e remote services server if it is t e only enabled service (modbus and web server are
disabled) and external power is not available. If externally powered, remote services will be fully
available until external power is lost. However, if remote services is enabled but disconnected due to no
external power, it will still connect and pus t e state.xml if a temperature alarm occurs t at as remote
services state message enabled. Once t e message is sent, remote services will disconnect and low
power modes will be resumed. If power is restored, remote services will reconnect to t e server and stay
connected.
Page 18 Xytronix Research & Design, Inc.

XW-111™ Wi-Fi Digital Sensor Users Manual Web Server
3.3 Email Tab (STAND-ALONE MODE ONLY)
W en configured as a Stand-Alone device t is tab is visible. W en input status alarms occur and an
email option is enabled, an email is sent. T is page is used to configure t e email settings and send
notifications to up to t ree email addresses. T e same message is sent to eac email address. For email
notification to work, t e XW-111 must ave a properly configured network connection and a SMTP server
must be defined. Emails only work if t e XW-111 is connected to an access point and can send
messages on t e internet.
STATUS NOTIFICATION
Email on Low Battery
W en t e estimated battery life reac es 20%, an email alert is sent. To conserve already meager energy
resources, only one low battery message is sent until t e estimated battery life goes above 50%.
Weekly Status Email
W en c ecked, t e XW-111 will send an email at least once a week wit input status and battery
information. T is provides ongoing assurance t e unit is functioning properly. T e weekly emails are sent
7-days from t e last email t at was successfully sent, including alarm or low battery emails. If you are
receiving alarm email alerts, t e weekly email may never be sent.
Xytronix Research & Design, Inc. Page 19

Web Server XW-111™ Wi-Fi Digital Sensor Users Manual
Email on AC ower Fail
W en enabled, t e XW-111 will send a status email w en it detects loss of t e +5V input power source.
T is feature only works if batteries are installed and power to t e access point and internet is still
available. Anot er power-loss email will not be sent until power as been restored for a period of time.
EMAIL SETTINGS
SMT Server
T e SMTP mail server ost name. To save energy, DNS lookups are only performed t e first time after
t e settings are submitted, or after a failure to send an email.
SMT Server ort
T e port number of t e SMTP mail server. T is is generally 25 for non-encrypted SMTP servers. If using
SSL/TLS, t is port number is generally 465.
SSL
C eck t is c eck box if t e server and port you ave configured is expecting a SSL connection.
User Name
Email user name (if required).
assword
Email password (if required).
Return Email
T e email address t at will get a notification if t e sent email does not send. (Note: Most email providers
require the Return Email address to match the address in the User Name field )
Email 1-3
W en an alert occurs an email message is sent to t ese addresses.
Test Email
Pressing t is button will submit any c anges to t e email settings and trigger an alert email to be sent to
t e configured email addresses.
T e result of t e test email will be displayed directly below t e Test Email button along wit t e last
message received from t e SMTP server, if applicable.
T e following are typical responses you may see along wit a description of w at t ey mean:
•Error initiating communications: Did not receive t e expected HELO from SMTP server. Ensure
you are using t e proper port and ost/IP settings.
•Error wit EHLO: Error sending or error receiving proper response to t e SMTP EHLO
command. Server may be unavailable or port and IP address settings are not correct.
•Error aut enticating: Error sending or error receiving proper response to t e SMTP AUTH
PLAIN command. T is may indicate t e use of an incorrect username or password.
•Error wit FROM field: Error sending or error receiving proper response to t e SMTP MAIL
FROM command. Ensure t e Return Email address as been properly specified.
•Error wit RCPT(To) field: Error sending or error receiving proper response to t e SMTP RCPT
TO command. Ensure t e To email addresses are using valid c aracters and formatted
properly.
Page 2 Xytronix Research & Design, Inc.
This manual suits for next models
1
Table of contents