GKBus: High level automotive protocol library
Project description
GKBus
Automotive diagnostic protocols library powering the GKFlasher
from gkbus.protocol import kwp2000
from gkbus.transport import Kwp2000OverKLineTransport
print('available KLineHardware ports')
ports = KLineHardware.available_ports()
for port in ports:
print(f' {port.description()}')
print('available CanHardware ports')
can_ports = CanHardware.available_ports()
for port in can_ports:
print(f' {port.description()}')
print('creating hardware')
hardware = KLineHardware(ports[0].port)
transport = Kwp2000OverKLineTransport(hardware, tx_id=0x11, rx_id=0xf1)
kwp = kwp2000.Kwp2000Protocol(transport)
print('fast init')
init_success = kwp.init(kwp2000.commands.StartCommunication())
print('fast init : {}'.format(init_success))
print('executing ReadEcuIdentification: 0x8c - bootloader version')
response = kwp.execute(kwp2000.commands.ReadEcuIdentification(0x8c))
print(response)
Supported protocols
-
Kwp2000 (ISO14230) - over CAN and K-Line
-
CCP (Can Calibration Protocol)
Installing
GKBus is available on PyPi:
$ python -m pip install gkbus
API Reference available on Read the Docs
Project details
Release history Release notifications | RSS feed
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
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 gkbus-0.4.75.tar.gz.
File metadata
- Download URL: gkbus-0.4.75.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3cb36b2ee081263282d38ab40ba3b600670b78437778f043d1f89f9129c6752
|
|
| MD5 |
ad8c8c2128fb358bcbea110614e5ab5e
|
|
| BLAKE2b-256 |
f3fd7ae5bd087a739ec77c60aa00ad73c5e1b918a4344214030a18377b3611d9
|
Provenance
The following attestation bundles were made for gkbus-0.4.75.tar.gz:
Publisher:
publish.yml on Dante383/gkbus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gkbus-0.4.75.tar.gz -
Subject digest:
c3cb36b2ee081263282d38ab40ba3b600670b78437778f043d1f89f9129c6752 - Sigstore transparency entry: 214872282
- Sigstore integration time:
-
Permalink:
Dante383/gkbus@1d4ebe0f5183bcbf3d13b30b23336b2de57904f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Dante383
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d4ebe0f5183bcbf3d13b30b23336b2de57904f0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gkbus-0.4.75-py2.py3-none-any.whl.
File metadata
- Download URL: gkbus-0.4.75-py2.py3-none-any.whl
- Upload date:
- Size: 43.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
323c5800c92f91509797d0c67bd794bccd9ecdc4231db97837de6d92674ebc82
|
|
| MD5 |
6e4c18fe20c8772696b8da57f87828c5
|
|
| BLAKE2b-256 |
3e3ea00ced2b944aa6b406fb605ea0c3ec3401e88abdfcda58216e08e2bc590e
|
Provenance
The following attestation bundles were made for gkbus-0.4.75-py2.py3-none-any.whl:
Publisher:
publish.yml on Dante383/gkbus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gkbus-0.4.75-py2.py3-none-any.whl -
Subject digest:
323c5800c92f91509797d0c67bd794bccd9ecdc4231db97837de6d92674ebc82 - Sigstore transparency entry: 214872283
- Sigstore integration time:
-
Permalink:
Dante383/gkbus@1d4ebe0f5183bcbf3d13b30b23336b2de57904f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Dante383
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d4ebe0f5183bcbf3d13b30b23336b2de57904f0 -
Trigger Event:
push
-
Statement type: