Automobile emergency power supply self-adaptive output method and system based on dynamic power management

Through protocol identification and dynamic power management, the automotive emergency power supply can automatically adjust the output mode and power distribution according to the device, solving the problems of single output and poor compatibility in the existing technology, and realizing efficient and stable emergency power supply.

CN120942213AActive Publication Date: 2025-11-14HANGZHOU BAIYU TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202511495226.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-20
Publication Date
2025-11-14
Estimated Expiration
2045-10-20

AI Technical Summary

Technical Problem

Existing car emergency power supplies cannot automatically identify charging protocols and power requirements based on different devices, resulting in a single output method, unintelligent power distribution, poor interface compatibility, energy waste, and devices failing to charge properly.

Method used

The charging protocol type and power requirements of the device are identified by the protocol handshake signal, the device priority data is obtained in real time, and the power is allocated to each output port according to the remaining power through the dynamic power management module. The voltage and current modes are adjusted by the programmable DC-DC converter, and load changes are monitored to achieve intelligent power allocation.

Benefits of technology

It enables intelligent power distribution of automotive emergency power supplies in multi-device scenarios, improves charging efficiency and device compatibility, reduces energy waste, and ensures stable output of the system under various operating conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120942213A_ABST
    Figure CN120942213A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle-mounted emergency power supplies and management thereof, and particularly discloses an automobile emergency power supply self-adaptive output method and system based on dynamic power management, and the method comprises the steps: obtaining the equipment connection state of each output port of an automobile emergency power supply and the remaining electric quantity of the automobile emergency power supply in real time; when a device is connected, identifying a charging protocol type and a power demand parameter of the device through a protocol handshake signal; acquiring preset equipment priority data, and dynamically distributing the power of each output port in real time according to the identification result, the equipment priority data and the residual electric quantity of the automobile emergency power supply; according to the invention, in the actual combined use of multiple modules, the orderly power supply among the functional modules is ensured. In a vehicle-mounted environment, the excellent performance of plug and play of interfaces, automatic protocol identification and multi-device dynamic combination output is realized, and the use convenience and safety are obviously improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle-mounted emergency power supply and its management technology, specifically a method and system for adaptive output of automotive emergency power supply based on dynamic power management. Background Technology

[0002] Currently, most commercially available car jump starters are primarily used for vehicle jump-starting and mobile device charging, and generally only have a single-port or simple multi-port output function with a fixed voltage output. For example, some portable jump starters are equipped with one USB-A port or a few USB ports for charging devices such as mobile phones, but these interfaces usually only output a fixed 5V or 12V voltage and cannot actively adjust the output mode according to the needs of different devices.

[0003] In addition, existing products often lack the ability to recognize the protocols of connected devices, and cannot recognize charging protocols such as USB PowerDelivery, Qualcomm Fast Charging, and Samsung AFC, which causes the device to be unable to charge at the optimal voltage and current, thereby reducing charging efficiency.

[0004] In multi-functional applications, such as providing high current for emergency car starts, wirelessly charging mobile phones, inflating tires, or powering car vacuum cleaners or car wash pumps, the aforementioned shortcomings are particularly pronounced: On the one hand, due to the single output mode and lack of protocol negotiation, it often fails to meet the power supply needs of high-power devices, resulting in power waste or starting failure; on the other hand, incompatibility between different interface standards and protocols can lead to devices failing to charge properly or requiring manual switching, causing inconvenience. For example, a smartphone that supports the QC protocol may only receive a 5V output, significantly reducing charging speed. In summary, existing car emergency power supplies have the following main deficiencies in terms of output methods and power management: single output mode, lack of support for automatic protocol identification and switching; unintelligent power distribution, unable to dynamically respond to the needs of multiple device scenarios; and poor interface compatibility, easily leading to interface incompatibility and energy waste.

[0005] To address the aforementioned shortcomings of existing technologies, this invention aims to solve the following technical problem: how to enable automotive emergency power supplies to automatically identify the charging and power supply protocols and power requirements of connected devices in diverse device scenarios, and dynamically adjust the output mode and power distribution. Specifically, the technical problems existing in current emergency power supplies include: The existing power interface only provides a fixed output and cannot automatically switch voltage levels and protocol modes according to the needs of different devices; When faced with multiple devices connected at the same time, the existing power supply cannot intelligently allocate output power, and high-power devices cannot receive priority power supply. Current emergency power supplies cannot distinguish the charging protocol type used by connected devices, nor do they know the optimal charging parameters required for each device, resulting in poor compatibility and energy waste. Summary of the Invention

[0006] The purpose of this invention is to provide an adaptive output method and system for automotive emergency power supplies based on dynamic power management, so as to solve the problems mentioned in the background art.

[0007] To achieve the above objectives, the present invention provides the following technical solution: an adaptive output method for automotive emergency power supplies based on dynamic power management, the method comprising: Real-time acquisition of device connection status and remaining power of each output port of the vehicle emergency power supply; When a device is connected, the device's charging protocol type and power requirement parameters are identified through the protocol handshake signal. Obtain preset device priority data, and dynamically allocate power to each output port in real time based on the identification results, device priority data, and remaining power of the vehicle emergency power supply; Switch the control output port to the matching voltage and current mode.

