Skip to main content

SCPI driver for the Bloomy Controls Advanced Battery Simulator

Project description

Python library for SCPI control of the Bloomy Controls ABS.

Features

  • TCP, UDP, RS-485, and UDP multicast

  • Supports Windows and Linux

  • Implements all SCPI commands and queries supported by the ABS

  • Automatic device discovery over UDP multicast and RS-485

  • Implemented as a wrapper around the C/C++ library for a consistent interface regardless of the language

Installation

See docs/installation.rst for installation instructions.

Example usage

from absscpi import ScpiClient
from time import sleep

with ScpiClient() as client:
    # open a UDP socket
    client.open_udp("192.168.1.100")

    # get general device information
    id = client.get_device_id()
    ident = client.get_device_info()
    print(f"Device ID: {id}")
    print(f"Part numer: {ident.get_part_number()}")
    print(f"Serial number: {ident.get_serial()}")
    print(f"FW version: {ident.get_version()}")

    # command cell 1 to 1.4V
    client.set_cell_voltage(0, 1.4)
    client.set_cell_sourcing(0, 5.0)
    client.set_cell_sinking(0, 5.0)
    client.enable_cell(0, True)

    sleep(0.05)

    # measure cell 1's voltage
    v = client.measure_cell_voltage(0)
    print(f"Cell 1 voltage: {v}")

    client.enable_cell(0, False)

Discussion

If you find any bugs, you can report them on the GitHub issue tracker.

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

absscpi-1.2.1.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

absscpi-1.2.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file absscpi-1.2.1.tar.gz.

File metadata

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

File hashes

Hashes for absscpi-1.2.1.tar.gz
Algorithm Hash digest
SHA256 6fef145d6fa3aaabce311ab8ed5c9b471f42a006ab20066cda541935c8ea4ed9
MD5 090811f642d00b1c4a1084cb881b3eae
BLAKE2b-256 6065ec211f0dc6af855495d8660ff2b799b1b054da668bdf57ba98d7c02bc9d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for absscpi-1.2.1.tar.gz:

Publisher: pypi-publish.yml on BloomyControls/abs-scpi-driver-python

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

File details

Details for the file absscpi-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: absscpi-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for absscpi-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 429ff29aac1fbb5b77ca56f85284054bd02b4fde8beebf1b00a2d8a0b87bcf8a
MD5 2d190540eb18053c8bfa54a51e99a1a0
BLAKE2b-256 4837692ac5d4fad6155568b9c3ece2972e761a85dd9d2f37573d0e28d5e9de56

See more details on using hashes here.

Provenance

The following attestation bundles were made for absscpi-1.2.1-py3-none-any.whl:

Publisher: pypi-publish.yml on BloomyControls/abs-scpi-driver-python

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