Skip to main content

GKBus: High level automotive protocol library

Reason this release was yanked:

broken dependencies

Project description

GKBus

High level automotive protocol library

from gkbus.hardware import CanHardware, KLineHardware
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('requesting security access seed')
response = kwp.execute(kwp2000.commands.SecurityAccess().request_seed())
print(response.get_data())

print('starting flash reprogramming diagnostic session')
response = kwp.execute(
	kwp2000.commands.StartDiagnosticSession(
		kwp2000.enums.DiagnosticSession.FLASH_REPROGRAMMING
		)
	)
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.86.tar.gz (37.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.86-py2.py3-none-any.whl (45.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gkbus-0.4.86.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gkbus-0.4.86.tar.gz
Algorithm Hash digest
SHA256 43e64503af4e1b9cf6b4e94549ddb2521552f700d1d572b1823f876702afe25b
MD5 6e6055dbbdb695cb49d57ccbd6129ce1
BLAKE2b-256 84e08d8abb5d3c8cb4ee4a18f8a6855505fbb46b296fb318ae873747abfdfe13

See more details on using hashes here.

Provenance

The following attestation bundles were made for gkbus-0.4.86.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.86-py2.py3-none-any.whl.

File metadata

  • Download URL: gkbus-0.4.86-py2.py3-none-any.whl
  • Upload date:
  • Size: 45.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gkbus-0.4.86-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fda0d76baa0c3b82d05b9d14be8dcfa0ce9d49ccf9713ca8bc69caf7f757493b
MD5 2f340809b8e35b5ffbbe4e17341f5a78
BLAKE2b-256 2f8f2fb446a9ef72006ea5bcb5d1f10165547ede20baba65cbdfbb89d732d7b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for gkbus-0.4.86-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