[0008] As a further embodiment of the present invention, the step of identifying the charging protocol type and power requirement parameters of a device through a protocol handshake signal when a device is connected specifically includes: For Type-C interfaces, the USB PD protocol handshake is used first to obtain the device's voltage and current requests; If the PD protocol does not respond, then the QC protocol handshake signal and the AFC protocol pulse signal are checked sequentially. If no protocol is detected, the default security parameters will be output.

[0009] As a further embodiment of the present invention, the step of dynamically allocating the power of each output port in real time based on the identification result, device priority data, and remaining power of the vehicle emergency power supply specifically includes: Confirm the safety status of the vehicle's emergency power supply; Based on bubble sort, the devices in the identification results are sorted according to priority data to generate a device list; Get the remaining power of the car's emergency power supply, iterate through the device list, and if the remaining power is sufficient, allocate the required power; if the remaining power is insufficient, allocate 80% of the remaining power or turn off low-priority devices.

[0010] As a further embodiment of the present invention, the step of switching the control output port to the matching voltage and current mode specifically includes: The output voltage level can be adjusted using a programmable DC-DC converter; Set the current limit according to the protocol type; A voltage safety check is performed before switching.

[0011] As a further aspect of the present invention, it also includes real-time monitoring of the load and total load power of each output port, and when an overload risk is detected or the total power of multiple ports approaches the power supply limit, scheduling of the power of each output port is performed based on device priority data.

[0012] This invention also provides an adaptive output system for automotive emergency power supplies based on dynamic power management, used to implement an adaptive output method for automotive emergency power supplies based on dynamic power management. The system includes: The data acquisition module is used to acquire the device connection status of each output port of the vehicle emergency power supply and the remaining power of the vehicle emergency power supply in real time. The protocol identification module is used to identify the charging protocol type and power requirement parameters of a device when it is connected, through the protocol handshake signal. The dynamic power management module is used to acquire preset device priority data and dynamically allocate the power of each output port in real time based on the identification results, device priority data and the remaining power of the vehicle emergency power supply. The interface adapter module is used to control the output port to switch to the matching voltage and current mode.

[0013] As a further embodiment of the present invention, the protocol identification module specifically includes: The PD protocol handshake unit is used to prioritize the USB PD protocol handshake for the Type-C interface and obtain the device's voltage and current requests. The remaining protocol handshake units are used to sequentially detect the QC protocol handshake signal and the AFC protocol pulse signal if the PD protocol does not respond. The default output unit is used to output preset default security parameters if no protocol is detected.

[0014] Compared with the prior art, the beneficial effects of the present invention are: Because it can dynamically allocate power according to device protocols and real-time load, the traditional problem of output-demand mismatch is solved, significantly reducing energy waste. For example, when charging a smartphone, no manual switching is required; the system automatically identifies and provides QC or PD fast charging support, bringing the charging rate close to the nominal maximum value.

[0015] In practical multi-module combined use, the system ensures orderly power supply among various functional modules. In vehicle starting scenarios, the emergency power supply can provide a large current output to the engine; when supplying power to high-power equipment such as air pumps or car wash pumps, the system prioritizes the currently used equipment, and automatically limits the current or cuts off power to other ports, thus ensuring a stable output of the required power under various operating conditions.

[0016] In a vehicle-mounted environment, this invention achieves superior performance in terms of plug-and-play interfaces, automatic protocol recognition, and dynamic combination output of multiple devices. Compared to existing technologies, this method significantly improves ease of use and safety. Users do not need to worry about the voltage protocols required by the devices; the system automatically adapts, and the power output is more stable and reliable, effectively improving the efficiency and reliability of emergency power supply. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention.

[0018] Figure 1 This is a flowchart illustrating an adaptive output method for automotive emergency power supplies based on dynamic power management, provided as an embodiment of the present invention.

[0019] Figure 2 This is a flowchart illustrating the steps for identifying the charging protocol type and power requirement parameters of a device through a protocol handshake signal when a device is connected, as provided in an embodiment of the present invention.

[0020] Figure 3 This is a flowchart illustrating the steps for dynamically allocating power to each output port in real time based on the identification result, device priority data, and remaining power of the vehicle's emergency power supply, as provided in an embodiment of the present invention.

[0021] Figure 4 This is a block diagram illustrating the composition of an adaptive output system for automotive emergency power supplies based on dynamic power management, as provided in an embodiment of the present invention.

[0022] Figure 5 This is a block diagram illustrating the structural composition of the protocol identification module provided in an embodiment of the present invention. Detailed Implementation

[0023] To make the technical problems to be solved, the technical solutions, and the beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.

[0024] Figure 1 This is a flowchart illustrating an adaptive output method for automotive emergency power supplies based on dynamic power management. In this embodiment of the invention, an adaptive output method for automotive emergency power supplies based on dynamic power management includes: Step S100: Obtain the device connection status of each output port of the vehicle emergency power supply and the remaining power of the vehicle emergency power supply in real time. Step S200: When a device is connected, the charging protocol type and power requirement parameters of the device are identified through the protocol handshake signal; Step S300: Obtain preset device priority data, and dynamically allocate the power of each output port in real time based on the identification result, device priority data and remaining power of the vehicle emergency power supply. Step S400: Control the output port to switch to the matching voltage and current mode.

[0025] In this embodiment, a microcontroller (MCU) is included. The MCU is the core control unit of the entire system, responsible for real-time monitoring of the connection and power status of all output interfaces, and for unified coordination and management of various functional modules. Once a device connection is detected, the microcontroller can query the information returned by the protocol identification module to determine the device type and power requirements, and send control commands to the corresponding output interface based on a preset power scheduling algorithm. After detecting the type of power supply device, dynamic power management is performed, and the optimal charging power for that device is output.

[0026] like Figure 3 As shown, in a preferred embodiment of the present invention, the step of identifying the charging protocol type and power requirement parameters of a device through a protocol handshake signal when a device is connected specifically includes: Step S201: For the Type-C interface, prioritize the USB PD protocol handshake to obtain the device's voltage and current requests; Step S202: If the PD protocol does not respond, then the QC protocol handshake signal and the AFC protocol pulse signal are detected sequentially. In step S203, if no protocol is identified, the preset default security parameters are output.

[0027] In this embodiment, the charging and communication protocols used by devices connected to each interface can be detected and identified. For USB, Type-C, DC, and contact interfaces, the protocol identification module monitors the signal on the CC line and obtains the device's power requirements and voltage level through the USB PD protocol's handshake mechanism. The module identifies supported protocols such as Qualcomm Quick Charge QC and Samsung AFC by detecting the voltage levels or protocol handshake signals on the D+ and D- data lines. A dedicated detection circuit is configured for each output interface.

[0028] This module monitors signal line level changes and integrates an IP6518 chip for identifying USB PD, QC, and PD protocols. It also integrates a CHY103 chip for detecting the Apple 2.4A protocol and analyzing device handshake signals. The identified protocol type, voltage, and current requirements are transmitted to the main control MCU via an I2C interface through a data structure. After identification, the module feeds back the required output voltage, current, and other parameters to the microcontroller to guide subsequent output adjustments.

[0029] The following specific algorithms are provided: DeviceProtocol identify_protocol(OutputPort port){ DeviceProtocol result={UNKNOWN,5000,1000}; / / Default 5V / 1A Its function is to initialize a default protocol identification result, of type UNKNOWN, with a default output voltage of 5V and a default output current of 1A. This is to provide a safe default value when no protocol is identified.

[0030] if (port.type == TYPE_C) { send_pd_source_capabilities(port); if(wait_for_pd_response(port,200ms)){ result=parse_pd_response(port); return result; } } Function: If the connected port is Type-C, attempt to identify it via the USB Power Delivery (PD) protocol. `send_pd_source_capabilities(port)`: Sends PD protocol power capability information to the device, querying for the supported voltage and current. `wait_for_pd_response(port, 200ms)`: Waits for a response from the device, with a timeout of 200 milliseconds. `parse_pd_response(port)`: Parses the device's response, obtaining the supported protocol type, voltage, and current requirements. If the PD protocol is successfully identified, the parsed result is returned.

[0031] if(detect_qc_handshake(port)){ result.protocol_type=QC; result.voltage_mV=get_qc_voltage(port); return result; } Function: If PD protocol identification fails, attempt to identify the Qualcomm Quick Charge (QC) protocol. `detect_qc_handshake(port)`: Detects the QC protocol handshake signal on the port; `get_qc_voltage(port)`: Retrieves the QC protocol voltage requested by the device (e.g., 9V, 12V, etc.); If the QC protocol is successfully identified, it returns the protocol type and voltage.

[0032] if(detect_afc_pulse(port)){ result.protocol_type=AFC; result.voltage_mV=9000; return result; } Function: If QC protocol identification fails, attempt to identify the Samsung AFC protocol. detect_afc_pulse(port): Detects the AFC protocol pulse signal on the port; if the AFC protocol is identified, it returns a 9V voltage by default; if the AFC protocol is successfully identified, it returns the protocol type and voltage.

[0033] return result; } like Figure 3 As shown, in a preferred embodiment of the present invention, the step of dynamically allocating the power of each output port in real time based on the identification result, device priority data, and remaining power of the vehicle emergency power supply specifically includes: Step S301: Confirm the safety status of the vehicle's emergency power supply; Step S302: Sort the devices in the identification results according to priority data based on bubble sort to generate a device list; Step S303: Obtain the remaining power of the vehicle's emergency power supply, traverse the device list, and if the remaining power is sufficient, allocate the required power; if the remaining power is insufficient, allocate 80% of the remaining power or turn off low-priority devices.

[0034] In this embodiment, the power output allocation is dynamically adjusted based on the protocol identification results and real-time load conditions. During use, the dynamic power management module continuously monitors the remaining battery power of the built-in battery pack and data such as current and voltage at each output port. When the system detects a large load demand at a port or the total power of multiple ports approaches the power limit, the module activates a power scheduling strategy. It ensures the power supply needs of high-priority tasks by concentrating available power on that port; low-priority outputs are current-limited or temporarily shut down to avoid overload and rapid power loss. This dynamic scheduling avoids the power waste of traditional static allocation, improves energy utilization, and ensures the stability and safety of system operation in different scenarios. The algorithm of the dynamic power management module is implemented as follows.

[0035] Equipment Priority Classification Priority Equipment Name Energy demand highest priority Car emergency start Instantaneous high current, 1500A peak High priority Air pumps, car wash machines, etc. 120W Medium priority Mobile phones that support the PD protocol, etc. 22.5W low priority Wireless charging 5~15W Real-time power monitoring monitors the current, voltage, and total load power of each port, as well as the remaining charge (SOC) and temperature status of the built-in battery.

