Skip to main content

Bluetooth Low Energy (BLE) driver

Project description

Bluetooth Low Energy (BLE) driver

jumpstarter-driver-ble provides communication functionality via ble with the DUT. The driver expects a ble service with a write and notify characteristic to send and receive data respectively.

Installation

:substitutions:
$ pip3 install --extra-index-url {{index_url}} jumpstarter-driver-ble

Configuration

Example configuration:

export:
  ble:
    type: "jumpstarter_driver_ble.driver.BleWriteNotifyStream"
    config:
      address: "00:11:22:33:44:55"
      service_uuid: "0000180a-0000-1000-8000-000000000000"
      write_char_uuid: "0000fe41-8e22-4541-9d4c-000000000000"
      notify_char_uuid: "0000fe42-8e22-4541-9d4c-000000000000"

Config parameters

Parameter Description Type Required Default
address BLE address to connect to str yes
service_uuid BLE service uuid to connect to str yes
write_char_uuid BLE write characteristic to send data to DUT str yes
notify_char_uuid BLE notify characteristic to receive data from DUT str yes

API Reference

.. autoclass:: jumpstarter_driver_ble.client.BleWriteNotifyStreamClient()
    :members:

CLI

The ble driver client comes with a CLI tool that can be used to interact with the target device.

jumpstarter ⚡ local ➤ j ble
Usage: j ble [OPTIONS] COMMAND [ARGS]...

  ble client

Options:
  --help  Show this message and exit.

Commands:
  info           Get target information
  start-console  Start BLE console

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

jumpstarter_driver_ble-0.8.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

jumpstarter_driver_ble-0.8.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file jumpstarter_driver_ble-0.8.1.tar.gz.

File metadata

File hashes

Hashes for jumpstarter_driver_ble-0.8.1.tar.gz
Algorithm Hash digest
SHA256 1b1225b6a5a86152070bb5412d042acbbd3ba6f8187647c6abdc362fdc56eef2
MD5 c72f0f12ce8965cd8a2da39892ca0f72
BLAKE2b-256 484c7098580c9be58a602631f263d650244b84baacefec779088785983e811e3

See more details on using hashes here.

File details

Details for the file jumpstarter_driver_ble-0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jumpstarter_driver_ble-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 def23b9827c75bcc2dadf40bc4f7ee1cb787f669a9194eb528411acbae3b909e
MD5 0ba5f747e375db3ab5d0a44822911a60
BLAKE2b-256 491df4728272c05bf71803825d312a13be259812eda94a243c987e5bf27a490a

See more details on using hashes here.

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