Skip to content

Commit

Permalink
Merge pull request #11 from colisee/master
Browse files Browse the repository at this point in the history
Miscellaneous improvements
  • Loading branch information
mpbraendli authored Aug 9, 2023
2 parents 1224aa3 + c2290b2 commit cb7e62b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 23 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
branches:
- 'master'
paths-ignore:
- 'README.md'
- 'Makefile'
- 'LICENSE.txt'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -44,10 +48,10 @@ jobs:
# Commit mmbtools.pdf
- name: commit-pdf
run: |
git config user.name github-actions
git config user.email github[email protected]
git config user.name "Open Digital Radio"
git config user.email github@opendigitalradio.org
git add -f mmbtools.pdf
git commit -m "generated"
git commit -m "generated by github action build-pdf"
working-directory: gh-pages

- name: push-pdf
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ vc.tex: .git/logs/HEAD
\\gdef\\GITAuthorName{%an}" >> vc.tex

clean:
rm -f *.aux $(latexfile).{pdf,out,toc,log,bbl,blg}

rm -f *.aux $(latexfile).{pdf,out,toc,log,bbl,blg} vc.tex
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ global perspective.

It also complements the opendigitalradio.org wiki.

How to build locally
--------------------

The pdf document will always be created automatically by the github repository upon a push.
However, it can be interesting to create the pdf on your host, in order to check the outcome of your changes prior to pushing them to the repository.

On your debian-based host:
1. Install the packages: `make texlive texlive-fonts-extra texlive-latex-extra texlive-science cm-super`
1. Run the following command: `make clean && make`

Latest Version
--------------

Expand Down
10 changes: 5 additions & 5 deletions appendix.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ \section{ODR-DabMux ETI file formats}

The \emph{framed} format is used for saving a finite ETI stream into a file. Each frame does not contain any padding, and the
format can be described as follows:
\begin{lstlisting}
\begin{lstlisting}[language=C]
uint32_t nbFrames
// for each frame
uint16_t frameSize
Expand All @@ -18,15 +18,15 @@ \section{ODR-DabMux ETI file formats}

When streaming data, in which case the number of frames is not known in advance, the \emph{streamed} format can be used.
This format is identical to the first one except for the missing \texttt{nbFrames}.
\begin{lstlisting}
\begin{lstlisting}[language=C]
// for each frame
uint16_t frameSize
uint8_t data[frameSize]
\end{lstlisting}

The \emph{raw} format corresponds to ETI(NI), where each frame has a constant size of 6144 Bytes. The padding in this
case is necessary.
\begin{lstlisting}
\begin{lstlisting}[language=C]
// for each frame
uint8_t data[6144]
\end{lstlisting}
Expand All @@ -40,7 +40,7 @@ \section{Additional EDI TAGs used}
ODR defined and uses two additional EDI TAGs, whose content is described here.

ODR-AudioEnc inserts audio level metadata into the ``ODRa'' TAG. The TAG item is in the following format:
\begin{lstlisting}
\begin{lstlisting}[language=C]
TAG Name="ODRa" [4 bytes]
Length=4 [4 bytes]
Left Audio Level [signed 16-bit integer]
Expand All @@ -49,7 +49,7 @@ \section{Additional EDI TAGs used}


The second EDI TAG ``ODRv'' contains version and uptime information for the EDI source.
\begin{lstlisting}
\begin{lstlisting}[language=C]
TAG Name="ODRv" [4 bytes]
Length=N+4 [4 bytes]
Version [String of N bytes, UTF-8 encoded, not zero terminated]
Expand Down
5 changes: 2 additions & 3 deletions mmbtools.tex
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,10 @@

\begin{document}
\lstset{
language=C, % Code langugage
basicstyle=\ttfamily, % Code font, Examples: \footnotesize, \ttfamily
basicstyle=\ttfamily,columns=flexible, % Code font, Examples: \footnotesize, \ttfamily
keywordstyle=\color{OliveGreen}, % Keywords font ('*' = uppercase)
commentstyle=\color{gray}, % Comments font
numbers=left, % Line nums position
numbers=none, % Line nums position
numberstyle=\tiny, % Line-numbers fonts
stepnumber=1, % Step between two line-numbers
numbersep=5pt, % How far are line-numbers from code
Expand Down
20 changes: 10 additions & 10 deletions systemenvironments.tex
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ \subsubsection{Installation of the Xymon Client}
Create a new file named \verb+odrmux.cfg+ in
\verb+/usr/lib/xymon/client/etc/clientlaunch.d+ containing the following lines:
\begin{verbatim}
\begin{lstlisting}
#
# Test odrmux checks the state and the statistics
# of the ODR-DabMux service.
Expand All @@ -240,7 +240,7 @@ \subsubsection{Installation of the Xymon Client}
CMD $XYMONCLIENTHOME/ext/retodrs.pl
LOGFILE $XYMONCLIENTLOGS/retodrs.plog
INTERVAL 5m
\end{verbatim}
\end{lstlisting}
After a restart of the xymon client, the script \verb+retodrs.pl+ will
be invoked once every 5 minutes.
Expand All @@ -254,9 +254,9 @@ \subsubsection{Server Configuration}
hosts-entry in the configuration file \verb+/usr/lib/xymon/server/etc/hosts.cfg+.
The additional tag is:
\begin{verbatim}
\begin{lstlisting}
ODR:select(<SubChannelName0>;<SubChannelName1>;...)
\end{verbatim}
\end{lstlisting}
The sub-channels not named will still be shown, but no alerts will be generated
for those sub-channels. This is visible as the green/yellow/red icons are
Expand All @@ -276,16 +276,16 @@ \subsubsection{Server Configuration}
named \verb+odr.cfg+ in \verb+/usr/lib/xymon/server/etc/xymonserver.d+
containing the following lines:
\begin{verbatim}
\begin{lstlisting}
TEST2RRD+=",odr_mux=devmon"
GRAPHS+=",odr_mux::1"
\end{verbatim}
\end{lstlisting}
The next step is to define the layout of the graph.
Create a file named \verb+graphs.odr.cfg+ in
\verb+/usr/lib/xymon/server/etc/graphs.d+ containing the following lines:
\begin{verbatim}
\begin{lstlisting}
#
# Graphs to show the statistics collected from an
# Opendigitalradio DabMux server.
Expand All @@ -307,7 +307,7 @@ \subsubsection{Server Configuration}
GPRINT:or@RRDIDX@:MAX:Max \: %5.1lf %s
GPRINT:or@RRDIDX@:AVERAGE:Avg \: %5.1lf %s
GPRINT:or@RRDIDX@:LAST:Cur \: %5.1lf %s\n
\end{verbatim}
\end{lstlisting}
\subsection{Real-time Scheduling}
Expand Down Expand Up @@ -344,14 +344,14 @@ \subsection{Authentication Support}
by third parties. Usually, some form of VPN is set up for this case.
{ \footnotesize
\begin{verbatim}
\begin{lstlisting}
#USRP1
SUBSYSTEMS=="usb", ATTRS{idVendor}=="fffe", ATTRS{idProduct}=="0002", MODE:="0666"
#B100
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0002", MODE:="0666"
#B200
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0020", MODE:="0666"
\end{verbatim}
\end{lstlisting}
}
% vim: spl=en spell tw=80 et

0 comments on commit cb7e62b

Please sign in to comment.