Equipment testing methods, devices, storage media and electronic devices

By acquiring and analyzing device wake-up logs, the simultaneous wake-up of devices under the same wake-up command can be determined, solving the problem of incomplete device wake-up function testing in existing technologies and achieving more accurate device wake-up function detection.

CN115602149BActive Publication Date: 2025-12-02HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211208400.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-12-02
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

Existing test results for device wake-up functionality are not comprehensive enough and have poor accuracy, especially when testing the wake-up status of a single device.

Method used

By acquiring the wake-up logs generated when the device is woken up, including the user to whom the device belongs and the time when the wake-up action occurs, the wake-up logs of the same user are grouped together and sorted according to the time when the wake-up action occurs. The time difference between the wake-up logs is calculated to determine the devices that wake up simultaneously under the same wake-up command, and the test results are output.

Benefits of technology

It enables comprehensive and accurate testing of the wake-up function of multiple devices, and can identify devices that are woken up simultaneously, thus improving the comprehensiveness and accuracy of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115602149B_ABST
    Figure CN115602149B_ABST
Patent Text Reader

Abstract

This application discloses a device testing method, apparatus, storage medium, and electronic device. The method includes: acquiring a wake-up log generated when a device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurs; grouping wake-up logs belonging to the same user into the same group, and sorting the wake-up logs in the same group according to the time when the wake-up action occurs; for each wake-up log, determining the time difference between the wake-up log and the previous wake-up log based on the time when the wake-up action occurs, and determining the devices that are simultaneously woken up under the same wake-up command based on the time difference; outputting test results based on the devices that are simultaneously woken up, thereby enabling comprehensive and accurate testing of the device's wake-up function for multiple wake-up commands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart device technology, and more specifically, to a device detection method, apparatus, storage medium, and electronic device. Background Technology

[0002] As devices become increasingly intelligent, more and more devices have voice control functions, and it is usually necessary to wake up the device with voice before making voice control.

[0003] To test the voice wake-up function of devices, such as smart home devices or electrical appliances, the wake-up status of a single device is usually tested. This involves sending voice commands to the device under test and determining the test results based on the device's response. However, the test results determined in this way are not comprehensive enough and have poor accuracy. Summary of the Invention

[0004] This application provides a device testing method, apparatus, storage medium, and electronic device to solve the problem that existing tests on the wake-up status of individual devices are not comprehensive enough and have poor accuracy.

[0005] In a first aspect, this application provides a device testing method, the method comprising:

[0006] Acquire the wake-up log generated when the device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurred.

[0007] The wake-up logs of users belonging to the same device are grouped together, and the wake-up logs in the same group are sorted according to the time when the wake-up action occurred;

[0008] For each wake-up log, the time difference between the wake-up log and the previous wake-up log is determined based on the time of the wake-up action, and the devices that wake up simultaneously under the same wake-up command are determined based on the time difference.

[0009] The test results are output based on the devices that are woken up simultaneously.

[0010] Optionally, determining the devices that wake up simultaneously under the same wake-up command based on the time difference includes:

[0011] For each wake-up log, calculate the first cumulative time difference between each wake-up log and the previous wake-up log based on the time difference corresponding to that wake-up log;

[0012] The devices that respond to the same wake-up command are determined based on the first cumulative time difference and the maximum wake-up time; the maximum wake-up time represents the maximum response time of a device to a wake-up command.

[0013] Based on the time difference corresponding to each wake-up log, select devices that wake up simultaneously from those that respond to the same wake-up command.

[0014] Optionally, determining the devices responding to the same wake-up command based on the first cumulative time difference and the maximum wake-up time includes:

[0015] Divide the first cumulative time difference by the maximum wake-up time, and determine the integer part of the division result as the label of the wake-up log;

[0016] The devices corresponding to the wake-up logs with the same label are identified as devices that responded to the same wake-up command.

[0017] Optionally, the method further includes:

[0018] The number of tag types is determined based on the tags of all wake-up logs;

[0019] The number of simultaneous wake-ups corresponding to the user to whom the device belongs is determined based on the number of tags.

