Yacht Devices YDWG-02R User manual

User Manual
NMEA 2000 Wi-Fi Gateway YDWG-02
also covers models
YDWG-02R, YDWG-02N
Firmware version
1.11
2018

© 2018 Yacht Devices Ltd. Document YDWG02-005. March 2, 2018.
Web: http://www.yachtd.com/
NMEA 2000® is a registered trademark of the National Marine Electronics
Association. SeaTalk NG is a registered trademark of Raymarine UK Limited.
Garmin® is a registered trademark of Garmin Ltd.
Package Contents
Device 1 pc.
This Manual 1 pc.
Paperclip for reset 1 pc.
NMEA 2000 Drop Cable not supplied
Note: Device can be connected to the network backbone directly, without
an NMEA 2000 drop cable.

Contents
Introduction 4
Warranty and Technical Support 6
I. Product Specication 7
II. Installation of Device and Connection to NMEA 2000 Network 9
III. Wi-Fi Settings 11
IV. Conguration of Application Protocols 15
V. NMEA 0183 and NMEA 2000 Message Filters 19
VI. LED Signals 23
VII. Reset of Settings and Hardware Reset 25
VIII. Recording of Diagnostics Data 26
IX. Firmware Updates 28
X. NMEA Settings and Autopilot Control 30
XI. Web Gauges of Administrative Web Site 35
APPENDIX A. Troubleshooting 37
APPENDIX B. Device Connectors 39
APPENDIX С. NMEA 2000 Messages Supported by Device 40
APPENDIX D. Conversions Between NMEA 2000 and NMEA 0183
41
APPENDIX E. Format of Messages in RAW Mode 49

— 4 —
Introduction
The NMEA 2000 Wi-Fi Gateway (hereinafter Gateway or Device) allows you
to see data from an NMEA 2000 marine digital network on a PC or smartphone. With
it, you get marine network data including vessel course, speed, position, wind speed
and direction, water depth, AIS messages from vessels and aircrafts and other
navigation data in popular software applications.
The Web Gauges page of administrative web site allow real time viewing of vessel data
using a web browser on PC, laptop, tablet or smartphone and can replace instrument
displays. No internet connection or app installation is required.
The Device creates its own Wi-Fi network (with range of about 30 meters
in open spaces) or it can be connected to an existing Wi-Fi network. In the second
case, coverage depends on the coverage of the base network; laptops and PCs
can be connected to Wi-Fi routers (and the Gateway services) by Ethernet; and you can
congure remote access to the Gateway over the Internet.
To congure the Gateway, you need any Wi-Fi enabled device (laptop or smartphone)
with any web browser. The Device’s settings can be reset to factory values using
the hidden reset button (a paper clip is required, supplied with the Device).
The Gateway supports TCP and UDP network protocols (both can be enabled
at the same time). For UDP protocol, the number of clients (physical devices
or software applications) is unlimited.
A pair of Wi-Fi Gateways can act as an NMEA 2000 wireless extender and allows
joining of two or more physical networks. To pair the gateways, you need to set up both
using UDP protocol and set the same port number.

— 5 —
The Device has a bi-directional converter between NMEA 2000 and NMEA 0183
protocols. NMEA 0183 protocol has been widely supported in marine applications
since the last millennium. So the Device is compatible with virtually all marine
software, except applications especially designed for use only with specic hardware.
A powerful system of data lters allows conguring data output for feature-limited
mobile applications.
The Gateway also supports RAW protocol, which is supported in a popular
Expedition 10 and CAN Log Viewer. It allows transferring of any NMEA 2000
messages (including proprietary messages) to an application and in the reverse
direction. This protocol is open and is also supported by our USB Gateway. We hope
that it will be popular among software developers, because it is very simple and free.
We hope that you’ll like this tiny and low power Device. Thank you for purchasing
our product and happy voyages!

— 6 —
Warranty and Technical Support
1. The Device warranty is valid for two years from the date of purchase. If a Device
was purchased in a retail store, the sales receipt may be requested when applying
for a warranty claim.
2. The Device warranty is terminated in case of violation of the instructions
in this Manual, case integrity breach, or repair or modication of the Device
without the manufacturer’s written permission.
3. If a warranty request is accepted, the defective Device must be sent to the
manufacturer.
4. The warranty liabilities include repair and/or replacement of the goods
and do not include the cost of equipment installation and conguration, or shipping
of the defective Device to the manufacturer.
5. Responsibility of the manufacturer in case of any damage as a consequence
of the Device’s operation or installation is limited to the Device cost.
6. The manufacturer is not responsible for any errors and inaccuracies in guides
and instructions of other companies.
7. The Device requires no maintenance. The Device’s case is non-dismountable.
8. In the event of a failure, please refer to Appendix A before contacting technical
support.
9. The manufacturer accepts applications under warranty and provides technical
support only via e-mail or from authorized dealers.
10. The contact details of the manufacturer and a list of the authorized dealers
are published on the website: http://www.yachtd.com/.

