CN113179198A - Communication detection method and terminal of electronic home equipment and electronic home equipment - Google Patents

Communication detection method and terminal of electronic home equipment and electronic home equipment Download PDF

Info

Publication number
CN113179198A
CN113179198A CN202110366764.2A CN202110366764A CN113179198A CN 113179198 A CN113179198 A CN 113179198A CN 202110366764 A CN202110366764 A CN 202110366764A CN 113179198 A CN113179198 A CN 113179198A
Authority
CN
China
Prior art keywords
terminal
home equipment
electronic home
fault
communication link
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
CN202110366764.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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202110366764.2A priority Critical patent/CN113179198A/en
Publication of CN113179198A publication Critical patent/CN113179198A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of wireless communication, in particular to a communication detection method and terminal of electronic home equipment and the electronic home equipment, and aims to improve the efficiency of diagnosing a communication link of intelligent home equipment. After the terminal accesses the target network, the terminal establishes transmission connection with the electronic home equipment through the target network; the target network is a network to which the electronic home equipment is currently accessed; receiving fault information sent by the electronic home equipment through transmission connection; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and the cloud server is in fault; and carrying out fault diagnosis on the communication link according to the fault information, and determining the fault type of the communication link with the fault. According to the embodiment of the invention, after the communication fault occurs to the electronic home equipment, the fault type can be quickly determined, and the efficiency of diagnosing the communication link of the electronic home equipment is improved.

Description

