Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gkbus-0.4.76.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gkbus-0.4.76-py2.py3-none-any.whl (43.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gkbus-0.4.76.tar.gz.

File metadata

  • Download URL: gkbus-0.4.76.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

Hashes for gkbus-0.4.76.tar.gz
Algorithm Hash digest
SHA256 14ef9445026ec3873e99284e63d64f5e5beefdcaab1a4f9db1f449a1e1877f2a
MD5 64ca67269b22b936261bb7c9a9c7d6a3
BLAKE2b-256 4d4c25e219e02595b34137f7b7e44a9a65ca261b01b4b4cdba54e8a718d8da6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gkbus-0.4.76.tar.gz:

Publisher: publish.yml on Dante383/gkbus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gkbus-0.4.76-py2.py3-none-any.whl.

File metadata

  • Download URL: gkbus-0.4.76-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

Hashes for gkbus-0.4.76-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 342cccda491da18884ad055312516675366be901cdb9eeace3c0175274a357e0
MD5 0edf4cb19cde3f207fa76a3ee5570c4a
BLAKE2b-256 7ef26a7cae4b1cd0404a6c8d008e2e62f69255080472d3d16c1724b841fc9c36

See more details on using hashes here.

Provenance

The following attestation bundles were made for gkbus-0.4.76-py2.py3-none-any.whl:

Publisher: publish.yml on Dante383/gkbus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page