aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-02 17:24:49 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-11-27 17:54:20 +0100
commit08b14a2fac56f5b376822c6f9c6907aad2e6cb7b (patch)
treec91b47dd12b7591125fca9b036324ed78b684e9a /doc
parent5fd42960d665925d3e63d2aea00357b1857e2599 (diff)
Add DTX implementation details to RTP AMR
Add FSM and description. Change-Id: Ib37cb6e4038f970070c1715269961db7172ce377
Diffstat (limited to 'doc')
-rw-r--r--doc/manuals/dtx.dot65
-rw-r--r--doc/manuals/rtp-amr-docinfo.xml19
-rw-r--r--doc/manuals/rtp-amr.adoc18
3 files changed, 102 insertions, 0 deletions
diff --git a/doc/manuals/dtx.dot b/doc/manuals/dtx.dot
new file mode 100644
index 00000000..1c60ee72
--- /dev/null
+++ b/doc/manuals/dtx.dot
@@ -0,0 +1,65 @@
+digraph dtx_dl_amr_fsm {
+ node [shape = doublecircle] ST_VOICE ST_FACCH_V ST_FACCH ST_SID_U
+ node [shape = circle]
+
+ // default state for non-DTX and DTX when SPEECH is in progress
+ ST_VOICE -> ST_SID_F1 [ label = "E_SID_F" ]
+ ST_VOICE -> ST_SID_F1 [ label = "E_SID_U" ]
+ ST_VOICE -> ST_VOICE [ label = "E_VOICE" ]
+ ST_VOICE -> ST_VOICE [ label = "E_FACCH" ]
+
+ // SID-FIRST or SID-FIRST-P1 in case of AMR HR: start of silence period (might be interrupted in case of AMR HR)
+ ST_SID_F1 -> ST_SID_F1 [ label = "E_SID_F" ]
+ ST_SID_F1 -> ST_SID_U [ label = "E_SID_U" ]
+ ST_SID_F1 -> ST_VOICE [ label = "E_VOICE" ]
+ ST_SID_F1 -> ST_ONSET_F [ label = "E_FACCH" ]
+ ST_SID_F1 -> ST_SID_F2 [ label = "E_COMPL" ]
+ ST_SID_F1 -> ST_F1_INH [ label = "E_INHIB" ]
+ ST_SID_F1 -> ST_ONSET_V [ label = "E_ONSET" ]
+
+ // SID-FIRST P2 (only for AMR HR): actual start of silence period in case of AMR HR
+ ST_SID_F2 -> ST_SID_U [ label = "E_SID_U" ]
+ ST_SID_F2 -> ST_VOICE [ label = "E_VOICE" ]
+ ST_SID_F2 -> ST_ONSET_F [ label = "E_FACCH" ]
+ ST_SID_F2 -> ST_ONSET_V [ label = "E_ONSET" ]
+
+ // SID-FIRST Inhibited: incoming SPEECH or FACCH (only for AMR HR)
+ ST_F1_INH -> ST_VOICE [ label = "E_VOICE" ]
+ ST_F1_INH -> ST_FACCH_V [ label = "E_FACCH" ]
+
+ // SID-UPDATE Inhibited: incoming SPEECH or FACCH (only for AMR HR)
+ ST_U_INH -> ST_VOICE [ label = "E_VOICE" ]
+ ST_U_INH -> ST_FACCH [ label = "E_FACCH" ]
+
+ // Silence period with periodic comfort noise data updates
+ ST_SID_U -> ST_ONSET_F [ label = "E_FACCH" ]
+ ST_SID_U -> ST_VOICE [ label = "E_VOICE" ]
+ ST_SID_U -> ST_U_INH [ label = "E_INHIB" ]
+ ST_SID_U -> ST_SID_U [ label = "E_SID_U" ]
+ ST_SID_U -> ST_SID_U [ label = "E_SID_F" ]
+ ST_SID_U -> ST_ONSET_V [ label = "E_ONSET" ]
+
+ // ONSET - end of silent period due to incoming SPEECH frame
+ ST_ONSET_V -> ST_ONSET_V_REC [ label = "E_COMPL" ]
+
+ // ONSET - end of silent period due to incoming FACCH frame
+ ST_ONSET_F -> ST_ONSET_F_REC [ label = "E_COMPL" ]
+
+ // ONSET recursion in progress: ONSET itself was already sent, now have to send the voice that caused it
+ ST_ONSET_V_REC -> ST_VOICE [ label = "E_COMPL" ]
+
+ // ONSET recursion in progress: ONSET itself was already sent, now have to send the data that caused it
+ ST_ONSET_F_REC -> ST_FACCH [ label = "E_COMPL" ]
+
+ // FACCH sending state: SPEECH was observed before so once we're done FSM should get back to VOICE state
+ ST_FACCH_V -> ST_FACCH_V [ label = "E_FACCH" ]
+ ST_FACCH_V -> ST_VOICE [ label = "E_VOICE" ]
+ ST_FACCH_V -> ST_VOICE [ label = "E_SID_U" ]
+ ST_FACCH_V -> ST_SID_F1 [ label = "E_SID_F" ]
+
+ // FACCH sending state: no SPEECH was observed before so once we're done FSM should get back to silent period via SID-FIRST
+ ST_FACCH -> ST_FACCH [ label = "E_FACCH" ]
+ ST_FACCH -> ST_VOICE [ label = "E_VOICE" ]
+ ST_FACCH -> ST_SID_F1 [ label = "E_SID_U" ]
+ ST_FACCH -> ST_SID_F1 [ label = "E_SID_F" ]
+}
diff --git a/doc/manuals/rtp-amr-docinfo.xml b/doc/manuals/rtp-amr-docinfo.xml
index 82131c4d..fe5d6813 100644
--- a/doc/manuals/rtp-amr-docinfo.xml
+++ b/doc/manuals/rtp-amr-docinfo.xml
@@ -7,6 +7,14 @@
Initial version
</revremark>
</revision>
+ <revision>
+ <revnumber>2</revnumber>
+ <date>November 2016</date>
+ <authorinitials>MS</authorinitials>
+ <revremark>
+ FSM added
+ </revremark>
+ </revision>
</revhistory>
<authorgroup>
@@ -21,6 +29,17 @@
<jobtitle>Managing Director</jobtitle>
</affiliation>
</author>
+ <author>
+ <firstname>Max</firstname>
+ <surname>Suraev</surname>
+ <email>msuraev@sysmocom.de</email>
+ <authorinitials>MS</authorinitials>
+ <affiliation>
+ <shortaffil>sysmocom</shortaffil>
+ <orgname>sysmocom - s.f.m.c. GmbH</orgname>
+ <jobtitle>Software Developer</jobtitle>
+ </affiliation>
+ </author>
</authorgroup>
<copyright>
diff --git a/doc/manuals/rtp-amr.adoc b/doc/manuals/rtp-amr.adoc
index f6013036..f7eda112 100644
--- a/doc/manuals/rtp-amr.adoc
+++ b/doc/manuals/rtp-amr.adoc
@@ -1311,3 +1311,21 @@ msc {
ms <= phy [label="L1 burst (sub-block 4 of SID_FIRST_P1, sub-block 2 of SID_FIRST_P2)"];
}
----
+
+== Implementation details
+
+There is FSM implementing all the necessary states and transitions for DTX DL.
+
+[[dtx_dl_fsm]]
+[graphviz]
+----
+include::dtx.dot[]
+----
+
+The idea is that each state corresponds to the particular message type which have to be send to L1 while state transition happens on incoming events like FACCH or Voice frames. There are 3 different classes of of events driving this FSM:
+
+* Voice frame types: E_VOICE, E_SID_U, E_SID_F
+* Incoming FACCH: E_FACCH
+* Internal: E_ONSET, E_INHIB, E_COMPL
+
+They represent different types of incoming RTP frames (Voice, SID UPDATE and SID FIRST correspondingly), incoming FACCH events or important events internal to DTX operations. The latter are Onset (interruption of silence period), Inhibition (of currently transmitted SID FIRST or UPDATE) and Completion (of silence initiation). \ No newline at end of file