This application relates to the field of
power switching technology, and discloses a
firmware-controlled
peripheral interface power
adaptive switching system and method. The method involves: upon detecting a
peripheral connection, providing a
basic power supply voltage to the
peripheral and initializing the UART
serial communication interface; sending a model query command to the peripheral and extracting the peripheral model identifier string from the response frame to generate a
relay control command; controlling a
Darlington transistor array driver
chip to drive the coil of a double-pole double-throw
relay, switching the connection state of the
relay's common terminal contact, and reading the
voltage and current measurements of the peripheral; calculating the peripheral's power value, and encapsulating the power value and power supply mode status into a status data packet and transmitting it to the peripheral management
software. This application transforms power supply configuration from hardware mechanical operation to
firmware intelligent control, realizing plug-and-play, zero-error configuration, and visual management of peripheral power supply, reducing production costs and maintenance difficulty, and improving the intelligence level of peripheral interface
power management.