Skip to main content

A2000 BP control API

Project description

Module Introduction

This module is designed for A2000 test platform backplane control, which includes - Get target slot device’s voltage and current - Set target slot device’s voltage - Set slot Pass/Fail LED status

Function Definition

  1. get_voltage_current
    • Parameter:
      • tray: int, specify the device number (0~11)

    • Return:
      • Success: return a tuple (voltage, current)

      • Fail: return false

  2. set_voltage
    • Parameter:
      • tray: int, specify the device number (0~11)

      • value: int, specify the voltage to set_led_status

    • Return:
      • Success: return True

      • Fail: return false

  3. set_led_status
    • Parameter:
      • tray: int, specify the device number (0~11)

      • value: int, specify the status code of LED (0: off; 1: red; 2:green; 3: yellow)

    • Return:
      • Success: return True

      • Fail: return false

Sample Code

  1. get_voltage_current

# python
from degapm import degapm

tray_number = 1
result = degapm.get_voltage_current(tray_number)
if result:
    voltage, current = result
    print("device {0} voltage: {1}, current: {2}").format(tray_number, voltage, current)
else:
print("Get device {0} voltage & current fail!").format(tray_number)
  1. set_voltage

# python
from degapm import degapm

tray_number = 1
voltage_value = 12000
if degapm.set_voltage(tray_number, voltage_value):
    print("Set device {0} voltage to {1}").format(tray_number, voltage_value)
else:
    print("Set device {0} voltage fail!").format(tray_number)
  1. set_led_status

# python
from degapm import degapm

tray_number = 1
led_value = 1
if degapm.set_led_status (tray_number, led_value):
    print("Set device {0} led status to {1}").format(tray_number, led_value)
else:
    print("Set device {0} led status fail!").format(tray_number)

Contact us

  1. Official website: <https://degastorage.com/>

  2. Author E-mail: <jiaming.shi@degastorage.com>

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

degapm-1.0.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

degapm-1.0.5-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file degapm-1.0.5.tar.gz.

File metadata

  • Download URL: degapm-1.0.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for degapm-1.0.5.tar.gz
Algorithm Hash digest
SHA256 2b660d994f2c37bc85668f27bd5bb79e4310650f816e2993f5c61c98f614a20a
MD5 c36c7e89bef53087a32c4208aba380d9
BLAKE2b-256 a25406d9a58dba18ec1cf0fc8170f161668f2b65783ffe724b598c03f71aa297

See more details on using hashes here.

File details

Details for the file degapm-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: degapm-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for degapm-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b8eeb09bec3ef5f2867d969dabc5a5128e88a5cf62ff4423d12a0b1909ce6595
MD5 c6219a78014f96821fdeaf54db9fa876
BLAKE2b-256 3f2f143e4dc86a3d2efad50d0d8e5db219dc652ad7cb21229fa6ab303b7082d9

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