CANopen discovery tool/scanner
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file canScan-0.0.2.tar.gz.
File metadata
- Download URL: canScan-0.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff5592e39ed19f0e729556524ebb4daa0d8b5f315c28eb1ad5a24396301d867b
|
|
| MD5 |
f646cdbf3f7869565669a65f4c353f4d
|
|
| BLAKE2b-256 |
aa8b0d2d41d53d483c39d1782e7a681eb8970707c8790ba58570b49809b0e088
|
File details
Details for the file canScan-0.0.2-py3-none-any.whl.
File metadata
- Download URL: canScan-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
184bdff964cbf81a84b57381d1f59b2401611bbd55408cf36fc67df997926f34
|
|
| MD5 |
f50aa55443bd973488c85cfea688d6ca
|
|
| BLAKE2b-256 |
c1682a8398aa665faf78fe70f4ed7aa09ca5c2fd1680d91cfbace912085bad48
|