Skip to main content

Control the ICStation USB multi channel relay modules

Project description

Summary

IcseCtl is a library to control the ICStation USB multi channel relay modules (ICSE012A, ICSE013A, ICSE014A).

Initialization

The initialization of the devices is handled by udev. To set up udev:

sudo cp examples/icseudev.py /lib/udev
sudo cp examples/99-icsectl.rules /etc/udev/rules.d
sudo udevadm control --reload-rules

When a device is plugged in the relays are switched on by default. After detection the icseudev.py script switches them off.

Symbolic links /dev/ttyICSE012A, /dev/ttyICSE013A, /devttyICSE014A are created if a respective device is connected. If another PL2303 device is connected a link /dev/ttyPL2303 is created.

Initialization is logged in the system log.

Permissions

Per default, only root is allowed to use devices directly. On Debian and Ubuntu serial USB devices are assigned to group dialout. To allow a user to use the device call:

adduser USER dialout

Usage

The script examples/icsectl can be used to switch individual relays. The status is kept in a file in the user’s home directory. If the file does not yet exist, it is assumed that all relays are switched off.

License

Copyright (c) 2016, Heinrich Schuchardt <xypron.glpk@gmx.de> All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

icsectl-0.2.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file icsectl-0.2.tar.gz.

File metadata

  • Download URL: icsectl-0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for icsectl-0.2.tar.gz
Algorithm Hash digest
SHA256 18cf7fdf1b9be32ed2b6ab9f359fbf87d492a11fed6e7bdbbdf4cabb424e237c
MD5 95894a02ebc7a7cc96abb85ab7a1718c
BLAKE2b-256 33dc9ab9e2ec3dca917f7e12baf75a4b9d10de1375f703e6c3d89f4eb31d9d39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page