Reset control method, device and storage medium of all-in-one switching device

By setting the restart power-off flag and the standby mode of the PM module, the power-off reset of the all-in-one hardware module is realized, which solves the problem of abnormal functions caused by the lack of power supply control, avoids the need to increase hardware costs, and saves I/O resources.

CN112462909BActive Publication Date: 2024-08-30GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011319879.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-23
Publication Date
2024-08-30
Estimated Expiration
2040-11-23

AI Technical Summary

Technical Problem

When the all-in-one machine restarts, due to the lack of power supply control of the main control chip, the external adapter board or peripherals cannot be powered off and restarted, resulting in abnormal functions. Existing solutions require increased hardware costs or I/O expansion chips.

Method used

By setting the restart power-down flag and entering standby mode, all hardware modules are powered off for a period of time. The PM module wakes up the main control chip, exits standby mode, and powers on again to achieve power-off reset of the hardware modules and avoid adding special I/O. port or expansion chip.

Benefits of technology

This method ensures that external adapter cards or peripherals can be reset after a power outage after the all-in-one machine is restarted without increasing hardware costs, thus avoiding functional abnormalities and saving I/O resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112462909B
    Figure CN112462909B
Patent Text Reader

Abstract

The present invention provides a reset control method, device and storage medium of an integrated switching device, wherein the control method includes: when the integrated device is started or restarted, a restart power-off flag is set; after all hardware devices including the switching device are powered off through a PM module and the power is cut off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware device. The present invention ensures that the external switching card or peripherals are uniformly reset through the power-off mode through the power-off mode, and no special I / O port is required on the hardware to control the power supply or reset of the hardware module, and no special expansion I / O chip is required to be added, thereby saving I / O resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of reset control of an adapter board of an all-in-one machine, and in particular to a reset control method, device and storage medium of an all-in-one machine adapter device. Background Art

[0002] There are various peripherals or external adapter boards on the all-in-one device, such as the HDMI OUT board for display, audio processing equipment, touch frame equipment, etc. Because the number of I / O ports of the all-in-one main control chip is limited, it is often not enough to provide power supply or reset control I / O ports for all these adapter boards or peripherals. When the all-in-one device is restarted, the adapter board or peripherals without power control will not be powered off and reset, and the running status of the board will not be initialized normally, resulting in abnormal function of the all-in-one device. For example, if the HDMI OUT board is not powered off and restarted, it will cause abnormal display. Because the touch frame is not powered off and restarted, some of the previous states will remain without reset, resulting in abnormal touch function, etc.

[0003] In order to solve the problem of abnormal functions caused by external adapter boards or peripherals not being reset or restarted after power failure when the all-in-one machine is restarted due to power failure of the main control chip of the all-in-one machine, one solution is that the main control chip of the all-in-one machine often needs to add power control or reset control in the hardware design. However, because there are many small peripheral boards on the all-in-one machine, the actual main control chip provides limited I / O, so some peripherals will not have power supply or reset control I / O available. Another solution is to add I / O expansion chips. However, this will increase the hardware cost accordingly. Summary of the invention

[0004] The purpose of the present invention is to provide a reset control method, device and storage medium for an all-in-one adapter device, which can solve the problem in the prior art that peripherals or adapter boards that are not powered by the all-in-one main control chip cannot be powered off and restarted without increasing hardware costs.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] In a first aspect, the present invention provides a reset control method for an integrated switching device, comprising the following steps:

[0007] Step 1: When the all-in-one device is restarting, set the restart power-off flag;

[0008] Step 2, call the restart mode and check the startup mode; if it is the power-on standby mode, enter the standby state; if it is the recovery mode, execute the recovery and call the restart mode again; if it is the normal restart mode, go to step 3;

[0009] Step 3: All hardware modules are powered off for a set period of time;

[0010] Step 4: Start the kernel.

[0011] Step 5. Start the Android system.

[0012] In a second aspect, the present invention provides a reset control method for an integrated switching device, comprising the following steps:

[0013] Step 1: When the all-in-one machine is turned on, a power-off flag is set;

[0014] Step 2, enter the startup mode, confirm whether the power-off flag is the set value, if not, confirm the startup mode, if yes, go to step 3;

