CN108204653B - WIFI module fault detection method and device, terminal and storage medium - Google Patents
WIFI module fault detection method and device, terminal and storage medium Download PDFInfo
- Publication number
- CN108204653B CN108204653B CN201711499151.6A CN201711499151A CN108204653B CN 108204653 B CN108204653 B CN 108204653B CN 201711499151 A CN201711499151 A CN 201711499151A CN 108204653 B CN108204653 B CN 108204653B
- Authority
- CN
- China
- Prior art keywords
- fault
- wifi module
- fault detection
- information
- detection device
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/10—Monitoring; Testing of transmitters
- H04B17/15—Performance testing
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a fault detection method of a WIFI module, which comprises the following steps: when a fault detection device receives a fault detection instruction, acquiring a fault code in the fault detection instruction; determining fault information according to the fault code; and sending the determined fault information to the WIFI module so that the WIFI module generates a fault prompt according to the fault information and sends the generated fault prompt to a mobile terminal. The invention also discloses a fault detection device of the WIFI module, a mobile terminal, a computer readable storage medium and a fault detection system of the WIFI module. According to the invention, the fault detection device sends fault information to the WIFI module, and whether the reporting function of the WIFI module is faulty or not is detected according to the reporting condition of the WIFI module.
Description
Technical Field
The invention relates to the technical field of air conditioners, in particular to a fault detection method of a WIFI module, a fault detection device of the WIFI module, a mobile terminal, a computer readable storage medium and a fault detection system of the WIFI module.
Background
With the development of air conditioner intellectualization, the WIFI module has been generally applied to the air conditioner. Through the WIFI module, the air conditioner can be remotely controlled to operate, and intelligent internet of things can be carried out. At present, the WIFI module is also applied to testing faults of the air conditioner. When the air conditioner fails, the WIFI module receives the air conditioner fault and reports the air conditioner fault to the server, but in development test and production inspection, all faults of the air conditioner are difficult to be actually operated, and when the air conditioner fails, the WIFI module fault acquisition reports whether the server is accurate and effective, whether the priority is synchronous with the air conditioner, and the like, so that the test operation cannot be effectively facilitated.
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 fault detection method of a WIFI module, a fault detection device of the WIFI module, a mobile terminal, a computer readable storage medium and a fault detection system of the WIFI module, and aims to send fault information to the WIFI module through the fault detection device and detect whether a reporting function of the WIFI module is faulty or not according to a reporting condition of the WIFI module.
In order to achieve the above object, the present invention provides a fault detection method for a WIFI module, which includes the following steps:
when a fault detection device receives a fault detection instruction, acquiring a fault code in the fault detection instruction;
determining fault information according to the fault code;
and sending the determined fault information to the WIFI module so that the WIFI module generates a fault prompt according to the fault information and sends the generated fault prompt to a mobile terminal.
Preferably, before the acquiring the fault code in the fault detection instruction, the method further includes:
acquiring a fault mode identifier in the fault detection instruction;
when the fault mode identifier is a preset mode identifier, sending a communication code to the WIFI module;
and when the communication code returned by the WIFI module is received, executing the step of acquiring the fault code in the fault detection instruction.
Preferably, after the sending the communication code to the WIFI module, the method further includes:
and when the communication code returned by the WIFI module is not received within the preset time, outputting prompt information of abnormal communication.
Preferably, the step of sending the determined fault information to the WIFI module includes:
when the determined fault information is multiple, the multiple fault information is simultaneously sent to the WIFI module, so that the WIFI module sequentially generates the fault prompt according to the priorities of the multiple fault information, and the generated fault prompt is sequentially sent to the mobile terminal.
Preferably, the fault detection method of the WIFI module includes the following steps:
generating a fault detection instruction according to the fault code and the fault mode identifier, and sending the fault detection instruction to a fault detection device so that the fault detection device can send fault information to the WIFI module according to the fault detection instruction;
when a fault prompt sent by the WIFI module is received, judging whether fault information of the fault prompt corresponds to fault information of the fault detection instruction;
and when the fault information of the fault prompt corresponds to the fault information of the fault detection instruction, judging that the WIFI module is normal.
Preferably, the step of determining whether the fault information of the fault reminder corresponds to the fault information of the fault detection instruction includes:
when a plurality of received fault reminders are available, acquiring the priority of the fault information of the plurality of fault reminders;
judging whether the sequence of receiving the fault prompt is consistent with the priority;
and when the order of receiving the fault reminding is consistent with the priority, judging that the fault information of the fault reminding corresponds to the fault information of the fault detection instruction.
In order to achieve the above object, the present invention further provides a fault detection device for a WIFI module, where the fault detection device for the WIFI module includes:
the fault detection method comprises a memory, a processor and a fault detection program of the WIFI module, wherein the fault detection program of the WIFI module is stored on the memory and can run on the processor, and when being executed by the processor, the fault detection program of the WIFI module realizes the steps of the fault detection method of the WIFI module.
In order to achieve the above object, the present invention also provides a mobile terminal, including:
the fault detection method comprises a memory, a processor and a fault detection program of the WIFI module, wherein the fault detection program of the WIFI module is stored on the memory and can run on the processor, and when being executed by the processor, the fault detection program of the WIFI module realizes the steps of the fault detection method of the WIFI module.
In order to achieve the above object, the present invention further provides a computer-readable storage medium, in which a fault detection program of the WIFI module is stored, and the fault detection program of the WIFI module implements the steps of the fault detection method of the WIFI module when being executed by a processor.
In order to achieve the above object, the present invention also provides a fault detection system of a WIFI module, which includes a fault detection device of the WIFI module, a mobile terminal, the WIFI module, and a cloud server, wherein,
the fault detection device of the WIFI module is used for acquiring a fault code in a fault detection instruction when the fault detection instruction sent by the mobile terminal is received, determining fault information to be sent according to the fault code, sending the determined fault information to be sent to the WIFI module, enabling the WIFI module to generate a fault prompt according to the fault information, and sending the generated fault prompt to the mobile terminal;
the mobile terminal is used for generating a fault detection instruction according to the fault code and the fault mode identifier, sending the fault detection instruction to the fault detection device, judging whether fault information of the fault prompt corresponds to fault information of the fault detection instruction or not when the fault prompt sent by the WIFI module is received, and judging that the WIFI module is normal when the fault information of the fault prompt corresponds to the fault information of the fault detection instruction;
the WIFI module is used for receiving the fault information sent by the fault detection device, generating a fault prompt according to the fault information and sending the generated fault prompt to the cloud server;
and the cloud server is used for receiving the fault prompt sent by the WIFI module and sending the fault prompt to the mobile terminal.
According to the fault detection method of the WIFI module, the fault detection device of the WIFI module, the mobile terminal, the computer readable storage medium and the fault detection system of the WIFI module, when the fault detection device receives a fault detection instruction, a fault code in the fault detection instruction is obtained, fault information is determined according to the fault code, the determined fault information is sent to the WIFI module, so that the WIFI module generates a fault prompt according to the fault information, and the generated fault prompt is sent to the mobile terminal. According to the invention, the fault detection device sends fault information to the WIFI module, and whether the reporting function of the WIFI module is faulty or not is detected according to the reporting condition of the WIFI module.
Drawings
Fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a first embodiment of a fault detection method for a WIFI module according to the present invention;
fig. 3 is a schematic flowchart of a fault detection method for a WIFI module according to a second embodiment of the present invention;
fig. 4 is a schematic flowchart of a third embodiment of a fault detection method for a WIFI module according to the present invention;
fig. 5 is a schematic view of a detailed flow of sending the determined fault information to the WIFI module in the present invention;
fig. 6 is a schematic flowchart of a fifth embodiment of a fault detection method for a WIFI module according to the present invention;
fig. 7 is a schematic detailed flow chart of the present invention for determining whether the fault information of the fault reminder corresponds to the fault information of the fault detection instruction.
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 invention provides a fault detection method of a WIFI module, which is characterized in that fault information is sent to the WIFI module through a fault detection device, and whether the reporting function of the WIFI module is faulty or not is detected according to the reporting condition of the WIFI module.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a fault detection device of a WIFI module, and can also be a mobile terminal.
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 (such as a non-volatile memory, e.g., disk storage) and the memory 1005 may optionally also be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal 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 fault detection program of an operating system, a network communication module, a user interface module, and a WIFI module.
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 processor 1001 may be configured to invoke a fault detection program for the WIFI module stored in memory 1005 and perform the following operations:
when a fault detection device receives a fault detection instruction, acquiring a fault code in the fault detection instruction;
determining fault information according to the fault code;
and sending the determined fault information to the WIFI module so that the WIFI module generates a fault prompt according to the fault information and sends the generated fault prompt to a mobile terminal.
Further, processor 1001 may invoke a fault detection program for the WIFI module stored in memory 1005, and also perform the following operations:
acquiring a fault mode identifier in the fault detection instruction;
when the fault mode identifier is a preset mode identifier, sending a communication code to the WIFI module;
and when the communication code returned by the WIFI module is received, executing the step of acquiring the fault code in the fault detection instruction.
Further, processor 1001 may invoke a fault detection program for the WIFI module stored in memory 1005, and also perform the following operations:
and when the communication code returned by the WIFI module is not received within the preset time, outputting prompt information of abnormal communication.
Further, processor 1001 may invoke a fault detection program for the WIFI module stored in memory 1005, and also perform the following operations:
when the determined fault information is multiple, the multiple fault information is simultaneously sent to the WIFI module, so that the WIFI module sequentially generates the fault prompt according to the priorities of the multiple fault information, and the generated fault prompt is sequentially sent to the mobile terminal.
Further, processor 1001 may invoke a fault detection program for the WIFI module stored in memory 1005, and also perform the following operations:
generating a fault detection instruction according to the fault code and the fault mode identifier, and sending the fault detection instruction to a fault detection device so that the fault detection device can send fault information to the WIFI module according to the fault detection instruction;
when a fault prompt sent by the WIFI module is received, judging whether fault information of the fault prompt corresponds to fault information of the fault detection instruction;
and when the fault information of the fault prompt corresponds to the fault information of the fault detection instruction, judging that the WIFI module is normal.
Further, processor 1001 may invoke a fault detection program for the WIFI module stored in memory 1005, and also perform the following operations:
when a plurality of received fault reminders are available, acquiring the priority of the fault information of the plurality of fault reminders;
judging whether the sequence of receiving the fault prompt is consistent with the priority;
and when the order of receiving the fault reminding is consistent with the priority, judging that the fault information of the fault reminding corresponds to the fault information of the fault detection instruction.
Referring to fig. 2, in a first embodiment, the method for detecting a fault of a WIFI module includes:
step S11, when the fault detection device receives a fault detection instruction, acquiring a fault code in the fault detection instruction;
the embodiment provides a fault detection device for a WIFI module, which is connected with the WIFI module of an air conditioner and used for detecting whether a reporting function of the WIFI module fails or not by sending fault information to the WIFI module. And the fault detection device and the WIFI module are communicated in a communication mode of the universal asynchronous receiving and transmitting transmitter. It should be noted that the fault detection device may be externally connected to a plurality of WIFI modules, so as to detect the plurality of WIFI modules.
In the prior art, when the air conditioner fails, the fault prompt information is reported to the cloud server through the WIFI module, and the cloud server sends the fault information to the mobile terminal so as to remind a user of the fault information of the air conditioner. In this embodiment, the fault detection device sends the fault information to the WIFI module, and when the WIFI module changes the fault identifier corresponding to the fault information and reports the fault prompt information to the cloud server, it is determined that the reporting function of the WIFI module is normal.
In this embodiment, the user may control the fault detection device through the APP in the mobile terminal. For example, the user may control the fault detection device to be turned on or off through the mobile terminal, or may send a fault detection instruction to the fault detection device through the mobile terminal. Specifically, a user sends a fault detection instruction to a fault detection device through a mobile terminal, the fault detection device obtains a fault mode identifier and a fault code in the fault detection instruction, determines a fault mode according to the fault mode identifier, and further determines fault information to be sent according to the fault mode and the fault code. When the fault detection device sends the fault information to the WIFI module, the WIFI module generates a fault prompt according to the fault information and uploads the fault prompt to the cloud server so that the cloud server can send the fault prompt to the mobile terminal. When the mobile terminal detects that the fault information of the fault prompt is consistent with the fault information of the fault detection instruction, the reporting function of the WIFI module is judged to be normal.
It should be noted that, the user may also control the fault detection device through the air conditioner remote controller, for example, the user may control the fault detection device to be turned on or turned off through the air conditioner remote controller, or send a fault detection instruction through the air conditioner remote controller. When the user sends a fault detection instruction through the air conditioner remote controller, the user can judge whether the reporting function of the WIFI module is in fault or not by checking whether fault information of the fault prompt received by the mobile terminal is consistent with the fault information of the fault detection instruction or not. For example, the fault communication mode identifier sent by the user through the air conditioner remote controller is 01, the fault code is 1, the fault information corresponding to 01-1 is fault a, when the fault information of the fault reminder is fault a, it is determined that the reporting function of the WIFI module is normal, and when the fault reminder is not received or the received fault information of the fault reminder is not fault a, it is determined that the reporting function of the WIFI module is abnormal.
Step S12, determining fault information according to the fault code;
in this embodiment, the failure modes are divided into a communication mode, a single failure mode, and a plurality of failure modes, and each failure mode corresponds to one mode identifier. The failure mode identification may be 00, 01, 11, etc., for example, 00 refers to a communication mode, 01 refers to a single failure mode, and 11 refers to multiple failure modes.
When the fault mode identification received by the fault detection device is 00, the fault mode identification is a communication mode, and the communication mode is used for judging whether the communication between the fault detection device and the WIFI module is normal. Specifically, the fault detection device sends a communication code to the WIFI module, and when the communication code returned by the WIFI module is received, the fault detection device and the WIFI module are judged to be in normal communication; when the communication code returned by the WIFI module is not received within the preset time, the communication between the fault detection device and the WIFI module is judged to be abnormal, and the preset time can be one minute. When the communication between the fault detection device and the WIFI module is normal, the reporting function of the WIFI module is detected, and therefore the accuracy of the detection of the reporting function of the WIFI module is guaranteed.
When the fault mode identification received by the fault detection device is 01, the fault mode identification is a single fault mode, and the single fault mode has the function of judging whether the reporting function of the WIFI module on the single fault is normal. Specifically, the fault codes may be 1, 2, 3, 4, etc., each corresponding to one of the fault information. For example, when the fault detection device receives 01-1, the fault detection device sends fault information to change the fault identifier of the fault a in the WIFI module to 1, and when the fault detection device receives 01-2, the fault detection device sends fault information to change the fault identifier of the fault B in the WIFI module to 1. It should be noted that, when the failure flag of a certain failure is 1, that is, in the failure state, when the failure flag of a certain failure is 0, that is, in the non-failure state. After only the fault identifier of the fault A is changed, if the mobile terminal receives the prompt message of the fault A, the reporting function of the WIFI module is judged to be normal. After the fault identifications of the multiple faults are changed, if the mobile terminal sequentially receives prompt messages of the multiple faults and the receiving sequence is consistent with the changing sequence, the reporting function of the WIFI module is judged to be normal.
When the fault mode identification received by the fault detection device is 11, the fault mode identification is a plurality of fault modes, and the plurality of fault modes have the function of judging whether the reporting function of the WIFI module on the plurality of faults is normal. For example, when the fault detection device receives 11-1, the fault information is sent to change the fault identifications of the fault a and the fault B in the WIFI module to 1, and when the fault detection device receives 11-2, the fault information is sent to change the fault identifications of the fault a, the fault B and the fault C in the WIFI module to 1.
It should be noted that, in the multiple failure modes, the WIFI module is included to determine multiple failure priorities. In the air conditioner, if a plurality of faults occur simultaneously, the WIFI module needs to report fault prompt information in sequence according to the priority of the faults. For example, when the communication fault of an indoor unit and an outdoor unit of an air conditioner is in a first level and the fault of an indoor environment temperature sensor is in a second level, when the WIFI module receives the communication fault and the sensor fault at the same time, if the communication fault is reported to a server preferentially and then the sensor fault is reported, the reporting function of the WIFI module is judged to be normal; and if the mobile terminal receives the communication fault prompt and the sensor fault prompt, but the receiving sequence is inconsistent with the priority, judging that the reporting function of the WIFI module is abnormal.
Step S13, sending the determined fault information to the WIFI module, enabling the WIFI module to generate a fault reminder according to the fault information, and sending the generated fault reminder to the mobile terminal.
In this embodiment, if the reporting function of the WIFI module is normal, when the WIFI module receives the fault information sent by the fault detection device, the to-be-changed fault identifier is determined according to the fault information, and after the fault identifier is changed, the fault prompt information is reported to the cloud server, so that the cloud server sends the fault prompt information to the mobile terminal. When the mobile terminal does not receive the prompt message of the fault, judging that the reporting function of the WIFI module is abnormal; or, in a single fault mode, if the sequence of the fault prompt messages received by the mobile terminal is inconsistent with the sequence of the fault messages sent by the fault detection device, judging that the reporting function of the WIFI module is abnormal; or in a plurality of fault modes, if the sequence of the fault prompt messages received by the mobile terminal is inconsistent with the priority of the fault, determining that the reporting function of the WIFI module is abnormal.
In a first embodiment, when a fault detection device receives a fault detection instruction, a fault code in the fault detection instruction is acquired, fault information is determined according to the fault code, the determined fault information is sent to a WIFI module, the WIFI module generates a fault prompt according to the fault information, and the generated fault prompt is sent to a mobile terminal. Therefore, fault information is sent to the WIFI module through the fault detection device, and whether the reporting function of the WIFI module is in fault or not is detected according to the reporting condition of the WIFI module.
In a second embodiment, as shown in fig. 3, based on the embodiment shown in fig. 2, before the acquiring the fault code in the fault detection instruction, the method further includes:
step S14, acquiring a fault mode identifier in the fault detection instruction;
step S15, when the fault mode identification is a preset mode identification, a communication code is sent to the WIFI module;
step S16, judging whether the communication code returned by the WIFI module is received;
step S17, when the communication code returned by the WIFI module is received, execute the step of obtaining the fault code in the fault detection instruction.
In this embodiment, the failure modes are divided into a communication mode, a single failure mode, and a plurality of failure modes, and each failure mode corresponds to one mode identifier. The failure mode identification may be 00, 01, 11, etc., for example, 00 refers to a communication mode, 01 refers to a single failure mode, and 11 refers to multiple failure modes.
When the fault mode identification received by the fault detection device is 00, the fault mode identification is a communication mode, and the communication mode is used for judging whether the communication between the fault detection device and the WIFI module is normal. Specifically, the fault detection device sends a communication code to the WIFI module, and when the communication code returned by the WIFI module is received, the fault detection device and the WIFI module are judged to be in normal communication; when the communication code returned by the WIFI module is not received within the preset time, the communication between the fault detection device and the WIFI module is judged to be abnormal, and the preset time can be one minute. And when the communication between the fault detection device and the WIFI module is normal, detecting the reporting function of the WIFI module.
In a second embodiment, a fault mode identifier in the fault detection instruction is obtained, when the fault mode identifier is a preset mode identifier, a communication code is sent to the WIFI module, and when the communication code returned by the WIFI module is received, the step of obtaining the fault code in the fault detection instruction is executed. Therefore, the accuracy of the reporting function detection of the WIFI module is guaranteed.
In a third embodiment, as shown in fig. 4, on the basis of the embodiment shown in any one of fig. 2 to fig. 3, after the sending the communication code to the WIFI module, the method further includes:
and S18, outputting prompt information of communication abnormity when the communication code returned by the WIFI module is not received within a preset time length.
In this embodiment, the fault detection device sends a communication code to the WIFI module, and when the communication code returned by the WIFI module is received, it is determined that the communication between the fault detection device and the WIFI module is normal; when the communication code returned by the WIFI module is not received within the preset time, the communication between the fault detection device and the WIFI module is judged to be abnormal, and the preset time can be one minute. When the communication between the fault detection device and the WIFI module is abnormal, the detection of the reporting function of the WIFI module is not carried out.
Note that, the notification information of the communication abnormality may be displayed on the screen of the failure detection device.
In a third embodiment, when the communication code returned by the WIFI module is not received within a preset time, a prompt message of communication abnormality is output. Therefore, the accuracy of the reporting function detection of the WIFI module is guaranteed.
In a fourth embodiment, as shown in fig. 5, based on the embodiments shown in fig. 2 to 4, the step of sending the determined fault information to the WIFI module includes:
step S131, when the determined fault information is multiple, the multiple fault information is simultaneously sent to the WIFI module, so that the WIFI module sequentially generates the fault prompt according to the priorities of the multiple fault information, and the generated fault prompt is sequentially sent to the mobile terminal.
When the fault mode identification received by the fault detection device is 11, the fault mode identification is a plurality of fault modes, and the plurality of fault modes have the function of judging whether the reporting function of the WIFI module on the plurality of faults is normal. For example, when the fault detection device receives 11-1, the fault information is sent to change the fault identifications of the fault a and the fault B in the WIFI module to 1, and when the fault detection device receives 11-2, the fault information is sent to change the fault identifications of the fault a, the fault B and the fault C in the WIFI module to 1. It should be noted that, when the failure flag of a certain failure is 1, that is, in the failure state, when the failure flag of a certain failure is 0, that is, in the non-failure state.
It should be noted that, in the multiple failure modes, the WIFI module is included to determine multiple failure priorities. In the air conditioner, if a plurality of faults occur simultaneously, the WIFI module needs to report fault prompt information in sequence according to the priority of the faults. For example, when the communication fault of an indoor unit and an outdoor unit of an air conditioner is in a first level and the fault of an indoor environment temperature sensor is in a second level, when the WIFI module receives the communication fault and the sensor fault at the same time, if the communication fault is reported to a server preferentially and then the sensor fault is reported, the reporting function of the WIFI module is judged to be normal; and if the mobile terminal receives the communication fault prompt and the sensor fault prompt, but the receiving sequence is inconsistent with the priority, judging that the reporting function of the WIFI module is abnormal. Therefore, under the multiple fault modes, the fault detection device simultaneously sends the multiple pieces of fault information to the WIFI module so as to simultaneously change the multiple fault identifications in the WIFI module, and therefore whether the WIFI module reports the fault information according to the priority of the fault is detected.
In a fourth embodiment, when a plurality of pieces of determined fault information are provided, the plurality of pieces of fault information are simultaneously sent to the WIFI module, so that the WIFI module sequentially generates fault reminders according to priorities of the plurality of pieces of fault information, and sequentially sends the generated fault reminders to the mobile terminal. Therefore, whether the WIFI module can report the fault according to the priority of the fault is judged by sending a plurality of faults to the WIFI module at the same time, and the reporting function of the WIFI module is comprehensively detected.
In a fifth embodiment, as shown in fig. 6, based on the embodiments shown in fig. 2 to 5, the fault detection method for the WIFI module includes the following steps:
step S21, generating a fault detection instruction according to the fault code and the fault mode identifier, and sending the fault detection instruction to a fault detection device, so that the fault detection device sends fault information to the WIFI module according to the fault detection instruction;
the embodiment provides a fault detection device for a WIFI module, which is connected with the WIFI module of an air conditioner and used for detecting whether a reporting function of the WIFI module fails or not by sending fault information to the WIFI module. And the fault detection device and the WIFI module are communicated in a communication mode of the universal asynchronous receiving and transmitting transmitter. It should be noted that the fault detection device may be externally connected to a plurality of WIFI modules, so as to detect the plurality of WIFI modules.
In the prior art, when the air conditioner fails, the fault prompt information is reported to the cloud server through the WIFI module, and the cloud server sends the fault information to the mobile terminal so as to remind a user of the fault information of the air conditioner. In this embodiment, the fault detection device sends the fault information to the WIFI module, and when the WIFI module changes the fault identifier corresponding to the fault information and reports the fault prompt information to the cloud server, it is determined that the reporting function of the WIFI module is normal.
In this embodiment, the user may control the fault detection device through the APP in the mobile terminal. For example, the user may control the fault detection device to be turned on or off through the mobile terminal, or may send a fault detection instruction to the fault detection device through the mobile terminal. Specifically, a user sends a fault detection instruction to a fault detection device through a mobile terminal, the fault detection device obtains a fault mode identifier and a fault code in the fault detection instruction, determines a fault mode according to the fault mode identifier, and further determines fault information to be sent according to the fault mode and the fault code. When the fault detection device sends the fault information to the WIFI module, the WIFI module generates a fault prompt according to the fault information and uploads the fault prompt to the cloud server so that the cloud server can send the fault prompt to the mobile terminal. When the mobile terminal detects that the fault information of the fault prompt is consistent with the fault information of the fault detection instruction, the reporting function of the WIFI module is judged to be normal.
It should be noted that, the user may also control the fault detection device through the air conditioner remote controller, for example, the user may control the fault detection device to be turned on or turned off through the air conditioner remote controller, or send a fault detection instruction through the air conditioner remote controller. When the user sends a fault detection instruction through the air conditioner remote controller, the user can judge whether the reporting function of the WIFI module is in fault or not by checking whether fault information of the fault prompt received by the mobile terminal is consistent with the fault information of the fault detection instruction or not. For example, the fault communication mode identifier sent by the user through the air conditioner remote controller is 01, the fault code is 1, the fault information corresponding to 01-1 is fault a, when the fault information of the fault reminder is fault a, it is determined that the reporting function of the WIFI module is normal, and when the fault reminder is not received or the received fault information of the fault reminder is not fault a, it is determined that the reporting function of the WIFI module is abnormal.
Step S22, when the fault reminder sent by the WIFI module is received, judging whether the fault information of the fault reminder corresponds to the fault information of the fault detection instruction;
in this embodiment, the failure modes are divided into a communication mode, a single failure mode, and a plurality of failure modes, and each failure mode corresponds to one mode identifier. The failure mode identification may be 00, 01, 11, etc., for example, 00 refers to a communication mode, 01 refers to a single failure mode, and 11 refers to multiple failure modes.
When the fault mode identification received by the fault detection device is 00, the fault mode identification is a communication mode, and the communication mode is used for judging whether the communication between the fault detection device and the WIFI module is normal. Specifically, the fault detection device sends a communication code to the WIFI module, and when the communication code returned by the WIFI module is received, the fault detection device and the WIFI module are judged to be in normal communication; when the communication code returned by the WIFI module is not received within the preset time, the communication between the fault detection device and the WIFI module is judged to be abnormal, and the preset time can be one minute. When the communication between the fault detection device and the WIFI module is normal, the reporting function of the WIFI module is detected, and therefore the accuracy of the detection of the reporting function of the WIFI module is guaranteed.
When the fault mode identification received by the fault detection device is 01, the fault mode identification is a single fault mode, and the single fault mode has the function of judging whether the reporting function of the WIFI module on the single fault is normal. Specifically, the fault codes may be 1, 2, 3, 4, etc., each corresponding to one of the fault information. For example, when the fault detection device receives 01-1, the fault detection device sends fault information to change the fault identifier of the fault a in the WIFI module to 1, and when the fault detection device receives 01-2, the fault detection device sends fault information to change the fault identifier of the fault B in the WIFI module to 1. It should be noted that, when the failure flag of a certain failure is 1, that is, in the failure state, when the failure flag of a certain failure is 0, that is, in the non-failure state. After only the fault identifier of the fault A is changed, if the mobile terminal receives the prompt message of the fault A, the reporting function of the WIFI module is judged to be normal. After the fault identifications of the multiple faults are changed, if the mobile terminal sequentially receives prompt messages of the multiple faults and the receiving sequence is consistent with the changing sequence, the reporting function of the WIFI module is judged to be normal.
When the fault mode identification received by the fault detection device is 11, the fault mode identification is a plurality of fault modes, and the plurality of fault modes have the function of judging whether the reporting function of the WIFI module on the plurality of faults is normal. For example, when the fault detection device receives 11-1, the fault information is sent to change the fault identifications of the fault a and the fault B in the WIFI module to 1, and when the fault detection device receives 11-2, the fault information is sent to change the fault identifications of the fault a, the fault B and the fault C in the WIFI module to 1.
It should be noted that, in the multiple failure modes, the WIFI module is included to determine multiple failure priorities. In the air conditioner, if a plurality of faults occur simultaneously, the WIFI module needs to report fault prompt information in sequence according to the priority of the faults. For example, when the communication fault of an indoor unit and an outdoor unit of an air conditioner is in a first level and the fault of an indoor environment temperature sensor is in a second level, when the WIFI module receives the communication fault and the sensor fault at the same time, if the communication fault is reported to a server preferentially and then the sensor fault is reported, the reporting function of the WIFI module is judged to be normal; and if the mobile terminal receives the communication fault prompt and the sensor fault prompt, but the receiving sequence is inconsistent with the priority, judging that the reporting function of the WIFI module is abnormal.
And step S23, when the fault information of the fault prompt corresponds to the fault information of the fault detection instruction, judging that the WIFI module is normal.
In this embodiment, if the reporting function of the WIFI module is normal, when the WIFI module receives the fault information sent by the fault detection device, the to-be-changed fault identifier is determined according to the fault information, and after the fault identifier is changed, the fault prompt information is reported to the cloud server, so that the cloud server sends the fault prompt information to the mobile terminal. When the mobile terminal does not receive the prompt message of the fault, judging that the reporting function of the WIFI module is abnormal; or, in a single fault mode, if the sequence of the fault prompt messages received by the mobile terminal is inconsistent with the sequence of the fault messages sent by the fault detection device, judging that the reporting function of the WIFI module is abnormal; or in a plurality of fault modes, if the sequence of the fault prompt messages received by the mobile terminal is inconsistent with the priority of the fault, determining that the reporting function of the WIFI module is abnormal.
In a fifth embodiment, a fault detection instruction is generated according to the fault code and the fault mode identifier, the fault detection instruction is sent to the fault detection device, when the fault reminder sent by the WIFI module is received, whether fault information of the fault reminder corresponds to fault information of the fault detection instruction is judged, and when the fault information of the fault reminder corresponds to the fault information of the fault detection instruction, the WIFI module is judged to be normal. Therefore, fault information is sent to the WIFI module through the fault detection device, and whether the reporting function of the WIFI module is in fault or not is detected according to the reporting condition of the WIFI module.
In a sixth embodiment, as shown in fig. 7, on the basis of the embodiments shown in fig. 2 to 6, the step of determining whether the fault information of the fault reminder corresponds to the fault information of the fault detection instruction includes:
step S221, when a plurality of received fault reminders are received, acquiring the priority of the fault information of the plurality of fault reminders;
step S222, judging whether the sequence of receiving the fault reminding is consistent with the priority;
step S223, when the order of receiving the fault notification is consistent with the priority, determining that the fault information of the fault notification corresponds to the fault information of the fault detection instruction.
When the fault mode identification received by the fault detection device is 11, the fault mode identification is a plurality of fault modes, and the plurality of fault modes have the function of judging whether the reporting function of the WIFI module on the plurality of faults is normal. For example, when the fault detection device receives 11-1, the fault information is sent to change the fault identifications of the fault a and the fault B in the WIFI module to 1, and when the fault detection device receives 11-2, the fault information is sent to change the fault identifications of the fault a, the fault B and the fault C in the WIFI module to 1. It should be noted that, when the failure flag of a certain failure is 1, that is, in the failure state, when the failure flag of a certain failure is 0, that is, in the non-failure state.
It should be noted that, in the multiple failure modes, the WIFI module is included to determine multiple failure priorities. In the air conditioner, if a plurality of faults occur simultaneously, the WIFI module needs to report fault prompt information in sequence according to the priority of the faults. For example, when the WIFI module receives communication faults and sensor faults simultaneously, if the mobile terminal receives prompt information of the communication faults firstly and then receives prompt information of the sensor faults, the reporting function of the WIFI module is judged to be normal; and if the mobile terminal receives the communication fault prompt and the sensor fault prompt, but the receiving sequence is inconsistent with the priority, judging that the reporting function of the WIFI module is abnormal.
In a sixth embodiment, when a plurality of received fault reminders are provided, priorities of fault information of the plurality of fault reminders are obtained, whether the order of receiving the fault reminders is consistent with the priorities is determined, and when the order of receiving the fault reminders is consistent with the priorities, it is determined that the fault information of the fault reminders corresponds to the fault information of the fault detection instruction. Therefore, the reporting function of the WIFI module can be comprehensively detected.
The fault detection device of the WIFI module comprises a fault detection program of the WIFI module, and the fault detection program of the WIFI module is configured to realize the steps of the fault detection method of the WIFI module under the condition that the fault detection device of the WIFI module is an execution main body.
The invention also provides a mobile terminal, which comprises a fault detection program of the WIFI module, wherein the fault detection program of the WIFI module is configured to realize the steps of the fault detection method of the WIFI module under the execution main body of the mobile terminal.
The embodiment of the invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a fault detection program of the WIFI module, and the fault detection program of the WIFI module is executed by a processor to realize the steps of the fault detection method of the WIFI module under the condition that the fault detection device of the WIFI module or the mobile terminal is an execution subject.
The invention also provides a fault detection system of the WIFI module, which comprises a fault detection device of the WIFI module, a mobile terminal, the WIFI module and a cloud server, wherein,
the fault detection device of the WIFI module is used for acquiring a fault code in a fault detection instruction when the fault detection instruction sent by the mobile terminal is received, determining fault information to be sent according to the fault code, sending the determined fault information to be sent to the WIFI module, enabling the WIFI module to generate a fault prompt according to the fault information, and sending the generated fault prompt to the mobile terminal;
the mobile terminal is used for generating a fault detection instruction according to the fault code and the fault mode identifier, sending the fault detection instruction to the fault detection device, judging whether fault information of the fault prompt corresponds to fault information of the fault detection instruction or not when the fault prompt sent by the WIFI module is received, and judging that the WIFI module is normal when the fault information of the fault prompt corresponds to the fault information of the fault detection instruction;
the WIFI module is used for receiving the fault information sent by the fault detection device, generating a fault prompt according to the fault information and sending the generated fault prompt to the cloud server;
and the cloud server is used for receiving the fault prompt sent by the WIFI module and sending the fault prompt to the mobile terminal.
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 television, 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 (9)
1. A fault detection method of a WIFI module is characterized by comprising the following steps:
when a fault detection device receives a fault detection instruction, acquiring a fault code in the fault detection instruction, wherein the fault detection device is connected with the WIFI module;
determining fault information according to the fault code;
when the determined fault information is multiple, the fault information is simultaneously sent to the WIFI module, so that the WIFI module determines a fault identifier to be changed according to the multiple fault information, sequentially generates a fault reminder according to the priority of the multiple fault information after changing the fault identifier to be changed, and sequentially sends the generated fault reminder to the mobile terminal, wherein the mobile terminal judges whether the WIFI module is normal or not according to the received multiple sequence of the fault reminder and the multiple priority of the fault information.
2. The method for detecting a fault of a WIFI module according to claim 1, wherein before the obtaining the fault code in the fault detection instruction, further comprising:
acquiring a fault mode identifier in the fault detection instruction;
when the fault mode identifier is a preset mode identifier, sending a communication code to the WIFI module;
and when the communication code returned by the WIFI module is received, executing the step of acquiring the fault code in the fault detection instruction.
3. The method of claim 2, wherein after sending the communication code to the WIFI module, further comprising:
and when the communication code returned by the WIFI module is not received within the preset time, outputting prompt information of abnormal communication.
4. A fault detection method of a WIFI module is characterized by comprising the following steps:
generating a fault detection instruction according to a fault code and a fault mode identifier, sending the fault detection instruction to a fault detection device, allowing the fault detection device to send fault information to a WIFI module according to the fault detection instruction, allowing the WIFI module to determine a fault identifier to be changed according to a plurality of fault information, sequentially generating a fault reminder according to the priority of the fault information after changing the fault identifier to be changed, and sequentially sending the generated fault reminder to a mobile terminal, wherein the fault detection device is connected with the WIFI module, and the number of the fault information is multiple;
when a plurality of fault reminders sent by the WIFI module are received, judging whether the fault information of the fault reminder corresponds to the fault information of the fault detection instruction or not according to the sequence of the plurality of received fault reminders and the priority of the plurality of fault information;
and when the fault information of the fault prompt corresponds to the fault information of the fault detection instruction, judging that the WIFI module is normal.
5. The method for detecting faults of a WIFI module according to claim 4, wherein the step of determining whether the fault information of the fault reminder corresponds to the fault information of the fault detection instruction according to the received sequence of the plurality of fault reminders and the priority of the plurality of fault information includes:
judging whether the received sequence of the plurality of fault reminders is consistent with the priority of the plurality of fault information;
and when the received sequence of the plurality of fault reminders is consistent with the priority of the plurality of fault information, judging that the fault information of the fault reminders corresponds to the fault information of the fault detection instruction.
6. A fault detection device of a WIFI module, characterized in that the fault detection device of the WIFI module comprises a memory, a processor and a fault detection program of the WIFI module stored on the memory and operable on the processor, the fault detection program of the WIFI module when executed by the processor implementing the steps of the fault detection method of the WIFI module according to any one of claims 1 to 3.
7. A mobile terminal, characterized in that it comprises a memory, a processor and a fault detection program of a WIFI module stored on said memory and executable on said processor, said fault detection program of a WIFI module when executed by said processor implementing the steps of the fault detection method of a WIFI module according to any one of claims 4 to 5.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a fault detection program for a WIFI module, which when executed by a processor implements the steps of the fault detection method for a WIFI module according to any one of claims 1 to 5.
9. A fault detection system of a WIFI module is characterized by comprising a fault detection device of the WIFI module, a mobile terminal, the WIFI module and a cloud server, wherein,
the fault detection device of the WIFI module is used for acquiring fault codes in the fault detection instructions when the fault detection instructions are received, determining fault information to be sent according to the fault codes, simultaneously sending the determined fault information to be sent to the WIFI module when the determined fault information to be sent is multiple, determining fault identification to be changed by the WIFI module according to the fault information, sequentially generating fault reminders according to the priorities of the fault information after the fault identification to be changed is changed, and sequentially sending the generated fault reminders to the mobile terminal, wherein the fault detection device is connected with the WIFI module;
the mobile terminal is used for generating a fault detection instruction according to the fault code and the fault mode identifier, sending the fault detection instruction to the fault detection device, judging whether fault information of the fault reminder corresponds to the fault information of the fault detection instruction or not according to the sequence of the received fault reminders and the priority of the fault information if the fault reminder sent by the WIFI module is multiple, and judging that the WIFI module is normal when the fault information of the fault reminder corresponds to the fault information of the fault detection instruction;
the WIFI module is used for receiving the plurality of fault information sent by the fault detection device, sequentially generating fault reminders according to the priorities of the plurality of fault information, and sequentially sending the generated fault reminders to the cloud server;
and the cloud server is used for receiving the fault reminders sequentially sent by the WIFI module and sequentially sending the fault reminders to the mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711499151.6A CN108204653B (en) | 2017-12-28 | 2017-12-28 | WIFI module fault detection method and device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711499151.6A CN108204653B (en) | 2017-12-28 | 2017-12-28 | WIFI module fault detection method and device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108204653A CN108204653A (en) | 2018-06-26 |
CN108204653B true CN108204653B (en) | 2021-02-23 |
Family
ID=62605647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711499151.6A Active CN108204653B (en) | 2017-12-28 | 2017-12-28 | WIFI module fault detection method and device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108204653B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113596887B (en) * | 2021-05-17 | 2023-11-14 | 深圳Tcl新技术有限公司 | Automatic restoration method, device and equipment for WiFi function abnormality and storage medium |
CN115930361A (en) * | 2022-12-28 | 2023-04-07 | 小米科技(武汉)有限公司 | Air conditioner fault detection method, device, medium and chip |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101068170A (en) * | 2007-06-05 | 2007-11-07 | 华为技术有限公司 | Message abnormal receiving detecting method, system and device thereof |
US10425169B2 (en) * | 2010-11-05 | 2019-09-24 | FedEx Supply Chain Logistics & Electronics, Inc. | WiFi test chamber |
CN103533572A (en) * | 2013-10-24 | 2014-01-22 | 广东欧珀移动通信有限公司 | WIFI performance automation testing method and device |
CN103825667B (en) * | 2014-03-10 | 2015-12-30 | 南京软仪测试技术有限公司 | A kind of method of concurrent testing WIFI module |
WO2016095118A1 (en) * | 2014-12-17 | 2016-06-23 | Thomson Licensing | Method and device for home wifi station device to select link for data transmitting |
CN106332156A (en) * | 2015-07-02 | 2017-01-11 | 深圳平安通信科技有限公司 | WIFI anomaly detection control system and method |
CN107026765B (en) * | 2016-02-02 | 2021-06-25 | 美的集团股份有限公司 | Incoming material detection method, terminal and system of WiFi module |
CN106162725A (en) * | 2016-07-22 | 2016-11-23 | 广东美的暖通设备有限公司 | The detection method of air conditioning unit communication module and device |
CN107018523A (en) * | 2017-04-13 | 2017-08-04 | 美的智慧家居科技有限公司 | WIFI module testing method and device |
-
2017
- 2017-12-28 CN CN201711499151.6A patent/CN108204653B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108204653A (en) | 2018-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9332362B2 (en) | Acoustic diagnosis and correction system | |
US10269235B2 (en) | System and method to assist building automation system end user based on alarm parameters | |
WO2019114603A1 (en) | Vehicle detection method and apparatus and vehicle diagnostic device | |
CN110097260B (en) | Product inspection method, apparatus, device, and storage medium | |
CN106918360B (en) | Automatic detection method, server, device to be detected and terminal | |
EP3511832A1 (en) | Log transmission device and log collection system | |
CN108204653B (en) | WIFI module fault detection method and device, terminal and storage medium | |
CN110267215B (en) | Data detection method, equipment and storage medium | |
CN111211929A (en) | Fault positioning method, fault positioning device, control equipment and intelligent equipment | |
CN111090592A (en) | Automatic testing method of buried point, terminal and readable storage medium | |
CN106970610A (en) | Monitoring method, system and the readable storage medium storing program for executing of car data stream | |
CN110888816A (en) | Program testing method, program testing device, and storage medium | |
CN112286825A (en) | Screen testing method and device for intelligent cabin and electronic equipment | |
CN111372039A (en) | Monitoring and early warning method, computer device and computer readable storage medium | |
CN112822073B (en) | Test method, device, system, electronic equipment and readable storage medium | |
US9992559B2 (en) | Sensor management device, sensor, monitoring system, sensor management method, sensor management program, monitoring method, and monitoring program | |
CN112583617A (en) | Fault determination method, server, control terminal and storage medium | |
CN111104331A (en) | Software management method, terminal device and computer-readable storage medium | |
CN112346440B (en) | Robot health monitoring method, device, equipment and readable storage medium | |
CN114356769A (en) | Software learning method, device, equipment and storage medium | |
US10303584B2 (en) | Method for message-processing | |
CN111258890A (en) | Program test method, storage medium, and system | |
CN112816222A (en) | Remote calibration method and system for sensor production line | |
CN113820160B (en) | Detection method, detection device and detection system of OBD (on-Board diagnostics) equipment | |
CN116760690B (en) | Fault root cause analysis method, device, server and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |