Creates a CAN over TCP/IP bridge for use with python-can.
Installation
Install using pip:
$ pip install python-can-remote
Usage
Start server from command line:
$ python -m can_remote --interface=virtual --channel=0 --bitrate=500000
Create python-can bus:
import can
# Create a connection to server. Any config is passed to server.
bus = can.Bus('ws://localhost:54701/',
bustype='remote',
bitrate=500000,
receive_own_messages=True)
# Send messages
msg = can.Message(arbitration_id=0x12345, data=[1,2,3,4,5,6,7,8])
bus.send(msg)
# Receive messages
msg2 = bus.recv(1)
print(msg2)
# Disconnect
bus.shutdown()
Web interface
There is also a basic web interface for inspecting the CAN traffic using a browser. It is available on the same address using HTTP, e.g. http://localhost:54701/.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_can_remote-0.3.0.tar.gz
(192.9 kB
view details)
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 python_can_remote-0.3.0.tar.gz.
File metadata
- Download URL: python_can_remote-0.3.0.tar.gz
- Upload date:
- Size: 192.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ffe0351eff33338e7d13d576c5f1d2fb979ab11da8b7a7f2f288f5d3e0df03
|
|
| MD5 |
be031bf1f38ad2ddbb1d0b31aaef6442
|
|
| BLAKE2b-256 |
f1086a276ae5a0713950cb0ed432efb4dab2f52ec9c3e394d385ed487cd15356
|
File details
Details for the file python_can_remote-0.3.0-py3-none-any.whl.
File metadata
- Download URL: python_can_remote-0.3.0-py3-none-any.whl
- Upload date:
- Size: 190.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
979ebbd1851fbb701704e75fd9100c1349c198a976727140a28dc235c13b6561
|
|
| MD5 |
af90b13618b58b9126d135741235758c
|
|
| BLAKE2b-256 |
f4880d990f544b83c473a782083b2d8d9052ae916355a79cde2a98b1eadcf2d1
|