pyxcp 0.22.24__cp39-cp39-win_amd64.whl → 0.22.25__cp39-cp39-win_amd64.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.

Potentially problematic release.


This version of pyxcp might be problematic. Click here for more details.

pyxcp/__init__.py CHANGED
@@ -17,4 +17,4 @@ tb_install(show_locals=True, max_frames=3) # Install custom exception handler.
17
17
 
18
18
  # if you update this manually, do not forget to update
19
19
  # .bumpversion.cfg and pyproject.toml.
20
- __version__ = "0.22.24"
20
+ __version__ = "0.22.25"
Binary file
Binary file
@@ -38,7 +38,7 @@ class DaqProcessor:
38
38
  def setup(self, start_datetime: Optional[CurrentDatetime] = None, write_multiple: bool = True):
39
39
  if not self.xcp_master.slaveProperties.supportsDaq:
40
40
  raise RuntimeError("DAQ functionality is not supported.")
41
- self.daq_info = self.xcp_master.getDaqInfo()
41
+ self.daq_info = self.xcp_master.getDaqInfo(include_event_lists=False)
42
42
  if start_datetime is None:
43
43
  start_datetime = CurrentDatetime(time_ns())
44
44
  self.start_datetime = start_datetime
Binary file
Binary file
@@ -15,7 +15,9 @@ using namespace py::literals;
15
15
 
