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:
Metadata
Release files for XcomLAN 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| XcomLAN-0.0.1.tar.gz | 58.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| XcomLAN-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 125.8 kB
Release files / XcomLAN-0.0.1.tar.gz
| Download URL | XcomLAN-0.0.1.tar.gz |
|---|---|
| Size | 58.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d76063f9edd4362b331439b514661d2f2e2096b70ce813fec411475be3a992c1
|
|
BLAKE2b-256 checksum How to use checksums |
47d49ced5cad7fc1aede2d518c704570334e1a799a8dacfe420d7e62e2fa1554
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / XcomLAN-0.0.1-py3-none-any.whl
| Download URL | XcomLAN-0.0.1-py3-none-any.whl |
|---|---|
| Size | 67.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90e90439c98f40207cec15c5f24ec3865a2dec81254e41687adddde0b93be6fa
|
|
BLAKE2b-256 checksum How to use checksums |
8c661cc956d50d31940bf9491b6554ab3396ee59f88332d14501229d3398b977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|