Communication detection method and terminal of electronic home equipment and electronic home equipment
Technical Field
The invention relates to the technical field of wireless communication, in particular to a communication detection method and terminal of electronic home equipment and the electronic home equipment.
Background
In recent years, under the promotion of mobile internet and cloud computing, the development of smart homes is rapidly increased in temperature, and various manufacturers launch internet of things platforms to comprehensively enter the field of smart homes. The intelligent home is connected with various electronic home devices in the home, such as audio and video devices, lighting devices, curtains, air conditioners and the like, through the Internet of things technology, and provides multiple functions and means such as home appliance control, lighting control, indoor and outdoor remote control, heating and ventilation control, programmable timing control and the like.
The intelligent home equipment is provided with the WiFi module, the intelligent home equipment is connected to a network through the WiFi module and is in communication connection with the corresponding cloud server, and therefore the intelligent home equipment can acquire a large amount of network resources from the cloud server; after the terminal is accessed to the same local area network as the intelligent household equipment, the intelligent household equipment can be remotely controlled through an application program installed on the terminal. However, after the communication link of the smart home device fails, the smart home device cannot normally access the cloud server, and since various types of failures may occur in the communication link between the smart home device and the cloud server, in order to repair the communication link as soon as possible, a technician is required to retrieve the operation log of the smart home device, and manually analyze the failure type of the communication link through the operation log, so that the current method for diagnosing the communication link of the smart home device is low in efficiency.
Disclosure of Invention
The invention provides a communication detection method of electronic home equipment, a terminal and the electronic home equipment, which are used for improving the efficiency of diagnosing a communication link of intelligent home equipment.
According to a first aspect of the exemplary embodiments, a communication detection method of an electronic home device is provided, which includes:
after a terminal accesses a target network, establishing transmission connection with electronic home equipment through the target network; the target network is a network to which the electronic home equipment is currently accessed;
the terminal receives fault information sent by the electronic home equipment through the transmission connection; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault;
and the terminal carries out fault diagnosis on the communication link according to the fault information and determines the fault type of the communication link.
According to the embodiment of the invention, after the terminal and the electronic home equipment are accessed to the same target network, the terminal and the electronic home equipment can establish transmission connection through the target network; after the electronic home equipment is accessed to the target network, the electronic home equipment can be accessed to the corresponding cloud server through the target network; after a communication link between the electronic home equipment and the cloud server fails, the communication link between the electronic home equipment and the cloud server can be diagnosed through the terminal, and the fault type of the communication link which fails is determined. According to the scheme for detecting the communication of the electronic home equipment, which is provided by the embodiment of the invention, manual intervention is not needed, and the terminal can automatically diagnose the fault of the communication link between the electronic home equipment and the cloud server, so that the fault type can be quickly determined after the communication fault of the electronic home equipment occurs, and the efficiency of diagnosing the communication link of the electronic home equipment is improved.
Optionally, the performing, by the terminal, fault diagnosis on the communication link according to the fault information, and determining a fault type of the communication link that has a fault includes:
if the fault information indicates that the electronic home equipment fails to access the cloud server, the terminal performs network connectivity detection on the target network;
if the detection result of the network connectivity detection is that the connectivity is normal, the terminal requests to access the cloud server; otherwise, the terminal determines that the fault type of the communication link is abnormal;
if the terminal is successfully accessed to the cloud server, determining that the fault type of the communication link is abnormal, wherein the fault type is the network interface abnormality of a WiFi module of the electronic home equipment; otherwise, determining the fault type of the communication link as the cloud server abnormity.
The embodiment of the invention provides a specific scheme for diagnosing the fault of the communication link by the terminal, the fault type of the communication link between the electronic home equipment and the cloud server can comprise the abnormality of a target network currently accessed by the electronic home equipment, the abnormality of a network interface of a WiFi module of the electronic home equipment or the abnormality of a cloud server. The terminal of the embodiment of the invention judges whether the target network currently accessed by the electronic home equipment is abnormal or not by detecting the network connectivity of the target network, after the target network is determined not to be abnormal, the terminal requests to access the cloud server, if the terminal fails to successfully access the cloud server, the fault type is determined to be abnormal of the cloud server, if the terminal successfully accesses the cloud server, the cloud server is determined to be normal, and the fault type is determined to be abnormal of the network interface of the WiFi module of the electronic home equipment. Therefore, the terminal can accurately determine the fault type of the communication link between the electronic home equipment and the cloud server.
Optionally, the accessing, by the terminal, the target network includes:
responding to a starting instruction which is triggered by a user and used for carrying out fault diagnosis on a communication link between the electronic home equipment and the cloud server, and enabling the terminal to be accessed to the target network; the starting instruction is triggered after the user determines that the communication link is in failure;
after the terminal establishes transmission connection with the electronic home equipment through the target network, before receiving fault information sent by the electronic home equipment through the transmission connection, the method further includes:
and the terminal sends a message for acquiring fault information to the electronic home equipment through the transmission connection, so that the electronic home equipment returns the generated fault information to the terminal after receiving the message.
According to the embodiment of the invention, after the communication link between the electronic home equipment and the cloud server is in fault, the user triggers the starting instruction for fault diagnosis of the communication link, the terminal responds to the starting instruction and accesses the target network same as the electronic home equipment, so that the transmission connection between the terminal and the electronic home equipment can be established, and after the transmission connection is established, the terminal can acquire the fault information from the electronic home equipment through the transmission connection, so that the fault diagnosis of the communication link between the electronic home equipment and the cloud server is performed according to the acquired fault information.
Optionally, the establishing, by the terminal, a transmission connection with the electronic home device through the target network includes:
the terminal receives a broadcast message which is broadcasted by the electronic home equipment and contains the address information of the WiFi module;
the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the establishment confirmation message returned by the electronic home equipment, the terminal establishes the transmission connection with the electronic home equipment through the target network.
According to a second aspect of the exemplary embodiments, there is provided a communication detection method of an electronic home device, the method including:
the method comprises the steps that the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault, and fault information is generated;
the electronic home equipment sends the fault information to the terminal through the transmission connection established between the electronic home equipment and the terminal, so that the terminal carries out fault diagnosis on the communication link according to the fault information and determines the fault type of the communication link with faults;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
Optionally, before the electronic home device sends the fault information to the terminal through a transmission connection established between the electronic home device and the terminal, the method further includes:
the electronic home equipment receives a message which is sent by the terminal through the transmission connection and used for acquiring fault information;
the message is sent after the terminal receives a starting instruction for performing fault diagnosis on the communication link, wherein the starting instruction is triggered after the user determines that the communication link has a fault.
Optionally, the electronic home equipment establishes a transmission connection with the terminal according to the following manner:
the terminal receives a broadcast message which is broadcast by the electronic home equipment and contains address information of a WiFi module, so that the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the transmission connection establishment request, the electronic home equipment returns an establishment confirmation message to the terminal and establishes transmission connection with the terminal.
According to a third aspect of the exemplary embodiments, there is provided a terminal comprising a processor, a first WiFi module;
the first WiFi module is used for accessing a target network under the control of the processor and establishing transmission connection with the electronic home equipment through the target network; receiving fault information sent by the electronic home equipment through the transmission connection, and transmitting the received fault information to the processor; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault;
and the processor is used for carrying out fault diagnosis on the communication link according to the fault information after receiving the fault information transmitted by the first WiFi module, and determining the fault type of the communication link with the fault.
Optionally, the processor is specifically configured to:
if the fault information indicates that the electronic home equipment fails to access the cloud server, network connectivity detection is carried out on the target network;
if the detection result of the network connectivity detection is that the connectivity is normal, requesting to access the cloud server; otherwise, determining the fault type of the communication link as the target network abnormity;
if the communication link is successfully accessed to the cloud server, determining that the fault type of the communication link is abnormal, wherein the fault type is the network interface abnormality of a second WiFi module of the electronic home equipment; otherwise, determining the fault type of the communication link as the cloud server abnormity.
Optionally, the terminal further includes a display screen;
and the display screen is used for displaying the fault type of the communication link fault determined by the processor in a display interface.
Optionally, the processor is specifically configured to: responding to a starting instruction which is triggered by a user and used for carrying out fault diagnosis on a communication link between the electronic home equipment and the cloud server, and informing the first WiFi module to access the target network; the starting instruction is triggered after the user determines that the communication link is in failure;
the first WiFi module is further to: and sending a message for acquiring fault information to the electronic home equipment through the transmission connection, so that the electronic home equipment returns the generated fault information to the terminal after receiving the message.
Optionally, the first WiFi module is specifically configured to:
receiving a broadcast message which is broadcasted by the electronic home equipment and contains address information of a second WiFi module; sending a transmission connection establishment request to the electronic home equipment according to the received address information of the second WiFi module; and after receiving the establishment confirmation message returned by the electronic home equipment, establishing the transmission connection with the electronic home equipment through the target network.
According to a fourth aspect of the exemplary embodiments, there is provided an electronic home device, comprising a processor, a second WiFi module;
the processor is used for determining that a communication link between the processor and a cloud server is in fault, generating fault information and transmitting the generated fault information to the second WiFi module;
the second WiFi module is used for sending the fault information to the terminal through transmission connection established between the second WiFi module and the terminal, so that the terminal carries out fault diagnosis on the communication link according to the fault information and determines the fault type of the communication link with faults;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
Optionally, the second WiFi module is further configured to:
before the fault information is sent to the terminal through the transmission connection established between the terminal and the terminal, receiving a message which is sent by the terminal through the transmission connection and used for acquiring the fault information;
the message is sent after the terminal receives a starting instruction for performing fault diagnosis on the communication link, wherein the starting instruction is triggered after the user determines that the communication link has a fault.
Optionally, the second WiFi module is specifically configured to establish a transmission connection with the terminal according to the following manner:
the broadcast message containing the address information of the WiFi module is broadcasted, so that the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the transmission connection establishment request, returning an establishment confirmation message to the terminal, and establishing the transmission connection with the terminal.
According to a fifth aspect of the exemplary embodiments, there is provided a communication detection apparatus of an electronic home device, including:
the connection establishing module is used for establishing transmission connection with the electronic home equipment through a target network after the target network is accessed; the target network is a network to which the electronic home equipment is currently accessed;
the receiving module is used for receiving fault information sent by the electronic home equipment through the transmission connection; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault;
and the determining module is used for carrying out fault diagnosis on the communication link according to the fault information and determining the fault type of the communication link with the fault.
According to a sixth aspect of the exemplary embodiments, there is provided a communication detection apparatus of an electronic home device, including:
the generating module is used for determining that a communication link between the cloud server and the generating module is in fault and generating fault information;
the sending module is used for sending the fault information to the terminal through a transmission connection established between the sending module and the terminal so that the terminal can carry out fault diagnosis on the communication link according to the fault information and determine the fault type of the communication link with the fault;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
According to a seventh aspect of the exemplary embodiments, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method of the first or second aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the fourth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect or the second aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a diagram illustrating an operation topology of an intelligent washing machine according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an operation topology of interaction between an intelligent washing machine device and a terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a communication detection system of an electronic home device according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a display interface of a terminal according to an embodiment of the present invention;
FIG. 5 is an interface diagram illustrating a fault diagnosis application provided by an embodiment of the invention;
fig. 6 is a schematic diagram illustrating a display interface of an application of a smart home platform according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a display page for controlling a smart oven according to an embodiment of the present invention;
fig. 8 is a complete flowchart illustrating a communication detection method for an electronic home device according to an embodiment of the present invention;
fig. 9 is a complete flow chart illustrating another communication detection method of an electronic home device according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating that a terminal determines a failure type of a communication link failure according to an embodiment of the present invention;
fig. 11 is a block diagram illustrating an exemplary hardware configuration of a terminal according to an embodiment of the present invention;
fig. 12 is a block diagram illustrating a software structure of a terminal according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram schematically illustrating an electronic home device according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram schematically illustrating a communication detection apparatus of an electronic home device according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram illustrating a communication detection apparatus of another electronic home device according to an embodiment of the present invention;
fig. 16 is a flowchart illustrating a communication detection method of an electronic home device according to an embodiment of the present invention;
fig. 17 is a flowchart illustrating a communication detection method of another electronic home device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be described in detail and removed with reference to the accompanying drawings. In the description of the embodiments of the present invention, where "/" denotes an or meaning, for example, a/B may denote a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiment of the present invention.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features, and in the description of embodiments of the invention, "plurality" means two or more unless indicated otherwise.
1. The term "application" in embodiments of the present invention is a computer program that performs one or more specific tasks, and has a visual display interface for interacting with a user.
2. The term WiFi module in the embodiment of the invention, also named as a serial port WiFi module, belongs to an Internet of things transmission layer, and has the function of converting a serial port or TTL level into an embedded module which accords with a WiFi wireless network communication standard. The traditional hardware equipment is embedded into a WiFi module, WiFi can be directly used for accessing To the Internet, and the system is an important component for realizing application of Internet of things such as wireless smart home, Machine-To-Machine (M2M) and the like.
3. In the embodiment of the present invention, the term "SSID", i.e., Service Set Identifier (SSID), may divide a wireless local area network into several sub-networks requiring different authentication, where each sub-network requires independent authentication, and only users passing authentication may enter the corresponding sub-network, so as to prevent unauthorized users from entering the local network.
4. In the embodiment of the present invention, the term "MAC address", i.e. a Medium Access Control (MAC) address, also referred to as a local area network address, an ethernet address or a physical address, is an address used to confirm the location of a network device. The MAC address is used to uniquely identify a network card in the network, and if one or more network cards exist in a device, each network card needs to have a unique MAC address.
5. The term "flash memory" in the embodiments of the present invention refers to a flash memory (flash memory) which is a form of electrically erasable programmable read-only memory, allowing multiple erasing or writing operations.
6. In the embodiment of the present invention, the term "PING", that is, a network diagnostic tool (Packet Internet Groper, PING), is a program for testing a network connection amount, and PING is a service command working in an application layer of a TCP/IP network architecture, and mainly sends an ICMP (Internet Control Message Protocol) Echo request Message to a specific destination host to test whether a destination station can reach and know a related state thereof.
7. In the embodiments of the present invention, the term "TCP", i.e. Transmission Control Protocol (TCP), is a connection-oriented, reliable transport layer communication Protocol based on byte stream, and the TCP aims to adapt to a layered Protocol hierarchy supporting multi-network applications, and provide reliable communication services between pairs of processes in host computers connected to different but interconnected computer communication networks by means of the TCP.
The WiFi module is arranged in the electronic home equipment, the electronic home equipment can be accessed to a network through the WiFi module, and the electronic home equipment is communicated with the cloud server corresponding to the electronic home equipment through the network. For example, as shown in the working topological diagram of the intelligent washing machine device shown in fig. 1, a WiFi module is arranged in the intelligent washing machine device, the intelligent washing machine device is connected to a router through the WiFi module, and the intelligent washing machine device is connected to a cloud server through a network provided by the router; wherein, the cloud server can be the cloud control platform that intelligent washing machine equipment corresponds.
In addition, the electronic home equipment can be controlled by the terminal, in the implementation, the terminal can access the cloud server corresponding to the electronic home equipment through the network, and the terminal sends the control instruction for controlling the electronic home equipment to the electronic home equipment through the cloud server so as to control the electronic home equipment. For example, as shown in a working topological diagram of interaction between the intelligent washing machine device and the terminal in fig. 2, a WiFi module is arranged in the intelligent washing machine device, the intelligent washing machine device is connected to a router through the WiFi module, the intelligent washing machine device is connected to a cloud server through a network provided by the router, and the cloud server can be a cloud control platform corresponding to the intelligent washing machine device; the terminal is connected to the network through the router, or the terminal is connected with the cloud server through the data network, and the terminal sends a control instruction for controlling the intelligent washing machine equipment to the intelligent washing machine equipment through the cloud server, so that the intelligent washing machine equipment is controlled.
After the electronic home equipment is connected with the cloud server, a communication link between the electronic home equipment and the cloud server may break down, so that the electronic home equipment cannot be normally connected with the cloud server, and various types of faults may occur in the communication link between the intelligent home equipment and the cloud server.
The embodiment of the invention provides a communication detection system of electronic home equipment, which comprises electronic home equipment 10, a cloud server 11 and a terminal 12, as shown in fig. 3;
the electronic home devices 10 are provided with WiFi modules, the electronic home devices 10 are connected to the router 1 through the WiFi modules, the router 1 is connected with a target network, the electronic home devices 10 can be connected to the target network through the router 1, after being connected to the target network, the electronic home devices 10 establish communication links with the cloud server 11, and the electronic home devices 10 can communicate with the cloud server through the communication links;
the terminal 12 can access the router 2 through the WiFi module, the router 2 is a router connected to a target network, and the router 1 and the router 2 may be the same router or different routers; since the electronic home devices 10 and the terminals 12 access the same target network, the electronic home devices 10 and the terminals 12 may establish a transmission connection in the local area network, for example, the transmission connection may be a TCP connection.
After determining that a communication link between the electronic home equipment 10 and the cloud server is in fault, generating fault information; the electronic home equipment 10 sends the fault information to the terminal 12, and after the terminal 12 receives the fault information sent by the electronic home equipment 10 through the transmission connection, fault diagnosis is performed on the communication link according to the fault information, so that the fault type of the communication link with the fault is determined.
When the electronic home equipment can not be connected to the cloud server, the communication link between the electronic home equipment and the cloud server can be determined to be failed, and the communication link between the electronic home equipment and the cloud server comprises the following components: the system comprises a WiFi module of the electronic home equipment, a target network accessed by the electronic home equipment and a cloud server; therefore, when the terminal determines that the communication link between the electronic home device and the cloud server is in fault, the fault includes but is not limited to: the method comprises the following steps of network interface abnormity of a WiFi module of the electronic home equipment, target network abnormity and cloud server abnormity.
The following describes in detail a scheme for detecting a communication link of an electronic home device by a terminal according to an embodiment of the present invention:
after the electronic home equipment is started, recording communication fault information occurring in the running process of the electronic home equipment in real time in a preset storage space in a memory; in the operation process of the electronic home equipment, if a communication fault occurs, updating fault information in a storage space of the pre-equipment in real time;
after the electronic home equipment is started, the operation of accessing the target network is executed;
in implementation, the electronic home equipment acquires configuration information of a network accessed in the last operation process; if the configuration information of the network is successfully acquired, the electronic home equipment directly accesses a target network according to the acquired network configuration information; and if the electronic home equipment does not acquire the network configuration information, the electronic home equipment needs to be distributed with a network.
The configuration information of the network includes, but is not limited to, an SSID (service set identifier) and an access password (password) of the router;
for example, the electronic home device may read the network configuration information stored last time from the flash, and if the network configuration information stored last time is successfully read, it is determined that the electronic home device is not the network accessed last time, and the electronic home device directly accesses the network accessed last time.
The embodiment of the invention provides a scheme for distributing a network to electronic household equipment, wherein in the implementation, the network is distributed to the electronic household equipment through a terminal; the scheme for the network distribution of the electronic household equipment through the terminal is as follows:
the terminal acquires network configuration information of a target network and accesses the target network according to the network configuration information; after the electronic home equipment is started, a hotspot (softAP) of the terminal is started, the terminal is disconnected from a target network, and the hotspot of the electronic home equipment is accessed, so that the terminal is connected with the electronic home equipment; the terminal sends the network configuration information to the electronic home equipment, and the electronic home equipment accesses a target network according to the network configuration information sent by the terminal to complete the network distribution of the terminal to the electronic home equipment.
It should be noted that the above manner of distributing the network to the electronic home devices is only an example of distributing the network to the electronic home devices in the embodiment of the present invention, and other schemes may also be adopted to distribute the network to the electronic home devices in the embodiment of the present invention.
After the electronic home equipment is accessed to the target network, a communication link can be established with the cloud server, and communication can be carried out between the electronic home equipment and the cloud server through the communication link.
In addition, after the electronic home device accesses the target network, monitoring on a specific port of the WiFi module may be started, where the specific port may be a port where the electronic home device establishes TCP connection with other devices.
After the terminal accesses a target network, a transmission connection can be established between the terminal and the electronic home equipment through the target network;
the transmission connection established between the terminal and the electronic home equipment can be a TCP connection.
The time for accessing the terminal to the target network of the embodiment of the invention can be that the terminal accesses the target network after being started; or according to user operation, when determining that the communication detection needs to be carried out on the electronic home equipment, the terminal accesses to a target network; the following are described separately:
1. the terminal accesses a target network after being started;
the terminal automatically accesses a target network after being started;
the method comprises the steps that the electronic home equipment broadcasts a broadcast message containing address information of a WiFi module; after receiving the broadcast information, the terminal sends a transmission connection establishment request to the electronic home equipment according to the address information of the WiFi module contained in the broadcast information; the electronic home equipment returns a confirmation message for establishing the transmission connection to the terminal if the electronic home equipment determines to establish the transmission connection with the terminal after receiving the transmission connection establishing request; and establishing transmission connection between the terminal and the electronic home equipment.
The address information of the WiFi module may be an IP address, and the transmission connection is established with the terminal through a specific port of the WiFi module of the electronic home device.
After the transmission connection is established, in the operation process of the electronic home equipment, if the electronic home equipment determines that a communication link between the electronic home equipment and the cloud server is in fault, the generated fault information is stored in a preset storage space;
the electronic home equipment sends fault information to the terminal through transmission connection; and the terminal carries out fault diagnosis on the communication link according to the fault information and determines the fault type of the communication link.
It should be noted that the fault information sent to the terminal by the electronic home equipment may be specific description information of the fault; for example, the fault information may be failure of the electronic home device to access the cloud server. Or the fault information sent by the electronic home equipment to the terminal may be a fault identifier, and after receiving the fault identifier, the terminal may determine specific description information of the fault occurring in the communication link between the electronic home equipment and the cloud server according to the binding relationship between the fault identifier and the fault information.
In implementation, the terminal can receive fault information sent by the electronic home equipment through the installed application for communication detection, and carry out fault diagnosis on the communication link through the application for communication detection; or the terminal can also receive fault information sent by the electronic home equipment through a control application matched with the electronic home equipment, and carry out fault diagnosis on the communication link through the control application.
2. When determining that the communication detection of the electronic home equipment is required according to the user operation, accessing a terminal into a target network;
in this way, after determining that a communication link between the electronic home equipment and the cloud server is in fault, a user triggers a starting instruction for fault diagnosis of the communication link, and the terminal responds to the starting instruction and accesses a target network;
the method comprises the steps that the electronic home equipment broadcasts a broadcast message containing address information of a WiFi module; after receiving the broadcast information, the terminal sends a transmission connection establishment request to the electronic home equipment according to the address information of the WiFi module contained in the broadcast information; the electronic home equipment returns a confirmation message for establishing the transmission connection to the terminal if the electronic home equipment determines to establish the transmission connection with the terminal after receiving the transmission connection establishing request; and establishing transmission connection between the terminal and the electronic home equipment.
The address information of the WiFi module may be an IP address, and the transmission connection is established with the terminal through a specific port of the WiFi module of the electronic home device.
After the transmission connection is established, in the operation process of the electronic home equipment, if the electronic home equipment determines that a communication link between the electronic home equipment and the cloud server is in fault, the generated fault information is stored in a preset storage space;
after establishing transmission connection with the electronic home equipment, the terminal sends a message for requesting to acquire fault information to the electronic home equipment; and after receiving the message, the electronic home equipment acquires the recorded fault information from the preset storage space and returns the fault information to the terminal.
In implementation, a user can determine that a communication link between the electronic home equipment and the cloud server fails in the process of using the electronic home equipment; for example, if the display interface of the electronic home device prompts that "the server cannot be accessed", the user may determine that the communication link between the electronic home device and the cloud server is faulty.
In addition, when the user triggers a start instruction for performing failure diagnosis on the communication link, the start instruction may be triggered by an application installed for performing communication detection. For example, as shown in fig. 4, the terminal is installed with a failure diagnosis application for performing failure diagnosis on the communication link; when the user starts to operate the fault diagnosis application, the interface of the fault diagnosis application shown in fig. 5 is displayed in the terminal display interface, and the user can trigger a start instruction for performing fault diagnosis on the communication link by clicking a network diagnosis option in the interface of the fault diagnosis application.
And after receiving the fault information returned by the electronic home equipment, the terminal carries out fault diagnosis on the communication link through the application for carrying out communication detection.
Or when the user triggers a starting instruction for fault diagnosis of the communication link, the starting instruction can be triggered by the control application matched with the electronic home equipment. For example, the control application may be a smart home platform application for controlling the electronic home devices, where a display interface of the smart home platform application may be as shown in fig. 6, and include various types of electronic home devices such as an air purifier, an intelligent washing machine, an intelligent refrigerator, an intelligent oven, an intelligent cat eye, a detection alarm, and the like. Assuming that the electronic home device is an intelligent oven, when a user determines that a communication link of the intelligent oven is required to perform fault diagnosis, the user selects an intelligent oven option in an application display interface of the intelligent home platform, and enters a display page for controlling the intelligent oven, as shown in fig. 7; the user can trigger a starting instruction for performing fault diagnosis on the communication link of the intelligent oven by clicking a 'network diagnosis' option in a display page corresponding to the intelligent oven.
And after receiving the fault information returned by the electronic home equipment, the terminal carries out fault diagnosis on the communication link through the control application matched with the electronic home equipment.
It should be noted that the fault information sent to the terminal by the electronic home equipment may be specific description information of the fault; for example, the fault information may be failure of the electronic home device to access the cloud server. Or the fault information sent by the electronic home equipment to the terminal may be a fault identifier, and after receiving the fault identifier, the terminal may determine specific description information of the fault occurring in the communication link between the electronic home equipment and the cloud server according to the binding relationship between the fault identifier and the fault information.
After receiving fault information sent by electronic home equipment, a terminal carries out fault diagnosis on a communication link according to the received fault information and determines the fault type of the communication link; the following describes in detail a specific manner of determining a failure type of a communication link failure by a terminal:
after the terminal receives the fault information sent by the electronic home equipment, if the fault information indicates that the electronic home equipment fails to access the cloud server, the terminal can determine that a communication link between the electronic home equipment and the cloud server fails;
since the types of failures include, but are not limited to: the method comprises the following steps that a network interface of a WiFi module of the electronic home equipment is abnormal, a target network is abnormal, and a cloud server is abnormal;
the embodiment of the invention can judge whether the fault type is abnormal of the target network through network connectivity detection; whether the fault type is abnormal or not can be judged in a mode of requesting access to the cloud server; if the terminal determines that the fault type is not the target network abnormality and the cloud server abnormality, the fault type is determined to be the network interface abnormality of the WiFi module of the electronic home equipment.
In an optional implementation manner, the terminal performs network connectivity detection on a target network;
if the detection result of the network connectivity detection is that the connectivity is normal, the terminal requests to access the cloud server; otherwise, the terminal determines that the fault type of the communication link is abnormal;
if the terminal is successfully accessed to the cloud server, determining that the fault type of the communication link is abnormal, wherein the fault type is the network interface abnormality of a WiFi module of the electronic home equipment; otherwise, determining the fault type of the communication link as abnormal of the cloud server.
In addition, the terminal in the embodiment of the invention can also request to access the cloud server, if the terminal is successfully accessed to the cloud server, network connectivity detection is carried out on the target network, otherwise, the terminal determines that the fault type of the communication link is abnormal;
and if the detection result of the network connectivity detection indicates that the connectivity is normal, determining that the fault type of the communication link is abnormal in the network interface of the WiFi module of the electronic home equipment, otherwise, determining that the fault type of the communication link is abnormal in the target network.
In the implementation, when the terminal performs network connectivity detection on a target network, an optional mode is that when the terminal accesses the target network, the terminal adopts a Ping website mode to judge whether the accessed target network is abnormal; if the website corresponding to the website is successfully accessed, the terminal determines that the detection result of the network connectivity detection is normal, and if the website corresponding to the website cannot be accessed, the terminal determines that the detection result of the network connectivity detection is abnormal in connectivity;
for example, the terminal may determine whether the accessed target network is abnormal in a Ping commonly-used website manner.
In addition, when judging whether the cloud server is abnormal or not, the terminal accesses the cloud server through a request, and if the terminal successfully accesses the cloud server, the cloud server is determined to be normal; and if the terminal cannot access the cloud server, determining that the cloud server is abnormal.
As shown in fig. 8, a complete flowchart of a communication detection method for an electronic home device in an embodiment of the present invention includes, for example, that a communication link between the electronic home device and a cloud server fails after a transmission connection is established between a terminal and the electronic home device, and specifically includes the following steps:
step S801, the electronic home equipment acquires network configuration information and accesses a target network according to the network configuration information;
step S802, broadcasting information which is broadcasted by the electronic home equipment and contains the address information of the WiFi module;
step S803, the terminal accesses the target network according to the network configuration information;
it should be noted that, the execution sequence of step S801 and step S803 is not limited;
step S804, the terminal receives the broadcast message broadcasted by the electronic home equipment and acquires the address information of the WiFi module in the broadcast message;
step S805, the terminal sends a transmission connection establishment request to the electronic home equipment according to the address information of the WiFi module;
step S806, after confirming that the transmission connection is established with the terminal, the electronic home equipment returns an establishment confirmation message to the terminal;
it should be noted that after the terminal returns the establishment confirmation message to the terminal, the terminal establishes a transmission connection with the electronic home equipment;
step S807, after determining that a communication link between the electronic home equipment and the cloud server is in fault, generating and storing fault information by the electronic home equipment;
step S808, the electronic home equipment sends fault information to the terminal through transmission connection;
and step S809, the terminal carries out fault diagnosis on the communication link between the electronic home equipment and the cloud server according to the fault information, and determines the fault type of the communication link.
As shown in fig. 9, a complete flowchart of another method for detecting communication of an electronic home device according to an embodiment of the present invention, where a terminal access establishes a transmission connection with the electronic home device after determining that a communication link between the electronic home device and a cloud server is faulty, specifically includes the following steps:
step S901, the electronic home equipment acquires network configuration information and accesses a target network according to the network configuration information;
step S902, broadcasting information which is broadcasted by the electronic home equipment and contains the address information of the WiFi module;
step S903, after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault, fault information is generated and stored;
step S904, responding to a starting instruction which is triggered by a user and used for carrying out fault diagnosis on a communication link between the electronic home equipment and the cloud server, and accessing the terminal into a target network;
it should be noted that, in the embodiment of the present invention, if the terminal has already accessed the target network when receiving the start instruction, the terminal directly executes step S905;
step S905, the terminal receives a broadcast message broadcasted by the electronic home equipment, and acquires the address information of the WiFi module in the broadcast message;
step S906, the terminal sends a transmission connection establishment request to the electronic home equipment according to the address information of the WiFi module;
step S907, after confirming that the transmission connection is established with the terminal, the electronic home equipment returns an establishment confirmation message to the terminal;
it should be noted that after the terminal returns the establishment confirmation message to the terminal, the terminal establishes a transmission connection with the electronic home equipment;
step S908, the terminal sends a message for acquiring fault information to the electronic home equipment through transmission connection;
step S909, the electronic home equipment sends fault information to the terminal through transmission connection;
step S910, the terminal carries out fault diagnosis on a communication link between the electronic home equipment and the cloud server according to the fault information, and determines the fault type of the communication link.
As shown in fig. 10, the flowchart for determining the fault type of the communication link failure by the terminal according to the embodiment of the present invention specifically includes the following steps:
s1001, a terminal acquires fault information sent by the electronic home equipment through transmission connection;
step S1002, the terminal detects the network connectivity of a target network;
step S1003, the terminal judges whether the detection result of the network connectivity detection is normal; if yes, executing step S1004, otherwise, executing step S1005;
step S1004, the terminal requests to access a cloud server;
step S1005, the terminal determines the fault type of the communication link as the target network abnormity;
step S1006, the terminal judges whether the access to the cloud server is successful; if yes, executing step S1007, otherwise, executing step S1008;
step S1007, the terminal determines that the fault type of the communication link is abnormal, wherein the fault type is the network interface of the WiFi module of the electronic home equipment;
step S1008, the terminal determines that the fault type of the communication link is abnormal.
Based on the same inventive concept, an embodiment of the present invention provides a terminal, as shown in fig. 11, which is a schematic structural diagram of a terminal 1100.
The following describes an embodiment specifically by taking the terminal 1100 as an example. It should be understood that the terminal 1100 shown in fig. 11 is merely an example, and the terminal 1100 may have more or fewer components than those shown in fig. 11, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of a terminal 1100 according to an exemplary embodiment is exemplarily shown in fig. 11. As shown in fig. 11, the terminal 1100 includes: radio Frequency (RF) circuitry 1110, memory 1120, display unit 1130, camera 1140, sensor 1150, audio circuitry 1160, Wireless Fidelity (Wi-Fi) module 1170, processor 1180, bluetooth module 1181, and power supply 1190.
The RF circuit 1110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 1180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 1120 may be used to store software programs and data. The processor 1180 performs various functions of the terminal 1100 and data processing by executing software programs or data stored in the memory 1120. The memory 1120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The memory 1120 stores an operating system that enables the terminal 1100 to operate. The memory 1120 may store an operating system and various application programs, and may also store code for performing the methods described in the embodiments of the present application.
The display unit 1130 may be used to receive input numeric or character information, generate signal input related to user settings and function control of the terminal 1100, and particularly, the display unit 1130 may include a touch screen 1131 disposed on a front surface of the terminal 1100, and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 1130 may also be used to display information input by the user or information provided to the user and a Graphical User Interface (GUI) of various menus of the terminal 1100. Specifically, the display unit 1130 may include a display screen 1132 provided on the front surface of the terminal 1100. The display screen 1132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 1130 may be used to display various graphical user interfaces described in the present invention.
The touch screen 1131 may be covered on the display screen 1132, or the touch screen 1131 and the display screen 1132 may be integrated to implement the input and output functions of the terminal 1100, and after the integration, the touch screen may be referred to as a touch display screen for short. The display unit 1130 in the present application may display the application programs and the corresponding operation steps.
Camera 1140 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals, which are then passed to the processor 1180 for conversion into digital image signals.
The terminal 1100 can also include at least one sensor 1150, such as an acceleration sensor 1151, a distance sensor 1152, a fingerprint sensor 1153, a temperature sensor 1154. The terminal 1100 can also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, light sensors, motion sensors, and the like.
Audio circuitry 1160, speaker 1161, and microphone 1162 may provide an audio interface between a user and terminal 1100. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161. The terminal 1100 may be further provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 1162 converts collected sound signals into electrical signals, converts the electrical signals into audio data after being received by the audio circuit 1160, and outputs the audio data to the RF circuit 1110 to be transmitted to, for example, another terminal or outputs the audio data to the memory 1120 for further processing. The microphone 1162 may capture the user's voice.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 1100 can help a user to send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 1170, which provides the user with wireless broadband internet access. In the embodiment of the invention, the terminal 1100 can access the target network through the WiFi module 1170 and establish transmission connection with the electronic home equipment through the target network; receiving fault information sent by the electronic home equipment through transmission connection, and transmitting the received fault information to the processor 1180; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and the cloud server is in fault.
The processor 1180 is a control center of the terminal 1100, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal 1100 and processes data by running or executing software programs stored in the memory 1120 and calling data stored in the memory 1120. In some embodiments, processor 1180 may include one or more processing units; the processor 1180 may also integrate an application processor, which primarily handles operating systems, user interfaces, application programs, and the like, and a baseband processor, which primarily handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 1180. In the application, the processor 1180 may run an operating system, an application program, a user interface display and a touch response, and after receiving the fault information transmitted by the WiFi module 1170, the processor 1180 performs fault diagnosis on the communication link according to the fault information, and determines a fault type of the communication link where the fault occurs. Additionally, the processor 1180 is coupled to the display unit 1130.
And the bluetooth module 1181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the terminal 1100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) also equipped with a bluetooth module through the bluetooth module 1181, so as to perform data interaction.
Terminal 1100 can also include a power supply 1190 (such as a battery) that can provide power to various components. The power supply may be logically connected to the processor 1180 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption through the power management system. The terminal 1100 may also be configured with power buttons for powering the terminal on and off, and locking the screen.
Fig. 12 is a block diagram of a software configuration of a terminal 1100 according to an embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 12, the application package may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 12, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication function of the terminal 1100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the communication terminal vibrates, and an indicator light flashes.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following illustrates the workflow of the terminal 1100 software and hardware in connection with capturing a photo scene.
When the touch screen 1131 receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 1140.
The terminal 1100 in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, a notebook computer, a television, and the like.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic home device, as shown in fig. 13, the electronic home device includes a processor 1301 and a WiFi module 1302;
the processor 1301 is configured to determine that a communication link between the cloud server and the wireless communication device is faulty, generate fault information, and transmit the generated fault information to the second WiFi module;
the WiFi module 1302 is configured to send the fault information to a terminal through a transmission connection established with the terminal, so that the terminal performs fault diagnosis on the communication link according to the fault information, and determines a fault type of the communication link that has a fault;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
Optionally, the WiFi module 1302 is further configured to:
before the fault information is sent to the terminal through the transmission connection established between the terminal and the terminal, receiving a message which is sent by the terminal through the transmission connection and used for acquiring the fault information;
the message is sent after the terminal receives a starting instruction for performing fault diagnosis on the communication link, wherein the starting instruction is triggered after the user determines that the communication link has a fault.
Optionally, the WiFi module 1302 is specifically configured to establish a transmission connection with the terminal according to the following manner:
the broadcast message containing the address information of the WiFi module is broadcasted, so that the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the transmission connection establishment request, returning an establishment confirmation message to the terminal, and establishing the transmission connection with the terminal.
As shown in fig. 14, an embodiment of the present invention further provides a communication detection apparatus for electronic home devices, including:
a connection establishing module 1401, configured to establish a transmission connection with an electronic home device through a target network after accessing the target network; the target network is a network to which the electronic home equipment is currently accessed;
a receiving module 1402, configured to receive fault information sent by the electronic home device through the transmission connection; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault;
a determining module 1403, configured to perform fault diagnosis on the communication link according to the fault information, and determine a fault type of the communication link that has a fault.
Optionally, the determining module 1403 is specifically configured to:
if the fault information indicates that the electronic home equipment fails to access the cloud server, network connectivity detection is carried out on the target network;
if the detection result of the network connectivity detection is that the connectivity is normal, requesting to access the cloud server; otherwise, determining the fault type of the communication link as the target network abnormity;
if the communication link is successfully accessed to the cloud server, determining that the fault type of the communication link is abnormal, wherein the fault type is the network interface abnormality of a WiFi module of the electronic home equipment; otherwise, determining the fault type of the communication link as the cloud server abnormity.
Optionally, the connection establishing module 1401 is specifically configured to:
responding to a starting instruction which is triggered by a user and used for carrying out fault diagnosis on a communication link between the electronic home equipment and the cloud server, and accessing to the target network; the starting instruction is triggered after the user determines that the communication link is in failure;
the receiving module 1402 is further configured to: and sending a message for acquiring fault information to the electronic home equipment through the transmission connection, so that the electronic home equipment returns the generated fault information to the terminal after receiving the message.
Optionally, the connection establishing module 1401 is specifically configured to:
receiving a broadcast message which is broadcasted by the electronic home equipment and contains address information of a WiFi module;
sending a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the establishment confirmation message returned by the electronic home equipment, establishing the transmission connection with the electronic home equipment through the target network.
As shown in fig. 15, an embodiment of the present invention further provides a communication detection apparatus for electronic home devices, including:
the generating module 1501 is configured to determine that a communication link with the cloud server fails, and generate failure information;
a sending module 1502, configured to send the fault information to a terminal through a transmission connection established with the terminal, so that the terminal performs fault diagnosis on the communication link according to the fault information, and determines a fault type of the communication link that has a fault;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
Optionally, the sending module 1502 is further configured to:
receiving a message which is sent by the terminal through the transmission connection and used for acquiring fault information;
the message is sent after the terminal receives a starting instruction for performing fault diagnosis on the communication link, wherein the starting instruction is triggered after the user determines that the communication link has a fault.
Optionally, the sending module 1502 is specifically configured to establish a transmission connection with the terminal according to the following manner:
broadcasting a broadcast message containing address information of a WiFi module so that the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the transmission connection establishment request, returning an establishment confirmation message to the terminal, and establishing the transmission connection with the terminal.
Based on the same inventive concept, as shown in fig. 16, an embodiment of the present invention further provides a communication detection method for electronic home equipment, including:
step S1601, after a terminal accesses a target network, establishing transmission connection with electronic home equipment through the target network; the target network is a network to which the electronic home equipment is currently accessed;
step S1602, the terminal receives fault information sent by the electronic home equipment through the transmission connection; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault;
step S1603, the terminal performs fault diagnosis on the communication link according to the fault information, and determines a fault type of the communication link where a fault occurs.
Optionally, the performing, by the terminal, fault diagnosis on the communication link according to the fault information, and determining a fault type of the communication link that has a fault includes:
if the fault information indicates that the electronic home equipment fails to access the cloud server, the terminal performs network connectivity detection on the target network;
if the detection result of the network connectivity detection is that the connectivity is normal, the terminal requests to access the cloud server; otherwise, the terminal determines that the fault type of the communication link is abnormal;
if the terminal is successfully accessed to the cloud server, determining that the fault type of the communication link is abnormal, wherein the fault type is the network interface abnormality of a WiFi module of the electronic home equipment; otherwise, determining the fault type of the communication link as the cloud server abnormity.
Optionally, the accessing, by the terminal, the target network includes:
responding to a starting instruction which is triggered by a user and used for carrying out fault diagnosis on a communication link between the electronic home equipment and the cloud server, and enabling the terminal to be accessed to the target network; the starting instruction is triggered after the user determines that the communication link is in failure;
after the terminal establishes transmission connection with the electronic home equipment through the target network, before receiving fault information sent by the electronic home equipment through the transmission connection, the method further includes:
and the terminal sends a message for acquiring fault information to the electronic home equipment through the transmission connection, so that the electronic home equipment returns the generated fault information to the terminal after receiving the message.
Optionally, the establishing, by the terminal, a transmission connection with the electronic home device through the target network includes:
the terminal receives a broadcast message which is broadcasted by the electronic home equipment and contains the address information of the WiFi module;
the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the establishment confirmation message returned by the electronic home equipment, the terminal establishes the transmission connection with the electronic home equipment through the target network.
Based on the same inventive concept, as shown in fig. 17, an embodiment of the present invention further provides a communication detection method for electronic home equipment, including:
step 1701, the electronic home equipment determines that a communication link between the electronic home equipment and the cloud server is in fault, and fault information is generated;
step 1702, the electronic home equipment sends the fault information to the terminal through a transmission connection established between the electronic home equipment and the terminal, so that the terminal performs fault diagnosis on the communication link according to the fault information and determines a fault type of the communication link;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
Optionally, before the electronic home device sends the fault information to the terminal through a transmission connection established between the electronic home device and the terminal, the method further includes:
the electronic home equipment receives a message which is sent by the terminal through the transmission connection and used for acquiring fault information;
the message is sent after the terminal receives a starting instruction for performing fault diagnosis on the communication link, wherein the starting instruction is triggered after the user determines that the communication link has a fault.
Optionally, the electronic home equipment establishes a transmission connection with the terminal according to the following manner:
the terminal receives a broadcast message which is broadcast by the electronic home equipment and contains address information of a WiFi module, so that the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the transmission connection establishment request, the electronic home equipment returns an establishment confirmation message to the terminal and establishes transmission connection with the terminal.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A terminal comprising a processor, a first WiFi module;
the first WiFi module is used for accessing a target network under the control of the processor and establishing transmission connection with the electronic home equipment through the target network; receiving fault information sent by the electronic home equipment through the transmission connection, and transmitting the received fault information to the processor; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault;
and the processor is used for carrying out fault diagnosis on the communication link according to the fault information after receiving the fault information transmitted by the first WiFi module, and determining the fault type of the communication link with the fault.
2. The terminal of claim 1, wherein the processor is further specifically configured to:
if the fault information indicates that the electronic home equipment fails to access the cloud server, network connectivity detection is carried out on the target network;
if the detection result of the network connectivity detection is that the connectivity is normal, requesting to access the cloud server; otherwise, determining the fault type of the communication link as the target network abnormity;
if the communication link is successfully accessed to the cloud server, determining that the fault type of the communication link is abnormal, wherein the fault type is the network interface abnormality of a second WiFi module of the electronic home equipment; otherwise, determining the fault type of the communication link as the cloud server abnormity.
3. A terminal as claimed in claim 1 or 2, characterised in that the terminal further comprises a display screen;
and the display screen is used for displaying the fault type of the communication link fault determined by the processor in a display interface.
4. The terminal of claim 1, wherein the processor is further specifically configured to: responding to a starting instruction which is triggered by a user and used for carrying out fault diagnosis on a communication link between the electronic home equipment and the cloud server, and informing the first WiFi module to access the target network; the starting instruction is triggered after the user determines that the communication link is in failure;
the first WiFi module is further to: and sending a message for acquiring fault information to the electronic home equipment through the transmission connection, so that the electronic home equipment returns the generated fault information to the terminal after receiving the message.
5. The terminal of claim 1, wherein the first WiFi module is specifically configured to:
receiving a broadcast message which is broadcasted by the electronic home equipment and contains address information of a second WiFi module; sending a transmission connection establishment request to the electronic home equipment according to the received address information of the second WiFi module; and after receiving the establishment confirmation message returned by the electronic home equipment, establishing the transmission connection with the electronic home equipment through the target network.
6. The electronic home equipment is characterized by comprising a processor and a second WiFi module;
the processor is used for determining that a communication link between the processor and a cloud server is in fault, generating fault information and transmitting the generated fault information to the second WiFi module;
the second WiFi module is used for sending the fault information to the terminal through transmission connection established between the second WiFi module and the terminal, so that the terminal carries out fault diagnosis on the communication link according to the fault information and determines the fault type of the communication link with faults;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
7. The electronic home device of claim 6, wherein the second WiFi module is further to:
before the fault information is sent to the terminal through the transmission connection established between the terminal and the terminal, receiving a message which is sent by the terminal through the transmission connection and used for acquiring the fault information;
the message is sent after the terminal receives a starting instruction for performing fault diagnosis on the communication link, wherein the starting instruction is triggered after the user determines that the communication link has a fault.
8. The electronic home equipment of claim 6, wherein the second WiFi module is specifically configured to establish a transmission connection with the terminal according to the following:
the broadcast message containing the address information of the WiFi module is broadcasted, so that the terminal sends a transmission connection establishment request to the electronic home equipment according to the received address information of the WiFi module;
and after receiving the transmission connection establishment request, returning an establishment confirmation message to the terminal, and establishing the transmission connection with the terminal.
9. A communication detection method of electronic home equipment is characterized by comprising the following steps:
after a terminal accesses a target network, establishing transmission connection with electronic home equipment through the target network; the target network is a network to which the electronic home equipment is currently accessed;
the terminal receives fault information sent by the electronic home equipment through the transmission connection; the fault information is generated after the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault;
and the terminal carries out fault diagnosis on the communication link according to the fault information and determines the fault type of the communication link.
10. A communication detection method of electronic home equipment is characterized by comprising the following steps:
the method comprises the steps that the electronic home equipment determines that a communication link between the electronic home equipment and a cloud server is in fault, and fault information is generated;
the electronic home equipment sends the fault information to the terminal through the transmission connection established between the electronic home equipment and the terminal, so that the terminal carries out fault diagnosis on the communication link according to the fault information and determines the fault type of the communication link with faults;
the transmission connection is established between the electronic home equipment and the terminal through a target network, and the target network is a network accessed by the electronic home equipment and the terminal.
CN202110366764.2A 2021-04-06 2021-04-06 Communication detection method and terminal of electronic home equipment and electronic home equipment Pending CN113179198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110366764.2A CN113179198A (en) 2021-04-06 2021-04-06 Communication detection method and terminal of electronic home equipment and electronic home equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110366764.2A CN113179198A (en) 2021-04-06 2021-04-06 Communication detection method and terminal of electronic home equipment and electronic home equipment