16
16
  PYBIND11_MODULE(stim, m) {
17
17
  py::class_<DaqEventInfo>(m, "DaqEventInfo")
18
- .def(py::init<const std::string&, std::int8_t, std::size_t, std::size_t, std::size_t, std::string_view, bool, bool, bool>()
18
+ .def(py::init<const std::string&, std::int8_t, std::size_t, std::size_t, std::size_t, std::string_view, bool, bool, bool>(),
19
+ "name"_a, "type_code"_a, "cycle"_a, "max_daq_lists"_a, "priority"_a, "consistency"_a, "daq_supported"_a,
20
+ "stim_supported"_a, "packed_supported"_a
19
21
  );
20
22
 
21
23
  py::class_<Stim>(m, "Stim")
pyxcp/master/master.py CHANGED
@@ -1670,7 +1670,7 @@ class Master:
1670
1670
  self.logger.debug(f"Our checksum : 0x{cc:08X}")
1671
1671
  return cs.checksum == cc
1672
1672
 
1673
- def getDaqInfo(self):
1673
+ def getDaqInfo(self, include_event_lists=True):
1674
1674
  """Get DAQ information: processor, resolution, events."""
1675
1675
  result = {}
1676
1676
  dpi = self.getDaqProcessorInfo()
@@ -1711,45 +1711,46 @@ class Master:
1711
1711
  result["resolution"] = resolutionInfo
1712
1712
  channels = []
1713
1713
  daq_events = []
1714
- for ecn in range(dpi.maxEventChannel):
1715
- eci = self.getDaqEventInfo(ecn)
1716
- cycle = eci["eventChannelTimeCycle"]
1717
- maxDaqList = eci["maxDaqList"]
1718
- priority = eci["eventChannelPriority"]
1719
- time_unit = eci["eventChannelTimeUnit"]
1720
- consistency = eci["daqEventProperties"]["consistency"]
1721
- daq_supported = eci["daqEventProperties"]["daq"]
1722
- stim_supported = eci["daqEventProperties"]["stim"]
1723
- packed_supported = eci["daqEventProperties"]["packed"]
1724
- name = self.fetch(eci.eventChannelNameLength)
1725
- if name:
1726
- name = decode_bytes(name)
1727
- channel = {
1728
- "name": name,
1729
- "priority": eci["eventChannelPriority"],
1730
- "unit": eci["eventChannelTimeUnit"],
1731
- "cycle": eci["eventChannelTimeCycle"],
1732
- "maxDaqList": eci["maxDaqList"],
1733
- "properties": {
1734
- "consistency": consistency,
1735
- "daq": daq_supported,
1736
- "stim": stim_supported,
1737
- "packed": packed_supported,
1738
- },
1739
- }
1740
- daq_event_info = DaqEventInfo(
1741
- name,
1742
- types.EVENT_CHANNEL_TIME_UNIT_TO_EXP[time_unit],
1743
- cycle,
1744
- maxDaqList,
1745
- priority,
1746
- consistency,
1747
- daq_supported,
1748
- stim_supported,
1749
- packed_supported,
1750
- )
1751
- daq_events.append(daq_event_info)
1752
- channels.append(channel)
1714
+ if include_event_lists:
1715
+ for ecn in range(dpi.maxEventChannel):
1716
+ eci = self.getDaqEventInfo(ecn)
1717
+ cycle = eci["eventChannelTimeCycle"]
1718
+ maxDaqList = eci["maxDaqList"]
1719
+ priority = eci["eventChannelPriority"]
1720
+ time_unit = eci["eventChannelTimeUnit"]
1721
+ consistency = eci["daqEventProperties"]["consistency"]
1722
+ daq_supported = eci["daqEventProperties"]["daq"]
1723
+ stim_supported = eci["daqEventProperties"]["stim"]
1724
+ packed_supported = eci["daqEventProperties"]["packed"]
1725
+ name = self.fetch(eci.eventChannelNameLength)
1726
+ if name:
1727
+ name = decode_bytes(name)
1728
+ channel = {
1729
+ "name": name,
1730
+ "priority": eci["eventChannelPriority"],
1731
+ "unit": eci["eventChannelTimeUnit"],
1732
+ "cycle": eci["eventChannelTimeCycle"],
1733
+ "maxDaqList": eci["maxDaqList"],
1734
+ "properties": {
1735
+ "consistency": consistency,
1736
+ "daq": daq_supported,
1737
+ "stim": stim_supported,
1738
+ "packed": packed_supported,
1739
+ },
1740
+ }
1741
+ daq_event_info = DaqEventInfo(
1742
+ name,
1743
+ types.EVENT_CHANNEL_TIME_UNIT_TO_EXP[time_unit],
1744
+ cycle,
1745
+ maxDaqList,
1746
+ priority,
1747
+ consistency,
1748
+ daq_supported,
1749
+ stim_supported,
1750
+ packed_supported,
1751
+ )
1752
+ daq_events.append(daq_event_info)
1753
+ channels.append(channel)
1753
1754
  result["channels"] = channels
1754
1755
  self.stim.setDaqEventInfo(daq_events)
1755
1756
  return result
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyxcp
3
- Version: 0.22.24
3
+ Version: 0.22.25
4
4
  Summary: Universal Calibration Protocol for Python
5
5
  License: LGPLv3
6
6
  Keywords: automotive,ecu,xcp,asam,autosar
@@ -1,4 +1,4 @@
1
- pyxcp/__init__.py,sha256=iSnziiwb1KFvC519HZB3cjzPngfL1-Wv3a1V8kReV4Y,548
1
+ pyxcp/__init__.py,sha256=NDu785DrhpFkKcUgVKRBeBhp6NC9yp9DVxG_MGx_3Dg,548
2
2
  pyxcp/aml/EtasCANMonitoring.a2l,sha256=EJYwe3Z3H24vyWAa6lUgcdKnQY8pwFxjyCN6ZU1ST8w,1509
3
3
  pyxcp/aml/EtasCANMonitoring.aml,sha256=xl0DdyeiIaLW0mmmJNAyJS0CQdOLSxt9dxfgrdSlU8Y,2405
4
4
  pyxcp/aml/ifdata_CAN.a2l,sha256=NCUnCUEEgRbZYSLGtUGwL2e7zJ8hrp0SbmLHGv8uY58,612
@@ -24,24 +24,24 @@ pyxcp/constants.py,sha256=9yGfujC0ImTYQWfn41wyw8pluJTSrhMGWIVeIZTgsLg,1160
24
24
  pyxcp/cpp_ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  pyxcp/cpp_ext/bin.hpp,sha256=PwJloZek21la-RBSda2Hc0u_6gID0sfTduPeplaAyR4,2561
26
26
  pyxcp/cpp_ext/blockmem.hpp,sha256=ysaJwmTWGTfE54Outk3gJYOfAVFd_QaonBMtXLcXwCc,1242
27
- pyxcp/cpp_ext/cpp_ext.cp38-win_amd64.pyd,sha256=YCX89gxQtJZAM6llu8XdCim0esLVISn7m5-lk4SHrnU,279552
28
- pyxcp/cpp_ext/cpp_ext.cp39-win_amd64.pyd,sha256=_2KsW0OHHBtvnXHgFNLbCGc579yL5oQ3uIQmxJZfO0M,260096
27
+ pyxcp/cpp_ext/cpp_ext.cp38-win_amd64.pyd,sha256=FvxLTjwiAyCQBEoqKOZ-fci6t1caxfVchOpwv7ruPzY,279552
28
+ pyxcp/cpp_ext/cpp_ext.cp39-win_amd64.pyd,sha256=Jx5MDTdx6bNKSEvJjd_Wa-TnVHmexbmdjPqQARmVYx8,260096
29
29
  pyxcp/cpp_ext/daqlist.hpp,sha256=g2hlxgoQorAGKHedZFZ0c2FQh1APMIA9sVB6M6hD_n8,7277
30
30
  pyxcp/cpp_ext/event.hpp,sha256=Z-1yxsEKsr81NnLVEWJ2ANA8FV7YsM7EbNxaw-elheE,1200
31
31
  pyxcp/cpp_ext/extension_wrapper.cpp,sha256=FXFjyruBjQYqjCYZZcajdYv6dvNnCggMAbWLqJmfuTM,4756
32
32
  pyxcp/cpp_ext/helper.hpp,sha256=ONAsVupIqqmNDp8bgGWS0TfSYeCFkk3kwwZbbqsh0HQ,7813
33
33
  pyxcp/cpp_ext/mcobject.hpp,sha256=A5GKcfjYMcfm3hfTQfFuS4JYNFTvfmzAcMXCe01GOs4,6429
34
34
  pyxcp/cpp_ext/tsqueue.hpp,sha256=FWMemzXNgV5dQ7gYmTCzC0QYfgl0VI9JCybYelBcCHU,1026
35
- pyxcp/daq_stim/__init__.py,sha256=krRpcVlykDc45Nfxm13r3-kO3NNLYv_QfKmFtfYbL_M,9507
35
+ pyxcp/daq_stim/__init__.py,sha256=xQNF6MlVnPHtjj5fKEvXnLWxIJs_Fqd5XVMN4lcFaC8,9532
36
36
  pyxcp/daq_stim/optimize/__init__.py,sha256=FUWK0GkNpNT-sUlhibp7xa2aSYpm6Flh5yA2w2IOJqg,2520
37
37
  pyxcp/daq_stim/optimize/binpacking.py,sha256=Iltho5diKlJG-ltbmx053U2vOFRlCISolXK61T14l_I,1257
38
38
  pyxcp/daq_stim/scheduler.cpp,sha256=a7VK7kP2Hs8yMlcDAkXwJ0bH88lr_yz156sphcHS7Z4,715
39
39
  pyxcp/daq_stim/scheduler.hpp,sha256=U_6tUbebmzX5vVZS0EFSgTaPsyxMg6yRXHG_aPWA0x4,1884
40
- pyxcp/daq_stim/stim.cp38-win_amd64.pyd,sha256=9yxFIRQFtXarm2r5UjmHG_R5qMjYr_D39gF_x74JxiM,186880
41
- pyxcp/daq_stim/stim.cp39-win_amd64.pyd,sha256=QgDpj7yjd45m8HliNtXN8iwL0glOBr08eZdX82kLmVE,181248
40
+ pyxcp/daq_stim/stim.cp38-win_amd64.pyd,sha256=X_ftCGxwZ4slT40A21gSUwJq8J-vB8Q_VUvZgQkRB2c,189440
41
+ pyxcp/daq_stim/stim.cp39-win_amd64.pyd,sha256=nM37yO0Em1w_FxpT4mL5a8IVkYT5wsKLON1b1lI6C6w,183296
42
42
  pyxcp/daq_stim/stim.cpp,sha256=F2OG67W4KKwTTiUCxm-9egIv3TLFdOkRunX6xf7YOtc,177
43
43
  pyxcp/daq_stim/stim.hpp,sha256=U-uInRrA6OCdMl1l1SWbQ_KEPpnNYrWut924IvbW6R0,18508
44
- pyxcp/daq_stim/stim_wrapper.cpp,sha256=5LbWkK86h_4mHd83dnwCU7BRvVYit8ijxBMT7pthtOE,1830
44
+ pyxcp/daq_stim/stim_wrapper.cpp,sha256=iT2yxJ3LRG7HoYC1bwhM3tCAxF9X_HHierBNsLRmTJg,1995
45
45
  pyxcp/dllif.py,sha256=nXzD5toh_z9Zjj3x3trigURfwE98fYaL4RmUlI7FaqY,3308
46
46
  pyxcp/errormatrix.py,sha256=iY3VlAem7pNfpK4scD_087wxMlLxNuidB7bbpiUiAyc,45464
47
47
  pyxcp/examples/conf_can.toml,sha256=4o-M4xmh7pCzuQLfXnIOLIXqx5aZjMAZ6jtjYJ8hLBQ,370
@@ -68,7 +68,7 @@ pyxcp/examples/xcphello.py,sha256=xbcWq8StRJyUZBLUvknsXv7VkEBD5SU0SJjlZTHsSzs,26
68
68
  pyxcp/examples/xcphello_recorder.py,sha256=QHWJsq5h5CI9t5qEmMSorZyzirTpoXz4nzuKTMzbZCA,3409
69
69
  pyxcp/master/__init__.py,sha256=QQbkUJM1WQ-5p2MiNFYxLAmHhNsCQLzDp-S4aoOFxoA,318
70
70
  pyxcp/master/errorhandler.py,sha256=U5QuvGRDM9kRNwY5kbkTOnthp19RHoXEGCsaBNiFTps,14973
71
- pyxcp/master/master.py,sha256=DXkKNE5zx1388kC2-YoUbzjsQcqQfmV897YkQQGvnks,78150
71
+ pyxcp/master/master.py,sha256=y5i5HTw5g4HKHW8tXfpNc0hmaQjle-3dsUkVFqPjUXc,78365
72
72
  pyxcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  pyxcp/recorder/__init__.py,sha256=pg-cdOaoj-D-woFxFb2p6SpFTNTdpQEIknHdDaQ9ROE,2695
74
74
  pyxcp/recorder/build_clang.cmd,sha256=JvFngSnb28XcBGXxC6MGrcOCGYfahOIvHpgRpqbA6HQ,175
@@ -85,8 +85,8 @@ pyxcp/recorder/mio.hpp,sha256=5ASJLKSEykH0deAQD5uak-_yAgd5p2n8t06315GSGrg,63346
85
85
  pyxcp/recorder/reader.hpp,sha256=rr9XZ_ciL6eF2_xEqyt9XYNqTIze9ytAsnf8uYukO9U,5201
86
86
  pyxcp/recorder/reco.py,sha256=6N6FIwfCEVMpi5dr3eUOQa1lowcg2LCnS_sy_-b-UiQ,8725
87
87
  pyxcp/recorder/recorder.rst,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
- pyxcp/recorder/rekorder.cp38-win_amd64.pyd,sha256=lZtzyfBYzSiUw5JlLUr6rBgTu2983iKXW9oxWfeSQ-A,377856
89
- pyxcp/recorder/rekorder.cp39-win_amd64.pyd,sha256=jV5Aw68QxvSqHlb1TcbG-SbBglZH7K30LgdqOmgg3pQ,364032
88
+ pyxcp/recorder/rekorder.cp38-win_amd64.pyd,sha256=_XW8GKdICxi0mzTRHwZ7Fc_afbCMOPrCQpNa-EozKnE,377856
89
+ pyxcp/recorder/rekorder.cp39-win_amd64.pyd,sha256=IlUPHXqh86T7fBmgHC8EE7nTMuCkJMYTggM9u52LSwU,364032
90
90
  pyxcp/recorder/rekorder.cpp,sha256=U0LMyk8pZXx9emgS_WPVthvn_9IpgE7JGrh4kg-8CX4,1900
91
91
  pyxcp/recorder/rekorder.hpp,sha256=sWvRch9bVt6mmgrFHp5mwWhap7HoFG4geeb7UqEIzio,7638
92
92
  pyxcp/recorder/setup.py,sha256=_99XFPQAd5V4LcJaSGJwdnbxgxJ7kl8DEXfHsnKO1Yg,998
@@ -124,8 +124,8 @@ pyxcp/types.py,sha256=wm3tOocuAln4jpH_mDguPRYtIzHSQ_KQBYNATFB2WXc,26068
124
124
  pyxcp/utils.py,sha256=unlg0CoNwcWYfd-BE0hZJ93uhlAoW_nryv9tS_R3C44,2969
125
125
  pyxcp/vector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
126
  pyxcp/vector/map.py,sha256=7Gnhvr79geMeqqGVIJPxODXGwABdNDinnqzhpooN5TE,2306
127
- pyxcp-0.22.24.dist-info/entry_points.txt,sha256=2JbL-pWn9UxpBrS64aWiFFkq9x2A7y-dkrxYlfQqIJU,307
128
- pyxcp-0.22.24.dist-info/LICENSE,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
129
- pyxcp-0.22.24.dist-info/METADATA,sha256=FmnwKWDxyTtAH1vch72rfxLeyfSdYGD1DI_GZ7HiPQs,4088
130
- pyxcp-0.22.24.dist-info/WHEEL,sha256=Hkd2GxahgaJo_PUXSn2Z_PVyVBw8DHa683MQcF0Lrhc,96
131
- pyxcp-0.22.24.dist-info/RECORD,,
127
+ pyxcp-0.22.25.dist-info/entry_points.txt,sha256=2JbL-pWn9UxpBrS64aWiFFkq9x2A7y-dkrxYlfQqIJU,307
128
+ pyxcp-0.22.25.dist-info/LICENSE,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
129
+ pyxcp-0.22.25.dist-info/METADATA,sha256=oUrQTmW0BB6APl8u-j-RKbfm75jwXGBVnr72VmiaOjo,4088
130
+ pyxcp-0.22.25.dist-info/WHEEL,sha256=Hkd2GxahgaJo_PUXSn2Z_PVyVBw8DHa683MQcF0Lrhc,96
131
+ pyxcp-0.22.25.dist-info/RECORD,,