Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Parameter (ServiceInfo) #2

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0ce708d
Fixed Parameter (ServiceInfo)
rifoerster Sep 8, 2020
a21fb48
Merge pull request #1 from bodiroga/master
rifoerster Sep 17, 2020
e9110c6
Enabling the usage of Port Range for Devices
rifoerster Sep 17, 2020
e09b861
Additional Device Configurations
rifoerster Sep 17, 2020
c9f4a15
Extracting First Config Value into a dedicated File
rifoerster Sep 25, 2020
21c3228
adding protokoll
rifoerster Sep 25, 2020
810f137
Redirector init can fail too
rifoerster Sep 25, 2020
ef68569
Leaving it to the device to figure its own unique name.
rifoerster Oct 7, 2020
9f5fca1
Sarad Device Unique Name
rifoerster Oct 7, 2020
1ea89d5
Revert "Sarad Device Unique Name"
rifoerster Oct 7, 2020
97d5c17
Port Ranges
rifoerster Oct 7, 2020
6a5bc09
Update sarad_gateway_device.py
rifoerster Oct 7, 2020
68f82a3
Fixed type name when protocol is present
rifoerster Oct 15, 2020
04082e6
Update sarad_gateway_device.py
rifoerster Oct 15, 2020
b383452
Some utility bash commands
rifoerster Oct 16, 2020
c5a0386
Should now work from outside the git project root dir
rifoerster Oct 16, 2020
cf42301
Update rfc2217-gateway
rifoerster Oct 16, 2020
1a8c333
Some bash variants don't like it if it isn't LF
rifoerster Oct 16, 2020
843c91e
ingore venv directory
rifoerster Oct 16, 2020
db9c89b
Debugging Changes (Temp)
rifoerster Dec 10, 2020
095e51f
!: adapt to changes in sarad.cluster library
mistrey Dec 21, 2020
7f98db3
~: Formatting
mistrey Dec 22, 2020
3917759
~: lazy formatting in logging
mistrey Dec 23, 2020
25d3062
~: Inheriting from object is no longer required.
mistrey Dec 23, 2020
395a0ba
~: Handle PyLint hints
mistrey Dec 23, 2020
ae69f33
~: Follow hints from linter
mistrey Jan 5, 2021
2ffb618
~: Add type definitions for devices
mistrey Jan 29, 2021
fce2571
!: data_collector is a special, editable requirement
mistrey Feb 10, 2021
db4e277
+: documentation framework
mistrey Feb 16, 2021
686f074
+: build files of documentation
mistrey Feb 18, 2021
aababee
!: ZeroConf type is only _rfc2217.
mistrey Mar 20, 2021
f0938c5
~: Formatting with Black. Additional debug messages.
mistrey Apr 14, 2021
af96271
~: \tmp\ -> gitignore
mistrey May 14, 2021
705b7a2
+: detect FTDI devices as sarad-1688
mistrey Jun 2, 2021
1f44bcc
~ Changes to match new sari version
rifoerster Jun 2, 2021
adcfa08
Merge branch 'master' of //server.hq.sarad.de/sarad/projekte/2020-WLA…
rifoerster Jun 2, 2021
6964888
!: allow multiple devices at Instrument Server
mistrey Jun 2, 2021
29ea964
Merge remote-tracking branch 'origin/master'
mistrey Jun 2, 2021
a2b2b3f
~: add interface config for ap-strey
mistrey Jun 3, 2021
35409be
Merge branch 'master' of /home/SARAD/mstrey/Y/Projekte/2020-WLAN_Modu…
mistrey Jun 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,5 @@ dmypy.json

# Cython debug symbols
cython_debug/
/rfc2217-gateway-env/*
/tmp/
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,49 @@
## Introduction

Gateway that shares different USB sticks through RFC2217.
Gateway that shares different USB sticks and SARAD instruments with integrated
FT232R serial to USB converter through RFC2217.

## Features

The program has the following features:

- Detects plugged and unplugged USB sticks (udev)
- Detects plugged and unplugged USB sticks and SARAD instruments (udev)
- Shares the USB stick serial connection through RFC2217
- Announces the RFC2217 connection to the rest of the network (mDNS)

## Installation and usage

For test and development, the program is prepared to run in a virtual environment.

### Installation ###

git clone <bare_repository>

to clone the working directory from the git repository.

cd src-instrumentserver2-rfc2217
bin/env-create

to create the directory with the virtual environment.

bin/activate

to activate the virtual environment.

### Usage ###

bin/rfc2217-gateway

to start the program.

After attaching a SARAD instrument you should see log messages indicating that a
device was detected and connected to a port.

## Author

(c) 2020 [Aitor Iturrioz](https://github.com/bodiroga)

## License
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand All @@ -24,4 +54,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
1 change: 1 addition & 0 deletions bin/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
9 changes: 9 additions & 0 deletions bin/activate
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
#echo $SOURCE
SOURCE_DIR=$(dirname $SOURCE)
#echo $SOURCE_DIR
CURENT_DIR=$PWD
cd $SOURCE_DIR/../
source rfc2217-gateway-env/bin/activate
cd $CURRENT_DIR
1 change: 1 addition & 0 deletions bin/activate.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rfc2217-gateway-env/bin/activate.ps1
13 changes: 13 additions & 0 deletions bin/env-create
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
#echo $SOURCE
SOURCE_DIR=$(dirname $SOURCE)
#echo $SOURCE_DIR
CURENT_DIR=$PWD
cd $SOURCE_DIR/../
#echo $PWD
python -m venv rfc2217-gateway-env
source rfc2217-gateway-env/bin/activate
rfc2217-gateway-env/bin/pip install --requirement=requirements.txt
rfc2217-gateway-env/bin/pip install -e git+https://www.github.com/SARAD-GmbH/data_collector#egg=data_collector
cd $CURRENT_DIR
10 changes: 10 additions & 0 deletions bin/rfc2217-gateway
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
#echo $SOURCE
SOURCE_DIR=$(dirname $SOURCE)
#echo $SOURCE_DIR
CURENT_DIR=$PWD
cd $SOURCE_DIR/../
source rfc2217-gateway-env/bin/activate
rfc2217-gateway-env/bin/python3 src/main.py
cd $CURRENT_DIR
11 changes: 11 additions & 0 deletions bin/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
#echo $SOURCE
SOURCE_DIR=$(dirname $SOURCE)
#echo $SOURCE_DIR
CURENT_DIR=$PWD
cd $SOURCE_DIR/../
source rfc2217-gateway-env/bin/activate
rfc2217-gateway-env/bin/pip install --requirement=requirements.txt
rfc2217-gateway-env/bin/pip install -e git+https://github.com/SARAD-GmbH/data_collector#egg=data_collector
cd $CURRENT_DIR
20 changes: 20 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file added doc/build/doctrees/environment.pickle
Binary file not shown.
Binary file added doc/build/doctrees/index.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions doc/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: c843f108fa3bf006a304898911b021dd
tags: 645f666f9bcd5a90fca523b33c5a78b7
27 changes: 27 additions & 0 deletions doc/build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. instrumentserver2 documentation master file, created by
sphinx-quickstart on Wed Feb 10 17:55:28 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Welcome to instrumentserver2's documentation!
=============================================

.. toctree::
:maxdepth: 2
:caption: Contents:


mdns_advertiser
===============

.. automodule:: mdns_advertiser
:members:
:undoc-members:


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Loading