USB Port Power Management
The AT1000 provides control over its two USB 3.0 ports, allowing engineers to power cycle devices under test (DUTs) and measure current and voltage consumption.
USB communication
While this chapter focuses on USB power management, the USB ports can be used to communicate with the DUT, or can even be used to interface other test or programming interfaces.
USB Power Control​
Each USB port can be individually powered up or down. This allows for controlled testing of USB-powered devices.
- NodeJS
- Python
await tester.power.usb(1).power_up(); // Power up the USB power supply channel 1
await tester.power.usb(1).power_down(); // Power down the USB power supply channel 1
await tester.power.usb(1).power_up() # Power up the USB power supply channel 1
await tester.power.usb(1).power_down() # Power down the USB power supply channel 1
Reading USB Voltage and Current​
The AT1000 allows real-time measurement of voltage and current supplied to a USB-powered device.
- NodeJS
- Python
// Read voltage on USB port 1
let usb_voltage = await tester.power.usb(1).read_voltage();
console.log("USB Power Voltage:", usb_voltage, "V");
let usb_current = await tester.power.usb(1).read_current();
console.log("USB Power Current:", usb_current, "A");
# Read voltage on USB port 1
usb_voltage = await tester.power.usb(1).read_voltage()
print(f"USB Power Voltage: {usb_voltage} V")
usb_current = await tester.power.usb(1).read_current()
print(f"USB Power Current: {usb_current} A")
Summary​
The AT1000’s USB power management API enables:
- Power cycling USB devices via
power_up()andpower_down(). - Voltage and current measurement for device power analysis.
These features allow engineers to perform controlled power tests on USB-powered devices.