RTOS-based stability test method, device and system

By receiving information about the test range and number of times for click tests, using click rate and failure rate to determine the test range and number of times, and determining the test points through the pseudo-random sequence generator, the problem of low RTOS stability testing is solved, and high efficiency is achieved. Reliable test results.

CN119003371APending Publication Date: 2024-11-22SHANGHAI INNOVATECH INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411257987.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, the stability testing based on RTOS is relatively low, and is mainly carried out manually, resulting in low efficiency.

Method used

Provide a stability testing method based on RTOS, which can perform click tests by receiving information about the test range and number of tests, and use click rate and failure rate to determine the test range and number of tests, reduce signaling overhead, improve test efficiency, and pass pseudo-random The sequence generator determines the test points and improves the randomness and reliability of the test results.

Benefits of technology

It effectively improves the efficiency of RTOS stability testing, reduces signaling overhead, improves the reliability and rationality of test results, and is more efficient and accurate than traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003371A_ABST
    Figure CN119003371A_ABST
Patent Text Reader

Abstract

The invention provides a stability testing method, device and system based on RTOS, and relates to the field of software testing, and the method comprises the steps that first information is received, the first information comprises a first testing range and a first testing frequency, the first information is used for indicating a lower computer to carry out a click test in the first testing range, and the first testing frequency is a second testing frequency; the execution frequency of the click test is the same as the first test frequency; obtaining a plurality of second test ranges in the first test range and a second test frequency corresponding to each second test range in the plurality of second test ranges, wherein the second test frequency is in positive correlation with a click rate and / or a failure rate of the second test range; performing the click test according to the second test range and the second test frequency; and sending second information, wherein the second information is used for indicating a click test result. The stability test is carried out by indicating the test range and the test times, the signaling overhead is reduced, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software testing, and more specifically, to a stability testing method, device and system based on RTOS. Background Art

[0002] The real-time operating system (Embedded Real-time Operation System, RTOS) can execute tasks within a certain time, so that when external events or data are generated, they can be accepted and processed at a fast enough speed. The processing results can control the production process or respond quickly to the processing system within the specified time, and have high reliability and high responsiveness. With the improvement of technology, RTOS has been fully applied to various fields. In order to improve the stability of the system, it is necessary to conduct stability testing of the product before leaving the factory. In current technology, stability testing based on RTOS is mainly achieved manually, which is inefficient.

[0003] In view of this, how to improve the efficiency of stability testing based on RTOS is an urgent problem to be solved. Summary of the invention

[0004] The present application provides a stability testing method based on RTOS, which can improve the efficiency of stability testing based on RTOS.

