Skip to main content

A python library for io4edge devices

Project description

io4edge-client-python

python client sdk for io4edge.

io4edge devices are intelligent I/O devices invented by Ci4Rail, connected to the host via network.

This library provides support for the following function blocks within io4edge devices:

  • Analog In TypeA - IOU01, MIO01
  • Binary IO TypeA - IOU01, MIO01
  • CAN Layer2 - IOU03, MIO03, IOU04, MIO04, IOU06
  • MVB Sniffer - IOU03, MIO03
  • Binary IO TypeB - IOU06, EKF SO1
  • Binary IO TypeC - IOU07
  • Binary IO TypeD - EKF SO1

Currently not supported, but will follow:

  • Motion Sensor - CPU01UC

Not planned: Support for io4edge management functions, such as firmware update. Please use io4edge-client-go for this.

Installation

pip3 install io4edge_client

Usage

See examples in github repo for usage examples.

Running in Docker

To run the examples in a docker container, you can use the provided Dockerfile in examples/docker directory.

In the Dockerfile, Replace dumpstream.py script with your python application path.

To build the docker image, run the following command on your host to build it for your target platform, in this case the target platform linux/arm64:

docker buildx build --platform linux/arm64  -f examples/docker/Dockerfile . --push -t <your-docker-image-name>:<version>

On your target platform, run the container in the host network, so that you can use the service names of the io4edge devices:

docker run --network=host <your-docker-image-name>:<version> <parameters-to-your-python-script>

Copyright

Copyright © 2021-2024 Ci4Rail GmbH engineering@ci4rail.com

io4edge_client_python package is released under Apache 2.0 License, see LICENSE for details.

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

io4edge_client-1.2.0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

io4edge_client-1.2.0-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file io4edge_client-1.2.0.tar.gz.

File metadata

  • Download URL: io4edge_client-1.2.0.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for io4edge_client-1.2.0.tar.gz
Algorithm Hash digest
SHA256 521e6496ed64cbf89456d3830a5867e0d7a184dc2119cca72500834a092c0f3a
MD5 8cf82649ca44b6d9ab94b7c54c93ff6a
BLAKE2b-256 08693ff78e37c3d1f2c27489af0842261a244196f8578bb58ea2c7439b36f2c8

See more details on using hashes here.

File details

Details for the file io4edge_client-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for io4edge_client-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 801eec6c3d336dab3f47878c86e34b5b7aa87a8ed820343e00179c5ea45056b7
MD5 8b0b54386bfa9386b438faff2d9d672f
BLAKE2b-256 641af491e08dd738d02165f135a0fa96b50dfabae94df33198fc318b90a93a9c

See more details on using hashes here.

Supported by

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