--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/README.md Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,2 @@
+# CRYVISIL
+Control System for CRYVISIL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/code/configs/dhcpd.conf Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,52 @@
+ddns-update-style none;
+default-lease-time 8000;
+max-lease-time 9000;
+authoritative;
+
+# Use this to send dhcp log messages to a different log file (you also
+# have to hack syslog.conf to complete the redirection).
+log-facility local7;
+
+option domain-name "ERC-STM-LAN";
+option ntp-servers 10.20.30.1;
+option domain-name-servers 141.14.128.1;
+next-server 10.20.30.1;
+
+shared-network ERC-STM-LAN {
+ subnet 10.20.30.0 netmask 255.255.255.0 {
+ option subnet-mask 255.255.255.0;
+ option broadcast-address 10.20.30.255;
+ option routers 10.20.30.1;
+option domain-name-servers 141.14.128.1;
+ default-lease-time 3600;
+ max-lease-time 4000;
+ pool {
+ range 10.20.30.30 10.20.30.40;
+ # ignore unknown-clients;
+ }
+
+ group {
+
+ host mvme6100 {
+ hardware ethernet ec:9e:cd:10:18:82;
+ fixed-address 10.20.30.91;
+ filename "rtems.boot";
+ }
+ # Heinz's lenovo
+ host earth { hardware ethernet 54:ee:75:1d:8d:7a; fixed-address 10.20.30.50; }
+
+ host moxa01 { hardware ethernet 00:90:e8:54:2e:71; fixed-address 10.20.30.100; }
+ host vmeCrate01 { hardware ethernet 30:32:94:00:03:34; fixed-address 10.20.30.101; }
+ host moxa02 { hardware ethernet 00:90:e8:54:2e:5f; fixed-address 10.20.30.102; }
+
+# 128,129 -> netapp
+ host blackbox {
+ hardware ethernet 00:04:A7:09:B8:98;
+ fixed-address 10.20.30.80;
+ # option routers 10.20.30.1;
+ # filename "blackbox.pxe";
+ # server-name "10.20.30.1";
+ }
+ } # end group
+ } # end 10.20.30.0/24
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/code/configs/iptables.rules Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,18 @@
+# Generated by iptables-save v1.4.21 on Thu Feb 11 17:31:00 2016
+*filter
+:INPUT ACCEPT [6233:826839]
+:FORWARD ACCEPT [0:0]
+:OUTPUT ACCEPT [524:78077]
+-A FORWARD -i em1 -o p2p1 -m state --state RELATED,ESTABLISHED -j ACCEPT
+-A FORWARD -i p2p1 -o em1 -j ACCEPT
+COMMIT
+# Completed on Thu Feb 11 17:31:00 2016
+# Generated by iptables-save v1.4.21 on Thu Feb 11 17:31:00 2016
+*nat
+:PREROUTING ACCEPT [2598:225136]
+:INPUT ACCEPT [2048:168497]
+:OUTPUT ACCEPT [13:945]
+:POSTROUTING ACCEPT [0:0]
+-A POSTROUTING -o em1 -j MASQUERADE
+COMMIT
+# Completed on Thu Feb 11 17:31:00 2016
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/code/inits/ptpd2 Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: ptpd2
+# Required-Start: $network $remote_fs $syslog
+# Required-Stop: $network $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:
+# Short-Description: Start PTP daemon
+### END INIT INFO
+
+PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
+
+. /lib/lsb/init-functions
+
+DAEMON=/usr/local/sbin/ptpd2
+PIDFILE=/var/run/ptpd2.pid
+
+test -x $DAEMON || exit 5
+
+if [ -r /etc/default/ptpd2 ]; then
+ . /etc/default/ptpd2
+fi
+
+LOCKFILE=/var/lock/ptpd2
+
+if test "$(uname -s)" = "Linux"; then
+ PTPD2_OPTS="$PTPD2_OPTS -l $LOCKFILE"
+fi
+
+case $1 in
+ start)
+ log_daemon_msg "Starting ptpd2 server" "ptpd2"
+ start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON -- $PTPD2_OPTS
+ status=$?
+ log_end_msg $status
+ ;;
+ stop)
+ log_daemon_msg "Stopping ptpd2 server" "pdpd2"
+ start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
+ log_end_msg $?
+ rm -f $PIDFILE
+ ;;
+ restart|force-reload)
+ $0 stop && sleep 2 && $0 start
+ ;;
+ try-restart)
+ if $0 status >/dev/null; then
+ $0 restart
+ else
+ exit 0
+ fi
+ ;;
+ reload)
+ exit 3
+ ;;
+ status)
+ status_of_proc $DAEMON "PTPD2 server"
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
+ exit 2
+ ;;
+esac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/Makefile Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,229 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS =
+SPHINXBUILD = sphinx-build
+SPHINXPROJ = Cryvisil
+PAPER =
+BUILDDIR = _build
+PDFBUILDDIR = /tmp
+PDF = cryvisil.pdf
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+
+.PHONY: help
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " singlehtml to make a single large HTML file"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " applehelp to make an Apple Help Book"
+ @echo " devhelp to make HTML files and a Devhelp project"
+ @echo " epub to make an epub"
+ @echo " epub3 to make an epub3"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
+ @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
+ @echo " text to make text files"
+ @echo " man to make manual pages"
+ @echo " texinfo to make Texinfo files"
+ @echo " info to make Texinfo files and run them through makeinfo"
+ @echo " gettext to make PO message catalogs"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " xml to make Docutils-native XML files"
+ @echo " pseudoxml to make pseudoxml-XML files for display purposes"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+ @echo " coverage to run coverage check of the documentation (if enabled)"
+ @echo " dummy to check syntax errors of document sources"
+
+.PHONY: clean
+clean:
+ rm -rf $(BUILDDIR)/*
+
+.PHONY: html
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+.PHONY: dirhtml
+dirhtml:
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+.PHONY: singlehtml
+singlehtml:
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+ @echo
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+.PHONY: pickle
+pickle:
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+.PHONY: json
+json:
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+.PHONY: htmlhelp
+htmlhelp:
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+.PHONY: qthelp
+qthelp:
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/CRYVISIL_Control.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/CRYVISIL_Control.qhc"
+
+.PHONY: applehelp
+applehelp:
+ $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
+ @echo
+ @echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
+ @echo "N.B. You won't be able to view it unless you put it in" \
+ "~/Library/Documentation/Help or install it in your application" \
+ "bundle."
+
+.PHONY: devhelp
+devhelp:
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+ @echo
+ @echo "Build finished."
+ @echo "To view the help file:"
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/CRYVISIL_Control"
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/CRYVISIL_Control"
+ @echo "# devhelp"
+
+.PHONY: epub
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+ @echo
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+.PHONY: epub3
+epub3:
+ $(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3
+ @echo
+ @echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3."
+
+.PHONY: latex
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
+ "(use \`make latexpdf' here to do that automatically)."
+
+.PHONY: latexpdf
+latexpdf:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(PDFBUILDDIR)/latex
+ @echo "Running LaTeX files through pdflatex..."
+ $(MAKE) -C $(PDFBUILDDIR)/latex all-pdf
+ cp $(PDFBUILDDIR)/latex/*.pdf $(PDF)
+ @echo "pdflatex finished; see $(PDF)."
+
+.PHONY: latexpdfja
+latexpdfja:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through platex and dvipdfmx..."
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+.PHONY: text
+text:
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+ @echo
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+.PHONY: man
+man:
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+ @echo
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+.PHONY: texinfo
+texinfo:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo
+ @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
+ @echo "Run \`make' in that directory to run these through makeinfo" \
+ "(use \`make info' here to do that automatically)."
+
+.PHONY: info
+info:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo "Running Texinfo files through makeinfo..."
+ make -C $(BUILDDIR)/texinfo info
+ @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
+
+.PHONY: gettext
+gettext:
+ $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+ @echo
+ @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
+
+.PHONY: changes
+changes:
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+ @echo
+ @echo "The overview file is in $(BUILDDIR)/changes."
+
+.PHONY: linkcheck
+linkcheck:
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/linkcheck/output.txt."
+
+.PHONY: doctest
+doctest:
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+ @echo "Testing of doctests in the sources finished, look at the " \
+ "results in $(BUILDDIR)/doctest/output.txt."
+
+.PHONY: coverage
+coverage:
+ $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
+ @echo "Testing of coverage in the sources finished, look at the " \
+ "results in $(BUILDDIR)/coverage/python.txt."
+
+.PHONY: xml
+xml:
+ $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
+ @echo
+ @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
+
+.PHONY: pseudoxml
+pseudoxml:
+ $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
+ @echo
+ @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
+
+.PHONY: dummy
+dummy:
+ $(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
+ @echo
+ @echo "Build finished. Dummy builder generates no files."
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/algorithm.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,10 @@
+---------
+Algorithm
+---------
+
+This is the part of Patrik
+
+.. toctree::
+
+ algorithm/wavelets
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/algorithm/wavelets.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,3 @@
+--------
+Wavelets
+--------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/conf.py Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,348 @@
+# -*- coding: utf-8 -*-
+#
+# CRYVISIL_Control documentation build configuration file, created by
+# sphinx-quickstart on Thu Jul 14 13:53:34 2016.
+#
+# This file is execfile()d with the current directory set to its
+# containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#
+#import os
+#import sys
+#sys.path.insert(0, os.path.abspath('.'))
+
+# -- General configuration ------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#
+# needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be
+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
+# ones.
+extensions = [
+ 'sphinx.ext.autodoc',
+ 'sphinx.ext.graphviz',
+ 'sphinxcontrib.plantuml',
+]
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix(es) of source filenames.
+# You can specify multiple suffix as a list of string:
+#
+# source_suffix = ['.rst', '.md']
+source_suffix = '.rst'
+
+# The encoding of source files.
+#
+# source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'CRYVISIL_Control'
+copyright = u'2016, Heinz Junkes'
+author = u'Heinz Junkes'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = u'0.1'
+# The full version, including alpha/beta/rc tags.
+release = u'0.1'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#
+# This is also used if you do content translation via gettext catalogs.
+# Usually you set "language" from the command line for these cases.
+language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#
+# today = ''
+#
+# Else, today_fmt is used as the format for a strftime call.
+#
+# today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+# This patterns also effect to html_static_path and html_extra_path
+exclude_patterns = []
+
+# The reST default role (used for this markup: `text`) to use for all
+# documents.
+#
+# default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#
+# add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#
+# add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#
+# show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+# modindex_common_prefix = []
+
+# If true, keep warnings as "system message" paragraphs in the built documents.
+# keep_warnings = False
+
+# If true, `todo` and `todoList` produce output, else they produce nothing.
+todo_include_todos = False
+
+
+# -- Options for HTML output ----------------------------------------------
+
+# The theme to use for HTML and HTML Help pages. See the documentation for
+# a list of builtin themes.
+#
+html_theme = 'nature'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further. For a list of options available for each theme, see the
+# documentation.
+#
+# html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+# html_theme_path = []
+
+# The name for this set of Sphinx documents.
+# "<project> v<release> documentation" by default.
+#
+# html_title = u'CRYVISIL_Control v0.1'
+
+# A shorter title for the navigation bar. Default is the same as html_title.
+#
+# html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#
+# html_logo = None
+
+# The name of an image file (relative to this directory) to use as a favicon of
+# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#
+# html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# Add any extra paths that contain custom files (such as robots.txt or
+# .htaccess) here, relative to this directory. These files are copied
+# directly to the root of the documentation.
+#
+# html_extra_path = []
+
+# If not None, a 'Last updated on:' timestamp is inserted at every page
+# bottom, using the given strftime format.
+# The empty string is equivalent to '%b %d, %Y'.
+#
+# html_last_updated_fmt = None
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#
+html_use_smartypants = False
+
+# Custom sidebar templates, maps document names to template names.
+#
+# html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#
+# html_additional_pages = {}
+
+# If false, no module index is generated.
+#
+# html_domain_indices = True
+
+# If false, no index is generated.
+#
+# html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#
+# html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+#
+# html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+#
+# html_show_sphinx = True
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#
+# html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it. The value of this option must be the
+# base URL from which the finished HTML is served.
+#
+# html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+# html_file_suffix = None
+
+# Language to be used for generating the HTML full-text search index.
+# Sphinx supports the following languages:
+# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
+# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
+#
+# html_search_language = 'en'
+
+# A dictionary with options for the search language support, empty by default.
+# 'ja' uses this config value.
+# 'zh' user can custom change `jieba` dictionary path.
+#
+# html_search_options = {'type': 'default'}
+
+# The name of a javascript file (relative to the configuration directory) that
+# implements a search results scorer. If empty, the default will be used.
+#
+# html_search_scorer = 'scorer.js'
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'CRYVISIL_Controldoc'
+
+
+
+
+# -- Options for LaTeX output ---------------------------------------------
+
+latex_elements = {
+ # The paper size ('letterpaper' or 'a4paper').
+ #
+ 'papersize': 'a4paper',
+
+ # The font size ('10pt', '11pt' or '12pt').
+ #
+ 'pointsize': '11pt',
+
+ # Additional stuff for the LaTeX preamble.
+ #
+ # 'preamble': '',
+
+ # Latex figure (float) alignment
+ #
+ # 'figure_align': 'htbp',
+}
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title,
+# author, documentclass [howto, manual, or own class]).
+latex_documents = [
+ (master_doc, 'CRYVISIL_Control.tex', u'CRYVISIL\\_Control Documentation',
+ u'Heinz Junkes', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#
+# latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#
+# latex_use_parts = False
+
+# If true, show page references after internal links.
+#
+# latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#
+# latex_show_urls = False
+
+# Documents to append as an appendix to all manuals.
+#
+# latex_appendices = []
+
+# It false, will not define \strong, \code, itleref, \crossref ... but only
+# \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
+# packages.
+#
+# latex_keep_old_macro_names = True
+
+# If false, no module index is generated.
+#
+# latex_domain_indices = True
+
+
+# -- Options for manual page output ---------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+ (master_doc, 'cryvisil_control', u'CRYVISIL_Control Documentation',
+ [author], 1)
+]
+
+# If true, show URL addresses after external links.
+#
+# man_show_urls = False
+
+
+# -- Options for Texinfo output -------------------------------------------
+
+# Grouping the document tree into Texinfo files. List of tuples
+# (source start file, target name, title, author,
+# dir menu entry, description, category)
+texinfo_documents = [
+ (master_doc, 'CRYVISIL_Control', u'CRYVISIL_Control Documentation',
+ author, 'CRYVISIL_Control', 'One line description of project.',
+ 'Miscellaneous'),
+]
+
+# Documents to append as an appendix to all manuals.
+#
+# texinfo_appendices = []
+
+# If false, no module index is generated.
+#
+# texinfo_domain_indices = True
+
+# How to display URL addresses: 'footnote', 'no', or 'inline'.
+#
+# texinfo_show_urls = 'footnote'
+
+# If true, do not generate a @detailmenu in the "Top" node's menu.
+#
+# texinfo_no_detailmenu = False
+
+# plantuml
+plantuml = 'java -jar /usr/local/utils/plantuml.jar'
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,12 @@
+--------
+Hardware
+--------
+
+Hardware used
+
+.. toctree::
+
+ hardware/WienerCrate
+ hardware/DELLR340
+ hardware/PfeifferVacuum
+ hardware/AVTMako
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware/AVTMako.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,6 @@
+-------------------
+AVT Mako G-125 GigE
+-------------------
+
+ GigE Vison camera.
+ MAC-Adress : 00 0F 31 5B AA BE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware/DELLR340.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,3 @@
+---------
+DELL R340
+---------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware/PfeifferVacuum.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,16 @@
+-------------------------
+Pfeiffer Vacuum TPG 256A
+-------------------------
+
+cable connection serial (male, 9 Dsub) to moxa NPort5600
+
+.. table:: cable
+
+=================== =====================
+Pin DSub, male JXX Pin Moxa RJ45
+=================== =====================
+ 2: RxD 4: TxD (blue)
+ 3: TxD 5: RxD (blue/white)
+ 5: GND 3: GND (green/white)
+=================== =====================
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware/WienerCrate.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,25 @@
+-----------
+WienerCrate
+-----------
+
+VMEbus shelf with CML (Shelf Manager)
+-------------------------------------
+
+Specifications and Documentation: <http://www.wiener-d.com/sc/powered-crates/vme/6u-vme-395-mini.html>
+
+.. uml::
+
+ @startuml
+ rectangle "VME395x_2, 9 slot" {
+ [MVME6100] <<CPU w. RTEMS 4.12>>
+ [SIS3316] <<ADC 16 Channel, 14bit, 250MSPS>>
+ [V375] <<DAC, Waveform Generator>>
+ }
+ @enduml
+
+.. toctree::
+
+ wienercrate/MVME6100
+ wienercrate/SIS3316
+ wienercrate/V375
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware/wienercrate/MVME6100.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,32 @@
+--------
+MVME6100
+--------
+
+cable connection serial com1 to moxa NPort5600
+
+.. table:: cable
+
+===================== =============
+Pin RJ45 Com1/CPU J19 Pin Moxa RJ45
+===================== =============
+ 1 : DCD 1 : DSR (nu)
+ 2 : RTS 2 : RTS (nu)
+
+ 3 : GND 3 : GND
+ 4 : Tx 5 : RxD
+ 5 : Rx 4 : TXD
+
+ 6 : GND 6 : DCD (nu)
+ 7 : CTS 7 : CTS (nu)
+ 8 : DTR 8 : DTR (nu)
+===================== =============
+
+
+Load ralf file to mvme6100
+--------------------------
+
+as rtems@epics : screen /dev/ttyUSB0 9600
+
+
+MVME6100> tftpGet -c141.14.128.10 -s141.14.128.9 -a04000000 -frecordTestHarness.boot
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware/wienercrate/SIS3316.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,76 @@
+-----------
+SIS3316-250
+-----------
+
+16 channel 250 MSPS 14bit
+-------------------------
+
+`Specifications/Documentation: <http://www.struck.de/sis3316.html>`
+
+Overview
+
+.. image:: sis3316blockweb.png
+
+Some characteristics (measured with our board)
+----------------------------------------------
+
+Test-Setup
+,,,,,,,,,,
+
+.. uml::
+
+ @startuml
+
+ sprite $Process [16x16/16] {
+ FFFFFFFFFFFFFFFF
+ FFFFFFFFFFFFFFFF
+ FFFFFFFFFFFFFFFF
+ FFFFFFFFFFFFFFFF
+ FFFFFFFFFF0FFFFF
+ FFFFFFFFFF00FFFF
+ FF00000000000FFF
+ FF000000000000FF
+ FF00000000000FFF
+ FFFFFFFFFF00FFFF
+ FFFFFFFFFF0FFFFF
+ FFFFFFFFFFFFFFFF
+ FFFFFFFFFFFFFFFF
+ FFFFFFFFFFFFFFFF
+ FFFFFFFFFFFFFFFF
+ }
+ rectangle "Testsetup" <<$Process>> {
+ rectangle "Pure sinewave\ngenerator with low\nnoise and low distortion\n\nRhode & Schwarz SML02" <<$Process>> as src
+ rectangle "Sharp-edged low-pass filter\nwith cut-off frequency at\n110% of test frequency.\ntest frequency =9,28 MHz\n TTE LC7 series\nLC7R-11M-50-69B" <<$Process>> as tgt1
+ rectangle "SIS3316/14Bit/250MSPS" <<$Process>> as tgt2
+ rectangle "Matlab Analyzing\nLinux System" <<$Process>> as tgt3
+ src -> tgt1
+ tgt1 -> tgt2
+ tgt2 -> tgt3
+ }
+ @enduml
+
+
+.. table:: Test results
+
+ ========================================= ================= ========= =============== ================
+ Input Voltage/Full Scale/125MHz Bandwidth SNR/dB at 9.28MHz ENOB/bits Input Freq./MHz Sample Freq./MHz
+ ========================================= ================= ========= =============== ================
+ 5V 69.68 11.28 9.28 125
+ 2V 67.65 10.94 9.28 125
+ ========================================= ================= ========= =============== ================
+
+SNR
+...
+**Signal-to-noise ratio**\ (abbreviated SNR or S/N) is a measure used in science and engineering that compares the level of a desired signal to the level of background noise. It is defined as the ratio of signal power to the noise power, often expressed in decibels. A ratio higher than 1:1 (greater than 0 dB) indicates more signal than noise. [#f1]
+
+ENOB
+....
+**Effective number of bits**\ (ENOB) is a measure of the dynamic performance of an analog-to-digital converter (ADC) and its associated circuitry. The resolution of an ADC is specified by the number of bits used to represent the analog value, in principle giving 2N signal levels for an N-bit signal. However, all real ADC circuits introduce noise and distortion. ENOB specifies the resolution of an ideal ADC circuit that would have the same resolution as the circuit under consideration.
+
+ENOB is also used as a quality measure for other blocks such as sample-and-hold amplifiers. This way, analog blocks can be easily included in signal-chain calculations as the total ENOB of a chain of blocks is usually below the ENOB of the worst block. [#f2]
+
+
+.. rubric:: Footnotes
+
+.. [#f1] `https://en.wikipedia.org/wiki/Signal-to-noise_ratio`
+.. [#f2] `https://en.wikipedia.org/wiki/Effective_number_of_bits`
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/hardware/wienercrate/V375.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,12 @@
+---------------
+V375 (Highland)
+---------------
+
+4 channel arbitrary waveform generator
+
+`Specifications/Documentation: <http://www.highlandtechnology.com/DSS/V375DS.shtml>`
+
+Overview
+
+###.. image:: sis3316blockweb.png
+
Binary file CRYVISIL/docs/source/hardware/wienercrate/sis3316blockweb.gif has changed
Binary file CRYVISIL/docs/source/hardware/wienercrate/sis3316blockweb.png has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/ideas.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,11 @@
+-----
+Ideas
+-----
+
+Some ideas for improvements
+
+.. toctree::
+
+ ideas/hardware
+ ideas/software
+ ideas/algorithm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/ideas/algorithm.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,3 @@
+---------
+Algorithm
+---------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/ideas/hardware.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,10 @@
+--------
+Hardware
+--------
+
+Some pre testing
+,,,,,,,,,,,,,,,,
+
+ Setup V375 output different patterns with different frequences
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/ideas/software.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,3 @@
+--------
+Software
+--------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/index.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,29 @@
+.. CRYVISIL_Control documentation master file, created by
+ sphinx-quickstart on Thu Jul 14 13:53:34 2016.
+ You can adapt this file completely to your liking, but it should at least
+ contain the root `toctree` directive.
+
+Welcome to CRYVISIL_Control's documentation!
+============================================
+.. include:: intro.rst
+
+Document Tree
+-------------
+
+.. toctree::
+ :maxdepth: 2
+
+ ideas
+ algorithm
+ hardware
+ software
+ services
+ interlinks
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/interlinks.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,12 @@
+----------
+Interlinks
+----------
+
+Interlinks Network, Soft- and Hardware
+
+.. toctree::
+
+ interlinks/network
+ interlinks/software
+ interlinks/hardware
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/interlinks/network.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,8 @@
+-------------------
+Network connections
+-------------------
+
+.. toctree::
+
+ network/Overview
+ network/Cryvisil-Net
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/interlinks/network/Cryvisil-Net.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,29 @@
+-------------------------------
+Cryvisil connections (hardware)
+-------------------------------
+
+This is an overview of the connections (ethernet, serial)
+
+.. uml::
+
+ @startuml
+
+ node Switch48Port
+ node Switch12Port
+ node MVME6100
+ node Moxa01
+
+ Switch48Port <-> Switch12Port
+
+ Switch12Port <-> MVME6100
+ Switch12Port <-> Moxa01
+
+ cloud Moxa01 {
+ node moxa01
+ node PfeifferTPG256A
+ node CPUDebug
+ }
+
+ moxa01 <-[#CCCCCC]down-> PfeifferTPG256A : P2
+ moxa01 <-[#CCCCCC]down-> CPUDebug : P1 to Debug, 9600 Baud
+ @enduml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/interlinks/network/Overview.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,52 @@
+---------------------------
+Network (Ethernet) Overview
+---------------------------
+
+This is an overview of the ether-network structure used at CRYVISIL
+
+.. uml::
+
+ @startuml
+ cloud FHINet {
+ node Switch62
+ }
+ note right: 10GB Port 1/2/8 on FHI Switch
+ node kannsein
+
+ cloud CRYVISLNet {
+ storage nap21
+ node Switch48Port
+ node Switch12Port
+ node MVME6100
+ node moxa01
+ node moxa02
+ node VMECrate01
+ node DeltaPower
+ node AVTMako01
+ }
+
+ cloud Moxa01 {
+ node moxa01
+ node PfeifferVacuum
+ node CPUDebug
+ }
+
+ moxa01 <-[#CCCCCC]down-> PfeifferVacuum
+ moxa01 <-[#CCCCCC]down-> CPUDebug
+
+
+
+ Switch62 <-[#0000FF]down-> kannsein : 10G
+
+ kannsein <-[#0000FF]> Switch48Port : 10G
+ nap21 <-[#0000FF]left-> Switch48Port : 10G
+ Switch62 <-> nap21
+ Switch48Port <-> Switch12Port
+
+ Switch12Port <-> MVME6100
+ Switch12Port <-down->AVTMako01
+ Switch12Port <-down-> moxa01
+ Switch48Port <-down-> moxa02
+ Switch12Port <-down-> VMECrate01
+ Switch12Port <-down-> DeltaPower
+ @enduml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/interlinks/software.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,6 @@
+---------------------
+Software interconnect
+---------------------
+
+.. toctree::
+ software/Dhcpd-conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/interlinks/software/Dhcpd-conf.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,5 @@
+--------------------------------
+DHCPD conf on Gateway "kannsein"
+--------------------------------
+
+.. literalinclude:: ../../../../code/configs/dhcpd.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/intro.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,12 @@
+Intro
+-----
+This is the documentation of the Cryvisil control system. It describes ideas, algorithm, hard- and software including
+connections and links (in soft- and hardware).
+
+Stuff used:
+ Linux, RTEMS, EPICS, Control System Studio, Archiver Appliance, PowerPC, QorIQ, ARM,
+ DELL R430, Moxa, WienerCrate, MVME6100, MVME2500, RaspberryPi, SIS3316, HighLand V375
+
+Programm languages:
+ C, C++, Python
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/services.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,9 @@
+--------
+Services
+--------
+
+Services used
+
+.. toctree::
+
+ services/ARCHIVER
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/services/ARCHIVER.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,6 @@
+------------------
+ARCHIVER APPLIANCE
+------------------
+
+.. toctree::
+ archiverAppliance/instances
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/services/archiverAppliance/instances.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,40 @@
+----------------------------
+Archiver Appliance instances
+----------------------------
+
+FEL archiver: aa1
+-----------------
+
+Management Interface: <http://aa1.fhi-berlin.mpg.de:17665/mgmt>
+
+FHI archiver: aa0
+-----------------
+
+Management Interface: <http://aa0.fhi-berlin.mpg.de:17665/mgmt>
+
+Configuration
+.............
+
+
+root@aa0:/opt/archiverApp >> more appliances.xml
+<appliances>
+ <appliance>
+ <identity>archappl0</identity>
+ <cluster_inetport>aa0.fhi-berlin.mpg.de:17670</cluster_inetport>
+ <mgmt_url>http://aa0.fhi-berlin.mpg.de:17665/mgmt/bpl</mgmt_url>
+ <engine_url>http://aa0.fhi-berlin.mpg.de:17666/engine/bpl</engine_url>
+ <etl_url>http://aa0.fhi-berlin.mpg.de:17667/etl/bpl</etl_url>
+ <retrieval_url>http://aa0.fhi-berlin.mpg.de:17668/retrieval/bpl</retrieval_url>
+ <data_retrieval_url>http://aa0.fhi-berlin.mpg.de:17668/retrieval</data_retrieval_url>
+ </appliance>
+ <appliance>
+ <identity>archappl1</identity>
+ <cluster_inetport>aa1.fhi-berlin.mpg.de:17670</cluster_inetport>
+ <mgmt_url>http://aa1.fhi-berlin.mpg.de:17665/mgmt/bpl</mgmt_url>
+ <engine_url>http://aa1.fhi-berlin.mpg.de:17666/engine/bpl</engine_url>
+ <etl_url>http://aa1.fhi-berlin.mpg.de:17667/etl/bpl</etl_url>
+ <retrieval_url>http://aa1.fhi-berlin.mpg.de:17668/retrieval/bpl</retrieval_url>
+ <data_retrieval_url>http://aa1.fhi-berlin.mpg.de:17668/retrieval</data_retrieval_url>
+ </appliance>
+</appliances>
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,11 @@
+--------
+Software
+--------
+
+Software used
+
+.. toctree::
+
+ software/RTEMS
+ software/EPICS
+ software/OPERATING_SYSTEM
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/EPICS.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,11 @@
+-----
+EPICS
+-----
+
+.. toctree::
+ epics/base
+ epics/modules
+ epics/extensions
+ epics/iocs
+ epics/css
+ epics/console
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/OPERATING_SYSTEM.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,12 @@
+-----
+OPERATING SYSTEM
+-----
+
+.. toctree::
+ operating_system/ubuntu
+ operating_system/ptpd2
+ operating_system/dhcpd
+ operating_system/router
+ operating_system/procserv
+ operating_system/conserv
+ operating_system/console
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/RTEMS.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,8 @@
+-----
+RTEMS
+-----
+
+.. toctree::
+ rtems/base
+ software/rtems/bsp
+ software/rtems/extensions
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/epics/base.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,41 @@
+-------------------------------
+Port EPICS to RTEMS 4.12
+-------------------------------
+
+Check out EPICS Base with Bazaar
+--------------------------------------
+
+Docu can be found in EPICS Wiki <https://wiki-ext.aps.anl.gov/epics/index.php/How_to_check_out_EPICS_Base_with_Bazaar> .
+
+To use the launchpad user needed for bazaar a ssh key must be donwloaded to launchpad. Username on
+launchpad is junkes (junkes@fhi-berlin.mpg.de). To use bazaar on rtems@epics first a ssh key pair must be
+generated::
+ | cd;
+ | ssh-keygen -t rsa -f .ssh/id_rsa_launchpad
+
+./ssh/config must be created with the following content::
+ | Host bazaar.launchpad.net
+ | IdentityFile /home/rtems/.ssh/id_rsa_launchpad
+ | User junkes
+
+Now tell Bazaar what your Launchpad user id is::
+ | bzr launchpad-login junkes
+
+Check out base 3.15 in ~rtems/FHI/EPICS::
+ | bzr init-repo ./epics-base
+ | cd epics-base
+ | bzr checkout lp:epics-base/3.15 mirror-3.15
+
+Now create a local *working* branch::
+ | bzr branch mirror-3.15 adap-rtems4.12
+
+
+Modification on EPICS base to work with RTEMS 4.12
+--------------------------------------------------
+
+RTEMS docu <http://www.rtems.org/onlinedocs/doxygen/cpukit/html>
+
+RTEMS on-line documentation <https://docs.rtems.org/doc-current/share/rtems/html/>
+
+
+... work on it
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/epics/console.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,4 @@
+----------------
+procserv conserv
+----------------
+link to operating_system procserv and conserv
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/epics/css.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,6 @@
+---------------------
+Control System Studio
+---------------------
+
+Opis ....
+---------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/epics/extensions.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,60 @@
+-----------------------------------------
+EPICS extensions used at cryvisil project
+-----------------------------------------
+
+ca-gateway
+----------
+
+Load from http://www.aps.anl.gov/epics/extensions/gateway
+
+gateway copied to /opt/epics/gateway on kannsein
+gateway.conf::
+
+ #Tags of gateway processes to start automatically:
+
+ AUTO: CRYVISIL
+
+ GLOBAL: G_USER cagw
+ G_GROUP epics
+
+ CRYVISIL: HOMEDIR /opt/epics/gateway/cryvisil
+ PREFIX gwCryvisil
+ SIP 141.14.133.59
+ SIGNORE 141.14.133.59
+ CIP 10.20.30.1
+
+In /opt/epics/gateway/cryvisil you can find the logs and
+gateway.access::
+
+ HAG(CRYVISIL) {
+ h1, h1.rz-berlin.mpg.de,
+ h, h.rz-berlin.mpg.de,
+ earth, earth.rz-berlin.mpg.de,
+ humma-kavula, humma-kavula.rz-berlin.mpg.de,
+ wheatley, wheatley.rz-berlin.mpg.de
+ }
+
+ ASG(DEFAULT) {
+ RULE(1,READ)
+ RULE(1,WRITE) {
+ HAG(CRYVISIL)
+ }
+ }
+
+ ASG(CRYVISILWrite) {
+ RULE(1,READ)
+ RULE(1,WRITE) {
+ HAG(CRYVISIL)
+ }
+ }
+
+and gateway.pvlist::
+
+ EVALUATION ORDER ALLOW, DENY
+
+ .* ALLOW CRYVISILWrite
+
+Startup script /etc/init.d/ca-gateway. Installed with
+ update-rd.d ca-gateway defaults
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/epics/modules.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,9 @@
+---------------------------------------
+EPICS modules used for cryvisil project
+---------------------------------------
+
+asyn4-29
+
+calc
+busy
+...
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/operating_system/conserv.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,3 @@
+-------
+conserv
+-------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/operating_system/console.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,3 @@
+-------
+console
+-------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/operating_system/dhcpd.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,16 @@
+------------------------------------------------
+DHCPd Dynamic Host Configuration Protocol Daemon
+------------------------------------------------
+
+DELL Server (kannsein) provides host configurations for the CRYVISIL-LAN
+------------------------------------------------------------------------
+
+This service is used by most of the ethernet connected devices in the CRYVISIL-LAN
+
+Installation procedure ::
+ | apt-get install isc-dhcp-server
+ | in file /etc/default/isc-dhcp-server define :
+ | INTERFACES="p2p1"
+ | add all device definitions to /etc/dhcp/dhcpd.conf
+
+ .. literalinclude:: ../../../../code/configs/dhcpd.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/operating_system/procserv.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,3 @@
+--------
+procserv
+--------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/operating_system/ptpd2.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,26 @@
+------------------------------------
+PTPD2 Precision Time Protocol Daemon
+------------------------------------
+
+DELL Server (kannsein) is time provider (server) for the CRYVISIL-LAN
+---------------------------------------------------------------------
+
+Installation procedure ::
+ | Download ptpd-2.3.1-rc5 (from sourceforge?)
+ | extract in /root
+ | cd ptpd-2.3.1-rc5
+ | apt-get install libpcap-dev
+ | ./configure
+ | make (check errors!)
+ | make install
+ | create file /etc/default/ptpd2 :
+ | PTPD2_OPTS=" -i p2p1 -M -f /var/log/ptpd2.log -S /var/log/ptpd2_stat.log"
+ | create /etc/init.d/ptpd2 startup file
+
+ .. literalinclude:: ../../../../code/inits/ptpd2
+
+ | cd /etc/init.d
+ | update-rc.d ptpd2 defaults
+ | ./ptpd2 start
+ | check /var/log/ptpd2.log and /var/log/ptpd2_stat.log
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/operating_system/router.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,9 @@
+---------------------
+Router/Gateway config
+---------------------
+DELL Server (kannsein) act as gateway/router for the CRYVISIL-LAN
+-----------------------------------------------------------------
+
+Function realized with iptables::
+ | file /etc/iptables.rules (created with iptables-save??)
+ .. literalinclude:: ../../../../code/configs/iptables.rules
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/operating_system/ubuntu.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,12 @@
+------------------
+Ubuntu
+------------------
+
+Standard installation by PP&B
+--------------------------------------
+
+Installation procedure for Ubuntu 14.04 LTS::
+ | to be defined
+ | e.g. add opensshd etc.
+
+Ask Mike to fill ?
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CRYVISIL/docs/source/software/rtems/base.rst Mon Jan 15 11:21:30 2018 +0100
@@ -0,0 +1,61 @@
+------------------
+RTEMS Installation
+------------------
+
+Installation current master RTEMS 4.12
+--------------------------------------
+
+Following commands on unix::
+ | mkdir RTEMS_DEV
+ | cd RTEMS_DEV
+ | git clone git://git.rtems.org/rtems.git
+ | git clone git://git.rtems.org/rtems-tools.git
+ | git clone git://git.rtems.org/rtems-source-builder.git
+ | cd rtems-tools
+ | ./waf configure --prefix=/home/rtems/RTEMS/rtems-4.12 build install
+ | cd ../rtems-source-builder/rtems
+ | ../source-builder/sb-set-builder --log log.txt --prefix=/home/rtems/RTEMS/rtems-4.12 4.12/rtems-powerpc
+
+The last step will take some time about 50 min?
+
+Check. Add *prefix* into $PATH then call::
+ powerpc-rtems4.12-g++ --version --verbose
+
+Now bootstrap RTEMS operating system::
+ | cd ; cd RTEMS_DEV/rtems
+ | ../rtems-source-builder/source-builder/sb-bootstrap
+
+The bsp for our MVME6100 cpu (**beatnik**) cards can now be build with::
+ | cd ; cd RTEMS_DEV
+ | mkdir -p build/b-beatnik
+ | cd build/b-beatnik
+ | ../../rtems/configure --enable-maintainer-mode --prefix=/home/rtems/RTEMS/rtems-4.12 --target=powerpc-rtems4.12 --enable-rtemsbsp="beatnik" --enable-posix --enable-cxx --enable-networking
+ | make all
+ | make install
+
+
+Performing some tests
+---------------------
+
+In ~/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c/beatnik/testsuites/samples one can find tests::
+ | cp powerpc-rtems4.12/c/beatnik/testsuites/samples/ticker/ticker.ralf /srv/tftp
+ | cp powerpc-rtems4.12/c/beatnik/testsuites/samples/base_sp/base_sp.ralf /srv/tftp
+ | cp powerpc-rtems4.12/c/beatnik/testsuites/samples/unlimited/unlimited.ralf /srv/tftp
+
+
+Running tests on a MVME6100
+---------------------------
+
+On the console of the MVME6100 (screen 9600 baud)::
+
+ | tftpGet -s141.14.128.9 -c141.14.128.10 -a04000000 -fticker.ralf
+ | go -a04000000
+
+Other test::
+
+ | tftpGet -s141.14.128.9 -c141.14.128.10 -a04000000 -fbase_sp.ralf
+ | go -a04000000
+
+ | tftpGet -s141.14.128.9 -c141.14.128.10 -a04000000 -funlimited.ralf
+ | go -a04000000
+
Binary file CRYVISIL/docs/utils/plantuml.jar has changed