senaite / senaite.serial.cli

RS-232 connection with devices compliant with LIS1-A (ASTM-E1381-02)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serial client for SENAITE

image

image

image

image

image

About

This package provides a command line for interfacing systems to SENAITE LIMS across the serial RS-232 communications port.

This interface is compliant with the industry supported standard CLSI (Clinical and Laboratory Standards Institute, formerly NCCLS) LIS1-A "Specification for Low-Level Protocol to Transfer Messages Between Clinical Laboratory Instruments and Computer Systems", a revision of ASTM E1381-02.

However, this tool is meant to be generic enough so it can be extended with other communication protocols and standards.

This command line tool works together with senaite.lis2a, an add-on that enables the reception and interpretation of CLSI LIS2-A2 messages for SENAITE LIMS.

$ senaite_serial -h
usage: senaite_serial [-h] [-v] [-b BAUDRATE] [-u URL] [-r RETRIES] [-d DELAY]
                      [-t]
                      port

SENAITE Serial client interface

positional arguments:
  port                  COM Port to connect. Serial client will listen to this
                        port for incoming data and use this same port to send
                        data back

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose logging (default: False)
  -b BAUDRATE, --baudrate BAUDRATE
                        Baudrate (default: 9600)
  -u URL, --url URL     SENAITE full URL address, with username and password:
                        'http(s)://<user>:<password>@<senaite_url>'. (default:
                        None)
  -r RETRIES, --retries RETRIES
                        Number of attempts of reconnection when SENAITE
                        instance is not reachable. Only has effect when
                        argument --url is set (default: 3)
  -d DELAY, --delay DELAY
                        Time delay in seconds between retries when SENAITE
                        instance is not reachable. Only has effect when
                        argument --url is set (default: 5)
  -t, --dry-run         Dry run. Data won't be sent to SENAITE instance. This
                        argument only has effect when argument --url is set
                        (default: False)

Documentation

Feedback and support

License

SENAITE.SERIAL.CLI Copyright (C) 2020 RIDING BYTES & NARALABS

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

About

RS-232 connection with devices compliant with LIS1-A (ASTM-E1381-02)

License:GNU General Public License v2.0


Languages

Language:Python 100.0%