Computer cover opening and closing MS test simulation method, device and equipment

By configuring and executing computer open and close cover MS test scripts, using embedded controllers and timers to achieve automated open and close cover MS testing, it solves the problem of low manual testing efficiency, improves testing efficiency and flexibility, and is suitable for multiple applications. Test scenarios.

CN118981401APending Publication Date: 2024-11-19NANCHANG HUAQIN ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art relies on manual manual testing of open and close covers, which is inefficient and difficult to perform, especially in long-term or large-scale testing.

Method used

By configuring the computer to open and close the cover MS test script, execute script information, and determine that MS instructions are sent to the embedded controller when the screen is on. If the timer timing is within the pre-designed time range, execute MS instructions through the embedded controller to enter the MS Time and pull the virtual LID PIN to wake up the system when MS time arrives to realize automated MS testing of opening and closing covers.

Benefits of technology

It realizes automated MS testing of open and close covers, improves testing efficiency, simplifies operations, and is suitable for a variety of test scenarios, saves time and effort, and meets the testing needs of large-scale laptops.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981401A_ABST
    Figure CN118981401A_ABST
Patent Text Reader

Abstract

The invention discloses a computer cover opening and closing MS test simulation method, device and equipment, and the method comprises the steps: configuring a computer cover opening and closing MS test script, and obtaining MS script information which comprises MS time and test times; executing the MS script information, and sending an MS instruction to the embedded controller under the condition of judging that the screen is on; if the timing of the timer is within a preset timing range, executing an MS instruction through the embedded controller, and entering MS timing; and if the MS timing reaches the MS time, pulling the virtual LID PIN to wake up the system. According to the scheme, the cover opening and closing MS test requirements of a large batch of notebook computers can be met, the efficiency is high, the operation is simple, related test information can be set, the test is more flexible, the method is suitable for various test scenes, and time and labor are saved. Therefore, the technical problems that in the prior art, manual cover opening and closing MS testing is relied on, efficiency is low, and execution is difficult can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer testing technology, and in particular to a computer opening and closing cover MS test simulation method, device and equipment. Background Art

[0002] Computers have become an indispensable tool for people to use in production. They are an important choice for life and work because they are easy to carry and use. Lithium batteries are an important part of laptops. Their quality and working condition directly determine the performance of laptops. During the R&D stage, laptops need to undergo various functional tests, and most of the functional tests are completed manually; these include manual opening and closing of the cover to enter / exit the MS, and testing whether black screen / blue screen / gray screen problems are encountered.

[0003] For low-probability MS problems of opening and closing the lid, R&D personnel can only reproduce the problem by manually opening and closing the lid using the same test method. For situations where the lid is closed and opened for a long time (more than 15 minutes) and large-scale testing, manual operation is not only inefficient but also relatively difficult to perform. Summary of the invention

[0004] The present application provides a computer opening and closing cover MS test simulation method, device and equipment, which are used to solve the technical problems that the existing technology relies on manual opening and closing cover MS testing, which is inefficient and difficult to implement.

[0005] In view of this, the first aspect of the present application provides a computer opening and closing cover MS test simulation method, comprising:

[0006] Configure a computer cover opening and closing MS test script to obtain MS script information, wherein the MS script information includes MS time and test times;

[0007] Execute the MS script information to determine whether to send MS instructions to the embedded controller when the screen is on;

[0008] If the timer timing is within the preset timing range, the MS instruction is executed by the embedded controller to enter the MS timing;

[0009] If the MS timing reaches the MS time, the virtual LID PIN is pulled to wake up the system.

[0010] Preferably, the executing the MS script information and determining to send a MS instruction to the embedded controller when the screen is on includes:

[0011] Execute the MS script information to determine whether the screen-on flag is 0, if so, it indicates that the system is running normally and the screen is on;

[0012] When the screen is on, determine whether the current test number is less than the test number. If so, send an MS instruction to the embedded controller, and the current test number is increased by 1.

[0013] Preferably, if the timer timing is within a preset timing range, executing the MS instruction through the embedded controller to enter the MS timing also includes:

