In an embodiment of the techniques presented herein, a
system includes a universal serial
bus (
USB) port, a battery module, and a
USB power delivery (
USB-PD) controller. The battery module has a configuration memory configured to store battery module configuration data and a
voltage sensor configured to generate a battery module
voltage measurement. The USB-PD controller is configured to determine a maximum current
discharge parameter based on the battery module
voltage measurement and the battery module configuration data, determine a power delivery profile based on the maximum current
discharge parameter, negotiate a power delivery contract with a device connected to the USB port based on the power delivery profile, and provide power from the battery module to the USB port based on the power delivery contract.