Skip to main content

Python wrapper for TcpClient

Project description

Motion Caller

概述

  • cordymotioncaller 是珠海市科迪电子科技有限公司基于 Linux(Ubuntu22.04) 平台的设备驱动运控程序客户端。
  • 客户端通过TCP与服务端通信。客户端发送指令,服务端解析指令并执行设备的运动控制,最终将结果返回给客户端。
  • 目前cordymotioncaller只支持Linux(Ubuntu22.04)版本。

主要特点

  • cordymotioncaller是C/S架构,实现客户端的指令隔离,使作为客户端的cordymotioncaller实现指令兼容。后续增加新的指令,只需要服务端支持即可,无需修改客户端cordymotioncall

pip 安装

cordymotioncaller已经发布到Pypi官网,通过 pip 指令可以安装。 注意:需要提前在Ubuntu22.04操作系统上安装python(版本3.10)

pip install cordymotioncaller

验证cordymotioncaller 是否安装成功

>>> from cordymotioncaller import MotionCaller
>>> MotionCaller.run_check()

输出如下内容:

cordymotioncaller installed.

表示安装成功

示例代码~~~~

from cordymotioncaller import MotionCaller  
caller = MotionCaller()                     
print(caller.send_command("127.0.0.1", 8899, "powerondut", 10000)) # 

代码说明:

  1. from cordymotioncaller import MotionCaller #导入MotionCaller模块
  2. caller = MotionCaller() #创建MotionCaller对象)
  3. caller.send_command("127.0.0.1", 8899, "powerondut", 10000)
    • "127.0.0.1" : 运控服务程序地址,127.0.0.1表示运控服务程序在在本地安装
    • 8899: 服务程序监听端口
    • "powerondut": 运控设备指令,详细指令说明参考下文“指令支持”部分
    • 200000: TCP连接超时,单位(ms)

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

cordymotioncaller-0.2.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

cordymotioncaller-0.2.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file cordymotioncaller-0.2.0.tar.gz.

File metadata

  • Download URL: cordymotioncaller-0.2.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for cordymotioncaller-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f60343a898139de09df123ea99fc4668dbc83ba5f9a7dba0e125a2e499413427
MD5 aa6a56acba849661cea50b60b43303d1
BLAKE2b-256 2e882b76b229caa93f7f05233a50d373f66b8f0439e11d69b2fa9ff6071daf44

See more details on using hashes here.

File details

Details for the file cordymotioncaller-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cordymotioncaller-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 136f61e29e59333fab35ca1d8eb3c49b88e13ae7a2bf0c63f3b9abefa7f19076
MD5 c44e4baed123fdc873cd18240d34e9d2
BLAKE2b-256 2e34d8fb6b518f22ed75837ce7ddab8082eb39e6421ce6715d36bc6156e1b0d9

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