— 7 —
I. Product Specification
Figure 1. Drawing of YDWG-02N and YDWG-02R models of Gateway
Our devices are supplied with different types of NMEA 2000 connectors. Models
containing R in the sufx of model name are equipped with NMEA 2000 connectors
and are compatible with Raymarine SeaTalk NG. Models containing N in the sufx
are equipped with NMEA 2000 Micro Male connectors. See connector drawings
in Appendix B.

— 8 —
Device parameter Value Unit
Supply voltage (from NMEA 2000 network) 7..17 V
Current consumption 43 mA
Protection against reverse polarity Yes —
Load equivalency number 1 LEN
Wi-Fi module 2.4 GHz 802.11b/g/n —
Wi-Fi internal antenna range (open space) 30 / 100 m / feet
Wi-Fi connections in Access Point mode (max.) 3 —
TCP connections from applications (max.) 9 —
UDP clients (applications or devices) Unlimited —
Device case length 54 mm
Weight 18 gr
Operating temperature range -20..55 °С
The Wi-Fi antenna is located inside under the LED.
Yacht Devices Ltd declares that this product is compliant with the essential
requirements of EMC directive 2014/30/EU and radio and TTE directive 1999/5/EC.
Dispose of this product in accordance with the WEEE Directive. Do not mix electronic
disposal with domestic or industrial refuse.

— 9 —
II. Installation of Device and Connection to NMEA 2000 Network
The Device requires no maintenance. When deciding where to install the Device,
choose a dry mounting location. Avoid places where the Device could be ooded
with water, as this can damage it.
Note that conductive materials (metals) weaken the Wi-Fi signal or may even
completely block it. Do not place the Device behind a metal bulkhead. Metals reect
radio signals, and you should avoid (if possible) placing the Device in front of
metal bulkheads also. Plastic or wood (and many other non-conductive materials)
did not signicantly affect the signal.
The Device is well-suited for berglass and plastic sailing yachts as well as motor boats
up to 65 feet (20 m) in length. With good signal strength over a 30m area in open
space, the Gateway provides good coverage inside and outside the boat.
On metal vessels or large vessels, an external Wi-Fi router may be required. In this
case, coverage depends on the coverage of the base network, which can contain
multiple Wi-Fi routers connected by Ethernet (for example). PCs and laptops can
be connected to routers (and to the Gateway services) by Ethernet.
The Device is directly connected to the NMEA 2000 network backbone without
a drop cable. Before connecting the Device, turn off the bus power supply. Refer
to the manufacturer’s documentation if you have any questions regarding the use
of connectors:
• SeaTalk NG Reference Manual (81300-1) for Raymarine networks
• Technical Reference for Garmin NMEA 2000 Products (190-00891-00)
for Garmin networks

— 10 —
After connecting the Device, close the lock on the connection to ensure it is water
resistant and rmly secured.
When powered on, the Device produces a single green ash to indicate that power
is supplied. After that, the Gateway will produce a series of four ashes every ve
seconds (see details in chapter VI). A new Device usually ashes GREEN-GREEN-
RED-GREEN after the installation, meaning that it is connected properly.
You can also check the NMEA 2000 connection and rmware version from a chart
plotter. Please, see chapter IX for details.

— 11 —
III. Wi-Fi Settings
The Device can work in Access Point mode (factory defaults) and in Client mode, when
the Device is connected to an existing Wi-Fi network. To congure the Gateway, you
need any Wi-Fi enabled device (laptop or smartphone) with a web browser.
The internal web server of the Gateway has limited possibilities and
simultaneous access from multiple devices is not recommended. Updating
settings of NMEA servers can cause termination of the current TCP data
connections.
1. Access Point mode
In the Access Point mode, the Device creates its own Wi-Fi network with the name
“YDWG” (SSID) and password 12345678. To open the administration web site, connect
to this network and type http://192.168.4.1 in a web browser. Use the login “admin”
and password “admin” (without quotes) to log into the administration web site.
The administration web site has a navigation menu on the left; in the mobile version,
the menu is accessible by clicking on the icon in the top left corner.
On the “Wi-Fi Access Point” page, you can change the Wi-Fi network name (SSID),
password, change the authentication type and make the network hidden. Hidden
networks are not visible in the list of Wi-Fi networks, and you can connect to such
networks only by entering its name. To enter the name, click on the button with a name
like “Other network..” in the list of Wi-Fi networks.
We strongly recommend changing the default Wi-Fi password. A hijacker
can take control of autopilot and other important ship systems. In the air
drone era, this can happen even far from shore.