[0036] Dynamic power allocation works as follows: For a single-device scenario, the maximum power required by the device is directly allocated. For a multi-device scenario, the total available power is calculated, and power is allocated from highest to lowest priority to ensure that high-priority devices operate at full power. If insufficient remaining power occurs, low-priority devices are current-limited or temporarily shut down.

[0037] The specific algorithm flow is as follows: #include<stdio.h> #include<stdbool.h> #include<string.h> Equipment type definition: typedef enum{ PRIORITY_EMERGENCY=0, / / Highest priority: Car emergency start; PRIORITY_HIGH, / / High priority: air pumps, car wash machines; PRIORITY_MEDIUM, / / Medium priority: fast charging devices; PRIORITY_LOW / / Low priority: wireless charging, etc.; DevicePriority; Equipment structure: typedef struct{ char name

[20] ; Device Priority; float requested_power; float allocated_power; bool is_enabled; Device; Battery state structure: typedef struct{ float soc; float temperature; / bool is_safe; }BatteryStatus; Function: It defines a clear device priority system (emergency start > air pump / car wash machine > fast charging equipment > wireless charging), which is the basis for dynamic power allocation; the device structure not only records the requested power, but also the actual allocated power and the activation status, providing data support for dynamic adjustment; the battery status structure includes power, temperature and safety indicators, realizing comprehensive status monitoring of the power system.

[0038] Dynamic power management functions: void dynamic_power_management(Device *devices,int device_count,BatteryStatus *battery){ const float TOTAL_POWER_LIMIT=200.0f; float allocated_power = 0.0f; battery->is_safe=(battery->soc>10.0f&&battery->temperature<60.0f); Sort devices by priority (simple bubble sort): for(int i=0;i <device_count-1;i++){ for(int j=0;j <device_count-i-1;j++){ if(devices[j].priority>devices[j+1].priority){ Device temp = devices[j]; devices[j] = devices[j+1]; devices[j+1] = temp;} } } Dynamic power allocation: for(int i=0;i <device_count;i++){ if(allocated_power+devices[i].requested_power<=TOTAL_POWER_LIMIT&&battery->is_safe){ Full power allocation: devices[i].allocated_power=devices[i].requested_power; devices[i].is_enabled=true; allocated_power+=devices[i].requested_power; }else{ Distribute remaining power or shut down the device: float remaining_power=TOTAL_POWER_LIMIT-allocated_power; if (remaining_power>0){ devices[i].allocated_power=remaining_power*0.8f; devices[i].is_enabled=true; }else{ devices[i].allocated_power=0.0f; devices[i].is_enabled=false; } } } } effect: Battery safety check: Checks if the charge level is >10% and the temperature is <60℃ to ensure the system operates within a safe range. It features an innovative dual protection mechanism to prevent over-discharge and overheating.

[0039] Device priority sorting: Bubble sort is used to sort devices from highest to lowest priority, which is an innovative feature that ensures that high-priority devices receive power allocation first.

[0040] Power allocation logic: First, iterate through the sorted device list. If the total power is sufficient and the battery is safe, allocate all the power requested by the device. If the power is insufficient, calculate the remaining power and allocate 80%. If the power is completely insufficient, shut down low-priority devices. It features a dynamic adjustment and safety buffer mechanism.

[0041] Printer status (for debugging): void print_device_status(Device *devices,int device_count){ printf("Device Status:\n"); printf("Name\t\tPriority\tRequested(W)\tAllocated(W)\tEnabled\n"); printf("-------------------------------------------------------------\n"); for(int i=0;i <device_count;i++){ printf("%s\t\t%d\t\t%.1f\t\t%.1f\t\t%s\n", devices[i].name, devices[i].priority, devices[i].requested_power, devices[i].allocated_power, devices[i].is_enabled?"Yes":"No"); } printf("\n"); } Main function (simulating test scenario): int main(){ Initialize device list: Device devices[]={ {"Car Starter",PRIORITY_EMERGENCY,150.0f,0.0f,false}, / / Car start (instantaneous high power); {"Air Pump",PRIORITY_HIGH,120.0f,0.0f,false}, / / Air pump; {"Phone Fast",PRIORITY_MEDIUM,22.5f,0.0f,false}, / / Fast charging for mobile phones; {"Wireless",PRIORITY_LOW,10.0f,0.0f,false} / / Wireless charging; }; int device_count=sizeof(devices) / sizeof(devices[0]); Initialize battery status (50% charge, 40°C): BatteryStatus battery={50.0f,40.0f,true}; Analog dynamic power management: printf("===Initial State===\n"); print_device_status(devices,device_count); printf("===After Power Allocation===\n"); dynamic_power_management(devices,device_count,&battery); print_device_status(devices,device_count); Simulate a low battery scenario: printf("===Low Battery Scenario(SOC=5%%)===\n"); battery.soc=5.0f; dynamic_power_management(devices,device_count,&battery); print_device_status(devices,device_count); return 0; } Function: Provides detailed device status output, facilitating algorithm debugging and verification. Includes complete test cases to simulate power distribution under different scenarios.

[0042] In a preferred embodiment of the present invention, the step of switching the control output port to the matching voltage and current mode specifically includes: The output voltage level can be adjusted using a programmable DC-DC converter; Set the current limit according to the protocol type; A voltage safety check is performed before switching.

