1. Catalogs
  2. FAFNIR GmbH
  3. FAFNIR Universal Device Protocol (UDP)
video corpo

FAFNIR Universal Device Protocol (UDP)

FAFNIR Universal Device Protocol (UDP)
1 / 30 PagesView full catalog

FAFNIR Universal Device Protocol (UDP)

Product catalog summary
FAFNIR Universal Device Protocol Overview
This document provides a comprehensive guide to the FAFNIR Universal Device Protocol, detailing its specifications, message dialogues, and data fields. The protocol is designed for communication with various device types, supporting both static and dynamic data exchanges.
Interface Specifications
The protocol uses RS-485 modulation with asynchronous, half-duplex mode. It supports baud rates of 1200 bps and 4800 bps, with specific timing conditions for character transmission and response timeouts. The host system must manage the RS-485 driver state effectively.
Abbreviations and Formats
Key abbreviations include F, G, X, Y for message headers, AC for multiplexer board address and channel, D for device type, and SN for serial number. The document specifies the format for decimal and hex values, as well as checksum calculations using CRC16.
Message Dialogues
The protocol supports static and dynamic data requests. Static data can be read or written, with optional inclusion of serial numbers for devices on the same VPI channel. Dynamic data requests follow a similar structure, with specific examples provided for both standard and optional requests.
Device Types
The document lists various device types supported by the protocol, including VISY-Stick, VISY-Input, VISY-Output, and others, each with specific data field requirements.
Data Fields
Static and dynamic data fields are detailed, with identifiers and values for each device type. The document explains how to read and write these fields, including handling execution errors.
CRC Calculation
Attachment A provides examples of CRC calculation routines in Pascal and Visual Basic, essential for ensuring message integrity.
Supported Data Fields
Attachment B lists all supported data fields for different device types, ensuring comprehensive protocol implementation.
Dynamic Data Read and Write
The document outlines the procedures for reading and writing dynamic data in devices using the FAFNIR Universal Device Protocol V1.09. Dynamic data read responses can be standard or optional, with the latter including a serial number. Writing dynamic data involves sending new values to writable fields, with responses indicating current values. Most devices do not respond to write requests, and many data IDs are read-only. If execution is not possible, a response with a value of "minus zero" is returned.
Device Types
Devices are identified by unique type IDs, with specific IDs assigned to different device types such as VISY-Stick, VISY-Output, and Pressure Sensor. Some IDs are reserved for future expansions.
Data Fields
Data fields consist of an ID and a value, with static and dynamic data fields using the same IDs but differing in meaning. Static data fields are generally read-only, while dynamic data fields can be writable. The document provides detailed descriptions of various data fields, including their IDs, descriptions, valid ranges, and examples of data transfer formats.
Static Data Fields
These fields include serial numbers, density module positions, hold times after communication loss, probe lengths, option flags, protocol versions, maximum distances, temperature sensor positions, device sub-types, and firmware versions. Each field has specific characteristics and valid ranges.
Dynamic Data Fields
Dynamic fields report device status, alarms, battery status, channel data, density, and events. Each field is described with its resolution, valid range, and applicable device types. Some fields are only included if certain conditions are met, such as active alarms or wireless connections.
Overview
The document outlines the FAFNIR Universal Device Protocol V1.09, detailing the dynamic data fields and their specifications for various device types such as VISY-Stick, VISY-Sludge, and Pressure Sensors. It includes information on data field IDs, descriptions, resolutions, valid ranges, and examples of data transfer formats.
Dynamic Data Fields
  • Field Strength ('f'): Measures wireless receiver field strength, with a resolution of 1 and a valid range of 0-5. Available since protocol version 1.00.
  • Pressure ('i'): Represents measured pressure/vacuum with resolution depending on the sensor type. Available since protocol version 1.04.
  • Age Of Data ('o'): Indicates data age with a resolution of 1 second and a valid range of 1-604800 seconds. Available since protocol version 1.00.
  • Product Level ('p'): Represents product level with a resolution of 1 µm and a valid range of 0-65535 mm. Available since protocol version 1.00.
  • Distance ('s'): Measures distance from the sensor to the reflection surface with a resolution of 0.1 mm. Available since protocol version 1.08.
  • Temperature ('t'): Represents temperature with a resolution of 0.001 °C and a valid range of -99.999 to 999.999 °C. Available since protocol version 1.00.
  • Water Level ('w'): Represents water level with a resolution of 0.1 mm and a valid range of 0-65535 mm. Available since protocol version 1.00.