[0014] If the timer timing exceeds the preset timing range, the Beep alarm prompt is triggered by the embedded controller.

[0015] Preferably, if the timer timing is within a preset timing range, executing the MS instruction through the embedded controller to enter the MS timing also includes:

[0016] When the MS timing is entered, the timer is reset to zero.

[0017] Preferably, if the MS timing reaches the MS time, pulling the virtual LID PIN to wake up the system includes:

[0018] If the MS timing reaches the MS time, a wake-up control instruction is sent to the CPU via the virtual PIN;

[0019] The CPU sets the system running flag to 1 and the screen lighting flag to 0 according to the wake-up control instruction.

[0020] Preferably, the method of setting the system running flag position to 1 and the screen lighting flag position to 0 by the CPU according to the wake-up control instruction also includes:

[0021] If the CPU is abnormal, the screen-on flag is set to 1 through the embedded controller and a Beep alarm is triggered.

[0022] The second aspect of the present application provides a computer cover opening and closing MS test simulation device, comprising:

[0023] A script configuration unit, used to configure a computer cover opening and closing MS test script to obtain MS script information, wherein the MS script information includes MS time and test times;

[0024] A script execution unit, used for executing the MS script information, and determining to send an MS instruction to the embedded controller when the screen is on;

[0025] An MS trigger unit, configured to execute the MS instruction through the embedded controller and enter MS timing if the timer timing is within a preset timing range;

[0026] The system awakening unit is used to pull the virtual LID PIN to wake up the system if the MS timing reaches the MS time.

[0027] Preferably, the script execution unit is specifically used for:

[0028] Execute the MS script information to determine whether the screen-on flag is 0, if so, it indicates that the system is running normally and the screen is on;

[0029] When the screen is on, determine whether the current test number is less than the test number. If so, send an MS instruction to the embedded controller, and the current test number is increased by 1.

[0030] Preferably, the system awakening unit is specifically used for:

[0031] If the MS timing reaches the MS time, a wake-up control instruction is sent to the CPU via the virtual PIN;

[0032] The CPU sets the system running flag to 1 and the screen lighting flag to 0 according to the wake-up control instruction.

[0033] A third aspect of the present application provides a computer cover opening and closing MS test simulation device, the device comprising a processor and a memory;

[0034] The memory is used to store program code and transmit the program code to the processor;

[0035] The processor is used to execute the computer opening and closing cover MS test simulation method described in the first aspect according to the instructions in the program code.

[0036] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0037] In the present application, a computer cover opening and closing MS test simulation method is provided, including: configuring a computer cover opening and closing MS test script to obtain MS script information, the MS script information including MS time and test times; executing the MS script information to determine whether to send an MS instruction to an embedded controller when the screen is on; if the timer timing is within a preset timing range, executing the MS instruction through the embedded controller to enter the MS timing; if the MS timing reaches the MS time, pulling the virtual LID PIN to wake up the system.

[0038] The computer cover opening and closing MS test simulation method provided by the present application avoids dependence on manual operation based on the simulation test method; this process realizes automated cover opening and closing MS test by executing scripts, sending instructions, executing instructions and time judgment; it can meet the cover opening and closing MS test needs of a large number of notebook computers, and is not only efficient and easy to operate, but also the test-related information can be set, making the test more flexible, applicable to a variety of test scenarios, and saving time and effort. Therefore, the present application can solve the technical problems that the existing technology relies on manual operation of cover opening and closing MS test, which is inefficient and difficult to execute. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of a flow chart of a computer opening and closing cover MS test simulation method provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of the structure of a computer opening and closing cover MS test simulation device provided in an embodiment of the present application;

[0041] Figure 3 This is an example diagram of the computer opening and closing cover MS test simulation process provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] For easier understanding, see Figure 1 , the present application provides an embodiment of a computer opening and closing cover MS test simulation method, comprising:

[0044] Step 101, configure the computer cover opening and closing MS test script, obtain MS script information, the MS script information includes MS time and test times.

[0045] It should be noted that the MS script information includes but is not limited to the MS time and the number of tests, and other test related information can also be configured as needed to facilitate the implementation of the test function when executing the script. The MS (Modern Standby) test refers to the standby state test process, which can also be called a dormancy test.