[0043] In this embodiment, the interface adapter module enables a single output interface to be compatible with multiple protocols and automatically switch output modes. Specifically, each output interface is equipped with a programmable DC-DC converter and multi-level output circuitry. Guided by the protocol identification result, the module can automatically adjust the voltage level and current limit of the interface output. For example, when a mobile device is identified as supporting the USB PD protocol and requesting 9V output, the interface adapter module will switch the output to 9V mode; if the device only requires standard 5V charging, it will output in 5V mode; if other devices requiring 12V, 15V, or even higher voltages are connected, it can also switch to 12V or 15V mode accordingly. By controlling the programmable power chip, the module can smoothly switch between several common voltage levels, achieving interface compatibility with multiple protocols such as PD, QC, and AFC. In this way, regardless of the voltage standard requested by the device, the interface can quickly match and provide a compliant output voltage and current.

[0044] The interface adaptation module is responsible for dynamically adjusting the voltage and current parameters of the output interface based on the protocol identification results, achieving multi-protocol compatibility by controlling the programmable DC-DC converter. It receives the output parameters from the protocol identification module, controls the power supply chip to switch output voltage levels, monitors the output status in real time, and provides feedback for adjustment.

[0045] Below is the specific program for the interface adaptation algorithm: #include<stdint.h> #include<stdbool.h> Define the supported output voltage levels (unit: mV): typedef enum{ VOLTAGE_5V=5000, VOLTAGE_9V=9000, VOLTAGE_12V=12000, VOLTAGE_15V=15000, VOLTAGE_20V=20000 OutputVoltage; Function: Defines the supported output voltage levels (5V, 9V, 12V, 15V, 20V) to cover common fast charging protocol requirements and ensure compatibility.

