Skip to main content

A2000 BP UART Debug control API

Project description

Module Introduction

This module is designed for A2000 test platform backplane control via uart port, which includes 1. Get target slot device’s voltage and current 2. Set target slot device’s voltage

Function Definition

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

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

      • Fail: return false

  2. set_voltage_uart
    • 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

Sample Code

  1. get_voltage_current

# python3
from degapm_uart import degapm_uart

tray_number = 1
result = degapm_uart.get_voltage_current_uart(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_uart

# python3
from degapm_uart import degapm_uart

tray_number = 1
voltage_value = 12000
if degapm_uart.set_voltage_uart(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)

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_uart-1.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

degapm_uart-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file degapm_uart-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for degapm_uart-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c17219e4d586d385e97849bbf129d4fc7397a37df7cc55afffd84b2a235f763
MD5 abf8b89f4c4f5a250793d880f0778454
BLAKE2b-256 f3ae5594a912ffb06f9781670bee27edc81c8ebbc50eacffcca29c115fb98283

See more details on using hashes here.

File details

Details for the file degapm_uart-1.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for degapm_uart-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb65ad65bc5e4aea568a322972d5377aa47167401d5d29e46919bf939fa99f6
MD5 57876a15d5d481ee5daa1cc856a550f2
BLAKE2b-256 baf7dcbafb2186bca85bd163cdc14b8952b0d03bbe1f84b6a1dfeee4c67d3a1f

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