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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sdev
3
- Version: 0.3.0
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
@@ -2,6 +2,8 @@
2
2
 
3
3
  串口开发板控制器:后台按行读缓冲、按 flag 扫描与回显着色、执行命令、存活检测。
4
4
 
5
+ **注意**:同一串口同一时间只能被一个 sdev 进程使用。请勿并行执行多条 `sdev shell ...` 或快速连续执行,否则可能报「串口已被其他 sdev 进程占用」或挂死;需等前一条命令结束后再执行下一条。
6
+
5
7
  ## 安装
6
8
 
7
9
  ```bash
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sdev"
7
- version = "0.3.0"
7
+ version = "0.3.2"
8
8
  description = "串口控制器工具包"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -6,7 +6,7 @@ Demoboard:串口连接、后台异步读、发送、按行/按 flag 读、回
6
6
 
7
7
  from .core import SerialDevice
8
8
 
9
- __version__ = "0.3.0"
9
+ __version__ = "0.3.2"
10
10
  __author__ = "klrc"
11
11
  __email__ = "1440698245@qq.com"
12
12
 
@@ -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 = 2
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(timeout=self._join_timeout)
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.0
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
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="sdev",
8
- version="0.3.0",
8
+ version="0.3.2",
9
9
  author="klrc",
10
10
  author_email="144069824@qq.com",
11
11
  description="串口控制器工具包",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes