Skip to content

Releases: slazav/device2

v1.9

Choose a tag to compare

@slazav slazav released this 18 Jan 11:35
  • spp driver: add closing timeout.
    This is an important fix. Previously device_d was stopping spp program with SIGTERM immediately after closing its output. As a result graphene program sometimes failed to exit properly, leaving broken databases. Now -close_timeout parameter for spp driver is introduced with default value 5s.
  • Do not close unused devices when closing a client connection.
    The idea is to keep devices connection permanently while clients can connect and disconnect. I do not remember reason why I was closing devices here. It could be that for some bad devices/drivers keeping connection for a long time can cause problems.
    Mayby some regular and configurable cleanup procedure for device connections should be done in the future.
  • Explicitely close devices when stopping device manager.
    This is a redundant measure (devices are stopped anyway), it is needed only to have consistent open-close messages in logfiles.
  • Add driver serial_hm310t for Hanmatec HM310T power supply.
    This is a special driver which introduces its own scpi-like language on top of device-specific Modbus binary communication protocol. (Previously I was using separate spp programs for implementing high-level text communication)
  • add missing BuildPreReq: rpm-build-tcl when building for Altlinux.
  • debian/rules: strip binary files when building for Debian.
  • update tests for new wget and libcurl.
  • update Readme.md.

v1.8

Choose a tag to compare

@slazav slazav released this 18 Jan 18:21
1.8
  • Systemd service: add WantedBy=multi-user.target
    (this is needed to start the server on boot)
  • vxi: important bugfixes: fix for multi-thread usage,
    fix memory leak and uninitialised values in read(), thanks to valgrind

v1.7

Choose a tag to compare

@slazav slazav released this 24 Nov 17:03
  • Add vxi driver
  • deb: simplify deb/rules, fix location of tcl library, add conffiles
  • update Readme.md, add SPP protocol description
  • update modules

Altlinux/Sisyphus RPM and Ubuntu DEB packages are attached

v1.6

Choose a tag to compare

@slazav slazav released this 14 Nov 15:13
1.6

a few fixes for Debian/Ubuntu build

v1.5

Choose a tag to compare

@slazav slazav released this 22 Mar 17:07
1.5-alt1
  • device_d server start: do not fail if pid-file exists but the process does not
  • Revert "unquote messages for all drivers except spp" (introduced in v1.4)
  • new action: close -- close device (it will be reopened if needed)
  • drv_serial: add flush_on_err parameter, update comments and Readme.md
  • drv_serial_tenma_ps: turn off SFC. This is important if status byte is zero
  • drv_net: -open_delay option, wait before opening connection. May be needed for Siglent devices
  • drv_net: add -delay option -- waiting after write command (default 0)
  • update mapsoft2-lib modules

v1.4

Choose a tag to compare

@slazav slazav released this 19 Jun 16:19
1.4-alt1
  • Unquote messages for all drivers except spp
  • new driver drv_serial_l300 -- driver for Phoenix/Leybold L300i leak detector
  • fix driver drv_serial_asm340 -- driver for Agilent VS leak detector.
  • driver drv_usbtmc: add -delay option -- waiting after write command (default 0.01)
  • drv_spp: modify error message for unexpected EOF in the stream

v1.3

Choose a tag to compare

@slazav slazav released this 18 Apr 12:12
1.3-alt1
  • device_c:
    • use read_words library for use_dev command (allow multi-line and quoted strings)
    • allow multiple argments in ask command
    • options can appear only before a non-option argument
  • drivers:
    • add serial_et driver for EastTester devices
    • drv_serial: fix reading in non-blocking mode
    • drv_gpib: -delay parameter
    • drv_gpib: argument of -eos_mode option is any combination of X R B flags
  • unlock action: do not return error if device is not locked
  • update Readme.md

v1.2

Choose a tag to compare

@slazav slazav released this 03 Mar 00:52
1.2-alt1

v1.2 (a few important bugfixes)

  • server:
    • Fix non-working --addr option. Server was always listening all addresses.
    • Print client address when opening a connection (with log level >= 2).
    • When stopping a server (--stop option) wait until the process exits.
    • Set umask 022 in daemon mode.
    • Fix locking in read-write operations to avoid mixing answers for different clients.
    • Fix gcc10 builds with old and new libmicrohttpd (MHD_Result enum appeares in 0x00097002).
    • Add switching to a different user (--user option).
    • Simplify initscript: use device_d options instead of start_daemon.
  • drivers:
    • drv_usbtmc: fix error in -idn parameter handling
    • drv_gpib, drv_net, drv_usbtmc: add -read_cond parameter with default: qmark1w
  • tcl:
    • In the legacy Device interface return list of lines instead of text data.
    • Fix error in Device::lock command.
  • add UDEV.md file with some examples.
  • update Readme.md.

v1.1

Choose a tag to compare

@slazav slazav released this 12 Oct 22:50
1.1-alt1
  • drv_gpib: clear device buffers after opening
  • drv_usbtmc: fix reading output from some slow operations
  • device_c: release device after a single ask command

v1.0

Choose a tag to compare

@slazav slazav released this 02 Oct 12:30
1.0-alt1
  • v1.0 (device_d, device_c, tcl library).
  • Tested drivers: net (with LXI devices), gpib, usbtmc, serial_asm340, serial_tenma_ps.
  • Not tested: serial_vs_ld, serial_simple, net_gpib_prologix.