[0046] The laptop can enter or exit the MS mode by opening and closing the lid, which is mainly realized by the Hall sensor. If the computer lid is opened, the magnetic flux received by the Hall sensor is 0, the system detects a high level, and the computer exits from the MS state and enters the system; conversely, the system detects a low level, and the computer enters the MS state. Based on this principle, this embodiment designs the operation state of the computer opening and closing lid according to the change of the computer level, thereby realizing automatic MS testing without manual opening and closing of the lid.

[0047] Step 102: execute the MS script information and determine whether to send an MS instruction to the embedded controller when the screen is on.

[0048] Further, step 102 includes:

[0049] Execute the MS script information to determine whether the screen-on flag is 0. If so, it indicates that the system is running normally and the screen is on;

[0050] When the screen is on, determine whether the current test number is less than the test number. If so, send an MS instruction to the embedded controller and increase the current test number by 1.

[0051] It should be noted that the MS test simulation can be started by executing the MS script information. If the screen-on flag is 0, it means that the screen is successfully lit and the system can operate normally; and if the screen is lit, it means that the LID PIN of the embedded controller is communicating normally. If the screen-on flag is 1, it means that the system is in a black screen state; in the black screen state, the test simulation is directly exited, and the Beep alarm is used to prompt the test failure. It can be understood that the black screen trigger alarm series operations of this embodiment are all completed through the control of the embedded controller. In addition, the actual LIN PIN of the laptop is controlled by a Hall sensor. In order to simulate the MS test, this embodiment replaces the LID PIN level change with a virtual PIN created by means of a register in the embedded controller EC to simulate the computer lid opening and closing action.

[0052] When the screen is on, you can proceed to the next test operation, that is, determine whether the current test number has reached the preset test number. If it has reached the test number, stop the test and end the simulation; if it has not reached the test number, that is, the current test number is less than the set test number, then send an MS instruction to the embedded controller, and trigger the test number to increase by 1; the MS instruction is an instruction that prompts the system to enter standby or hibernation state, and the standby time is the MS time.

[0053] Step 103: If the timer timing is within the preset timing range, the embedded controller executes the MS instruction to enter the MS timing.

[0054] Furthermore, step 103 further includes:

[0055] If the timer exceeds the preset time range, the Beep alarm prompt will be triggered through the embedded controller.

[0056] It should be noted that a timer is provided in the embedded controller for timing. The timing duration of the timer in this embodiment is a preset timing range, and the MS instruction can be executed within the timing range; after executing the MS instruction, the system enters the MS state, that is, the standby or sleep state, and the duration of this state is the MS time; a timer can also be set for the MS state to perform MS timing operations, and count down with the MS time.

[0057] If it exceeds the preset timing range, it means that the system is running abnormally and the test failure needs to be prompted; and this will cause the MS instruction action to be lost, the embedded controller EC cannot receive the MS instruction, and the system cannot enter the MS state. Specifically, in this embodiment, the embedded controller EC can trigger a Beep alarm to give a prompt. The preset timing range of the timer can be set according to the actual situation, such as 5 minutes, which is only an example here and is not limited.

[0058] Furthermore, step 103 further includes:

[0059] When entering MS timing, the timer is reset to zero.

[0060] When the system enters the MS state, it indicates that the system standby entry test is successful, and the timer is reset to prevent the timing within the preset timing range from affecting the MS time in the MS state.

[0061] Step 104: If the MS timing reaches the MS time, pull the virtual LID PIN to wake up the system.

[0062] Furthermore, step 104 includes:

[0063] If the MS timing reaches the MS time, a wake-up control instruction is sent to the CPU through the virtual PIN;

[0064] The CPU sets the system running flag to 1 and the screen-on flag to 0 according to the wake-up control instruction.

[0065] Furthermore, the CPU sets the system running flag to 1 and the screen-on flag to 0 according to the wake-up control instruction, and further includes:

[0066] If the CPU is abnormal, the screen-on flag will be set to 1 through the embedded controller and the Beep alarm will be triggered.

[0067] It should be noted that after the countdown of the MS time ends, the virtual LID PIN can be pulled by the embedded controller EC to prepare to wake up the system. As mentioned above, this embodiment simulates the actual EC LID PIN through the virtual PIN of the register.

[0068] The specific process of waking up the system from the MS state in this embodiment is that when the MS timing reaches the MS time, the countdown ends, and the CPU is controlled by the virtual PIN to perform the wake-up operation; the CPU sets the system operation flag to 1 according to the instruction, which is a high-level state; and when the embedded sensor receives this signal, it is determined that the CPU is running normally, and the screen light flag can be set to 0, that is, the screen is turned on. If the CPU is abnormal during the system wake-up process, the system operation flag fails to be set to 1, and the system operation flag is in a low-level state. At this time, the embedded sensor receives this signal and sets the screen light flag to 1, that is, a black screen; at the same time, it will trigger the Beep alarm to prompt the test failure.

[0069] For ease of understanding, this application provides an application example of the computer opening and closing cover MS test simulation method. For details, please refer to Figure 3 , before conducting MS test simulation, set MS time and target number of laps, the target number of laps is the number of tests; turn on simulation operation Enable; then determine whether the screen light flag E_Flag is 0, if not, trigger Beep alarm prompt, if so, further determine whether the target number of laps is reached, if so, end the simulation action Disable, if not, add 1 to the current number of laps, and send MS instructions to the embedded controller EC; before EC executes MS instructions, it must determine whether the timer timing reaches the preset timing range, that is, 5min. If so, determine that the system operation is wrong and trigger Beep alarm prompt, if not, execute MS instructions through EC, the system enters MS state, EC starts to count down the MS time, and clears the timer timing at the same time. During this process, the system is in standby with a black screen; when the timing ends, the system is woken up by pulling up or down the virtual LID PIN through EC, that is, the corresponding register is written as 0x01; specifically, whether to pull up or pull down the virtual LID PIN is related to the setting and is not limited here; the CPU sets the system operation flag EDP_BKLT_EN to 1 according to the PIN signal, which is a high level state; the EC sets E_Flag to 0 and starts the timer again, and the timing range is the preset timing range; if EDP_BKLT_EN fails to be set to 1, it means that the CPU is running abnormally, then the EC sets E_Flag to 1, that is, a black screen state, and triggers the Beep alarm prompt. It can be understood that all Beep alarm prompts indicate test failures. In addition, sending MS instructions and previous operations are all script file configuration and execution stages, and the latter part is the embedded controller EC control stage.

[0070] The computer cover opening and closing MS test simulation method provided by the embodiment of the present application avoids dependence on manual operation based on the simulation test method; this process realizes automated cover opening and closing MS test by executing scripts, sending instructions, executing instructions and time judgment; it can meet the cover opening and closing MS test needs of a large number of notebook computers, and is not only efficient and easy to operate, but also the test related information can be set, making the test more flexible and applicable to a variety of test scenarios, saving time and effort. Therefore, the embodiment of the present application can solve the technical problems that the existing technology relies on manual operation of cover opening and closing MS test, which is inefficient and difficult to execute.

[0071] For easier understanding, see Figure 2 The present application provides an embodiment of a computer opening and closing cover MS test simulation device, comprising:

[0072] The script configuration unit 201 is used to configure the computer cover opening and closing MS test script to obtain MS script information, where the MS script information includes MS time and test times;

[0073] The script execution unit 202 is used to execute the MS script information and determine to send the MS instruction to the embedded controller when the screen is on;

[0074] The MS trigger unit 203 is used to execute the MS instruction through the embedded controller to enter the MS timing if the timer timing is within the preset timing range;

[0075] The system awakening unit 204 is configured to pull the virtual LID PIN to awaken the system if the MS timing reaches the MS time.

[0076] Furthermore, the script execution unit 202 is specifically configured to:

[0077] Execute the MS script information to determine whether the screen-on flag is 0. If so, it indicates that the system is running normally and the screen is on;

[0078] When the screen is on, determine whether the current test number is less than the test number. If so, send an MS instruction to the embedded controller and increase the current test number by 1.

