Skip to main content

CANd

cand (pronounced candy) is the solution to your CAN send/receieve/decode/encode woes.

cand listens to and decodes CAN messages with a provided DBC file, and also listens for, encodes, and sends CAN messages you ask it to send.

Run cand as a daemon and use cand.client to interact with it. For example:

from cand.client import Bus

bus = Bus()
bus.send('dbwNode_Status', {'SystemStatus': 'ESTOP', 'Counter': 11})
print(bus.get('dbwNode_Encoder_Data'))
# (1652836556992745935, {'Encoder0': 133, 'Encoder1': 152, 'Time': 10000})

Performance

cand and the cand.client.Bus interface are very fast. Neither Bus.get() nor Bus.send() calls block for very long, because they simply query or write to the Redis backend. cand monitors its outbound CAN send performance and will leave log messages when the TX buffer starts to grow too large. Messages will not be lost, however.

Note: cand will work through its backlog of messages to be sent regardless of the size; we should change that behavior eventually.

Redis

cand uses Redis as the storage and request backend between itself and clients. You can specify the Redis host and port for cand as well as the client.

Metadata

Release files for opencan-cand 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencan-cand 0.1.2
File Size Uploaded
opencan-cand-0.1.2.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opencan-cand 0.1.2
File Interpreter ABI Platform
opencan_cand-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / opencan-cand-0.1.2.tar.gz

Download URL opencan-cand-0.1.2.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9e73212b537cc929143b4e53a4979ba68fd42815b25f36b62080df5bd02994d3
BLAKE2b-256 checksum
How to use checksums
eb7bf284a0159cb04b8e49d898d78cf07a456bfa2b072f6128fdab9f5c884e3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

Release files / opencan_cand-0.1.2-py3-none-any.whl

Download URL opencan_cand-0.1.2-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf865d32ce06747b98ce0bb84b237a25369ad044dd26b1d234c0b49946012521
BLAKE2b-256 checksum
How to use checksums
e8b0c861688dcff1c635f9a9c9ba2b54d2d7a2fa4e069e194d08538f159b76bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

1 release file

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page