Power-on control method and system based on tablet computer USB and storage medium

By obtaining the input voltage and USB interface status, the drive power-on logic control module switches the voltage conversion module status, solving the problem of the tablet computer's USB power-on self-start design occupying the USB interface, realizing the combination of power-on self-start and USB interface communication. Improved user experience.

CN119126955AActive Publication Date: 2024-12-13SHENZHEN JOYAR TECH (GRP) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411624877.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2024-12-13
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

The USB power-on self-start design of existing tablet computers occupies a USB interface, and cannot realize the function of self-start power-on and maintaining the USB interface communication.

Method used

By obtaining the input voltage information and the USB interface status, the power-on logic control module is driven to switch the voltage conversion module status, and toggle the USB interface working mode according to the voltage and level information, so as to realize power-on self-start and release the USB interface for communication.

Benefits of technology

It realizes the power-on self-start function and maintains the communication function of USB interface, which improves the user experience and avoids the occupation of USB interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119126955A_ABST
    Figure CN119126955A_ABST
Patent Text Reader

Abstract

The invention provides a power-on control method and system based on a tablet computer USB and a storage medium, when it is judged that a power supply demand is met according to first voltage information, whether a USB interface is in an access state is judged, if yes, a power-on logic control module is driven to control a voltage conversion module to be switched to an output state, and a power-on self-starting function is achieved; then, first level information of the control input end and the working mode of the USB interface are switched according to the second voltage information, so that the power-on working state is maintained, and the USB interface is released for communication; therefore, the power-on self-starting function is realized and the USB interface communication function is maintained, so that the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of tablet computers, and more specifically, to a power-on control method, system and storage medium based on a USB of a tablet computer. Background Art

[0002] At present, there is a demand for the automatic startup function of electrical products on the platforms of MediaTek, Qualcomm, Spreadtrum, etc. in the market. For example, treadmills, cash registers, advertising machines and tablet computers are products without batteries, which usually use direct power supply by plugging in a DC adapter. When the DC adapter is plugged in and powered on, the automatic startup function is required.

[0003] There are two common design solutions for the power-on self-start function in the market. One is to use the power button of the product to achieve power-on self-start. However, the disadvantage of this solution is that the power button is occupied and cannot be used for functions such as key wake-up and long press restart. In addition, in the program download step of the production line, the power button will have the risk of abnormalities such as download failure and download failure under the default potential. The other is to provide a constant power supply to trigger the power-on by connecting to USB, but the disadvantage of this solution is that it will occupy a USB port, which means that the USB port can only be used for the power-on self-start function.

[0004] Therefore, there is an urgent need for a power-on control technology based on a tablet computer USB that can realize automatic power-on and does not occupy the USB interface function, so as to improve the user experience. Summary of the invention

[0005] In view of the above problems, the purpose of the present invention is to provide a power-on control method, system and storage medium based on a tablet computer USB, which can automatically drive the power-on logic control module according to the size of the input voltage and the access status of the USB interface to realize the power-on self-start function; when it is judged that the working voltage is in a stable state, the switch control input terminal maintains the power-on state, and switches the working mode of the USB interface according to the level state of the USB interface, so as to realize power-on self-start and maintain the communication function of the USB interface, so as to improve the user experience.

[0006] A first aspect of the present invention provides a power-on control method based on a tablet computer USB, the method comprising: Acquiring first voltage information; Determining whether the first voltage information is within a preset first voltage range; If yes, determining whether the USB interface is in an access state; If yes, driving the power-on logic control module to control the voltage conversion module to switch to the output state; Acquiring second voltage information; The first level information of the control input terminal and the working mode of the USB interface are switched according to the second voltage information.

[0007] In this solution, switching the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: measuring and recording at least three pieces of the second voltage information according to a preset time interval; Obtaining a first voltage sequence according to a preset sorting method based on the recorded second voltage information; determining a sequence interception rule according to the amount of the second voltage information; According to the first voltage sequence and the sequence interception rule, a second voltage sequence is obtained; Obtaining third voltage information according to the second voltage sequence; Determining whether the third voltage information is within a preset second voltage range; If yes, obtaining first voltage difference information according to the third voltage information and the first voltage sequence; Determining whether the first voltage difference information is less than a preset first voltage difference threshold; If so, the voltage conversion module is in a stable state, and the first level information of the control input terminal is switched from the first level to the second level.

[0008] In this solution, switching the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: Determining that the output voltage of the voltage conversion module is in a stable state; Acquire second level information of the USB input terminal; Determining whether the second level information has a level change within a preset first time; If not, determining whether the USB interface is in USB communication mode; If yes, determining whether the second level information is the first level; If yes, switch the USB interface to host mode; If not, switch the USB interface to slave device mode.

