Skip to main content

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:-

  1. normally install COSMED Omnia.

  2. run the regedit.reg file provided to configure the OCP.

  3. then normally start COMSED OMNIA.

  4. then you can use the python module ocp.py to send commands to the software.

steps to install and use the OCP package:

  1. clone the package.
  2. 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

Download files

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

Source Distribution

pycosmed-0.0.20.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

pycosmed-0.0.20-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pycosmed-0.0.20.tar.gz.

File metadata

  • Download URL: pycosmed-0.0.20.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pycosmed-0.0.20.tar.gz
Algorithm Hash digest
SHA256 fd64ab3cedb8199b5e297115d345dea773edf924c9d22aaf48dd91cb89db4244
MD5 4b52c544f580855801af71d48c61afc7
BLAKE2b-256 7b7148d23d7ce86d9918ee4102c145686be48eed717945019741bac7edc0475f

See more details on using hashes here.

Provenance

File details

Details for the file pycosmed-0.0.20-py3-none-any.whl.

File metadata

  • Download URL: pycosmed-0.0.20-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

Hashes for pycosmed-0.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 b3805a0527cd658b9deb00889d514da7c5b9098dffa47c8087c61f0f25e96d6d
MD5 81e014b5e2c203f24cc76a6f30ff62f2
BLAKE2b-256 d3ece700c9781e479d58b2c0c3858c7e3a0a8be207cf466470ff58066c9cdcc9

See more details on using hashes here.

Provenance

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