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.3.tar.gz
.
File metadata
- Download URL: python-can-bluetooth-0.1.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34800d3625cae55285d5f16dc7ab6f8c862b5977d63872728ec2f3a935ff6dd4 |
|
MD5 | cd1e1d73f5986ddc4fdc7fa6c173e09e |
|
BLAKE2b-256 | 7dbccc0d8508135cd1a348de539bcb4a9dddae3bfb9fdd051f459e08e4973e94 |
File details
Details for the file python_can_bluetooth-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: python_can_bluetooth-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614c5521dc24116918a9400d6502a39af50ca2a3fa53d8f95c9b9e3b37495c02 |
|
MD5 | 3e2802ef27884fb739d2b02854169f01 |
|
BLAKE2b-256 | f5febd9f67a440b60e9a820ae01f482e3bb7da20ef0f6c68cca23dfa4437ec55 |