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
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.4.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.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: degapm-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 44136023e61fffbfc83101468c474c727644f0a4bd064c819063cb6b5e555c5b
MD5 b49874cf7cdc0a4e48aa3009f8cd07ed
BLAKE2b-256 0b202fe14432d8e551e5303b57c82cfeed736cbd2b83561d31c8ec8c2ced182b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: degapm-1.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d14c67db746e4fea3b48f7f3b14320cad4b760dce1d5edcf4e9905ed7d49b095
MD5 8c48414d503ccce0172174f94db1a52c
BLAKE2b-256 091ff3f4fb68e549dc4b66b1264dc5cbf2b492773aa1b38040a1cd9a9e691fc6

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