A python-can interface driver for CAN transmitted over a Bluetooth SPP connection
Project description
This module is a plugin for the python-can. module, that allows the use of CAN messages transmitted over a Bluetooth SPP connection. It is similar to the CAN over serial protocol included in the python-can. package, but includes additional error checking to ensure messages are not corrupted during transmission.
Installation
Install using pip:
$ pip install python-can-bluetooth
Usage
In general, useage is largely the same as with the main python-can library, using the interface designation of “bluetooth”.
Create python-can bus with the Bluetooth interface:
import can
bus = can.Bus(interface="bluetooth", channel="COM4", bitrate=250000, echo=False)
Some examples are present in the python-can-bluetooth/examples directory in the repository.
Project details
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
File details
Details for the file python-can-bluetooth-0.1.1.tar.gz
.
File metadata
- Download URL: python-can-bluetooth-0.1.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbbde764d0e62189297aec79920ae3d290f3fc91197f3a32710e88ce5cb66d4e |
|
MD5 | 4201862c1c5666142b2f1d48cdb78228 |
|
BLAKE2b-256 | 8b11a716e72ec9814f2d29fe8c16ecb138b95b8f119426c6e87119525b860649 |
File details
Details for the file python_can_bluetooth-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: python_can_bluetooth-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f00652c62d1e642354a3bcf6d920c7c33b0a591919d3da97708c279fc00e1bb |
|
MD5 | 3759fed0c68b7be900d491168c95f953 |
|
BLAKE2b-256 | 0fdf4d57367f1839ead6ffefdcc3c6290f8bd5f227fca98f4454bdccd0c4d442 |