CRC Calculation
The document provides routines for CRC calculation in C, Pascal, and Visual Basic, demonstrating how to compute CRC16 for data integrity verification.
Supported Data Fields
Tables are provided showing which static and dynamic data fields are supported by each device type. Static data fields include serial number, firmware version, and protocol version, while dynamic data fields cover aspects like product level, water level, and temperature.
See more

Catalog excerpts

FAFNIR Universal Device Protocol (UDP)-1

Technical Documentation FAFNIR Universal Device Protocol

 Open the catalog to page 1
FAFNIR Universal Device Protocol (UDP)-2

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 2
FAFNIR Universal Device Protocol (UDP)-3

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 3
FAFNIR Universal Device Protocol (UDP)-4

Page 4/30 FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 4
FAFNIR Universal Device Protocol (UDP)-5

1 Interface Modulation: Signals: Mode: Baud rate: Start-bits: Data-bits: Stop-bits: Parity: Timing conditions: The time to transmit one character depends on the baud rate (4800 bps: 2 ms, 1200 bps: 8 ms). Since the processing time for the answer or the next command can be assumed to be the same for both speeds, timeouts are doubled for 1200 bps and set into brackets. If the first character of the response is not received within 50 ms (100 ms) or more, the next command can be send. The transmission should be continuous. The inter-character delay must be shorter than 20 ms (40 ms). The host system...

 Open the catalog to page 5
FAFNIR Universal Device Protocol (UDP)-6

N...N - Decimal integer value with variable field width, ASCII coded, all negative values have a as prefix, all positive values (including 0) have no prefix. A value of -0 indicates that due to an error this value is currently not available. X...X - Hex value with variable field width, ASCII coded. Hex value letter characters have to be in uppercase format, i.e. 'A'...'F'. A value of "-0" indicates that due to an error this value is currently not available. cs - Checksum To be able to detect messages that have been corrupted during the transmission a CRC16 checksum is included in the request...

 Open the catalog to page 6
FAFNIR Universal Device Protocol (UDP)-7

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 7
FAFNIR Universal Device Protocol (UDP)-8