[0015] Step 3: Clear the power-off flag setting value. After all hardware modules are powered off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware modules.

[0016] Step 4: Enter normal startup mode.

[0017] Furthermore, the power-off of all hardware modules for a set period of time specifically includes:

[0018] Step 301, confirm whether the power-off flag is a set value, if yes, go to step 302; otherwise, go directly to step 4;

[0019] Step 302: After all hardware modules are powered off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware modules.

[0020] Furthermore, all the hardware modules include hardware modules connected to the main control chip and switching devices not connected to the main control chip.

[0021] Furthermore, the method for realizing powering off all the hardware modules is: by making the PM module of the integrated machine enter the standby mode, all the hardware modules are powered off.

[0022] In a third aspect, the present invention provides a reset control device for an integrated switching device, characterized in that it includes a main control chip, a PM module, and a switching device, wherein:

[0023] Main control chip, controls the power supply or reset of hardware modules in the all-in-one machine;

[0024] The PM module is a module that runs when the all-in-one machine is in standby mode. In standby mode, all unnecessary power supplies will be turned off. When the all-in-one machine is restarted, the power-down mode is detected in the boot phase by setting a flag, and the PM module enters standby mode. The power supply of the hardware module and the adapter device will be disconnected. The PM module will wake up the main control chip when the timing time is reached;

[0025] The adapter device will lose power after the integrated machine runs the PM module, and the PM will wake up the main control chip after the power is cut off for a set time and exit the standby mode. The adapter device will be powered on again.

[0026] Furthermore, the switching device is powered off by having the integrated machine run the PM module to power off all hardware modules.

[0027] In a fourth aspect, the present invention provides a storage medium storing a computer program, wherein the computer program is run to execute the reset control method of the all-in-one switching device.

[0028] The reset control method, device and storage medium of the all-in-one adapter device of the present invention can ensure that external adapter cards or peripherals are uniformly reset by powering off after the all-in-one system is restarted. No special I / O port is required in hardware to control the power supply or reset of the hardware module, and no additional special expansion I / O chip is required, thus saving I / O resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a restart flow chart of the all-in-one machine of the present invention;

[0030] Figure 2 It is a startup flow chart of the all-in-one machine of the present invention;

[0031] Figure 3 It is a schematic diagram of the structure of the reset control device of the present invention. DETAILED DESCRIPTION

[0032] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0033] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0034] Embodiment 1

[0035] The all-in-one machine is equipped with a PM (Power Manager) module, which supports functions such as key wake-up, network wake-up, signal wake-up, serial port command wake-up, and timed wake-up. After powering on or restarting, the PM management module will control the all-in-one machine to enter the standby state, low-power operation state, and receive various wake-up detections.

[0036] When the all-in-one machine enters the standby state, only the 5V Standby is powered, and only the MCU program of the PM module is running in the software. The power supply of other parts is disconnected. Therefore, if you want to disconnect the motherboard power supply connected to the motherboard, you can enter the standby state for a certain period of time to achieve the purpose of power off.

[0037] Specifically, the reset control method of the integrated switching device of the present invention comprises the following steps:

[0038] Step 1: When the all-in-one device is restarting, set the restart power-off flag.

[0039] The all-in-one machine needs to be restarted in the following scenarios: restarting the program under the Android system, restarting after the firmware upgrade program is upgraded, and restarting after the recovery upgrade or factory restore. According to existing technologies, during the restart of the all-in-one machine, the default state is that the power supply modules of the motherboard are not powered off, that is, the power supply from the motherboard to the peripherals or adapter board continues. The existing process of restarting the all-in-one machine is: execute restart; enter boot; enter kernel (real-time operating system); enter Android system.

[0040] In the present invention, the reboot power-down flag (reboot_powerdown) can be set to 0 or 1. In this embodiment, when the reboot power-down flag is set to 1, it indicates that the standby mode is to be entered. The reboot power-down flag can also be set to 0 to indicate that the standby mode is to be entered. The specific setting value of the reboot power-down flag should not be used as a limitation of the present invention. For the convenience of description, this article takes the example of the reboot power-down flag being 1 to indicate that the standby mode is to be entered.

