pycangui 0.1.0__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.
- pycangui-0.1.0/LICENSE +202 -0
- pycangui-0.1.0/LICENSES/MIT-0.txt +14 -0
- pycangui-0.1.0/NOTICE +39 -0
- pycangui-0.1.0/PKG-INFO +100 -0
- pycangui-0.1.0/PYPI.md +66 -0
- pycangui-0.1.0/README.md +129 -0
- pycangui-0.1.0/pycangui/__init__.py +6 -0
- pycangui-0.1.0/pycangui/__main__.py +316 -0
- pycangui-0.1.0/pycangui/canopen/__init__.py +263 -0
- pycangui-0.1.0/pycangui/canopen/dcf.py +115 -0
- pycangui-0.1.0/pycangui/canopen/display.py +213 -0
- pycangui-0.1.0/pycangui/canopen/emcy.py +255 -0
- pycangui-0.1.0/pycangui/canopen/faults.py +171 -0
- pycangui-0.1.0/pycangui/canopen/manager.py +1543 -0
- pycangui-0.1.0/pycangui/ccp/__init__.py +87 -0
- pycangui-0.1.0/pycangui/ccp/engine.py +169 -0
- pycangui-0.1.0/pycangui/core/__init__.py +2 -0
- pycangui-0.1.0/pycangui/core/bus.py +632 -0
- pycangui-0.1.0/pycangui/core/bus_health.py +153 -0
- pycangui-0.1.0/pycangui/core/channels.py +262 -0
- pycangui-0.1.0/pycangui/core/checkout.py +134 -0
- pycangui-0.1.0/pycangui/core/classify.py +161 -0
- pycangui-0.1.0/pycangui/core/components.py +372 -0
- pycangui-0.1.0/pycangui/core/context.py +85 -0
- pycangui-0.1.0/pycangui/core/dbc.py +115 -0
- pycangui-0.1.0/pycangui/core/detect.py +349 -0
- pycangui-0.1.0/pycangui/core/events.py +73 -0
- pycangui-0.1.0/pycangui/core/excepthook.py +111 -0
- pycangui-0.1.0/pycangui/core/export.py +110 -0
- pycangui-0.1.0/pycangui/core/filters.py +125 -0
- pycangui-0.1.0/pycangui/core/hooks.py +511 -0
- pycangui-0.1.0/pycangui/core/known_ids.py +136 -0
- pycangui-0.1.0/pycangui/core/layout.py +73 -0
- pycangui-0.1.0/pycangui/core/logbridge.py +100 -0
- pycangui-0.1.0/pycangui/core/logging.py +239 -0
- pycangui-0.1.0/pycangui/core/mdf.py +251 -0
- pycangui-0.1.0/pycangui/core/packages.py +103 -0
- pycangui-0.1.0/pycangui/core/paths.py +56 -0
- pycangui-0.1.0/pycangui/core/plugin_package.py +362 -0
- pycangui-0.1.0/pycangui/core/plugins.py +383 -0
- pycangui-0.1.0/pycangui/core/seedkey.py +591 -0
- pycangui-0.1.0/pycangui/core/settings.py +44 -0
- pycangui-0.1.0/pycangui/core/shortcut.py +154 -0
- pycangui-0.1.0/pycangui/core/signals.py +129 -0
- pycangui-0.1.0/pycangui/core/simnodes.py +703 -0
- pycangui-0.1.0/pycangui/core/slow_start.py +101 -0
- pycangui-0.1.0/pycangui/core/supplied.py +193 -0
- pycangui-0.1.0/pycangui/core/timing.py +312 -0
- pycangui-0.1.0/pycangui/core/tx_fields.py +483 -0
- pycangui-0.1.0/pycangui/core/updates.py +160 -0
- pycangui-0.1.0/pycangui/core/worker.py +66 -0
- pycangui-0.1.0/pycangui/core/workspace_files.py +189 -0
- pycangui-0.1.0/pycangui/core/workspace_package.py +286 -0
- pycangui-0.1.0/pycangui/core/workspaces.py +302 -0
- pycangui-0.1.0/pycangui/custom_panes/__init__.py +50 -0
- pycangui-0.1.0/pycangui/custom_panes/model.py +352 -0
- pycangui-0.1.0/pycangui/custom_panes/polling.py +198 -0
- pycangui-0.1.0/pycangui/custom_panes/source.py +267 -0
- pycangui-0.1.0/pycangui/help/__init__.py +146 -0
- pycangui-0.1.0/pycangui/help/about.md +25 -0
- pycangui-0.1.0/pycangui/help/ascii-log.md +36 -0
- pycangui-0.1.0/pycangui/help/canopen.md +258 -0
- pycangui-0.1.0/pycangui/help/channels.md +185 -0
- pycangui-0.1.0/pycangui/help/cia402.md +156 -0
- pycangui-0.1.0/pycangui/help/compare.md +65 -0
- pycangui-0.1.0/pycangui/help/components.md +97 -0
- pycangui-0.1.0/pycangui/help/console.md +50 -0
- pycangui-0.1.0/pycangui/help/custom-panes.md +122 -0
- pycangui-0.1.0/pycangui/help/event-log.md +50 -0
- pycangui-0.1.0/pycangui/help/files.md +81 -0
- pycangui-0.1.0/pycangui/help/firmware.md +48 -0
- pycangui-0.1.0/pycangui/help/hooks.md +182 -0
- pycangui-0.1.0/pycangui/help/j1939.md +29 -0
- pycangui-0.1.0/pycangui/help/main-window.png +0 -0
- pycangui-0.1.0/pycangui/help/manual.md +39 -0
- pycangui-0.1.0/pycangui/help/panes.md +92 -0
- pycangui-0.1.0/pycangui/help/plugins.md +133 -0
- pycangui-0.1.0/pycangui/help/signals.md +111 -0
- pycangui-0.1.0/pycangui/help/trace.md +100 -0
- pycangui-0.1.0/pycangui/help/transmit.md +97 -0
- pycangui-0.1.0/pycangui/help/uds.md +236 -0
- pycangui-0.1.0/pycangui/help/virtual.md +186 -0
- pycangui-0.1.0/pycangui/help/workspaces.md +133 -0
- pycangui-0.1.0/pycangui/help/xcp.md +52 -0
- pycangui-0.1.0/pycangui/hooks/__init__.py +4 -0
- pycangui-0.1.0/pycangui/hooks/ascii_log.py +63 -0
- pycangui-0.1.0/pycangui/hooks/canopen.py +354 -0
- pycangui-0.1.0/pycangui/hooks/j1939.py +148 -0
- pycangui-0.1.0/pycangui/hooks/startup.py +75 -0
- pycangui-0.1.0/pycangui/hooks/trace.py +42 -0
- pycangui-0.1.0/pycangui/hooks/transmit.py +51 -0
- pycangui-0.1.0/pycangui/hooks/uds.py +357 -0
- pycangui-0.1.0/pycangui/hooks/xcp.py +42 -0
- pycangui-0.1.0/pycangui/j1939/__init__.py +167 -0
- pycangui-0.1.0/pycangui/j1939/manager.py +265 -0
- pycangui-0.1.0/pycangui/nodes/__init__.py +23 -0
- pycangui-0.1.0/pycangui/nodes/canopen_device.py +182 -0
- pycangui-0.1.0/pycangui/nodes/ccp_slave.py +173 -0
- pycangui-0.1.0/pycangui/nodes/gateway.py +82 -0
- pycangui-0.1.0/pycangui/nodes/j1939_engine.py +174 -0
- pycangui-0.1.0/pycangui/nodes/uds_server.py +239 -0
- pycangui-0.1.0/pycangui/nodes/xcp_slave.py +160 -0
- pycangui-0.1.0/pycangui/plugins/__init__.py +8 -0
- pycangui-0.1.0/pycangui/plugins/cia402/__init__.py +8 -0
- pycangui-0.1.0/pycangui/plugins/cia402/drive.py +494 -0
- pycangui-0.1.0/pycangui/plugins/cia402/plugin.py +1025 -0
- pycangui-0.1.0/pycangui/plugins/dcf_compare/__init__.py +7 -0
- pycangui-0.1.0/pycangui/plugins/dcf_compare/compare.py +312 -0
- pycangui-0.1.0/pycangui/plugins/dcf_compare/plugin.py +463 -0
- pycangui-0.1.0/pycangui/plugins/firmware/__init__.py +7 -0
- pycangui-0.1.0/pycangui/plugins/firmware/plugin.py +425 -0
- pycangui-0.1.0/pycangui/plugins/firmware/program.py +172 -0
- pycangui-0.1.0/pycangui/resources/__init__.py +10 -0
- pycangui-0.1.0/pycangui/resources/demo.a2l +41 -0
- pycangui-0.1.0/pycangui/resources/demo.dbc +66 -0
- pycangui-0.1.0/pycangui/resources/demo.eds +354 -0
- pycangui-0.1.0/pycangui/resources/pycangui.ico +0 -0
- pycangui-0.1.0/pycangui/resources/pycangui.png +0 -0
- pycangui-0.1.0/pycangui/resources/pycangui.svg +36 -0
- pycangui-0.1.0/pycangui/resources/pycangui_small.svg +29 -0
- pycangui-0.1.0/pycangui/uds/__init__.py +125 -0
- pycangui-0.1.0/pycangui/uds/dtc.py +122 -0
- pycangui-0.1.0/pycangui/uds/images.py +221 -0
- pycangui-0.1.0/pycangui/uds/manager.py +1033 -0
- pycangui-0.1.0/pycangui/uds/standard.py +241 -0
- pycangui-0.1.0/pycangui/uds/transport.py +160 -0
- pycangui-0.1.0/pycangui/ui/__init__.py +2 -0
- pycangui-0.1.0/pycangui/ui/ascii_view.py +317 -0
- pycangui-0.1.0/pycangui/ui/bus_status.py +235 -0
- pycangui-0.1.0/pycangui/ui/canopen_login.py +73 -0
- pycangui-0.1.0/pycangui/ui/canopen_settings.py +423 -0
- pycangui-0.1.0/pycangui/ui/canopen_view.py +1263 -0
- pycangui-0.1.0/pycangui/ui/confirm.py +313 -0
- pycangui-0.1.0/pycangui/ui/connect_bar.py +503 -0
- pycangui-0.1.0/pycangui/ui/console_view.py +172 -0
- pycangui-0.1.0/pycangui/ui/custom_pane_view.py +755 -0
- pycangui-0.1.0/pycangui/ui/detached.py +85 -0
- pycangui-0.1.0/pycangui/ui/event_colours.py +66 -0
- pycangui-0.1.0/pycangui/ui/faults_view.py +252 -0
- pycangui-0.1.0/pycangui/ui/field_widgets.py +706 -0
- pycangui-0.1.0/pycangui/ui/folders.py +173 -0
- pycangui-0.1.0/pycangui/ui/help_menu.py +643 -0
- pycangui-0.1.0/pycangui/ui/import_signals.py +226 -0
- pycangui-0.1.0/pycangui/ui/j1939_view.py +265 -0
- pycangui-0.1.0/pycangui/ui/keep_file.py +89 -0
- pycangui-0.1.0/pycangui/ui/latest_model.py +382 -0
- pycangui-0.1.0/pycangui/ui/lss_view.py +214 -0
- pycangui-0.1.0/pycangui/ui/main_window.py +2135 -0
- pycangui-0.1.0/pycangui/ui/message_filter.py +301 -0
- pycangui-0.1.0/pycangui/ui/messages.py +78 -0
- pycangui-0.1.0/pycangui/ui/pane_bar.py +88 -0
- pycangui-0.1.0/pycangui/ui/panes.py +882 -0
- pycangui-0.1.0/pycangui/ui/pdo_view.py +374 -0
- pycangui-0.1.0/pycangui/ui/persist.py +121 -0
- pycangui-0.1.0/pycangui/ui/plot_view.py +316 -0
- pycangui-0.1.0/pycangui/ui/plugin_app.py +253 -0
- pycangui-0.1.0/pycangui/ui/plugin_manager.py +559 -0
- pycangui-0.1.0/pycangui/ui/refresh.py +47 -0
- pycangui-0.1.0/pycangui/ui/replay_action.py +258 -0
- pycangui-0.1.0/pycangui/ui/restore_supplied.py +93 -0
- pycangui-0.1.0/pycangui/ui/scope_view.py +139 -0
- pycangui-0.1.0/pycangui/ui/seedkey_view.py +240 -0
- pycangui-0.1.0/pycangui/ui/session.py +53 -0
- pycangui-0.1.0/pycangui/ui/signals_view.py +184 -0
- pycangui-0.1.0/pycangui/ui/simnode_dialog.py +247 -0
- pycangui-0.1.0/pycangui/ui/theme.py +85 -0
- pycangui-0.1.0/pycangui/ui/trace_model.py +94 -0
- pycangui-0.1.0/pycangui/ui/trace_view.py +449 -0
- pycangui-0.1.0/pycangui/ui/tx_fields_dialog.py +389 -0
- pycangui-0.1.0/pycangui/ui/tx_view.py +958 -0
- pycangui-0.1.0/pycangui/ui/uds_view.py +1263 -0
- pycangui-0.1.0/pycangui/ui/workspace_menu.py +489 -0
- pycangui-0.1.0/pycangui/ui/xcp_view.py +432 -0
- pycangui-0.1.0/pycangui/xcp/__init__.py +103 -0
- pycangui-0.1.0/pycangui/xcp/a2l.py +174 -0
- pycangui-0.1.0/pycangui/xcp/engine.py +196 -0
- pycangui-0.1.0/pycangui/xcp/manager.py +298 -0
- pycangui-0.1.0/pycangui.egg-info/PKG-INFO +100 -0
- pycangui-0.1.0/pycangui.egg-info/SOURCES.txt +270 -0
- pycangui-0.1.0/pycangui.egg-info/dependency_links.txt +1 -0
- pycangui-0.1.0/pycangui.egg-info/entry_points.txt +2 -0
- pycangui-0.1.0/pycangui.egg-info/requires.txt +20 -0
- pycangui-0.1.0/pycangui.egg-info/top_level.txt +1 -0
- pycangui-0.1.0/pyproject.toml +114 -0
- pycangui-0.1.0/setup.cfg +4 -0
- pycangui-0.1.0/tests/test_api_docs.py +53 -0
- pycangui-0.1.0/tests/test_ascii.py +320 -0
- pycangui-0.1.0/tests/test_build_version.py +68 -0
- pycangui-0.1.0/tests/test_bus_errors.py +174 -0
- pycangui-0.1.0/tests/test_bus_health.py +288 -0
- pycangui-0.1.0/tests/test_canfd.py +345 -0
- pycangui-0.1.0/tests/test_canopen.py +139 -0
- pycangui-0.1.0/tests/test_canopen_access.py +450 -0
- pycangui-0.1.0/tests/test_canopen_config.py +194 -0
- pycangui-0.1.0/tests/test_canopen_faults.py +528 -0
- pycangui-0.1.0/tests/test_canopen_rpdo_config.py +47 -0
- pycangui-0.1.0/tests/test_ccp.py +152 -0
- pycangui-0.1.0/tests/test_channels.py +157 -0
- pycangui-0.1.0/tests/test_checkout.py +103 -0
- pycangui-0.1.0/tests/test_cia402_plugin.py +832 -0
- pycangui-0.1.0/tests/test_classify.py +34 -0
- pycangui-0.1.0/tests/test_components.py +163 -0
- pycangui-0.1.0/tests/test_components_report.py +273 -0
- pycangui-0.1.0/tests/test_confirm.py +414 -0
- pycangui-0.1.0/tests/test_custom_pane_view.py +713 -0
- pycangui-0.1.0/tests/test_custom_panes.py +437 -0
- pycangui-0.1.0/tests/test_dbc_loading.py +231 -0
- pycangui-0.1.0/tests/test_dcf_compare.py +520 -0
- pycangui-0.1.0/tests/test_detect.py +413 -0
- pycangui-0.1.0/tests/test_docking.py +548 -0
- pycangui-0.1.0/tests/test_dtc.py +559 -0
- pycangui-0.1.0/tests/test_eds_display.py +272 -0
- pycangui-0.1.0/tests/test_emcy.py +173 -0
- pycangui-0.1.0/tests/test_events.py +322 -0
- pycangui-0.1.0/tests/test_excepthook.py +128 -0
- pycangui-0.1.0/tests/test_export.py +167 -0
- pycangui-0.1.0/tests/test_field_widgets.py +576 -0
- pycangui-0.1.0/tests/test_firmware_plugin.py +466 -0
- pycangui-0.1.0/tests/test_folders.py +317 -0
- pycangui-0.1.0/tests/test_headers.py +99 -0
- pycangui-0.1.0/tests/test_heartbeat_timeout.py +191 -0
- pycangui-0.1.0/tests/test_help.py +571 -0
- pycangui-0.1.0/tests/test_hooks.py +379 -0
- pycangui-0.1.0/tests/test_icon.py +72 -0
- pycangui-0.1.0/tests/test_import_signals.py +200 -0
- pycangui-0.1.0/tests/test_issue_templates.py +35 -0
- pycangui-0.1.0/tests/test_j1939.py +195 -0
- pycangui-0.1.0/tests/test_known_ids.py +170 -0
- pycangui-0.1.0/tests/test_launcher.py +566 -0
- pycangui-0.1.0/tests/test_layout.py +119 -0
- pycangui-0.1.0/tests/test_liveness_lss.py +229 -0
- pycangui-0.1.0/tests/test_logging.py +176 -0
- pycangui-0.1.0/tests/test_mdf.py +264 -0
- pycangui-0.1.0/tests/test_message_filter.py +474 -0
- pycangui-0.1.0/tests/test_messages.py +85 -0
- pycangui-0.1.0/tests/test_od_search.py +188 -0
- pycangui-0.1.0/tests/test_packages.py +75 -0
- pycangui-0.1.0/tests/test_packaging.py +103 -0
- pycangui-0.1.0/tests/test_panes.py +506 -0
- pycangui-0.1.0/tests/test_pdo_mapping.py +326 -0
- pycangui-0.1.0/tests/test_persist.py +153 -0
- pycangui-0.1.0/tests/test_plot_view.py +187 -0
- pycangui-0.1.0/tests/test_plugin_package.py +291 -0
- pycangui-0.1.0/tests/test_plugins.py +834 -0
- pycangui-0.1.0/tests/test_polling.py +425 -0
- pycangui-0.1.0/tests/test_readme.py +66 -0
- pycangui-0.1.0/tests/test_replay_action.py +132 -0
- pycangui-0.1.0/tests/test_right_axis.py +372 -0
- pycangui-0.1.0/tests/test_sdo_timing.py +275 -0
- pycangui-0.1.0/tests/test_seedkey.py +650 -0
- pycangui-0.1.0/tests/test_shortcut.py +108 -0
- pycangui-0.1.0/tests/test_signals.py +74 -0
- pycangui-0.1.0/tests/test_simnode_dialog.py +111 -0
- pycangui-0.1.0/tests/test_simnodes.py +749 -0
- pycangui-0.1.0/tests/test_slow_start.py +105 -0
- pycangui-0.1.0/tests/test_standard_names.py +229 -0
- pycangui-0.1.0/tests/test_startup_hook.py +177 -0
- pycangui-0.1.0/tests/test_supplied.py +172 -0
- pycangui-0.1.0/tests/test_theme.py +145 -0
- pycangui-0.1.0/tests/test_trace_id_column.py +30 -0
- pycangui-0.1.0/tests/test_traffic.py +222 -0
- pycangui-0.1.0/tests/test_transfer.py +749 -0
- pycangui-0.1.0/tests/test_transmit_panes.py +227 -0
- pycangui-0.1.0/tests/test_tx_counters.py +397 -0
- pycangui-0.1.0/tests/test_tx_fields.py +367 -0
- pycangui-0.1.0/tests/test_tx_sources.py +103 -0
- pycangui-0.1.0/tests/test_uds.py +195 -0
- pycangui-0.1.0/tests/test_views.py +955 -0
- pycangui-0.1.0/tests/test_workspace_files.py +415 -0
- pycangui-0.1.0/tests/test_workspace_package.py +480 -0
- pycangui-0.1.0/tests/test_workspaces.py +611 -0
- pycangui-0.1.0/tests/test_xcp.py +334 -0
pycangui-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
MIT No Attribution
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
4
|
+
software and associated documentation files (the "Software"), to deal in the Software
|
|
5
|
+
without restriction, including without limitation the rights to use, copy, modify,
|
|
6
|
+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
7
|
+
permit persons to whom the Software is furnished to do so.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
10
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
11
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
12
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
13
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
14
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
pycangui-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
pycangui
|
|
2
|
+
Copyright 2026 davhodg
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
5
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
6
|
+
License in the LICENSE file, or at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
The exception is the hook and simulated-node templates (pycangui/hooks and
|
|
9
|
+
pycangui/nodes), which are copied into a workspace to be edited. They are
|
|
10
|
+
MIT-0 (LICENSES/MIT-0.txt), claim no copyright and ask for no attribution, so
|
|
11
|
+
what you write in them carries no conditions from pycangui. Each file names
|
|
12
|
+
its own licence in its first line.
|
|
13
|
+
|
|
14
|
+
This product includes software developed by third parties, each used unmodified
|
|
15
|
+
under its own licence and installed as a separate package:
|
|
16
|
+
|
|
17
|
+
PySide6-Essentials, shiboken6 LGPL-3.0 https://www.qt.io/qt-for-python
|
|
18
|
+
(Qt for Python; the GPL-only add-on modules are not installed at all)
|
|
19
|
+
python-can LGPL-3.0 https://github.com/hardbyte/python-can
|
|
20
|
+
canopen MIT https://github.com/christiansandberg/canopen
|
|
21
|
+
cantools MIT https://github.com/cantools/cantools
|
|
22
|
+
can-isotp MIT https://github.com/pylessard/python-can-isotp
|
|
23
|
+
udsoncan MIT https://github.com/pylessard/python-udsoncan
|
|
24
|
+
can-j1939 MIT https://github.com/juergenH87/python-can-j1939
|
|
25
|
+
pyqtgraph MIT https://www.pyqtgraph.org
|
|
26
|
+
numpy BSD-3-Clause https://numpy.org
|
|
27
|
+
pywin32 (Windows only) PSF-2.0 https://github.com/mhammond/pywin32
|
|
28
|
+
Python PSF-2.0 https://www.python.org
|
|
29
|
+
|
|
30
|
+
The LGPL-licensed components are dynamically linked and separately replaceable;
|
|
31
|
+
their sources are available from the projects listed above. Only LGPL Qt
|
|
32
|
+
modules are used -- the GPL-only Qt modules (Qt Charts, Qt Data Visualization,
|
|
33
|
+
Qt Graphs, Qt Virtual Keyboard) are deliberately not used.
|
|
34
|
+
|
|
35
|
+
Adapter drivers (PCAN, Kvaser, Vector, IXXAT and others) are not distributed
|
|
36
|
+
with pycangui; python-can loads the vendor's own driver at run time.
|
|
37
|
+
|
|
38
|
+
Development note: pycangui is developed with the assistance of Anthropic's
|
|
39
|
+
Claude.
|
pycangui-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pycangui
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Graphical CAN bus tool: live trace and plots, transmit, CANopen, UDS, J1939, XCP and CCP, Python scripting
|
|
5
|
+
Author: davhodg
|
|
6
|
+
License-Expression: Apache-2.0 AND MIT-0
|
|
7
|
+
Project-URL: Homepage, https://github.com/davhodg/pycangui
|
|
8
|
+
Project-URL: Repository, https://github.com/davhodg/pycangui
|
|
9
|
+
Project-URL: Issues, https://github.com/davhodg/pycangui/issues
|
|
10
|
+
Requires-Python: >=3.12
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
License-File: LICENSES/MIT-0.txt
|
|
15
|
+
Requires-Dist: PySide6-Essentials>=6.8
|
|
16
|
+
Requires-Dist: pyqtgraph>=0.13
|
|
17
|
+
Requires-Dist: python-can[pywin32,serial]>=4.4
|
|
18
|
+
Requires-Dist: canopen>=2.3
|
|
19
|
+
Requires-Dist: cantools>=39
|
|
20
|
+
Requires-Dist: numpy>=1.26
|
|
21
|
+
Requires-Dist: udsoncan>=1.23
|
|
22
|
+
Requires-Dist: can-isotp>=2.0
|
|
23
|
+
Requires-Dist: python-can-j1939>=0.1.2
|
|
24
|
+
Requires-Dist: bincopy>=20.0
|
|
25
|
+
Provides-Extra: all
|
|
26
|
+
Requires-Dist: asammdf>=8; extra == "all"
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest-xdist; extra == "dev"
|
|
30
|
+
Requires-Dist: ruff==0.16.*; extra == "dev"
|
|
31
|
+
Requires-Dist: pdoc>=16; extra == "dev"
|
|
32
|
+
Requires-Dist: pycangui[all]; extra == "dev"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
<p align="center">
|
|
36
|
+
<img src="https://raw.githubusercontent.com/davhodg/pycangui/master/pycangui/resources/pycangui.png" alt="pycangui icon: a CAN bus with four node taps and a terminating resistor at each end" width="128">
|
|
37
|
+
</p>
|
|
38
|
+
|
|
39
|
+
# pycangui
|
|
40
|
+
|
|
41
|
+
A graphical CAN bus tool: live trace and plots, transmit, CANopen, UDS, J1939, XCP and CCP, and Python scripting, on any adapter supported by python-can.
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+
## Install and run
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
pip install pycangui
|
|
49
|
+
pycangui
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Python 3.12 or newer, on Windows, Linux or macOS. `python -m pycangui` starts it too.
|
|
53
|
+
|
|
54
|
+
To include everything optional up front -- today that is the reader for MDF and MF4 measurement files -- install `all`. Without it, pycangui offers to install the reader the first time a measurement file is opened.
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
pip install "pycangui[all]"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Without Python, on Windows: the [installer on the releases page](https://github.com/davhodg/pycangui/releases) is a self-contained application.
|
|
61
|
+
|
|
62
|
+
## What it does
|
|
63
|
+
|
|
64
|
+
- **Live trace** of every connected channel on one clock, CAN FD included, with filtering that hides rather than discards, recording to six log formats, and replay of a log onto a bus.
|
|
65
|
+
- **Transmit** raw frames, DBC messages edited by signal, or a CANopen RPDO.
|
|
66
|
+
- **CANopen**: node list, object dictionary, PDO configuration, EMCY, LSS, SYNC, DCF save and apply.
|
|
67
|
+
- **Custom panes**: the CANopen objects a job needs, laid out as a form with labels and units. Built from the object dictionary with no code, and polled into Signals and Plot.
|
|
68
|
+
- **UDS** over ISO-TP: sessions, security access, DIDs, DTCs, routines, and firmware transfer in either direction.
|
|
69
|
+
- **J1939**: nodes from address claims, DM1 faults with lamp status and the failure mode in words, multi-packet messages (TP.BAM and TP.CM), requesting and sending PGNs, and SPNs decoded from a J1939 DBC.
|
|
70
|
+
- **XCP and CCP on CAN**: connect, seed and key, and reading and writing A2L measurements and characteristics by polling.
|
|
71
|
+
- **ASCII Log**: reads any CAN identifier as text, for devices that print a console into the data bytes.
|
|
72
|
+
- **Signals and Plot** from DBC decode, CANopen TPDOs or XCP and CCP polling, and out to CSV.
|
|
73
|
+
- **Python** hooks with hot reload, replaceable components (your own CAN interface, ISO-TP transport, or XCP or CCP engine), a live console and *Run script*.
|
|
74
|
+
- **Plugins** that add a pane of their own, installed from a zip. Three come with pycangui: CANopen firmware download (CiA 302-3), DCF compare, and CiA 402 motor control.
|
|
75
|
+
- **Simulated nodes**: devices written as Python files, on a virtual bus or standing on a real adapter, and gateways between channels.
|
|
76
|
+
- **Workspaces**: one per product, holding its hooks, EDS files, databases, channels and layout, and exported as one zip.
|
|
77
|
+
|
|
78
|
+
The [manual](https://github.com/davhodg/pycangui/blob/master/pycangui/help/manual.md) covers each of these, and is also under **Help > Documentation** in the application.
|
|
79
|
+
|
|
80
|
+
## Adapters
|
|
81
|
+
|
|
82
|
+
Any adapter [python-can](https://github.com/hardbyte/python-can) supports: PEAK, IXXAT, Kvaser, Vector, socketcan, the low-cost USB dongles and more. Install the vendor's driver and python-can finds it at run time.
|
|
83
|
+
|
|
84
|
+
No hardware is needed to try it: the `virtual` interface's *Demo device* channel has a simulated device on it that answers CANopen, UDS, J1939, XCP and CCP.
|
|
85
|
+
|
|
86
|
+
## More
|
|
87
|
+
|
|
88
|
+
- [Source, issues and releases](https://github.com/davhodg/pycangui)
|
|
89
|
+
- [Questions and ideas](https://github.com/davhodg/pycangui/discussions)
|
|
90
|
+
- [Manual](https://github.com/davhodg/pycangui/blob/master/pycangui/help/manual.md)
|
|
91
|
+
|
|
92
|
+
## Safety notice and licence
|
|
93
|
+
|
|
94
|
+
pycangui talks to real equipment. It is intended only for people trained and experienced in working with CAN networks and the equipment connected to them.
|
|
95
|
+
|
|
96
|
+
Joining a bus at the wrong bitrate makes a controller signal an error on every frame it sees, and those error frames go out on the wire -- they can impact the nodes that are already on the bus. Transmitting, replaying a log, writing parameters, enabling a drive and downloading firmware all change what equipment does, and not all of them can be undone.
|
|
97
|
+
|
|
98
|
+
Know what is on the bus before you join it, and what a device will do before you write to it. The confirmations pycangui asks for along the way are a reminder, not a safeguard: like any software it can have faults, so do not rely on it to keep anything off the bus. Where a mistake could hurt someone or damage equipment, keep a way to stop that equipment within reach.
|
|
99
|
+
|
|
100
|
+
The hook and simulated-node templates copied into a workspace are under MIT-0, so what you write in them carries no conditions. pycangui itself is provided under the Apache License 2.0, without warranty of any kind.
|
pycangui-0.1.0/PYPI.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/davhodg/pycangui/master/pycangui/resources/pycangui.png" alt="pycangui icon: a CAN bus with four node taps and a terminating resistor at each end" width="128">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# pycangui
|
|
6
|
+
|
|
7
|
+
A graphical CAN bus tool: live trace and plots, transmit, CANopen, UDS, J1939, XCP and CCP, and Python scripting, on any adapter supported by python-can.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Install and run
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
pip install pycangui
|
|
15
|
+
pycangui
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Python 3.12 or newer, on Windows, Linux or macOS. `python -m pycangui` starts it too.
|
|
19
|
+
|
|
20
|
+
To include everything optional up front -- today that is the reader for MDF and MF4 measurement files -- install `all`. Without it, pycangui offers to install the reader the first time a measurement file is opened.
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
pip install "pycangui[all]"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Without Python, on Windows: the [installer on the releases page](https://github.com/davhodg/pycangui/releases) is a self-contained application.
|
|
27
|
+
|
|
28
|
+
## What it does
|
|
29
|
+
|
|
30
|
+
- **Live trace** of every connected channel on one clock, CAN FD included, with filtering that hides rather than discards, recording to six log formats, and replay of a log onto a bus.
|
|
31
|
+
- **Transmit** raw frames, DBC messages edited by signal, or a CANopen RPDO.
|
|
32
|
+
- **CANopen**: node list, object dictionary, PDO configuration, EMCY, LSS, SYNC, DCF save and apply.
|
|
33
|
+
- **Custom panes**: the CANopen objects a job needs, laid out as a form with labels and units. Built from the object dictionary with no code, and polled into Signals and Plot.
|
|
34
|
+
- **UDS** over ISO-TP: sessions, security access, DIDs, DTCs, routines, and firmware transfer in either direction.
|
|
35
|
+
- **J1939**: nodes from address claims, DM1 faults with lamp status and the failure mode in words, multi-packet messages (TP.BAM and TP.CM), requesting and sending PGNs, and SPNs decoded from a J1939 DBC.
|
|
36
|
+
- **XCP and CCP on CAN**: connect, seed and key, and reading and writing A2L measurements and characteristics by polling.
|
|
37
|
+
- **ASCII Log**: reads any CAN identifier as text, for devices that print a console into the data bytes.
|
|
38
|
+
- **Signals and Plot** from DBC decode, CANopen TPDOs or XCP and CCP polling, and out to CSV.
|
|
39
|
+
- **Python** hooks with hot reload, replaceable components (your own CAN interface, ISO-TP transport, or XCP or CCP engine), a live console and *Run script*.
|
|
40
|
+
- **Plugins** that add a pane of their own, installed from a zip. Three come with pycangui: CANopen firmware download (CiA 302-3), DCF compare, and CiA 402 motor control.
|
|
41
|
+
- **Simulated nodes**: devices written as Python files, on a virtual bus or standing on a real adapter, and gateways between channels.
|
|
42
|
+
- **Workspaces**: one per product, holding its hooks, EDS files, databases, channels and layout, and exported as one zip.
|
|
43
|
+
|
|
44
|
+
The [manual](https://github.com/davhodg/pycangui/blob/master/pycangui/help/manual.md) covers each of these, and is also under **Help > Documentation** in the application.
|
|
45
|
+
|
|
46
|
+
## Adapters
|
|
47
|
+
|
|
48
|
+
Any adapter [python-can](https://github.com/hardbyte/python-can) supports: PEAK, IXXAT, Kvaser, Vector, socketcan, the low-cost USB dongles and more. Install the vendor's driver and python-can finds it at run time.
|
|
49
|
+
|
|
50
|
+
No hardware is needed to try it: the `virtual` interface's *Demo device* channel has a simulated device on it that answers CANopen, UDS, J1939, XCP and CCP.
|
|
51
|
+
|
|
52
|
+
## More
|
|
53
|
+
|
|
54
|
+
- [Source, issues and releases](https://github.com/davhodg/pycangui)
|
|
55
|
+
- [Questions and ideas](https://github.com/davhodg/pycangui/discussions)
|
|
56
|
+
- [Manual](https://github.com/davhodg/pycangui/blob/master/pycangui/help/manual.md)
|
|
57
|
+
|
|
58
|
+
## Safety notice and licence
|
|
59
|
+
|
|
60
|
+
pycangui talks to real equipment. It is intended only for people trained and experienced in working with CAN networks and the equipment connected to them.
|
|
61
|
+
|
|
62
|
+
Joining a bus at the wrong bitrate makes a controller signal an error on every frame it sees, and those error frames go out on the wire -- they can impact the nodes that are already on the bus. Transmitting, replaying a log, writing parameters, enabling a drive and downloading firmware all change what equipment does, and not all of them can be undone.
|
|
63
|
+
|
|
64
|
+
Know what is on the bus before you join it, and what a device will do before you write to it. The confirmations pycangui asks for along the way are a reminder, not a safeguard: like any software it can have faults, so do not rely on it to keep anything off the bus. Where a mistake could hurt someone or damage equipment, keep a way to stop that equipment within reach.
|
|
65
|
+
|
|
66
|
+
The hook and simulated-node templates copied into a workspace are under MIT-0, so what you write in them carries no conditions. pycangui itself is provided under the Apache License 2.0, without warranty of any kind.
|
pycangui-0.1.0/README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="pycangui/resources/pycangui.png" alt="pycangui icon: a CAN bus with four node taps and a terminating resistor at each end" width="128">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# pycangui
|
|
6
|
+
|
|
7
|
+
<!--
|
|
8
|
+
The CI and release badges are live. The release badge includes pre-releases, so before the first one it reads "no releases found". The Python and licence badges are checked against pyproject.toml by tests/test_readme.py.
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
[](https://github.com/davhodg/pycangui/actions/workflows/ci.yml)
|
|
12
|
+
[](https://github.com/davhodg/pycangui/releases)
|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
A graphical CAN bus tool: live trace and plots, transmit, CANopen, UDS, J1939, XCP and CCP, and Python scripting, on any adapter supported by python-can. Apache-2.0.
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
## What it does
|
|
22
|
+
|
|
23
|
+
- **Live trace** of every connected channel on one clock, CAN FD included, with filtering that hides rather than discards, recording to six log formats, and replay of a log onto a bus.
|
|
24
|
+
- **Transmit** raw frames, DBC messages edited by signal, or a CANopen RPDO.
|
|
25
|
+
- **CANopen**: node list, object dictionary, PDO configuration, EMCY, LSS, SYNC, DCF save and apply.
|
|
26
|
+
- **Custom panes**: the CANopen objects a job needs, laid out as a form with labels and units. Built from the object dictionary with no code, and polled into Signals and Plot.
|
|
27
|
+
- **UDS** over ISO-TP: sessions, security access, DIDs, DTCs, routines, and firmware transfer in either direction.
|
|
28
|
+
- **J1939**: nodes from address claims, DM1 faults with lamp status and the failure mode in words, multi-packet messages (TP.BAM and TP.CM), requesting and sending PGNs, and SPNs decoded from a J1939 DBC.
|
|
29
|
+
- **XCP and CCP on CAN**: connect, seed and key, and reading and writing A2L measurements and characteristics by polling.
|
|
30
|
+
- **ASCII Log**: reads any CAN identifier as text, for devices that print a console into the data bytes.
|
|
31
|
+
- **Signals and Plot** from DBC decode, CANopen TPDOs or XCP and CCP polling, and out to CSV for whatever you analyse with.
|
|
32
|
+
- **Python** hooks with hot reload, replaceable components (your own CAN interface, ISO-TP transport, or XCP or CCP engine), a live console and *Run script*.
|
|
33
|
+
- **Plugins** that add a pane of their own, installed from a zip. Three come with pycangui: CANopen firmware download (CiA 302-3), DCF compare, and CiA 402 motor control.
|
|
34
|
+
- **Simulated nodes**: devices written as Python files, on a virtual bus or standing on a real adapter, and gateways between channels.
|
|
35
|
+
- **Workspaces**: one per product, holding its hooks, EDS files, databases, channels and layout, and exported as one zip.
|
|
36
|
+
|
|
37
|
+
Full details in [the manual](pycangui/help/manual.md), which is also under **Help > Documentation** in the application.
|
|
38
|
+
|
|
39
|
+
## Installing
|
|
40
|
+
|
|
41
|
+
There are three options, and which one you want depends on whether you have Python:
|
|
42
|
+
|
|
43
|
+
1. **The Windows installer** -- `pycangui-<version>-setup.exe` from the releases page. Nothing else is needed: **not even Python.** It installs a self-contained application, offers a desktop shortcut, and uninstalls cleanly. This is the one to give somebody who wants a CAN tool rather than a Python package. Your hooks, EDS files and settings stay in `%APPDATA%\pycangui`, and upgrades and uninstalling leave them alone.
|
|
44
|
+
|
|
45
|
+
2. **From the source folder** -- either clone with Git or download as zip, double-click `pycangui.cmd` (Windows) or run `./pycangui.sh` (Linux). Python 3.12 or newer must be on the PATH.
|
|
46
|
+
|
|
47
|
+
The first run sets itself up: it creates a *virtual environment* -- a folder called `.venv` holding its own copy of Python and only the libraries pycangui needs, so nothing else on the machine is touched -- and downloads a couple of hundred megabytes into it. That takes a few minutes once; every later start is immediate, and deleting `.venv` undoes the whole thing. If `uv` is installed it is used instead of pip, which makes rebuilding that folder a matter of seconds.
|
|
48
|
+
|
|
49
|
+
**On Linux** (Debian, Ubuntu, Linux Mint and the like), run it from a terminal, so its messages can be read:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
./pycangui.sh
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Two packages these systems often leave out are needed: the one that lets Python create `.venv`, which the launcher names if it is missing, and a library Qt uses to draw the window:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
sudo apt install python3-venv libxcb-cursor0
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Double-clicking `pycangui.sh` in a file manager works too: choose *Run in Terminal* when it asks, for the same reason.
|
|
62
|
+
|
|
63
|
+
At the end of the first run it offers to add pycangui to the Start menu, or to the applications menu on Linux, and *Tools > Add to Start menu* does the same later. The entry starts the launcher, so a start from the menu after a pull still picks up new libraries.
|
|
64
|
+
|
|
65
|
+
The launcher keeps its own `.venv` on purpose and will not use an environment you already have. That is the point of it: it is the way in for somebody who does not want to think about Python environments, and one that sometimes used yours and sometimes did not would be worse than one that never does.
|
|
66
|
+
|
|
67
|
+
3. **With pip** -- if you already have a Python environment and would rather pycangui went in it, install it from PyPI and ignore the launcher entirely:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
pip install pycangui
|
|
71
|
+
pycangui # installs a command of that name
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
or from a checkout, `pip install -e .` for the same thing reading the source. Nothing about pycangui needs the launcher: it is an ordinary Python package with an ordinary entry point, and this path leaves the choice of environment to you.
|
|
75
|
+
|
|
76
|
+
## Supported systems
|
|
77
|
+
|
|
78
|
+
**Windows and Linux**, on **Python 3.12 or newer**. Both are tested on every push: the newest Python on both, and the oldest supported one on Linux.
|
|
79
|
+
|
|
80
|
+
**macOS** passes the same tests on Apple silicon and Intel Macs, run for each release, but has not yet been tested on real CAN hardware.
|
|
81
|
+
|
|
82
|
+
Any adapter [python-can](https://github.com/hardbyte/python-can) supports -- PEAK, IXXAT, Kvaser, Vector, socketcan, the cheap USB dongles and more. The vendor's driver is not bundled: install it and python-can finds it at run time. A `virtual` channel needs no hardware at all.
|
|
83
|
+
|
|
84
|
+
## Built with
|
|
85
|
+
|
|
86
|
+
pycangui is Apache-2.0 and is a pure-Python application on top of these packages, each used unmodified under its own licence (licence text as declared in the package metadata). The LGPL components stay separate, replaceable packages, as the LGPL requires.
|
|
87
|
+
|
|
88
|
+
| Package | Used for | Licence |
|
|
89
|
+
|---------|----------|---------|
|
|
90
|
+
| [Python](https://www.python.org) | Runtime | PSF-2.0 |
|
|
91
|
+
| [PySide6-Essentials](https://www.qt.io/qt-for-python) | GUI toolkit (Qt for Python) | LGPL-3.0 (used under LGPL) |
|
|
92
|
+
| [shiboken6](https://www.qt.io/qt-for-python) | Qt binding runtime used by PySide6 | LGPL-3.0 (used under LGPL) |
|
|
93
|
+
| [python-can](https://github.com/hardbyte/python-can) | CAN adapter abstraction | LGPL-3.0 |
|
|
94
|
+
| [canopen](https://github.com/christiansandberg/canopen) | CANopen protocol stack | MIT |
|
|
95
|
+
| [cantools](https://github.com/cantools/cantools) | DBC / KCD / SYM / ARXML decoding | MIT |
|
|
96
|
+
| [pyqtgraph](https://www.pyqtgraph.org) | Plotting | MIT |
|
|
97
|
+
| [numpy](https://numpy.org) | Numeric arrays for plotting | BSD-3-Clause (with 0BSD / MIT / Zlib / CC0 parts) |
|
|
98
|
+
| [python-can-j1939](https://github.com/RaulSMS/python-can-j1939) | J1939 transport and address claim | MIT |
|
|
99
|
+
| [pywin32](https://github.com/mhammond/pywin32) | Finding USB2CAN adapters through python-can, on Windows | PSF-2.0 |
|
|
100
|
+
| [udsoncan](https://github.com/pylessard/python-udsoncan) | UDS client | MIT |
|
|
101
|
+
| [can-isotp](https://github.com/pylessard/python-can-isotp) | ISO-TP transport for UDS | MIT |
|
|
102
|
+
| [bincopy](https://github.com/eerimoq/bincopy) | Intel HEX / S-record / binary firmware files | MIT |
|
|
103
|
+
| [asammdf](https://github.com/danielhrisca/asammdf) | Reading MDF / MF4 measurement files | LGPL-3.0 |
|
|
104
|
+
|
|
105
|
+
XCP, CCP and a basic A2L reader are implemented directly in pycangui.
|
|
106
|
+
|
|
107
|
+
asammdf, the MDF and MF4 reader, is the one **optional** entry: the Windows installer includes it, and a `pip` installation fetches it the first time a measurement file is opened. `pip install pycangui[all]` includes it up front.
|
|
108
|
+
|
|
109
|
+
Only LGPL Qt modules are used (QtCore, QtGui, QtWidgets). pycangui depends on **PySide6-Essentials** rather than the full PySide6, so the GPL-only add-on modules (Qt Charts, Qt Data Visualization and the rest) are never installed. Adapter drivers (PCAN, Kvaser, Vector, ...) are not included: install the vendor's driver and python-can loads it at run time.
|
|
110
|
+
|
|
111
|
+
## Contributing
|
|
112
|
+
|
|
113
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md): the policy for changes, setting up to work on pycangui, running the tests, and building the Windows installer.
|
|
114
|
+
|
|
115
|
+
## Safety notice
|
|
116
|
+
|
|
117
|
+
pycangui talks to real equipment. It is intended only for people trained and experienced in working with CAN networks and the equipment connected to them.
|
|
118
|
+
|
|
119
|
+
Joining a bus at the wrong bitrate makes a controller signal an error on every frame it sees, and those error frames go out on the wire -- they can impact the nodes that are already on the bus. Transmitting, replaying a log, writing parameters, enabling a drive and downloading firmware all change what equipment does, and not all of them can be undone.
|
|
120
|
+
|
|
121
|
+
Know what is on the bus before you join it, and what a device will do before you write to it. The confirmations pycangui asks for along the way are a reminder, not a safeguard: like any software it can have faults, so do not rely on it to keep anything off the bus. Where a mistake could hurt someone or damage equipment, keep a way to stop that equipment within reach.
|
|
122
|
+
|
|
123
|
+
## Licence
|
|
124
|
+
|
|
125
|
+
pycangui is free software, provided under the Apache License 2.0, without warranty of any kind; see `LICENSE` and `NOTICE`.
|
|
126
|
+
|
|
127
|
+
The hook and simulated-node templates in `pycangui/hooks` and `pycangui/nodes` are the exception. They are copied into your workspace to be edited, and are released under MIT-0 (`LICENSES/MIT-0.txt`) with no copyright claimed, so what you write in them carries no conditions.
|
|
128
|
+
|
|
129
|
+
Development has made use of Anthropic's Claude.
|