串行接口模块简单包装,支持模拟接口和真实接口
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
serial_module-1.1.0.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file serial_module-1.1.0.tar.gz
.
File metadata
- Download URL: serial_module-1.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.4.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d3ecfb00565c980b368e3c248522a76dbf0c639a4dd03d3546301cf8b9e10e |
|
MD5 | c341010b5882cae3f774fddfcf61f73b |
|
BLAKE2b-256 | baa786534300c5ebea01072430c2ab705631968d2b14f7b13384439884f5d3e9 |
File details
Details for the file serial_module-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: serial_module-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.4.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 319e5b779f0772eaa7700efe21b8204eba4a7366137bffe7ec27606c75832229 |
|
MD5 | 4803a3c334635b970acdd77f4304f0b9 |
|
BLAKE2b-256 | b95b3c7344536a20a2b3f6fc2c10e24863d99d2fbc6bc857d27833a7762f1e07 |