串行接口模块简单包装,支持模拟接口和真实接口
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.3.tar.gz
(6.9 kB
view details)
Built Distribution
KDSerial-0.0.3-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file kdserial-0.0.3.tar.gz
.
File metadata
- Download URL: kdserial-0.0.3.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 | 8a8702d5b66ba573db881cd17637014caaaf0c6c3f3cc04f4698ac065b2f8613 |
|
MD5 | 5f9642f4ae50be18962c37516c8e7e01 |
|
BLAKE2b-256 | 0a24f8e0a51ef2bdd41f3c9d98cc2d2b7e5df68793877d5d9bc3296bf69f0789 |
File details
Details for the file KDSerial-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: KDSerial-0.0.3-py3-none-any.whl
- Upload date:
- Size: 15.8 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 | 824b8be70fcae6bdc73440d7bfcf28d42b1c0eb586ae65e7e7c29e1c56764126 |
|
MD5 | 30534461938fc0bcdaf344188f4247b2 |
|
BLAKE2b-256 | 408f43313abdec7cef9558e24ef7a77642a0f0f7c09831478a85f5ca3e9865d9 |