Intelligent power supply system with storage and storage power supply switching method

By combining the power management module and SSD storage module of the intelligent power supply system, seamless integration of charging, data storage, and transmission is achieved, solving the problem of the single function of the charging device, improving charging efficiency and device compatibility, and ensuring the stability and safety of the system.

CN120914964APending Publication Date: 2025-11-07HUNAN XULIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511149671.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

Existing charging devices are limited in function and lack integration with mobile storage devices, failing to achieve seamless integration of charging with data storage and transmission. Furthermore, they are inadequate in terms of charging efficiency, safety, and compatibility, making it difficult to meet the diverse needs of users.

Method used

It adopts an intelligent power supply system with storage, including a power management module, an SSD storage module, a dual-core control unit and a single USB Type-C interface. It supports bidirectional fast charging with the USB PD 3.0 protocol, identifies device roles through DRP mode, and achieves intelligent control of charging and data transmission by combining dynamic power management and automatic switching mechanism.

Benefits of technology

It improves charging and data transfer efficiency, optimizes power management, enhances device compatibility and ease of use, ensures stable operation and safety in different environments, and extends device battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120914964A_ABST
    Figure CN120914964A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent power supply, in particular to an intelligent power supply system with storage and a storage and power supply switching method, the intelligent power supply system comprises a power supply management module, an SSD storage module, a dual-core control unit and a single USB Type-C interface, the power supply management module comprises a battery and an integrated control chip, and supports USB PD 3.0 protocol bidirectional fast charging; the SSD storage module supports an NVMe SSD of an M.2 interface; the dual-core control unit comprises a PD protocol chip and a low-power-consumption MCU. And the dual-core control unit dynamically configures charging and discharging parameters of the control chip through an I2C bus. According to the invention, the efficiency of charging and data transmission is improved, excellent technical effects are shown in the aspects of intelligent management, power consumption control, equipment compatibility and the like, and the system is suitable for various scenes.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent power supply, in particular to a smart power supply system with storage and a storage power supply switching method. BACKGROUND

[0002] With the popularity of mobile devices and smart terminals, users' functional requirements for charging devices are constantly increasing. In addition to basic charging functions, more and more users hope that charging devices can integrate multiple functions to meet various use scenarios. Currently, the charging devices on the market mainly focus on single charging function, lack of combination with mobile storage devices, and cannot realize the integration of charging, data storage and transmission and other functions. This single-function design limits the application range of charging devices and also makes it difficult to meet users' multiple requirements in data management, fast charging and portability.

[0003] The existing charging devices mostly use traditional charging interfaces and power management schemes, lack of intelligent control and multi-functional integration capability, and cannot realize the synchronous management or intelligent scheduling of charging and storage devices. This leads to the need for users to carry multiple devices during use, increasing the carrying burden and reducing the convenience of use. In addition, the traditional charging devices also have certain deficiencies in charging efficiency, safety and compatibility, making it difficult to adapt to the charging needs of different devices and the requirements of high-speed data transmission. Therefore, a new type of charging device is needed, which can combine high-speed storage modules with charging functions to realize seamless integration of charging, data storage and transmission. SUMMARY

[0004] To solve the above problems, the present application not only improves the efficiency of charging and data transmission, but also exhibits excellent technical effects in intelligent management, power consumption control, device compatibility and other aspects, and is suitable for a smart power supply system with storage and a storage power supply switching method applicable to various scenarios.

[0005] The technical solution adopted by the present application is: a smart power supply system with storage, comprising a power management module, an SSD storage module, a dual-core control unit and a single USB Type-C interface. The power management module includes a battery and an integrated control chip, and the control chip supports USB PD 3.0 protocol bidirectional fast charging. The SSD storage module supports NVMe SSD of M.2 interface. The dual-core control unit contains a PD protocol chip and a low-power MCU. The dual-core control unit is connected to the power management module and the SSD storage module through I 2The C bus dynamically configures the charge-discharge parameters of the power control chip, and realizes: when the charger is connected, negotiating 12V / 1.67A input to charge the built-in battery; when the mobile phone is connected, switching to 5V / 9V / 12V output mode to power the mobile phone; the single USB Type-C interface supports DRP mode; the DRP mode is used to identify the logic, which includes a physical layer and a protocol layer, the physical layer judges the connection equipment as a Source or Sink role through the CC pin resistance state; the protocol layer exchanges power supply capability data through the USB PD 3.1 protocol, and supports PR_Swap role switching instruction.

[0006] Further improvement of the above scheme is that when the DRP mode identifies that the SSD is in a read-write state, a power reduction algorithm is automatically triggered: the charging / discharging current is reduced to a preset safety threshold; the MCU dynamically allocates the power consumption ratio of the SSD and the charging / discharging module; when the battery power is lower than 10%, the PD protocol chip: stops the SSD read-write operation and enters the sleep mode; limits the discharge current to within 0.5A.

[0007] Further improvement of the above scheme is that the SSD storage module realizes 10Gbps data transmission through a USB 3.1 bridge chip, and supports: S.M.A.R.T health state monitoring; automatic sleep and wake-up function, the whole machine standby power consumption is less than 10mW when sleeping.

[0008] Further improvement of the above scheme is that it also includes a human-computer interaction module, the human-computer interaction module includes a display screen and physical keys; the display screen is used to display the battery power percentage and the charging and discharging power; the SSD capacity usage rate, transmission rate and health status; the current USB connection protocol version.

[0009] Further improvement of the above scheme is that the physical keys support: short press to trigger power and SSD state display; long press for 3 seconds to turn on / off the SSD function; double-click to enter the power allocation setting mode.

