python-can-cansub 2026.6.1__tar.gz → 2026.6.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.
- python_can_cansub-2026.6.2/CHANGELOG.md +16 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/PKG-INFO +1 -1
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/pyproject.toml +1 -1
- python_can_cansub-2026.6.2/src/python_can_cansub/__init__.py +4 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/src/python_can_cansub/cansub.py +13 -2
- python_can_cansub-2026.6.1/CHANGELOG.md +0 -8
- python_can_cansub-2026.6.1/src/python_can_cansub/__init__.py +0 -4
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/.gitignore +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/README.md +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/private_repo/README.md +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/private_repo/README_BUILD.md +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/private_repo/README_DEV.md +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/private_repo/README_PYPI.md +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/private_repo/README_REPO.md +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/src/python_can_cansub/cansub_protocol.py +0 -0
- {python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/src/python_can_cansub/cansub_root_cert.crt +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## 2026.06.02
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `CANSUB_ROOT_CERT`: path to the CANsub root certificate.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Transmit sequences (on the device) are deleted on bus open.
|
|
12
|
+
|
|
13
|
+
## 2026.06.01
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- `CyclicSendTask` with `duration=None` now working.
|
|
@@ -14,6 +14,8 @@ from can.io.generic import TextIOMessageWriter, TextIOMessageReader
|
|
|
14
14
|
from wsproto import ConnectionType, WSConnection, ConnectionState, events
|
|
15
15
|
from python_can_cansub.cansub_protocol import cansub_protocol_decode, cansub_protocol_encode
|
|
16
16
|
|
|
17
|
+
CANSUB_ROOT_CERT: Path = Path(__file__).with_name("cansub_root_cert.crt")
|
|
18
|
+
|
|
17
19
|
class CanSubHwFilter(TypedDict):
|
|
18
20
|
is_extended: bool
|
|
19
21
|
is_range: bool
|
|
@@ -135,7 +137,7 @@ class CanSub(can.BusABC):
|
|
|
135
137
|
self.channel_info = f"{address}@{self.channel}"
|
|
136
138
|
|
|
137
139
|
# Path to device root certificate
|
|
138
|
-
self.cansub_cert = str(
|
|
140
|
+
self.cansub_cert = str(CANSUB_ROOT_CERT)
|
|
139
141
|
|
|
140
142
|
# Perform REST interaction with the device in a persistent session
|
|
141
143
|
self.api_url = f"https://{host}:{port}/api"
|
|
@@ -179,6 +181,16 @@ class CanSub(can.BusABC):
|
|
|
179
181
|
# (Ensures that no messages get through until provided filters are set)
|
|
180
182
|
self.set_hw_filters(None)
|
|
181
183
|
|
|
184
|
+
# Ensure that no transmit-sequences are configured before the channel is opened
|
|
185
|
+
try:
|
|
186
|
+
response = self.session.get(f"{self.api_url}/can/{self.channel}/transmit", timeout=self._net_timeout)
|
|
187
|
+
response.raise_for_status()
|
|
188
|
+
for transmit_id in response.json():
|
|
189
|
+
response = self.session.delete(f"{self.api_url}/can/{self.channel}/transmit/{transmit_id}", timeout=self._net_timeout)
|
|
190
|
+
response.raise_for_status()
|
|
191
|
+
except Exception as e:
|
|
192
|
+
raise can.exceptions.CanInitializationError(f"Failed to clear transmit sequences ({e})")
|
|
193
|
+
|
|
182
194
|
# Set channel configuration
|
|
183
195
|
phy_config = {
|
|
184
196
|
"listen_only": self.listen_only,
|
|
@@ -883,4 +895,3 @@ def register_cansub_csv_writer():
|
|
|
883
895
|
from can.io.player import MESSAGE_READERS
|
|
884
896
|
MESSAGE_WRITERS[".csv"] = CanSubCSVWriter
|
|
885
897
|
MESSAGE_READERS[".csv"] = CanSubCSVReader
|
|
886
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/src/python_can_cansub/cansub_protocol.py
RENAMED
|
File without changes
|
{python_can_cansub-2026.6.1 → python_can_cansub-2026.6.2}/src/python_can_cansub/cansub_root_cert.crt
RENAMED
|
File without changes
|