串行接口模块简单包装,支持模拟接口和真实接口
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.2.tar.gz
(6.9 kB
view details)
Built Distribution
KDSerial-0.0.2-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file kdserial-0.0.2.tar.gz
.
File metadata
- Download URL: kdserial-0.0.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04831001cead236da5b6295d70bb5429883679bed5b66ddfea90606a3c02ce51 |
|
MD5 | 029f15d7cf9f8a48ba1c4974e2121d56 |
|
BLAKE2b-256 | bf4d9077d6949e3e886b058974d9430061a7fedface7bb364a5fb452ece9d606 |
File details
Details for the file KDSerial-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: KDSerial-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.7 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 | dcfa12e9163e2b3aac171e276073481cea4dad4f157470a9edfcb987391e7043 |
|
MD5 | 7a29db4808ff9e29f9cce3ca8d69c7bf |
|
BLAKE2b-256 | d6b7f94c472824eae9c31f0dec627d3270a4361fa04f3487a7d6ca7a35a3d197 |