串行接口模块简单包装,支持模拟接口和真实接口
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.6.tar.gz
(7.0 kB
view details)
File details
Details for the file kdserial-0.0.6.tar.gz
.
File metadata
- Download URL: kdserial-0.0.6.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b65742172d0c997b5efdfc374dccfe286e6d3dcb953d9f08371fdcbb53079df0 |
|
MD5 | 33b8ab2b61c93f6d1846099ecfa8f466 |
|
BLAKE2b-256 | e6371a7425e90c8510bb33e756ec838eba1f4e9ce989949c6244ba78a5cdb238 |