[0010] Further improvement of the above scheme is that it also includes a temperature protection system: a built-in temperature sensor monitors the battery and SSD temperature in real time; when the temperature exceeds 55℃, the MCU executes a stepwise power reduction strategy; when the temperature exceeds 70℃, the charging and discharging and SSD power supply are forcibly cut off.

[0011] Further improvement of the above scheme is that the power management module is provided with a first cooperative control module, the SSD storage module is provided with a second cooperative control module, the first cooperative control module and the second cooperative control module perform a cooperative control method of SSD and charging and discharging, which comprises: monitoring the read-write load of the SSD in real time; when the SSD continuously reads and writes for more than 5 seconds, the charging and discharging power is reduced to 70% of the rated value; when the SSD enters an idle state, the full-power charging and discharging is restored; the power distribution algorithm satisfies:

[0012] P total = P charge + P discharge + P SSD ≤ 20W

[0013] P SSD The dynamic adjustment range is 1W-5W.

[0014] Further improvement of the above scheme is that it further comprises a physical contact change module, the physical contact change module comprises a shell, a double-contact module and a mechanical switching mechanism, the shell is provided with a sliding interface; the double-contact module comprises a first contact group and a second contact group, the first contact group is connected to the SSD storage module, and the second contact group is connected to the PD protocol chip; the mechanical switching mechanism is arranged on the sliding interface and is used for driving the double-contact module to be physically connected or disconnected.

[0015] Further improvement of the above scheme is that the mechanical switching mechanism comprises a position detection circuit and an automatic switching logic, the position detection circuit sends a contact group connection state signal to the MCU; when the first contact group is detected to be connected, the MCU closes the SSD power supply and starts the PD charging protocol.

[0016] Further improvement of the above scheme is that the position detection circuit triggers:

[0017] The slider is located in the first gear: the first contact group is connected for charging, the second contact group is disconnected for data, and it is in a pure charging mode;

[0018] The slider is located in the second gear: the second contact group is connected for data, the first contact group is disconnected for charging, and it is in a pure data transmission mode;

[0019] The slider is located in the third gear: the first contact group and the second contact group are connected in parallel, and it is in a charging and discharging and data synchronization mode.

[0020] Further improvement of the above scheme is that the role switching of the physical contact change module connected with the DRP mode is completed through the following steps:

[0021] Step S1, physical switch priority principle: when the mechanical switch mechanism is detected to be in non-third gear, the following override protocol is executed: if the slider is in first gear, pure charging mode, forcibly locked as Sink role, ignore the Source switch request of DRP protocol; if the slider is in second gear, pure data transmission mode, forcibly locked as Source role, shield external charger connection signal;

[0022] Step S2, dual-mode conflict arbitration mechanism: when the physical switch and the DRP protocol trigger role change at the same time, the priority is handled: manual switch action is completed before the protocol response→the target role of physical switch is adopted→the PD connection of the protocol is established→the physical switch is delayed to execute until the data transmission is completed→the current protocol handshake is interrupted, and the physical switch instruction is executed;

[0023] Step S3, dynamic voltage compensation: real-time monitoring of voltage fluctuation during role switching, if the detected output voltage mutation is > ± 10%, execute: start the Soft Reset instruction in the PD protocol to reset the communication link; adjust the FB pin feedback resistance value of the power supply control chip through the MCU, and stabilize the output voltage within 5ms;

[0024] Step S4, fault rollback process: when the role switching fails for 3 times in a row, trigger the safety rollback strategy: switch to the default BC1.2 protocol mode, fixed output 5V / 1A; disconnect the SSD data path and enter the read-only mode; display error code on the display screen;

[0025] Step S5, low-power switch optimization: when the battery power is < 20%, use the simplified DRP switching process: extend the CC pin detection period to 200ms; skip the Unstructured VDM message interaction in the PD protocol; disable the PR_Swap role switching instruction, and only support the basic power supply mode.

[0026] A storage power supply switching method based on the intelligent power supply system with storage, comprising:

[0027] Periodically switch the CC pin Rp / Rd state, period 50-100ms;

[0028] If the Rd resistor is detected, it is determined that the connected device is a Sink role, and the intelligent power supply system with storage is switched to Source mode;

[0029] If the Rp resistor is detected, it is determined that the connected device is a Source role, and the intelligent power supply system with storage is switched to Sink mode;

[0030] After role switching, further execute: send the power supply capability list through the USB PD protocol; receive the voltage / current combination selected by the external device and establish a data connection.

[0031] The application has the advantages that:

[0032] Compared with existing charging devices, the power management module of the application integrates a power control chip, fully supports the USBPD 3.0 protocol bidirectional fast charging. When a charger is detected, it can flexibly coordinate the 12V / 1.67A input to provide fast charging for the built-in battery. When connected with consumer devices such as mobile phones, the device can intelligently switch to 5V, 9V or 12V output mode to power the mobile phone. Dynamic adjustment not only realizes efficient energy transfer, but also optimizes power consumption management during charging, avoids energy waste, and improves the overall use efficiency of the device. The SSD storage module supports M.2 interface NVMeSSD, which has high-speed storage capability and can achieve 10Gbps data transfer rate. It improves data access speed and meets the extreme demand of users for high-speed backup and large-capacity storage, while reducing waiting time and significantly improving user experience. In addition, the device monitors the health status through S.M.A.R.T. and other functions to ensure the reliability of the SSD, so that users can obtain the running status and health information of the SSD in time. In terms of control logic, the dual-core control unit integrates the PD protocol chip and the low-power MCU, which realizes the dynamic configuration of the power control chip through the I 2 C bus in an intelligent way to adapt to different charging scenarios. The DRP mode supports dual-role (Source / Sink) identification, dynamically judges the connection device role through the CC pin resistance state, promotes the compatibility and interoperability between devices, and improves the convenience of users when connecting different devices. The charging device adopts the technology logic of physical layer and protocol layer dual identification to ensure stable operation and safety in different connection modes. The innovative design enables the device to maintain good working condition under varying environmental conditions, while the reasonable power consumption management mechanism reduces the device power consumption to the minimum, realizing the goals of high efficiency and environmental protection. In addition, the physical human-computer interaction module, such as power display and key function, enhances the friendliness and intuitiveness of use.

