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/.
Metadata
Release files for python-can-remote 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_can_remote-0.3.0.tar.gz | 192.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_can_remote-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 383.5 kB
Release files / python_can_remote-0.3.0.tar.gz
| Download URL | python_can_remote-0.3.0.tar.gz |
|---|---|
| Size | 192.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40ffe0351eff33338e7d13d576c5f1d2fb979ab11da8b7a7f2f288f5d3e0df03
|
|
BLAKE2b-256 checksum How to use checksums |
f1086a276ae5a0713950cb0ed432efb4dab2f52ec9c3e394d385ed487cd15356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / python_can_remote-0.3.0-py3-none-any.whl
| Download URL | python_can_remote-0.3.0-py3-none-any.whl |
|---|---|
| Size | 190.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
979ebbd1851fbb701704e75fd9100c1349c198a976727140a28dc235c13b6561
|
|
BLAKE2b-256 checksum How to use checksums |
f4880d990f544b83c473a782083b2d8d9052ae916355a79cde2a98b1eadcf2d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|