[0046] Device protocol type (consistent with the protocol identification module): typedef enum{ PROTOCOL_UNKNOWN=0, PROTOCOL_PD, PROTOCOL_QC, PROTOCOL_AFC, PROTOCOL_APPLE_2_4A DeviceProtocol; Function: Defines the device protocol type and aligns it with the output of the protocol identification module to ensure data consistency between modules.

[0047] DC-DC chip control structure: typedef struct{ uint8_t i2c_addr; float current_limit; bool is_ready; }DCDC_Controller; Function: To encapsulate the control parameters of the DC-DC converter, including hardware address, current limit and status flags, and to provide data structure support for hardware control.

[0048] Interface adapter state machine: typedef enum{ STATE_IDLE, STATE_VOLTAGE_CHANGE, STATE_CURRENT_ADJUST, STATE_SAFE_CHECK, STATE_ACTIVE }AdapterState; Function: Define the state of the state machine to ensure the safety and orderliness of the voltage switching process.

[0049] Interface adapter main control structure: typedef struct{ OutputPort port; OutputVoltage target_voltage; float target_current; DeviceProtocol protocol; AdapterState state; DCDC_Controller dc_dc; uint32_t retry_count; InterfaceAdapter; Function: Integrates all parameters and states of the interface adaptation, including target output, protocol type, hardware controller, etc., to provide unified management for the core logic.

[0050] Initialize the DC-DC controller: bool dcdc_init(DCDC_Controller* controller){ Simulated I2C initialization: controller->is_ready=true; return controller->is_ready; } Function: Initializes the DC-DC controller and marks it as ready. In practical applications, I2C communication is needed to verify whether the chip is working properly. The hardware abstraction design facilitates adaptation to different models of DC-DC chips.

[0051] Set the DC-DC output voltage: bool dcdc_set_voltage(DCDC_Controller* controller,OutputVoltagevoltage){ printf("[DC-DC] Setting voltage to %dmV\n",voltage); return true; } Function: Sets the output voltage level of the DC-DC chip via I2C commands, supports dynamic switching of multiple levels, and meets the flexible voltage requirements of protocols such as PD / QC.

[0052] Set DC-DC output current limit: bool dcdc_set_current_limit(DCDC_Controller* controller, floatcurrent){ Analog current limit settings: printf("[DC-DC] Setting current limit to %.2fA\n",current); controller->current_limit=current; return true; } Function: Dynamically adjusts the current limit according to the protocol type to prevent overload; protocol-aware current management balances efficiency and safety.

[0053] Voltage switching safety test: bool voltage_change_safe_check(InterfaceAdapter* adapter){ printf("[Safety] Performing pre-change check...\n"); return true; } Function: To detect the load status before voltage switching, avoid hardware damage caused by live switching, and improve system reliability through hardware protection mechanisms.

[0054] Interface adaptation state machine processing function: void adapter_state_machine(InterfaceAdapter* adapter){ switch(adapter->state){ case STATE_IDLE: if(adapter->target_voltage !=VOLTAGE_5V){ adapter->state=STATE_VOLTAGE_CHANGE; } break case STATE_VOLTAGE_CHANGE: if(voltage_change_safe_check(adapter)){ if(dcdc_set_voltage(&adapter->dc_dc,adapter->target_voltage)){ adapter->state=STATE_CURRENT_ADJUST; } }else{ printf("[WARNING] Unsafe voltage change detected!\n"); adapter->state=STATE_IDLE; } break case STATE_CURRENT_ADJUST: Set current limits according to protocol type: switch(adapter->protocol){ Case PROTOCOL_PD: dcdc_set_current_limit(&adapter->dc_dc,3.0f); / / Typical value for PD protocol break case PROTOCOL_QC: dcdc_set_current_limit(&adapter->dc_dc,2.0f); break default: dcdc_set_current_limit(&adapter->dc_dc,2.4f); / / Default limit } adapter->state=STATE_SAFE_CHECK; break case STATE_SAFE_CHECK: Simulated post-security detection: printf("[Safety] Output stabilized at %dmV\n",adapter->target_voltage); adapter->state=STATE_ACTIVE; break case STATE_ACTIVE: break } } Function: The voltage switching process is managed in an orderly manner through a state machine to ensure the safety and reliability of each step of the operation. The phased operation process includes voltage switching, current adjustment, and safety confirmation to avoid instantaneous overload; it can dynamically match the current limit according to the protocol type; and it automatically returns to the idle state when the safety detection fails.

[0055] Interface adaptation main function: void interface_adapter_task(InterfaceAdapter* adapter,DeviceProtocolprotocol, OutputVoltage voltage,float current){ Update target parameters: adapter->protocol=protocol; adapter->target_voltage=voltage; adapter->target_current=current; Processing state machine: adapter_state_machine(adapter); Exception handling (simplified version): if (adapter->retry_count > 3) { printf("[ERROR] Adapter failed after 3 retries!\n"); emergency_shutdown(adapter->port); } } Function: Receives the output parameters (protocol type, voltage, current) of the protocol identification module, drives the state machine to run, handles abnormal situations, and responds to the protocol identification results in real time; shuts down in an emergency after a retry failure to prevent hardware damage.

[0056] Example use cases: int main(){ / / Initialize the interface adapter; InterfaceAdapter usb_c_adapter={ .dc_dc={.i2c_addr=0x20,.current_limit=0.0f}, .state=STATE_IDLE, .target_voltage=VOLTAGE_5V / / Default 5V standby }; Initialize the DC-DC controller: if(!dcdc_init(&usb_c_adapter.dc_dc)){ printf("DC-DC init failed!\n"); return -1; } Analog protocol identification result (PD protocol request 20V / 3A): printf("===PD Device Connected ===\n"); interface_adapter_task(&usb_c_adapter,PROTOCOL_PD,VOLTAGE_20V,3.0f); Simulate state machine operation (in practical applications, it needs to be executed cyclically): for(int i=0;i<5;i++){ adapter_state_machine(&usb_c_adapter); } return 0; } Purpose: To simulate PD device access scenarios, demonstrate the complete process from initialization to voltage switching, verify the feasibility of the algorithm through actual use cases, and cover typical fast charging protocols.

[0057] As a preferred embodiment of the present invention, it further includes real-time monitoring of the load and total load power of each output port, and when an overload risk is detected or the total power of multiple ports approaches the power supply limit, the power of each output port is scheduled based on the device priority data.

[0058] In this embodiment, by dynamically monitoring changes in port load, the microcontroller (MCU) can adjust its output strategy at any time during device use, such as reducing or cutting off the output in a timely manner when an overload risk is detected, in order to protect power safety.

[0059] The device provides an interactive interface that allows users to manually set parameters under special operating conditions. User-defined algorithms allow users to manually adjust device priorities, output voltage and current limits for specific interfaces, total power distribution strategies, and special operating mode selections. Physical buttons and a small integrated OLED display module enable manual adjustments.

[0060] User-defined algorithm: typedef struct{ DevicePriority custom_priority[MAX_DEVICES]; float custom_voltage[MAX_PORTS]; float custom_current[MAX_PORTS]; bool eco_mode; bool force_high_power; uint8_t temperature_threshold; UserConfig; Function: Stores user-defined configuration parameters, including: device priority (allowing users to manually adjust the power supply priority of different devices), output voltage and current (allowing users to manually set fixed voltage and current for specific interfaces), operating mode (energy-saving mode and forced high-power mode), and temperature threshold (customizable battery overheat protection threshold, default 60℃, which users can adjust to 50℃ or 70℃). Users can adjust power behavior according to scenario requirements, balancing personalization and safety; special modes (such as energy saving or high power) can be quickly enabled through flag bits without complex settings.

[0061] User configuration saved to Flash: void save_user_config(UserConfig* config){ Implement Flash write operations: Includes CRC checksum to ensure data integrity: } Function: Writes user configurations to non-volatile Flash memory, which can be retained even after power failure. User settings can be applied permanently after one time, improving ease of use; CRC check prevents system failures caused by abnormal configuration data.

[0062] Loading user configuration from Flash: void load_user_config(UserConfig* config) { Implement Flash read operations: } Function: When the system starts up, it reads the user configuration from Flash and restores the last settings, so the user does not need to repeat the settings and it is ready to use after booting up; CRC check ensures that the loaded configuration data is correct.

[0063] User interface processing functions: void user_interface_task(void){ } Function: Manage user interaction logic: button input (adjust parameters via physical buttons or touch screen), OLED display (display current configuration, output status and alarm information in real time), module collaboration (pass user settings to the dynamic power management module and notification interface adapter module to switch output voltage).

[0064] The superiority of this invention has been verified through experiments and theoretical analysis. Compared with existing technologies, this invention can significantly improve the output efficiency and equipment compatibility of emergency power supplies. The system can automatically identify device protocols and dynamically adjust the output, truly achieving plug-and-play functionality. Specific technical effects include: Improved output efficiency and compatibility: Because this method can dynamically allocate power according to device protocols and real-time load, the traditional problem of output-demand mismatch is solved, significantly reducing energy waste. For example, when charging a smartphone, no manual switching is required; the system automatically identifies and provides QC or PD fast charging support, bringing the charging rate close to the nominal maximum value.

[0065] Meeting the needs of multi-functional scenarios: In actual multi-module combined use, this method ensures orderly power supply between various functional modules. In the vehicle starting scenario, the emergency power supply can provide a large current output to the engine; when powering high-power equipment such as air pumps or car wash pumps, the system prioritizes the currently used equipment, and other ports are automatically current-limited or powered off, thus ensuring stable power output under various operating conditions.

[0066] Experimental verification: The automotive emergency power supply using the control method of this invention performed excellently in actual tests. Experimental results show that the engine start success rate exceeds 95% during emergency start-up; when charging the built-in battery of the power supply using the Type-C fast charging protocol input, a conventional large-capacity battery can be fully charged in 4 hours; the power distribution algorithm has an automation accuracy rate of over 98%, meaning that the system can correctly adjust the output according to the load demand without malfunctioning.

[0067] Overall Performance Enhancement: In a vehicle-mounted environment, this invention achieves superior performance with plug-and-play interfaces, automatic protocol recognition, and dynamic combination output of multiple devices. Compared to existing technologies, this method significantly improves ease of use and safety. Users do not need to worry about the voltage protocols required by the devices; the system automatically adapts, and the power output is more stable and reliable, effectively improving the efficiency and reliability of emergency power supply.

[0068] like Figure 4As shown in the figure, this embodiment of the invention also provides an adaptive output system for automotive emergency power supplies based on dynamic power management, used to implement an adaptive output method for automotive emergency power supplies based on dynamic power management. The system includes: The data acquisition module 100 is used to acquire the device connection status of each output port of the vehicle emergency power supply and the remaining power of the vehicle emergency power supply in real time. The protocol identification module 200 is used to identify the charging protocol type and power requirement parameters of a device when it is connected by a protocol handshake signal. The dynamic power management module 300 is used to acquire preset device priority data and dynamically allocate the power of each output port in real time based on the identification results, device priority data and the remaining power of the vehicle emergency power supply. The interface adapter module 400 is used to control the output port to switch to the matching voltage and current mode.

[0069] It also includes a main control module, implemented by a microcontroller (MCU), which is the core control unit of the entire system. The main control module is responsible for real-time monitoring of the connection and power status of all output interfaces and for unified coordination and management of all functional modules. Once a device connection is detected, the main control module queries the information returned by the protocol identification module to determine the device type and power requirements, and sends control commands to the corresponding output interface based on a preset power scheduling algorithm. After detecting the type of power supply device, it controls the dynamic power management module to output the optimal charging power for that device. By dynamically monitoring port load changes, the main control module can adjust the output strategy at any time during device use, such as promptly reducing or cutting off the output when an overload risk is detected, to protect power safety.

[0070] The protocol identification module is used to detect and identify the charging and communication protocols used by devices connected to each interface. For USB, Type-C, DC, and contact interfaces, the protocol identification module monitors the signal on the CC line and obtains the device's power requirements and voltage level through the USB PD protocol's handshake mechanism. It identifies supported protocols such as Qualcomm Quick Charge QC and Samsung AFC by detecting the voltage levels or protocol handshake signals on the D+ and D- data lines. A dedicated detection circuit is configured for each output interface.

[0071] This module monitors signal line level changes and integrates an IP6518 chip for identifying USB PD, QC, and PD protocols. It also integrates a CHY103 chip for detecting the Apple 2.4A protocol and analyzing device handshake signals. The identified protocol type, voltage, and current requirements are transmitted to the main control MCU via an I2C interface through a data structure. After identification, the module feeds back the required output voltage, current, and other parameters to the main control module to guide subsequent output adjustments. Through this module, the invention enables the power interface to proactively "inquire" about device needs and respond automatically.

[0072] The dynamic power management module dynamically adjusts the power output allocation based on protocol identification results and real-time load conditions. During operation, the module continuously monitors the remaining battery power and current, voltage, and other data at each output port. When the system detects a high load demand at a port or when the total power of multiple ports approaches the power limit, the module activates a power scheduling strategy. It prioritizes power supply to high-priority tasks by allocating available power to those ports, while limiting or temporarily shutting down low-priority outputs to prevent overload and rapid power loss. This dynamic scheduling avoids the power waste of traditional static allocation, improves energy efficiency, and ensures system stability and safety in various scenarios.

[0073] The interface adapter module enables a single output interface to be compatible with multiple protocols and automatically switch output modes. Specifically, each output interface is equipped with a programmable DC-DC converter and multi-level output circuitry. Guided by the protocol identification result, the module can automatically adjust the voltage level and current limit of the interface output. For example, when a mobile device is detected to support the USB PD protocol and requests 9V output, the interface adapter module will switch the output to 9V mode; if the device only requires standard 5V charging, it will output in 5V mode; if other devices requiring 12V, 15V, or even higher voltages are connected, it can also switch to 12V or 15V mode accordingly. By controlling the programmable power chip, the module can smoothly switch between several common voltage levels, achieving interface compatibility with multiple protocols such as PD, QC, and AFC. In this way, regardless of the voltage standard requested by the device, the interface can quickly match and provide the specified output voltage and current.

[0074] The interface adaptation module is responsible for dynamically adjusting the voltage and current parameters of the output interface based on the protocol identification results, achieving multi-protocol compatibility by controlling the programmable DC-DC converter. It receives the output parameters from the protocol identification module, controls the power supply chip to switch output voltage levels, monitors the output status in real time, and provides feedback for adjustment.

[0075] In a preferred embodiment of the present invention, a user-defined module is also included. This module provides an interactive interface for users, allowing them to manually set parameters under special operating conditions. The user-defined algorithm allows users to manually adjust device priorities, output voltage and current limits for specific interfaces, total power allocation strategies, and special operating mode selections. Physical buttons and a small integrated OLED display module are installed on the device to enable manual adjustments by the user.

[0076] The aforementioned functional modules work together to achieve adaptive control of the vehicle's emergency power output. The specific process is as follows: The main control module first scans each output port for any connected devices; the protocol identification module performs a quick handshake with the connected devices to determine their supported protocols and required voltage levels; based on the protocol and load information, the dynamic power management module calculates the current allocable power for each port and notifies the interface adaptation module to switch to matching mode.

[0077] like Figure 5 As shown, in a preferred embodiment of the present invention, the protocol identification module specifically includes: The PD protocol handshake unit 201 is used to prioritize the USB PD protocol handshake for the Type-C interface and obtain the device's voltage and current requests; The remaining protocol handshake unit 202 is used to sequentially detect the QC protocol handshake signal and the AFC protocol pulse signal if the PD protocol does not respond. The default output unit 203 is used to output preset default security parameters if no protocol is detected.

[0078] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for adaptive output of automotive emergency power supply based on dynamic power management, characterized in that, The method includes: Real-time acquisition of device connection status and remaining power of each output port of the vehicle emergency power supply; When a device is connected, the device's charging protocol type and power requirement parameters are identified through the protocol handshake signal. Obtain preset device priority data, and dynamically allocate power to each output port in real time based on the identification results, device priority data, and remaining power of the vehicle emergency power supply; Switch the control output port to the matching voltage and current mode.

2. The adaptive output method for automotive emergency power supplies based on dynamic power management according to claim 1, characterized in that, The step of identifying the charging protocol type and power requirement parameters of a device through a protocol handshake signal when a device is connected specifically includes: For Type-C interfaces, the USB PD protocol handshake is used first to obtain the device's voltage and current requests; If the PD protocol does not respond, then the QC protocol handshake signal and the AFC protocol pulse signal are checked sequentially. If no protocol is detected, the default security parameters will be output.

3. The adaptive output method for automotive emergency power supplies based on dynamic power management according to claim 1, characterized in that, The step of dynamically allocating power to each output port in real time based on the identification results, device priority data, and remaining power of the vehicle emergency power supply specifically includes: Confirm the safety status of the vehicle's emergency power supply; Based on bubble sort, the devices in the identification results are sorted according to priority data to generate a device list; Get the remaining power of the car's emergency power supply, iterate through the device list, and if the remaining power is sufficient, allocate the required power; if the remaining power is insufficient, allocate 80% of the remaining power or turn off low-priority devices.

4. The adaptive output method for automotive emergency power supplies based on dynamic power management according to claim 1, characterized in that, The specific steps for switching the control output port to the matching voltage and current mode include: The output voltage level can be adjusted using a programmable DC-DC converter; Set the current limit according to the protocol type; A voltage safety check is performed before switching.

5. The adaptive output method for automotive emergency power supplies based on dynamic power management according to claim 4, characterized in that, It also includes real-time monitoring of the load and total load power of each output port. When an overload risk is detected or the total power of multiple ports approaches the power limit, the power of each output port is scheduled based on the device priority data.

6. An adaptive output system for automotive emergency power supplies based on dynamic power management, used to implement the adaptive output method for automotive emergency power supplies based on dynamic power management as described in any one of claims 1-5, characterized in that, The system includes: The data acquisition module is used to acquire the device connection status of each output port of the vehicle emergency power supply and the remaining power of the vehicle emergency power supply in real time. The protocol identification module is used to identify the charging protocol type and power requirement parameters of a device when it is connected, through the protocol handshake signal. The dynamic power management module is used to acquire preset device priority data and dynamically allocate the power of each output port in real time based on the identification results, device priority data and the remaining power of the vehicle emergency power supply. The interface adapter module is used to control the output port to switch to the matching voltage and current mode.

7. The adaptive output system for automotive emergency power supply based on dynamic power management according to claim 6, characterized in that, The protocol identification module specifically includes: The PD protocol handshake unit is used to prioritize the USB PD protocol handshake for the Type-C interface and obtain the device's voltage and current requests. The remaining protocol handshake units are used to sequentially detect the QC protocol handshake signal and the AFC protocol pulse signal if the PD protocol does not respond. The default output unit is used to output preset default security parameters if no protocol is detected.

Citation Information

Patent Citations

  • Emergency power supply system for intelligent door and intelligent door

    CN114899934A

  • Distribution management system and method for automobile emergency power supply

    CN116207835A

  • Outdoor emergency rescue multifunctional power supply equipment

    CN118826218A

  • Combinable modularized automobile emergency power supply

    CN119765589A

  • Battery pack adapter and combination of battery pack adapter and battery pack

    CN119944907A