background image

User Manual

Yacht Devices NMEA 2000 Bridge YDNB-07

also covers models

YDNB-07N, YDNB-07R

Firmware version

1.42

2022

Summary of Contents for YDNB-07N

Page 1: ...User Manual Yacht Devices NMEA 2000 Bridge YDNB 07 also covers models YDNB 07N YDNB 07R Firmware version 1 42 2022...

Page 2: ...NB07 005 May 24 2022 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...

Page 3: ...I Structure and Basic Syntax of the Program 15 VII Description of the Settings 17 VIII Programming the Device 21 IX Optimization and Performance 34 X Debug and logging functionality 38 XI Firmware Upd...

Page 4: ...y partially operational using a 2 or 3 line script 4 To ensure compatibility of equipment from different generations You can create and send any type of NMEA 2000 message using data from other message...

Page 5: ...equires knowledge of NMEA 2000 Copy of NMEA 2000 standard can be purchased from the National Marine Electronics Association http www nmea org Yacht Devices would like to note that a NMEA 2000 network...

Page 6: ...st of equipment installation and configuration as well as shipping the defective Device to the manufacturer 5 Manufacturer responsibility in case of any damage as a consequence of the Device operation...

Page 7: ...upplied with different types of NMEA 2000 connectors Models with the suffix R at the end of model name are equipped with NMEA 2000 connectors compatible with Raymarine SeaTalk NG as at the picture abo...

Page 8: ...trength between CAN1 and CAN2 2500 VRMS Reverse polarity protection on both CAN1 and CAN2 interfaces Yes Operating temperature range 20 55 Cable length 500 mm Device s case length without connector CA...

Page 9: ...efore 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 Ra...

Page 10: ...and two terminators on each backbone end If the Device is used as a bridge connecting two existing NMEA 2000 network segments you have to make sure to add terminators to each backbone segment and pow...

Page 11: ...el In this regard some NMEA 2000 networks can indicate a red light much of the time even when the network is functioning normally In this case to check the connection turn one device that is on the ne...

Page 12: ...s side visible at left label side at right The Device slot has a push push mechanism that works on a spring and ensures proper card fixation Improper loading or unloading withdrawing your finger too q...

Page 13: ...MicroSD memory cards of all capacities and classes The MicroSD card must be formatted on a personal computer before it can be used with the Device The Device supports the following file systems FAT F...

Page 14: ...ee green flashes indicates that the file has successfully been loaded into the Device The text file YDNBSAVE CFG was created in the root directory of the card comprising the current program and used s...

Page 15: ...situated at the beginning of a line as well as after interpretable program text Settings can be set anywhere in the program except for inside subprograms of filters Nevertheless we recommend declarin...

Page 16: ...ll be applied to messages for which no corresponding match subprogram was defined FW_CAN1_TO_CAN2 ON instructs the Device to forward all messages received on CAN1 interface to CAN2 interface FW_CAN2_T...

Page 17: ...nes a special protocol extension for PGNs with payload overall length higher than 8 bytes from 9 to 223 bytes payload is transmitted in a series of standard CAN frames each having a payload length fro...

Page 18: ...al number 29 significant bits m filter mask decimal or hexadecimal number 29 significant bits The Device can filter messages received from the CAN1 and CAN2 interface at hardware level which in some c...

Page 19: ...ill be automatically added for the given interface CAN1_HARDWARE_FILTER_1 0 0 So if no custom hardware filter is set in the program all messages will be passed to the program 4 NMEA 2000 instance DEVI...

Page 20: ...t content with save function see VIII 8 Example of non addressed ISO Request of ISO Address Claim SLOT1 00FFEA18 FF 03 00EE00 Here 00FFEA18 is CAN ID for ISO Address Claim in LSB first byte order mess...

Page 21: ...e 7 bit ASCII symbols in single quotes like a 1 they will be interpreted as corresponding ASCII symbol number ex a 97 Reserved identifiers like constants DATA M_PI interface identifiers CAN1 CAN2 data...

Page 22: ...filters 2 Message buffer The subprogram has access to the message and its 29 bit CAN identifier that is stored in the buffer described in Table 1 Table 1 Message buffer structure Offset Length in byt...

Page 23: ...ough the interface opposed to the one from which the processed message was received In order to avoid embarrassing mistakes with unpredictable consequences we recommend always to use the send without...

