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

Uploaded Python 3

File details

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

File metadata

  • Download URL: degapm-1.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 704548ed8c7194bf9a1ba200528dc788d6ffbc02486c4475d9324ed4c7f63b1c
MD5 e43068397f57f2ae3df36b4aeae0deba
BLAKE2b-256 725986289c66bb834857b6a361ff97f38db9d8889551acccc4e98c3b8440369b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: degapm-1.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb823d56c4779f1d1d089bc72142352bcfd44f07f95fcd4953c5353b0c9f004
MD5 67018a8ef937950c7a7958067d1d8c4d
BLAKE2b-256 ee5c1dbe8704e1b454ebd6e20dab795a421ccee26ecf2a0c7cf039ff75a68d79

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