[0020] Optionally, the device that responds first among multiple devices responding to the same wake-up command is the target device; based on the time difference corresponding to each wake-up log, devices that wake up simultaneously are selected from the devices responding to the same wake-up command, including:

[0021] For each wake-up log corresponding to the time difference, calculate the second cumulative time difference between each wake-up log and the previous wake-up log in the wake-up logs with the same label;

[0022] When the second cumulative time difference is less than a preset time, it is determined that the device corresponding to the second cumulative time difference and the target device are woken up simultaneously.

[0023] Optionally, the method further includes:

[0024] For a given wake-up command, determine the device that should respond to the wake-up command;

[0025] Based on the identified devices that respond to the wake-up command and the devices that wake up simultaneously under the wake-up command, devices that do not wake up simultaneously are determined;

[0026] Accordingly, the test results output by the simultaneously woken-up devices include:

[0027] Obtain the version information of devices that did not wake up simultaneously, and output the version information.

[0028] Optionally, the wake-up log generated when the device is woken up includes:

[0029] Retrieve the identification information corresponding to all logs;

[0030] Filter the identification information that corresponds to the wake-up log from the identification information, and obtain the corresponding wake-up log based on the filtered identification information.

[0031] Secondly, this application provides a device for testing equipment, the device comprising:

[0032] The acquisition module is used to acquire the wake-up log generated when the device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurred;

[0033] The sorting module is used to divide the wake-up logs of the same user to which the device belongs into the same group, and sort the wake-up logs in the same group according to the time when the wake-up action occurred;

[0034] The determination module is used to determine the time difference between the wake-up log and the previous wake-up log based on the time of the wake-up action for each wake-up log, and to determine the devices that wake up simultaneously under the same wake-up command based on the time difference.

[0035] The output module is used to output test results based on the devices that are woken up simultaneously.

[0036] Thirdly, this application provides a computer-readable storage medium comprising a stored program, wherein the program, when executed, performs the method as described in any of the first aspects.

[0037] Fourthly, this application provides an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to perform the method as described in any of the first aspects through the computer program.

[0038] This invention provides a device testing method, apparatus, storage medium, and electronic device. The method includes: acquiring a wake-up log generated when a device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurs; grouping wake-up logs belonging to the same user into the same group, and sorting the wake-up logs in the same group according to the time when the wake-up action occurs; for each wake-up log, determining the time difference between the wake-up log and the previous wake-up log based on the time when the wake-up action occurs, and determining the devices that are simultaneously woken up under the same wake-up command based on the time difference; outputting test results based on the devices that are simultaneously woken up, thereby enabling comprehensive and accurate testing of the device's wake-up function for multiple wake-up commands. Attached Figure Description

[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a schematic diagram of the hardware environment of a device detection method according to an embodiment of this application;

[0042] Figure 2 This is a schematic flowchart of a device testing method according to an embodiment of this application;

[0043] Figure 3 This is a schematic diagram illustrating a process for processing wake-up logs according to an embodiment of this application;

[0044] Figure 4 This is a schematic flowchart of another device testing method according to an embodiment of this application;

[0045] Figure 5 This is a schematic diagram of the structure of a device testing apparatus according to an embodiment of this application;

[0046] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0047] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0048] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0049] According to one aspect of the embodiments of this application, a device testing method is provided. Figure 1 This is a schematic diagram of the hardware environment for a device detection method according to an embodiment of this application. Optionally, in this embodiment, the above-described device detection method can be applied to, for example... Figure 1 The system shown comprises multiple devices and a server. The voice wake-up function of the devices can be tested before they leave the factory or during the sales process in experience stores, allowing for timely handling of any wake-up function issues. For example... Figure 1 As shown, device 101 is a washing machine, and there can be multiple washing machines. Each washing machine has voice control functionality. Server 102 connects to device 101 via a network, and the device can respond when the user sends a command. For example, when the user sends the voice command "Xiao You Xiao You," the device can respond with a voice message or execute the user's voice control command, such as "I'm here!" When responding to a voice command, the device can generate a wake-up log and store it on server 102. When testing the device's voice wake-up function, the wake-up log can be obtained, and the wake-up status of multiple devices can be determined based on the wake-up log.

[0050] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 101 may not be limited to PCs, mobile phones, tablets, smart home devices, etc.

[0051] In existing technologies, when testing the wake-up function of a device, the wake-up status of a single device is usually tested. For example, if a user sends a voice command, the human operator determines whether there is a problem with the voice wake-up function of the device based on the voice response time of the device being tested.

[0052] To address the aforementioned issues, this application provides a device detection method. When a device is woken up, it can generate a wake-up log. Based on the wake-up log, the simultaneous wake-up status of multiple devices in response to a wake-up command can be determined. Based on the simultaneous wake-up status, the device's wake-up function can be detected, solving the problem that existing tests on the wake-up status of a single device are not comprehensive enough and have poor accuracy.

[0053] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Where there is no conflict between the embodiments, the following embodiments and features can be combined with each other. Furthermore, the timing of the steps in the following method embodiments is merely an example and not a strict limitation.

[0054] Figure 2 This is a flowchart illustrating a device testing method according to an embodiment of this application. The method can be executed by a device testing apparatus, which can be located on a server. The device testing apparatus can be implemented using software, hardware, or a combination of both. Figure 2 As shown, the method includes:

[0055] Step S201: Obtain the wake-up log generated when the device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurred.

[0056] When it's necessary to test a device's wake-up function, wake-up logs within a preset time period can be retrieved. Wake-up logs represent the logs generated when a device is woken up. The wake-up logs record the time of the wake-up action, which can be used to determine if multiple devices are woken up simultaneously. Wake-up logs are stored in a Hive database, and log data can be retrieved from the Hive database.

[0057] In addition, the wake-up log can also include identifiers to distinguish different devices, such as MAC addresses, or device identifier names, such as device A, device B, etc.

[0058] Optionally, the wake-up log generated when the device is woken up includes:

[0059] Obtain the identification information corresponding to all logs; filter the identification information corresponding to the wake-up log from the identification information, and obtain the corresponding wake-up log according to the filtered identification information.

[0060] The server stores various types of logs, and different identifiers can be set for each type of log to differentiate them. When retrieving wake-up logs, wake-up logs can be filtered from all logs based on their identifiers.

[0061] Specifically, if the identifier of the wake-up log is "dowakeup", then obtain the identifier of each wake-up log, determine whether the identifier is "dowakeup", and if so, determine that the log corresponding to the identifier is a wake-up log.

[0062] By identifying wake-up logs based on identification information, wake-up logs can be accurately filtered out, thereby improving the identification of devices that are woken up simultaneously.

[0063] Step S202: Divide the wake-up logs of the same user to which the device belongs into the same group, and sort the wake-up logs in the same group according to the time when the wake-up action occurred.

[0064] Each wake-up log can correspond to a user, making it easy to determine the wake-up status of devices under a given user. After grouping, the wake-up logs can be sorted according to the occurrence time of the wake-up action, arranged in ascending order of occurrence time. This sorting facilitates the determination of simultaneous wake-up of multiple devices.

[0065] Step S203: For each wake-up log, determine the time difference between the wake-up log and the previous wake-up log based on the time of the wake-up action, and determine the devices that wake up simultaneously under the same wake-up command based on the time difference.

[0066] For multiple wake-up logs belonging to the same user, the time difference between two adjacent wake-up logs can be calculated. Specifically, the time difference between the next wake-up log and the previous wake-up log can be calculated, and this calculated time difference is determined as the time difference corresponding to the next wake-up log. Finally, based on the time difference corresponding to each wake-up log, the number of times the user issued a wake-up command, and the devices that were simultaneously woken up each time a wake-up command was issued, can be determined.

[0067] In addition, the number of times each device is simultaneously woken up can be determined based on the device dimension, which makes it easier to generate wake-up information for each device and facilitates troubleshooting.

[0068] Step S204: Output test results based on the devices that are woken up simultaneously.

[0069] Once the devices that simultaneously wake up in response to the same wake-up command are identified, test results can be output. These results may include: the number of wake-up commands issued, the devices that simultaneously wake up with each command, and / or, the product batch of each instance of simultaneous wake-up. This information allows subsequent testers to examine devices or product batches exhibiting wake-up anomalies and optimize their wake-up functionality.

[0070] The device detection method provided in this application includes: acquiring wake-up logs generated when a device is woken up; the wake-up logs include the user to whom the device belongs and the time when the wake-up action occurs; dividing wake-up logs belonging to the same user into the same group, and sorting the wake-up logs in the same group according to the time when the wake-up action occurs; for each wake-up log, determining the time difference between the wake-up log and the previous wake-up log based on the time when the wake-up action occurs, and determining the devices that are simultaneously woken up under the same wake-up command based on the time difference; outputting test results based on the devices that are simultaneously woken up, thereby determining the devices that are simultaneously woken up each time for multiple wake-up commands, so as to perform a comprehensive and accurate test on the wake-up function of the device.

[0071] Figure 3 This is a schematic diagram of a wake-up log processing procedure according to an embodiment of this application; optionally, determining devices that wake up simultaneously under the same wake-up command based on the time difference includes:

[0072] Step S301: For each wake-up log, calculate the first cumulative time difference between each wake-up log and the previous wake-up log based on the time difference corresponding to the wake-up log;

[0073] Step S302: Determine the devices that respond to the same wake-up command based on the first cumulative time difference and the maximum wake-up time; the maximum wake-up time represents the maximum response time of the device to a wake-up command;

[0074] Step S303: Based on the time difference corresponding to each wake-up log, select devices that wake up simultaneously from the devices that respond to the same wake-up command.

[0075] Since the wake-up logs obtained are for a period of time, each wake-up log may correspond to multiple wake-up commands issued by the user. Therefore, it is necessary to first determine the multiple wake-up logs corresponding to each wake-up command.

[0076] For each wake-up log, there is a corresponding time difference, which represents the difference between the wake-up action time corresponding to this wake-up log and the wake-up action time corresponding to the previous wake-up log. Based on the time difference corresponding to each wake-up log, a first cumulative time difference can be calculated for each wake-up log. The first cumulative time difference represents the difference between the wake-up action time of this wake-up log and the wake-up action time of the first device that generated the wake-up action.

[0077] Typically, when a user sends a wake-up command, the device can wake up within a maximum wake-up time, for example, 5 seconds. Therefore, based on the relationship between the first cumulative time difference and the maximum wake-up time, the correspondence between each wake-up log and different wake-up commands can be determined, that is, the multiple devices that responded to the same wake-up command can be identified.

[0078] After identifying multiple devices that respond to the same wake-up command, the devices that wake up simultaneously to the same wake-up command can be determined based on the time difference corresponding to each wake-up log.

[0079] Based on the relationship between the first cumulative time difference of each wake-up log and the maximum wake-up time, multiple devices that respond to the same wake-up command can be accurately identified, improving the accuracy of identifying devices that wake up simultaneously.

[0080] Optionally, determining the devices responding to the same wake-up command based on the first cumulative time difference and the maximum wake-up time includes:

[0081] Divide the first cumulative time difference by the maximum wake-up time, and determine the integer part of the division result as the tag of the wake-up log; determine the devices corresponding to the wake-up logs with the same tag as the devices that responded to the same wake-up command.

[0082] When identifying devices that respond to the same wake-up command, the first cumulative time difference can be divided by the maximum wake-up time. If the integer parts of the division result are the same, it indicates that the corresponding wake-up logs are responses to the same wake-up command.

[0083] For example, the wake-up logs for devices under the same user are shown in the table below:

[0084]

[0085] As shown in the table above, after calculating the tag of each device except the device that first performs the wake-up action based on the first cumulative time difference, the device that responds to the same wake-up command can be determined based on the tag. Where the tag of device a is determined to be 0, then device a, device b and device c are devices that respond to wake-up command 1; device d and device e are devices that respond to wake-up command 2.

[0086] By calculating the tag corresponding to each wake-up log based on the first cumulative time difference, the device that responded to the same wake-up command can be easily identified.

[0087] Optionally, the method further includes:

[0088] The number of tag types is determined based on the tags of all wake-up logs; the number of simultaneous wake-ups corresponding to the user to whom the device belongs is determined based on the number of tags.

[0089] Once the label corresponding to each wake-up log is determined, the number of label types can be determined, and the number of label types is the number of times the system wakes up simultaneously.

[0090] In addition, the number of times the user issued voice commands can be obtained, and the proportion of simultaneous wake-ups to the number of voice commands issued can be determined based on the number of simultaneous wake-ups and the number of voice commands issued.

[0091] By confirming the number of tag types, the number of times the device is woken up simultaneously can be determined, making it easier to determine the proportion of simultaneous wake-ups and reflecting the device's wake-up status.

[0092] Optionally, the device that responds first among multiple devices responding to the same wake-up command is the target device; based on the time difference corresponding to each wake-up log, devices that wake up simultaneously are selected from the devices responding to the same wake-up command, including:

[0093] For each wake-up log corresponding to the time difference, calculate the second cumulative time difference between each wake-up log and the previous wake-up log in the wake-up logs with the same label;

[0094] When the second cumulative time difference is less than a preset time, it is determined that the device corresponding to the second cumulative time difference and the target device are woken up simultaneously.

[0095] After identifying multiple devices responding to the same wake-up command, a second cumulative time difference can be calculated. Specifically, the second cumulative time difference can be calculated for each wake-up log with the same tag, excluding the wake-up log corresponding to the target device. Specifically, the second cumulative time difference for the wake-up log of device b is 100, the second cumulative time difference for the wake-up log of device c is 3000, and the second cumulative time difference for the wake-up log of device e is 300. For wake-up command 1, the target device is device a; for wake-up command 2, the target device is device d.

[0096] After calculating the second cumulative time difference, it is compared with a preset time. If the second cumulative time difference is less than the preset time, it means that the device corresponding to the wake-up log and the target device wake up simultaneously. For example, when the preset time is 500ms, the second cumulative time difference corresponding to the wake-up log of device b is 100ms, which is less than the preset time. Therefore, device b and device a wake up simultaneously. The second cumulative time difference corresponding to the wake-up log of device c is 3000ms, which is greater than the preset time. Therefore, c and device a do not wake up simultaneously. Similarly, device e and device d wake up simultaneously.

[0097] By calculating the second cumulative time difference, devices that wake up simultaneously in response to the same wake-up command can be accurately identified.

[0098] Optionally, the method further includes:

[0099] For a given wake-up command, determine the device that should respond to the wake-up command;

[0100] Based on the identified devices that respond to the wake-up command and the devices that wake up simultaneously under the wake-up command, devices that do not wake up simultaneously are determined;

[0101] Accordingly, the test results output by the simultaneously woken-up devices include:

[0102] Obtain the version information of devices that did not wake up simultaneously, and output the version information.

[0103] Each device can be configured with a wake-up command. By determining the wake-up command for each device, the devices that should respond to that command can be identified. For example, if five devices all use the wake-up command "Xiaoyou Xiaoyou," then these five devices are the ones that should respond to that wake-up command. Furthermore, it can be determined whether the devices responding to the wake-up command belong to the same user, thus filtering out devices that respond to the wake-up command and belong to the same user.

[0104] Once the devices that responded to the wake-up command are identified, the devices that did not wake up simultaneously can be determined based on the devices that woke up simultaneously under the wake-up command. The devices that did not wake up simultaneously may have had excessively long wake-up times, or they may not have woken up at all.

[0105] After identifying devices that did not experience simultaneous wake-up, the number of times such occurrences can be determined. If the number of occurrences exceeds a preset value, the device can be tested to identify the problem.

[0106] In addition, after determining that no devices have been simultaneously woken up, the version information of the devices that have not been simultaneously woken up can be obtained. For each version information that appears, the number of times the version information appears can be obtained. When the number of appearances exceeds the preset number, it means that the version of the wake-up program needs to be updated.

[0107] Identifying unwakeable devices facilitates analysis of the reasons for their failure to wake up, enabling troubleshooting and device optimization.

[0108] Figure 4 This is a flowchart illustrating another device detection method according to an embodiment of this application, as shown below. Figure 4 As shown, the method includes:

[0109] Step S401: Filter wake-up logs;

[0110] Step S402: Filter out wake-up devices under the same user, wherein there are at least two devices under the same user;

[0111] Step S403: Sort the wake-up logs and calculate the time difference between the next wake-up log and the previous wake-up log;

[0112] Step S404: Calculate the first cumulative time difference corresponding to each wake-up log, and determine the integer value of the quotient between the first cumulative time difference and the maximum wake-up time; wherein, the maximum wake-up time can be 5 seconds;

[0113] Step S405: For multiple wake-up logs with the same integer value, calculate the second cumulative time difference;

[0114] Step S406: Determine the devices to be woken up simultaneously based on the magnitude of the second cumulative time difference and the preset time, wherein the preset time can be 500ms.

[0115] The maximum wake-up time and preset time in the above embodiments can be set according to actual conditions; this is only an illustrative example.

[0116] Corresponding to the above method, this application also provides a device testing apparatus. Figure 5 This is a schematic diagram of the structure of a device testing apparatus according to an embodiment of this application; as shown below. Figure 5 As shown, the device includes:

[0117] The acquisition module 501 is used to acquire the wake-up log generated when the device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurred;

[0118] The sorting module 502 is used to divide the wake-up logs of the same user to which the device belongs into the same group, and sort the wake-up logs in the same group according to the time when the wake-up action occurred;

[0119] The determination module 503 is used to determine the time difference between the wake-up log and the previous wake-up log based on the time of the wake-up action for each wake-up log, and to determine the devices that wake up simultaneously under the same wake-up command based on the time difference.

[0120] Output module 504 is used to output test results based on the devices that are woken up at the same time.

[0121] Optionally, the determining module 503, in determining devices that wake up simultaneously under the same wake-up command based on the time difference, is specifically used for:

[0122] For each wake-up log, calculate the first cumulative time difference between each wake-up log and the previous wake-up log based on the time difference corresponding to that wake-up log;

[0123] The devices that respond to the same wake-up command are determined based on the first cumulative time difference and the maximum wake-up time; the maximum wake-up time represents the maximum response time of a device to a wake-up command.

[0124] Based on the time difference corresponding to each wake-up log, select devices that wake up simultaneously from those that respond to the same wake-up command.

[0125] Optionally, when determining the device responding to the same wake-up command based on the first cumulative time difference and the maximum wake-up time, the determining module 503 is specifically used for:

[0126] Divide the first cumulative time difference by the maximum wake-up time, and determine the integer part of the division result as the label of the wake-up log;

[0127] The devices corresponding to the wake-up logs with the same label are identified as devices that responded to the same wake-up command.

[0128] Optionally, the device further includes a wake-up count determination module, specifically used for:

[0129] The number of tag types is determined based on the tags of all wake-up logs;

[0130] The number of simultaneous wake-ups corresponding to the user to whom the device belongs is determined based on the number of tags.

[0131] Optionally, when the determining module 503 filters devices that wake up simultaneously from those responding to the same wake-up command based on the time difference corresponding to each wake-up log, it is specifically used for:

[0132] For each wake-up log corresponding to the time difference, calculate the second cumulative time difference between each wake-up log and the previous wake-up log in the wake-up logs with the same label;

[0133] When the second cumulative time difference is less than a preset time, it is determined that the device corresponding to the second cumulative time difference and the target device are woken up simultaneously.

[0134] Optionally, the determining module 503 is further configured to:

[0135] For a given wake-up command, determine the device that should respond to the wake-up command;

[0136] Based on the identified devices that respond to the wake-up command and the devices that wake up simultaneously under the wake-up command, devices that do not wake up simultaneously are determined;

[0137] Accordingly, the output module is specifically used for:

[0138] Obtain the version information of devices that did not wake up simultaneously, and output the version information.

[0139] Optionally, the acquisition module 501 is specifically used for:

[0140] Retrieve the identification information corresponding to all logs;

[0141] Filter the identification information that corresponds to the wake-up log from the identification information, and obtain the corresponding wake-up log based on the filtered identification information.

[0142] The specific implementation principle and technical effects of the device provided in this application embodiment can be found in the foregoing embodiments, and will not be repeated here.

[0143] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Figure 6 As shown, the electronic device in this embodiment may include:

[0144] A memory 601 and a processor 602, wherein the memory 601 stores a computer program and the processor 602 is configured to execute the method as described in any of the above embodiments through the computer program.

[0145] Alternatively, the memory 601 can be either standalone or integrated with the processor 602.

[0146] The implementation principle and technical effects of the electronic device provided in this embodiment can be found in the foregoing embodiments, and will not be repeated here.

[0147] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method described in any of the foregoing embodiments.

[0148] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the methods described in any of the foregoing embodiments.

[0149] In the several embodiments provided in this 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 merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed.

[0150] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.

[0151] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor. The memory may include high-speed RAM, and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disc, etc.

[0152] The aforementioned storage medium can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.

[0153] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0154] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0155] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0156] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0157] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for testing equipment, characterized in that, include: Acquire the wake-up log generated when the device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurred. The wake-up logs of users belonging to the same device are grouped together, and the wake-up logs in the same group are sorted according to the time when the wake-up action occurred; For each wake-up log, the time difference between the wake-up log and the previous wake-up log is determined based on the time of the wake-up action. For each wake-up log, the first cumulative time difference between each wake-up log and the previous wake-up log is calculated based on the time difference corresponding to the wake-up log. Divide the first cumulative time difference by the maximum wake-up time, and determine the integer part of the division result as the tag of the wake-up log; The maximum wake-up time represents the maximum response time of the device to a wake-up command; The devices corresponding to the wake-up logs with the same label are identified as devices that responded to the same wake-up command. Based on the time difference corresponding to each wake-up log, select devices that wake up simultaneously from those that respond to the same wake-up command. The test results are output based on the devices that are woken up simultaneously.

2. The method according to claim 1, characterized in that, The method further includes: The number of tag types is determined based on the tags of all wake-up logs; The number of simultaneous wake-ups corresponding to the user to whom the device belongs is determined based on the number of tags.

3. The method according to claim 1, characterized in that, The device that responds first among multiple devices responding to the same wake-up command is the target device; based on the time difference corresponding to each wake-up log, devices that wake up simultaneously are selected from those responding to the same wake-up command, including: For each wake-up log corresponding to the time difference, calculate the second cumulative time difference between each wake-up log and the previous wake-up log in the wake-up logs with the same label; When the second cumulative time difference is less than a preset time, it is determined that the device corresponding to the second cumulative time difference and the target device are woken up simultaneously.

4. The method according to claim 1, characterized in that, The method further includes: For a given wake-up command, determine the device that should respond to the wake-up command; Based on the identified devices that respond to the wake-up command and the devices that wake up simultaneously under the wake-up command, devices that do not wake up simultaneously are determined; Accordingly, the test results output by the simultaneously woken-up devices include: Obtain the version information of devices that did not wake up simultaneously, and output the version information.

5. The method according to any one of claims 1-4, characterized in that, The wake-up log generated when the acquisition device is woken up includes: Retrieve the identification information corresponding to all logs; Filter the identification information that corresponds to the wake-up log from the identification information, and obtain the corresponding wake-up log based on the filtered identification information.

6. A device for testing equipment, characterized in that, The device includes: The acquisition module is used to acquire the wake-up log generated when the device is woken up; the wake-up log includes the user to whom the device belongs and the time when the wake-up action occurred; The sorting module is used to divide the wake-up logs of the same user to which the device belongs into the same group, and sort the wake-up logs in the same group according to the time when the wake-up action occurred; The determination module is used to, for each wake-up log, determine the time difference between the wake-up log and the previous wake-up log based on the time of the wake-up action; for each wake-up log, calculate a first cumulative time difference between the wake-up log and the previous wake-up log based on the time difference corresponding to the wake-up log; divide the first cumulative time difference by the maximum wake-up time, and determine the integer part of the division result as the label of the wake-up log; the maximum wake-up time represents the maximum response time of the device to a wake-up command; determine the devices corresponding to wake-up logs with the same label as devices that responded to the same wake-up command; and select devices that woke up simultaneously from the devices that responded to the same wake-up command based on the time difference corresponding to each wake-up log. The output module is used to output test results based on the devices that are woken up simultaneously.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 5.

8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 5 through the computer program.

Citation Information

Patent Citations

  • Equipment time delay adjustment method and device, electronic equipment and storage medium

    CN112260787A