canScan
CANopen active scanner atop Christian Sandberg's CANopen for Python. canScan watches for CAN arbitration IDs, CANopen node IDs (as determined through NMT/SDO analysis), and CANopen PDOs. canScan can scan the Object Dictionary of a specified (or discovered) CANopen node using SDO Receive.
canScan has been developed/tested against Python 2.7 and 3.7.
Usage
Two arguments are required: a bus type and a device identifier. The bus types
are due python-can, and can be found
in that project's documentation. Device identifier semantics are per-driver.
For virtual devices, use virtual and the network device name. Other SocketCAN
devices use socketcan and the network device name. The CanalystII uses
canalystii and the USB device index.
Default behavior is to perform an SDO scan across the 128 CANopen IDs, then
perform dumps of the entirety of discovered nodes' Object Dictionaries. Both
steps will be periodically repeated. Discovered Object Dictionary entries will
be queried more regularly than failed IDs. The program exits on error or
keyboard interrupt. With the --oneshot flag, only an initial set of scans
will be performed, followed by the program's exit.
The --passive flag can be provided, in which case no frames will be
transmitted (the driver or hardware might send frames, especially
acknowledgements, on their own).
If the --scan argument is provided, it expects a comma-delimited list of
numbers (either decimal, or hex with a prefix of 0x). These IDs will see
their entire Dictionaries scanned whether they respond to the initial probe or
not.
--passive cannot be used with --scan or --oneshot.
The default local node ID is 64 (0x40), but it may be specified with --id.
Metadata
Release files for canScan 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| canScan-0.0.2.tar.gz | 4.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| canScan-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / canScan-0.0.2.tar.gz
| Download URL | canScan-0.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff5592e39ed19f0e729556524ebb4daa0d8b5f315c28eb1ad5a24396301d867b
|
|
BLAKE2b-256 checksum How to use checksums |
aa8b0d2d41d53d483c39d1782e7a681eb8970707c8790ba58570b49809b0e088
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / canScan-0.0.2-py3-none-any.whl
| Download URL | canScan-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
184bdff964cbf81a84b57381d1f59b2401611bbd55408cf36fc67df997926f34
|
|
BLAKE2b-256 checksum How to use checksums |
c1682a8398aa665faf78fe70f4ed7aa09ca5c2fd1680d91cfbace912085bad48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for canScan 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.