[0033] The application not only improves the efficiency of charging and data transmission, but also shows excellent technical effects in intelligent management, power consumption control, device compatibility and other aspects, which is suitable for various scenes and provides a solution with wide application prospect for the market.

[0034] The physical contact change module switches the role connected with the DRP mode. Through the physical switching priority principle, the device ensures the stability of the role when the state of the mechanical switching mechanism changes. When the switching mechanism is detected to be in the first gear (pure charging) or the second gear (pure data transmission), the system forcibly locks the corresponding role Sink or Source, avoiding voltage and current abnormalities caused by inconsistent software and hardware states when the mechanical state is not completely switched, thereby improving the stability and safety of the system. The dual-mode conflict arbitration mechanism enables the device to intelligently respond to the simultaneous triggering of physical switching and role change of the DRP protocol in network connection. Through priority processing, the user's manual operation is prioritized, reducing conflicts and pauses in role switching, ensuring data transmission continuity and charging timeliness. The dynamic voltage compensation function monitors the output voltage in real time during role switching. If the detected voltage mutation exceeds ±10%, the system will actively start a Soft Reset to reset the PD protocol communication link, and through the adjustment of the feedback resistor, the output voltage is quickly stabilized. This significantly enhances the device's adaptability to voltage fluctuations, effectively preventing hardware damage and communication interruption caused by unstable voltage. The fault rollback process ensures the safe operation of the system when continuous role switching fails. The system automatically switches to the basic BC1.2 protocol mode, outputs a stable 5V / 1A voltage, and disconnects the SSD data path, avoiding hardware damage or data loss caused by continuous abnormal states. At the same time, the error code is displayed on the display screen, which helps users to quickly judge and troubleshoot faults. The low-power switching optimization mechanism effectively reduces system energy consumption, extends device battery life, and ensures safe and stable operation of the device in low-power states when the battery is low. This greatly improves the adaptability and reliability of the device in extreme environments.

[0035] A storage power supply switching method based on the intelligent power supply system with the storage is provided, and the CC pin Rp / Rd state is detected periodically to realize continuous monitoring of the state of the connected device. Through this active detection mechanism, the device can identify the role of the connected device Sink or Source in real time, avoiding the delay and unreliability caused by traditional static detection, thereby ensuring timely updating and optimization of the role state. The resistance detection determines the role of the connected device Rd as Sink and Rp as Source, realizing a simple and direct hardware identification method. The resistance detection method has the advantages of low cost, simple implementation and high reliability, and is helpful to integrate into small-sized and low-power charging hardware, and is suitable for use in various complex environments. The power supply capability list is sent through the USB PD protocol immediately after the role conversion, providing complete power supply configuration parameters, so that the external device can accurately know the voltage and current range supported by the charging device, greatly enhancing the communication efficiency and compatibility between devices. The connected device helps to quickly negotiate the best power supply scheme, reduces the waiting time, and improves the charging efficiency and user experience. During the role switching process, the device receives the voltage and current parameters selected by the external device, and establishes a stable data connection according to the demand. The dynamic negotiation process ensures seamless switching of charging and data transmission, adapts to the power supply requirements of different devices, and avoids potential hardware damage or communication interruption caused by voltage mismatch. The application enables the charging device with SSD high-speed storage to realize automatic, intelligent and stable role switching in a multi-device environment. The outstanding advantages include: simplified hardware detection means, efficient protocol interaction, quick adaptation to different device requirements, and improved system compatibility, reliability and intelligent level. BRIEF DESCRIPTION OF DRAWINGS

[0036] Figure 1 A structural schematic diagram of the charging device of the application;

[0037] Figure 2 A schematic diagram of the explosion of the charging device of the application;

[0038] Figure 3 A circuit schematic diagram of the charging device of the application;

[0039] Figure 4 A connection schematic diagram of the charging device of the application;

[0040] Figure 5 A connection schematic diagram of the physical contact change module of the charging device of the application;

[0041] Figure 6 A connection schematic diagram of the physical contact change module of the charging device of the application;

[0042] Figure 7 A role switching process schematic diagram of the physical contact change module and the DRP mode in the application;

[0043] Figure 8 Flowchart of the storage power supply switching method in the present application.

[0044] Legend: charging device 10, power management module 1, battery 11, SSD storage module 2, dual-core control unit 3, PD protocol chip 31, low-power MCU 32, single USB Type-C interface 4, human-computer interaction module 5, display screen 51, physical button 52, temperature protection system 6, temperature sensor 61, physical contact change module 7, shell 71, sliding interface 711, dual-contact module 72, first contact group 721, second contact group 722, mechanical switching mechanism 73, slider 731, position detection circuit 732, automatic switching logic 733. DETAILED DESCRIPTION

[0045] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the accompanying drawings. The preferred embodiments of the present application are shown in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0046] It should be noted that when an element is referred to as being "fixed" to another element, it can be directly on the other element or there can be an intervening element. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or there can be an intervening element.

