Skip to main content

A2000 BP control API

Project description

Module Introduction

This module is designed for A2000 test platform backplane control, which includes 1. Get target slot device’s voltage and current 2. Set target slot device’s voltage 3. 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
tray_number = 1
result = 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
tray_number = 1
voltage_value = 12000
if 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
tray_number = 1
led_value = 1
if 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.3.tar.gz (3.6 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.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: degapm-1.0.3.tar.gz
  • Upload date:
  • Size: 3.6 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.3.tar.gz
Algorithm Hash digest
SHA256 412ba9d743f19d7de4181465a5668663f933da89c0678c99394b53abc5e4e557
MD5 4d19d87bd138d21cde863df6d66f9476
BLAKE2b-256 1b60f69eeb523a733043a317a4ff17a889a7480defaf655edad284f77972e120

See more details on using hashes here.

File details

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

File metadata

  • Download URL: degapm-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eec93a8bd77272656f1c1bb0fcbe5ce262629d98411d6e5ceec1a328119baba5
MD5 a2b087acbe2bc019d8593d39992aa322
BLAKE2b-256 44288edbaf2e525b2909aaec3155ce64088d6b203dc1bf740f39825b877f8ed5

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