[0041] The adapter equipment includes the peripherals of the all-in-one machine and the external adapter board.

[0042] Step 2: Call the reboot mode (reboot), enter the boot phase (boot), and check the boot mode (bootmode). If it is the power-on standby mode, enter the standby state; if it is the recovery mode (Recovery), execute the recovery and call the reboot mode again; if it is the normal reboot mode, go to step 3.

[0043] Step 3: All hardware modules are powered off for a set period of time.

[0044] Specifically, in a preferred embodiment of the present application, step 3 specifically includes:

[0045] Step 301, confirm whether the power-off flag is a set value, if yes, go to step 302; otherwise go directly to step 4.

[0046] Step 302: After all hardware modules are powered off and remain powered off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware modules.

[0047] All hardware modules include those connected to the main control chip, as well as peripherals and adapters such as adapter cards that are not connected to the main control chip. All hardware modules can be powered off by putting the PM module running in standby mode. The time period can be set according to actual needs, and the time period should be long enough for all hardware modules and adapters to be completely powered off.

[0048] Step 4: Start the kernel.

[0049] Step 5. Start the Android system.

[0050] By default, the system enters the normal restart mode after restarting. It may enter the standby state (each module is powered off) only in the power-on standby mode. In order to ensure that each hardware module, especially the peripheral adapter board, can be reinitialized. In the absence of reset and power supply control, the set time is long enough for the relevant module to be completely powered off before waking up, and the restart power-off flag is cleared. When the timing time is up, the PM module automatically wakes up. Then go through the normal startup process.

[0051] The process of restarting when running Android:

[0052] (1) Execute reboot and set the reboot power-down flag, such as reboot_powerdown = 1

[0053] (2) Enter boot and perform boot check.

[0054] (3) If reboot_powerdown is equal to 1, set the timer standby function to enter the standby mode. When the timeout period is reached, the PM module wakes up the main control chip. If reboot_powerdown is not equal to 1, start the kernel.

[0055] The process of restarting after the firmware upgrade is completed:

[0056] (1) Before the upgrade program executes reboot, set reboot_powerdown = 1;

[0057] (2) Enter boot and perform boot check;

[0058] (3) If reboot_powerdown is equal to 1, set the timer standby function, enter PM, exit PM after timeout, and wake up the main control chip; if reboot_powerdown is not equal to 1, start the kernel.

[0059] Restart after Recovery is completed:

[0060] (1) Before rebooting, set reboot_powerdown to 1

[0061] (2) Enter boot and perform boot check.

[0062] (3) If reboot_powerdown is equal to 1, set the timer standby function, enter PM, exit PM after timeout, and wake up the main control chip; if reboot_powerdown is not equal to 1, start the kernel.

[0063] The reset control method of the integrated machine adapter device of the present invention can solve the problem that a special expansion I / O chip is not added and the mainboard hardware design is not modified. It can support a general method of resetting the peripheral adapter board by powering off the mainboard when the integrated machine is restarted through software. It is applicable to all peripherals or adapter boards connected to the mainboard and powered by the mainboard.

[0064] The present invention also provides a reset control device for an integrated switching device, comprising a main control chip, a PM module, and a switching device, wherein:

[0065] The main control chip controls the power supply or reset of the hardware modules in the all-in-one machine.

[0066] The PM module is a module that runs when the all-in-one machine is in standby mode. In standby mode, it will shut down all unnecessary power supplies. When the all-in-one machine is restarted, it will detect that the startup mode in the boot phase is in power-off mode by setting a flag, and run the PM module to enter standby mode. The power supply to the hardware module and the adapter will be disconnected. The PM module will wake up the main control chip when the timing time is reached.

[0067] The adapter is a peripheral or external adapter board of the integrated machine to realize the auxiliary functions of the integrated machine. After the integrated machine runs the PM module, the adapter will lose power, and after the power is off for a set time, the PM wakes up the main control chip and the adapter is powered on again.

[0068] Embodiment 2

[0069] Specifically, the reset control method of the integrated switching device of the present invention comprises the following steps:

[0070] Step 1: When the all-in-one machine is turned on, a power-off flag is set.

