Skip to main content

Python library to access Studer-Innotec Xcom-LAN/Xcom-232i node through (SCOM) Xtender Serial Protocol over a TCP/IP Network connection.

Project description

Package XcomLAN

Python library to access Studer-Innotec Xcom-LAN/Xcom-232i node through (SCOM) Xtender Serial Protocol over a TCP/IP Network connection.

Prerequisites

Please read the complete documentation available on : Studer Innotec SA -> Support -> Download Center -> Software and Updates -> Communication protocols Xcom-232i

Installation

The Package can be installed from the Python package manager. Simply execute in a console the following command:

  $ pip install XcomLAN

or , if you will use the attached ThingsBoardClient

  $ pip install XcomLAN[ThingsBoard]

Getting Started

  • copy the example code example.py
  • setup the Xcom-232i device in Xcom-LAN mode.
  • configure the MOXA-NPort Operation Mode
Test Succeed:
    # MOXA-NPort Operation Mode: RFC2217
    "interface": "rfc2217://<host>:<port>",
Test Failed:
    # MOXA-NPort Operation Mode: TCP Server
    "interface": "socket://<host>:<port>",
Test Succeed:
    # MOXA-NPort Operation Mode: TCP Server,
    # And Use Any COM Mapping Tool like "TCP-Com.exe" as TCP-Client connects on <host>:<port>
    #       -->{BaudRate: 115200, Parity: None, StopBits: 1, DataBits: 8}
    "interface": "<SERIAL_VIRTUAL_PORT>",
Test Succeed:
    # MOXA-NPort Operation Mode: RealCOM,
    # And Use MOXA drivers/COM Mapping Tool
    #       -->{BaudRate: 115200, Parity: None, StopBits: 1, DataBits: 8}
    "interface": "<SERIAL_VIRTUAL_PORT>",
  • define your own NODES_LIST
NODES_LIST = {
    "N01": {"interface": "<SERIAL_VIRTUAL_PORT>",
            # ...
            },
    "N02": {"interface": "rfc2217://<host>:<port>",
            # ...
            },
    "N03": {"interface": "socket://<host>:<port>",
            # ...
            },
    # ...
}
  • create .env file like
THINGSBOARD_SERVER=<your tb host>>
GATEWAY_Access_TOKEN=<your tb gatway-device access-token>

READINGS_DELAY_IN_SECONDS=60
  • run the script, and start to design your own TB dashboards based on the received telemetry
  • the examble code by default have some infos of interst per device type, and address ranges for devices to be discovered. it will auto discover all possible XT, VT, VS, BSP device in the node.

Warnings

  • make sure scom package has been installed successfully, you might be required to move the two files from the site-packages directory to site-packages\sino\scom directory
    • baseframe.*.pyd|so
    • property.*.pyd|so

Authors

  • Mustafa M. A. U. AbuGhazy

License

This project is licensed under the MIT License - see the LICENSE file for details

Credits

Thanks for HES-SO Valais-Wallis for their great package scom. As I've developed this package by inspiration of ** scom** and depend on it.

External References:

Download files

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

Source Distribution

XcomLAN-0.0.1.tar.gz (58.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

XcomLAN-0.0.1-py3-none-any.whl (67.3 kB view details)

Uploaded Python 3

File details

Details for the file XcomLAN-0.0.1.tar.gz.

File metadata

  • Download URL: XcomLAN-0.0.1.tar.gz
  • Upload date:
  • Size: 58.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for XcomLAN-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d76063f9edd4362b331439b514661d2f2e2096b70ce813fec411475be3a992c1
MD5 edab3f90739560e3a8a18c254881871f
BLAKE2b-256 47d49ced5cad7fc1aede2d518c704570334e1a799a8dacfe420d7e62e2fa1554

See more details on using hashes here.

File details

Details for the file XcomLAN-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: XcomLAN-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 67.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for XcomLAN-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90e90439c98f40207cec15c5f24ec3865a2dec81254e41687adddde0b93be6fa
MD5 a665069a9018f257dcc98fd6a896b880
BLAKE2b-256 8c661cc956d50d31940bf9491b6554ab3396ee59f88332d14501229d3398b977

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