[0079] Furthermore, the system awakening unit 204 is specifically configured to:

[0080] If the MS timing reaches the MS time, a wake-up control instruction is sent to the CPU through the virtual PIN;

[0081] The CPU sets the system running flag to 1 and the screen-on flag to 0 according to the wake-up control instruction.

[0082] The present application also provides a computer cover opening and closing MS test simulation device, the device comprising a processor and a memory;

[0083] The memory is used to store the program code and transmit the program code to the processor;

[0084] The processor is used to execute the computer opening and closing cover MS test simulation method in the above method embodiment according to the instructions in the program code.

[0085] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0087] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0089] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A computer opening and closing cover MS test simulation method, characterized in that: include: Configure a computer cover opening and closing MS test script to obtain MS script information, wherein the MS script information includes MS time and test times; Execute the MS script information to determine whether to send MS instructions to the embedded controller when the screen is on; If the timer timing is within the preset timing range, the MS instruction is executed by the embedded controller to enter the MS timing; If the MS timing reaches the MS time, the virtual LID PIN is pulled to wake up the system.

2. The computer opening and closing cover MS test simulation method according to claim 1, characterized in that: The executing the MS script information and determining to send the MS instruction to the embedded controller when the screen is on includes: Execute the MS script information to determine whether the screen-on flag is 0, if so, it indicates that the system is running normally and the screen is on; When the screen is on, determine whether the current test number is less than the test number. If so, send an MS instruction to the embedded controller, and the current test number is increased by 1.

3. The computer cover MS test simulation method according to claim 1, characterized in that: If the timer timing is within the preset timing range, executing the MS instruction through the embedded controller to enter the MS timing, further comprising: If the timer timing exceeds the preset timing range, the Beep alarm prompt is triggered by the embedded controller.

4. The computer cover MS test simulation method according to claim 1, characterized in that: If the timer timing is within the preset timing range, executing the MS instruction through the embedded controller to enter the MS timing, further comprising: When the MS timing is entered, the timer is reset to zero.

5. The computer opening and closing cover MS test simulation method according to claim 1, characterized in that: If the MS timing reaches the MS time, pulling the virtual LID PIN to wake up the system includes: If the MS timing reaches the MS time, a wake-up control instruction is sent to the CPU via the virtual PIN; The CPU sets the system running flag to 1 and the screen lighting flag to 0 according to the wake-up control instruction.

6. The computer cover MS test simulation method according to claim 5, characterized in that: The method further includes setting the system operation flag position to 1 and the screen light flag position to 0 by the CPU according to the wake-up control instruction: If the CPU is abnormal, the screen-on flag is set to 1 through the embedded controller and a Beep alarm is triggered.

7. A computer opening and closing cover MS test simulation device, characterized in that: include: A script configuration unit, used to configure a computer cover opening and closing MS test script to obtain MS script information, wherein the MS script information includes MS time and test times; A script execution unit, used for executing the MS script information, and determining to send an MS instruction to the embedded controller when the screen is on; An MS trigger unit, configured to execute the MS instruction through the embedded controller and enter MS timing if the timer timing is within a preset timing range; The system awakening unit is used to pull the virtual LID PIN to wake up the system if the MS timing reaches the MS time.

8. The computer cover MS test simulation device according to claim 7, characterized in that: The script execution unit is specifically used for: Execute the MS script information to determine whether the screen-on flag is 0, if so, it indicates that the system is running normally and the screen is on; When the screen is on, determine whether the current test number is less than the test number. If so, send an MS instruction to the embedded controller, and the current test number is increased by 1.

9. The computer cover MS test simulation device according to claim 7, characterized in that: The system wake-up unit is specifically used for: If the MS timing reaches the MS time, a wake-up control instruction is sent to the CPU via the virtual PIN; The CPU sets the system running flag to 1 and the screen lighting flag to 0 according to the wake-up control instruction.

10. A computer cover opening and closing MS test simulation device, characterized in that: The device comprises a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the computer opening and closing cover MS test simulation method described in any one of claims 1-6 according to the instructions in the program code.