sdev 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sdev-0.3.0/sdev.egg-info → sdev-0.3.2}/PKG-INFO +3 -1
- {sdev-0.3.0 → sdev-0.3.2}/README.md +2 -0
- {sdev-0.3.0 → sdev-0.3.2}/pyproject.toml +1 -1
- {sdev-0.3.0 → sdev-0.3.2}/sdev/__init__.py +1 -1
- {sdev-0.3.0 → sdev-0.3.2}/sdev/core.py +2 -3
- {sdev-0.3.0 → sdev-0.3.2/sdev.egg-info}/PKG-INFO +3 -1
- {sdev-0.3.0 → sdev-0.3.2}/setup.py +1 -1
- {sdev-0.3.0 → sdev-0.3.2}/LICENSE +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/MANIFEST.in +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/sdev/cli_wrapper.py +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/sdev.egg-info/SOURCES.txt +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/sdev.egg-info/dependency_links.txt +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/sdev.egg-info/entry_points.txt +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/sdev.egg-info/requires.txt +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/sdev.egg-info/top_level.txt +0 -0
- {sdev-0.3.0 → sdev-0.3.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sdev
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: 串口控制器工具包
|
|
5
5
|
Home-page: https://github.com/klrc/sdev
|
|
6
6
|
Author: klrc
|
|
@@ -36,6 +36,8 @@ Dynamic: requires-python
|
|
|
36
36
|
|
|
37
37
|
串口开发板控制器:后台按行读缓冲、按 flag 扫描与回显着色、执行命令、存活检测。
|
|
38
38
|
|
|
39
|
+
**注意**:同一串口同一时间只能被一个 sdev 进程使用。请勿并行执行多条 `sdev shell ...` 或快速连续执行,否则可能报「串口已被其他 sdev 进程占用」或挂死;需等前一条命令结束后再执行下一条。
|
|
40
|
+
|
|
39
41
|
## 安装
|
|
40
42
|
|
|
41
43
|
```bash
|
|
@@ -51,7 +51,6 @@ class SerialDevice:
|
|
|
51
51
|
|
|
52
52
|
self._reboot_timeout = 20 # check_alive 时 wait_for_flag 等稳定提示符的最大秒数
|
|
53
53
|
self._check_alive_timeout = 0.5
|
|
54
|
-
self._join_timeout = 2.0
|
|
55
54
|
self._scan_timeout = 0.1
|
|
56
55
|
|
|
57
56
|
def _serial_reader(self) -> None:
|
|
@@ -78,7 +77,7 @@ class SerialDevice:
|
|
|
78
77
|
self._reader_thread.start()
|
|
79
78
|
self._is_connected = True
|
|
80
79
|
|
|
81
|
-
self._max_lines_per_prompt =
|
|
80
|
+
self._max_lines_per_prompt = 4
|
|
82
81
|
|
|
83
82
|
if self._check_alive:
|
|
84
83
|
self.check_alive(self.STABLE_FLAG)
|
|
@@ -90,7 +89,7 @@ class SerialDevice:
|
|
|
90
89
|
self._stop_reading = True
|
|
91
90
|
self._buffer.put(None) # unblock any read() waiting on get()
|
|
92
91
|
if self._reader_thread is not None and self._reader_thread.is_alive():
|
|
93
|
-
self._reader_thread.join(
|
|
92
|
+
self._reader_thread.join()
|
|
94
93
|
self._reader_thread = None
|
|
95
94
|
if self._serial is not None and self._serial.is_open:
|
|
96
95
|
self._serial.close()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sdev
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: 串口控制器工具包
|
|
5
5
|
Home-page: https://github.com/klrc/sdev
|
|
6
6
|
Author: klrc
|
|
@@ -36,6 +36,8 @@ Dynamic: requires-python
|
|
|
36
36
|
|
|
37
37
|
串口开发板控制器:后台按行读缓冲、按 flag 扫描与回显着色、执行命令、存活检测。
|
|
38
38
|
|
|
39
|
+
**注意**:同一串口同一时间只能被一个 sdev 进程使用。请勿并行执行多条 `sdev shell ...` 或快速连续执行,否则可能报「串口已被其他 sdev 进程占用」或挂死;需等前一条命令结束后再执行下一条。
|
|
40
|
+
|
|
39
41
|
## 安装
|
|
40
42
|
|
|
41
43
|
```bash
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|