[0009] In this solution, the switching of the first level information of the control input terminal from the first level to the second level is specifically: When it is determined that the first level information is switched to a second level; Configuring the USB interface to USB communication mode; According to the second voltage information, determining whether the voltage conversion module is in a stable state; If not, the USB interface is configured as an output mode, and a first abnormal instruction is sent to the background host.

[0010] This plan also includes: When it is determined that the USB interface is in host mode; Determine the first time information according to the sending instruction of USB communication; Determining whether the first time information exceeds a preset first time threshold; If so, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level.

[0011] This plan also includes: When it is determined that the USB interface is in slave device mode; Determining second time information according to a received instruction of the USB communication; Determining whether the second time information exceeds a preset second time threshold; If so, the first level information of the control input terminal is switched from the second level to the first level.

[0012] A second aspect of the present invention provides a power-on control system based on a tablet computer USB, including a power-on control method program based on a tablet computer USB, wherein the power-on control method program based on a tablet computer USB implements the following steps when executed by the processor: Acquiring first voltage information; Determining whether the first voltage information is within a preset first voltage range; If yes, determining whether the USB interface is in an access state; If yes, driving the power-on logic control module to control the voltage conversion module to switch to the output state; Acquiring second voltage information; The first level information of the control input terminal and the working mode of the USB interface are switched according to the second voltage information.

[0013] In this solution, switching the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: measuring and recording at least three pieces of the second voltage information according to a preset time interval; Obtaining a first voltage sequence according to a preset sorting method based on the recorded second voltage information; determining a sequence interception rule according to the amount of the second voltage information; According to the first voltage sequence and the sequence interception rule, a second voltage sequence is obtained; Obtaining third voltage information according to the second voltage sequence; Determining whether the third voltage information is within a preset second voltage range; If yes, obtaining first voltage difference information according to the third voltage information and the first voltage sequence; Determining whether the first voltage difference information is less than a preset first voltage difference threshold; If so, the voltage conversion module is in a stable state, and the first level information of the control input terminal is switched from the first level to the second level.

[0014] In this solution, the first level information of the control input terminal and the working mode of the USB interface are switched according to the second voltage information, specifically: Determining that the output voltage of the voltage conversion module is in a stable state; Acquire second level information of the USB input terminal; Determining whether the second level information has a level change within a preset first time; If not, determining whether the USB interface is in USB communication mode; If yes, determining whether the second level information is the first level; If yes, switch the USB interface to host mode; If not, switch the USB interface to slave device mode.

[0015] A third aspect of the present invention provides a computer-readable storage medium, which includes a power-on control method program based on a tablet computer USB. When the power-on control method program based on a tablet computer USB is executed by a processor, the steps of the power-on control method based on a tablet computer USB as described in any one of the above items are implemented.

[0016] The present invention provides a power-on control method, system and storage medium based on a tablet computer USB. When it is determined according to first voltage information that the power supply requirement is met, it is determined whether the USB interface is in an access state. If so, a voltage conversion module is controlled to switch to an output state by driving a power-on logic control module to realize a power-on self-start function. Then, according to second voltage information, the first level information of the control input terminal and the working mode of the USB interface are switched to realize maintaining the power-on working state and releasing the USB interface for a communication function. Then, power-on self-start is realized and the communication function of the USB interface is maintained, so as to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope.

[0018] Figure 1 The schematic diagram of the structure of the power-on control circuit based on the USB of a tablet computer is shown; Figure 2 A flow chart of a power-on control method based on a tablet computer USB of the present invention is shown; Figure 3 A switching flow chart of first level information provided by an embodiment of the present invention is shown; Figure 4 A flow chart showing the switching of the USB interface working mode provided by an embodiment of the present invention is shown; Figure 5 The block diagram of the power-on control system based on the USB of a tablet computer of the present invention is shown. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 creative work are within the scope of protection of the present invention.

[0020] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meanings as commonly understood by those skilled in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless the embodiments of the present invention are explicitly defined in this way.

[0021] The words "first", "second" and similar words used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. Similarly, words such as "include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention are not necessarily carried out in order. On the contrary, various steps can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a step or several steps can be removed from these processes.

[0022] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0023] Figure 1 The schematic diagram of the structure of the power-on control circuit based on the USB of a tablet computer is shown.

[0024] like Figure 1 As shown, a power-on control circuit based on a tablet computer USB, the circuit comprising: USB interface, voltage conversion module and power-on logic control module; The USB interface is used to trigger the tablet computer to power on and perform USB data communication; The voltage conversion module includes an enable control terminal for converting the input power supply voltage into an operating voltage suitable for the tablet computer; The power-on logic control module includes a USB input terminal and a control input terminal, which are used to control the working state of the voltage conversion module.

[0025] It should be noted that the processor can switch the level state of the control input terminal of the power-on logic control module and configure the working state of the USB interface. The power-on logic control module adjusts the output level of the power-on logic control module according to the level of the USB input terminal and the level of the control input terminal according to a preset logical operation to control the working state of the voltage conversion module.

[0026] Figure 2 The flowchart of the power-on control method based on the USB of a tablet computer of the present invention is shown.

[0027] like Figure 2As shown, the present invention discloses a power-on control method based on a tablet computer USB, the method comprising: S202, obtaining first voltage information; S204, determining whether the first voltage information is within a preset first voltage range; S206, if yes, determine whether the USB interface is in an access state; S208, if yes, driving the power-on logic control module to control the voltage conversion module to switch to an output state; S210, obtaining second voltage information; S212: Switch the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information.

[0028] It should be noted that the first voltage information is the input voltage obtained by the voltage conversion module, that is, the external input power supply voltage; the second voltage information is the output voltage of the voltage conversion module when it is in the output state, that is, the working voltage provided by the voltage conversion module to the processor and its circuit system; the first level information is the level of the control pin output by the processor to the power-up logic control module. When the tablet computer switches from the power-off state to the power-on state, in order to achieve power-on self-start, the following steps are taken: First, determine whether the input power supply voltage value is within the preset first voltage range. In actual applications, when the target standard voltage is 5 volts, as an implementation method, the allowed input voltage range is 4.8 volts to 5.2 volts, so as to avoid insufficient system working voltage due to too low input voltage or burning of system circuit due to too high input voltage. When it is determined that the input power supply voltage value is within the preset first voltage range, it is determined whether the USB interface is connected to a peripheral device; wherein the peripheral device includes but is not limited to a control device, a communication device, etc. When the USB interface is in the connected state, the output level of the power-on logic control module is adjusted by switching the level of the USB input terminal of the power-on logic control module, so as to switch the voltage conversion module to the output state, so that the voltage conversion module converts the input power supply voltage into the working voltage that meets the working requirements of the processor and its circuit system. Finally, the amplitude and stability of the working voltage are analyzed, and the first level information of the control input terminal and the working mode of the USB interface are switched according to the amplitude and stability of the working voltage, so that the tablet computer can maintain the supply of working power after power-on, and release the USB interface at the same time, so that the USB interface is switched back to the USB communication mode to avoid the occupation of the USB interface; thereby improving the user experience.

[0029] Figure 3 A switching flow chart of first level information provided by an embodiment of the present invention is shown.

[0030] According to an embodiment of the present invention, Figure 3 As shown, the switching of the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically as follows: S302, measuring and recording at least three pieces of the second voltage information according to a preset time interval; S304, obtaining a first voltage sequence according to a preset sorting method based on the recorded second voltage information; S306, determining a sequence interception rule according to the amount of the second voltage information; S308, obtaining a second voltage sequence according to the first voltage sequence and the sequence interception rule; S310, obtaining third voltage information according to the second voltage sequence; S312, determining whether the third voltage information is within a preset second voltage range; S314: If yes, obtaining first voltage difference information according to the third voltage information and the first voltage sequence; S316, determining whether the first voltage difference information is less than a preset first voltage difference threshold; S318: If yes, the voltage conversion module is in a stable state, and the first level information of the control input terminal is switched from the first level to the second level.

[0031] It should be noted that, in actual applications, the first level information of the control input terminal and the working mode of the USB interface are switched according to the amplitude and stability of the second voltage information. First, the collected second voltage information is continuously recorded according to a preset time period, and the recorded second voltage information is sorted in ascending or descending order to obtain a first voltage sequence; according to the amount of second voltage information contained in the first voltage sequence, a sequence interception rule is determined. As an implementation method, the interception rule is to retain 60% of the data in the middle of the sequence, that is, to eliminate the first 20% and the last 20% of the data in the sequence. Since the first voltage sequence is arranged in ascending or descending order, it means eliminating the higher and lower values ​​in the first voltage sequence. Secondly, the first voltage sequence is intercepted according to the sequence interception rule to obtain a second voltage sequence, and the voltage mean in the second voltage sequence is calculated according to the second voltage sequence, that is, the average value of the recorded second voltage information, which is recorded as the third voltage information. Then, when it is determined that the third voltage information is within the preset second voltage range, that is, the third voltage information meets the working voltage requirements provided by the processor and its circuit system, the maximum value of the difference between the second voltage information and the third voltage information in the first voltage sequence is calculated and obtained according to the third voltage information and the first voltage sequence, and recorded as the first voltage difference information. Finally, when it is determined that the first voltage difference information is lower than the preset difference threshold, it means that the vibration amplitude of the second voltage information is within an acceptable range, that is, the stability of the second voltage information meets the working requirements, therefore, the first level information of the control input terminal is switched from the first level to the second level; wherein the first level is a high level and the second level is a low level.

[0032] Figure 4 A flow chart showing the switching of the USB interface working mode provided by an embodiment of the present invention is shown.

[0033] According to an embodiment of the present invention, Figure 4 As shown, the switching of the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically as follows: S402, determining that the output voltage of the voltage conversion module is in a stable state; S404, obtaining second level information of the USB input terminal; S406, determining whether the second level information has a level change within a preset first time; S408, if not, determining whether the USB interface is in USB communication mode; S410, if yes, determining whether the second level information is the first level; S412, if yes, switch the USB interface to host mode; S414, if not, switch the USB interface to slave device mode.

[0034] It should be noted that the second level information is a level signal of the USB input terminal of the power-on logic control module. When the output voltage of the voltage conversion module is in a stable state, that is, when the second voltage information meets the working voltage requirements provided by the processor and its circuit system, first, obtain the level signal of the USB input terminal of the power-on logic control module, and determine whether the level signal changes within a preset time; if the level signal does not change, it indicates that the USB interface is stable and there is a possibility of being in the USB device state. Then, when it is determined that the USB interface is in the USB communication mode, determine whether the level information of the second level information is the first level, that is, determine whether the second level information is a high level; if so, set the USB interface to the host mode for actively initiating USB communication; if not, set the USB interface to the slave mode for passively receiving USB communication.

[0035] According to an embodiment of the present invention, the switching of the first level information of the control input terminal from the first level to the second level is specifically: When it is determined that the first level information is switched to a second level; Configuring the USB interface to USB communication mode; According to the second voltage information, determining whether the voltage conversion module is in a stable state; If not, the USB interface is configured as an output mode, and a first abnormal instruction is sent to the background host.

[0036] It should be noted that, after the first level information of the control input terminal and the working mode of the USB interface are switched, the output signal of the power-on logic control module is determined by the level signal of the control input terminal, which means that the stability of the level signal of the control input terminal determines the stability of the output signal of the power-on logic control module, which directly affects the stability of the output signal of the voltage conversion module. When the first level information is switched to the second level and the USB interface is configured as the USB communication mode, it is determined whether it is in a stable state according to the second voltage information. If not, it indicates that the level signal of the control input terminal is abnormal, and the USB interface is configured as the output mode to ensure that the power-on logic control module provides a stable output level to the voltage conversion module; and at this time, the processor sends a first abnormal instruction to the background host to indicate that the level signal of the control input terminal is abnormal and the USB interface cannot be released.

[0037] According to an embodiment of the present invention, it also includes: When it is determined that the USB interface is in host mode; Determine the first time information according to the sending instruction of USB communication; Determining whether the first time information exceeds a preset first time threshold; If so, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level.

[0038] It should be noted that when it is determined that the USB interface is in host mode, the processor actively initiates a data communication request to the USB device through the USB interface. The first time information is the time interval for the processor to send the data communication request. When the time interval exceeds the preset first time threshold, it means that the device has not triggered the use state for a long time. Therefore, the device is switched to the standby state to reduce power loss. First, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level, so that the output level provided by the power-on logic control module to the voltage conversion module is pulled down, thereby turning off the voltage conversion work of the voltage conversion module, and then achieving the effect of power-off standby.

[0039] According to an embodiment of the present invention, it also includes: When it is determined that the USB interface is in slave device mode; Determining second time information according to a received instruction of the USB communication; Determining whether the second time information exceeds a preset second time threshold; If so, the first level information of the control input terminal is switched from the second level to the first level.

[0040] It should be noted that when the USB interface is judged to be in the host mode, the processor receives a request for initiating data communication from the USB device through the USB interface. The second time information is the time interval for the processor to receive the data communication request sent by the USB interface. When the time interval exceeds the preset second time threshold, it means that the device has not triggered the use state for a long time. Therefore, the device is switched to the standby state to reduce power consumption. First, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level, so that the output level provided by the power-on logic control module to the voltage conversion module is pulled down, thereby turning off the voltage conversion work of the voltage conversion module, and then achieving the effect of power-off standby.

[0041] It is worth mentioning that it also includes: At least two level inversion modules; Determine whether the input end of the level inversion module connected to the control input end is at a first level; If yes, the first level information is switched to a second level; If not, the first level information is switched to the first level; Determine whether the input end of the level inversion module connected to the USB input end is at a first level; If yes, the second level information is switched to the second level; If not, the second level information is switched to the first level.

[0042] It should be noted that the power-on logic control module includes at least two level inversion modules to improve the stability of the input level. The control input end of the power-on logic control module is connected to a level inversion module for inverting the level signal of the control input end, that is, when the level signal of the control input end is a high level, it is converted to a low level; when the level signal of the control input end is a low level, it is converted to a high level. Similarly, the USB input end of the power-on logic control module is also connected to a level inversion module to realize the level inversion function.

[0043] It is worth mentioning that it also includes: When it is determined that the USB interface is in input mode; Acquire first duration information that the second level information is at a preset level; Determining whether the first duration information exceeds a preset first duration threshold; If yes, a first key command is sent to the background host.

[0044] It should be noted that when the USB interface is in input mode, the trigger recognition function can be realized by connecting a level signal input device, such as a button, a switch, etc. Taking a button as an example, when the second level information obtained at the USB interface is in a preset level state for a duration exceeding a preset first duration threshold, it indicates that the button is in a long-press state. At this time, a first button instruction is sent to the background host, indicating that the level signal input device is in a long-press state.

[0045] It is worth mentioning that it also includes: When it is determined that the USB interface is in input mode; Acquire the time interval between two consecutive switchings of the second level information from other levels to the preset level to obtain second duration information; Determining whether the second time information is lower than a preset second time threshold; If yes, a second key command is sent to the background host.

[0046] It should be noted that when the USB interface is in input mode, the trigger recognition function can be realized by connecting a level signal input device, such as a button, a switch, etc. Taking a button as an example, when it is detected that the time interval between two consecutive switchings of the second level information obtained at the USB interface from other levels to the preset level is less than the preset second time threshold, it indicates that the button is in a continuous pressing state. At this time, a second button instruction is sent to the background host, indicating that the level signal input device is in a continuous pressing state.

[0047] Figure 5 The block diagram of the power-on control system based on the USB of a tablet computer of the present invention is shown.

[0048] like Figure 5 As shown, the present invention discloses a power-on control system 5 based on a tablet computer USB, including a memory 51 and a processor 52, wherein the memory includes a power-on control method program based on a tablet computer USB, and when the power-on control method program based on a tablet computer USB is executed by the processor, the following steps are implemented: Acquiring first voltage information; Determining whether the first voltage information is within a preset first voltage range; If yes, determining whether the USB interface is in an access state; If yes, driving the power-on logic control module to control the voltage conversion module to switch to the output state; Acquiring second voltage information; The first level information of the control input terminal and the working mode of the USB interface are switched according to the second voltage information.

[0049] It should be noted that the first voltage information is the input voltage obtained by the voltage conversion module, that is, the external input power supply voltage; the second voltage information is the output voltage of the voltage conversion module when it is in the output state, that is, the working voltage provided by the voltage conversion module to the processor and its circuit system; the first level information is the level of the control pin output by the processor to the power-up logic control module. When the tablet computer switches from the power-off state to the power-on state, in order to achieve power-on self-start, the following steps are taken: First, determine whether the input power supply voltage value is within the preset first voltage range. In actual applications, when the target standard voltage is 5 volts, as an implementation method, the allowed input voltage range is 4.8 volts to 5.2 volts, so as to avoid insufficient system working voltage due to too low input voltage or burning of system circuit due to too high input voltage. When it is determined that the input power supply voltage value is within the preset first voltage range, it is determined whether the USB interface is connected to a peripheral device; wherein the peripheral device includes but is not limited to a control device, a communication device, etc. When the USB interface is in the connected state, the output level of the power-on logic control module is adjusted by switching the level of the USB input terminal of the power-on logic control module, so as to switch the voltage conversion module to the output state, so that the voltage conversion module converts the input power supply voltage into the working voltage that meets the working requirements of the processor and its circuit system. Finally, the amplitude and stability of the working voltage are analyzed, and the first level information of the control input terminal and the working mode of the USB interface are switched according to the amplitude and stability of the working voltage, so that the tablet computer can maintain the supply of working power after power-on, and release the USB interface at the same time, so that the USB interface is switched back to the USB communication mode to avoid the occupation of the USB interface; thereby improving the user experience.

[0050] According to an embodiment of the present invention, switching the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: measuring and recording at least three pieces of the second voltage information according to a preset time interval; Obtaining a first voltage sequence according to a preset sorting method based on the recorded second voltage information; determining a sequence interception rule according to the amount of the second voltage information; According to the first voltage sequence and the sequence interception rule, a second voltage sequence is obtained; Obtaining third voltage information according to the second voltage sequence; Determining whether the third voltage information is within a preset second voltage range; If yes, obtaining first voltage difference information according to the third voltage information and the first voltage sequence; Determining whether the first voltage difference information is less than a preset first voltage difference threshold; If so, the voltage conversion module is in a stable state, and the first level information of the control input terminal is switched from the first level to the second level.

[0051] It should be noted that, in actual applications, the first level information of the control input terminal and the working mode of the USB interface are switched according to the amplitude and stability of the second voltage information. First, the collected second voltage information is continuously recorded according to a preset time period, and the recorded second voltage information is sorted in ascending or descending order to obtain a first voltage sequence; according to the amount of second voltage information contained in the first voltage sequence, a sequence interception rule is determined. As an implementation method, the interception rule is to retain 60% of the data in the middle of the sequence, that is, to eliminate the first 20% and the last 20% of the data in the sequence. Since the first voltage sequence is arranged in ascending or descending order, it means eliminating the higher and lower values ​​in the first voltage sequence. Secondly, the first voltage sequence is intercepted according to the sequence interception rule to obtain a second voltage sequence, and the voltage mean in the second voltage sequence is calculated according to the second voltage sequence, that is, the average value of the recorded second voltage information, which is recorded as the third voltage information. Then, when it is determined that the third voltage information is within the preset second voltage range, that is, the third voltage information meets the working voltage requirements provided by the processor and its circuit system, the maximum value of the difference between the second voltage information and the third voltage information in the first voltage sequence is calculated and obtained according to the third voltage information and the first voltage sequence, and recorded as the first voltage difference information. Finally, when it is determined that the first voltage difference information is lower than the preset difference threshold, it means that the vibration amplitude of the second voltage information is within an acceptable range, that is, the stability of the second voltage information meets the working requirements, therefore, the first level information of the control input terminal is switched from the first level to the second level; wherein the first level is a high level and the second level is a low level.

[0052] According to an embodiment of the present invention, switching the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: Determining that the output voltage of the voltage conversion module is in a stable state; Acquire second level information of the USB input terminal; Determining whether the second level information has a level change within a preset first time; If not, determining whether the USB interface is in USB communication mode; If yes, determining whether the second level information is the first level; If yes, switch the USB interface to host mode; If not, switch the USB interface to slave device mode.

[0053] It should be noted that the second level information is a level signal of the USB input terminal of the power-on logic control module. When the output voltage of the voltage conversion module is in a stable state, that is, when the second voltage information meets the working voltage requirements provided by the processor and its circuit system, first, obtain the level signal of the USB input terminal of the power-on logic control module, and determine whether the level signal changes within a preset time; if the level signal does not change, it indicates that the USB interface is stable and there is a possibility of being in the USB device state. Then, when it is determined that the USB interface is in the USB communication mode, determine whether the level information of the second level information is the first level, that is, determine whether the second level information is a high level; if so, set the USB interface to the host mode for actively initiating USB communication; if not, set the USB interface to the slave mode for passively receiving USB communication.

[0054] According to an embodiment of the present invention, the switching of the first level information of the control input terminal from the first level to the second level is specifically: When it is determined that the first level information is switched to a second level; Configuring the USB interface to USB communication mode; According to the second voltage information, determining whether the voltage conversion module is in a stable state; If not, the USB interface is configured as an output mode, and a first abnormal instruction is sent to the background host.

[0055] It should be noted that, after the first level information of the control input terminal and the working mode of the USB interface are switched, the output signal of the power-on logic control module is determined by the level signal of the control input terminal, which means that the stability of the level signal of the control input terminal determines the stability of the output signal of the power-on logic control module, which directly affects the stability of the output signal of the voltage conversion module. When the first level information is switched to the second level and the USB interface is configured as the USB communication mode, it is determined whether it is in a stable state according to the second voltage information. If not, it indicates that the level signal of the control input terminal is abnormal, and the USB interface is configured as the output mode to ensure that the power-on logic control module provides a stable output level to the voltage conversion module; and at this time, the processor sends a first abnormal instruction to the background host to indicate that the level signal of the control input terminal is abnormal and the USB interface cannot be released.

[0056] According to an embodiment of the present invention, it also includes: When it is determined that the USB interface is in host mode; Determine the first time information according to the sending instruction of USB communication; Determining whether the first time information exceeds a preset first time threshold; If so, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level.

[0057] It should be noted that when it is determined that the USB interface is in host mode, the processor actively initiates a data communication request to the USB device through the USB interface. The first time information is the time interval for the processor to send the data communication request. When the time interval exceeds the preset first time threshold, it means that the device has not triggered the use state for a long time. Therefore, the device is switched to the standby state to reduce power loss. First, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level, so that the output level provided by the power-on logic control module to the voltage conversion module is pulled down, thereby turning off the voltage conversion work of the voltage conversion module, and then achieving the effect of power-off standby.

[0058] According to an embodiment of the present invention, it also includes: When it is determined that the USB interface is in slave device mode; Determining second time information according to a received instruction of the USB communication; Determining whether the second time information exceeds a preset second time threshold; If so, the first level information of the control input terminal is switched from the second level to the first level.

[0059] It should be noted that when the USB interface is judged to be in the host mode, the processor receives a request for initiating data communication from the USB device through the USB interface. The second time information is the time interval for the processor to receive the data communication request sent by the USB interface. When the time interval exceeds the preset second time threshold, it means that the device has not triggered the use state for a long time. Therefore, the device is switched to the standby state to reduce power consumption. First, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level, so that the output level provided by the power-on logic control module to the voltage conversion module is pulled down, thereby turning off the voltage conversion work of the voltage conversion module, and then achieving the effect of power-off standby.

[0060] It is worth mentioning that it also includes: At least two level inversion modules; Determine whether the input end of the level inversion module connected to the control input end is at a first level; If yes, the first level information is switched to a second level; If not, the first level information is switched to the first level; Determine whether the input end of the level inversion module connected to the USB input end is at a first level; If yes, the second level information is switched to the second level; If not, the second level information is switched to the first level.

[0061] It should be noted that the power-on logic control module includes at least two level inversion modules to improve the stability of the input level. The control input end of the power-on logic control module is connected to a level inversion module for inverting the level signal of the control input end, that is, when the level signal of the control input end is a high level, it is converted to a low level; when the level signal of the control input end is a low level, it is converted to a high level. Similarly, the USB input end of the power-on logic control module is also connected to a level inversion module to realize the level inversion function.

[0062] It is worth mentioning that it also includes: When it is determined that the USB interface is in input mode; Acquire first duration information that the second level information is at a preset level; Determining whether the first duration information exceeds a preset first duration threshold; If yes, a first key command is sent to the background host.

[0063] It should be noted that when the USB interface is in input mode, the trigger recognition function can be realized by connecting a level signal input device, such as a button, a switch, etc. Taking a button as an example, when the second level information obtained at the USB interface is in a preset level state for a duration exceeding a preset first duration threshold, it indicates that the button is in a long-press state. At this time, a first button instruction is sent to the background host, indicating that the level signal input device is in a long-press state.

[0064] It is worth mentioning that it also includes: When it is determined that the USB interface is in input mode; Acquire the time interval between two consecutive switchings of the second level information from other levels to the preset level to obtain second duration information; Determining whether the second time information is lower than a preset second time threshold; If yes, a second key command is sent to the background host.

[0065] It should be noted that when the USB interface is in input mode, the trigger recognition function can be realized by connecting a level signal input device, such as a button, a switch, etc. Taking a button as an example, when it is detected that the time interval between two consecutive switchings of the second level information obtained at the USB interface from other levels to the preset level is less than the preset second time threshold, it indicates that the button is in a continuous pressing state. At this time, a second button instruction is sent to the background host, indicating that the level signal input device is in a continuous pressing state.

[0066] A third aspect of the present invention provides a computer-readable storage medium, which includes a power-on control method program based on a tablet computer USB. When the power-on control method program based on a tablet computer USB is executed by a processor, the steps of the power-on control method based on a tablet computer USB as described in any one of the above items are implemented.

[0067] The present invention provides a power-on control method, system and storage medium based on a tablet computer USB. When it is determined according to first voltage information that the power supply requirement is met, it is determined whether the USB interface is in an access state. If so, a voltage conversion module is controlled to switch to an output state by driving a power-on logic control module to realize a power-on self-start function. Then, according to second voltage information, the first level information of the control input terminal and the working mode of the USB interface are switched to realize maintaining the power-on working state and releasing the USB interface for a communication function. Then, power-on self-start is realized and the communication function of the USB interface is maintained, so as to improve the user experience.

[0068] If the functions are implemented in the form of software function 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 the present invention, or the part that contributes to the prior art, or the 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, including 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 methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0069] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A power-on control method based on a tablet computer USB is applied to a power-on control circuit based on a tablet computer USB, wherein the power-on control circuit based on a tablet computer USB comprises: USB interface, voltage conversion module and power-on logic control module; The USB interface is used to trigger the tablet computer to power on and perform USB data communication; The voltage conversion module includes an enable control terminal for converting the input power supply voltage into an operating voltage suitable for the tablet computer; The power-on logic control module includes a USB input terminal and a control input terminal, which are used to control the working state of the voltage conversion module; Characterized in that the method comprises: Acquiring first voltage information; Determining whether the first voltage information is within a preset first voltage range; If yes, determining whether the USB interface is in an access state; If yes, driving the power-on logic control module to control the voltage conversion module to switch to the output state; Acquiring second voltage information; The first level information of the control input terminal and the working mode of the USB interface are switched according to the second voltage information.

