CN112328438A - Self-checking method and device of terminal equipment and computer storage medium - Google Patents

Self-checking method and device of terminal equipment and computer storage medium Download PDF

Info

Publication number
CN112328438A
CN112328438A CN202010787791.2A CN202010787791A CN112328438A CN 112328438 A CN112328438 A CN 112328438A CN 202010787791 A CN202010787791 A CN 202010787791A CN 112328438 A CN112328438 A CN 112328438A
Authority
CN
China
Prior art keywords
self
terminal device
checking
terminal equipment
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010787791.2A
Other languages
Chinese (zh)
Inventor
杨金奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010787791.2A priority Critical patent/CN112328438A/en
Publication of CN112328438A publication Critical patent/CN112328438A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Abstract

The invention discloses a self-checking method of terminal equipment, which comprises the following steps: determining first terminal equipment to be self-checked in a local area network, and sending a self-checking control instruction to the first terminal equipment so that the first terminal equipment executes self-checking operation corresponding to the self-checking control instruction; after the self-checking control instruction is sent to the first terminal equipment, acquiring environmental parameters acquired by second terminal equipment related to the first terminal equipment in the local area network; and determining whether the first terminal equipment is abnormal or not according to the environmental parameters and the target environmental parameters corresponding to the self-checking control instruction. The invention also discloses a self-checking device of the terminal equipment and a computer storage medium, and the self-checking device and the computer storage medium realize the automation of the self-checking of the household equipment and simplify the self-checking process of the household equipment by controlling the household equipment to execute the action corresponding to the self-checking control instruction and detecting whether the action is correctly executed by other household equipment.

Description