Page 24: ...o the right logical OR XOR logical AND assignment Parentheses can be used to change the order of operations A 3 5 2 Equivalent A 16 When you assign values to variables the result type is automatically...

Page 25: ...constant DATA which points to a first byte of the message payload Example 2 match CAN1 0x1F50B00 0x1FFFF00 A get DATA 1 UINT32 get 4 byte integer from message set DATA 1 UINT32 A 20 set the corrected...

Page 26: ...1 0x1F50B00 0x1FFFF00 A get DATA 1 UINT32 get depth value as 4 byte integer from buffer if A 0xFFFFFFFD 20 value required 20 cm offset valid set DATA 1 UINT32 A 20 add 20 cm offset send send message t...

Page 27: ...The timediff function returns the difference in milliseconds between the current timer value and timestamp value passed as an argument Function can handle timer overflows and will return correct time...

Page 28: ...m 0x1FD0A to 0x1FD06 set DATA 1 UINT32 0xFFFFFFFF Set the unused fields set DATA 5 UINT16 B 1000 Convert and set pressure send CAN1 Send Environmental Parameters to CAN1 set 0 UINT8 addr Replace the a...

Page 29: ...or init heartbeat is defined by the keyword heartbeat ms after which its subprogram follows in curly brackets Heartbeat requires integer parameter constant which specifies repeat interval in millisec...

Page 30: ...C A B F n F n 1 F n 2 log C write F n to log file produce next number each second so 45 in total heartbeat 1000 call calculate next Fibonacci number A B store F n 2 for the next round B C store F n 1...

Page 31: ...n y Returns an angle in radians Note feeding argument values outside of function domain yields zero Square root FLOAT sqrt z Note feeding negative value into sqrt yields zero 2 argument arctangent FLO...

Page 32: ...l reply and add OK to the Installation Description String 2 If there is an error in payload like invalid symbol or total hexits count exceeds 60 Device will reply with YD PARAM ERR You can enter hexit...

Page 33: ...fuel level via YD PARAM yy command where yy desired fuel level hexadecimal value in prepare PGN 127505 Fluid Level with 100 full diesel tank fluid instance 0 SLOT1 0111F219 FF 08 00A861FFFFFFFFFF mai...

Page 34: ...program output queue and then handing it over to the CAN controller to send The runtime for messages matching a filter of Example 2 is 240 microseconds and of Example 9 515 microseconds The total dela...

Page 35: ...ult all messages received on CAN1 will be dropped before they reach match filters which saves a lot of CPU resources 2 Use match instead of multiple if One may be tempted to use multiple if statements...

Page 36: ...uted 3 times which can be easily avoided A time get device uptime in ms B A 60000 convert to minutes C A 3600000 convert to hours If you have a lot of calculations in your program try to optimize them...

Page 37: ...eceive all three CAN messages first and only then transmit the assembled NMEA message to the program The time between receiving the first and third messages will be over 1000 microseconds the period i...

Page 38: ...t extract the card during recording as it will damage the card file system After specified amount of time log recording will stop and Device will produce a 3 second long RED flash indicating that all...

Page 39: ...ORMAT is set to BINARY CAN files will be recorded instead Those files will contain CAN bus data only All CAN frames received on CAN1 and CAN2 interfaces will be recorded regardless of the filters matc...

Page 40: ...with FAT or FAT32 file system copy BUPDATE BIN file to the card root folder power down NMEA 2000 insert card into Device power up NMEA 2000 From 5 15 seconds after powering on the LED will flash 5 ti...

Page 41: ...he chart plotter XII Program protection and encryption In case you develop programs for a third party equipment integration such equipment may have proprietary protocols and you may be under nondisclo...

Page 42: ...onnector One of the 2 flash LED indication sequence flash is always RED 1 No power supply on the bus Check if the bus power is supplied NMEA 2000 network requires a separate power connection and canno...

Page 43: ...plotter MFD while corresponding CAN interface state LED is GREEN There are problems in the NMEA 2000 network The network segment is not connected to the plotter or there are missing terminators in the...

Page 44: ...to another CAN interface by it The Device processes messages that are addressed to it after they have been processed by the program but independently of the program s results Device s replies to such...

Page 45: ...45 Appendix C Device Connectors Figure 1 NMEA 2000 connectors of the YDNB 07R left and YDNB 07N right models...

Page 46: ......

Reviews: