Dual-operation system switching method and system applied to tablet and storage medium
By using latching operations and a multi-parameter sequential verification mechanism, combined with the signal parsing logic of latches and CPLDs, a secure and controllable switching between dual operating systems on a tablet PC was achieved. This solved the problems of performance loss, operational independence, and storage access isolation, thus improving the stability and security of the system.
Patent Information
- Application Number
- CN202511716562.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
Smart Images

Figure CN121542005A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of dual operating system switching, and more specifically, to a method, system, and storage medium for dual operating system switching applied to tablets. Background Technology
[0002] With the widespread adoption of mobile computing devices, achieving parallel operation and rapid switching between dual operating systems has remained a technical challenge in the consumer tablet market, and existing solutions still face technical problems. First, while traditional software virtual machine solutions can achieve multi-system coexistence, they suffer significant system performance degradation, fail to fully utilize hardware resources, and struggle to guarantee the independence of the two systems. Second, while bootloader-based dual-system solutions can achieve system switching, the switching process lacks comprehensive monitoring of hardware operating status, making it susceptible to switching operations under suboptimal conditions such as voltage fluctuations, abnormal temperatures, or insufficient power, leading to system startup failures or even hardware damage. Third, existing switching mechanisms generally lack effective state locking protection; users may accidentally trigger unintended switching during system operation, resulting in data loss or system crashes. Finally, existing solutions lack physical isolation mechanisms at the storage access level, potentially causing conflicts when different operating systems access shared storage resources, affecting system stability and data security. Therefore, there is an urgent need for a hardware-level technology that enables secure, reliable, and state-controlled dual-operating system switching. Summary of the Invention
[0003] In view of the above problems, the purpose of this invention is to provide a method, system, and storage medium for switching between dual operating systems in a tablet. This method uses latching operations to stably lock the user's selection state and combines this with a multi-parameter sequential verification mechanism to ensure the safety and controllability of the entire operating system switching process. Specifically, firstly, the accuracy and anti-interference capability of the selection signal are ensured through latch state sampling and debouncing processing, as well as CPLD signal parsing logic. Secondly, threshold groups are obtained through a preset mapping table, and sensor data is collected periodically to provide accurate and reliable parameter benchmarks for state verification. Then, a rigorous serial verification process ensures that each safety parameter is checked sequentially according to its importance level, avoiding invalid operations under abnormal conditions. Finally, signal routing switching using a multiplexer achieves physical isolation of the storage channels, ensuring the independence and stability of the dual-system operation. Furthermore, the state locking and periodic monitoring mechanism during operation prevents interference from erroneous operations and provides continuous assurance for the system's health.
[0004] The first aspect of this invention provides a method for switching between dual operating systems in a tablet, the method comprising: In response to the selection signal from the target operating system, selection flag information is obtained based on latching operations; In response to a power-on or reset signal, a threshold group is obtained based on the selection flag information; Obtain core voltage information, and compare the core voltage information with the safe voltage range of the threshold group to obtain voltage stability verification results; Obtain processor temperature information, and compare the processor temperature information with the temperature threshold of the threshold group to obtain the temperature safety verification result; Obtain battery power information, and compare the battery power information with the power threshold of the threshold group to obtain the energy adequacy verification result; When all the above verification results are passed, the FLASH communication port is selected and connected according to the selection flag information; The operating system bootloader is read and executed based on the FLASH communication port.
[0005] In this scheme, the step of obtaining selection flag information based on latching operations in response to the selection signal of the target operating system specifically includes: Based on the electrical signal generated by the toggle switch of the switching module, state sampling and debouncing are performed using a latch to obtain and output a stable target operating system selection signal; Based on the selection signal of the target operating system, the selection flag information of the target operating system is obtained by performing signal parsing logic based on the CPLD module; The latching operation further includes maintaining the output of the target operating system's selection signal during operating system operation.
[0006] In this scheme, the step of responding to a power-on or reset signal and obtaining a threshold group based on the selection flag information specifically includes: The operational status verification process is initiated based on the trigger signal generated by system power-on or reset. Based on the selected flag information and a preset mapping table, a threshold group is obtained, which includes at least a safe voltage range, a temperature threshold, and a power threshold. Based on the preset first acquisition cycle, according to the real-time sensor data acquisition command, data requests are sent to the voltage sensor, temperature sensor and power management unit to obtain core voltage information, processor temperature information and battery power information.
[0007] In this solution, the operational status verification process specifically includes: Initiate the voltage stability verification process; If the core voltage information is within the safe voltage range of the threshold group, then the voltage stability verification is deemed successful. The temperature safety verification process is initiated only if the voltage stability verification passes. If the processor temperature information is lower than the temperature threshold of the threshold group, the temperature safety verification is deemed to have passed. The energy adequacy process will only be initiated once temperature safety verification is passed. If the battery power information is greater than the power threshold of the threshold group, the energy adequacy verification is deemed successful, and an operating system switching enable signal is output.
[0008] In this solution, the step of selecting and connecting the FLASH communication port based on the selection flag information specifically includes: In response to the operating system switching enable signal, a FLASH channel selection control signal is generated based on the selection flag information; Based on the FLASH channel selection control signal, the multiplexer of the CPLD module is controlled to perform signal routing switching, thereby connecting the communication channel between the target system's FLASH memory and the central processing unit (CPU). The multiplexer is controlled to disconnect the communication connection of the non-target system FLASH memory.
[0009] This solution also includes the following when the target operating system is in normal operation: The latch remains locked, ignoring input changes from the switching module; Based on the preset second acquisition cycle, real-time sensor data acquisition commands are continuously sent to obtain operating status data; The switching process of restarting the operating system is only initiated upon receiving the next power-on or reset signal.
[0010] A second aspect of the present invention provides a dual-operating system switching system for tablets, including a method program for switching between dual operating systems on a tablet. When the dual-operating system switching method program for tablets is executed by the processor, it performs the following steps: In response to the selection signal from the target operating system, selection flag information is obtained based on latching operations; In response to a power-on or reset signal, a threshold group is obtained based on the selection flag information; Obtain core voltage information, and compare the core voltage information with the safe voltage range of the threshold group to obtain voltage stability verification results; Obtain processor temperature information, and compare the processor temperature information with the temperature threshold of the threshold group to obtain the temperature safety verification result; Obtain battery power information, and compare the battery power information with the power threshold of the threshold group to obtain the energy adequacy verification result; When all the above verification results are passed, the FLASH communication port is selected and connected according to the selection flag information; The operating system bootloader is read and executed based on the FLASH communication port.
[0011] A third aspect of the present invention provides a computer-readable storage medium including a method program for switching between dual operating systems on a tablet computer. When the method program is executed by a processor, it implements the steps of the method for switching between dual operating systems on a tablet computer as described in any of the preceding claims.
[0012] This invention provides a method, system, and storage medium for switching between dual operating systems in a tablet. In response to a target operating system selection signal emitted by a toggle switch, a selection flag is generated through a latching operation. Subsequently, upon power-on or reset, a preset threshold group of parameters is invoked, and real-time collected core voltage information, processor temperature information, and battery power information are compared sequentially with the threshold group. Once all verifications are successful, a multiplexer is controlled based on the selection flag information to connect the communication channel between the FLASH memory corresponding to the target operating system and the central processing unit, ultimately reading and executing the boot program of the target operating system. This ensures the reliability and stability of the operating system switching process. Simultaneously, by physically isolating the storage access paths of different operating systems, the independence and security of the dual-system operation are guaranteed. Attached Figure Description
[0013] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope.
[0014] Figure 1 A schematic diagram of the topology of a dual-operating system switching circuit for a single tablet is shown. Figure 2 A flowchart of a dual-operating system switching method for tablets according to the present invention is shown; Figure 3 This invention provides a flowchart for generating selection flag information according to an embodiment of the invention. Figure 4 This invention provides a flowchart illustrating the collaborative operation of threshold group acquisition and data collection according to an embodiment of the invention. Figure 5 A block diagram of a dual-operating system switching system for tablets according to the present invention is shown. Detailed Implementation
[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0016] Unless otherwise defined, all terms (including technical and scientific terms) used in embodiments of this invention shall have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in a common dictionary shall be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and not as being interpreted in an idealized or highly formalized sense, unless expressly defined in this embodiment of the invention.
[0017] The terms "first," "second," and similar words used in the embodiments of this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "an," "a," or "the" do not indicate a quantity limitation, but rather indicate the presence of at least one. Similarly, terms such as "including" or "comprising" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The steps preceding or following the steps in the method of the embodiments of this invention are not necessarily performed precisely in sequence. Instead, various steps can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from these processes.
[0018] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0019] Figure 1 A schematic diagram of the topology of a dual-operating system switching circuit on a single tablet is shown.
[0020] like Figure 1 As shown, a dual-operating system switching circuit 10 for a single tablet includes a CPLD module 103, a switching module 101, a latch module 102, and a multi-system FLASH module 104. The switching module 101 is used to receive the user's target operating system selection signal; The latch module 102 is used to latch the selection signal; The CPLD module 103 is used to monitor circuit status and switch operating systems; The multi-system FLASH module 104 includes Android system FLASH 1041 and HarmonyOS system FLASH 1042.
[0021] Figure 2 A flowchart of a dual-operating system switching method for tablets according to the present invention is shown.
[0022] like Figure 2 As shown, the first aspect of this invention discloses a method for switching between dual operating systems in a tablet, the method comprising: S202, in response to the selection signal of the target operating system, obtains the selection flag information based on the latch operation; S204, in response to a power-on or reset signal, obtains a threshold group based on the selection flag information; S206, Obtain core voltage information, and compare the core voltage information with the safe voltage range of the threshold group to obtain voltage stability verification results; S208, Obtain processor temperature information, and obtain temperature safety verification results based on the comparison between the processor temperature information and the temperature thresholds of the threshold group; S210, Obtain battery power information, and compare the battery power information with the power threshold of the threshold group to obtain the energy adequacy verification result; S212, when all the above verification results are passed, select and connect the FLASH communication port according to the selection flag information; S214, Read and execute the operating system boot program according to the FLASH communication port.
[0023] It should be noted that, in this embodiment, the user's target system selection signal is first received via a physical toggle switch, and the selection state is immediately locked by a latch to form stable selection flag information, effectively preventing subsequent misoperations. When the device is powered on or reset, preset threshold parameters are invoked based on the selection flag information. Subsequently, a series of state verifications are performed sequentially: first, the core voltage information is obtained through a voltage sensor and compared with a safe voltage range to ensure power stability; then, the processor temperature information is obtained through a temperature sensor and compared with a temperature threshold to prevent overheating; subsequently, the battery power information is obtained through the power management unit and compared with a power threshold to ensure sufficient energy. When all verifications pass, the programmable logic device (CPLD) controls a multiplexer to connect the communication channel between the target operating system's FLASH memory and the central processing unit (CPU) according to the selection flag information. Finally, the CPU reads and executes the target operating system's boot program through this channel, completing the entire switching process. This embodiment ensures the reliability and stability of the operating system switching process through hardware-level state locking and multi-parameter sequential verification mechanisms, while avoiding the risk of operating system startup failure or hardware damage due to voltage fluctuations, abnormal temperatures, or insufficient power.
[0024] Figure 3 A flowchart illustrating the generation of selection flag information provided by an embodiment of the present invention is shown.
[0025] According to embodiments of the present invention, such as Figure 3 As shown, the step of obtaining selection flag information in response to the selection signal of the target operating system based on a latching operation specifically includes: S302, based on the electrical signal generated by the toggle switch of the switching module, performs state sampling and debouncing processing based on the latch to obtain and output a stable target operating system selection signal; S304: Based on the selection signal of the target operating system, the signal parsing logic of the CPLD module is used to obtain the selection flag information of the target operating system; S306, wherein the latching operation further includes maintaining the output of the selection signal of the target operating system during the operation of the operating system.
[0026] It should be noted that in this embodiment, when the user operates the toggle switch, a corresponding electrical signal is generated. The latch collects this signal through its internal sampling circuit and performs debouncing processing to eliminate interference pulses caused by mechanical switch bounce, outputting a stable and reliable target system selection signal. The stable signal is then transmitted to the input port of the complex programmable logic device (CPU), where it is decoded by its internal signal analysis logic circuit to accurately identify the specific operating system selected by the user and generate corresponding selection flag information. Furthermore, after the target operating system enters normal operation, the latch continuously maintains its output state lock, completely ignoring any subsequent state changes that may occur due to the toggle switch. This embodiment, through hardware debouncing and state retention technology, solves the problem of operating system switching errors caused by switch bounce and accidental touches during operation, providing an accurate and tamper-proof selection basis for subsequent processes.
[0027] Figure 4 The diagram illustrates a collaborative operation flowchart for threshold group acquisition and data collection provided by an embodiment of the present invention.
[0028] According to embodiments of the present invention, such as Figure 4 As shown, the step of responding to a power-on or reset signal and obtaining a threshold group based on the selection flag information specifically includes: S402, based on the trigger signal generated by the system power-on or reset, initiates the operation status verification process; S404, Based on the selection flag information and a preset mapping table, a threshold group is obtained, which includes at least a safe voltage range, a temperature threshold, and a power threshold. S406, based on the preset first acquisition cycle, sends data requests to the voltage sensor, temperature sensor and power management unit according to the real-time sensor data acquisition command, and obtains core voltage information, processor temperature information and battery power information.
[0029] It should be noted that in this embodiment, when a power-on or reset signal is detected, the programmable logic device (CPLD) immediately initiates its internal state verification process control logic. Simultaneously, based on the obtained selection flag information, it quickly retrieves and loads a complete set of threshold parameters matching the target operating system by querying a mapping table pre-stored in non-volatile memory; these parameters include precisely set upper and lower limits for safe voltage, temperature safety threshold, and minimum operating power threshold. To ensure the real-time nature of the evidence, the CPLD also synchronously sends data acquisition commands to the voltage sensor, temperature sensor, and power management unit at a preset fixed time period, uniformly acquiring the current core voltage information, processor temperature information, and battery power information. This embodiment, through a systematic parameter management and synchronous data acquisition mechanism, ensures the relevance of the verification benchmark, guarantees the timeliness of the state assessment, and provides an accurate data foundation for subsequent chain verifications.
[0030] According to an embodiment of the present invention, the operation status verification process specifically includes: Initiate the voltage stability verification process; If the core voltage information is within the safe voltage range of the threshold group, then the voltage stability verification is deemed successful. The temperature safety verification process is initiated only if the voltage stability verification passes. If the processor temperature information is lower than the temperature threshold of the threshold group, the temperature safety verification is deemed to have passed. The energy adequacy process will only be initiated once temperature safety verification is passed. If the battery power information is greater than the power threshold of the threshold group, the energy adequacy verification is deemed successful, and an operating system switching enable signal is output.
[0031] It should be noted that in this embodiment, the entire verification process is designed as a strictly sequential structure. First, voltage stability verification is initiated; only when the core voltage information falls entirely within the safe voltage range is it considered passed and the next stage triggered. Next, temperature safety verification is initiated; only when the processor temperature information is strictly below the temperature threshold is it considered passed and allowed to enter the energy verification stage. Finally, energy adequacy verification is initiated; only when the battery level information is clearly greater than the threshold is all verifications considered passed and a system switching enable signal is output. Failure at any stage will immediately terminate all subsequent verification processes. This embodiment, by constructing a progressive verification chain, ensures that the inspection order of critical safety parameters conforms to their importance hierarchy, avoiding unnecessary verification operations under unstable power supply or excessively high temperature conditions; thereby improving verification efficiency and reducing the hardware risks that may be caused by forced switching under abnormal conditions.
[0032] According to an embodiment of the present invention, the step of selecting and connecting the FLASH communication port based on the selection flag information specifically includes: In response to the operating system switching enable signal, a FLASH channel selection control signal is generated based on the selection flag information; Based on the FLASH channel selection control signal, the multiplexer of the CPLD module is controlled to perform signal routing switching, thereby connecting the communication channel between the target system's FLASH memory and the central processing unit (CPU). The multiplexer is controlled to disconnect the communication connection of the non-target system FLASH memory.
[0033] It should be noted that in this embodiment, when the programmable logic device receives the operating system switching enable signal, it immediately activates its internal multiplexer control logic based on the locked selection flag information, generating a precise FLASH channel selection control signal. This control signal drives the electronic switch array inside the multiplexer to reconfigure the physical connection state. First, a complete communication channel is established between the target operating system's FLASH memory and the central processing unit, ensuring reliable connections between the data bus and address bus. Simultaneously, the connection state of all relevant communication lines of the non-target system's FLASH memory is immediately cut off. This embodiment achieves physical isolation of the storage medium through hardware-level signal routing switching, eliminating mutual interference between different operating systems at the storage access level, and providing a solid hardware foundation for the independent and stable operation of the dual systems.
[0034] According to an embodiment of the present invention, when the target operating system is in normal operating condition, it further includes: The latch remains locked, ignoring input changes from the switching module; Based on the preset second acquisition cycle, real-time sensor data acquisition commands are continuously sent to obtain operating status data; The switching process of restarting the operating system is only initiated upon receiving the next power-on or reset signal.
[0035] It should be noted that in this embodiment, after the target operating system successfully boots up and enters the working state, the latch continuously maintains the locked state of its output signal, completely ignoring any input changes caused by the physical toggle switch, thus ensuring the stability of the system state during operation from a hardware perspective. Simultaneously, the programmable logic device (CPLD) continuously sends data acquisition commands to each sensor according to a preset monitoring cycle, acquiring and analyzing operational status data including core voltage, processor temperature, and battery level, without triggering any system switching actions. The entire switching decision process is only reinitialized when a complete restart is completed or a clear reset signal is received. This embodiment, by combining in-process state locking with continuous monitoring, ensures the purity of the operating environment during operation and accumulates necessary state information for the next possible switching decision.
[0036] It is worth mentioning that it also includes: Historical operating status data is acquired, and load characteristic information is obtained based on a preset feature analysis model; Based on the real-time ambient temperature data collected by the ambient temperature sensor, the temperature compensation parameters are obtained according to the preset temperature compensation logic. Based on the load characteristic information and temperature compensation parameters, and using a preset threshold group optimization algorithm, the safe voltage range, temperature threshold, and power threshold are dynamically adjusted. Update to non-volatile memory based on the dynamically adjusted threshold group.
[0037] It should be noted that this embodiment provides a dynamic optimization mechanism for threshold parameters. In this embodiment, historical operational data, including processor load rate and task execution characteristics, is continuously collected during operation. This data is processed using a built-in feature analysis model to obtain specific load characteristic information of the device. Simultaneously, real-time ambient temperature data collected by an ambient temperature sensor is combined with the data, and the corresponding parameter correction is calculated according to a preset temperature compensation logic. Based on the aforementioned load characteristic information and temperature compensation parameters, an optimization algorithm adaptively adjusts the original safe voltage range, temperature threshold, and power threshold, and stores the optimized threshold parameters in non-volatile memory for later use. This embodiment, through an environment-adaptive and load-aware threshold adjustment strategy, can intelligently optimize verification standards according to actual usage conditions and device status, thereby improving adaptability and reliability in different usage scenarios.
[0038] It is worth mentioning that it also includes: When any verification result fails, the failed verification item and verification deviation are identified. Based on the type of failed verification project and the verification deviation, an alarm level signal is generated according to a preset hierarchical alarm mechanism. Based on the alarm level signal, output a flashing light pattern or an audible alert; When the number of consecutive verification failures reaches the preset failure threshold, the switching protection mechanism is activated.
[0039] It should be noted that this embodiment provides a complete verification failure handling mechanism. In this embodiment, when any verification step fails, a failure cause analysis process is immediately initiated to accurately identify the specific failed verification item and quantify its deviation from the threshold. Subsequently, based on the type and degree of deviation of the failed item, a corresponding level of alarm signal is generated according to a preset hierarchical alarm mechanism. This alarm signal drives the prompt module to generate a specific light flashing sequence or sound prompt pattern to intuitively convey the operating status to the user. When the number of consecutive verification failures reaches a preset protection threshold, a switching protection mechanism is automatically activated, temporarily prohibiting all operating system switching operations. This embodiment, through the dual measures of hierarchical alarms and continuous failure protection, ensures that users are promptly informed of the operating status and prevents potential damage caused by repeated switching attempts under continuous abnormal conditions.
[0040] It is worth mentioning that it also includes: Based on the target operating system's selection flag information, perform peripheral compatibility queries to obtain peripheral driver support information; Obtain the status information of the currently connected peripheral device, perform compatibility verification with the peripheral device driver support information, and obtain the peripheral device compatibility verification result. When incompatible external devices are present, generate device switching or disconnection suggestions; The operating system switching process is allowed to continue only if the peripheral compatibility verification passes.
[0041] It should be noted that this embodiment provides a peripheral compatibility verification mechanism. In this embodiment, at the initial stage of the operating system switching process, the list of peripheral drivers supported by the target operating system is queried based on the target operating system's selection flag information to obtain complete peripheral driver support information. Simultaneously, all currently connected external devices are scanned to obtain their device identifiers and working status information, which are then compared and analyzed with the support list to generate detailed peripheral compatibility verification results. When an incompatible external device is found, specific device switching suggestions or disconnection instructions are generated. Finally, the subsequent operating system switching process is only allowed to continue when all connected external devices pass the compatibility verification. This embodiment, through pre-emptive peripheral compatibility checks, avoids system startup failures or functional abnormalities caused by driver incompatibility or device conflicts, improving the success rate of operating system switching and user experience.
[0042] Figure 5 A block diagram of a dual-operating system switching system for tablets according to the present invention is shown.
[0043] like Figure 5 As shown, a second aspect of the present invention discloses a dual-operating system switching system 5 for a tablet, comprising a memory 51 and a processor 52. The memory includes a dual-operating system switching method program for a tablet, which, when executed by the processor, performs the following steps: In response to the selection signal from the target operating system, selection flag information is obtained based on latching operations; In response to a power-on or reset signal, a threshold group is obtained based on the selection flag information; Obtain core voltage information, and compare the core voltage information with the safe voltage range of the threshold group to obtain voltage stability verification results; Obtain processor temperature information, and compare the processor temperature information with the temperature threshold of the threshold group to obtain the temperature safety verification result; Obtain battery power information, and compare the battery power information with the power threshold of the threshold group to obtain the energy adequacy verification result; When all the above verification results are passed, the FLASH communication port is selected and connected according to the selection flag information; The operating system bootloader is read and executed based on the FLASH communication port.
[0044] It should be noted that, in this embodiment, the user's target system selection signal is first received via a physical toggle switch, and the selection state is immediately locked by a latch to form stable selection flag information, effectively preventing subsequent misoperations. When the device is powered on or reset, preset threshold parameters are invoked based on the selection flag information. Subsequently, a series of state verifications are performed sequentially: first, the core voltage information is obtained through a voltage sensor and compared with a safe voltage range to ensure power stability; then, the processor temperature information is obtained through a temperature sensor and compared with a temperature threshold to prevent overheating; subsequently, the battery power information is obtained through the power management unit and compared with a power threshold to ensure sufficient energy. When all verifications pass, the programmable logic device (CPLD) controls a multiplexer to connect the communication channel between the target operating system's FLASH memory and the central processing unit (CPU) according to the selection flag information. Finally, the CPU reads and executes the target operating system's boot program through this channel, completing the entire switching process. This embodiment ensures the reliability and stability of the operating system switching process through hardware-level state locking and multi-parameter sequential verification mechanisms, while avoiding the risk of operating system startup failure or hardware damage due to voltage fluctuations, abnormal temperatures, or insufficient power.
[0045] According to an embodiment of the present invention, the step of obtaining selection flag information based on a latching operation in response to a selection signal from the target operating system specifically includes: Based on the electrical signal generated by the toggle switch of the switching module, state sampling and debouncing are performed using a latch to obtain and output a stable target operating system selection signal; Based on the selection signal of the target operating system, the selection flag information of the target operating system is obtained by performing signal parsing logic based on the CPLD module; The latching operation further includes maintaining the output of the target operating system's selection signal during operating system operation.
[0046] It should be noted that in this embodiment, when the user operates the toggle switch, a corresponding electrical signal is generated. The latch collects this signal through its internal sampling circuit and performs debouncing processing to eliminate interference pulses caused by mechanical switch bounce, outputting a stable and reliable target system selection signal. The stable signal is then transmitted to the input port of the complex programmable logic device (CPU), where it is decoded by its internal signal analysis logic circuit to accurately identify the specific operating system selected by the user and generate corresponding selection flag information. Furthermore, after the target operating system enters normal operation, the latch continuously maintains its output state lock, completely ignoring any subsequent state changes that may occur due to the toggle switch. This embodiment, through hardware debouncing and state retention technology, solves the problem of operating system switching errors caused by switch bounce and accidental touches during operation, providing an accurate and tamper-proof selection basis for subsequent processes.
[0047] According to an embodiment of the present invention, the step of obtaining a threshold group based on the selection flag information in response to a power-on or reset signal specifically includes: The operational status verification process is initiated based on the trigger signal generated by system power-on or reset. Based on the selected flag information and a preset mapping table, a threshold group is obtained, which includes at least a safe voltage range, a temperature threshold, and a power threshold. Based on the preset first acquisition cycle, according to the real-time sensor data acquisition command, data requests are sent to the voltage sensor, temperature sensor and power management unit to obtain core voltage information, processor temperature information and battery power information.
[0048] It should be noted that in this embodiment, when a power-on or reset signal is detected, the programmable logic device (CPLD) immediately initiates its internal state verification process control logic. Simultaneously, based on the obtained selection flag information, it quickly retrieves and loads a complete set of threshold parameters matching the target operating system by querying a mapping table pre-stored in non-volatile memory; these parameters include precisely set upper and lower limits for safe voltage, temperature safety threshold, and minimum operating power threshold. To ensure the real-time nature of the evidence, the CPLD also synchronously sends data acquisition commands to the voltage sensor, temperature sensor, and power management unit at a preset fixed time period, uniformly acquiring the current core voltage information, processor temperature information, and battery power information. This embodiment, through a systematic parameter management and synchronous data acquisition mechanism, ensures the relevance of the verification benchmark, guarantees the timeliness of the state assessment, and provides an accurate data foundation for subsequent chain verifications.
[0049] According to an embodiment of the present invention, the operation status verification process specifically includes: Initiate the voltage stability verification process; If the core voltage information is within the safe voltage range of the threshold group, then the voltage stability verification is deemed successful. The temperature safety verification process is initiated only if the voltage stability verification passes. If the processor temperature information is lower than the temperature threshold of the threshold group, the temperature safety verification is deemed to have passed. The energy adequacy process will only be initiated once temperature safety verification is passed. If the battery power information is greater than the power threshold of the threshold group, the energy adequacy verification is deemed successful, and an operating system switching enable signal is output.
[0050] It should be noted that in this embodiment, the entire verification process is designed as a strictly sequential structure. First, voltage stability verification is initiated; only when the core voltage information falls entirely within the safe voltage range is it considered passed and the next stage triggered. Next, temperature safety verification is initiated; only when the processor temperature information is strictly below the temperature threshold is it considered passed and allowed to enter the energy verification stage. Finally, energy adequacy verification is initiated; only when the battery level information is clearly greater than the threshold is all verifications considered passed and a system switching enable signal is output. Failure at any stage will immediately terminate all subsequent verification processes. This embodiment, by constructing a progressive verification chain, ensures that the inspection order of critical safety parameters conforms to their importance hierarchy, avoiding unnecessary verification operations under unstable power supply or excessively high temperature conditions; thereby improving verification efficiency and reducing the hardware risks that may be caused by forced switching under abnormal conditions.
[0051] According to an embodiment of the present invention, the step of selecting and connecting the FLASH communication port based on the selection flag information specifically includes: In response to the operating system switching enable signal, a FLASH channel selection control signal is generated based on the selection flag information; Based on the FLASH channel selection control signal, the multiplexer of the CPLD module is controlled to perform signal routing switching, thereby connecting the communication channel between the target system's FLASH memory and the central processing unit (CPU). The multiplexer is controlled to disconnect the communication connection of the non-target system FLASH memory.
[0052] It should be noted that in this embodiment, when the programmable logic device receives the operating system switching enable signal, it immediately activates its internal multiplexer control logic based on the locked selection flag information, generating a precise FLASH channel selection control signal. This control signal drives the electronic switch array inside the multiplexer to reconfigure the physical connection state. First, a complete communication channel is established between the target operating system's FLASH memory and the central processing unit, ensuring reliable connections between the data bus and address bus. Simultaneously, the connection state of all relevant communication lines of the non-target system's FLASH memory is immediately cut off. This embodiment achieves physical isolation of the storage medium through hardware-level signal routing switching, eliminating mutual interference between different operating systems at the storage access level, and providing a solid hardware foundation for the independent and stable operation of the dual systems.
[0053] According to an embodiment of the present invention, when the target operating system is in normal operating condition, it further includes: The latch remains locked, ignoring input changes from the switching module; Based on the preset second acquisition cycle, real-time sensor data acquisition commands are continuously sent to obtain operating status data; The switching process of restarting the operating system is only initiated upon receiving the next power-on or reset signal.
[0054] It should be noted that in this embodiment, after the target operating system successfully boots up and enters the working state, the latch continuously maintains the locked state of its output signal, completely ignoring any input changes caused by the physical toggle switch, thus ensuring the stability of the system state during operation from a hardware perspective. Simultaneously, the programmable logic device (CPLD) continuously sends data acquisition commands to each sensor according to a preset monitoring cycle, acquiring and analyzing operational status data including core voltage, processor temperature, and battery level, without triggering any system switching actions. The entire switching decision process is only reinitialized when a complete restart is completed or a clear reset signal is received. This embodiment, by combining in-process state locking with continuous monitoring, ensures the purity of the operating environment during operation and accumulates necessary state information for the next possible switching decision.
[0055] It is worth mentioning that it also includes: Historical operating status data is acquired, and load characteristic information is obtained based on a preset feature analysis model; Based on the real-time ambient temperature data collected by the ambient temperature sensor, the temperature compensation parameters are obtained according to the preset temperature compensation logic. Based on the load characteristic information and temperature compensation parameters, and using a preset threshold group optimization algorithm, the safe voltage range, temperature threshold, and power threshold are dynamically adjusted. Update to non-volatile memory based on the dynamically adjusted threshold group.
[0056] It should be noted that this embodiment provides a dynamic optimization mechanism for threshold parameters. In this embodiment, historical operational data, including processor load rate and task execution characteristics, is continuously collected during operation. This data is processed using a built-in feature analysis model to obtain specific load characteristic information of the device. Simultaneously, real-time ambient temperature data collected by an ambient temperature sensor is combined with the data, and the corresponding parameter correction is calculated according to a preset temperature compensation logic. Based on the aforementioned load characteristic information and temperature compensation parameters, an optimization algorithm adaptively adjusts the original safe voltage range, temperature threshold, and power threshold, and stores the optimized threshold parameters in non-volatile memory for later use. This embodiment, through an environment-adaptive and load-aware threshold adjustment strategy, can intelligently optimize verification standards according to actual usage conditions and device status, thereby improving adaptability and reliability in different usage scenarios.
[0057] It is worth mentioning that it also includes: When any verification result fails, the failed verification item and verification deviation are identified. Based on the type of failed verification project and the verification deviation, an alarm level signal is generated according to a preset hierarchical alarm mechanism. Based on the alarm level signal, output a flashing light pattern or an audible alert; When the number of consecutive verification failures reaches the preset failure threshold, the switching protection mechanism is activated.
[0058] It should be noted that this embodiment provides a complete verification failure handling mechanism. In this embodiment, when any verification step fails, a failure cause analysis process is immediately initiated to accurately identify the specific failed verification item and quantify its deviation from the threshold. Subsequently, based on the type and degree of deviation of the failed item, a corresponding level of alarm signal is generated according to a preset hierarchical alarm mechanism. This alarm signal drives the prompt module to generate a specific light flashing sequence or sound prompt pattern to intuitively convey the operating status to the user. When the number of consecutive verification failures reaches a preset protection threshold, a switching protection mechanism is automatically activated, temporarily prohibiting all operating system switching operations. This embodiment, through the dual measures of hierarchical alarms and continuous failure protection, ensures that users are promptly informed of the operating status and prevents potential damage caused by repeated switching attempts under continuous abnormal conditions.
[0059] It is worth mentioning that it also includes: Based on the target operating system's selection flag information, perform peripheral compatibility queries to obtain peripheral driver support information; Obtain the status information of the currently connected peripheral device, perform compatibility verification with the peripheral device driver support information, and obtain the peripheral device compatibility verification result. When incompatible external devices are present, generate device switching or disconnection suggestions; The operating system switching process is allowed to continue only if the peripheral compatibility verification passes.
[0060] It should be noted that this embodiment provides a peripheral compatibility verification mechanism. In this embodiment, at the initial stage of the operating system switching process, the list of peripheral drivers supported by the target operating system is queried based on the target operating system's selection flag information to obtain complete peripheral driver support information. Simultaneously, all currently connected external devices are scanned to obtain their device identifiers and working status information, which are then compared and analyzed with the support list to generate detailed peripheral compatibility verification results. When an incompatible external device is found, specific device switching suggestions or disconnection instructions are generated. Finally, the subsequent operating system switching process is only allowed to continue when all connected external devices pass the compatibility verification. This embodiment, through pre-emptive peripheral compatibility checks, avoids system startup failures or functional abnormalities caused by driver incompatibility or device conflicts, improving the success rate of operating system switching and user experience.
[0061] A third aspect of the present invention provides a computer-readable storage medium including a method program for switching between dual operating systems on a tablet computer. When the method program is executed by a processor, it implements the steps of the method for switching between dual operating systems on a tablet computer as described in any of the preceding claims.
[0062] In summary, this invention provides a method, system, and storage medium for switching between dual operating systems in a tablet. Responding to a target operating system selection signal emitted by a toggle switch, a selection flag is generated through a latching operation. Subsequently, upon power-on or reset, a preset threshold group of parameters is invoked, and real-time collected core voltage information, processor temperature information, and battery power information are compared sequentially with the threshold group. Once all verifications are successful, a multiplexer is controlled based on the selection flag information to connect the communication channel between the FLASH memory corresponding to the target operating system and the central processing unit, ultimately reading and executing the boot program of the target operating system. This ensures the reliability and stability of the operating system switching process. Simultaneously, by physically isolating the storage access paths of different operating systems, the independence and security of the dual-system operation are guaranteed.
[0063] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0064] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A dual operating system switching method applied to a tablet, applied to a single tablet dual operating system switching circuit, the circuit comprising a CPLD module, a switching module, a latch module and a multi-system FLASH module; the switching module is used for receiving a selection signal of a target operating system of a user; the latch module is used for latching the selection signal; the CPLD module is used for monitoring circuit state and switching operating system; the multi-system FLASH module comprises an Android system FLASH and a Hongmeng system FLASH; characterized in that the method comprises: in response to the selection signal of the target operating system, obtaining selection flag information based on a latching operation; in response to a power-on or reset signal, obtaining a threshold group according to the selection flag information; obtaining core voltage information, and obtaining a voltage stability verification result based on comparison between the core voltage information and a safe voltage range of the threshold group; obtaining processor temperature information, and obtaining a temperature safety verification result based on comparison between the processor temperature information and a temperature threshold of the threshold group; obtaining battery power information, and obtaining an energy sufficiency verification result based on comparison between the battery power information and a power threshold of the threshold group; when the above verification results are all passed, selecting and connecting a FLASH communication port according to the selection flag information; reading and executing an operating system boot program according to the FLASH communication port.
2. The dual operating system switching method applied to a tablet according to claim 1, wherein, in response to the selection signal of the target operating system, obtaining selection flag information based on a latching operation, specifically comprising: based on a latch, performing state sampling and de-bouncing processing on an electrical signal generated by a toggle switch of the switching module, to obtain and output a stable selection signal of the target operating system; based on a signal analysis logic of the CPLD module, obtaining selection flag information of the target operating system according to the selection signal of the target operating system; wherein the latching operation further comprises maintaining output of the selection signal of the target operating system during operating system running.
3. The method of claim 1, wherein the method is applied to a tablet computer. in response to the power-on or reset signal, obtaining a threshold group according to the selection flag information, specifically comprising: starting a running state verification process according to a trigger signal generated by system power-on or reset; based on a preset mapping table, obtaining a threshold group including a safe voltage range, a temperature threshold and a power threshold according to the selection flag information; based on a preset first collection period, sending a data request to a voltage sensor, a temperature sensor and a power management unit according to a real-time sensor data collection instruction, to obtain core voltage information, processor temperature information and battery power information.
4. The dual operating system switching method for a tablet according to claim 3, wherein, the running state verification process, specifically comprising: starting a voltage stability verification process; if the core voltage information is within the safe voltage range of the threshold group, determining that voltage stability verification is passed; starting a temperature safety verification process only when voltage stability verification is passed; if the processor temperature information is lower than the temperature threshold of the threshold group, determining that temperature safety verification is passed; starting an energy sufficiency process only when temperature safety verification is passed; If the battery power information is greater than the power threshold of the threshold group, it is determined that the energy sufficiency verification is passed, and an operating system switching enable signal is output.
5. The method of claim 1, wherein the method is applied to a tablet computer. The selecting and connecting the FLASH communication port according to the selection flag information specifically includes: In response to the operating system switching enable signal, generating a FLASH channel selection control signal according to the selection flag information; According to the FLASH channel selection control signal, controlling the multiplexer of the CPLD module to switch the signal routing, and connecting the communication channel between the target system FLASH memory and the central processing unit CPU; Controlling the multiplexer to disconnect the communication connection of the non-target system FLASH memory.
6. The dual operating system switching method for a tablet according to claim 1, wherein, When the target operating system is in a normal running state, further comprising: The latch maintains a locked state and ignores the input changes of the switching module; Based on a preset second acquisition period, continuously sending real-time sensor data acquisition instructions to obtain running state data; Only when the next power-on or reset signal is received, the switching process of the operating system is restarted.
7. A dual operating system switching system applied to a tablet, applied to a single tablet dual operating system switching circuit, the circuit comprising a CPLD module, a switching module, a latch module and a multi-system FLASH module; The switching module is used for receiving a selection signal of a target operating system of a user; The latch module is used for latching the selection signal; The CPLD module is used for monitoring circuit states and switching operating systems; The multi-system FLASH module comprises an Android system FLASH and a Hongmeng system FLASH; characterized in that The system comprises a memory and a processor, the memory comprising a dual operating system switching method program applied to a tablet, the dual operating system switching method program applied to a tablet being implemented by the processor to achieve the following steps: In response to the selection signal of the target operating system, obtaining selection flag information based on a latching operation; In response to a power-on or reset signal, obtaining a threshold group according to the selection flag information; Obtaining core voltage information, and obtaining a voltage stability verification result based on a comparison between the core voltage information and a safe voltage range of the threshold group; Obtaining processor temperature information, and obtaining a temperature safety verification result based on a comparison between the processor temperature information and a temperature threshold of the threshold group; Obtaining battery power information, and obtaining an energy sufficiency verification result based on a comparison between the battery power information and a power threshold of the threshold group; When the above verification results are all passed, selecting and connecting a FLASH communication port according to the selection flag information; Reading and executing an operating system boot program according to the FLASH communication port.
8. The dual operating system switching system applied to a tablet according to claim 7, wherein, The obtaining selection flag information based on a latching operation in response to the selection signal of the target operating system specifically includes: Based on a latch, sampling and de-bouncing the electrical signal generated by the toggle switch of the switching module to obtain and output a stable selection signal of the target operating system; Based on the signal analysis logic of the CPLD module, obtaining the selection flag information of the target operating system according to the selection signal of the target operating system; The latch operation further comprises maintaining the output of the selection signal of the target operating system during the operation of the operating system.
9. The dual operating system switching system for a tablet according to claim 7, wherein, The threshold value group is obtained according to the selection flag information in response to the power-on or reset signal, and specifically comprises: A running state verification process is started according to a trigger signal generated by system power-on or reset; The threshold value group is obtained according to the selection flag information based on a preset mapping table, and at least includes a safe voltage range, a temperature threshold value and a power threshold value; Based on a preset first acquisition cycle, data requests are sent to a voltage sensor, a temperature sensor and a power management unit according to real-time sensor data acquisition instructions to obtain core voltage information, processor temperature information and battery power information.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer readable storage medium comprises a dual operating system switching method program applied to a tablet, and when the dual operating system switching method program applied to the tablet is executed by a processor, the steps of the dual operating system switching method applied to the tablet as claimed in any one of claims 1 to 6 are implemented.