Publications (1)

Publication Number Publication Date
CN113179198A true CN113179198A (en) 2021-07-27

Family

ID=76923077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110366764.2A Pending CN113179198A (en) 2021-04-06 2021-04-06 Communication detection method and terminal of electronic home equipment and electronic home equipment

Country Status (1)

Country Link
CN (1) CN113179198A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024462A (en) * 2012-12-11 2013-04-03 深圳市同洲电子股份有限公司 Method for network detection and digital terminal
CN104917632A (en) * 2015-04-16 2015-09-16 小米科技有限责任公司 Method for detecting networking channel states, device for detecting networking channel states and electronic equipment
CN105471678A (en) * 2015-12-09 2016-04-06 美的集团股份有限公司 Method and system for detecting networking failure reason of household appliance and mobile terminal
CN107942850A (en) * 2017-10-31 2018-04-20 青岛海尔智能技术研发有限公司 Household electrical appliances method for diagnosing faults and system
CN111465015A (en) * 2020-03-06 2020-07-28 珠海格力电器股份有限公司 Method, system, device, equipment and storage medium for intelligent household equipment network distribution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024462A (en) * 2012-12-11 2013-04-03 深圳市同洲电子股份有限公司 Method for network detection and digital terminal
CN104917632A (en) * 2015-04-16 2015-09-16 小米科技有限责任公司 Method for detecting networking channel states, device for detecting networking channel states and electronic equipment
CN105471678A (en) * 2015-12-09 2016-04-06 美的集团股份有限公司 Method and system for detecting networking failure reason of household appliance and mobile terminal
CN107942850A (en) * 2017-10-31 2018-04-20 青岛海尔智能技术研发有限公司 Household electrical appliances method for diagnosing faults and system
CN111465015A (en) * 2020-03-06 2020-07-28 珠海格力电器股份有限公司 Method, system, device, equipment and storage medium for intelligent household equipment network distribution

Similar Documents

Publication Publication Date Title
CN111818669B (en) Mobile terminal and data transmission method thereof
CN113535207B (en) Vehicle and updating method of vehicle-mounted software thereof and mobile terminal
CN113552808A (en) Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
CN114201130A (en) Screen projection method and device and storage medium
CN113391559A (en) Smart home equipment control method and terminal equipment
CN112583822B (en) Communication apparatus and communication method
CN111158735B (en) Hot patch file processing method and communication terminal
CN114666395B (en) Dual-system network sharing method and device
CN114339419B (en) Video stream pulling processing method, device and storage medium
CN113179198A (en) Communication detection method and terminal of electronic home equipment and electronic home equipment
CN116233506A (en) Display device, mobile terminal and method for adjusting resolution according to signal intensity
CN116709226A (en) Communication relay method, electronic device, communication system, and storage medium
CN114071652B (en) Binding relation establishing method and related equipment
CN114637214A (en) Control method and device of electronic home equipment and computer storage medium
CN114007202A (en) Method for establishing binding relationship and related equipment
CN114679752A (en) Method for sharing wireless communication capacity by dual systems and terminal equipment
CN115250427A (en) Bluetooth connection establishment method, mobile terminal and electronic household equipment
CN115150265B (en) Dual-system data processing method, device and apparatus
CN111159734A (en) Communication terminal and multi-application data inter-access processing method
CN114095913A (en) Network distribution method of electronic household equipment and electronic household equipment
CN112000411B (en) Mobile terminal and display method of recording channel occupation information thereof
CN114390436B (en) Equipment control method and device, storage medium and electronic equipment
CN115334604A (en) Terminal device, network control method and storage medium
CN116820641A (en) Dual-system foreground system indication method, device, terminal equipment and medium
CN118174978A (en) Control method, device and system of household electrical appliance

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210727

RJ01 Rejection of invention patent application after publication