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
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 absscpi-1.2.0.tar.gz.
File metadata
- Download URL: absscpi-1.2.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a5e77d20f33aee07b076d0b9d2dee9f87b65fb17c625880446d8fdf27f739a2
|
|
| MD5 |
2c4174563c239260b79af416e73e7ef4
|
|
| BLAKE2b-256 |
3213b3ded881ae1cca6b9b20b897076080f39aa64d1a16dc8fa055e58c04f746
|
Provenance
The following attestation bundles were made for absscpi-1.2.0.tar.gz:
Publisher:
pypi-publish.yml on BloomyControls/abs-scpi-driver-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
absscpi-1.2.0.tar.gz -
Subject digest:
2a5e77d20f33aee07b076d0b9d2dee9f87b65fb17c625880446d8fdf27f739a2 - Sigstore transparency entry: 727759981
- Sigstore integration time:
-
Permalink:
BloomyControls/abs-scpi-driver-python@9679fa34e2eb75916a150e0901ed773d2f71eca0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BloomyControls
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@9679fa34e2eb75916a150e0901ed773d2f71eca0 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file absscpi-1.2.0-py3-none-any.whl.
File metadata
- Download URL: absscpi-1.2.0-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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65af839e411d37797317df424177060d10d8190e643326295b112a15acd4e0a8
|
|
| MD5 |
854aef1c8e1c652522f039de0f36261f
|
|
| BLAKE2b-256 |
5d8f6d813c16b3dbbb8039759580fc07b6aeaa211f0782eee3499eee994de9c9
|
Provenance
The following attestation bundles were made for absscpi-1.2.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on BloomyControls/abs-scpi-driver-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
absscpi-1.2.0-py3-none-any.whl -
Subject digest:
65af839e411d37797317df424177060d10d8190e643326295b112a15acd4e0a8 - Sigstore transparency entry: 727759984
- Sigstore integration time:
-
Permalink:
BloomyControls/abs-scpi-driver-python@9679fa34e2eb75916a150e0901ed773d2f71eca0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BloomyControls
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@9679fa34e2eb75916a150e0901ed773d2f71eca0 -
Trigger Event:
workflow_run
-
Statement type: