oep-client-python 0.0.19__py3-none-any.whl → 0.0.20__py3-none-any.whl

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.
oep_client/__init__.py CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  __all__ = ["__version__"]
4
4
 
5
- __version__ = "0.0.19"
5
+ __version__ = "0.0.20"
oep_client/console.py CHANGED
@@ -136,10 +136,12 @@ class StreamIO:
136
136
  self.lost = 0
137
137
 
138
138
  def _limits(self) -> tuple[int, int]:
139
- """(read, write) chunk sizes that fit the probe's frame: request header 6 + session 4 + stream 1 + count 2,
140
- result header 5 + start 8 + flags 1."""
139
+ """(read, write) chunk sizes that fit the probe's frame: a write is request header 6 + session 4 + the stream's
140
+ prefix (the console's stream u16, none on a fixture UART) + count 2; a read's result is header 5 + start 8 +
141
+ flags 1. (The write was frame - 13 for both: one byte over on the console's 64-byte frames.)"""
141
142
  frame = self.source.host.confirmed()["max_frame"]
142
- return max(1, min(self.MAX_READ, frame - 14)), max(1, min(self.MAX_WRITE, frame - 13))
143
+ write = frame - 12 - len(self.source._stream_prefix())
144
+ return max(1, min(self.MAX_READ, frame - 14)), max(1, min(self.MAX_WRITE, write))
143
145
 
144
146
  def read(self, n: int = 512) -> bytes:
145
147
  c = self.source.read_from(self.position, min(n, self._limits()[0]))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: oep-client-python
3
- Version: 0.0.19
3
+ Version: 0.0.20
4
4
  Summary: Open Embedded Probe (OEP) v1 host: serial / USB / TCP transports, the session rules, the standard interfaces, and a fake probe
5
5
  Project-URL: Homepage, https://github.com/Open-Embedded-Probe/oep-client-python
6
6
  Project-URL: Repository, https://github.com/Open-Embedded-Probe/oep-client-python
@@ -1,4 +1,4 @@
1
- oep_client/__init__.py,sha256=jRt4FStf4EqrUlWPDFJ0vhSqSSO76YKp6mImNjR3KSM,164
1
+ oep_client/__init__.py,sha256=wds6ooM5lVV1iSvZzuFcKbd_Rbjs_HeyKpF2ASUlBrQ,164
2
2
  oep_client/__main__.py,sha256=tAQXHlLD5cI51DGMnYFjWWDigz0FwkVZuu11s5G4zMs,14870
3
3
  oep_client/arm.py,sha256=JLyUhLSPcmsk73schZcaJYoOKuHzrvnU8kPmfrEvVuo,12331
4
4
  oep_client/capture.py,sha256=bM9H6uqFB1-BuGciIj-_knuFspnNkJP6v5poPnkAAgU,25906
@@ -6,7 +6,7 @@ oep_client/catalog.py,sha256=VaCFQDlIxtEFEecQ5Hhfu2166Cy5m6tfzMCu7GBismk,6625
6
6
  oep_client/ch32_flash.py,sha256=GxlpZY-o7pOjT6Yod9Gk0EflNtVKT_w_fXwkXBq5zrM,12641
7
7
  oep_client/cobs.py,sha256=hqddQI_X7rsBvBvcP_MBE3bXPyB13-Azjqp_9JfdQ1g,2288
8
8
  oep_client/config.py,sha256=BdNrLOeLFu5brRecUWb6iII94KU9n2SaiE6kooCiOiY,10601
9
- oep_client/console.py,sha256=E68yUgajPk8A2sZJsIZwFknFyqrWOJkPxDUpG2v19lg,6869
9
+ oep_client/console.py,sha256=FPgFYkSyQZZz8Wd_G6NcRYhHp3qSlxzZMxMB-uMzz0Y,7104
10
10
  oep_client/core.py,sha256=Cyyaknjipkg6tS76dZe5GMqjmOoQjlfeP0WFtMHkJNs,10403
11
11
  oep_client/decode.py,sha256=6pTFVBT0MLAKedZLVKyd5yT8hjrRw4fdDjnoDiE9XRs,2380
12
12
  oep_client/dump.py,sha256=GAnmu2abuDmGmbWcbbEfC3EUuPp5Hady9vQVNcQ-724,6743
@@ -28,8 +28,8 @@ oep_client/riscv.py,sha256=rRMw-aoO-r27GtJqPmT2Ap1ysOd7cWi4f3_zOJfhX2I,23127
28
28
  oep_client/rp2350.py,sha256=7OMyj270k3AY1e3-ljicPwOjf9jOlokbT6QNkA0b0yY,4227
29
29
  oep_client/uiapduino.py,sha256=kDB8C9GvIPBw94PaCKMzVWNtoQDu_axrz_n_6zbYJGU,6082
30
30
  oep_client/usb_stream.py,sha256=6yS7OrXOMKnTeCt7HCdC-eH1gQuKQ0OSjX2pQOdTmVw,10586
31
- oep_client_python-0.0.19.dist-info/METADATA,sha256=D5SMqoTo1DgYb6MtdxI2BVLDmd2i-SngISMz9rJhirk,8813
32
- oep_client_python-0.0.19.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
33
- oep_client_python-0.0.19.dist-info/entry_points.txt,sha256=h6_8QX89Ww1ogALEGG5g4kspT3IOV6O51lwKqf5BWco,49
34
- oep_client_python-0.0.19.dist-info/licenses/LICENSE,sha256=ntlalztb3L1OaNAxmQdHlubu5fVhjMc9oRZi3PeQhXg,1076
35
- oep_client_python-0.0.19.dist-info/RECORD,,
31
+ oep_client_python-0.0.20.dist-info/METADATA,sha256=6Fhd58e6G36S-CrnJNoaN4CuSpI61IY04yTcpslCcUI,8813
32
+ oep_client_python-0.0.20.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
33
+ oep_client_python-0.0.20.dist-info/entry_points.txt,sha256=h6_8QX89Ww1ogALEGG5g4kspT3IOV6O51lwKqf5BWco,49
34
+ oep_client_python-0.0.20.dist-info/licenses/LICENSE,sha256=ntlalztb3L1OaNAxmQdHlubu5fVhjMc9oRZi3PeQhXg,1076
35
+ oep_client_python-0.0.20.dist-info/RECORD,,