— 12 —
Up to three Wi-Fi connections are supported in Access Point mode. You can switch
the Device to Client mode to avoid this limitation.
2. Client mode
Figure 1. Wi-Fi details on IPhone 6
In this mode, the Gateway connects to an existing Wi-Fi network. To switch
to this mode from Access Point mode, or tune the settings, open the “Wi-Fi Client”
page on the administration web site.

— 13 —
The Gateway must have a xed IP address. This can be done in the Wi-Fi router
settings; you can assign a xed IP address by the MAC address of the Gateway printed
on the “Wi-Fi Client” page. In this case, you can leave the default “Use DHCP” setting
in the IP address conguration. Note that the Gateway has two different MAC
addresses, one for the internal Access Point and one for connecting to other networks.
You should use the MAC address from the “Wi-Fi Client” page.
Or you can choose “Static IP” address and enter an IP, subnet mask and network
router address. In most cases, you can open the settings of the Wi-Fi network on a
smartphone or PC, and copy the mask address and router address and select a free
IP address from this subnet. For example, if the router has the address 192.168.4.1
(see Figure 1 on the previous page) and a smartphone has the address 192.168.4.3, you
can try 192.168.4.100. This is far enough from the address assigned to smartphone.
In case of difculty, contact your router administrator or refer to the router
documentation.
The “Save” button saves settings to EEPROM, and they will be applied at the next
connection to the Wi-Fi network. The “Save & Apply” button saves settings and tries
immediately to apply them if the Gateway is in Client mode already.
Choose the network from the list or enter the name of a hidden network
in the “Other...” edit box and click “Connect”.
If the Gateway was in Access Point mode before, it will shutdown the
“YDWG” network after successful connection. Your client device
(smartphone, laptop) will continue searching for a non-existing network,
and you may need to change the Wi-Fi network manually and enter
the new IP address of administration web site in the browser.

— 14 —
For example, you connect the Gateway to the network “Yacht” and specify 192.168.1.100
as the address in the static IP address eld. You should connect your smartphone
or laptop to the “Yacht” network and type http://192.168.1.100 in the web browser
to open administration web site.
3. What to do if the Device is not accessible
There many possible reasons why you may not be able connect to the Gateway
after changing settings. Check the following:
• was the IP address congured before switching to Client mode?
• what is the Gateway state according the LED signals? (see VI.)
• is your smartphone or laptop connected to the same Wi-Fi network
as the Gateway?
• what IP address was assigned to the Gateway? (in Wi-Fi router settings)
If you cannot diagnose what is wrong, you can reset the Device’s settings (see VII.)
and the Device will be returned to Access Point mode. You can connect to “YDWG”
network again and try to change the settings one more time.
4. Other important settings
We also strongly recommend changing the default password for access
to the administration web site. It can be done on the “Administration” page.
Access to port 80 (default port of web server) can be limited in some network
congurations, and you may change the port on the “Home” page to another, 8000 for
example. In this case, you will need to type http://192.168.4.1:8000 in the address bar
of browser instead of http://192.168.4.1 to get access to the administration web site.

— 15 —
IV. Configuration of Application Protocols
Figure 1. Settings of OpenCPN application
Most marine applications support both TCP and UDP network protocols. TCP
is a connection-oriented protocol. This means that the receiver must conrm
reception of data before it gets the next packet of data, otherwise the sender repeats
the transmission after a timeout. So, the second TCP connection doubles the network

— 16 —
trafc and CPU load, despite the fact that both clients receive the same data.
UDP is a connectionless protocol; any number of clients can listen to data broadcasted
from a specied port without any additional load on the server and without increasing
the actual network trafc. We recommend using UDP protocol where possible, because
the resources of the Device’s CPU are limited.
The Gateway supports RAW and NMEA 0183 data protocols. The RAW protocol
is supported in Expedition 10 and CAN Log Viewer. This protocol is very simple,
open and also supported by our USB Gateway YDNU-02. We hope that this protocol
becomes popular among software developers.
NMEA 0183 is supported in virtually all marine applications. The Gateway contains
a bi-directional converter between NMEA 0183 and NMEA 2000 and has a exible
system of message lters (see V).
On the “NMEA Server” page on the administration web site you can set up to three
server ports (see Figure 2 on the next page). If TCP network protocol is selected,
up to three connections (from three different applications on one device, or from three
devices with one marine application running on each) are allowed at the same time.
So three servers allow nine connections in total.
In the case of using UDP protocol, the number of devices or applications used the data
port is not limited. We recommend using UDP protocol when possible.
Server port can be congured as bi-direction, read-only (Transmit Only) or write-
only (Receive Only). We recommend conguring data ports as read-only if possible,
to prevent network ooding from incorrectly congured applications.

