目录结构及说明
.
├── examples
| └── xxx.py
├── froModuleDrivers
| └── xxx.py
├── setup.py
└── README.md
examples文件夹说明
- 提供了每个硬件驱动基础的测试例子
- 更多控制方法请参考每个硬件驱动的api文档
froModuleDrivers文件夹说明
-
froModuleDrivers目录下存放了fro K12系列产品通用的socket通讯类的控制驱动源码,请勿随意修改
-
文件功能如下表所示
| filename | fun |
|---|---|
| init.py | |
| baseDriver.py | |
| nioConnector.py | |
| nioManager.py | 驱动管理模块 |
| protocol.py | |
| protocolHandler.py | |
| utils.py | |
| gateway.py | 网关节点驱动 |
| homeDeviceDriver.py | 家居设备控制板驱动 |
| agricultureDeviceDriver.py | 农业设备控制板驱动 |
| conveyerBeltDriver.py | 传送带驱动 |
| roboticArmDriver.py | 机械臂驱动 |
| libraryDriver.py | 图书管理驱动 |
| mCarDriver.py | 小车驱动 |
| generalDeviceDriver.py | 百控板驱动 |
setup.py
- 安装驱动到PC,安装完之后可以在任意目录来引用 from froModuleDrivers import xxx
安装方法
离线安装
- 下载源码到计算机
- 在froModuleDrivers同目录下打开命令行,运行指令:pip install .
pip install .
在线安装
- 联网状态可以直接运行:pip install froModuleDrivers
pip install froModuleDrivers
Tips:
- 升级方法为:pip install -U froModuleDrivers
pip install -U froModuleDrivers
或
pip install -U froModuleDrivers -i https://pypi.org/simple
- 如果联网安装过程中发现更新速度过慢或者pypi源中暂不包含该软件包,可以尝试临时使用如下的镜像源。 官方:
pip install froModuleDrivers -i https://pypi.org/simple
清华园:
pip install froModuleDrivers -i https://pypi.tuna.tsinghua.edu.cn/simple
中国科学技术大学:
pip install froModuleDrivers -i http://pypi.mirrors.ustc.edu.cn/simple/
版本信息
V1.0.0
- first commit
V1.0.1
- 修复了核心驱动的一些格式和文档说明
V1.0.2
- 上传驱动文件
gateway.pyhomeDeviceDriver.pyagricultureDeviceDriver.pyconveyerBeltDriver.pyroboticArmDriver.py - 增加了pip安装过程中出现的问题的一些解决方法
V1.0.3
- 修改了语音识别节点未识别成功时返回值未False
V1.0.4
- 修复了语音识别节点识别到"小飞同学"唤醒词时打印的keyERROR错误
V1.0.5
- 增加了识别一条新语句的方法
V1.0.6
- 增加了图书管理模块的驱动
libraryDriver.py
V1.0.7
- 增加了小车的驱动
mCarDriver.py
V1.0.9
- 增加了百控板的驱动
generalDeviceDriver.py - 修复了一些
gateway.py的BUG homeDeviceDriver.py驱动中窗帘模块的编码统一改为0x00B9,并删除了一些方法- API添加说明
V1.0.10
- 修复了百控板的驱动
generalDeviceDriver.py中语音识别编码字典(voiceEncodeV3)与硬件返回不匹配的BUG
V1.0.11
- 添加了百控板的驱动
generalDeviceDriver.py中语音识别设置相关的3个方法
Metadata
Release files for froModuleDrivers 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| froModuleDrivers-1.0.11.tar.gz | 37.9 kB | Without provenance | Details for froModuleDrivers-1.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| froModuleDrivers-1.0.11-py3-none-any.whl | Python 3 | none | any | Details for froModuleDrivers-1.0.11-py3-none-any.whl |
Total release size: 87.2 kB
Release files / froModuleDrivers-1.0.11.tar.gz
| Download URL | froModuleDrivers-1.0.11.tar.gz |
|---|---|
| Size | 37.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65e82ded4bb608fc808f4fe96b766e4d36dfcc260010e9e2db24cffce6428445
|
|
BLAKE2b-256 checksum How to use checksums |
8fe634002ab6a4ec93be5a2f3956403b5998b5767fb3ef15ed1e12c121fda6e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.8
|
Release files / froModuleDrivers-1.0.11-py3-none-any.whl
| Download URL | froModuleDrivers-1.0.11-py3-none-any.whl |
|---|---|
| Size | 49.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c09e13a4209cd2faa70987c650051644af69df4866d4d759e6e8c7e39e040292
|
|
BLAKE2b-256 checksum How to use checksums |
740afa3f71a372b77ca84e3bc3de417e8acd6ccf4bdad1d6994f48051662f90f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.8
|
Security for froModuleDrivers 1.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.