[0005] In the first aspect, a stability test method based on RTOS is provided, which can be executed by a lower computer. Unless otherwise specified, the "lower computer" in this application can refer to the lower computer itself (for example, a terminal device (such as a smart watch or a smart card, etc.), or a component in the lower computer (for example, a processor, a chip, or a chip system, etc.), or a logic module or software that can realize all or part of the functions of the lower computer. For ease of description, the following description is taken as an example of the execution of the lower computer.

[0006] The method includes: receiving first information, the first information including a first test range and a first test number, the first information being used to instruct the lower computer to perform a click test within the first test range, the click test being executed the same number of times as the first test; obtaining multiple second test ranges within the first test range and second test numbers corresponding to each of the multiple second test ranges, the second test number being positively correlated with the click rate and / or failure rate of the second test range, the sum of the multiple second test numbers being the first test number; performing the click test according to the second test range and the second test number; and sending second information, the second information being used to indicate a result of the click test.

[0007] Based on the above scheme, stability testing is performed by indicating the test range and test times, which reduces signaling overhead and effectively improves test efficiency compared to indicating test points one by one. In addition, determining the test times for different test ranges by click rate and / or failure rate is more reasonable than performing random tests in the entire test range, making the test results more reliable.

[0008] In combination with the first aspect, in certain implementations of the first aspect, obtaining multiple second test ranges within the first test range and the second test times corresponding to each second test range in the multiple second test ranges includes: determining the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; determining the second test times based on the second test range, the first test times and the click rate and / or failure rate of the lower computer within the second test range.

[0009] Based on the above solution, the upper computer can indicate the entire test range and test times (ie, the first test range and the first test times), and the lower computer can determine the second test range and the second test times by itself, further reducing signaling overhead.

[0010] In combination with the first aspect, in some implementations of the first aspect, the first information includes the multiple second test ranges and the second test number corresponding to each second test range in the multiple second test ranges.

[0011] Based on the above solution, the upper computer can determine the second test range and the second test number and instruct the lower computer to perform a click test within the corresponding range, thereby improving the efficiency of the lower computer in performing stability testing.

[0012] In combination with the first aspect, in certain implementations of the first aspect, performing the click test according to the second test range and the second test number includes: based on a pseudo-random sequence generator, determining at least one test point according to the second test range and the second test number; performing the click test on the at least one test point.

[0013] Based on the above scheme, the pseudo-random sequence generator can determine the test points by specifying the range and number of times, which reduces the signaling overhead compared to the method of indicating the test points one by one, and effectively improves the test efficiency. In addition, the test points determined based on the pseudo-random sequence generator have higher randomness, which improves the reliability of the test results.

[0014] In the second aspect, a stability test method based on RTOS is provided, which can be executed by a host computer. Unless otherwise specified, the "host computer" in this application can refer to the host computer itself (for example, a test device, etc.), or a component in the host computer (for example, a processor, a chip, or a chip system, etc.), or a logic module or software that can realize all or part of the host computer functions. For ease of description, the following description is taken as an example of execution by the host computer.

[0015] The method includes: sending first information, the first information includes a first test range and a first test number, the first information is used to instruct the lower computer to perform a click test within the first test range, the number of executions of the click test is the same as the first test number, the first test range includes multiple second test ranges, each of the multiple second test ranges corresponds to a second test number, the second test number is positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test numbers is the first test number; receiving second information, the second information is used to indicate the result of the click test.

[0016] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: determining the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; determining the second test number based on the second test range, the first test number and the click rate and / or failure rate of the lower computer within the second test range.

[0017] It should be noted that for the beneficial effects of the second aspect, reference may be made to the relevant description of the first aspect, and this application will not elaborate on it here.

[0018] In a third aspect, a terminal is provided, which is used to execute the method provided in the first aspect. Specifically, the terminal may include units and / or modules, such as a processing unit and a transceiver unit, for executing the method provided in any one of the above implementations of the first aspect.

[0019] In one implementation, the transceiver unit may be a transceiver, or an input / output interface; the processing unit may be at least one processor. Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.

[0020] In another implementation, the transceiver unit may be an input / output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip, chip system or circuit; the processing unit may be at least one processor, processing circuit or logic circuit.

[0021] Exemplarily, the terminal is the above-mentioned terminal or a component of the terminal (such as a chip or a circuit), and the terminal includes:

[0022] A processing unit is used to obtain multiple second test ranges within the first test range and a second test number corresponding to each second test range in the multiple second test ranges, the second test number is positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test numbers is the first test number; and the click test is performed according to the second test range and the second test number.

[0023] A transceiver unit is used to receive first information, wherein the first information includes a first test range and a first test number, wherein the first information is used to instruct the lower computer to perform a click test within the first test range, and the number of executions of the click test is the same as the first test number; and send second information, wherein the second information is used to indicate a result of the click test.

[0024] Optionally, the processing unit is also used to determine the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; determine the second test number based on the second test range, the first test number and the click rate and / or failure rate of the lower computer within the second test range.

[0025] Optionally, the processing unit is further configured to determine at least one test point based on a pseudo-random sequence generator, according to the second test range and the second test number; and perform the click test on the at least one test point.

[0026] In a fourth aspect, a test device is provided, which is used to execute the method provided in the second aspect. Specifically, the test device may include units and / or modules, such as a processing unit and a transceiver unit, for executing the method provided in any one of the above implementations of the second aspect.

[0027] In one implementation, the transceiver unit may be a transceiver, or an input / output interface; the processing unit may be at least one processor. Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.

[0028] In another implementation, the transceiver unit may be an input / output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip, chip system or circuit; the processing unit may be at least one processor, processing circuit or logic circuit.

[0029] Exemplarily, the test device is the above-mentioned test device or a component of the test device (such as a chip or a circuit), and the test device includes:

[0030] A transceiver unit is used to send first information, wherein the first information includes a first test range and a first test number, wherein the first information is used to instruct a lower computer to perform a click test within the first test range, wherein the number of executions of the click test is the same as the first test number, wherein the first test range includes multiple second test ranges, wherein each of the multiple second test ranges corresponds to a second test number, wherein the second test number is positively correlated with a click rate and / or a failure rate of the second test range, and wherein the sum of the multiple second test numbers is the first test number; and receive second information, wherein the second information is used to indicate a result of the click test.

[0031] Optionally, the testing device also includes a processing unit for determining the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; and determining the second test number based on the second test range, the first test number and the click rate and / or failure rate of the lower computer within the second test range.

[0032] In a fifth aspect, a processor is provided for executing the methods provided in the above aspects.

[0033] For the operations such as sending and acquiring / receiving involved in the processor, unless otherwise specified, or unless they conflict with their actual function or internal logic in the relevant description, they can be understood as operations such as processor output, reception, input, etc., or as sending and receiving operations performed by the radio frequency circuit and antenna, and this application does not limit this.

[0034] In a sixth aspect, a computer-readable storage medium is provided, which stores a program code for execution by a device, wherein the program code includes a method for executing any one of the implementations of the first and second aspects above.

[0035] In the seventh aspect, a chip is provided, which includes a processor and a communication interface. The processor reads instructions stored in a memory through the communication interface and executes the method provided by any one of the implementation modes of the first and second aspects.

[0036] Optionally, as an implementation method, the chip also includes a memory, in which a computer program or instructions are stored, and the processor is used to execute the computer program or instructions stored in the memory. When the computer program or instructions are executed, the processor is used to execute the method provided by any implementation method of the first and second aspects above.

[0037] In an eighth aspect, a communication system is provided, comprising a terminal for executing the method provided in the first aspect and a testing device for executing the method provided in the second aspect.

[0038] In a ninth aspect, a computer program product comprising instructions is provided, and when the computer program product is run on a computer, the computer is caused to execute the method provided by any one of the implementations of the first and second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of an RTOS system architecture applicable to an embodiment of the present application.

[0040] Figure 2 It is a schematic diagram of a method 200 of automated testing based on RTOS applicable to an embodiment of the present application.

[0041] Figure 3 3 is a schematic diagram of a method 300 for stability testing based on RTOS applicable to an embodiment of the present application.

[0042] Figure 4 It is a structural diagram of a stability testing device 400 based on RTOS applicable to an embodiment of the present application.

[0043] Figure 5 It is a structural diagram of a stability testing device 500 based on RTOS provided in an embodiment of the present application.

[0044] Figure 6 It is a schematic diagram of the structure of a chip system 600 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0046] Real-time operating system (Embedded Real-time Operation System, RTOS) can execute tasks within a certain time, so that when external events or data are generated, they can be accepted and processed at a sufficiently fast speed. The processing results can control the production process or respond quickly to the processing system within the specified time, dispatch all available resources to complete real-time tasks. The operating system that controls all real-time tasks to run in a coordinated manner has fast response speed and high reliability.

[0047] Figure 1 It is a schematic diagram of an RTOS system architecture applicable to an embodiment of the present application.

[0048] The RTOS system may include: kernel layer, framework layer, and APP application layer.

[0049] The kernel layer is the core part of the RTOS system, including the implementation of objects in the kernel system. For example, the kernel layer can include multithreading and its scheduling, semaphores, mailboxes, message queues, memory management, timers, etc. The kernel layer can also provide software interfaces for connecting various peripheral chips.

[0050] The framework layer is the upper layer software on top of the kernel of the RTOS system. For example, the framework layer can include a virtual file system, FinSH command line interface, network framework, device framework, etc. The framework layer adopts a modular design to achieve high cohesion within the components and low coupling between components.

[0051] The APP application layer runs on the system platform of the RTOS system and is composed of general software components for different application fields. For example, the APP application layer may include description information, source code or library files.

[0052] It should be understood that the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0053] Developers of embedded systems rely on RTOS, which, unlike general-purpose operating systems (such as Windows or Linux), specializes in handling real-time tasks such as control, communication, and data acquisition. The role of an RTOS may include at least one of the following:

[0054] 1. Multitasking: RTOS enables embedded systems to execute multiple tasks simultaneously. These tasks can be hard real-time tasks (i.e., tasks that must be completed within a specific time) or soft real-time tasks (i.e., tasks that are best completed within a specific time). RTOS can be used to manage the scheduling and priority of tasks, ensuring that high-priority tasks get enough processing time.

[0055] 2. Real-time response: Embedded systems often need to respond to external events (e.g., sensor data or user input) within a specific time. RTOS can ensure that tasks are processed in an orderly manner by managing the scheduling and priority of tasks, thereby meeting real-time requirements.

[0056] 3. Task synchronization and communication: In embedded systems, tasks usually need to share data or work together. RTOS can provide a variety of mechanisms to achieve synchronization and communication between tasks (for example, semaphores, message queues, and mutexes, etc.), which helps to avoid race conditions and ensure data consistency.

[0057] 4. Save resources: Most RTOS are lightweight in design, with small memory usage and low processor load, and RTOS usually only includes necessary functions, reducing unnecessary overhead.

[0058] 5. Scalability: RTOS allows developers to add new tasks or functional modules according to project requirements without having to make fundamental changes to the entire system. This flexibility makes RTOS an ideal choice for handling evolving and changing embedded systems.

[0059] 6. Debugging and performance analysis: RTOS includes a variety of debugging tools and performance analysis capabilities to help developers identify and solve problems for optimization.

[0060] 7. Ecosystem support: RTOS can support multiple ecosystems including FreeRTOS, uC / OS, VxWorks, etc., thus providing broad community support.

[0061] 8. Security: RTOS includes task isolation and memory protection functions to ensure data isolation between tasks and system security to protect sensitive data and system functions from threats.

[0062] based on Figure 1 The system architecture shown can build an efficient, stable, real-time and secure embedded system based on RTOS to meet the needs of various application fields. It should be noted that in order to improve the stability of the system, it is necessary to perform stability testing on the product before leaving the factory. In current technology, stability testing based on RTOS is mainly implemented manually, which is inefficient.

[0063] In view of this, an embodiment of the present application provides a stability testing method based on RTOS, which can improve the efficiency of stability testing based on RTOS.

[0064] The technical solution provided by the present application will be described in detail below with reference to the accompanying drawings.

[0065] Figure 2 It is a schematic diagram of a method 200 of automated testing based on RTOS applicable to an embodiment of the present application.

[0066] It should be understood that Figure 2The steps or operations of the RTOS-based automated testing method are shown, but these steps or operations are only to help those skilled in the art understand the embodiments of the present application, and are not intended to limit the embodiments of the present application to the present invention. Figure 2 The specific numerical values ​​or specific scenarios shown in the examples. Figure 2 The following examples are obviously capable of various equivalent modifications or changes, and such modifications and changes also fall within the scope of the embodiments of the present application. The embodiments of the present application may also perform other operations or Figure 2 Variations of the various operations in .

[0067] It should be understood that the embodiments shown below do not particularly limit the specific structure of the execution subject of the method provided in the embodiments of the present application. As long as it is possible to perform automated testing according to the method provided in the embodiments of the present application by running a program that records the code of the method provided in the embodiments of the present application, for example, the execution subject of the method provided in the embodiments of the present application may be a host computer (for example, a terminal device) and a slave computer (for example, a terminal device), or a functional module in the host computer or the slave computer that can call and execute the program, and the present application does not impose any restrictions.

[0068] like Figure 2 As shown in (a), the method 200 may be applied to a lower computer. Specifically, the method 200 may include the following steps:

[0069] S201: Receive first information.

[0070] The first information includes a first test range and a first test number, and the first information is used to instruct the lower computer to perform a click test within the first test range, and the execution number of the click test is the same as the first test number.

[0071] S202: Acquire multiple second test ranges within the first test range and a second test number corresponding to each second test range in the multiple second test ranges.

[0072] The second test number is positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test numbers is the first test number.

[0073] In a possible implementation, the second test range and the second test number may be determined by the lower computer itself.

[0074] Exemplarily, the lower computer can determine the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; determine the second test number based on the second test range, the first test number and the click rate and / or failure rate of the lower computer within the second test range.

[0075] For example, the lower computer divides the first test range into multiple second test ranges (range #1, range #2 and range #3) according to the actual click frequency of the user, where the ratio of the actual number of user clicks corresponding to range #1, range #2 and range #3 is 1:2:3. The lower computer can divide the first test number according to the ratio of 1:2:3, so that the ratio of the test numbers allocated to range #1, range #2 and range #3 (that is, the second test number #1 corresponding to range #1, the second test number #2 corresponding to range #2 and the second test number #3 corresponding to range #3) is 1:2:3.

[0076] For another example, the lower computer can also divide the first test range into multiple second test ranges (range #1, range #2 and range #3) according to the screen failure rate, where the failure rates corresponding to range #1, range #2 and range #3 are 1%, 2% and 3% respectively (that is, the ratio of the failure rates corresponding to range #1, range #2 and range #3 is 1:2:3). The lower computer can divide the first test number according to the ratio of 1:2:3, so that the ratio of the test times allocated to range #1, range #2 and range #3 (that is, the second test number #1 corresponding to range #1, the second test number #2 corresponding to range #2 and the second test number #3 corresponding to range #3) is 1:2:3.

[0077] In this case, the upper computer may indicate the entire test range and test times (ie, the first test range and the first test times), and the lower computer may determine the second test range and the second test times by itself, further reducing signaling overhead.

[0078] In another possible implementation, the second test range and the second test number may be indicated by the host computer. For details about how the host computer determines the second test range and the second test number, please refer to the description of step S205 below, which will not be elaborated in this application.

[0079] Exemplarily, the first information includes the plurality of second test ranges and the second test number corresponding to each second test range in the plurality of second test ranges.

[0080] In this case, the upper computer can determine the second test range and the second test number and instruct the lower computer to perform a click test within the corresponding range, thereby improving the efficiency of the lower computer in performing the stability test.

[0081] S203: Perform the click test according to the second test range and the second test number.

[0082] Optionally, step S203 may include: determining at least one test point based on a pseudo-random sequence generator according to the second test range and the second test number; and performing the click test on the at least one test point.

[0083] Exemplarily, the pseudo-random sequence generator can be implemented based on a chaotic system. For example, the system parameters and / or initial values ​​of the chaotic system can be adjusted according to the second test range, and the number of iterations of the chaotic system can be adjusted according to the second test number. Alternatively, the pseudo-random sequence generator can also be implemented only based on other methods. Regarding the method of generating a limited number of test points within the second test range based on a pseudo-random sequence generator, reference can be made to relevant contents in the prior art, and this application will not elaborate on them here.

[0084] In this case, the pseudo-random sequence generator can determine the test points by specifying the range and number of times, which reduces the signaling overhead compared to indicating the test points one by one and effectively improves the test efficiency. In addition, the test points determined based on the pseudo-random sequence generator have higher randomness, which improves the reliability of the test results.

[0085] S204: Send second information, where the second information is used to indicate a result of the click test.

[0086] Optionally, the second information may include a final test result of the click test; or, may include a test result of each test point of the click test, which is not limited in the embodiment of the present application.

[0087] In this case, stability testing is performed by indicating the test range and test times, which reduces signaling overhead and effectively improves test efficiency compared to indicating test points one by one. In addition, determining the test times for different test ranges by click rate and / or failure rate is more reasonable than performing random tests in the entire test range, making the test results more reliable.

[0088] like Figure 2 As shown in (b), the method 200 may also be applied to a host computer. Specifically, the method 200 may include the following steps:

[0089] S205: Send the first information.

[0090] Among them, the first information includes a first test range and a first test number, the first information is used to instruct the lower computer to perform a click test within the first test range, the number of executions of the click test is the same as the first test number, the first test range includes multiple second test ranges, each of the multiple second test ranges corresponds to a second test number, the second test number is positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test numbers is the first test number.

[0091] Optionally, before executing step S205, method 200 may also include: determining the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; determining the second test number based on the second test range, the first test number and the click rate and / or failure rate of the lower computer within the second test range.

[0092] For example, the upper computer can divide the first test range into multiple second test ranges (range #1, range #2 and range #3) according to the actual click frequency of the user on the first test range of the lower computer, where the ratio of the actual number of user clicks corresponding to range #1, range #2 and range #3 is 1:2:3. The lower computer can then divide the first test number according to the ratio of 1:2:3, so that the ratio of the number of tests allocated to range #1, range #2 and range #3 (i.e., the second test number #1 corresponding to range #1, the second test number #2 corresponding to range #2 and the second test number #3 corresponding to range #3) is 1:2:3.

[0093] For another example, the upper computer can also divide the first test range into multiple second test ranges (range #1, range #2 and range #3) according to the screen failure rate of the lower computer, where the failure rates corresponding to range #1, range #2 and range #3 are 1%, 2% and 3% respectively (that is, the ratio of the failure rates corresponding to range #1, range #2 and range #3 is 1:2:3). The lower computer can divide the first test number according to the ratio of 1:2:3, so that the ratio of the test times allocated to range #1, range #2 and range #3 (that is, the second test number #1 corresponding to range #1, the second test number #2 corresponding to range #2 and the second test number #3 corresponding to range #3) is 1:2:3.

[0094] Optionally, the upper computer can also divide the screen of the lower computer into blocks, so that the first information can include information indicating the division of the lower computer screen (for example, it can be a block number, each number corresponds to a block area), and the lower computer can determine the first test range and / or the second test range based on the screen division information, thereby reducing signaling overhead.

[0095] S206: Receive second information, where the second information is used to indicate a result of the click test.

[0096] Optionally, the second information may include a final test result of the click test; or, may include a test result of each test point of the click test, which is not limited in the embodiment of the present application.

[0097] Figure 3 3 is a schematic diagram of a method 300 for stability testing based on RTOS applicable to an embodiment of the present application.

[0098] like Figure 3 As shown, method 300 may include the following steps:

[0099] S301: The host computer formulates an AT command sequence.

[0100] Specifically, the AT command sequence is used to instruct the lower computer to perform a stability test.

[0101] The specific contents of the AT command sequence can include the following:

[0102] Method 1:

[0103] The AT command sequence includes the position coordinates of at least one pixel point that the lower computer needs to perform stability test on. That is, the upper computer can instruct the lower computer to test the pixels to be tested one by one through AT commands.

[0104] Method 2:

[0105] The AT command sequence includes the coordinate range and / or execution times of the stability test required by the lower computer. That is, the upper computer can indicate the range to be tested and / or the number of pixels required to be tested for stability through AT commands.

[0106] In a possible implementation, the AT command sequence may directly indicate the coordinate range of the area to be tested.

[0107] For example, the AT command sequence may include: at+randomtest=<start_x> ,<start_y> , <width> , <height> , <times>.

[0108] Wherein, start_x represents the starting horizontal coordinate of the area to be tested, start_y represents the starting vertical coordinate of the area to be tested, width represents the width of the area to be tested, height represents the height of the area to be tested, and times represents the number of tests (i.e., the number of pixels to be tested). For example, at+randomtest=0,0,240,280,1000 means that 1000 tests are performed randomly in the range of starting horizontal coordinate 0, width 240, starting vertical coordinate 0, and width 280 (i.e., in the range of x∈[0,240], y∈[0,280]).

[0109] For example, the AT command sequence may include: at+randomtest=<start_x> ,<start_y> ,<end_x> ,<end_y> , <times>.

[0110] Wherein, start_x represents the starting horizontal coordinate of the area to be tested, start_y represents the starting vertical coordinate of the area to be tested, end_x represents the ending horizontal coordinate of the area to be tested, end_y represents the ending vertical coordinate of the area to be tested, and times represents the number of tests (i.e., the number of pixels to be tested). For example, at+randomtest=0,0,240,280,1000 means that 1000 tests are performed randomly within the range of starting horizontal coordinate 0, starting horizontal coordinate 240, ending vertical coordinate 0, and ending vertical coordinate 280 (i.e., within the range of x∈[0,240], y∈[0,280]).

[0111] For example, the AT command sequence may not include <times>Or only include <times>For those not including <times>In the case of <times>In this case, the test range can be preset on the lower computer. The specific implementation of the preset test times or test range on the lower computer is not limited in the embodiments of the present application.

[0112] In yet another possible implementation, the AT command sequence may indirectly indicate the coordinate range of the area to be tested.

[0113] Exemplarily, the screen of the RTOS system may be divided into blocks based on the actual click frequency of the user and / or the screen failure rate. Thus, the AT command sequence may include information indicating the screen division of the RTOS system (e.g., block numbers, each number corresponding to a block area).

[0114] S302: The host computer determines whether the AT command is executed.

[0115] It should be understood that the host computer can determine the execution status of the AT command based on the response message (described in step S311 below, and not repeated in this application).

[0116] Specifically, when the host computer receives a response message, it means that the AT command has been executed, the lower computer has completed the stability test, and the host computer and the lower computer can end the test process. Thus, the R&D personnel can troubleshoot system defects based on the test results. After the modification is completed, the stability test can be performed again based on method 300 to ensure the stable operation of the system.

[0117] If the host computer does not receive the response message, it means that the AT command has not been executed, and the host computer and the slave computer can continue to execute steps S303-S311.

[0118] S303: The upper computer sends an AT command to the lower computer; correspondingly, the lower computer receives the AT command from the upper computer.

[0119] S304: The lower computer parses the AT command.

[0120] It should be noted that, for the relevant content of the lower computer parsing the AT command, reference can be made to the description in the prior art, and this application will not elaborate on it here.

[0121] S305: The lower computer determines whether the AT command is valid.

[0122] It should be understood that the communication process between the upper computer and the lower computer may have problems such as delay and packet loss, which may cause the lower computer to be unable to accurately receive the AT command sent by the upper computer. Therefore, after the lower computer parses the AT command, it can further determine whether the AT command is valid, that is, whether the AT command is a correct command.

[0123] Specifically, when the AT command is an invalid command, the upper computer and the lower computer may repeatedly execute steps S303-S305 to ensure that the lower computer accurately receives the AT command.

[0124] S306: The lower computer determines the coordinate position.

[0125] It should be understood that the lower computer can determine the coordinate position according to the AT command sequence. Specifically, there can be different position determination methods based on different AT command sequence formats.

[0126] Method 1:

[0127] Corresponding to the AT command sequence including the position coordinates of at least one pixel point on which the lower computer needs to perform a stability test, the lower computer can directly determine the coordinates to be tested by parsing the content of the AT command sequence.

[0128] Method 2:

[0129] Corresponding to the AT command sequence including the coordinate range for which the lower computer needs to perform stability testing, the lower computer can determine the position coordinates by itself according to the coordinate range.

[0130] Exemplarily, the lower computer may include a pseudo-random sequence generating unit, which is used to generate coordinates to be tested within the coordinate range according to the coordinate range and the number of executions, and the number of coordinates to be tested is the same as the number of generation times.

[0131] It should be understood that the pseudo-random sequence generating unit can be implemented based on a chaotic system. For example, the system parameters and / or initial values ​​of the chaotic system can be adjusted according to the coordinate range, and the number of iterations of the chaotic system can be adjusted according to the number of coordinate points to be tested; or, the pseudo-random sequence generating unit can also be implemented only based on other methods. Regarding the method of generating a limited number of coordinate positions within the coordinate range based on the pseudo-random sequence generating unit, reference can be made to the relevant content in the prior art, and this application will not elaborate on it here.

[0132] Exemplarily, the lower computer can also determine the location coordinates based on preset rules. For example, the lower computer can pre-set a set of preset rules (the lower computer can determine the coordinates to be tested in sequence according to the actual coordinate position arrangement order within the coordinate range; or, it can also jump to determine the coordinates to be tested within the coordinate range, etc.), and after the lower computer receives the AT command sequence, it has determined the location coordinates to be tested based on the specific method indicated by the preset rules; or, the lower computer can also pre-set multiple sets of preset rules, and the AT command sequence sent by the upper computer can carry indication information of the preset rules (for example, the indication information includes: which set of multiple sets is selected as the preset rules for determining the location coordinates; or, the indication information includes: which method is used to uniquely determine which set of multiple sets is used as the preset rules for determining the location coordinates). The embodiments of the present application do not limit the specific content of the preset rules.

[0133] It should be noted that, in the process of the lower computer determining the position coordinates to be tested by itself, it may also include determining a coordinate sub-range and determining the number of tests corresponding to the sub-range.

[0134] Optionally, the lower computer may determine the coordinate range to be tested according to the content of the AT command sequence, divide the coordinate range to be tested into at least one sub-range in combination with the actual click frequency of the user, and determine the position coordinates in the at least one sub-range respectively. The number of position coordinates determined in each sub-range (i.e., the number of tests in each sub-range) is related to the actual click frequency of the user.

[0135] Exemplarily, the lower computer divides the coordinate range to be tested into range #1, range #2 and range #3 according to the actual click frequency of the user, wherein the ratio of the actual number of clicks of the user corresponding to range #1, range #2 and range #3 is 1:2:3. Then the lower computer can divide the total number of tests according to the ratio of 1:2:3, so that the number of tests allocated to range #1, range #2 and range #3 is 1:2:3.

[0136] Optionally, the lower computer may also determine the coordinate range to be tested according to the content of the AT command sequence, divide the coordinate range to be tested into at least one sub-range in combination with the screen failure rate, and determine the position coordinates in the at least one sub-range respectively. The number of position coordinates determined in each sub-range (i.e., the number of tests in each sub-range) is related to the screen failure rate.

[0137] Exemplarily, the lower computer divides the coordinate range to be tested into range #1, range #2 and range #3 according to the screen failure rate, wherein the failure rates corresponding to range #1, range #2 and range #3 are 1%, 2% and 3%, respectively (i.e., the ratio of the failure rates corresponding to range #1, range #2 and range #3 is 1:2:3). The lower computer can divide the total number of tests according to the ratio of 1:2:3, so that the number of tests allocated to range #1, range #2 and range #3 is 1:2:3.

[0138] Optionally, after the lower computer determines the coordinate position, it can further determine whether the coordinate position to be tested is within the valid range (i.e., the display range of the lower computer screen; or, the coordinate range to be tested involved in the AT command sequence), thereby improving the effectiveness of the stability test. It should be understood that when the determined coordinate position is within the valid range, the next step is continued; when the determined coordinate position is outside the valid range, it indicates that the determined coordinate position is invalid, and the lower computer can regenerate the coordinates to be tested through the pseudo-random sequence generation unit (i.e., repeat step S306 until all the determined coordinate positions are within the valid range).

[0139] S307: The lower computer performs a random click operation.

[0140] Specifically, the lower computer generates a click operation at the coordinate position to be tested, and clicks at the corresponding position. That is, the lower computer generates a random menu click operation.

[0141] S308: The lower computer determines whether the random click operation is completed.

[0142] Specifically, the lower computer determines whether the random click is completed according to the number of executions of the click operation. When the actual number of executions of the click operation is less than the number of executions to be tested, it means that the random click operation has not been completed, and the lower computer can continue to test according to the determined coordinate position, or the lower computer can continue to repeat steps S306-S307 until the random click operation is completed. When the actual number of executions of the click operation is equal to the number of executions to be tested, it means that the random click operation has been completed, and the next step is continued.

[0143] S309: The lower computer sends a response message to the upper computer; correspondingly, the upper computer receives the response message from the lower computer.

[0144] Specifically, the response message is used to indicate that the lower computer has completed the stability test. The response message may carry information about the stability test performed by the lower computer.

[0145] Exemplarily, the response message may include the final test result of the stability test performed by the lower computer.

[0146] For example, a reply message may include: +randomtest:<start_x> ,<start_y> , <width> , <height> , <times> , <result>.

[0147] Wherein, start_x represents the starting horizontal coordinate of the area to be tested, start_y represents the starting vertical coordinate of the area to be tested, width represents the width of the area to be tested, height represents the height of the area to be tested, times represents the number of tests (i.e., the number of pixels to be tested), and result represents the test result of the area to be tested. For example, +randomtest=0, 0, 240, 280, 1000, PASS means that 1000 tests are performed randomly in the range of starting horizontal coordinate 0, width 240, starting vertical coordinate 0, width 280 (i.e., in the range of x∈[0, 240], y∈[0, 280]), and the test result is "passed". For another example, +randomtest=0, 0, 240, 280, 1000, FAIL means that 1000 tests are randomly performed in the range of x∈[0, 240], y∈[0, 280]) with a starting horizontal coordinate of 0 and a width of 240, and a starting vertical coordinate of 0 and a width of 280, and the test result is "fail".

[0148] For another example, the response message may include: at+randomtest=<start_x> ,<start_y> ,<end_x> ,<end_y> , <times> , <result>.

[0149] Wherein, start_x represents the starting horizontal coordinate of the area to be tested, start_y represents the starting vertical coordinate of the area to be tested, end_x represents the ending horizontal coordinate of the area to be tested, end_y represents the ending vertical coordinate of the area to be tested, times represents the number of tests (i.e., the number of pixels to be tested), and result represents the test result of the area to be tested. For example, at+randomtest=0,0,240,280,1000, PASS means that 1000 tests are randomly performed within the range of starting horizontal coordinate 0, starting horizontal coordinate 240, ending vertical coordinate 0, and ending vertical coordinate 280 (i.e., within the range of x∈[0,240], y∈[0,280]), and the test result is "passed". For another example, +randomtest=0, 0, 240, 280, 1000, FAIL means that 1000 tests are randomly performed within the range of starting horizontal coordinate 0, starting horizontal coordinate 240, ending vertical coordinate 0, and ending vertical coordinate 280 (i.e., within the range of x∈[0, 240], y∈[0, 280]), and the test result is "fail".

[0150] Exemplarily, the response message may include the test result of each stability test performed by the lower computer.

[0151] For example, a reply message may include: +randomtest: <x> , <y> , <result>. Among them, x represents the starting horizontal coordinate of the test point, y represents the vertical coordinate of the test point, and result represents the test result.

[0152] In this case, after receiving the test results of each test, the host computer can process all the test results. For example, the test results can be classified based on a clustering algorithm; or the test results can be visualized so that the tester can quickly locate the problem based on the test results.

[0153] In order to facilitate understanding of the above embodiments provided in this application, the following explanations are made.

[0154] (1) In the embodiments of the present application, "indication" may include direct indication, indirect indication, explicit indication, and implicit indication. When describing that a certain indication information is used to indicate A, it can be understood that the indication information carries A, directly indicates A, or indirectly indicates A.

[0155] In the present application, the information indicated by the indication information is referred to as the information to be indicated. In the specific implementation process, there are many ways to indicate the information to be indicated, such as but not limited to, the information to be indicated can be directly indicated, such as the information to be indicated itself or the index of the information to be indicated. The information to be indicated can also be indirectly indicated by indicating other information, wherein there is an association relationship between the other information and the information to be indicated. It is also possible to indicate only a part of the information to be indicated, while the other parts of the information to be indicated are known or agreed in advance. For example, the indication of specific information can also be achieved by means of the arrangement order of each information agreed in advance (for example, specified by the protocol), thereby reducing the indication overhead to a certain extent. In addition, the information to be indicated can be sent as a whole, or it can be divided into multiple sub-information and sent separately, and the sending period and / or sending time of these sub-information can be the same or different.

[0156] (2) In this application, "send" and "receive" indicate the direction of signal transmission. For example, "send information to XX" can be understood as the destination of the information is XX, which can include direct sending through the air interface, and also include indirect sending through the air interface by other units or modules. "Receive information from YY" can be understood as the source of the information is YY, which can include direct receiving from YY through the air interface, and also include indirect receiving from YY through the air interface from other units or modules. "Send" can also be understood as the "output" of the chip interface, and "receive" can also be understood as the "input" of the chip interface. In other words, sending and receiving can be performed between devices, for example, between network devices and terminal devices, or can be performed within a device, for example, sending or receiving between components, modules, chips, software modules or hardware modules within the device through a bus, wiring or interface.

[0157] (3) In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the different embodiments are consistent and can be referenced to each other. The technical features in the different embodiments can be combined to form a new embodiment based on their internal logical relationships.

[0158] (4) In this application, "first" and "second" are only used for convenience of description and to distinguish objects, and are not used to limit the scope of the embodiments of this application. They are not used to describe the order or sequence of features. It should be understood that the objects described in this way can be interchanged under appropriate circumstances so as to be able to describe solutions other than the embodiments of this application.

[0159] (5) In the present application, "pre-definition" may be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in the device, and the present application does not limit the specific implementation method.

[0160] (6) In this application, words such as "exemplary", "for example", "illustratively", "as (another) example" and the like are used to indicate examples, illustrations or explanations. Any embodiment or design described as an "example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs.

[0161] (7) In this application, "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized. "At least one" means one or more, and "more than one" means two or more.

[0162] (8) In the present application, "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c. Where a, b and c can be single or plural, respectively.

[0163] (9) In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the different embodiments are consistent and can be referenced to each other. The technical features in the different embodiments can be combined to form a new embodiment based on their internal logical relationships.

[0164] (10) Some optional features in the embodiments of the present application may not depend on other features in some scenarios, or may be combined with other features in some scenarios, without limitation.

[0165] Combination of the above Figures 2 to 3 The method of the embodiment of the present application is described in detail. In order to realize the functions in the method provided by the present application, both the host computer and the slave computer may include hardware structure and / or software module, and the above functions are realized in the form of hardware structure, software module, or hardware structure plus software module. Whether a function of the above functions is executed in the form of hardware structure, software module, or hardware structure plus software module depends on the specific application and design constraints of the technical solution.

[0166] Combine the following Figures 4 to 6 An automated testing device according to an embodiment of the present application is described.

[0167] Figure 4 It is a structural diagram of a stability testing device 400 based on RTOS applicable to an embodiment of the present application.

[0168] The device 400 includes a transceiver unit 410 and a processing unit 420. The transceiver unit 410 can communicate with the outside, and the processing unit 420 is used for data processing. The transceiver unit 410 can also be called a communication interface or a communication unit.

[0169] Optionally, the transceiver unit 410 may also be referred to as a communication interface or a communication unit, including a sending unit and / or a receiving unit. The transceiver unit 410 may be a transceiver (including a transmitter and / or a receiver), an input / output interface (including an input and / or output interface) or a pin or a circuit, etc. The transceiver unit 410 may be used to perform the steps of sending and / or receiving in the above method embodiment.

[0170] Optionally, the processing unit 420 may be a processor (may include one or more) or a processing circuit with a processor function, etc., and may be used to execute other steps except sending and receiving in the above method embodiment.

[0171] Optionally, the device 400 further includes a storage unit, which may be a memory, an internal storage unit (e.g., a register or a cache, etc.), or an external storage unit (e.g., a read-only memory or a random access memory, etc.). The storage unit is used to store instructions, and the processing unit 420 executes the instructions stored in the storage unit so that the communication device executes the above method.

[0172] In addition, the transceiver unit 410 may also be a transceiver circuit (for example, may include a receiving circuit and a sending circuit), and the processing unit 420 may be a processing circuit.

[0173] It should be pointed out that Figure 4 The device in the invention may also be a chip or a chip system, for example, a system on chip (SoC). The transceiver unit may be an input / output circuit or a communication interface; the processing unit may be a processor or a microprocessor or an integrated circuit integrated on the chip. This application does not limit this.

[0174] The device 400 can be used to execute the actions executed by the host computer in the above method embodiment. In this case, the device 400 can be a host computer or a component that can be configured in the host computer.

[0175] The transceiver unit 410 is used to perform the transceiver-related operations on the upper computer side in the above method embodiment, for example, to receive first information, wherein the first information includes a first test range and a first test number, and the first information is used to instruct the lower computer to perform a click test within the first test range, and the number of executions of the click test is the same as the first test number; and to send second information, wherein the second information is used to indicate the result of the click test.

[0176] The processing unit 420 is used to execute operations related to the processing on the upper computer side in the above method embodiment, for example, to obtain multiple second test ranges within the first test range and the second test times corresponding to each second test range in the multiple second test ranges, the second test times are positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test times is the first test times; and the click test is performed according to the second test range and the second test times.

[0177] Optionally, the processing unit 420 is also used to determine the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; determine the second test number based on the second test range, the first test number and the click rate and / or failure rate of the lower computer within the second test range.

[0178] Optionally, the processing unit 420 is further configured to determine at least one test point based on a pseudo-random sequence generator, according to the second test range and the second test number; and perform the click test on the at least one test point.

[0179] Alternatively, the apparatus 400 may be used to execute the actions executed by the lower computer in the above method embodiment. In this case, the apparatus 400 may be a second device or a component that may be configured in the lower computer.

[0180] The transceiver unit 410 is used to perform transceiver-related operations on the lower computer side in the above method embodiment, for example, to send first information, wherein the first information includes a first test range and a first test number, wherein the first information is used to instruct the lower computer to perform a click test within the first test range, wherein the number of executions of the click test is the same as the first test number, wherein the first test range includes multiple second test ranges, wherein each of the multiple second test ranges corresponds to a second test number, wherein the second test number is positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test numbers is the first test number; and receive second information, wherein the second information is used to indicate the result of the click test.

[0181] The processing unit 420 is used to perform operations related to the processing on the lower computer side in the above method embodiment, for example, to determine the second test range based on the first test range and the click rate and / or failure rate of the lower computer within the first test range; to determine the second test number based on the second test range, the first test number and the click rate and / or failure rate of the lower computer within the second test range.

[0182] It should be understood that the apparatus 400 herein is embodied in the form of a functional unit. The term "unit" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.

[0183] The device 400 of each of the above schemes has the function of implementing the corresponding steps performed by the upper computer and / or the lower computer in the above method. The function can be implemented by hardware, or by hardware executing the corresponding software implementation. The hardware or software includes one or more modules corresponding to the above functions; for example, the transceiver unit can be replaced by a transceiver (for example, the sending unit in the transceiver unit can be replaced by a transmitter, and the receiving unit in the transceiver unit can be replaced by a receiver), and other units, such as the processing unit, can be replaced by a processor, respectively performing the transceiver operations and related processing operations in each method embodiment.

[0184] Figure 5 It is a structural diagram of a stability testing device 500 based on RTOS provided in an embodiment of the present application.

[0185] like Figure 5 As shown, the device 500 includes a processor 510 and a transceiver 520. The processor 510 and the transceiver 520 communicate with each other through an internal connection path, and the processor 510 is used to execute instructions to control the transceiver 520 to send and / or receive signals.

[0186] Optionally, the device 500 may further include a memory 530, which communicates with the processor 510 and the transceiver 520 via an internal connection path. The memory 530 is used to store instructions, and the processor 510 may execute the instructions stored in the memory 530.

[0187] In a possible implementation, the device 500 is used to implement various processes and steps corresponding to the host computer in the above method embodiment.

[0188] It should be understood that the device 500 can be specifically the host computer in the above embodiment, or a chip or a chip system. Correspondingly, the transceiver 520 can be a transceiver circuit of the chip, which is not limited here. For example, the device 500 can be used to execute the various steps and / or processes corresponding to the host computer in the above method embodiment.

[0189] In a possible implementation, the device 500 is used to implement various processes and steps corresponding to the lower computer in the above method embodiment.

[0190] It should be understood that the device 500 can be specifically the lower computer in the above embodiment, or a chip or a chip system. Correspondingly, the transceiver 520 can be a transceiver circuit of the chip, which is not limited here. For example, the device 500 can be used to execute the various steps and / or processes corresponding to the lower computer in the above method embodiment.

[0191] Optionally, the memory 530 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 510 may be used to execute instructions stored in the memory, and when the processor 510 executes instructions stored in the memory, the processor 510 is used to execute the various steps and / or processes of the above-mentioned method embodiment corresponding to the host computer.

[0192] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0193] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The processor in the embodiment of the present application can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0194] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously connected dynamic random access memory, and direct memory bus random access memory. It should be noted that the memory of the system and method described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0195] Figure 6 It is a schematic diagram of the structure of a chip system 600 provided in an embodiment of the present application.

[0196] like Figure 6 As shown, the chip system 600 (or may also be called a processing system) includes a logic circuit 610 and an input / output interface (input / output interface) 620 .

[0197] Among them, the logic circuit 610 can be a processing circuit in the chip system 600. The logic circuit 610 can be coupled to the storage unit and call the instructions in the storage unit so that the chip system 600 can implement the methods and functions of each embodiment of the present application. The input / output interface 620 can be an input / output circuit in the chip system 600, outputting information processed by the chip system 600, or inputting data or signaling information to be processed into the chip system 600 for processing.

[0198] As a solution, the chip system 600 is used to implement the operations performed by the upper computer or the lower computer in the above various method embodiments.

[0199] The present application also provides a computer-readable medium on which a computer program is stored. When the computer program is executed by a computer, the functions of any of the above method embodiments are implemented.

[0200] The present application also provides a computer program product, which implements the functions of any of the above method embodiments when executed by a computer.

[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0202] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0203] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0204] In the several embodiments provided in the present application, it should be understood that the disclosed systems, 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.

[0205] 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.

[0206] 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.

[0207] If the functions are implemented in the form of software functional units 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 application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0208] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.< / result> < / y> < / x> < / result> < / times> < / result> < / times> < / height> < / width> < / times> < / times> < / times> < / times> < / times> < / times> < / height> < / width>

Claims

1. A stability test method based on RTOS, applied to a lower computer, characterized in that: include: Receive first information, the first information including a first test range and a first test number, the first information being used to instruct the lower computer to perform a click test within the first test range, the execution number of the click test being the same as the first test number; Acquire multiple second test ranges within the first test range and a second test number corresponding to each second test range in the multiple second test ranges, wherein the second test number is positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test numbers is the first test number; Perform the click test according to the second test range and the second test number; Sending second information, where the second information is used to indicate a result of the click test.

2. The method according to claim 1, characterized in that The acquiring a plurality of second test ranges within the first test range and a second test number corresponding to each second test range in the plurality of second test ranges comprises: Determine the second test range according to the first test range and the click rate and / or failure rate of the lower computer within the first test range; The second test number is determined according to the second test range, the first test number, and the click rate and / or failure rate of the lower computer within the second test range.

3. The method according to claim 1, characterized in that The first information includes the plurality of second test ranges and the second test number corresponding to each of the plurality of second test ranges.

4. The method according to any one of claims 1 to 3, characterized in that The performing the click test according to the second test range and the second test number includes: Based on a pseudo-random sequence generator, determining at least one test point according to the second test range and the second test number; The click test is performed on the at least one test point.

5. A stability test method based on RTOS, applied to a host computer, characterized in that: include: Sending first information, wherein the first information includes a first test range and a first test number, the first information is used to instruct the lower computer to perform a click test within the first test range, the execution number of the click test is the same as the first test number, the first test range includes multiple second test ranges, each of the multiple second test ranges corresponds to a second test number, the second test number is positively correlated with the click rate and / or failure rate of the second test range, and the sum of the multiple second test numbers is the first test number; Second information is received, where the second information is used to indicate a result of the click test.

6. The method according to claim 5, characterized in that The method further comprises: Determine the second test range according to the first test range and the click rate and / or failure rate of the lower computer within the first test range; The second test number is determined according to the second test range, the first test number, and the click rate and / or failure rate of the lower computer within the second test range.

7. A terminal, characterized in that: The terminal comprises means for performing the method according to any one of claims 1 to 4.

8. A testing device, characterized in that: The device comprises means for performing the method according to claim 5 or 6.

9. A testing system, characterized in that: It comprises the terminal as claimed in claim 7 and the testing device as claimed in claim 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

11. A chip or a chip system, characterized in that: include: A processor, used to call and run a computer program from a memory, so that a communication device equipped with the chip system executes the method described in any one of claims 1 to 6.