Equipment starting method, device and system and computer readable storage medium
By receiving pre-start signals, the test device is controlled to start at different powers and dynamically adjust the device startup mode, which solves the problem of repeated restarts caused by users using the adapter inadequate power, and improves device stability and user experience.
Patent Information
- Application Number
- CN202510524996.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-08-08
AI Technical Summary
Users use of adapters with insufficient power causes the device to restart repeatedly, affecting the stability and user experience of the device. The existing technology has failed to effectively solve the problem of matching the adapter output power and the actual power consumption requirements of the device.
By receiving the pre-start signal, the test device is controlled to start at different powers and detect the operating state, determine the startup power of the target device based on the operating state, and dynamically adjust the device startup mode using a controllable electronic load and reset module, and prompt the user to change the adapter with Wi-Fi or indicator light.
It realizes stable start of the device under unstable power supply conditions, improves device stability and user experience, avoids repeated restarts, and provides intelligent power management and user feedback mechanism.
Smart Images

Figure CN120454285A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic devices, and in particular to a device startup method, apparatus, system and computer-readable storage medium. Background Art
[0002] In today's electronic devices, especially high-performance routers and other consumer electronics powered by Type-C ports, the problem of users misusing low-power adapters is becoming increasingly prominent. This misuse often causes devices to repeatedly restart due to insufficient power, seriously affecting device stability and the user experience.
[0003] While current technologies can detect power supply voltage stability, such as by setting AC input voltage thresholds to prevent reboots caused by voltage fluctuations, they are limited in identifying the adapter's actual output power. For example, some technologies determine power availability solely by voltage thresholds, ignoring the need to match the adapter's output power with the device's actual power consumption requirements. Furthermore, when the adapter loses power due to insufficient power, the device often lacks an effective response strategy and cannot continue operating in a degraded power mode, instead directly rebooting, further exacerbating the poor user experience.
[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0005] Embodiments of the present invention provide a device startup method, apparatus, system, and computer-readable storage medium to at least solve the technical problem of a device repeatedly restarting due to a user using an adapter with insufficient power.
[0006] According to one aspect of an embodiment of the present invention, a device startup method is provided, comprising: receiving a pre-start signal from a target device; in response to the pre-start signal, controlling a test device to start at a first preset power, and detecting the operating status of the test device at different powers, wherein the voltage for supplying power to the test device and the target device is a voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in a working state; based on the operating status, determining the startup power of the target device; and starting the target device based on the startup power.
[0007] Optionally, before controlling the test device to start at the first preset power, it also includes: determining whether the voltage converted by the same adapter exceeds a preset voltage threshold; if the voltage converted by the same adapter does not exceed the preset voltage threshold, turning on the operational amplifier power supply to power the test device, wherein the operational amplifier power supply is used to control the voltage converted by the same adapter to be transmitted to the test device.
[0008] Optionally, when the voltage converted by the same adapter exceeds a preset voltage threshold, the target device is directly started.
[0009] Optionally, the test device is controlled to start at a first preset power, and the operating status of the test device at different powers is detected, including: controlling the test device to start at the first preset power and running for a preset time; adjusting the power of the test device to a second preset power, and controlling the test device to run for a preset time; adjusting the power of the test device to a third preset power, and controlling the test device to run for a preset time; in the process of controlling the operation of the test device, the operating status of the test device is continuously detected, wherein the first preset power is less than the second preset power, and the second preset power is less than the third preset power.
[0010] Optionally, based on the operating status, the starting power of the target device is determined, including: when the operating status is that the test device is abnormally shut down, obtaining the duration for the reset chip to send a reset signal, wherein the reset chip is used to send a reset signal based on the change in voltage after conversion by the same adapter; based on the duration, the starting power is determined.
[0011] Optionally, the starting power is determined based on the duration, including at least one of the following: when the duration is less than or equal to a first preset duration threshold, the starting power is determined to be the first preset power; when the duration is greater than the first preset duration threshold and less than the second preset duration threshold, the starting power is determined to be the second preset power; when the duration is greater than or equal to the second preset duration threshold, the starting power is determined to be the third preset power, wherein the first preset power is less than the second preset power, and the second preset power is less than the third preset power.
[0012] According to another aspect of the present invention, there is provided a device startup system, comprising: a microcontroller for executing any one of the above-mentioned device startup methods; a reset chip for sending a reset signal to the microcontroller based on changes in voltage converted by a same adapter, wherein the voltage used to power a test device and a target device is the voltage converted by a same adapter; a controllable power supply for controlling the power level of the test device; and a test device, wherein different power levels of the test device are used to simulate the power level of the target device in a working state.
[0013] Optionally, the above system further includes: a voltage judging device, configured to judge whether the voltage converted by the same adapter exceeds a preset voltage threshold and send the judgment result to the microcontroller.
[0014] According to another aspect of the present invention, there is provided a device starting apparatus, comprising: a receiving module for receiving a pre-start signal of a target device; a detection module for controlling a test device to operate at a first preset power in response to the pre-start signal, and detecting the operating state of the test device at different powers, wherein the voltage for supplying power to the test device and the target device is a voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in a working state; a determination module for determining the starting power of the target device based on the operating state; and a starting module for starting the target device based on the starting power.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, which includes a stored executable program, wherein when the executable program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned device startup method.
[0016] According to another aspect of the present invention, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the device startup method is executed when the program is running.
[0017] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein the computer program implements the above-mentioned device startup method when executed by a processor.
[0018] In an embodiment of the present invention, a device startup method is adopted, by receiving a pre-start signal of a target device; based on the pre-start signal, controlling the test device to operate at a first preset power, and detecting the operating status of the test device at different powers, wherein the voltage for supplying power to the test device and the target device is the voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in a working state; based on the operating state, determining the startup power of the target device; based on the startup power, starting the target device, thereby achieving the purpose of accurately evaluating the startup power of the device and optimizing the startup process, thereby realizing the technical effect of improving device stability and user experience, and further solving the technical problem of repeated restarts of the device caused by the user using an adapter with insufficient power. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 is a flow chart of a device startup method according to an embodiment of the present invention;
[0021] Figure 2is a flow chart of an optional dynamic power detection and intelligent startup optimization method according to an embodiment of the present invention;
[0022] Figure 3 This is a core flow diagram of an optional dynamic power detection and intelligent startup optimization method according to an embodiment of the present invention;
[0023] Figure 4 is a structural block diagram of a device startup system according to an embodiment of the present invention;
[0024] Figure 5 is a circuit diagram of an optional reset chip according to an embodiment of the present invention;
[0025] Figure 6 is a circuit diagram of an optional operational amplifier power supply according to an embodiment of the present invention;
[0026] Figure 7 is a circuit diagram of an optional testing device according to an embodiment of the present invention;
[0027] Figure 8 is a circuit diagram of an optional voltage determination device according to an embodiment of the present invention;
[0028] Figure 9 is a structural block diagram of an optional dynamic detection and optimization adapter power system according to an embodiment of the present invention;
[0029] Figure 10 4 is a structural block diagram of a device starting apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:
[0033] In the electronics and computer fields, an adapter generally refers to a device used to convert or match different interface, voltage, or current specifications to enable compatibility and communication between different hardware or systems. In this embodiment, the adapter refers to an external device that provides power to an electronic device. It connects to the device via a Type-C interface and is responsible for converting external power (such as AC power from a household outlet) to the DC voltage and current required by the device.
[0034] An MCU, or microcontroller unit, is sometimes called a single-chip microcomputer (MCU). It is a microcomputer system that integrates multiple functions, including a central processing unit (CPU), memory, input / output (I / O), timers, counters, and various communication interfaces, on a single chip. In electronic devices, the MCU is responsible for processing sensor data, controlling motors, executing algorithms, managing communication protocols, and providing user interfaces.
[0035] Virtual short circuit (VFS) is a concept used to describe the characteristics of an op amp's input terminals under ideal operating conditions. Ideally, when an op amp operates in a negative feedback closed loop, the voltage difference between its non-inverting and inverting inputs approaches zero, even though the two terminals are not actually short-circuited. This phenomenon is called a "virtual short circuit."
[0036] Virtual disconnect is a concept used to describe the characteristics of the op amp input under ideal operating conditions. Ideally, the op amp's input impedance is considered infinite, meaning no current flows into either the non-inverting or inverting input of the op amp. Therefore, in circuit analysis, the input can be roughly considered disconnected, or "virtually disconnected."
[0037] An operational amplifier is an electronic amplifier with high gain, dual inputs, and a single output. Its most notable characteristics are its very high input impedance, low output impedance, and its ability to implement various functions through external circuit configuration. Its operating principle is to amplify the voltage difference between its non-inverting and inverting inputs. The output voltage is determined by this voltage difference and the amplifier's gain.
[0038] NMOS, or N-channel MOSFET, is an N-channel metal oxide semiconductor field effect transistor. MOSFET is a very important electronic component, widely used in power electronics, analog circuits, and digital circuits for current control, signal amplification, and switching functions.
[0039] A reset chip is an integrated circuit specifically designed to monitor the power status of electronic systems and perform system resets. Its primary function is to ensure that the microprocessor or microcontroller is in a known, safe initial state during power supply instability or system startup, thereby preventing hardware damage, software anomalies, or data loss.
[0040] An increasing number of high-performance electronic devices, such as routers, smart speakers, and smart cameras, are adopting Type-C power connectors. While Type-C is popular for its reversible design and high-speed data transmission capabilities, it also means that devices require more precise and stable power. However, when selecting an adapter, users often focus solely on voltage and ignore the power output. This can lead to high-performance devices operating unstably with low-power adapters. This often results in devices repeatedly restarting during startup or operation, severely impacting device functionality and user experience.
[0041] Several solutions exist to this challenge, including using a fixed power adapter, adding an internal battery, and implementing MCU software monitoring and power regulation. Each approach has its specific application scenarios and limitations. While a fixed power adapter directly avoids the issue of adapter power mismatch, it increases the initial cost of the device and limits user choice. An internal battery solution improves the device's tolerance to power fluctuations, but also increases device size, weight, and maintenance costs. MCU software monitoring is suitable for minor power fluctuations, but may not be able to respond to rapid and significant voltage drops.
[0042] In view of the above problems, a device startup method is proposed in an embodiment of the present invention. If the power output of the adapter can be dynamically detected by simulating the actual power consumption requirements of the device at the initial stage of device startup, and the startup mode of the device can be adjusted according to the detection results, the problem of repeated restarts can be solved. By introducing a controllable electronic load and a reset module, the controllable electronic load in this application is sometimes also referred to as a controllable test device, or simply a test device. An embodiment of the present invention provides a system that can automatically select the device startup mode according to the power output of the adapter, and can also push alarm information to the user through Wi-Fi or an indicator light, prompting the user to replace the adapter, thereby ensuring dual optimization of the device and user experience.
[0043] According to an embodiment of the present invention, an embodiment of a device startup method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] As an optional embodiment, the execution subject of the method of this embodiment can be a microcontroller unit, which is the core brain of the entire system. The MCU is responsible for coordinating and controlling all operations of the hardware circuit, while processing logical judgment and user interaction at the software level. Specifically, the MCU is not only responsible for the control of the hardware circuit, such as the op amp power switch and the adjustment of the controllable power output, but also undertakes the task of logical decision-making, such as determining the adapter power level according to the trigger time of the reset signal, and selecting the best device startup strategy based on this. In addition, the MCU also plays the role of a user interface, conveying the device status and maintenance suggestions to the user through the network or indicator lights on the device, thereby improving the user experience.
[0045] Figure 1 FIG. 1 is a flow chart of a device startup method according to an embodiment of the present invention. Figure 1 As shown, the method includes the following steps:
[0046] Step S101: receiving a pre-start signal from a target device.
[0047] In this step, the MCU receives a specific signal during the device startup process, known as a pre-boot signal, triggering the subsequent dynamic detection and power optimization process. The "target device" here refers to a high-performance router or similar electronic device powered by a Type-C port, while the "pre-boot signal" is a signal emitted by a specific circuit when the device is powered on and begins to boot. By receiving and analyzing different signals, the device's behavior is dynamically adjusted to ensure optimal startup and operation even under adverse power conditions. It also alerts the user to replace the adapter with a more suitable one for optimal device performance and user experience.
[0048] Step S102, in response to the pre-start signal, controls the test device to start at a first preset power, and detects the operating status of the test device at different powers, wherein the voltage for powering the test device and the target device is the voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in the working state.
[0049] In this step, the test device is designed to consist of an operational amplifier and an N-channel MOSFET. By adjusting the voltage, the power consumption level of the test device can be precisely controlled. The operating status of the test device actually refers to whether the adapter can continue to supply power without triggering the device and restarting the test device when simulating different power levels. This can be used to detect the operating status of the test device. The detection process is a cyclic and progressive testing process that aims to accurately evaluate the power supply capability of the adapter through dynamic power simulation of the test device, thereby intelligently optimizing the device's startup mode, improving device stability, and enhancing the user experience.
[0050] Step S103: determining the starting power of the target device based on the operating status.
[0051] In this step, by monitoring the operating status of the test device under different power settings, the optimal startup power (or power consumption) of the target device under the current adapter power supply conditions is intelligently determined. This process is a key decision point for the entire dynamic detection adapter power optimization startup system, ensuring that the device can still start stably with appropriate power when the adapter power is limited, avoiding unnecessary restarts. For example, based on the analysis results of the operating status, the MCU will select the startup power that best matches the adapter power from the preset power mode mapping table. If the power detection result of the adapter falls in the 5-10W range, the MCU will select the startup power in the basic function mode (such as 8W) to ensure that the device can operate stably within this power range.
[0052] Step S104: Start the target device based on the startup power.
[0053] In this step, after determining the startup power level, the MCU controls the device's startup process, ensuring that all necessary components and functions start at the selected power level. Additionally, a warning message can be sent to the user via Wi-Fi or an on-device indicator to inform them of insufficient adapter power and that the device is currently operating in low-power mode. This feedback mechanism not only improves device stability but also enhances the user experience, keeping users informed of the current device status and providing recommendations for adapter replacement to improve device performance and long-term reliability.
[0054] Through the above steps, the purpose of accurately evaluating the startup power of the device and optimizing the startup process is achieved, thereby achieving the technical effect of improving device stability and user experience, and further solving the technical problem of users repeatedly restarting the device due to using an adapter with insufficient power.
[0055] As an optional embodiment, before controlling the test device to start at a first preset power, it also includes: determining whether the voltage converted by the same adapter exceeds a preset voltage threshold; if the voltage converted by the same adapter does not exceed the preset voltage threshold, turning on the operational amplifier power supply to power the test device, wherein the operational amplifier power supply is used to control the voltage converted by the same adapter to be transmitted to the test device.
[0056] Optionally, when the device attempts to start up, it can first perform a voltage check to determine whether the input voltage, after conversion by the same adapter, exceeds a preset threshold. For example, this check can be implemented using a voltage determination circuit, using a Zener diode. If the input voltage exceeds the preset voltage threshold, the Zener diode will not conduct, thereby preventing subsequent circuit activation. Conversely, if the voltage does not exceed the preset threshold, the Zener diode will conduct, allowing current to flow and triggering the subsequent op amp power-on process.
[0057] As an optional embodiment, when the voltage converted by the same adapter exceeds a preset voltage threshold, the target device is directly started.
[0058] Optionally, when the device is in standby or the initial startup phase, the MCU can use a voltage detection circuit to detect whether the voltage converted by the same adapter exceeds a preset voltage threshold. For Type-C power supply devices, common voltage levels include 5V, 9V, and 12V. If the detected voltage is higher than the preset value, it means that the adapter can provide sufficient voltage, even exceeding the minimum voltage required by the device, eliminating the need for simulation testing with a test device to verify the adapter's actual power supply capacity.
[0059] At this point, the MCU will directly boot the target device into full-performance mode. When the input voltage exceeds the preset voltage threshold, the system assumes the adapter's power is sufficient to cover all power requirements of the device, eliminating the need to worry about overload or reboots. If voltage determination is omitted and the test device performs simulation tests directly, regardless of whether the converted voltage from the adapter exceeds the preset threshold, this approach ensures a complete power check at every boot. However, it may cause the device to spend extra time performing unnecessary testing even when sufficient voltage is present, impacting boot efficiency.
[0060] As an optional embodiment, the test device is controlled to start at a first preset power, and the operating status of the test device at different powers is detected, including: controlling the test device to start at the first preset power and running for a preset time; adjusting the power of the test device to a second preset power, and controlling the test device to run for a preset time; adjusting the power of the test device to a third preset power, and controlling the test device to run for a preset time; in the process of controlling the operation of the test device, the operating status of the test device is continuously detected, wherein the first preset power is less than the second preset power, and the second preset power is less than the third preset power.
[0061] Optionally, the system can first control the test device to start and run at a lower first preset power. This power level is usually set to the lowest power consumption state of the device, such as 2W. By running at this power for a preset time (for example, 2 seconds), the system can detect whether the adapter can supply power stably without triggering overload protection. If the adapter performs stably at the first preset power, the system will increase the power consumption of the test device to a second preset power, such as 4W. This power level is higher than the first preset power, but is still within the possible power supply range of the adapter. Running at the second preset power for the same length of time further tests the power supply capacity of the adapter. Finally, if the first two stages of testing are completed successfully, the test device will be increased to a third preset power, such as 6W, which simulates the power consumption requirement of the device under high load conditions. Running at this power level for a preset time can comprehensively test the power supply stability of the adapter under high load conditions.
[0062] While the test device operates at each preset power level, the system continuously monitors its operational status, specifically whether the adapter can maintain a stable power supply. This monitoring typically involves monitoring changes in power supply voltage and current, as well as device reboot status. If, at any stage, the system detects unstable adapter power supply, such as a voltage drop causing a device reboot, the system immediately stops the power ramp-up test and records this status so that appropriate power consumption control strategies can be implemented upon subsequent reboots.
[0063] As an optional embodiment, the starting power of the target device is determined based on the operating status, including: when the operating status is that the test device is abnormally shut down, obtaining the duration for the reset chip to send a reset signal, wherein the reset chip is used to send a reset signal based on the change in voltage after conversion by the same adapter; and determining the starting power based on the duration.
[0064] Alternatively, when the test device is operating at multiple preset power levels, if the adapter's power supply capacity is insufficient to support the test device's power consumption, the test device may shut down abnormally, meaning the device will reboot due to insufficient power. This may occur during a test where the test device's power is gradually increased, indicating that the adapter's output power is lower than the device's actual needs and cannot provide stable power.
[0065] When the reset chip detects a voltage drop below a set threshold, it issues a reset signal, which is captured by the MCU. Because there's a time lag between the voltage drop and the issuance of the reset signal, this time lag (i.e., the duration of the reset signal) is related to the adapter's power level. Lower power levels result in faster voltage drops and a correspondingly shorter reset signal duration. Conversely, higher power levels result in slower voltage drops and a longer reset signal duration. After capturing the reset signal, the MCU uses the signal duration to determine the adapter's power range and, in turn, the device's startup power consumption.
[0066] As an optional embodiment, the starting power is determined based on the duration, including at least one of the following: when the duration is less than or equal to the first preset duration threshold, the starting power is determined to be the first preset power; when the duration is greater than the first preset duration threshold and less than the second preset duration threshold, the starting power is determined to be the second preset power; when the duration is greater than or equal to the second preset duration threshold, the starting power is determined to be the third preset power, wherein the first preset power is less than the second preset power, and the second preset power is less than the third preset power.
[0067] Alternatively, the startup power can typically be determined based on a pre-established power mode mapping table. The system can set a first preset duration threshold as a benchmark for determining the adapter's power. If the duration of the reset signal from the reset chip is less than or equal to this preset duration threshold, the system determines that the adapter's power is low and insufficient to support the device's normal operation. In this case, the device will boot at the first preset power, which is the minimum power required to maintain basic operation. This ensures that even when powered by a low-power adapter, the device can provide at least basic functionality without completely shutting down. If the duration of the reset signal is greater than the first preset duration threshold but less than a second preset duration threshold, the system determines that the adapter's power is within a certain range and can support the device's basic functional mode. Therefore, the device will boot at the second preset power, which is a relatively high power setting but still lower than the device's full performance mode. This allows the device to operate stably without sacrificing performance, and can send a warning message to the user via Wi-Fi or an indicator light to inform them of insufficient adapter power. If the duration of the reset signal is greater than or equal to the second preset duration threshold, this indicates that the adapter has sufficient power to support most of the device's functions. Therefore, the device will start up at the third preset power, a higher power state, which ensures that the device can fully realize its performance potential while providing the best service experience for users.
[0068] For example, Table 1 is an optional reset time-power correspondence table according to an embodiment of the present invention. As shown in Table 1, if the reset time is 12 seconds, it indicates that the adapter power is less than 5W, and the device will start in low-power mode of 3.5W; if the reset time is 15 seconds, it indicates that the adapter power is between 5W and 10W, and the device will start in medium-power mode of 8W; if the reset time is 18 seconds, it indicates that the adapter power exceeds 10W, and the device will start in high-power mode of 15W.
[0069] Detect adapter power range Reset time Restart device power <5W 12s 3.5W 5-10W 15s 8W >10W 18s 15W
[0070] Table 1 Reset time power correspondence table
[0071] After the test device shuts down abnormally, if the device is directly restarted in the lowest power mode, this approach can prevent repeated device restarts, but it does not intelligently adjust the power consumption based on the actual power output of the adapter, which may result in limited device functionality in certain situations. The mechanism in this optional embodiment intelligently adjusts the startup power consumption based on the actual output power of the adapter, thus avoiding frequent device restarts while fully utilizing the power supply capacity of the adapter, providing a more flexible and efficient service model.
[0072] As an optional embodiment, a dynamic power detection and intelligent startup optimization method is also provided. Figure 2FIG. 1 is a flow chart of an optional dynamic power detection and intelligent startup optimization method according to an embodiment of the present invention. Figure 2 As shown, the device checks the input voltage immediately after powering on. After 20 seconds, the op amp power is turned on. By controlling the op amp power and voltage, the test device operates at low, medium, and high loads for 2 seconds each, with a 5-second interval. If it does not restart, it indicates sufficient adapter power and the device boots normally. If it restarts, the reset chip is triggered. Upon receiving the reset signal, the test device shuts down and restarts in different power consumption modes based on the time the reset signal is received. A message is sent to the user to notify them.
[0073] Figure 3 FIG. 1 is a core flow diagram of an optional dynamic power detection and intelligent startup optimization method according to an embodiment of the present invention. Figure 3 As shown, the core design is a controllable test device consisting of an operational amplifier and an N-channel MOSFET. The op amp gradually adjusts the test device current based on the voltage at its comparison terminal, simulating real-world power consumption scenarios. After the device is powered on, the MCU first identifies the input voltage, then enables the op amp power circuit, switching the Type-C power supply to the op amp. The test device current is gradually increased to simulate real-world power consumption. If the adapter power is insufficient, a voltage drop will cause the device to restart. After the Type-C power is lost, the diode-reset circuit monitors the voltage drop threshold. The MCU captures the reset signal and records the abnormal timestamp. Upon restart, the MCU selects a different power mode based on the duration of the reset signal to enable core functions, ensuring basic service availability. It also sends an alert message via the Wi-Fi / indicator light, prompting the user to replace the adapter. This method is applicable to various adapter-powered consumer devices, ensuring basic device operational stability while reducing user reboot issues caused by adapter mismatches through a tiered strategy. It is seamlessly compatible with Type-C power supply scenarios such as routers and smart terminals.
[0074] According to an embodiment of the present invention, a device startup system is provided. Figure 4 is a structural block diagram of a device startup system according to an embodiment of the present invention. Figure 4 As shown, the system includes: a microcontroller, a reset chip, a controllable power supply and a testing device. The system is described below.
[0075] A microcontroller is used to execute any one of the above device startup methods.
[0076] Optionally, the microcontroller intelligently determines the target device's startup power consumption by controlling the controllable power supply and monitoring the duration of the reset signal. This mechanism not only improves device stability and efficiency, but also enhances the system's user-friendliness and intelligent feedback capabilities, significantly outperforming traditional startup strategies that rely on fixed power modes and manual intervention. The MCU's core control function ensures that the device automatically selects the most appropriate startup mode under varying power conditions, improving the user experience and reducing maintenance hassles.
[0077] The reset chip is used to send a reset signal to the microcontroller based on the change of the voltage converted by the same adapter, wherein the voltage used to power the test device and the target device is the voltage converted by the same adapter.
[0078] Optionally, Figure 5 FIG. 1 is a circuit diagram of an optional reset chip according to an embodiment of the present invention. Figure 5 As shown in the figure, taking a 5V adapter as an example, after the 5V power supply is turned on, the test device generates 2W, 4W, and 6W power from a controllable power supply for 2 seconds each, with a 5-second interval. If the adapter power is insufficient, it will power down and then immediately restore power. At this point, the GPIO is pulled low, Q2 and Q3 are turned off, and the 5V power supply to the downstream circuitry is disconnected. The previously on 5V voltage is then supplied to the reset chip via a one-way diode. A large capacitor is connected in parallel to the reset chip's power supply to slow the voltage drop. When the 5V voltage drops to a certain level, the reset chip sends a high signal to the MCU. Therefore, when the adapter restarts due to insufficient power, the MCU receives a high signal. Because the low, medium, and high test conditions are applied at different times, the MCU receives the signal at different times. The difference in the received signal time indicates the adapter's output power level. When the test device restarts again, it stops operating and restarts in the corresponding high, medium, and low power states to ensure normal operation. A message is sent to the user to inform them of the insufficient adapter output power and to replace the adapter.
[0079] A controllable power supply is used to control the power of the test device.
[0080] Optionally, the controllable power module is controlled by the MCU (e.g., via an I2C pin) to output various voltages, effectively controlling V3. These voltage outputs are used to simulate the device's needs at different power consumption levels, thereby testing the adapter's actual power supply capabilities. Dynamic adjustment of the output voltage under MCU control is crucial for accurately measuring the adapter's power draw.
[0081] In addition, the above system may further include an operational amplifier power supply. Figure 6 FIG. 1 is a circuit diagram of an optional operational amplifier power supply according to an embodiment of the present invention. Figure 6As shown in the figure, the op amp power supply consists of an NPN transistor and a PMOS transistor. Because a low voltage (GPIO voltage is usually 3.3V or 1.8V) controls the high voltage conduction, an NPN transistor is added. When GPIO is high, Q2 is turned on, R5 is a current limiting resistor, and R6 provides a fast discharge path. After Q2 is turned on, the G pole of Q3 is pulled low, and V gs = -5V, Q3 conducts, and the 5V power supply supplies power to the subsequent circuits. Increasing the op amp power supply can eliminate the scenario where the reset chip is triggered by the user plugging and unplugging the adapter.
[0082] Test device, the different power of the test device is used to simulate the power of the target device in the working state.
[0083] Optionally, Figure 7 is a circuit diagram of an optional testing device according to an embodiment of the present invention, such as Figure 7 As shown, the test device consists of an operational amplifier U1 and an NMOS Q1. This circuit is a negative feedback circuit. When the MOS tube is turned on and the load current I increases, the voltage on the sampling resistor R3 increases, and the voltage V- at the inverting input of the operation increases, which reduces the difference between V- and V+. Then, the output voltage of the operation decreases, which makes V gs Decreases, causing I to decrease. Therefore, when I increases, the circuit will reduce I, forming negative feedback, satisfying the "virtual short" and "virtual open" conditions. Therefore, V3 = V- = V+, and the current flowing through the load I = V3 / R3, which is determined only by the voltage V3 and the sampling resistor, and has nothing to do with the power supply voltage and load impedance. The power consumption of the test device P = V1*I = VI*V3 / R3. The NMOS on-resistance is about 0.04Ω, and the power consumption P nmos =I*0.04. Sampling resistor power consumption P R3 =I*V3. The remaining power consumption is radiated outward as heat. Therefore, by controlling the value of V3, the power consumption of the entire test device can be controlled.
[0084] As an optional embodiment, the above system further includes: a voltage judgment device, which is used to judge whether the voltage converted by the same adapter exceeds a preset voltage threshold and send the judgment result to the microcontroller.
[0085] Optionally, Figure 8 FIG. 1 is a circuit diagram of an optional voltage judgment device according to an embodiment of the present invention. Figure 8As shown, take a 5V adapter as an example, but not limited to 5V. Conventional Type-C voltages are 5V, 9V, and 12V. Since 5V has the lowest power, it is used as an example. D2 is a 5.6V zener diode. When the input voltage is 9V and 12V, the voltage at the B pole is 5.6V < the voltage at the E pole, and the PNP transistor conducts, and the C pole outputs a high level. When the input voltage is 5V, the voltage at the B pole is equal to the voltage at the E pole, the PNP transistor does not conduct, and the C pole outputs a low level. Therefore, the MCU can determine whether the input voltage is 5V based on the high and low levels.
[0086] As an optional embodiment, a dynamic detection and optimization adapter power system is also provided. Figure 9 is a structural block diagram of an optional dynamic detection and optimization adapter power system according to an embodiment of the present invention, as Figure 9 shown. Taking a 5V adapter as an example, it can be applied to all other 5 - 12V adapters. The core design of the above system is the test device module and the configuration of the reset chip module with a hysteresis comparator. An operational amplifier power supply module and a controllable power supply module are added to achieve the conduction of the test device and the multi-level regulation of the test device, excluding the scenario where the user plugs and unpluggs the adapter by themselves, causing the reset chip to trigger. When the test device increases step by step and exceeds the overcurrent point of the adapter, power-off occurs, and the voltage drop of the operational amplifier triggers the reset chip to send a high-level signal. Based on the time difference of the operation of the test device, the power of the adapter is judged, and according to the pre-established power mode mapping table, the device can restart working with the corresponding power consumption, avoiding secondary overload.
[0087] According to an embodiment of the present invention, a device startup device is provided. Figure 10 is a structural block diagram of the device startup device according to an embodiment of the present invention, as Figure 10 shown. The device startup device includes: a receiving module 1001, a detection module 1002, a determination module 1003, and a startup module 1004. The device startup device will be described below.
[0088] The receiving module 1001 is used to receive a pre-start signal of the target device.
[0089] The detection module 1002 is connected to the receiving module 1001 and is used to control the test device to start at a first preset power in response to the pre-start signal and detect the operating state of the test device at different powers. The voltage supplying power to the test device and the target device is the voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in the working state.
[0090] The determination module 1003 is connected to the detection module 1002 and is used to determine the startup power of the target device based on the operating state.
[0091] The starting module 1004 is connected to the determining module 1003 and is configured to start the target device based on the starting power.
[0092] According to an embodiment of the present invention, a computer-readable storage medium is provided, which includes a stored executable program, wherein when the executable program runs, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned device startup methods.
[0093] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: receiving a pre-start signal from the target device; in response to the pre-start signal, controlling the test device to start at a first preset power, and detecting the operating status of the test device at different powers, wherein the voltage for powering the test device and the target device is a voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in a working state; based on the operating status, determining the starting power of the target device; and starting the target device based on the starting power.
[0094] According to an embodiment of the present invention, an electronic device is provided, comprising: a memory storing an executable program; and a processor configured to run the program, wherein any one of the above-mentioned device startup methods is executed when the program is run.
[0095] Optionally, the processor can call the information and application stored in the memory through the transmission device to perform the following steps: receive a pre-start signal from the target device; in response to the pre-start signal, control the test device to start at a first preset power, and detect the operating status of the test device at different powers, wherein the voltage for powering the test device and the target device is the voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in the working state; based on the operating status, determine the starting power of the target device; based on the starting power, start the target device.
[0096] According to an embodiment of the present invention, a computer program product is provided, including a computer program, which implements the steps of any one of the above-mentioned device startup methods when executed by a processor.
[0097] Optionally, in this embodiment, when the computer program is executed by the processor, it can achieve: receiving a pre-start signal of the target device; in response to the pre-start signal, controlling the test device to start at a first preset power, and detecting the operating status of the test device at different powers, wherein the voltage for powering the test device and the target device is the voltage converted by the same adapter, and the different powers of the test device are used to simulate the power of the target device in the working state; based on the operating status, determining the starting power of the target device; and starting the target device based on the starting power.
[0098] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0099] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0100] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0101] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0102] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.
[0104] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A device startup method, characterized in that: Receive a pre-boot signal from a target device; In response to the pre-start signal, controlling the test device to start at a first preset power and detecting the operating state of the test device at different powers, wherein the voltages used to power the test device and the target device are converted by a same adapter, and the different powers of the test device are used to simulate the power of the target device in a working state; determining a starting power of the target device based on the operating status; Based on the startup power, the target device is started.
2. The method according to claim 1, characterized in that Before the control test device is started at the first preset power, the method further includes: Determining whether the voltage converted by the same adapter exceeds a preset voltage threshold; When the voltage converted by the same adapter does not exceed the preset voltage threshold, the operational amplifier power supply is turned on to power the testing device, wherein the operational amplifier power supply is used to control the voltage converted by the same adapter to be transmitted to the testing device.
3. The method according to claim 2, characterized in that Also includes: When the voltage converted by the same adapter exceeds the preset voltage threshold, the target device is directly started.
4. The method according to claim 1, wherein The control test device is started at a first preset power, and the operating state of the test device at different powers is detected, including: Controlling the test device to start and run for a preset time at the first preset power; Adjusting the power of the test device to a second preset power, and controlling the test device to run for the preset time; Adjusting the power of the test device to a third preset power, and controlling the test device to run for the preset time; During the above process of controlling the operation of the test device, the operating status of the test device is continuously detected, wherein the first preset power is less than the second preset power, and the second preset power is less than the third preset power.
5. The method according to claim 1, wherein The determining the startup power of the target device based on the operating state includes: When the operating state is that the test device is abnormally shut down, obtaining a duration for a reset chip to send a reset signal, wherein the reset chip is configured to send the reset signal based on a change in the voltage converted by the same adapter; The starting power is determined based on the duration.
6. The method according to claim 5, characterized in that The determining of the starting power based on the duration includes at least one of the following: When the duration is less than or equal to a first preset duration threshold, determining that the starting power is a first preset power; When the duration is greater than a first preset duration threshold and less than a second preset duration threshold, determining that the starting power is a second preset power; When the duration is greater than or equal to the second preset duration threshold, the startup power is determined to be a third preset power, wherein the first preset power is less than the second preset power, and the second preset power is less than the third preset power.
7. A device startup system, characterized in that: include: A microcontroller, configured to execute the device startup method according to any one of claims 1 to 6; a reset chip, configured to send a reset signal to the microcontroller based on a change in voltage after conversion by the same adapter, wherein the voltage used to power the test apparatus and the target device is the voltage after conversion by the same adapter; A controllable power supply, used to control the power level of the test device; A test device, wherein the different powers of the test device are used to simulate the power of the target device in a working state.
8. The system according to claim 7, characterized in that Also includes: The voltage judging device is used to judge whether the voltage converted by the same adapter exceeds a preset voltage threshold and send the judgment result to the microcontroller.
9. A device starting device, characterized in that: include: A receiving module, configured to receive a pre-start signal from a target device; a detection module, configured to control the test device to start at a first preset power in response to the pre-start signal, and detect the operating status of the test device at different powers, wherein the voltages supplying power to the test device and the target device are voltages converted by a same adapter, and the different powers of the test device are used to simulate the power of the target device in an operating state; a determination module, configured to determine a starting power of the target device based on the operating state; A starting module is configured to start the target device based on the starting power.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the device startup method according to any one of claims 1 to 6.
11. An electronic device, characterized in that: include: a memory storing an executable program; A processor is configured to run the program, wherein the program, when running, executes the device startup method according to any one of claims 1 to 6.
12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.