Self-checking method and device of terminal equipment and computer storage medium
Technical Field
The invention relates to the technical field of equipment self-checking, in particular to a self-checking method and device of terminal equipment and a computer storage medium.
Background
The user often needs to carry out the self-checking to tame electric installation to whether the check tame electric installation can normally work, whether break down. During self-checking, a user needs to manually send various control instructions to the household electrical appliance and manually detect whether the household electrical appliance correctly executes actions corresponding to the control instructions, so that the self-checking of the household electrical appliance is very complicated.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a self-checking method and device of terminal equipment and a computer storage medium, aiming at simplifying the self-checking process of household electrical appliance equipment.
In order to achieve the above object, the present invention provides a self-checking method for a terminal device, where the self-checking method for a terminal device includes the following steps:
determining first terminal equipment to be self-checked in a local area network, and sending a self-checking control instruction to the first terminal equipment so that the first terminal equipment executes self-checking operation corresponding to the self-checking control instruction;
after the self-checking control instruction is sent to the first terminal equipment, acquiring environmental parameters acquired by second terminal equipment related to the first terminal equipment in the local area network;
and determining whether the first terminal equipment is abnormal or not according to the environmental parameters and the target environmental parameters corresponding to the self-checking control instruction.
Optionally, the step of determining a first terminal device to be self-tested in the local area network includes:
when a self-checking instruction triggered by a user is received, acquiring the first terminal equipment corresponding to equipment information in the self-checking instruction;
or when detecting that the terminal equipment is connected to the local area network, taking the terminal equipment as the first terminal equipment;
or when detecting that the current time point reaches a detection time point corresponding to the periodic self-detection, using the terminal device in the local area network as the first terminal device, wherein the detection time point is determined according to a preset self-detection period corresponding to the periodic self-detection.
Optionally, the step of determining a first terminal device to be self-tested in the local area network includes:
when detecting that the current time point reaches a detection time point corresponding to the periodic self-detection, acquiring the operation duration of the terminal equipment in the local area network, wherein the detection time point is determined according to a preset self-detection period corresponding to the periodic self-detection;
sequencing the operation durations of a plurality of terminal devices in the local area network;
and determining at least one terminal device with longer running time according to the sequencing result, and using the terminal device as the first terminal device.
Optionally, the step of determining whether the first terminal device is abnormal according to the environmental parameter and the target environmental parameter corresponding to the self-checking control instruction includes:
acquiring sub-target environment parameters corresponding to sub-environment parameters in the environment parameters from the target environment parameters, wherein the sub-environment parameters are any one of temperature parameters, humidity parameters, sound parameters and brightness parameters;
acquiring a difference value between the sub-environment parameter and the corresponding sub-target environment parameter;
and when the difference value is not in the parameter error range corresponding to the sub-environment parameter, judging that the first terminal equipment is abnormal.
Optionally, the step of obtaining the environmental parameter collected by a second terminal device associated with the first terminal device in the local area network includes:
acquiring a self-checking type corresponding to the first terminal device, wherein the self-checking type comprises at least one of self-checking of air conditioning capacity, self-checking of sound output capacity and self-checking of visual output capacity;
determining the terminal equipment corresponding to the self-checking type of the first terminal equipment, and taking the terminal equipment corresponding to the self-checking type as the second terminal equipment;
and acquiring the environmental parameters acquired by the second terminal equipment.
Optionally, the step of determining the terminal device corresponding to the self-test type of the first terminal device includes:
when the self-checking type is self-checking of air conditioning capacity, the corresponding terminal equipment is acquisition equipment of environmental air parameters;
when the self-checking type is self-checking of the sound output capability, the corresponding terminal equipment is acquisition equipment of environmental sound parameters;
and when the self-checking type is self-checking of the visual output capability, the corresponding terminal equipment is acquisition equipment of the environment image.
Optionally, after the step of determining the first terminal device to be self-tested in the local area network, the self-testing method of the terminal device further includes:
acquiring an operation parameter interval corresponding to the first terminal device, wherein the operation parameter interval is determined according to a parameter range which can be reached by the operation parameter of the first terminal device;
acquiring target operation parameters which need to be subjected to self-checking and correspond to the operation parameter interval;
and generating the self-checking control instruction according to the target operation parameters, and executing the step of sending the self-checking control instruction to the first terminal equipment, so that the first terminal equipment adjusts the operation parameters to the target operation parameters.
Optionally, after the step of determining whether the first terminal device is abnormal according to the environmental parameter and the target environmental parameter corresponding to the self-checking control instruction, the method further includes:
after determining that the first terminal equipment is abnormal, acquiring position information of the position of a user;
acquiring a third terminal device closest to the user according to the position information, wherein the third terminal device is connected to the local area network and is a sound output device or a visual output device;
and outputting abnormal prompt information of the first terminal equipment through the third terminal equipment.
In addition, in order to achieve the above object, the present invention further provides a self-checking device for a terminal device, where the self-checking device for a terminal device includes: the terminal equipment self-checking method comprises a memory, a processor and a terminal equipment self-checking program which is stored on the memory and can run on the processor, wherein when the terminal equipment self-checking program is executed by the processor, the steps of the terminal equipment self-checking method are realized.
In addition, in order to achieve the above object, the present invention further provides a computer storage medium, where a self-test program of a terminal device is stored, and when the self-test program of the terminal device is executed by a processor, the steps of the self-test method of the terminal device described in any one of the above are implemented.
The self-checking method, the self-checking device and the computer storage medium of the terminal device provided by the embodiment of the invention are used for determining a first terminal device to be self-checked in a local area network, and sending a self-checking control instruction to the first terminal device, so that the first terminal device executes a self-checking operation corresponding to the self-checking control instruction, after sending the self-checking control instruction to the first terminal device, obtaining an environmental parameter acquired by a second terminal device related to the first terminal device in the local area network, and determining whether the first terminal device is abnormal or not according to the environmental parameter and a target environmental parameter corresponding to the self-checking control instruction. The invention realizes the automation of the self-checking of the household appliances and simplifies the self-checking process of the household appliances by controlling the household appliances to execute the action corresponding to the self-checking control instruction and detecting whether the action is correctly executed by other household appliances.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a self-checking method of a terminal device according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a self-test method of a terminal device according to another embodiment of the present invention;
fig. 4 is a schematic flowchart of a self-test method of a terminal device according to still another embodiment of the present invention;
fig. 5 is a schematic flowchart of a self-checking method of a terminal device according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a solution, which realizes the automation of the self-checking of the household electrical appliance and simplifies the self-checking process of the household electrical appliance by controlling the household electrical appliance to execute the action corresponding to the self-checking control instruction and detecting whether the action is correctly executed by other household electrical appliances.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the invention is a control device of terminal equipment, such as an intelligent gateway corresponding to a home network.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein a self-test program that operates the network communication module, the user interface module, and the terminal device.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a self-test program of the terminal device stored in the memory 1005, and perform the following operations:
determining first terminal equipment to be self-checked in a local area network, and sending a self-checking control instruction to the first terminal equipment so that the first terminal equipment executes self-checking operation corresponding to the self-checking control instruction;
after the self-checking control instruction is sent to the first terminal equipment, acquiring environmental parameters acquired by second terminal equipment related to the first terminal equipment in the local area network;
and determining whether the first terminal equipment is abnormal or not according to the environmental parameters and the target environmental parameters corresponding to the self-checking control instruction.
Further, the processor 1001 may call a self-test program of the terminal device stored in the memory 1005, and further perform the following operations:
when a self-checking instruction triggered by a user is received, acquiring the first terminal equipment corresponding to equipment information in the self-checking instruction;
or when detecting that the terminal equipment is connected to the local area network, taking the terminal equipment as the first terminal equipment;
or when detecting that the current time point reaches a detection time point corresponding to the periodic self-detection, using the terminal device in the local area network as the first terminal device, wherein the detection time point is determined according to a preset self-detection period corresponding to the periodic self-detection.
Further, the processor 1001 may call a self-test program of the terminal device stored in the memory 1005, and further perform the following operations:
when detecting that the current time point reaches a detection time point corresponding to the periodic self-detection, acquiring the operation duration of the terminal equipment in the local area network, wherein the detection time point is determined according to a preset self-detection period corresponding to the periodic self-detection;
sequencing the operation durations of a plurality of terminal devices in the local area network;
and determining at least one terminal device with longer running time according to the sequencing result, and using the terminal device as the first terminal device.
Further, the processor 1001 may call a self-test program of the terminal device stored in the memory 1005, and further perform the following operations:
acquiring sub-target environment parameters corresponding to sub-environment parameters in the environment parameters from the target environment parameters, wherein the sub-environment parameters are any one of temperature parameters, humidity parameters, sound parameters and brightness parameters;
acquiring a difference value between the sub-environment parameter and the corresponding sub-target environment parameter;
and when the difference value is not in the parameter error range corresponding to the sub-environment parameter, judging that the first terminal equipment is abnormal.
Further, the processor 1001 may call a self-test program of the terminal device stored in the memory 1005, and further perform the following operations:
acquiring a self-checking type corresponding to the first terminal device, wherein the self-checking type comprises at least one of self-checking of air conditioning capacity, self-checking of sound output capacity and self-checking of visual output capacity;
determining the terminal equipment corresponding to the self-checking type of the first terminal equipment, and taking the terminal equipment corresponding to the self-checking type as the second terminal equipment;
and acquiring the environmental parameters acquired by the second terminal equipment.
Further, the processor 1001 may call a self-test program of the terminal device stored in the memory 1005, and further perform the following operations:
when the self-checking type is self-checking of air conditioning capacity, the corresponding terminal equipment is acquisition equipment of environmental air parameters;
when the self-checking type is self-checking of the sound output capability, the corresponding terminal equipment is acquisition equipment of environmental sound parameters;
and when the self-checking type is self-checking of the visual output capability, the corresponding terminal equipment is acquisition equipment of the environment image.
Further, the processor 1001 may call a self-test program of the terminal device stored in the memory 1005, and further perform the following operations:
acquiring an operation parameter interval corresponding to the first terminal device, wherein the operation parameter interval is determined according to a parameter range which can be reached by the operation parameter of the first terminal device;
acquiring target operation parameters which need to be subjected to self-checking and correspond to the operation parameter interval;
and generating the self-checking control instruction according to the target operation parameters, and executing the step of sending the self-checking control instruction to the first terminal equipment, so that the first terminal equipment adjusts the operation parameters to the target operation parameters.
Further, the processor 1001 may call a self-test program of the terminal device stored in the memory 1005, and further perform the following operations:
after determining that the first terminal equipment is abnormal, acquiring position information of the position of a user;
acquiring a third terminal device closest to the user according to the position information, wherein the third terminal device is connected to the local area network and is a sound output device or a visual output device;
and outputting abnormal prompt information of the first terminal equipment through the third terminal equipment.
Referring to fig. 2, in an embodiment, the self-test method of the terminal device includes the following steps:
step S10, determining a first terminal device to be self-tested in a local area network, and sending a self-test control instruction to the first terminal device, so that the first terminal device executes a self-test operation corresponding to the self-test control instruction;
in this embodiment, a description will be given with an intelligent home gateway as an execution subject. The intelligent home gateway is a home intelligent heart, and functions of system information acquisition, information input, information output, centralized control, remote control, linkage control and the like are realized through the intelligent home gateway. Possess two major functions of intelligent house control hub and wireless routing, one side is responsible for specific security protection warning, household electrical appliances control, power consumption information acquisition. And performing data interaction with products such as the intelligent interactive terminal and the like in a wireless mode. The intelligent home gateway also has the wireless routing function, excellent wireless performance, network safety and coverage area, and is an ideal choice for the wireless home network. The intelligent home equipment can be connected to the intelligent home gateway through the local area network, and self-checking of the intelligent home equipment is achieved through the intelligent home gateway. In this embodiment, when determining a first terminal device to be self-tested in the local area network, the intelligent home gateway sends a self-test control instruction to the first terminal device, and drives the first terminal device to execute a self-test action or a self-test operation corresponding to the self-test control instruction, for example, drives the first terminal device to adjust an operation parameter to a target operation parameter.
Optionally, the first terminal device may include an air conditioning device, an image capturing device, an image output device, an audio capturing device, an audio output device, a door magnetic switch, an infrared sensor, and a kitchen device such as a smoke sensor and a water sensor.
Optionally, when receiving a self-check instruction triggered by a user, the smart home gateway obtains the device information in the self-check instruction, which indicates that the user wants to perform self-check on the terminal device corresponding to the device information, so that the terminal device corresponding to the corresponding device information can be used as the first terminal device, and executes a self-check control instruction to the first terminal device and subsequent steps.
Optionally, when detecting that the terminal device is connected to the local area network, the intelligent home gateway indicates that the terminal device is a newly-added intelligent home device, for example, the terminal device may be a device newly purchased by the user, and therefore, the terminal device may be used as the first terminal device, and executes a self-checking control instruction to the first terminal device and subsequent steps thereof to perform self-checking on the newly-added device, and detect whether a fault exists in the device newly purchased by the user.
Optionally, when the intelligent home gateway detects that the current time point reaches the detection time point corresponding to the periodic self-detection, all the terminal devices in the local area network can be used as the first terminal device, and the self-detection is performed on the plurality of terminal devices one by one, so that the comprehensive self-detection of the intelligent home device is realized. The intelligent home gateway updates the detection time point according to a preset self-detection period corresponding to the periodic self-detection, and the periodic self-detection of the intelligent home equipment is achieved.
Step S20, after sending the self-check control instruction to the first terminal device, obtaining an environmental parameter collected by a second terminal device associated with the first terminal device in the local area network;
in this embodiment, after the self-checking control command is sent to the first terminal device, it needs to be detected whether the first terminal device correctly executes the action corresponding to the self-checking control command. Generally, after the first terminal device correctly executes the action corresponding to the self-checking control command, the environmental parameters around the first terminal device may change, for example, the brightness, sound, temperature, humidity, air quality, and the like of the environmental parameters change, so that the environmental parameters may be collected by the second terminal device associated with the first terminal device in the local area network, so as to determine whether the environmental parameters change and whether the changed environmental parameters meet the specified requirements.
Optionally, because there is a delay in the execution of the action corresponding to the self-test control instruction by the first terminal device, and the influence of the action on the environment may be slow, the obtained environment parameter collected by the second terminal device may be an environment parameter within a preset time period, and the preset time period may be determined according to the self-test type of the first terminal device, for example, when the first terminal device is an air conditioner, the self-test type of the first terminal device is air conditioning, and the influence of the air conditioner on the environment temperature is slow, so the environment parameter collected by the second terminal device may be an environment temperature parameter with a longer preset time period, and for example, when the first terminal device is a sound box, the self-test type of the first terminal device is sound output, and the sound propagation of the sound output is fast, so the environment parameter collected by the second terminal device may be an environment sound parameter with a shorter preset time period, for another example, when the first terminal device is a lamp, the self-checking type of the first terminal device is visual output, and the light of the lamp is transmitted very fast, so the environmental parameter collected by the second terminal device may be an environmental brightness parameter with a shorter preset duration.
Step S30, determining whether the first terminal device is abnormal according to the environmental parameter and the target environmental parameter corresponding to the self-checking control instruction.
In this embodiment, after obtaining the environmental parameters acquired by the second terminal device, it is determined whether the first terminal device is abnormal according to the environmental parameters and the target environmental parameters corresponding to the self-checking control instruction, for example, when the environmental parameters are consistent with the target environmental parameters corresponding to the self-checking control instruction, it is determined that the first terminal device can normally execute the self-checking control instruction, the terminal device is normal, and if the environmental parameters are inconsistent with the target environmental parameters corresponding to the self-checking control instruction, it is determined that the first terminal device is abnormal, so that automation of self-checking of the terminal device is realized, and a self-checking process is simpler and more convenient. It should be noted that, corresponding to the environmental parameters, the target environmental parameters may also include environmental parameters such as brightness, sound, temperature, humidity, and air quality, that is, which parameters are specifically included in the target environmental parameters, which parameters are collected by the second terminal device.
Optionally, when determining whether the first terminal device is abnormal according to the environmental parameter and the target environmental parameter corresponding to the self-checking control instruction, the environmental parameter and the target environmental parameter may be compared one by one, and a difference between the environmental parameter and the target environmental parameter is obtained, and if the difference is not within a preset error range, it is determined that the first terminal device is abnormal. Specifically, the environment parameter may include at least one sub-environment parameter, the sub-environment parameter is any one of a temperature parameter, a humidity parameter, a sound parameter, and a brightness parameter, and corresponds to the environment parameter, the target environment parameter also includes at least one sub-target environment parameter, the sub-target environment parameter is any one of a temperature parameter, a humidity parameter, a sound parameter, and a brightness parameter, and the sub-target environment parameter corresponds to the sub-environment parameter, when the environment parameter and the target environment parameter are compared one by one, the sub-target environment parameter corresponding to the sub-environment parameter may be obtained from the target environment parameter, and a difference between the sub-environment parameter and the corresponding sub-target environment parameter is calculated, if the difference is not within a parameter error range corresponding to the sub-environment parameter, it is determined that the first terminal device is abnormal, for example, when the sub-environment parameter is the temperature parameter, the method comprises the steps of obtaining sub-target environment parameters corresponding to temperature parameters from the target environment parameters, namely target temperature parameters, calculating the difference value between the temperature parameters and the target temperature parameters, judging that the first terminal equipment is abnormal if the difference value is not in a parameter error range corresponding to the temperature parameters, obtaining sub-target environment parameters corresponding to humidity parameters from the target environment parameters, namely target humidity parameters, calculating the difference value between the humidity parameters and the target humidity parameters if the sub-environment parameters are humidity parameters, and judging that the first terminal equipment is abnormal if the difference value is not in a parameter error range corresponding to the humidity parameters.
Optionally, after determining that the first terminal device is abnormal, a corresponding prompt message may be output to the user to inform the user of the self-checking result. For example, the intelligent home gateway may obtain location information of a current location of the user, and obtain a third terminal device closest to the user according to the location information, where the third terminal device is a terminal device in a local area network, that is, the third terminal device is connected to the local area network and may be controlled by the intelligent home gateway. And sending a self-checking result to a third terminal device, outputting abnormal prompt information of the first terminal device through the third terminal device, and informing a user of the self-checking result in time, wherein the third terminal device is a sound output device or a visual output device so as to prompt the user more obviously, for example, when the user is detected to watch a television in a living room, the abnormal prompt information of the first terminal device can be output through an intelligent television so as to inform the user of the self-checking result, and for example, the prompt information is sent to a smart phone terminal of the user so as to inform the user of the self-checking result.
Optionally, after determining that the first terminal device is abnormal, the first terminal device may be subjected to self-checking again, and when the multiple self-checking results are all abnormal, corresponding prompt information is output to the user. Specifically, when the first terminal device is subjected to self-checking again, a self-checking control instruction when the first terminal device is determined to be abnormal is obtained, and the self-checking control instruction is sent to the first terminal device again, so that the first terminal device is subjected to self-checking again.
Optionally, the intelligent gateway may also provide a management interface for the user to access, view the device status, and manage the respective terminal devices. The intelligent gateway can acquire the equipment information and the state information of each terminal device through the local area network and display the equipment information and the state information on a management interface for a user to check, wherein the equipment information comprises the name, the model, the firmware version number and other information of the terminal device, and the state information comprises the current operation parameters of the terminal device, the position information of the terminal device at home, the electric quantity of the terminal device, the operation duration, the operation log and other information. The management interface can display different operation parameters aiming at different types of terminal equipment so that a user can adjust the different operation parameters to realize customized management of the different types of terminal equipment.
In the technical scheme disclosed in this embodiment, the home appliance is controlled to execute the action corresponding to the self-checking control instruction, and whether the action is correctly executed is detected by other home appliances, so that the automation of the home appliance self-checking is realized, and the self-checking process of the home appliance is simplified.
In another embodiment, as shown in fig. 3, based on the embodiment shown in fig. 2, the step of determining the first terminal device to be self-tested in the local area network includes:
step S01, when detecting that the current time point reaches the detection time point corresponding to the periodic self-detection, obtaining the operation duration of the terminal equipment in the local area network, wherein the detection time point is determined according to the preset self-detection period corresponding to the periodic self-detection;
in this embodiment, since the higher the service time and the service frequency of the device are, the more likely the device is damaged, when determining the first terminal device to be self-checked in the lan, the common smart home device in the lan may be used as the first terminal device. The intelligent home gateway is provided with a preset self-checking period corresponding to periodic self-checking so as to periodically perform self-checking on the common intelligent home equipment in the local area network and detect whether the common intelligent home equipment can normally work. The intelligent gateway determines the detection time point of the current time in advance according to a preset self-checking period and the last self-checking time point, and shows that the intelligent gateway can perform self-checking on the common intelligent household equipment in the local area network when detecting that the current time point reaches the detection time point corresponding to the periodic self-checking. In order to determine the commonly used intelligent home devices in the local area network, the operation duration of each terminal device in the local area network can be obtained, and the commonly used intelligent home devices are determined according to the operation duration.
Optionally, the operation duration may be a total operation duration of the terminal device in the local area network, or the operation duration may be an operation duration of the terminal device in the local area network within a past preset duration, for example, the preset duration may be one month, three months, or half a year.
Step S02, sequencing the operation duration of a plurality of terminal devices in the local area network;
and step S03, determining at least one terminal device with longer running time according to the sorting result, and using the terminal device as the first terminal device.
In this embodiment, the operation durations of all terminal devices in the local area network are sorted from large to small to obtain a sorting result of the operation durations, at least one operation duration ranked at the top is determined according to the sorting result, the terminal device corresponding to the at least one operation duration is used as a common intelligent home device, the determined intelligent home device is used as a first terminal device to be self-checked in the local area network, and a self-checking control instruction is executed to the first terminal device and subsequent steps thereof.
Optionally, when at least one common smart home device in the local area network is determined according to the sorting result, the common smart home device with the longest operation duration may be determined according to the sorting result, or the predetermined number of common smart home devices with the longer operation duration may be determined according to the sorting result. When a plurality of first terminal equipment to be self-checked exist, the self-checking can be carried out on the plurality of first terminal equipment one by one according to the sequencing result, so that the interference among different first terminal equipment is avoided, and the environmental parameters acquired by the second terminal equipment are inaccurate.
In the technical scheme disclosed in this embodiment, when it is detected that the current time point reaches the detection time point corresponding to the periodic self-detection, the operation duration of the terminal device in the local area network is obtained, the common device in the local area network is determined according to the operation duration, the common device is used as the first terminal device to perform self-detection, and the self-detection is performed on the common device which is more likely to have a fault, so that the self-detection efficiency is improved.
In yet another embodiment, as shown in fig. 4, on the basis of the embodiment shown in any one of fig. 2 to 3, the step S20 includes:
step S21, obtaining a self-checking type corresponding to the first terminal device, wherein the self-checking type includes at least one of self-checking of air conditioning capability, self-checking of sound output capability and self-checking of visual output capability;
in this embodiment, after a first terminal device to be self-tested in a local area network is determined, a self-test type corresponding to the first terminal device is obtained. The self-checking type represents the type of the first terminal affecting the environment, that is, the type of the environmental parameter affected by the first terminal, for example, the first terminal may include an air conditioner, an air purifier, a sound, a display, a lamp, a sensor capable of alarming, etc., the corresponding self-checking type may include a self-checking of air conditioning capability, a self-checking of sound output capability, a self-checking of visual output capability, etc., of course, each self-checking type may be further subdivided into a plurality of sub-self-checking types, for example, air conditioning may be subdivided into a self-checking of temperature conditioning capability, a self-checking of humidity conditioning capability, a self-checking of particulate matter concentration conditioning capability, a self-checking of formaldehyde concentration conditioning capability, etc., and different sub-self-checking types may correspond to different second terminals.
Optionally, when the self-checking type corresponding to the first terminal device is obtained, because the same terminal device may have a plurality of functions, the first terminal device may affect a plurality of environmental parameters when executing an action corresponding to the self-checking control instruction, so the first terminal device may simultaneously correspond to the plurality of self-checking types, and further determine the second terminal devices corresponding to the plurality of self-checking types, and determine whether the first terminal device is abnormal according to different environmental parameters acquired by the plurality of second terminal devices, for example, when the first terminal device is an intelligent television, images and sounds may be displayed simultaneously, and at this time, the self-checking type corresponding to the first terminal device is sound output and visual output.
Optionally, when the self-checking type corresponding to the first terminal device is obtained, since the same terminal device may have multiple functions, and environmental parameters that are affected by the first terminal device when the first terminal device executes actions corresponding to different self-checking control instructions are different, when the self-checking type corresponding to the first terminal device is determined, the self-checking type corresponding to both the first terminal device and the self-checking control instruction may be determined, for example, when the first terminal device is an intelligent television, if the self-checking control instruction is to play an audio file, the corresponding self-checking type is sound output, and if the self-checking control instruction is to display an image file, the corresponding self-checking type is visual output.
Step S22, determining a terminal device corresponding to the self-test type of the first terminal device, and using the terminal device corresponding to the self-test type as the second terminal device;
step S23, acquiring the environmental parameter acquired by the second terminal device.
In this embodiment, after the self-checking control instruction is sent to the first terminal device, the terminal device corresponding to the self-checking type of the first terminal device is determined, the terminal device corresponding to the self-checking type is used as the second terminal device, the environmental parameter acquired by the second terminal device is acquired, and whether the action corresponding to the self-checking control instruction is correctly executed by the first terminal device is determined according to the environmental parameter.
Optionally, when the first terminal device is a device such as an air conditioner or an air purifier, the corresponding self-checking type is self-checking of air conditioning capability, and the corresponding second terminal device is a device for acquiring ambient air parameters, such as a temperature sensor, a humidity sensor, a formaldehyde detection device, and the like, and other devices having a temperature sensor, a humidity sensor, and a formaldehyde detection device; when the first terminal equipment is equipment such as a sound box, an intelligent television and a sensor capable of giving an alarm by sound, the corresponding self-checking type is self-checking of sound output capacity, and the corresponding second terminal equipment is equipment for acquiring environmental sound parameters, such as a microphone or other equipment with the microphone; when the first terminal device is a display, a lamp, a sensor capable of giving a light alarm, and the like, the corresponding self-checking type is self-checking of the visual output capability, and the corresponding second terminal device is an acquisition device of an environment image, such as a camera, a monitor, and the like.
Optionally, when a plurality of terminal devices corresponding to the self-checking types of the first terminal device exist, the position of the first terminal device may be obtained, and a terminal device closest to the first terminal device among the plurality of terminal devices corresponding to the self-checking types is determined according to the position of the first terminal device and is used as the second terminal device, so that the collection of the environmental parameters is faster and more accurate.
In the technical scheme disclosed in this embodiment, a self-check type corresponding to a first terminal device is obtained, the terminal device corresponding to the self-check type of the first terminal device is used as a second terminal device, an environmental parameter acquired by the second terminal device is obtained, and the first terminal device is self-checked through environmental data acquired by the second terminal device associated with the first terminal device in a local area network, so that automation of a self-check process is realized.
In another embodiment, as shown in fig. 5, after the step of determining the first terminal device to be self-tested in the local area network based on any one of the embodiments shown in fig. 2 to fig. 4, the method further includes:
step S04, obtaining an operation parameter interval corresponding to the first terminal device, wherein the operation parameter interval is determined according to a parameter range which can be reached by the operation parameter of the first terminal device;
step S05, obtaining target operation parameters needing self-checking corresponding to the operation parameter interval;
in this embodiment, after a first terminal device to be self-checked in a local area network is determined, an operation parameter interval corresponding to a first terminal parameter is obtained, and a target operation parameter to be self-checked corresponding to the operation parameter interval is determined. Specifically, an operation parameter of the first terminal device is obtained, a specific parameter range that can be reached by the operation parameter is determined, the specific parameter range is divided into a plurality of operation parameter intervals, and a target operation parameter that needs to be subjected to self-inspection in each operation parameter area is obtained, for example, when the first terminal device is an air conditioner, the corresponding operation parameter is a set temperature, a set air volume, and the like, the specific parameter range that can be reached by each operation parameter can be obtained, for example, the specific parameter range that can be reached by the set temperature is 16 ℃ to 30 ℃, for example, when the first terminal device is a sensor type device, for example, a smoke sensor, the corresponding operation parameter is a smoke concentration, and further the specific parameter range that can be reached by the smoke concentration value is obtained, for example, the specific parameter range that can be reached by the smoke concentration value. When the specific parameter range is divided into a plurality of operation parameter intervals, the specific parameter range can be divided according to the preset number, and the specific parameter range is divided into the operation parameter intervals with the preset number.
Optionally, when the target operation parameter corresponding to the operation parameter interval is obtained, an intermediate value in the operation parameter interval may be obtained, and the intermediate value is used as the target operation parameter corresponding to the operation parameter interval, so that the self-checking of each operation parameter one by one is avoided, and the self-checking process of the first terminal device is simplified.
Step S06, generating the self-checking control instruction according to the target operating parameter, and executing the step of sending the self-checking control instruction to the first terminal device, so that the first terminal device adjusts the operating parameter to the target operating parameter.
In this embodiment, after the target operation parameter is determined, a self-checking control instruction is generated according to the target operation parameter, and the step of sending the self-checking control instruction to the first terminal device is performed, so that the first terminal device adjusts its own operation parameter to the target operation parameter, and whether the first terminal device correctly executes an action corresponding to the self-checking control instruction is monitored through the environmental data collected by the second terminal device. For example, when the first terminal device is an air conditioner, if the target temperature value is 20 ℃, the corresponding self-checking control instruction is to adjust the set temperature to 20 ℃ to drive the air conditioner to set the temperature to 20 ℃, or for example, when the first terminal device is a sensor device, for example, a smoke sensor, if the target operating parameter is smoke concentration of 50%, the corresponding self-checking control instruction is to detect that the smoke concentration is 50% to drive the smoke sensor to determine whether the smoke concentration is 50% and to output alarm prompt information when determining that the smoke sensor should alarm.
Optionally, when there are multiple operating parameter intervals corresponding to the first terminal device, there are multiple corresponding target operating parameters and multiple self-checking control instructions, at this time, a single self-checking control instruction may be sent to the first terminal device, after determining whether the first terminal device is abnormal according to the environmental parameter and the target environmental parameter corresponding to the self-checking control instruction, the next self-checking control instruction is sent to the first terminal device, that is, the first terminal device is tested one by one according to the multiple self-checking control instructions, after all the self-checking control instructions are tested, if the first terminal device is always normal, it indicates that the self-checking result of the first terminal device is normal, and if the first terminal device is abnormal, it indicates that the self-checking result of the first terminal device is abnormal.
In the technical scheme disclosed in this embodiment, an operation parameter interval corresponding to a first terminal device is obtained, a target operation parameter which is required to be subjected to self-inspection and corresponds to the operation parameter interval is obtained, a self-inspection control instruction is generated according to the target operation parameter, a step of sending the self-inspection control instruction to the first terminal device is executed, the operation parameter of the first terminal device is graded, and self-inspection is respectively performed on each grade, so that each operation parameter is prevented from being tested, and the self-inspection step of the terminal device is simplified.
In addition, an embodiment of the present invention further provides a self-checking device for a terminal device, where the self-checking device for a terminal device includes: the terminal equipment self-test method comprises a memory, a processor and a terminal equipment self-test program which is stored on the memory and can run on the processor, wherein the terminal equipment self-test program realizes the steps of the terminal equipment self-test method according to the above embodiments when the terminal equipment self-test program is executed by the processor.
In addition, an embodiment of the present invention further provides a computer storage medium, where a self-test program of a terminal device is stored in the computer storage medium, and the self-test program of the terminal device, when executed by a processor, implements the steps of the self-test method of the terminal device according to the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A self-checking method of terminal equipment is characterized by comprising the following steps:
determining first terminal equipment to be self-checked in a local area network, and sending a self-checking control instruction to the first terminal equipment so that the first terminal equipment executes self-checking operation corresponding to the self-checking control instruction;
after the self-checking control instruction is sent to the first terminal equipment, acquiring environmental parameters acquired by second terminal equipment related to the first terminal equipment in the local area network;
and determining whether the first terminal equipment is abnormal or not according to the environmental parameters and the target environmental parameters corresponding to the self-checking control instruction.
2. The self-test method for the terminal device according to claim 1, wherein the step of determining the first terminal device to be self-tested in the local area network comprises:
when a self-checking instruction triggered by a user is received, acquiring the first terminal equipment corresponding to equipment information in the self-checking instruction;
or when detecting that the terminal equipment is connected to the local area network, taking the terminal equipment as the first terminal equipment;
or when detecting that the current time point reaches a detection time point corresponding to the periodic self-detection, using the terminal device in the local area network as the first terminal device, wherein the detection time point is determined according to a preset self-detection period corresponding to the periodic self-detection.
3. The self-test method for the terminal device according to claim 1, wherein the step of determining the first terminal device to be self-tested in the local area network comprises:
when detecting that the current time point reaches a detection time point corresponding to the periodic self-detection, acquiring the operation duration of the terminal equipment in the local area network, wherein the detection time point is determined according to a preset self-detection period corresponding to the periodic self-detection;
sequencing the operation durations of a plurality of terminal devices in the local area network;
and determining at least one terminal device with longer running time according to the sequencing result, and using the terminal device as the first terminal device.
4. The self-test method for the terminal device according to claim 1, wherein the step of determining whether the first terminal device is abnormal according to the environmental parameter and the target environmental parameter corresponding to the self-test control instruction comprises:
acquiring sub-target environment parameters corresponding to sub-environment parameters in the environment parameters from the target environment parameters, wherein the sub-environment parameters are any one of temperature parameters, humidity parameters, sound parameters and brightness parameters;
acquiring a difference value between the sub-environment parameter and the corresponding sub-target environment parameter;
and when the difference value is not in the parameter error range corresponding to the sub-environment parameter, judging that the first terminal equipment is abnormal.
5. The self-test method for the terminal device according to claim 1, wherein the step of obtaining the environmental parameters collected by the second terminal device associated with the first terminal device in the local area network comprises:
acquiring a self-checking type corresponding to the first terminal device, wherein the self-checking type comprises at least one of self-checking of air conditioning capacity, self-checking of sound output capacity and self-checking of visual output capacity;
determining the terminal equipment corresponding to the self-checking type of the first terminal equipment, and taking the terminal equipment corresponding to the self-checking type as the second terminal equipment;
and acquiring the environmental parameters acquired by the second terminal equipment.
6. The self-test method for the terminal device according to claim 5, wherein the step of determining the terminal device corresponding to the self-test type of the first terminal device comprises:
when the self-checking type is self-checking of air conditioning capacity, the corresponding terminal equipment is acquisition equipment of environmental air parameters;
when the self-checking type is self-checking of the sound output capability, the corresponding terminal equipment is acquisition equipment of environmental sound parameters;
and when the self-checking type is self-checking of the visual output capability, the corresponding terminal equipment is acquisition equipment of the environment image.
7. The self-test method for terminal equipment according to claim 1, wherein after the step of determining the first terminal equipment to be self-tested in the local area network, the self-test method for terminal equipment further comprises:
acquiring an operation parameter interval corresponding to the first terminal device, wherein the operation parameter interval is determined according to a parameter range which can be reached by the operation parameter of the first terminal device;
acquiring target operation parameters which need to be subjected to self-checking and correspond to the operation parameter interval;
and generating the self-checking control instruction according to the target operation parameters, and executing the step of sending the self-checking control instruction to the first terminal equipment, so that the first terminal equipment adjusts the operation parameters to the target operation parameters.
8. The self-test method for the terminal device according to claim 1, wherein after the step of determining whether the first terminal device is abnormal according to the environmental parameter and the target environmental parameter corresponding to the self-test control instruction, the method further comprises:
after determining that the first terminal equipment is abnormal, acquiring position information of the position of a user;
acquiring a third terminal device closest to the user according to the position information, wherein the third terminal device is connected to the local area network and is a sound output device or a visual output device;
and outputting abnormal prompt information of the first terminal equipment through the third terminal equipment.
9. The utility model provides a self-checking device of terminal equipment which characterized in that, terminal equipment's self-checking device includes: a memory, a processor and a terminal device self-test program stored on the memory and operable on the processor, wherein the terminal device self-test program when executed by the processor implements the steps of the terminal device self-test method according to any one of claims 1 to 8.
10. A computer storage medium, characterized in that the computer storage medium stores thereon a self-test program of a terminal device, and the self-test program of the terminal device, when executed by a processor, implements the steps of the self-test method of the terminal device according to any one of claims 1 to 8.
CN202010787791.2A 2020-08-06 2020-08-06 Self-checking method and device of terminal equipment and computer storage medium Pending CN112328438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010787791.2A CN112328438A (en) 2020-08-06 2020-08-06 Self-checking method and device of terminal equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010787791.2A CN112328438A (en) 2020-08-06 2020-08-06 Self-checking method and device of terminal equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN112328438A true CN112328438A (en) 2021-02-05

Family

ID=74303745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010787791.2A Pending CN112328438A (en) 2020-08-06 2020-08-06 Self-checking method and device of terminal equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112328438A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022186064A1 (en) * 2021-03-04 2022-09-09 ローム株式会社 Self-diagnosis device and self-diagnosis system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022186064A1 (en) * 2021-03-04 2022-09-09 ローム株式会社 Self-diagnosis device and self-diagnosis system

Similar Documents

Publication Publication Date Title
US10546470B2 (en) Mobile user interfaces for smart-home hazard detection devices
US10741059B2 (en) Systems and methods for handling latent anomalies
CN108107780B (en) Power-off method, device and system of intelligent household appliance and computer readable storage medium
CN111930054B (en) Computer room management method, computer room management device, storage medium and equipment
CN112822486A (en) Aging test method, monitoring device and readable storage medium
CN112735104A (en) Abnormal alarm processing method and device
CN110749027B (en) Monitoring method and device for electrical equipment, air conditioner and storage medium
CN112328438A (en) Self-checking method and device of terminal equipment and computer storage medium
CN110967566A (en) Electrical appliance fault detection method and device
CN115499333A (en) Method, system, storage medium and electronic device for determining association relationship
CN115826553A (en) Fault removing method and electronic device
CN115494737A (en) Control method of intelligent household appliance, storage medium and electronic device
CN112230088B (en) Household appliance power-on self-checking method, system, equipment and storage medium
CN113325722B (en) Multi-mode implementation method and device for intelligent cooking and intelligent cabinet
CN113556391A (en) Page communication method and device, electronic equipment and readable storage medium
CN113765757A (en) Equipment end voice reminding method and system and household appliance
CN114760235B (en) Method and device for executing dial testing task, storage medium and electronic device
US20230229418A1 (en) Upgrading fire panel firmware using machine learning
CN115296950A (en) Prompting method for self-cleaning of equipment, storage medium and electronic device
CN116560974A (en) Interface testing method of Internet of things equipment, storage medium and electronic device
CN114003401A (en) Cross-platform message processing method and device for intelligent terminal
CN115987935A (en) Notification message pushing method and device, storage medium and electronic device
CN115617627A (en) Reminding method and device, electronic equipment and storage medium
CN114826899A (en) Debugging method and device of equipment control service, storage medium and electronic device
CN114756348A (en) Execution method and device of dial testing task, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination