background image

XW-112™ Wi-Fi Water Detector Users Manual

Network Discovery

Section 5:  Network Discovery

XW-112 has implemented a network discovery and provisioning protocol to aid in accessing the device. 
With this protocol, a user may connect the device to a network without knowing the IP address, search 
and identify the IP address, query basic information and if not yet configured send the desired network 
and remote services configurations. This feature can be utilized in the latest versions of the Android and 
iOS apps. 

The network discovery protocol listens for specific requests on UDP port 65431 sent to the IP broadcast 
address 255.255.255.255.  All requests must have the proper header and, when applicable, the correct 
MAC address.  This header is the first 12 bytes of all messages and is simply the string 'ControlByWeb'.

Header

C

o

n

t

r

o

l

B

y

W

e

b

0x43

0x6f

0x6e

0x74

0x72

0x6f

0x6c

0x42

0x79

0x57

0x65

0x62

5.1   Initial Contact

The initial contact request is sent to discover ControlByWeb devices on the network. It is recommended 
to send this message multiple times in environments where many ControlByWeb devices are present 
due to potentially lost traffic where collisions occur as UDP does not guarantee deliver of packets.

Request:

Header (12 bytes)

ASCII String

ControlByWeb

Message ID (1 byte)

Initial Contact Request

0x00

Response:

Header (12 bytes)

ASCII String

ControlByWeb

Message ID (1 byte)

Initial Contact Response

0x01

MAC Address (6 bytes)

Binary version

0x00 0x0c 0xc8 0x00 0x00 0x00

Device Info (2 bytes)

Bit[15-7] Reserved

0b0

Bit 6 – Mode

0b0=Station, 0b1=AP

Bit 5 – Reserved

0b0

Bit 4 – Remote Services Status

0b0=Disconnected, 0b1=Connected

Bit 3 – DHCP Status

0b0=Waiting, 0b1=Success

Bit 2 – Remote Services Enabled

0b0=Disabled, 0b1=Enabled

Bit 1 – DHCP Enabled

0b0=Disabled, 0b1=Enabled

Bit 0 – Configuration Allowed

0b0=Not Allowed, 0b1=Allowed

Model Code (2 bytes)

0x002D=XW-112

IP Address (4 bytes)

Network endianness

0xc0 0xa8 0x01 0x02 (192.168.1.2)

Xytronix Research & Design, Inc.

Page 25

Содержание XW-112

Страница 1: ......

Страница 2: ...XW 112 Wi Fi Water Detector Users Manual XW 112 User Manual Revisions Revision Description 1 0 Initial release Page 2 Xytronix Research Design Inc...

Страница 3: ...on anytime to active the access point mode Then with a PC or smart phone connect to and access the XW 112 s internal web server The XW 112 will always be accessible this way regardless of the mode to...

Страница 4: ...5 sensor can detect the presence of water and provides a relay output for control of an external device The sensor has two exposed stainless steel electrodes which detect the presence of water Althoug...

Страница 5: ...r motors or AC wiring The GRI 2605 has an internal relay Its contacts green white wires are closed when the sensor is dry When the sensor is dry the digital input will be On When water is detected the...

Страница 6: ...he circuit requires power from a 5 volt DC wall transformer and will not operate from batteries alone Installing batteries however allows the XW 112 to sent a power fail email notification if the AC p...

Страница 7: ...eb browser http 192 168 1 2 setup html After the page is requested a password prompt will appear Enter the username and password The username is admin and the password is webrelay password is case sen...

Страница 8: ...as assigned To begin press the WPS button on your wireless router or access point You will generally have about two minutes to connect wireless devices to the network with WPS Now remove the cover of...

Страница 9: ...your network administrator Press the Submit button at the bottom of the page The XW 112 s internal web server is always enabled and accessible Navigate to the Water Sensor tab On the Email Alerts set...

Страница 10: ...cessed any time Note that if you are accessing the unit as an access point the above IP address will work even if you have previously changed the IP address or port in the setup pages If you are acces...

Страница 11: ...o load on the battery The calculations are made for alkaline AA batteries with a usable capacity of 2000mAH When using other types of batteries or in cold conditions the displayed estimate may be in e...