[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application.

[0048] As shown in Figures 1-6 An embodiment of the present application relates to an intelligent power supply system with storage, which includes a power management module 1, an SSD storage module 2, a dual-core control unit 3, and a single USB Type-C interface 4. The power management module 1 includes a battery 11 and an integrated SC8933 chip, supporting USB PD 3.0 protocol bidirectional fast charging. The SSD storage module 2 supports M.2 interface NVMe SSD. The dual-core control unit 3 includes a PD protocol chip 31 and a low-power MCU 32. The dual-core control unit 3 communicates with the power management module 1 through I2C bus, and communicates with the SSD storage module 2 through SATA bus. The single USB Type-C interface 4 is connected to the dual-core control unit 3 through USB Type-C bus, and is connected to the power management module 1 through the power management module 1. The single USB Type-C interface 4 is connected to the power management module 1 through the power management module 1. 2The C bus dynamically configures the charge and discharge parameters of the SC8933 chip, realizing: when a charger is detected to be connected, negotiating 12V / 1.67A input to charge the built-in battery 11; when a mobile phone is detected to be connected, switching to a 5V / 9V / 12V output mode to power the mobile phone; the single USB Type-C interface 4 supports the DRP mode; the DRP mode is used for identification logic including a physical layer and a protocol layer, the physical layer judges the connection equipment to be a Source or Sink role through the CC pin resistance state; the protocol layer exchanges power supply capability data through the USB PD 3.1 protocol, and supports the PR_Swap role switching instruction. The power management module 1 of the embodiment integrates the SC8933 power control chip, and comprehensively supports the USB PD 3.0 protocol bidirectional fast charging. When a charger is detected to be connected, the 12V / 1.67A input can be flexibly coordinated to provide fast charging for the built-in battery 11. When connected with a consumer device such as a mobile phone, the device can intelligently switch to a 5V, 9V or 12V output mode to power the mobile phone. Dynamic adjustment not only realizes efficient energy transfer, but also optimizes power consumption management during the charging process, avoids energy waste, and improves the overall use efficiency of the device. The SSD storage module 2 supports the M.2 interface NVMe SSD, which has high-speed storage capability and can realize a data transmission rate of 10Gbps. The data access speed is improved, the extreme demand of users for high-speed backup and large-capacity storage is met, the waiting time is reduced, and the user experience is significantly improved. In addition, the device monitors the health status through the S.M.A.R.T function, guarantees the reliability of the SSD, and enables the user to obtain the running state and health information of the SSD in a timely manner. In terms of control logic, the dual-core control unit 3 integrates the PD protocol chip 31 and the low-power MCU 32, which realizes the dynamic configuration of the SC8933 power control chip through the I 2 The C bus realizes dynamic configuration of the SC8933 power control chip, and intelligently adapts to different charging scenarios. The DRP mode supports dual-role (Source / Sink) identification, dynamically judges the connection equipment role through the CC pin resistance state, promotes the compatibility and interoperability between devices, and improves the convenience of users when connecting different devices. The charging device 10 adopts a technical logic of double identification of the physical layer and the protocol layer, ensuring stable operation and safety in different connection modes. The innovative design enables the device to maintain good working condition under varying environmental conditions, and through reasonable power consumption management mechanism, the device power consumption is reduced to the minimum, realizing the goals of high efficiency and environmental protection. In addition, the physical human-computer interaction module (such as the power display and the key function) enhances the friendliness and intuitiveness of use. The embodiment not only improves the efficiency of charging and data transmission, but also shows excellent technical effects in intelligent management, power consumption control, device compatibility, etc., and is suitable for various scenes, providing a solution with wide application prospect for the market.

[0049] When the DRP mode identifies that the SSD is in the read-write state, the power reduction algorithm is automatically triggered: the charging / discharging current is reduced to a preset safety threshold; the power consumption ratio of the SSD and the charging / discharging module is dynamically allocated by the MCU; when the battery 11 is less than 10%, the PD protocol chip 31: stops the SSD read-write operation and enters the sleep mode; limits the discharging current to within 0.5A. In this embodiment, the read-write state of the SSD can be monitored in real time, ensuring that potential power consumption peaks can be identified in time during high-speed storage operation. By automatically reducing the charging and discharging current to a preset safety threshold, it effectively prevents overloading and overheating caused by high-speed reading and writing, helps to prolong the hardware life of the SSD and the entire charging system, and reduces the risk of failure. Combined with the dynamic power consumption ratio allocation mechanism of the MCU, the device can intelligently allocate the power consumption resources of the SSD and the charging / discharging module, optimizing energy use efficiency. Intelligent scheduling not only guarantees the performance requirements of SSD high-speed storage, but also avoids power instability caused by excessive power consumption, which helps to smooth operation and energy saving of the overall system. In addition to the normal working state, when the battery 11 is less than 10%, the SSD read-write operation is automatically suspended and enters the sleep mode, which greatly prolongs the battery 11 endurance time. At the same time, limiting the discharging current to within 0.5A effectively prevents voltage fluctuations and system instability caused by too fast discharging at low battery level, ensuring stable power supply and safe operation of the device in an emergency low battery state.

[0050] The SSD storage module 2 realizes 10 Gbps data transmission through a USB 3.1 bridge chip, and supports: S.M.A.R.T health status monitoring; automatic sleep and wake-up function, standby power consumption of the whole machine < 10 mW. In this embodiment, the integrated SD storage module realizes a data transmission rate of up to 10 Gbps through the support of the USB 3.1 bridge chip, which improves the data communication capability of the device. High-speed data transmission ensures that users can quickly and stably read and write large-capacity files, meets the high-bandwidth needs of multimedia, data backup, etc., and enhances the multifunctional applicability of the device. In addition, the support of the USB 3.1 interface further improves the compatibility and future expansion potential of the device, providing a good foundation for high-speed connection of various external devices. The storage module supports S.M.A.R.T (Self-Monitoring, Analysis and Reporting Technology) health status monitoring, which helps to track and evaluate the running health status of solid-state storage in real time. By actively monitoring parameters such as temperature, write times, and fault warnings of the storage device, the system can identify potential hardware risks in advance, avoid data loss or sudden device failure, and thus improve the reliability and data security of the overall system. In addition, the SD storage module supports automatic sleep and wake-up function. When there is no data access or user operation, the device can automatically enter a low-power sleep state, and the standby power consumption of the whole device is less than 10 mW. This greatly reduces energy consumption, effectively prolongs the battery 11 endurance time, reduces energy consumption, and meets the current green energy development trend. The sleep and wake-up mechanism ensures that the device can quickly recover to working state when data access is needed, realizing efficient energy management and operational convenience.

[0051] Also included is a human-computer interaction module 5, which includes a display screen 51 and physical buttons 52; the display screen 51 is used to display the battery 11 percentage of power and charging and discharging power; SSD capacity usage, transfer rate and health status; the current USB connection protocol version; specifically, the physical buttons 52 support: short press to trigger power and SSD state display; long press for 3 seconds to turn on / off SSD function; double click to enter power distribution setting mode. In the foregoing smart power supply system with storage, the integrated human-computer interaction module 5 significantly improves the user's operation convenience and the system's intelligent level. The interaction module includes a display screen 51 and multiple physical buttons 52, providing users with intuitive, real-time device status information and convenient operation means, achieving efficient and friendly user experience. Specifically, the display screen 51 can display the percentage of battery 11 power, charging and discharging power, and SSD capacity usage, transfer rate and health status, etc. Key parameters in real time, helping users to fully understand the running status and storage health status of the device, so as to reasonably arrange the charging strategy or storage management. Displaying the USB connection protocol version allows users to intuitively grasp the interface support capability of the connected device, improving operation efficiency. The design of physical buttons 52 supports multiple operation modes: short press can quickly trigger the display of power and SSD state, making it convenient for users to obtain basic running information of the device in time; long press for 3 seconds turns on or off the SSD function, providing users with the convenience of one-key control and simplifying complex operation procedures; double click enters the power distribution setting mode, allowing users to adjust the power ratio of charging and discharging according to their needs, realizing personalized energy management. The human-computer interaction scheme greatly improves the operation convenience, safety and intelligent level of the device through the intuitive display interface and multi-functional physical buttons 52. Users do not need to rely on external devices to quickly understand the device status, make adjustments or troubleshoot, enhancing the user experience of the device. At the same time, the module also provides a foundation for future expansion of humanized control interface, promoting the intelligentization of the device and the autonomy of user operation, meeting the diversified and personalized application needs.

[0052] The temperature protection system 6 is also included: the built-in temperature sensor 61 monitors the temperature of the battery 11 and the SSD in real time; when the temperature exceeds 55℃, the MCU executes a step-down power strategy; when the temperature exceeds 70℃, the system forcibly cuts off the charging and discharging and the power supply of the SSD. In this embodiment, the integrated temperature protection system 6 significantly enhances the safety, reliability and durability of the device. Through the built-in temperature sensor 61, the working temperature of the battery 11 and the SSD is monitored in real time, ensuring that the device operates within a safe range and preventing hardware damage or safety accidents caused by overheating. When the temperature exceeds 55℃, the MCU will execute a step-down power strategy, gradually reducing the charging and discharging current and the working load of the SSD. This effectively slows down the heating speed of the device, avoids rapid temperature rise, prolongs the service life of the hardware, and ensures that the device can still operate stably in high-temperature environments. The implementation of the step-down power strategy enables the system to dynamically adjust energy consumption according to temperature changes, balancing performance and safety and improving the intelligent management level of the overall system. When the temperature exceeds 70℃, the system will forcibly cut off the charging and discharging and the power supply of the SSD, immediately stopping all high-load operations to prevent the device from malfunctioning or causing safety hazards due to overheating. This hardware protection measure ensures that the device can safely power off in extreme temperature conditions, avoiding serious accidents such as battery 11 explosion and SSD damage, and ensuring the safety of users and the long-term stable operation of the device.

[0053] The power management module 1 is provided with a first cooperative control module, the SSD storage module 2 is provided with a second cooperative control module, the first cooperative control module and the second cooperative control module execute a cooperative control method of SSD and charging and discharging, including: monitoring the read-write load of the SSD in real time; when the SSD continuously reads and writes for more than 5 seconds, the charging and discharging power is reduced to 70% of the rated value; when the SSD enters an idle state, the full-power charging and discharging is restored; the power distribution algorithm satisfies: P total charge + P discharge + P SSD ≤ 20W; wherein P SSD ​The dynamic adjustment range is 1W-5W. In this embodiment, the first collaborative control module built in the power management module 1 and the second collaborative control module in the SSD storage module 2 jointly realize the efficient and intelligent collaborative control mechanism of the SSD and the charging and discharging. By monitoring the read and write load of the SSD in real time, the resource configuration is effectively optimized, and the balance between high performance operation and energy consumption management of the equipment is ensured. Specifically, when the continuous read and write time of the SSD is monitored to be more than 5 seconds, the control system will automatically reduce the charging and discharging power to 70% of the rated value, thereby reducing the thermal load and energy consumption of the SSD, slowing down the temperature rise of the hardware, and prolonging the service life of the equipment. In the case of high load, the overheating of the hardware is effectively avoided, and the stability of the equipment is ensured. When the SSD enters the idle state, the system will automatically restore the charging and discharging to the full power level, ensuring that sufficient power support is provided when high performance output is needed, meeting the user's demand for fast charging and data access. The power distribution algorithm adopted meets the demand of dynamic adjustment, and the adjustment range is 1W-5W, so that the charging and discharging power can be flexibly adjusted according to the real-time load change of the SSD. Not only the energy efficiency ratio of the equipment is improved, the energy waste is reduced, but also the intelligent management ability of the equipment is strengthened. While realizing efficient and stable charging and discharging, the temperature rise is effectively controlled, and the overload is prevented, greatly improving the safety and reliability of the equipment.

[0054] Referring to Figures 4-5Also shown, the physical contact change module 7 includes a housing 71, a dual contact module 72, and a mechanical switching mechanism 73. The housing 71 is provided with a sliding interface 711. The dual contact module 72 includes a first contact group 721 and a second contact group 722. The first contact group 721 is connected to the SSD storage module 2, and the second contact group 722 is connected to the PD protocol chip 31. The mechanical switching mechanism 73 is disposed on the sliding interface 711 and is used to drive the dual contact module 72 to physically connect or disconnect. Specifically, the mechanical switching mechanism 73 includes a slider 731, a position detection circuit 732, and an automatic switching logic 733. The position detection circuit 732 sends a contact group connection state signal to the MCU. When the first contact group 721 is detected to be connected, the MCU turns off the SSD power supply and starts the PD charging protocol. In this embodiment, the integrated physical contact change module 7 improves the intelligent control and operation safety of the device. Through the cooperative work of the mechanical switching mechanism 73, the dual contact module 72, and the sliding interface 711 of the housing 71, the automatic switching between SSD power supply and PD protocol charging is realized, effectively meeting the needs in different working states, and enhancing the flexibility and reliability of the device. Specifically, the connection state of the contact group is fed back to the MCU in real time. The automatic switching logic 733 automatically judges the connection state of the contact group according to the detection signal. When the first contact group 721 is detected to be connected to the SSD storage module 2, the system will automatically turn off the SSD power supply to avoid overheating or energy waste caused by continuous SSD power supply during charging, and at the same time start the PD protocol for fast charging. The automatic switching mechanism ensures the intelligent adjustment of the device in different working scenarios, reduces the complexity of human operation, and improves the convenience and safety of use. The sliding interface 711 design makes the mechanical switching operation simple, and users can realize the switching of contacts through physical sliding, enhancing the operation intuitiveness and reliability of the device. The integration of the module not only optimizes the power management strategy, avoids the interference of SSD during charging, but also ensures the efficient execution of the PD protocol, improves the charging efficiency and the overall performance of the device.

[0055] The position detection circuit 732 triggers: when the slider 731 is in the first gear, the first charging contact group 721 is connected, the second data contact group 722 is disconnected, and the device is in pure charging mode; when the slider 731 is in the second gear, the second data contact group 722 is connected, the first charging contact group 721 is disconnected, and the device is in pure data transmission mode; when the slider 731 is in the third gear, the first contact group 721 and the second contact group 722 are connected in parallel, and the device is in charging and data synchronization mode. In this embodiment, the design of the position detection circuit 732 provides multiple intelligent operation modes for the device, effectively improving the flexibility, functionality and safety of the device. Through the switching of the mechanical slider 731 in different gears, intelligent switching of the three working states of charging, data transmission and charging and discharging synchronization is realized, providing a solid foundation for the device to face multiple scene applications. Specifically, when the slider 731 is in the first gear, the system realizes pure charging mode, at this time the first charging contact group 721 is connected to ensure stable charging of the battery 11, and the second data contact group 722 is disconnected to avoid interference of the charging state on data transmission. Ensure the safety and efficiency of the charging process, reduce the risk of damage caused by misoperation. The second gear corresponds to the pure data transmission state, at this time the second data contact group 722 is connected to ensure smooth and unobstructed high-speed data synchronization, which can enhance the performance of the device in efficient data access and transmission, and meet the user's demand for high-speed access to storage devices. The third gear combines the functions of charging and discharging and data synchronization, the first contact group 721 and the second contact group 722 are connected in parallel, supporting data transmission while charging and discharging, providing users with greater operating possibilities, such as data backup or synchronization while charging, greatly improving the multi-task processing capability of the system. This multi-gear switching mechanism, through the mechanical control of physical signals, is simple and intuitive, and users only need to adjust the slider 731 to quickly switch modes, which not only ensures the convenience of operation, but also reduces the probability of misoperation. Overall, the device fully utilizes the advantages of the combination of mechanical and circuit, realizes flexible response in multiple scenes and multiple demands, and greatly enhances the intelligent level of the system and the overall experience of the user.

[0056] Referring to Figure 7As shown, the physical contact change module 7 and the role switching of the DRP mode connection are completed through the following steps: step S1, physical switching priority principle: when it is detected that the mechanical switching mechanism 73 is not in the third gear, the following override protocol is executed: if the slider 731 is in the first gear, the pure charging mode, the Sink role is forcibly locked, and the Source switching request of the DRP protocol is ignored; if the slider 731 is in the second gear, the pure data transmission mode, the Source role is forcibly locked, and the external charger connection signal is shielded; step S2, dual-mode conflict arbitration mechanism: when the physical switching and the DRP protocol trigger role change at the same time, the priority is handled as follows: the manual switching action is completed before the protocol response is completed → the physical switching target role is adopted → the protocol has established a PD connection → the physical switching is delayed until the data transmission is completed → the current protocol handshake is interrupted, and the physical switching instruction is executed; step S3, dynamic voltage compensation: the voltage fluctuation is monitored in real time during the role switching, and if it is detected that the output voltage mutation is greater than ±10%, the following is executed: the Soft Reset instruction in the PD protocol is started to reset the communication link; the FB pin feedback resistance value of the SC8933 is adjusted by the MCU to stabilize the output voltage within 5ms; step S4, fault fallback process: when the role switching fails for three times in a row, the safety fallback strategy is triggered: switch to the default BC1.2 protocol mode, fixed output 5V / 1A; disconnect the SSD data path and enter the read-only mode; display the error code on the display screen 51; step S5, low-power switching optimization: when the battery 11 is less than 20%, the simplified DRP switching process is adopted: the CC pin detection period is extended to 200ms; the Unstructured VDM message interaction in the PD protocol is skipped; the PR_Swap role switching instruction is disabled, and only the basic power supply mode is supported.

[0057] The physical switching priority principle ensures the stability of the role when the state of the mechanical switching mechanism 73 changes. When the switching mechanism is detected to be in the first gear (pure charging) or the second gear (pure data transmission), the system forcibly locks the corresponding role Sink or Source, avoiding voltage and current abnormalities caused by inconsistent software and hardware states when the mechanical state is not cleanly switched, thereby improving the stability and safety of the system. The dual-mode conflict arbitration mechanism enables the device to intelligently respond to simultaneous physical switching and role changes in the DRP protocol in network connections. Through priority processing, the user's manual operation is prioritized, reducing conflicts and pauses in role switching, ensuring data transmission continuity and charging timeliness. The dynamic voltage compensation function monitors the output voltage in real time during role switching. If the detected voltage mutation exceeds ±10%, the system will actively start a Soft Reset, reset the PD protocol communication link, and quickly stabilize the output voltage by adjusting the feedback resistor. This significantly enhances the device's ability to adapt to voltage fluctuations, effectively preventing hardware damage and communication interruptions caused by unstable voltage. The fault rollback process ensures the safe operation of the system when continuous role switching fails. The system automatically switches to the basic BC1.2 protocol mode, outputs a stable 5V / 1A voltage, and disconnects the SSD data path, avoiding hardware damage or data loss caused by continuous abnormal states. At the same time, the error code is displayed on the display screen 51, which helps users quickly identify and troubleshoot faults. The low-power switching optimization mechanism effectively reduces system energy consumption, extends device battery life, and ensures safe and stable operation of the device in low-power states when the battery 11 is low. This greatly improves the device's adaptability and reliability in extreme environments.

[0058] Referring to Figure 8As shown, a storage power supply switching method based on the smart power supply system with storage includes: periodically switching the CC pin Rp / Rd state, period 50-100 ms; if Rd resistance is detected, it is determined that the connected device is a Sink role, and the smart power supply system with storage is switched to Source mode; if Rp resistance is detected, it is determined that the connected device is a Source role, and the smart power supply system with storage is switched to Sink mode; after role switching, further execute: send power supply capability list through USB PD protocol; receive the voltage / current combination selected by the external device and establish data connection. The embodiment periodically detects the CC pin Rp / Rd state to realize continuous monitoring of the state of the connected device. Through this active detection mechanism, the device can identify the role Sink or Source of the connected device in real time, avoiding the delay and unreliability caused by traditional static detection, thereby ensuring timely updating and optimization of the role state. The resistance detection determines the role Rd of the connected device as Sink and Rp as Source, realizing a simple and direct hardware identification method. The resistance detection method has the advantages of low cost, simple implementation and high reliability, which is helpful to integrate into small-sized and low-power charging hardware, and is suitable for various complex environment use requirements. After role conversion, the power supply capability list is sent through the USB PD protocol, providing complete power supply configuration parameters, so that the external device can accurately know the voltage and current range supported by the charging device 10, greatly enhancing the communication efficiency and compatibility between devices. Help the connected device quickly negotiate the best power supply scheme, reduce waiting time, improve charging efficiency and user experience. During the role switching process, the device will receive the voltage and current parameters selected by the external device, and establish a stable data connection according to the demand. The dynamic negotiation process ensures seamless switching of charging and data transmission, adapts to the power supply requirements of different devices, and avoids potential hardware damage or communication interruption caused by voltage mismatch. The application enables the charging device 10 with SSD high-speed storage to realize automatic, intelligent and stable role switching in a multi-device environment. Its outstanding advantages include: simplified hardware detection means, efficient protocol interaction, quick adaptation to different device requirements, and improved system compatibility, reliability and intelligence level.

[0059] The above embodiments only express several embodiments of the present application, and the description is more specific and detailed, but it cannot be understood as limiting the scope of the patent of the present application. It should be noted that for ordinary skilled persons in the art, without departing from the concept of the present application, several modifications and improvements can be made, which belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A smart power supply system with storage, characterized by: Comprising A power management module, comprising a battery and an integrated control chip, supporting USB PD 3.0 protocol bidirectional fast charging; An SSD storage module, supporting M.2 interface NVMe SSD; A dual-core control unit comprising a PD protocol chip and a low-power MCU; the dual-core control unit is connected with the power management chip through I 2 The C bus dynamically configures the charge and discharge parameters of the control chip, realizing: when detecting the connection of a charger, negotiating 12V / 1.67A input to charge the built-in battery; when detecting the connection of a mobile phone, switching to a 5V / 9V / 12V output mode to power the mobile phone; And A single USB Type-C interface, supporting DRP mode; the DRP mode is used for identifying logic comprising: Physical layer: the physical layer judges the connection equipment as Source or Sink role through the resistance state of CC pin; Protocol layer: the protocol layer exchanges power supply capability data through USB PD 3.1 protocol, and supports PR_Swap role switching instruction.

2. The smart power system with storage according to claim 1, characterized in that: When the DRP mode identifies that the SSD is in the read-write state, the power reduction algorithm is automatically triggered: the charging / discharging current is reduced to a preset safety threshold; the power consumption ratio of SSD and charging / discharging module is dynamically allocated by MCU; when the battery power is less than 10%, the PD protocol chip: stop SSD read-write operation and enter sleep mode; limit the discharge current to within 0.5A.

3. The smart power system with storage of claim 1, wherein: The SSD storage module realizes 10Gbps data transmission through the USB 3.1 bridge chip, and supports: S.M.A.R.T health state monitoring; automatic sleep wake-up function, the whole machine standby power consumption is less than 10mW when sleeping.

4. The smart power system with storage of claim 1, wherein: It also includes a human-computer interaction module, which includes a display screen and physical keys; the display screen is used to display the battery power percentage and the charging and discharging power; SSD capacity utilization, transmission rate and health status; the current USB connection protocol version; The physical keys support: short press triggers power and SSD state display; long press 3 seconds to start / close SSD function; double-click to enter power distribution setting mode.

5. The smart power system with storage of claim 1, wherein: It also includes a temperature protection system: a built-in temperature sensor monitors the battery and SSD temperature in real time; when the temperature exceeds 55℃, the MCU executes a stepwise power reduction strategy; when the temperature exceeds 70℃, the charging and discharging and SSD power supply are forcibly cut off.

6. The smart power system with storage of claim 1, wherein: The power management module is provided with a first cooperative control module, the SSD storage module is provided with a second cooperative control module, and the first cooperative control module and the second cooperative control module execute the cooperative control method of SSD and charging and discharging, comprising: real-time monitoring of SSD read-write load; when the SSD continuous read-write is more than 5 seconds, the charging and discharging power is reduced to 70% of the rated value; when the SSD enters the idle state, the full power charging and discharging is restored; the power distribution algorithm satisfies: P total = P charge + P discharge + P SSD ≤ 20 W wherein P SSD The dynamic adjustment range is 1W-5W.

7. The smart power system with storage of claim 1, wherein: It also includes a physical contact change module, comprising A shell provided with a sliding interface; A double-contact module, comprising a first contact group and a second contact group, the first contact group is connected with the SSD storage module, and the second contact group is connected with the PD protocol chip; Mechanical switching mechanism, the mechanical switching mechanism is arranged on the sliding interface and is used to drive the physical connection or disconnection of the double-contact module; The mechanical switching mechanism includes a slider, a position detection circuit, and automatic switching logic; the position detection circuit sends a contact group connection state signal to the MCU; when the first contact group is detected to be connected, the MCU closes the SSD power supply and starts the PD charging protocol.

8. The smart power system with storage of claim 7, wherein: The position detection circuit triggers: The slider is in the first gear: the first charging contact group is connected, the second data contact group is disconnected, and it is in pure charging mode; The slider is in the second gear: the second data contact group is connected, the first charging contact group is disconnected, and it is in pure data transmission mode; The slider is in the third gear: the first contact group and the second contact group are connected in parallel, and it is in charging and discharging and data synchronization mode.

9. The smart power system with storage of claim 8, wherein: The role switching connected by the physical contact change module and the DRP mode is completed through the following steps: Step S1, physical switching priority principle: when it is detected that the mechanical switching mechanism is not in the third gear, the following override protocol is executed: if the slider is in the first gear, the pure charging mode, the Sink role is forcibly locked, and the Source switching request of the DRP protocol is ignored; if the slider is in the second gear, the pure data transmission mode, the Source role is forcibly locked, and the external charger connection signal is shielded; Step S2, dual-mode conflict arbitration mechanism: when the physical switching and the DRP protocol trigger role change at the same time, the priority is handled: the physical switching instruction is executed; Step S3, dynamic voltage compensation: real-time monitoring of voltage fluctuation during role switching, if the output voltage mutation is detected > ±10%, execute: start the Soft Reset instruction in the PD protocol to reset the communication link; adjust the FB pin feedback resistance value of the power supply control chip through the MCU, and stabilize the output voltage within 5ms; Step S4, fault fallback process: when role switching fails for 3 times in a row, trigger the safety fallback strategy: switch to the default BC1.2 protocol mode, fixed output 5V / 1A; Disconnect the SSD data path and enter read-only mode; Display error code on the display screen; Step S5, low-power switching optimization: when the battery power is <20%, use the simplified DRP switching process: extend the CC pin detection period to 200ms; skip the Unstructured VDM message interaction in the PD protocol; disable the PR_Swap role switching instruction, and only support the basic power supply mode.

10. A storage power switching method for the intelligent power supply system with storage according to any one of claims 1 to 6, characterized in that, Including: Periodically switch the CC pin Rp / Rd state, period 50-100ms; If the Rd resistor is detected, it is determined that the connected device is a Sink role, and the stored intelligent power supply system is switched to a Source mode; If the Rp resistor is detected, it is determined that the connected device is a Source role, and the stored intelligent power supply system is switched to a Sink mode; After role switching, further execute: send the power supply capability list through the USB PD protocol; receive the voltage / current combination selected by the external device and establish a data connection.