串行接口模块简单包装,支持模拟接口和真实接口
Project description
serial_module:串行接口模块
目录结构
- serial_module
- base
- mock_serial.py : 模拟通讯串行接口基类
- real_serial.py : 真实通讯串行接口基类
- serial_controller.py : 串行接口控制类, 控制是采用模拟接口还是真实接口以及串行接口通讯日志
- mock_serial.py : 模拟通讯串行接口基类
- data_type
- hex_struct.py : 十六进制结构体
- hex_struct.py : 十六进制结构体
- exception
- connection_exception.py : 连接异常(没有插上专用串行接口或通讯协议错误导致)
- not_connected_exception.py : 无连接异常(用户需要自动手动调用函数连接)
- probe_not_down_exception.py : 探头无下压异常
- respond_parse_exception.py : 单片机的返回数据解析异常(crc8校验失败/与通讯协议不对应)
- timeout_exception.py : 超时异常(多次尝试请求无回应)
- connection_exception.py : 连接异常(没有插上专用串行接口或通讯协议错误导致)
- interface
- serial_interface.py : 串行接口类的通用接口,如有其它接口可放在这
- serial_interface.py : 串行接口类的通用接口,如有其它接口可放在这
- base
- requirements.txt
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
kdserial-0.0.4.tar.gz
(7.1 kB
view details)
Built Distribution
KDSerial-0.0.4-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file kdserial-0.0.4.tar.gz
.
File metadata
- Download URL: kdserial-0.0.4.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6383cbcda4764cb69d650a54c08f629d60d954bb372d93d6f0294788ef7875b2 |
|
MD5 | 1134d3d9bdb228644298fa13be259768 |
|
BLAKE2b-256 | 06cdac60c77bcb498c324d57c2cdb9f4ba32095676b873893d583dce803dd7d7 |
File details
Details for the file KDSerial-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: KDSerial-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba257092be296aebe3009badf5bc6c2bee908722181a0f0782e558ce9b3d03c |
|
MD5 | 9677252bdfe92a9a2a94e1113332f783 |
|
BLAKE2b-256 | bc354000257f0af23e148efd2d8e450911ae089de54b2cf237e00595081a7318 |