FAFNIR 3.2 Static data There are message dialogues for reading and writing static data. These dialogues are described in the following sub-chapters. 3.2.1 Read static data The device that receives a static data read request will send a static data read response that contains all static data fields (<ID><Value>) supported by the device. Static data read request Standard static data read request: G AC D : cs cs cr Example: Board Address = 1, Channel = 2 ^AC = 01H Device Type = 'a' G 0 1 a : 2 A cr 47H, 30H, 31H, 61H, 3AH, 32H, 41H, 0DH Optional static data read request: (like "Standard",...

 Open the catalog to page 8
FAFNIR Universal Device Protocol (UDP)-9

3.2.2 Write static data The static data write request is used to write new values into one or more static data fields of the addressed device. If a received static data field is writable and the received value for this data field is within the defined valid range the device will overwrite the existing value with the new value. In the static data write response, the device will include all static data IDs that have been received. The values returned are the current values of the device. Note that most devices will not respond to a static data write request and also that most of the static data...

 Open the catalog to page 9
FAFNIR Universal Device Protocol (UDP)-10

Static data write response Standard static data write response: X AC D <ID1> <VALUE1> ... <IDn> <VALUEn> : cs cs cs cs cr Optional static data write response: X AC D # SN <ID1> <VALUE1> ... <IDn> <VALUEn> : cs cs cs cs cr 3.3 Dynamic data There are message dialogues for reading and writing dynamic data. These dialogues are described in the following sub-chapters. 3.3.1 Read dynamic data The device that receives a dynamic data read request will send a dynamic data read response that contains all dynamic data fields (<ID><Value>) supported by the device. Dynamic data read request Standard dynamic...

 Open the catalog to page 10
FAFNIR Universal Device Protocol (UDP)-11

Dynamic data read response Standard dynamic data read response: F AC D <ID1> <VALUE1> ... <IDn> <VALUEn> : cs cs cs cs cr Optional read dynamic data read response: F AC D # SN <ID1> <VALUE1> ... <IDn> <VALUEn> : cs cs cs cs cr 3.3.2 Write dynamic data The dynamic data write request is used to write new values into one or more dynamic data fields of the addressed device. If a received dynamic data field is writable and the received value for this data field is within the defined valid range the device will overwrite the existing value with the new value. In the dynamic data write response, the...

 Open the catalog to page 11
FAFNIR Universal Device Protocol (UDP)-12

Y 8 A o # 3 7 3 1 c 0 : 4 9 cr 59H, 38H, 41H, 6FH, 23H, 33H, 37H, 33H, 31H, 63H, 30H, 3AH, 34H, 39H, Dynamic data write response Standard dynamic data write response: Y AC D <ID1> <VALUE1> ... <IDn> <VALUEn> : cs cs cs cs cr Optional dynamic data write response: (like "Standard", but including the "serial number data field") Y AC D # SN <ID1> <VALUE1> ... <IDn> <VALUEn> : cs cs cs cs cr FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 12
FAFNIR Universal Device Protocol (UDP)-13

Device types The different device types that the protocol can handle are identified by a unique device type ID. The following table shows the currently defined device types. Device type IDs ID VISY-Stick or TORRIX … Available since protocol version: 1.00 VISY-Stick/Reed Interstitial Available since protocol version: 1.00 VISY-Stick/Reed Sump Manhole Available since protocol version: 1.00 VISY-Stick/Reed Sump Dispenser Available since protocol version: 1.00 VISY-Stick Density Only Available since protocol version: 1.00 VISY-Stick Oil Separator Available since protocol version: 1.01 Free for future...

 Open the catalog to page 13
FAFNIR Universal Device Protocol (UDP)-14

Notes on interpreting data fields: The sequence and number of the data fields (consisting of ID and value) in the response messages is not fixed. Exception: Serial number data field. If the serial number data field is included, it follows directly the device type character (D) and its meaning is common for both, static and dynamic data responses. Static and dynamic data responses use the same IDs but with different meaning. If unknown IDs are present in a response message these IDs and the corresponding values should be ignored. The field width of the individual values is not fixed. So, when...

 Open the catalog to page 14
FAFNIR Universal Device Protocol (UDP)-15

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 15
FAFNIR Universal Device Protocol (UDP)-16

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 16
FAFNIR Universal Device Protocol (UDP)-17

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 17
FAFNIR Universal Device Protocol (UDP)-18

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 18
FAFNIR Universal Device Protocol (UDP)-19

FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 19
FAFNIR Universal Device Protocol (UDP)-20

Dynamic data fields are reported in the response to a dynamic data read request. In general, the dynamic data are read-only. Writable data fields have a special note in the description. The following table shows the currently defined dynamic data fields. FAFNIR Universal Device Protocol V1.09

 Open the catalog to page 20

All FAFNIR GmbH catalogs and technical brochures

  1. TORRIX XTS

    2  Pages

  2. TORRIX 6

    1  Page

  3. LPG Sensors

    8  Pages

  4. SEPARIX

    8  Pages

  5. O²-PID

    4  Pages

  6. QE 200

    4  Pages

  7. UM 2.1/2.2/2.3

    20  Pages

  8. TORRIX HART

    28  Pages

  9. TORRIX M12

    40  Pages

  10. LS 300 / 500

    7  Pages

  11. 76 A / NB 220

    5  Pages

  12. SECON-X

    4  Pages

  13. PRESSURIX

    12  Pages

  14. Insite360

    4  Pages

  15. Plugs

    12  Pages

  16. TORRIX-HART

    28  Pages

  17. DIVELIX

    8  Pages

  18. CONDURIX-HART

    28  Pages

  19. CONDURIX

    24  Pages

  20. VAPORIX

    12  Pages

  21. VISY-X

    24  Pages

  22. Accessories

    3  Pages

  23. VISY-Reed

    4  Pages

  24. VISY-RF

    2  Pages

  25. VISY-Stick

    15  Pages

  26. TORRIX

    10  Pages

  27. TORRIX CI

    1  Page

  28. TORRIX RS485

    3  Pages

  29. TEMPERIX

    8  Pages

  30. VISY-Command

    5  Pages

  31. LPG-Sensoren

    8  Pages

*Prices are pre-tax. They exclude delivery charges and customs duties and do not include additional charges for installation or activation options. Prices are indicative only and may vary by country, with changes to the cost of raw materials and exchange rates.