串行接口模块简单包装,支持模拟接口和真实接口
Project description
# serial_module:串行接口模块 ## 目录结构
- [serial_module](serial_module)
- [base](serial_module/base)
[mock_serial.py](serial_module/base/mock_serial.py) : 模拟通讯串行接口基类<br/>
[real_serial.py](serial_module/base/real_serial.py) : 真实通讯串行接口基类<br/>
[serial_controller.py](serial_module/base/serial_controller.py) : 串行接口控制类, 控制是采用模拟接口还是真实接口以及串行接口通讯日志<br/>
- [data_type](serial_module/data_type)
[hex_struct.py](serial_module/data_type/hex_struct.py) : 十六进制结构体<br/>
- [exception](serial_module/exception)
[connection_exception.py](serial_module/exception/connection_exception.py) : 连接异常(没有插上专用串行接口或通讯协议错误导致)<br/>
[not_connected_exception.py](serial_module/exception/not_connected_exception.py) : 无连接异常(用户需要自动手动调用函数连接)<br/>
[probe_not_down_exception.py](serial_module/exception/probe_not_down_exception.py) : 探头无下压异常<br/>
[respond_parse_exception.py](serial_module/exception/respond_parse_exception.py) : 单片机的返回数据解析异常(crc8校验失败/与通讯协议不对应)<br/>
[timeout_exception.py](serial_module/exception/timeout_exception.py) : 超时异常(多次尝试请求无回应)<br/>
- [interface](serial_module/interface)
[serial_interface.py](serial_module/interface/serial_interface.py) : 串行接口类的通用接口,如有其它接口可放在这<br/>
[requirements.txt](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
Built Distribution
Hashes for serial_module-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3032b68be29794fcac2da8aca92ad50400ffdc5ab24c641855ee4cf72288e2f |
|
MD5 | e057283de34fe4aa5f3cb4766c0c9fd1 |
|
BLAKE2b-256 | c4a3760c7f07ef2d5faa07b7b62db376e3a7c0a2777234a36922e80ba92ba04f |