add in codeplug, update index

pull/5/head
kc1awv 2020-09-29 07:02:43 -04:00
rodzic 4664b9eaea
commit b7017d4818
4 zmienionych plików z 99 dodań i 28 usunięć

Wyświetl plik

@ -1,14 +0,0 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker-user
password:
from_secret: docker-password
custom_dns: [ 192.168.1.1 ]
repo: registry.m17project.org/m17/m17-spec
registry: registry.m17project.org
tags: latest

Wyświetl plik

@ -1,13 +0,0 @@
FROM alpine
RUN apk add git
RUN git clone https://git.m17project.org/m17/M17_spec.git
FROM sphinxdoc/sphinx
COPY --from=0 M17_spec /docs
RUN pip install -r docs/requirements.txt
RUN cd docs && make html
FROM nginx:alpine
COPY --from=1 /docs/docs/_build/html /usr/share/nginx/html

93
docs/codeplug.rst 100644
Wyświetl plik

@ -0,0 +1,93 @@
Recommendation for the codeplug structure
*****************************************
Introduction
############
Codeplugs are ordinary text files with *.m17* extension. They provide an information on:
* channel banks
* channel frequencies
* destination IDs
* transmission mode
* payload type
* encryption mode
Codeplugs should be human-readable and easily editable with common text editors.
Codeplug file structure
#######################
We recommend using YAML for the codeplug files.
Keywords
--------
**codeplug:**
**author:**
String - Codeplug author, max 16 characters
**version:**
Date and time in YYYY-MM-DDTHH:MM:SS format
**bank:**
**name:**
String - Channel bank name, 16 characters maximum
**channel:**
**name:**
String - Channel name, 16 characters maximum
**descr:**
String - Channel Description, 16 characters maximum
**freq_rx:**
Integer - Channel RX Frequency in Hz
**freq_tx:**
Integer - Channel TX Frequency in Hz
**mode:**
Integer - Channel mode. Valid modes are: 0 - Analog, 1 - Digital Voice, 2 - Digital Data, 3 - Digital Voice and Data
**encr:**
Integer - Is encryption enabled? 0 for no encryption, 1 - AES256, 2 - scrambler etc. (refer to M17_spec for details)
**nonce:**
String - 14-byte hex value without leading 0x. nonce for ciphers or initial LFSR value for scrambler
**gps:**
Boolean - If true, and mode value enables digital data, gps data will be transferred along with payload
Example Codeplug
################
::
codeplug:
author: SP5WWP
version: 2020-28-09T13:20:49
- bank:
name: M17
- channel:
name: M17_DMO
descr:
freq_rx: 439575000
freq_tx: 439575000
mode: 2
encr: 0
nonce: 0
gps: false
- channel:
name: M17_DMO_2
descr:
freq_rx: 439975000
freq_tx: 439975000
mode: 2
encr: 0
nonce: 0
gps: false
- bank:
name: Repeaters
- channel:
name: SR5MS
descr:
freq_rx: 439425000
freq_tx: 431825000
mode: 2
encr: 0
nonce: 0
gps: false
#codeplug end

Wyświetl plik

@ -3,7 +3,7 @@ M17 Protocol Specification
.. toctree::
:maxdepth: 2
:caption: Contents:
:caption: Part I - Air and IP Interface:
summary
glossary
@ -11,6 +11,11 @@ M17 Protocol Specification
data_link_layer
application_layer
.. toctree::
:maxdepth: 2
:caption: Part II - Codeplug:
codeplug
.. raw:: latex