2. The power-on control method based on the USB of a tablet computer according to claim 1, characterized in that: The switching of the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: measuring and recording at least three pieces of the second voltage information according to a preset time interval; Obtaining a first voltage sequence according to a preset sorting method based on the recorded second voltage information; determining a sequence interception rule according to the amount of the second voltage information; According to the first voltage sequence and the sequence interception rule, a second voltage sequence is obtained; Obtaining third voltage information according to the second voltage sequence; Determining whether the third voltage information is within a preset second voltage range; If yes, obtaining first voltage difference information according to the third voltage information and the first voltage sequence; Determining whether the first voltage difference information is less than a preset first voltage difference threshold; If so, the voltage conversion module is in a stable state, and the first level information of the control input terminal is switched from the first level to the second level.

3. The power-on control method based on the USB of a tablet computer according to claim 1, characterized in that: The switching of the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: Determining that the output voltage of the voltage conversion module is in a stable state; Acquire second level information of the USB input terminal; Determining whether the second level information has a level change within a preset first time; If not, determining whether the USB interface is in USB communication mode; If yes, determining whether the second level information is the first level; If yes, switch the USB interface to host mode; If not, switch the USB interface to slave device mode.

4. The power-on control method based on the USB of a tablet computer according to claim 1, characterized in that: The switching of the first level information of the control input terminal from the first level to the second level is specifically: When it is determined that the first level information is switched to a second level; Configuring the USB interface to USB communication mode; According to the second voltage information, determining whether the voltage conversion module is in a stable state; If not, the USB interface is configured as an output mode, and a first abnormal instruction is sent to the background host.

5. The power-on control method based on the USB of a tablet computer according to claim 1, characterized in that: Also includes: When it is determined that the USB interface is in host mode; Determine the first time information according to the sending instruction of USB communication; Determining whether the first time information exceeds a preset first time threshold; If so, the USB interface is configured as an input mode, and the first level information of the control input terminal is switched from the second level to the first level.

6. The power-on control method based on the USB of a tablet computer according to claim 1, characterized in that: Also includes: When it is determined that the USB interface is in slave device mode; Determining second time information according to a received instruction of the USB communication; Determining whether the second time information exceeds a preset second time threshold; If so, the first level information of the control input terminal is switched from the second level to the first level.

7. A power-on control system based on a tablet computer USB is applied to a power-on control circuit based on a tablet computer USB, and the power-on control circuit based on a tablet computer USB includes: USB interface, voltage conversion module and power-on logic control module; The USB interface is used to trigger the tablet computer to power on and perform USB data communication; The voltage conversion module includes an enable control terminal for converting the input power supply voltage into an operating voltage suitable for the tablet computer; The power-on logic control module includes a USB input terminal and a control input terminal, which are used to control the working state of the voltage conversion module; The system includes a memory and a processor, wherein the memory includes a power-on control method program based on a tablet computer USB, and when the power-on control method program based on a tablet computer USB is executed by the processor, the following steps are implemented: Acquiring first voltage information; Determining whether the first voltage information is within a preset first voltage range; If yes, determining whether the USB interface is in a connected state; If yes, driving the power-on logic control module to control the voltage conversion module to switch to the output state; Acquiring second voltage information; The first level information of the control input terminal and the working mode of the USB interface are switched according to the second voltage information.

8. The power-on control system based on tablet computer USB according to claim 7 is characterized in that: The switching of the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: measuring and recording at least three pieces of the second voltage information according to a preset time interval; Obtaining a first voltage sequence according to the recorded second voltage information in a preset sorting manner; determining a sequence interception rule according to the amount of the second voltage information; According to the first voltage sequence and the sequence interception rule, a second voltage sequence is obtained; Obtaining third voltage information according to the second voltage sequence; Determining whether the third voltage information is within a preset second voltage range; If yes, obtaining first voltage difference information according to the third voltage information and the first voltage sequence; Determining whether the first voltage difference information is less than a preset first voltage difference threshold; If so, the voltage conversion module is in a stable state, and the first level information of the control input terminal is switched from the first level to the second level.

9. The power-on control system based on tablet computer USB according to claim 7, characterized in that: The switching of the first level information of the control input terminal and the working mode of the USB interface according to the second voltage information is specifically: Determining that the output voltage of the voltage conversion module is in a stable state; Acquire second level information of the USB input terminal; Determining whether the second level information has a level change within a preset first time; If not, determining whether the USB interface is in USB communication mode; If yes, determining whether the second level information is the first level; If yes, switch the USB interface to host mode; If not, switch the USB interface to slave device mode.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a power-on control method program based on a tablet computer USB. When the power-on control method program based on a tablet computer USB is executed by a processor, the steps of the power-on control method based on a tablet computer USB as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Startup and shutdown linkage control device and system

    CN105094263A

  • TYPE-C type USB communication circuit and USB device

    CN112579504A

  • Voltage adjusting method and device, electronic equipment and readable storage medium

    CN115390609A

  • Intelligent module and USB 2.0 switching circuit thereof

    CN211264303U

  • USB interface circuit, method and device for USB interface implementation, and computer storage medium

    WO2018086458A1