Commit 861bf1a0 authored by Andres Heinloo's avatar Andres Heinloo

Update protocol.rst

parent 4390eb99
......@@ -83,7 +83,55 @@ handshaking is shown in :ref:`seedlink-handshaking`.
.. figure:: Handshaking_flowchart.svg
Handshaking flowchart
Example v3 handshaking
^^^^^^^^^^^^^^^^^^^^^^
::
> HELLO\r\n
< SeedLink v3.0\r\n
< GEOFON\r\n
> BATCH\r\n
< ERROR\r\n
> STATION APE GE\r\n
< OK\r\n
> SELECT 00BH?.D\r\n
< OK\r\n
> DATA FF890D\r\n
< OK\r\n
> SATION WLF GE\r\n
< OK\r\n
> SELECT 00HH?.D\r\n
< OK\r\n
> DATA 51B73D\r\n
< OK\r\n
> END\r\n
Example v4 handshaking
^^^^^^^^^^^^^^^^^^^^^^
::
> HELLO\r\n
< SeedLink v4.0 :: SLPROTO:4.0 WEBSOCKET:13 MULTISTATION TIME EXTTIME EXTSEQ EXTDATA INFO:ID INFO:CAPABILITIES INFO:STATIONS INFO:STREAMS\r\n
< GEOFON\r\n
> ACCEPT 3 2\r\n
< OK\r\n
> STATION APE GE\r\n
< OK\r\n
> SELECT 00:BH?.D\r\n
< OK\r\n
> DATA 0000000016FF890D\r\n
< OK\r\n
> SATION WLF GE\r\n
< OK\r\n
> SELECT 00:HH?.D\r\n
< OK\r\n
> DATA 000000001551B73D\r\n
< OK\r\n
> END\r\n
Data Transfer
-------------
......@@ -92,7 +140,7 @@ legacy data mode, each packet consists of 8-byte SeedLink header followed by a
512-byte miniSEED record. The SeedLink header is an ASCII string consisting of
the letters "SL" followed by a six-digit hexadecimal packet sequence number.
In extended data mode {CAP:EXTDATA} |4|, enabled by the ACCEPT commend, each
In extended data mode {CAP:EXTDATA} |4|, enabled by the ACCEPT command, each
packet consists of 11-byte SeedLink header, followed by variable length data.
The SeedLink header consists of the letters "SE" followed by data format code
(1 byte) and binary, 64-bit, little-endian sequence number (8 bytes).
......@@ -219,9 +267,9 @@ List of capabilities
--------------------
SeedLink 3.x defined 2 sets of capabilities. The original GFZ version defined
"dialup", "multistation", "window-extraction", "info:id", "info:capabilities",
"info:stations", "info:streams", "info:gaps", "info:connections" and "info:all"
(lower-case), which were listed by the INFO CAPABILITIES command.
"dialup", "multistation", "window-extraction", "info\:id", "info\:capabilities",
"info\:stations", "info\:streams", "info\:gaps", "info\:connections" and
"info\:all" (lower-case), which were listed by the INFO CAPABILITIES command.
The IRIS DMC version defined "SLPROTO", "CAP", "EXTREPLY", "NSWILDCARD",
"BATCH" and "WS", which were added to HELLO response.
......@@ -282,7 +330,7 @@ EXTDATA |4|
Extended data mode (ACCEPT) and long network, station, localtion and channel
identifiers (incl. ":" and "-" special characters with SELECT).
INFO:level
INFO\:level
INFO level, where level is "ID", "CAPABILITIES", "STATIONS", "STREAMS",
"GAPS", "CONNECTIONS", "ALL".
......@@ -298,6 +346,6 @@ multistation
window-extraction
TIME and start_time of DATA/FETCH
info:level
info\:level
INFO level, where level is "id", "capabilities", "stations", "streams",
"gaps", "connections", "all".
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment