an OCP interface to send commands and recieve using Omnia control protocol
Project description
About
This is package is create to interface with COSMED Omnia (created by ©1996-2024 COSMED srl) using OCP (Omnia control protocol) it Could be used to send any command from the OCP and get the result as a python dictionary by first creating the command as an xml send it and receive the response and process it to get a python dictionary to all easy Integration with python.
to get started with OCP using python follow the following steps:-
-
normally install COSMED Omnia.
-
run the regedit.reg file provided to configure the OCP.
-
then normally start COMSED OMNIA.
-
then you can use the python module ocp.py to send commands to the software.
steps to install and use the OCP package:
- clone the package.
- run setup.py using (pip install .) while on the same directory as the setup.py.
from OCP import OCP #import the OCP main class
ocp = OCP() # to creates an OCP object
ocp.connect() # to initiate a TCP connection with COSMED Omnia
# to login and notice COSMED omnia needs to be running and replace the username and password with username and password created on COMED Omnia
ocp.login("username", "password")
you can then send any command and get the result in python as the OCP interface and you can find a method for every command on the OCP to send that command and receive a response
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pycosmed-0.0.23.tar.gz
.
File metadata
- Download URL: pycosmed-0.0.23.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d902edcc0ec133521eb50698ca835e1251d00d114e0e7d1124140d679954953e |
|
MD5 | becb7d1e2d6c474605ec1759fbf167a8 |
|
BLAKE2b-256 | f00c27b2b7db5d83f4849255b4f29ec40f17e6b374859543b3835c3ebc8810f3 |
File details
Details for the file pycosmed-0.0.23-py3-none-any.whl
.
File metadata
- Download URL: pycosmed-0.0.23-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c0c20233eef6df869793149757f7b23b5494722590f7a9f919a3126ed70a0bd |
|
MD5 | e3a3b412f6a105123e8587416c8cdae2 |
|
BLAKE2b-256 | 6cb71e0a35307e4bf17e12ad496eaae932ea8ada75ce1d825414aaa2d5edd986 |