— 17 —
Server 3 also supports “Debug” data protocol, designed to diagnose issues with
software applications. This protocol is described in chapter VIII.
Figure 2. Gateway server settings

— 18 —
With the factory settings, Gateway has the 1st server enabled and pre-congured
use TCP port 1456 and the NMEA 0183 data protocol. To connect your application
to the Gateway with factory settings:
• connect your laptop or mobile device to YDWG network;
• set the IP address 192.168.4.1 in the application settings;
• specify the TCP protocol and port 1456 in the application settings.
To use the gateway with a Navionics Boating App, no settings are required in the app,
but some changes are required in the Gateway conguration:
• congure one of the Gateway servers to use UDP port 2000 and NMEA 0183
data protocol;
• connect your smartphone or tablet to the Gateway’s Wi-Fi network.
Some versions of Nobeltec MaxSea and TimeZero ignore sentences with «--» talker
ID (used by default in previous rmware versions) and you need to change it
to something else, for example, to «YD» (see X.2).
The settings on the “NMEA Settings” page are designed to control an autopilot
by NMEA 0183 protocol and tune NMEA 0183 output settings, see chapter X.
for details.

— 19 —
V. NMEA 0183 and NMEA 2000 Message Filters
The Device has 14 lter lists which allow limiting the set of messages passed from
the NMEA 2000 network to a PC or mobile application (transmit lters) and messages
passed from the application to the NMEA 2000 network (receive lters).
Each NMEA server has four lter lists: two for incoming and outgoing NMEA
0183 messages, two for incoming and outgoing NMEA 2000 messages (used
for RAW protocol). Which lter is used depends on the server data protocol settings
dened on the “NMEA Servers” page. There are 12 lter lists in total.
The Device also has two “Global” lter lists, which dene what NMEA 2000 messages
can be passed from the network to internal NMEA servers and what NMEA 2000
messages can be sent by internal NMEA servers to the NMEA 2000 network.
Each lter list has a switchable type: WHITE or BLACK. A message is passed
thru the WHITE lter if it contains a record matched with a message. And the reverse
for BLACK. In the factory settings, all lter lists are empty and are of BLACK type,
so all messages are passed through the lters.
1. Syntax of NMEA 0183 lters
NMEA 0183 lters contain 3-char NMEA 0183 sentence formatters separated
by a space character. According to the standard, an NMEA 0183 sentence starts with
a $ or ! symbol, followed by a two-character talker ID and a 3-char sentence
formatter. These elements are followed by data elds (after the comma).
The sentence is nished by a check sum after the * (asterisk) symbol.

— 20 —
Gateway with factory settings using «YD» talker ID, it can be changed
on the “NMEA Settings” page (see X.2). The Device uses 3-char sentence formatters
only for ltering. The following sentences matches to GLL and VDM records (sentence
formatters):
$GPGLL,4146.5894,N,07029.6952,W,173412.02,A*15
!AIVDM,1,1,,B,ENk`smq71h@@@@@@@@@@@@@@@@@=MeR6<7rpP00003v
f400,4*5F
Example of correct NMEA 0183 lter text:
GLL VDM DPT
2. Syntax of NMEA 2000 (RAW protocol) lters
You should be familiar with the NMEA 2000 Standard (can be purchased
from National Marine Electronics Association, www.nmea.org) to operate with
NMEA 2000 lters.
These lters actually contain pairs of 29-bit message identiers and a mask.
The identier is compared by processing the NMEA 2000 message identier
and the second value (mask) denes the comparison concerning which bits
are signicant. The identier contains a PGN (Parameter Group Number, described
in NMEA 2000 Standard) and a source device address. You can use decimal
and hexadecimal numbers (which start with a 0x prex).
To simplify dening lters, it is also allowed to set lters using PGN only. The lter
string contains records separated by comma. Records contain an identier and mask
separated by space, or a PGN number.
This manual suits for next models
2
Table of contents
Other Yacht Devices Gateway manuals