[0071] In the present invention, the power-off flag (boot_powerdown) can be set to 0 or 1. In this embodiment, when the power-off flag is set to 1, it indicates that the standby mode is to be entered. The power-off flag can also be set to 0 to indicate that the standby mode is to be entered. The specific setting value of the power-off flag should not be used as a limitation of the present invention. For the convenience of description, this article takes the case where the power-off flag is 1 to indicate that the standby mode is to be entered as an example for description.

[0072] Step 2: Enter the boot phase and confirm whether the power-off flag is the set value. If not, confirm the boot mode. If yes, go to step 3.

[0073] Step 3: Clear the power-off flag setting value. After all hardware modules are powered off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware modules.

[0074] Step 4: Enter normal startup mode.

[0075] A storage medium stores a computer program. The computer program can be run to execute the reset control method of the integrated switching device described in the first and second embodiments.

[0076] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection, an electrical connection, or communication with each other; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0077] The above is only for explaining the implementation mode of the present invention and is not intended to limit the present invention. For those skilled in the art, any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention without creative work should be included in the protection scope of the present invention.

Claims

1. A reset control method for an integrated switching device, characterized in that: The following steps are involved: Step 1: When the all-in-one device is restarting, set the restart power-off flag; Step 2: Call the restart mode, enter the boot phase, and check the startup mode; if it is the power-on standby mode, enter the standby state; If it is recovery mode, then call restart mode again after recovery is executed; If it is normal restart mode, go to step 3; Step 3: All hardware modules are powered off for a set period of time, wherein all hardware modules include hardware modules connected to the main control chip and switching devices not connected to the main control chip; Step 4: Start the kernel. Step 5. Start the Android system; The power-off of all hardware modules for a set period of time specifically includes: Step 301, confirm whether the restart power-off flag is the set value, if yes, go to step 302; otherwise, go directly to step 4; Step 302: After all hardware modules are powered off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware modules; The method for powering off all the hardware modules is to power off all the hardware modules by putting the PM module of the integrated machine into the standby mode.

2. A reset control method for an integrated switching device, characterized in that: The following steps are involved: Step 1: When the all-in-one machine is turned on, a power-off flag is set; Step 2, enter the boot phase, confirm whether the power-off flag is the set value, if not, confirm the startup mode, if yes, go to step 3; Step 3: Clear the power-off flag setting value. After all hardware modules are powered off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware modules; all the hardware modules include hardware modules connected to the main control chip and adapter devices not connected to the main control chip; Step 4: Enter normal startup mode; The power-off of all hardware modules for a set period of time specifically includes: Step 301, confirm whether the power-off flag is a set value, if yes, go to step 302; otherwise, go directly to step 4; Step 302: After all hardware modules are powered off for a set period of time, the PM module wakes up the main control chip, exits the standby mode, and powers on the hardware modules; The method for powering off all the hardware modules is to put the PM module of the integrated machine into the standby mode to power off all the hardware modules.

3. A reset control device for an integrated switching device, characterized in that: Including main control chip, PM module, and switching equipment, including: Main control chip, controls the power supply or reset of hardware modules in the all-in-one machine; The PM module is a module that runs when the all-in-one machine is in standby mode. In standby mode, all unnecessary power supplies will be turned off. When the all-in-one machine is restarted, the power-down mode is detected in the boot phase by setting a flag, and the PM module enters standby mode. The power supply of the hardware module and the adapter device will be disconnected. The PM module will wake up the main control chip when the timing time is reached. Adapter device: After the integrated machine runs the PM module, the adapter device will lose power, and after the power is continuously off for a set time, the PM module wakes up the main control chip, the system exits the standby mode, and the adapter device is powered on again.

4. The reset control device of the integrated switching device according to claim 3, characterized in that: The switching device is powered off by running the PM module on the integrated machine to power off all hardware modules.

5. A storage medium storing a computer program, characterized in that: Running the computer program executes the reset control method of the all-in-one switching device described in claim 1 or 2.

Citation Information

Patent Citations

  • Device and method for single plate peripheral power supply management

    CN101605037A

  • Method and device for restarting mobile phone

    CN102957806A

  • Electrical equipment restarting method and apparatus

    CN107193555A