Страница 12: ...to make a fresh scan of available networks Note The Refresh button is inactive if the XW 112 itself is an access point Security Type of authentication used by the access point for connections Securit...

Страница 13: ...not always be the same so client devices may not be able to find the server For this reason servers usually use an IP address that is fixed and does not change The XW 112 is a server and manual IP ad...

Страница 14: ...the IP address is specified enter it in this format aaa bbb ccc ddd For numbers that are less than 100 preceding zeros should not be included for example enter 80 rather than 080 This field can be up...

Страница 15: ...the end of this section for more information Certificate Request Port The certificate server is a server that has been configured to deliver the Client Certificate Key and CA when requested by the XW...

Страница 16: ...erver rather than the web server initiating communications to the XW 112 This has two main benefits First the web server does not need to know the IP address of XW 112 This means that XW 112 can get i...

Страница 17: ...email server typically over the internet STATUS NOTIFICATION Email on Low Battery When the estimated battery life reaches 15 an email alert is sent To conserve already meager energy resources only one...

Страница 18: ...is sent to these addresses Test Email Pressing this button will submit any changes to the email settings and trigger an alert email to be sent to the configured email addresses The result of the test...

Страница 19: ...lid and has a proper DNS record for the SMTP Server host provided Error establishing connection Error configuring security on SSL socket or error creating socket Error with SSL handshake Could not suc...

Страница 20: ...t entered identically in both fields the password will not be changed CONTROL PAGE Enable Control Password The Control Page is normally viewed without entering a password For security purposes a passw...

Страница 21: ...se email messages to be sent Off No email messages will be sent due to a water alarm On Email notifications will be sent when the water alarm changes from dry to wet or wet to dry Up to three email ad...

Страница 22: ...pulsed when the sensor becomes wet Send pulse command when sensor changes The remote relay is pulsed when the sensor changes state Send toggle command when dry The remote relay changes state when the...

Страница 23: ...to control on the device Note To control WebRelay s relay enter in the number 0 Remote Services The XW 112 can be configured to send messages to other ControlByWeb products or servers that are located...

Страница 24: ...ing the default IP address the user would enter http 192 168 1 2 If the IP address is changed from the default the user must use the new IP address Note that if any port is used other than the default...

Страница 25: ...0x57 0x65 0x62 5 1 Initial Contact The initial contact request is sent to discover ControlByWeb devices on the network It is recommended to send this message multiple times in environments where many...

Страница 26: ...es ASCII String no null terminator xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx IP Address 4 bytes Network endianness 0xc0 0xa8 0x01 0x02 192 168 1 2 Subnet 4 bytes Network endianness 0xff 0xff 0xff 0x00 255 255...

Страница 27: ...sage ID 1 byte Setup successful response 0x04 MAC Address 6 bytes Binary version 0x00 0x0c 0xc8 0x00 0x00 0x00 Error Response Header 12 bytes ASCII String ControlByWeb Message ID 1 byte Command not re...

Страница 28: ...tected Setup Connectivity Always connected Remote Server ControlByWeb s X 600 or cloud based server Remote Relays Control relays on other ControlByWeb products Polling state xml only when web server i...

Страница 29: ...s Switch Status Alerts Dry to wet or wet to dry transitions power fail Environmental Location Indoor use or NEMA 4 protected location Using Alkaline Batteries 18 C to 55 C 0 F to 130 F Operating Tempe...

Страница 30: ...r scanning for any purpose other than the personal use by the purchaser of this product Xytronix Research Design Inc assumes no responsibility for any errors that may appear in this document Whereas r...

Страница 31: ...e purchaser as long as the product is shipped within the continental United States If the product is shipped outside of the continental United States or the product was shipped more than one year earl...

Страница 32: ...ment and receiver Connect the equipment into a relay on a circuit different from where the receiver is connected Consult the dealer or an experienced radio TV technician for help Notice Changes or mod...

Страница 33: ...XW 112 Wi Fi Water Detector Users Manual Appendix E Mechanical Dimensions Appendix E Mechanical Dimensions Xytronix Research Design Inc Page 33...

Отзывы: