Yacht Devices YDNU-02RM User Manual

Yacht Devices YDNU-02RM User Manual

Nmea 2000 usb gateway ydnu-02

Advertisement

User Manual
NMEA 2000 USB Gateway YDNU-02
also covers models
YDNU-02RM, YDNU-02RF, YDNU-02NM, YDNU-02NF
Firmware version
1.00
2017

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the YDNU-02RM and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Yacht Devices YDNU-02RM

  • Page 1 User Manual NMEA 2000 USB Gateway YDNU-02 also covers models YDNU-02RM, YDNU-02RF, YDNU-02NM, YDNU-02NF Firmware version 1.00 2017...
  • Page 2 © 2017 Yacht Devices Ltd. Document YDNU02-001. April 20, 2017. 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.
  • Page 3: Table Of Contents

    Contents Introduction Warranty and Technical Support I. Product Specification II. Installation of Device and Connection to NMEA 2000 Network III. Installation of USB Drivers and Connection to PC IV. LED Signals V. Configuration of Device Operation Modes VI. Terminal Access to Service Menu VII.
  • Page 4: Introduction

    Introduction The NMEA 2000 USB Gateway (hereinafter Gateway or Device) allows you to see data from a NMEA 2000 marine digital network on a PC, laptop or tablet PC with Microsoft Windows, Mac OS or Linux operation system. 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 PC applications like OpenCPN, Coastal Explorer, Polar View, OpenSkipper, etc.
  • Page 5 The Device connects to PC by USB cable and is compatible with USB 1.1 and higher. At the software level, the Device is a virtual COM port (USB device class 2, subclass 2). In Mac OS X, Linux and Windows 10, such devices do not require a special driver;...
  • Page 6: Warranty And Technical Support

    Warranty and Technical Support 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. The Device warranty is terminated in case of violation of the instructions in this Manual, case integrity breach, or repair or modification of the Device without the manufacturer’s written permission.
  • Page 7: Product Specification

    I. Product Specification Figure 1. Drawing of YDNU-02RF and YDNU-02NM models of Gateway Our devices are supplied with different types of NMEA 2000 connectors. Models containing R in the suffix of model name are equipped with NMEA 2000 connectors compatible with Raymarine SeaTalk NG. Models containing N in the suffix are equipped with NMEA 2000 Micro Male connectors.
  • Page 8 Gateways are equipped with high-quality USB Type A connectors with gold-plated contacts. Model containing M in the suffix of the model name are equipped with a male connector and must be used in dry place inside the cabin. These models are designed for direct connection to a PC USB port (not waterproof).
  • Page 9: Installation Of Device And Connection To Nmea 2000 Network

    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 can be flooded with water, as this can damage it. The USB connector of YDNU-02RF and YDNU-02NF models may be mounted outside.
  • Page 10 (and the hole) can be made with an inexpensive wood drill available world-wide (see Figure 2). Figure 2. Inexpensive wood drill YDNU-02RM and YDNU-02NM USB connectors must be used inside. These models are equipped with USB Type A Male connectors and designed for direct connection with a PC USB port (not waterproof).
  • Page 11 The Device allows sending of messages from PC applications to a NMEA 2000 network. Product misuse or PC software bugs can cause flooding of the marine network or sending of incorrect messages to the network and can lead to malfunction of critical ship systems. You must be sure that your software functions properly before a sea trial.
  • Page 12: Installation Of Usb Drivers And Connection To Pc

    III. Installation of USB Drivers and Connection to PC The Device is connecting to USB port of a PC and is compatible with USB 1.1 protocol (1998) and later. Therefore, it is compatible with all modern laptops and PCs. The Device is powered from the USB port and you will see LED signals after connection (otherwise it means that the cable or USB port is damaged).
  • Page 13 Figure 1. Windows 10 with a connected Device You will see one or more USB serial devices. You can eject the USB cable to detect which one is NMEA 2000 USB Gateway. Please remember the port number which was assigned automatically to the Device. If the port number is above COM9, you must change the port number to COM1 —...
  • Page 14 Figure 2. Advanced Settings of COM port Port speed and related parameters have no practical effect on USB serial devices, so you can leave the defaults for these parameters. After changing the COM port number, you need eject the Device from the USB port and insert it back. Until doing this, applications may fail to open the Device’s port.
  • Page 15 Figure 3. Windows 7 requires installation of driver There are two options to get a driver for the Device: • you can download a driver from our web site: http://www.yachtd.com/downloads/USBDRV.zip • or you can download the Virtual COM Port driver from the STMicroelectrionics web site http://www.st.com (type "STM32 Virtual COM Port Driver”...
  • Page 16 Figure 4. You should select “Ports (COM & LPT)” When the device type is selected, you should select “STMicroelectronics” as the manufacturer (the manufacturer of the Device’s core chip) and “STMicroelectronics Virtual COM Port” shown in Figure 5. If you have no “STMicroelectronics Virtual COM Port” in the list, click the “Have Disk…” button and specify the folder with the previously extracted drivers (you should navigate to the subfolder that corresponds to your operating system with a file named STMCDC.INF).
  • Page 17 Figure 5. Driver selection When the installation is done, please check an assigned COM port number. If the port number is greater than COM9, you must to change it (please see the “Microsoft Windows 10” section of this chapter). 3. Mac OS X After connecting the Device, click on the Apple icon and select the “About This Mac”...
  • Page 18 Figure 6. System Report on Mac OS X This gateway has a serial number of 00090001, and the Device’s port to use in applications is: /dev/cu.usbmodem00090001 You can type the following command in the terminal to check the port name: ls /dev/cu.usbm* For a Device with serial number 00090001, the command’s output will be: /dev/cu.usbmodem00090001...
  • Page 19 The output’s tail contains the Device’s properties and port name: [98.454005] usb 2-2.1: Product: NMEA 2000 USB Gateway [98.454009] usb 2-2.1: Manufacturer: Yacht Devices Ltd. [98.454013] usb 2-2.1: SerialNumber: 00090001 [98.461125] cdc_acm 2-2.1:1.0: ttyACM1: USB ACM device The port name for use in applications is /dev/ttyACM1 (printed in the last line of the output). You can type...
  • Page 20: Led Signals

    IV. LED Signals The Device is equipped with a bi-color LED that indicate the Device’s state. Note, serial devices are intended for use by one application at a time and when the device is used in one application, you cannot use it in another application or send a command from the console (this is described in the next chapter) or update the firmware.
  • Page 21 Table 1 continued LED Signal Device State Three RED signals per Device is powered, but is not connected with a PC. It is possible that drivers second for a 10 second are not installed or cable is damaged or Device is disabled (“ejected”) period in PC settings or Device is connected to USB power adapter or with “power only”...
  • Page 22: Configuration Of Device Operation Modes

    V. Configuration of Device Operation Modes This section describes how to switch the output protocol (operation mode) of Device and how to switch it from bi-directional mode (factory setting, normal mode) to “read only” mode (silent mode). The Device supports four operation modes: 0183, RAW, N2K and AUTO (see Introduction). The default operation mode is AUTO and we recommend keeping this setting.
  • Page 23 Where: • echo is a built-in command of an operating system; • YDNU MODE 0183 is a special command sent to the Device (turn on 0183 mode); • > (greater-than symbol) is an operator that redirects command output. We used the same port names (specified after the output redirection sign >) above, as were used in the examples of chapter III.
  • Page 24: Terminal Access To Service Menu

    VI. Terminal Access to Service Menu The Service menu allows you to change the Device’s settings and view diagnostics data. Note that we recommend using the application’s settings to filter NMEA messages instead of the Device settings, because Device settings have a global effect and sometime later you may be surprised that some things are not working in other applications.
  • Page 25 If you are using Putty, you can also launch it without parameters, tick the “Serial” radio button and type the port name in the “Serial line”, as shown in Figure 1. Leave all other settings unchanged. Figure 1. Putty is ready to open the COM3 serial port After connection, you will see the welcome screen of service menu of Device (see Figure 2 on the next page).
  • Page 26 Figure 2. Welcome screen of the service menu — 26 —...
  • Page 27: Service Menu Commands And Device Settings

    VII. Service Menu Commands and Device Settings The Service menu is like a command line of Windows and MS-DOS or Mac OS X or Linux shell. You should type commands (any register is allowed) and in case of a mistake, you can erase the last character with the Backspace button.
  • Page 28 2. Filtering of messages (FILTER, PRINT, TYPE, ADD and REMOVE commands) The Device has eight filter lists, which allows limiting the set of messages passed from the NMEA 2000 network to a PC application (incoming has RX suffix) and messages passed from the PC application to NMEA 2000 network (outgoing, has TX suffix): •...
  • Page 29 Figure 1. Example of configuration of incoming filters — 29 —...
  • Page 30 Each filter list has a switchable type: WHITE or BLACK. A message is passed thru the WHITE filter if it contains a record matched with a message. And the reverse for BLACK. In the factory settings, all filter lists are empty and are of BLACK type, so all messages are passed through filters. To change the type of the active filter, use the TYPE command.
  • Page 31 When a PGN keyword is used (not applicable to 0183 filters), the Device adds or remove records with the mask 0x1FF0000 for addressed NMEA 2000 messages and 0x1FFFF00 for global-addressed messages. For example, to add the records listed in the GLOBAL_TX filter in Figure 1, you can enter the following commands: FILTER GLOBAL_TX ADD PGN 59904 130310...
  • Page 32 The message with PGN 130314 (Actual Pressure) will pass the Global_Tx filter only if sent by a device with NMEA 2000 address 10 or 11. It passes the Raw_Tx filter in RAW mode (because filter in this configuration pass all messages), but will be blocked by the N2K_Tx filter in N2K mode (this filter passes 130310 messages only).
  • Page 33 • ALL. Print all data (may take a minute or two, press Esc to brake). • SETTINGS. Dump of settings copy, saved at beginning of recording. • USB_RX. Data received from PC. • USB_TX. Data transmitted to PC. • N2K_RX. Data received from NMEA 2000 network (before filters). •...
  • Page 34: Recording Of Diagnostics Data

    VIII. Recording of Diagnostics Data With the command YDNU DIAG (sent in the same way as mode operation commands, see chapter V) you can start recording diagnostics data. Serial ports are not intended for simultaneous use in multiple applications. You must close your marine application (or turn off the Device’s port in the application settings) before sending the command to Device.
  • Page 35 screen -L /dev/cu.usbmodem00090001 screen -L /dev/ttyACM1 In Putty, (available for Microsoft Windows and Linux), select “Logging” in the Category tree in the “Putty configuration window” and tick the “All session output” radio button. Then choose output file location. In the terminal session, run a DIAG ALL command and wait until all data is printed. Close the terminal program, locate the session log file (in Mac OS X and Linux the file will be located in the current folder and will have a name like “screenlog.0”).
  • Page 36: Firmware Updates

    IX. Firmware Updates You can check the current firmware version on the welcome screen of the service menu (see Figure 2 in chapter VI) or in Device information in the list of NMEA 2000 (SeaTalk NG, SimNet, Furuno CAN) devices or in the common list of external devices on the chart plotter (see third line in Figure 1).
  • Page 37 The firmware update leaves Device’s settings intact. You will not damage the Device in the event of power failure or any other shutdown at any state of firmware update procedure. To update Device firmware, you should copy the update file (with .BIN extension) to the Device’s port: copy /B UUPDATE.BIN COM3 cp UUPDATE.BIN /dev/cu.usbmodem00090001 cp UUPDATE.BIN /dev/ttyACM1...
  • Page 38: Programming Considerations

    X. Programming Considerations We welcome software developers who are interested in supporting Gateway protocols, and especially RAW mode protocol. We promise free technical support within reasonable limits and free testing of your products, even if you do not have a Device. Table 1.
  • Page 39 4. The application must send a mode activation sentence (see Table 1) immediately after opening a port. Recommended sentences do not cause sending of any message to NMEA 2000 network. In the AUTO mode, the Device analyzes first bytes received from the application for the first 2000 milliseconds after the port is opened.
  • Page 40: Appendix А. Troubleshooting

    APPENDIX А. Troubleshooting Situation Possible cause and correction LED does not signal when USB cable or USB port is damaged. Replace the cable and/or try USB cable is connected to connect Device to another port. All Device signals are red Device is powered on, but is not connected with a PC (drivers with 10-second interval are not installed;...
  • Page 41: Appendix B. Device Connectors

    APPENDIX B. Device Connectors Figure 1. NMEA 2000 connectors of the YDNU-02RM and YDNU-02RF (left), and connectors of the YDNU-02NM and YDNU-02NF (right) models — 41 —...
  • Page 42: Appendix С. Nmea 2000 Messages Supported By Device

    APPENDIX С. NMEA 2000 Messages Supported by Device The Gateway can pass any message from NMEA 2000 to a PC application and in the opposite direction. “No” in the table below means that the Device will not process these messages during service communication with other devices on the network.
  • Page 43: Appendix D. Conversions Between Nmea 2000 And Nmea 0183

    APPENDIX D. Conversions Between NMEA 2000 and NMEA 0183 Table 1. Conversions from NMEA 2000 to NMEA 0183 NMEA 2000 PGN NMEA 0183 Comment Sentence 65311 Magnetic Variation (Raymarine — See note (4) Proprietary) 126992 System Time ZDA, GLL See also PGN 129033 127237 Heading/Track Control Use PGN 129284, 129283 if possible...
  • Page 44 Table 1 continued NMEA 2000 PGN NMEA 0183 Comment Sentence 129283 Cross Track Error 129284 Navigation Data Use 129283, 129029 if possible 129291 Set & Drift, Rapid Update 129539 GNSS DOPs PGN 129540 is also required 129540 GNSS Sats in View 130306 Wind Data MWD, MWV See note (3)
  • Page 45 Table 1 continued NMEA 2000 PGN NMEA 0183 Comment Sentence 129809 AIS Class B "CS" Static Data Report, VDM, VDO AIS VHF message 24 Part A 129810 AIS Class B "CS" Static Data Report, VDM, VDO AIS VHF message 24 Part B Note (1): Air and water temperature, inside and outside humidity, barometric pressure are supported.
  • Page 46 Table 2. Conversions from NMEA 0183 to NMEA 2000 NMEA 0183 NMEA 2000 PGN Comment Sentence 129283 Cross Track Error Also used in PGN 129284 128267 Water Depth 129044 Datum 129025 Position, Rapid Update See note (5) 127258 Magnetic Variation HDM, HDT 127258 Magnetic Variation Use variation and deviation from HDG...
  • Page 47 Table 2 continued NMEA 0183 NMEA 2000 PGN Comment Sentence VDO, VDM 129038 AIS Class A Position Report AIS VHF messages 1, 2 and 3 129039 AIS Class B Position Report AIS VHF message 18 129040 AIS Class B Extended Position Report AIS VHF message 19 129041 AIS Aids to Navigation (AtoN) Report AIS VHF message 21...
  • Page 48: Appendix E. Format Of Messages In Raw Mode

    APPENDIX E. Format of Messages in RAW Mode In RAW mode, network messages are converted to plain text format. We recommend that software developers support this format in applications because it is the easiest option. In the terminal window, NMEA 2000 messages look like a log in a chart plotter. Messages sent from Device to PC have the following form: hh:mm:ss.ddd D msgid b0 b1 b2 b3 b4 b5 b6 b7<CR><LF>...
  • Page 49 The format of messages sent from application to Device is the same, but without time and direction field. Outgoing messages must end with <CR><LF>. If the message from application is accepted, passes filters and is transmitted to NMEA 2000, it will be sent back to the application with ‘T’ direction. For example, the application sends the following sentence to the Device: 19F51323 01 02<CR><LF>...
  • Page 50: Appendix F. Format Of Messages In N2K Mode

    APPENDIX F. Format of Messages in N2K Mode In N2K mode, messages are encoded in a binary format. This format is based on Data Link Escape encoding partially compatible with ActiSense NGT format and widely support by modern marine applications. This format is very similar to Garmin Serial Protocol (see section 3.1 of Garmin Device Interface Specification 001-00063-00 for details).
  • Page 51 Table 2. Packet data format Byte Number Byte Description Note Message Priority Bits 0 - 2 are significant, other bits are ignored 1 to 3 NMEA 2000 PGN Least significant byte is first Destination Address Or 255 decimal for global addressed messages Source Address Ignored for outgoing messages, Device address is used 6—9...

This manual is also suitable for:

Ydnu-02rfYdnu-02nmYdnu-02nf

Table of Contents