PCAN Gateway Plugin Packages
Target Device : PCAN-Ethernet Gateway
PCAN-Ethernet Gateway Configuration
in user manual, custom gateway protocol is presented.
in Route Configuration Page, add Routing IP Addresses both side(CAN->Ethernet, Ethernet->CAN)
Install Plugin Package
# install from PyPI
$ pip3 install pcan-gatewaybus
or
# local installation
$ git clone https://github.com/ys-oh/python-can-gatewaybus
$ cd python-can-gatewaybus
$ pip3 install .
Usage
import can
bus = can.Bus(bustype='gateway', channel='<local ip>:<local port>,<remote ip>:<remote port>')
...
or
import can
can.rc['interface'] = 'gateway'
can.rc['channel'] = '<local ip>:<local port>,<remote ip>:<remote port>'
bus = can.Bus()
...
in 'channel' argument represent Route Addres in PCAN-Ethernet Gateway Routing Configurations.
local address (ip:port)
- receive address from PCAN-Ethernet Gateway
- e.g. 192.168.1.1:4000
remote address (ip:port)
- transmit address to PCAN-Ethernet Gateway
- e.g. 192.168.1.10:3999
if you config routing in Device (device ip : 192.168.1.1)
Transmit Channel (CAN->Ethernet) : TCP, 192.168.1.1:3999
Recieve Channle (Ethernet->CAN) : TCP, :4000
your channel is
...
can.rc['channel'] = '192.168.1.1:3999,192.168.1.1:4000'
...
Metadata
Release files for pcan-gatewaybus 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pcan-gatewaybus-0.0.2.tar.gz | 21.1 kB | Without provenance | Details for pcan-gatewaybus-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pcan_gatewaybus-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pcan_gatewaybus-0.0.2-py3-none-any.whl |
Total release size: 42.1 kB
Release files / pcan-gatewaybus-0.0.2.tar.gz
| Download URL | pcan-gatewaybus-0.0.2.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c89a95f4d6e4de0850bdc31c9e8d8f29f35d4a818856a36249fa0ea5a4c87571
|
|
BLAKE2b-256 checksum How to use checksums |
18b7b5a9e984319544a16bb5b31a954d33b6a23b113656812cf071d07b9811c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / pcan_gatewaybus-0.0.2-py3-none-any.whl
| Download URL | pcan_gatewaybus-0.0.2-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93a3f78d813a191b0be5d2864c4a7d9832ffb7cc741397c468bfa683b062c05d
|
|
BLAKE2b-256 checksum How to use checksums |
4e5271b64db30a6caa24a55f2ea01e32fc70635406efe2cbc217b2827cd95ef4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for pcan-gatewaybus 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.