docs.unavlab.com

Main ❯ Underwater wireless voice systems ❯ RedPhone-DX: Communication protocol specification

ℹ Recommendations for printing / saving as PDF
  1. Press Ctrl+P (macOS: Cmd+P)
  2. Select "Save as PDF" (Microsoft Print to PDF) as the printer
  3. In "Pages", enter a range that excludes the first and the last page
  4. Disable headers and footers (title, URL, page numbers)
  5. In Chrome/Edge: More settings → "Margins" → None | in Firefox: "Margins & Header/Footer" → None
  6. Click Print and choose where to save the PDF
logo  
www.unavlab.com
support@unavlab.com
RedPhone-DX
Communication protocol specification

RedPhone-DX
Communication protocol specification

Contents

1. Introduction

1.1. Physical layer protocol

RedPhone-DX devices support data interfacing via the RS-232 physical layer standard for an asynchronous interface (UART) with a data line voltage of 3.3 V. The connection uses a four-wire cable with the wires Tx (transmitter), Rx (receiver), Vcc (power) and GND (ground). Without additional repeaters or interface converters, the maximum length of the data bus for which correct operation of the interface is guaranteed is no more than 2 m.

Default connection port settings1:

Baudrate: 9600 bit/s
Data bits: 8
Stop bits: 1
Parity: No
Hardware flow control: No

CAUTION! The data line voltage is 3.3 V.

1.2. NMEA0183 dialog layer protocol standard

The NMEA0183 standard describes the format of dialog layer text (ASCII) sentences.

Sentence example: $RPH0,1,0*hh<CR><LF>

The main elements of an NMEA0183 sentence (message):

2. RPH command system

The D2H prefix in a sentence name means that the sentence is sent from the Device to the Host (control system). The H2D prefix in a sentence name means that the sentence is sent from the Host (control system) to the Device.

2.1. IC_D2H_ACK

The IC_D2H_ACK sentence is the device’s response to a request received from the control system.

Sentence format: $RPH0,x,x*hh<CR><LF>

Field/Parameter Description
$ Sentence start ‘$’
PRPH RPH
0 Sentence ID
cmdID ID of the command being processed (the one the device responded to)
errCode Error code
* NMEA checksum delimiter
hh NMEA checksum
<CR><LF> End of sentence

2.2. IC_H2D_SETTINGS_WRITE

Writing new settings

Sentence format: $PRPH1,x,x,x,x*hh<CR><LF>

Field/Parameter Description
$ Sentence start ‘$’
PRPH RPH
1 Sentence ID
chNumber Receive and transmit channel ID
isRWLT RWLT tracking system compatibility mode flag
RWLT_Diver_ID Diver ID for operation with the RWLT system
RWLT_Channel_ID Channel ID for operation with the RWLT system
* NMEA checksum delimiter
hh NMEA checksum
<CR><LF> End of sentence

2.3. IC_H2D_DINFO_GET

Get information about the device. The device responds to this sentence with the IC_D2H_DINFO sentence.

Sentence format: $PRPH?,x*hh<CR><LF>

Field/Parameter Description
$ Sentence start ‘$’
PRPH RPH
? Sentence ID
Reserved Reserved
* NMEA checksum delimiter
hh NMEA checksum
<CR><LF> End of sentence

2.4. IC_D2H_DINFO

Device information

Sentence format: $PRPH!,c--c,c--c,x,c--c,c--c,x,x,x,x*hh<CR><LF>

Field/Parameter Description
$ Sentence start ‘$’
PRPH RPH
! Sentence ID
Serial number Device serial number
System moniker System name
System version Version
Core moniker Communication subsystem
Core version Communication subsystem version
acBaudrate Data rate, baud
rxChID Receive channel ID
txChID Transmit channel ID
channelID Receive/transmit channel ID
isRWLT RWLT tracking system compatibility mode flag
RWLT_Diver_ID Diver ID when operating with the RWLT system
RLWT_Channel_ID RWLT system channel ID
* NMEA checksum delimiter
hh NMEA checksum
<CR><LF> End of sentence
Error Value Description
LOC_ERR_NO_ERROR 0 Request accepted
LOC_ERR_INVALID_SYNTAX 1 Syntax error
LOC_ERR_UNSUPPORTED 2 Request not supported
LOC_ERR_TRANSMITTER_BUSY 3 Transmitter is busy
LOC_ERR_ARGUMENT_OUT_OF_RANGE 4 The specified parameter is outside the valid range
LOC_ERR_INVALID_OPERATION 5 Invalid request
LOC_ERR_UNKNOWN_FIELD_ID 6 Unknown identifier
LOC_ERR_VALUE_UNAVAILIBLE 7 The requested parameter is not available at the moment
LOC_ERR_CHKSUM_ERR 8 Checksum error

Back to contents