CN118055005A - Network diagnosis method, network diagnosis device, electronic apparatus, and readable storage medium - Google Patents
Network diagnosis method, network diagnosis device, electronic apparatus, and readable storage medium Download PDFInfo
- Publication number
- CN118055005A CN118055005A CN202410224451.7A CN202410224451A CN118055005A CN 118055005 A CN118055005 A CN 118055005A CN 202410224451 A CN202410224451 A CN 202410224451A CN 118055005 A CN118055005 A CN 118055005A
- Authority
- CN
- China
- Prior art keywords
- server
- target device
- electronic device
- diagnostic
- network
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及物联网技术领域,具体而言,涉及一种网络诊断方法、网络诊断装置、电子设备和可读存储介质。The present application relates to the technical field of Internet of Things, and in particular to a network diagnosis method, a network diagnosis device, an electronic device and a readable storage medium.
背景技术Background technique
相关技术中,在智能设备与服务器断开连接之后,用户只能重新操作智能设备,与服务器重新建立连接,而无法直观的获取到智能设备与服务器断开连接的原因。In the related art, after a smart device is disconnected from a server, a user can only operate the smart device again to re-establish a connection with the server, but cannot intuitively obtain the reason why the smart device is disconnected from the server.
发明内容Summary of the invention
本申请旨在至少解决现有技术中存在的技术问题之一。The present application aims to solve at least one of the technical problems existing in the prior art.
为此,本申请的第一方面提供了一种网络诊断方法。To this end, a first aspect of the present application provides a network diagnosis method.
本申请的第二方面提供了一种网络诊断方法。A second aspect of the present application provides a network diagnosis method.
本申请的第三方面提供了一种网络诊断方法。A third aspect of the present application provides a network diagnosis method.
本申请的第四方面提供了一种网络诊断装置。A fourth aspect of the present application provides a network diagnosis device.
本申请的第五方面提供了一种网络诊断装置。A fifth aspect of the present application provides a network diagnosis device.
本申请的第六方面提供了一种网络诊断装置。A sixth aspect of the present application provides a network diagnosis device.
本申请的第七方面提供了一种电子设备。A seventh aspect of the present application provides an electronic device.
本申请的第八方面提供了一种可读存储介质。An eighth aspect of the present application provides a readable storage medium.
本申请的第九方面提供了一种计算机程序产品。A ninth aspect of the present application provides a computer program product.
本申请的第一方面提供了一种网络诊断方法,由电子设备执行,网络诊断方法包括:与服务器建立连接;其中,待诊断的目标设备与服务器相连接;在接收到服务器发送的离线提示的情况下,与目标设备建立连接;其中,电子设备通过第一连接方式与目标设备相连接,电子设备通过第二连接方式与服务器相连接,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;向目标设备发送诊断数据请求;接收目标设备发送的与诊断数据请求对应的诊断数据;根据诊断数据,确定目标设备与服务器的异常连接状态。The first aspect of the present application provides a network diagnosis method, which is performed by an electronic device, and the network diagnosis method includes: establishing a connection with a server; wherein the target device to be diagnosed is connected to the server; upon receiving an offline prompt sent by the server, establishing a connection with the target device; wherein the electronic device is connected to the target device via a first connection method, and the electronic device is connected to the server via a second connection method, and the offline prompt is generated by the server when the target device is disconnected from the server; sending a diagnostic data request to the target device; receiving diagnostic data corresponding to the diagnostic data request sent by the target device; and determining the abnormal connection state between the target device and the server based on the diagnostic data.
本申请提供的网络诊断方法,可以用于诊断目标设备与服务器之间的异常连接状态,其中,目标设备可以是家用智能设备,例如电视、智能空调器、智能冰箱等,目标设备与服务器相连接。进一步地,网络诊断方法可以由电子设备执行,电子设备通过第二连接方式连接至服务器,也就是与目标设备所连接的相同的服务器。在电子设备接收到服务器发送的离线提示的情况下,电子设备与目标设备之间建立连接。也就是,在电子设备对目标设备的异常连接状态进行诊断之前,电子设备通过第二连接方式与服务器相连接,而并未与目标设备相连接,在诊断开始后,电子设备通过第一连接方式与目标设备相连接,以实现异常连接状态的诊断。具体地,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。然后,电子设备通过第一连接方式连接至目标设备,也就是,电子设备通过不同的连接方式分别与目标设备和服务器相连接,在目标设备与服务器之间的连接发生异常时,电子设备仍然能够与目标设备相连接,以实现对目标设备与服务器之间的异常连接状态进行诊断。The network diagnosis method provided in the present application can be used to diagnose the abnormal connection state between the target device and the server, wherein the target device can be a household smart device, such as a TV, a smart air conditioner, a smart refrigerator, etc., and the target device is connected to the server. Further, the network diagnosis method can be executed by an electronic device, and the electronic device is connected to the server through a second connection method, that is, the same server connected to the target device. When the electronic device receives an offline prompt sent by the server, a connection is established between the electronic device and the target device. That is, before the electronic device diagnoses the abnormal connection state of the target device, the electronic device is connected to the server through the second connection method, but not to the target device. After the diagnosis starts, the electronic device is connected to the target device through the first connection method to achieve the diagnosis of the abnormal connection state. Specifically, when the connection between the target device and the server is disconnected, the server detects that the connection with the target device is disconnected, and an offline prompt can be generated, and then the offline prompt is sent to the electronic device. Then, the electronic device is connected to the target device through the first connection method, that is, the electronic device is connected to the target device and the server respectively through different connection methods. When the connection between the target device and the server is abnormal, the electronic device can still be connected to the target device to achieve the diagnosis of the abnormal connection state between the target device and the server.
其中,电子设备与目标设备之间的第一连接方式可以是蓝牙连接方式,电子设备与服务器之间的第二连接方式可以是SSE(Server-sent Events)长连接方式。The first connection mode between the electronic device and the target device may be a Bluetooth connection mode, and the second connection mode between the electronic device and the server may be an SSE (Server-sent Events) long connection mode.
另外,电子设备可以通过预设的应用程序来实现对目标设备与服务器之间的异常连接状态进行诊断,也就是,用户可以对电子设备中的预设应用程序进行操作,以实现对目标设备与服务器之间的异常连接状态进行查看。In addition, the electronic device can diagnose the abnormal connection status between the target device and the server through a preset application, that is, the user can operate the preset application in the electronic device to view the abnormal connection status between the target device and the server.
进一步地,在电子设备接收到服务器发送的离线提示的情况下,电子设备与目标设备之间建立连接,然后向目标设备发送诊断数据请求。可以理解的是,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。其中,用户可以通过对预设应用程序进行操作,以实现手动接收服务器所发送的离线提示,或者在第二连接方式是SSE长连接方式的情况下,可以自动接收服务器发送的离线提示。Furthermore, when the electronic device receives the offline prompt sent by the server, a connection is established between the electronic device and the target device, and then a diagnostic data request is sent to the target device. It is understandable that when the connection between the target device and the server is disconnected, the server detects that the connection with the target device is disconnected, and an offline prompt can be generated, and then the offline prompt can be sent to the electronic device. Among them, the user can manually receive the offline prompt sent by the server by operating the preset application, or when the second connection mode is the SSE long connection mode, the offline prompt sent by the server can be automatically received.
然后,在接收到离线提示的情况下,电子设备可以向目标设备发送诊断数据请求。此时,目标设备与电子设备之间通过第一连接方式相连接,从而可以保证目标设备能够接收到电子设备发送的诊断数据请求。Then, when receiving the offline prompt, the electronic device can send a diagnostic data request to the target device. At this time, the target device and the electronic device are connected via a first connection mode, thereby ensuring that the target device can receive the diagnostic data request sent by the electronic device.
进一步地,电子设备接收目标设备所发送的与诊断数据请求对应的诊断数据,此时,由于目标设备与电子设备之间通过第一连接方式相连接,因此即使目标设备与服务器断开连接,仍然能够将诊断数据发送至电子设备。Furthermore, the electronic device receives diagnostic data corresponding to the diagnostic data request sent by the target device. At this time, since the target device and the electronic device are connected via the first connection method, the diagnostic data can still be sent to the electronic device even if the target device is disconnected from the server.
最后,电子设备即可对接收到的诊断数据进行解析,以确定目标设备与服务器之间的异常连接状态。同时,用于可以通过电子设备中所安装的预设应用程序,查看目标设备与服务器之间的异常连接状态。Finally, the electronic device can parse the received diagnostic data to determine the abnormal connection status between the target device and the server. At the same time, the user can view the abnormal connection status between the target device and the server through a preset application installed in the electronic device.
本发明提供的网络诊断方法,电子设备与服务器之间通过第二连接方式相连接,在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第一连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnosis method provided by the present invention, the electronic device is connected to the server via the second connection mode, and when the target device is disconnected from the server, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device is connected to the target device via the first connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server based on the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
根据本申请的第二方面,提出了一种网络诊断方法,由目标设备执行,目标设备与服务器相连接,目标设备通过第一连接方式与电子设备相连接,电子设备通过第二连接方式与服务器相连接,网络诊断方法包括:在接收到电子设备发送的诊断数据请求的情况下,获取与服务器之间的异常连接状态;其中,诊断数据请求是电子设备在接收到服务器发送的离线提示的情况下生成的,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;根据异常连接状态,生成诊断数据;其中,诊断数据用于供电子设备进行解析,以确定目标设备与服务器之间的异常连接状态;向电子设备发送诊断数据。According to a second aspect of the present application, a network diagnostic method is proposed, which is executed by a target device, the target device is connected to a server, the target device is connected to an electronic device via a first connection method, and the electronic device is connected to the server via a second connection method, the network diagnostic method comprising: upon receiving a diagnostic data request sent by the electronic device, obtaining an abnormal connection state with the server; wherein the diagnostic data request is generated by the electronic device upon receiving an offline prompt sent by the server, and the offline prompt is generated by the server when the target device is disconnected from the server; generating diagnostic data based on the abnormal connection state; wherein the diagnostic data is used for the electronic device to parse to determine the abnormal connection state between the target device and the server; and sending the diagnostic data to the electronic device.
本发明提供的网络诊断方法,可以用于诊断目标设备与服务器之间的异常连接状态,其中,目标设备可以是家用智能设备,例如电视、智能空调器、智能冰箱等。进一步地,网络诊断方法可以由目标设备执行,目标设备通过第一连接方式与电子设备相连接,电子设备通过第二连接方式与服务器相连接。也就是,电子设备通过不同的连接方式分别与目标设备和服务器相连接,在目标设备与服务器之间的连接发生异常时,电子设备仍然能够与目标设备相连接,以实现对目标设备与服务器之间的异常连接状态进行诊断。The network diagnostic method provided by the present invention can be used to diagnose the abnormal connection state between the target device and the server, wherein the target device can be a household smart device, such as a television, a smart air conditioner, a smart refrigerator, etc. Further, the network diagnostic method can be executed by the target device, the target device is connected to the electronic device through a first connection method, and the electronic device is connected to the server through a second connection method. That is, the electronic device is connected to the target device and the server respectively through different connection methods, and when an abnormality occurs in the connection between the target device and the server, the electronic device can still be connected to the target device to diagnose the abnormal connection state between the target device and the server.
其中,电子设备与目标设备之间的第一连接方式可以是蓝牙连接方式,电子设备与服务器之间的第二连接方式可以是SSE(Server-sent Events)长连接方式。The first connection mode between the electronic device and the target device may be a Bluetooth connection mode, and the second connection mode between the electronic device and the server may be an SSE (Server-sent Events) long connection mode.
另外,电子设备可以通过预设的应用程序来实现对目标设备与服务器之间的异常连接状态进行诊断,也就是,用户可以对电子设备中的预设应用程序进行操作,以实现对目标设备与服务器之间的异常连接状态进行查看。In addition, the electronic device can diagnose the abnormal connection status between the target device and the server through a preset application, that is, the user can operate the preset application in the electronic device to view the abnormal connection status between the target device and the server.
进一步地,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。在电子设备接收到服务器发送的离线提示的情况下,向目标设备发送诊断数据请求。此时,目标设备与电子设备之间通过第一连接方式相连接,从而可以保证目标设备能够接收到电子设备发送的诊断数据请求。Furthermore, when the connection between the target device and the server is disconnected, the server detects that the connection with the target device is disconnected, generates an offline prompt, and then sends the offline prompt to the electronic device. When the electronic device receives the offline prompt sent by the server, a diagnostic data request is sent to the target device. At this time, the target device and the electronic device are connected via the first connection mode, thereby ensuring that the target device can receive the diagnostic data request sent by the electronic device.
进一步地,目标设备在接收到电子设备发送的诊断数据请求时,即可根据当前目标设备与服务器之间的异常连接状态,生成诊断数据,并将诊断数据发送至电子设备。此时,由于目标设备与电子设备之间通过第一连接方式相连接,因此即使目标设备与服务器断开连接,仍然能够将诊断数据发送至电子设备。Furthermore, when the target device receives the diagnostic data request sent by the electronic device, it can generate diagnostic data according to the abnormal connection state between the current target device and the server, and send the diagnostic data to the electronic device. At this time, since the target device and the electronic device are connected via the first connection mode, the diagnostic data can still be sent to the electronic device even if the target device is disconnected from the server.
最后,电子设备即可对接收到的诊断数据进行解析,以确定目标设备与服务器之间的异常连接状态。同时,用于可以通过电子设备中所安装的预设应用程序,查看目标设备与服务器之间的异常连接状态。Finally, the electronic device can parse the received diagnostic data to determine the abnormal connection status between the target device and the server. At the same time, the user can view the abnormal connection status between the target device and the server through a preset application installed in the electronic device.
本发明提供的网络诊断方法,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnosis method provided by the present invention, the electronic device is connected to the target device through a first connection mode, so that when the target device is disconnected from the server, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device is connected to the target device through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
根据本申请的第三方面,提出了一种网络诊断方法,由服务器执行,服务器与电子设备相连接,服务器与目标设备相连接,网络诊断方法包括:在与目标设备断开连接的情况下,获取预存的目标设备的媒体访问控制地址;根据媒体访问控制地址,生成离线提示;向电子设备发送离线提示;其中,离线提示用于提示电子设备目标设备与服务器断开连接,电子设备能够在接收到离线提示的情况下,向目标设备发送诊断数据请求,以诊断目标设备与服务器之间的异常连接状态。According to a third aspect of the present application, a network diagnostic method is proposed, which is executed by a server, the server is connected to an electronic device, and the server is connected to a target device. The network diagnostic method includes: when the connection with the target device is disconnected, obtaining a pre-stored media access control address of the target device; generating an offline prompt based on the media access control address; sending an offline prompt to the electronic device; wherein the offline prompt is used to prompt the electronic device that the target device is disconnected from the server, and the electronic device can send a diagnostic data request to the target device when receiving the offline prompt to diagnose the abnormal connection status between the target device and the server.
本申请提供的网络诊断方法,可以用于诊断目标设备与服务器之间的异常连接状态,其中,目标设备可以是家用智能设备,例如电视、智能空调器、智能冰箱等。进一步地,网络诊断方法可以由服务器执行,服务器分别与目标设备和电子设备相连接,其中,服务器与电子设备之间通过第二连接方式相连接,电子设备与目标设备之间通过第一连接方式相连接。也就是,电子设备通过不同的连接方式分别与目标设备和服务器相连接,在目标设备与服务器之间的连接发生异常时,电子设备仍然能够与目标设备相连接,以实现对目标设备与服务器之间的异常连接状态进行诊断。The network diagnostic method provided in the present application can be used to diagnose the abnormal connection state between the target device and the server, wherein the target device can be a household smart device, such as a television, a smart air conditioner, a smart refrigerator, etc. Further, the network diagnostic method can be executed by a server, and the server is connected to the target device and the electronic device respectively, wherein the server is connected to the electronic device via a second connection method, and the electronic device is connected to the target device via a first connection method. That is, the electronic device is connected to the target device and the server respectively via different connection methods, and when an abnormality occurs in the connection between the target device and the server, the electronic device can still be connected to the target device to diagnose the abnormal connection state between the target device and the server.
其中,电子设备与目标设备之间的第一连接方式可以是蓝牙连接方式,电子设备与服务器之间的第二连接方式可以是SSE(Server-sent Events)长连接方式。The first connection mode between the electronic device and the target device may be a Bluetooth connection mode, and the second connection mode between the electronic device and the server may be an SSE (Server-sent Events) long connection mode.
另外,电子设备可以通过预设的应用程序来实现对目标设备与服务器之间的异常连接状态进行诊断,也就是,用户可以对电子设备中的预设应用程序进行操作,以实现对目标设备与服务器之间的异常连接状态进行查看。In addition, the electronic device can diagnose the abnormal connection status between the target device and the server through a preset application, that is, the user can operate the preset application in the electronic device to view the abnormal connection status between the target device and the server.
进一步地,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。需要说明的是,在目标设备与服务器之间的连接断开时,首先可以获取目标设备的媒体访问控制地址(Mac地址),然后根据Mac地址,生成离线提示。Furthermore, when the connection between the target device and the server is disconnected, the server detects the disconnection with the target device and generates an offline prompt, and then sends the offline prompt to the electronic device. It should be noted that when the connection between the target device and the server is disconnected, the media access control address (Mac address) of the target device can be obtained first, and then the offline prompt is generated according to the Mac address.
在电子设备接收到服务器发送的离线提示的情况下,首先可以根据离线提示中的Mac地址,确定目标设备,进而向目标设备发送诊断数据请求。此时,目标设备与电子设备之间通过第一连接方式相连接,从而可以保证目标设备能够接收到电子设备发送的诊断数据请求。When the electronic device receives an offline prompt sent by the server, the target device can be determined based on the Mac address in the offline prompt, and then a diagnostic data request can be sent to the target device. At this time, the target device and the electronic device are connected via a first connection method, thereby ensuring that the target device can receive the diagnostic data request sent by the electronic device.
进一步地,目标设备在接收到电子设备发送的诊断数据请求时,即可根据当前目标设备与服务器之间的异常连接状态,生成诊断数据,并将诊断数据发送至电子设备。此时,由于目标设备与电子设备之间通过第一连接方式相连接,因此即使目标设备与服务器断开连接,仍然能够将诊断数据发送至电子设备。Furthermore, when the target device receives the diagnostic data request sent by the electronic device, it can generate diagnostic data according to the abnormal connection state between the current target device and the server, and send the diagnostic data to the electronic device. At this time, since the target device and the electronic device are connected via the first connection mode, the diagnostic data can still be sent to the electronic device even if the target device is disconnected from the server.
最后,电子设备即可对接收到的诊断数据进行解析,以确定目标设备与服务器之间的异常连接状态。同时,用于可以通过电子设备中所安装的预设应用程序,查看目标设备与服务器之间的异常连接状态。Finally, the electronic device can parse the received diagnostic data to determine the abnormal connection status between the target device and the server. At the same time, the user can view the abnormal connection status between the target device and the server through a preset application installed in the electronic device.
本发明提供的网络诊断方法,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnosis method provided by the present invention, the electronic device is connected to the target device through a first connection mode, so that when the target device is disconnected from the server, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device is connected to the target device through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
根据本申请的第四方面,提出了一种网络诊断装置,用于电子设备,网络诊断装置用于诊断目标设备与服务器之间的异常连接状态,网络诊断装置包括:连接单元,与服务器建立连接;其中,待诊断的目标设备与服务器相连接;连接单元还用于在接收到服务器发送的离线提示的情况下,与目标设备建立连接;其中,电子设备通过第一连接方式与目标设备相连接,电子设备通过第二连接方式与服务器相连接,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;发送单元,用于向目标设备发送诊断数据请求;接收单元,用于接收目标设备发送的与离线提示对应的诊断数据;确定单元,用于根据诊断数据,确定目标设备与服务器的异常连接状态。According to a fourth aspect of the present application, a network diagnostic device is proposed for use in an electronic device, the network diagnostic device being used to diagnose an abnormal connection state between a target device and a server, the network diagnostic device comprising: a connection unit, establishing a connection with a server; wherein the target device to be diagnosed is connected to the server; the connection unit is also used to establish a connection with the target device upon receiving an offline prompt sent by the server; wherein the electronic device is connected to the target device via a first connection method, and the electronic device is connected to the server via a second connection method, and the offline prompt is generated by the server when the target device is disconnected from the server; a sending unit, being used to send a diagnostic data request to the target device; a receiving unit, being used to receive diagnostic data corresponding to the offline prompt sent by the target device; and a determining unit, being used to determine the abnormal connection state between the target device and the server based on the diagnostic data.
本发明提供的网络诊断装置,在对目标设备与服务器之间的异常连接状态进行诊断的过程中,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnostic device provided by the present invention, in the process of diagnosing the abnormal connection state between the target device and the server, the electronic device and the target device are connected through a first connection mode, so that when the target device and the server are disconnected, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device and the target device are connected through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
根据本申请的第五方面,提出了一种网络诊断装置,用于目标设备,目标设备与服务器相连接,目标设备通过第一连接方式与电子设备相连接,电子设备通过第二连接方式与服务器相连接,网络诊断装置包括:获取单元,用于在接收到电子设备发送的诊断数据请求的情况下,获取与服务器之间的异常连接状态;其中,诊断数据请求是电子设备在接收到服务器发送的离线提示的情况下生成的,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;生成单元,用于根据异常连接状态,生成诊断数据;其中,诊断数据用于供电子设备进行解析,以确定目标设备与服务器之间的异常连接状态;发送单元,用于向电子设备发送诊断数据。According to a fifth aspect of the present application, a network diagnostic device is proposed, which is used for a target device, wherein the target device is connected to a server, the target device is connected to an electronic device via a first connection method, and the electronic device is connected to the server via a second connection method, and the network diagnostic device includes: an acquisition unit, which is used to acquire an abnormal connection state between the target device and the server when a diagnostic data request is received from the electronic device; wherein the diagnostic data request is generated by the electronic device when an offline prompt is received from the server, and the offline prompt is generated by the server when the target device is disconnected from the server; a generation unit, which is used to generate diagnostic data according to the abnormal connection state; wherein the diagnostic data is used for the electronic device to parse to determine the abnormal connection state between the target device and the server; and a sending unit, which is used to send diagnostic data to the electronic device.
本发明提供的网络诊断装置,在对目标设备与服务器之间的异常连接状态进行诊断的过程中,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnostic device provided by the present invention, in the process of diagnosing the abnormal connection state between the target device and the server, the electronic device and the target device are connected through a first connection mode, so that when the target device and the server are disconnected, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device and the target device are connected through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
根据本申请的第六方面,提出了一种网络诊断装置,用于服务器,服务器与电子设备相连接,服务器与目标设备相连接,网络诊断装置包括:获取单元,用于在与目标设备断开连接的情况下,获取预存的目标设备的媒体访问控制地址;生成单元,用于根据媒体访问控制地址,生成离线提示;发送单元,用于向电子设备发送离线提示;其中,离线提示用于提示电子设备目标设备与服务器断开连接,电子设备能够在接收到离线提示的情况下,向目标设备发送诊断数据请求,以诊断目标设备与服务器之间的异常连接状态。According to the sixth aspect of the present application, a network diagnostic device is proposed, which is used for a server, wherein the server is connected to an electronic device, and the server is connected to a target device. The network diagnostic device includes: an acquisition unit, which is used to acquire a pre-stored media access control address of the target device when the connection with the target device is disconnected; a generation unit, which is used to generate an offline prompt according to the media access control address; and a sending unit, which is used to send an offline prompt to the electronic device; wherein the offline prompt is used to prompt the electronic device that the target device is disconnected from the server, and the electronic device can send a diagnostic data request to the target device when receiving the offline prompt to diagnose the abnormal connection status between the target device and the server.
本发明提供的网络诊断装置,在对目标设备与服务器之间的异常连接状态进行诊断的过程中,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnostic device provided by the present invention, in the process of diagnosing the abnormal connection state between the target device and the server, the electronic device and the target device are connected through a first connection mode, so that when the target device and the server are disconnected, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device and the target device are connected through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
根据本申请的第七方面,提出了一种电子设备,包括:处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面、第二方面和第三方面中任一项提供的网络诊断方法的步骤。According to the seventh aspect of the present application, an electronic device is proposed, comprising: a processor and a memory, the memory storing programs or instructions that can be run on the processor, and the programs or instructions, when executed by the processor, implement the steps of the network diagnostic method provided in any one of the first aspect, the second aspect and the third aspect.
本申请提供的电子设备,包括存储器和处理器,还包括存储在存储器上的程序或指令,该程序或指令被处理器执行时,能够实现上述第一方面、第二方面和第三方面中任一项的网络诊断方法的步骤,因此该电子设备具备上述网络诊断方法的全部有益效果,在此不再赘述。The electronic device provided in the present application includes a memory and a processor, and also includes a program or instruction stored in the memory. When the program or instruction is executed by the processor, it can implement the steps of the network diagnostic method of any one of the first aspect, the second aspect and the third aspect mentioned above. Therefore, the electronic device has all the beneficial effects of the above-mentioned network diagnostic method, which will not be repeated here.
根据本申请的第八方面,提出了一种可读存储介质,其上存储有程序或指令,程序或指令被处理器执行时实现第一方面、第二方面和第三方面中任一项提供的网络诊断方法的步骤。According to the eighth aspect of the present application, a readable storage medium is proposed, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the network diagnostic method provided in any one of the first aspect, the second aspect and the third aspect are implemented.
本申请提供的可读存储介质,其上存储有程序或指令,因该程序或指令被处理器执行时,能够实现第一方面、第二方面和第三方面中任一项提供的网络诊断方法的步骤,因此该可读存储介质具备上述网络诊断方法的全部有益效果,在此不再赘述。The readable storage medium provided in the present application stores a program or instruction thereon. When the program or instruction is executed by the processor, it can implement the steps of the network diagnostic method provided in any one of the first aspect, the second aspect and the third aspect. Therefore, the readable storage medium has all the beneficial effects of the above-mentioned network diagnostic method, which will not be repeated here.
根据本申请的第九方面,提出了一种计算机程序产品,包括计算机程序或指令,计算机程序或指令被处理器执行时实现第一方面、第二方面和第三方面中任一项提供的网络诊断方法的步骤。According to the ninth aspect of the present application, a computer program product is proposed, comprising a computer program or instructions, which, when executed by a processor, implements the steps of the network diagnostic method provided in any one of the first aspect, the second aspect and the third aspect.
本申请提供的计算机程序产品,包括计算机程序或指令,因该计算机程序或指令被处理器执行时,能够实现第一方面、第二方面和第三方面中任一项提供的网络诊断方法的步骤,因此该计算机程序产品具备上述网络诊断方法的全部有益效果,在此不再赘述。The computer program product provided in the present application includes a computer program or instructions. When the computer program or instructions are executed by a processor, it can implement the steps of the network diagnostic method provided in any one of the first aspect, the second aspect and the third aspect. Therefore, the computer program product has all the beneficial effects of the above-mentioned network diagnostic method and will not be repeated here.
本申请的附加方面和优点将在下面的描述部分中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will become apparent in the following description or will be learned through practice of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本申请的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
图1示出了根据本申请实施例提供的网络诊断方法的流程示意图之一;FIG1 shows one of the flow charts of a network diagnosis method provided according to an embodiment of the present application;
图2示出了根据本申请实施例提供的网络诊断方法的流程示意图之二;FIG2 shows a second flow chart of a network diagnosis method according to an embodiment of the present application;
图3示出了根据本申请实施例提供的网络诊断方法的流程示意图之三;FIG3 shows a third flow chart of a network diagnosis method according to an embodiment of the present application;
图4示出了根据本申请实施例提供的网络诊断装置的结构框图之一;FIG4 shows one of the structural block diagrams of a network diagnosis device provided according to an embodiment of the present application;
图5示出了根据本申请实施例提供的网络诊断装置的结构框图之二;FIG5 shows a second structural block diagram of a network diagnostic device according to an embodiment of the present application;
图6示出了根据本申请实施例提供的网络诊断装置的结构框图之三;FIG6 shows a third structural block diagram of a network diagnostic device according to an embodiment of the present application;
图7示出了根据本申请实施例提供的网络诊断过程的拓扑图;FIG7 shows a topology diagram of a network diagnosis process provided according to an embodiment of the present application;
图4至图6中的附图标记与部件名称之间的对应关系为:The corresponding relationship between the reference numerals and component names in FIGS. 4 to 6 is as follows:
400网络诊断装置,402连接单元,404发送单元,406接收单元,408确定单元,500网络诊断装置,502获取单元,504生成单元,506发送单元,600网络诊断装置,602获取单元,604生成单元,606发送单元。400 network diagnostic device, 402 connection unit, 404 sending unit, 406 receiving unit, 408 determination unit, 500 network diagnostic device, 502 acquisition unit, 504 generation unit, 506 sending unit, 600 network diagnostic device, 602 acquisition unit, 604 generation unit, 606 sending unit.
具体实施方式Detailed ways
为了能够更清楚地理解本申请的上述目的、特征和优点,下面结合附图和具体实施方式对本申请进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本申请,但是,本申请还可以采用其他不同于在此描述的方式来实施,因此,本申请的保护范围并不受下面公开的具体实施例的限制。In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present application is not limited to the specific embodiments disclosed below.
下面参照图1至图7来描述根据本申请一些实施例提供的网络诊断方法、网络诊断装置、电子设备和可读存储介质。The following describes a network diagnosis method, a network diagnosis device, an electronic device, and a readable storage medium provided according to some embodiments of the present application with reference to FIGS. 1 to 7 .
如图1所示,根据本申请的一个实施例,提出了一种网络诊断方法,由电子设备执行,网络诊断方法用于诊断目标设备与服务器之间的异常连接状态,电子设备通过第一连接方式与目标设备相连接,电子设备通过第二连接方式与服务器相连接,网络诊断方法包括:As shown in FIG1 , according to an embodiment of the present application, a network diagnosis method is proposed, which is executed by an electronic device. The network diagnosis method is used to diagnose an abnormal connection state between a target device and a server. The electronic device is connected to the target device through a first connection method, and the electronic device is connected to the server through a second connection method. The network diagnosis method includes:
S102,与服务器建立连接;S102, establishing a connection with a server;
其中,待诊断的目标设备与服务器相连接;Wherein, the target device to be diagnosed is connected to the server;
S104,在接收到服务器发送的离线提示的情况下,与目标设备建立连接;S104, establishing a connection with the target device when receiving an offline prompt sent by the server;
其中,电子设备通过第一连接方式与目标设备相连接,电子设备通过第二连接方式与服务器相连接,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;The electronic device is connected to the target device through a first connection mode, and the electronic device is connected to the server through a second connection mode, and the offline prompt is generated by the server when the target device is disconnected from the server;
S106,向目标设备发送诊断数据请求;S106, sending a diagnostic data request to the target device;
S108,接收目标设备发送的与诊断数据请求对应的诊断数据;S108, receiving diagnostic data corresponding to the diagnostic data request sent by the target device;
S110,根据诊断数据,确定目标设备与服务器的异常连接状态。S110, determining an abnormal connection state between the target device and the server according to the diagnostic data.
本申请提供的网络诊断方法,可以用于诊断目标设备与服务器之间的异常连接状态,其中,目标设备可以是家用智能设备,例如电视、智能空调器、智能冰箱等,目标设备与服务器相连接。进一步地,网络诊断方法可以由电子设备执行,电子设备通过第二连接方式连接至服务器,也就是与目标设备所连接的相同的服务器。在电子设备接收到服务器发送的离线提示的情况下,电子设备与目标设备之间建立连接。也就是,在电子设备对目标设备的异常连接状态进行诊断之前,电子设备通过第二连接方式与服务器相连接,而并未与目标设备相连接,在诊断开始后,电子设备通过第一连接方式与目标设备相连接,以实现异常连接状态的诊断。具体地,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。然后,电子设备通过第一连接方式连接至目标设备,也就是,电子设备通过不同的连接方式分别与目标设备和服务器相连接,在目标设备与服务器之间的连接发生异常时,电子设备仍然能够与目标设备相连接,以实现对目标设备与服务器之间的异常连接状态进行诊断。The network diagnosis method provided in the present application can be used to diagnose the abnormal connection state between the target device and the server, wherein the target device can be a household smart device, such as a TV, a smart air conditioner, a smart refrigerator, etc., and the target device is connected to the server. Further, the network diagnosis method can be executed by an electronic device, and the electronic device is connected to the server through a second connection method, that is, the same server connected to the target device. When the electronic device receives an offline prompt sent by the server, a connection is established between the electronic device and the target device. That is, before the electronic device diagnoses the abnormal connection state of the target device, the electronic device is connected to the server through the second connection method, but not to the target device. After the diagnosis starts, the electronic device is connected to the target device through the first connection method to achieve the diagnosis of the abnormal connection state. Specifically, when the connection between the target device and the server is disconnected, the server detects that the connection with the target device is disconnected, and an offline prompt can be generated, and then the offline prompt is sent to the electronic device. Then, the electronic device is connected to the target device through the first connection method, that is, the electronic device is connected to the target device and the server respectively through different connection methods. When the connection between the target device and the server is abnormal, the electronic device can still be connected to the target device to achieve the diagnosis of the abnormal connection state between the target device and the server.
其中,电子设备与目标设备之间的第一连接方式可以是蓝牙连接方式,电子设备与服务器之间的第二连接方式可以是SSE(Server-sent Events)长连接方式。The first connection mode between the electronic device and the target device may be a Bluetooth connection mode, and the second connection mode between the electronic device and the server may be an SSE (Server-sent Events) long connection mode.
另外,电子设备可以通过预设的应用程序来实现对目标设备与服务器之间的异常连接状态进行诊断,也就是,用户可以对电子设备中的预设应用程序进行操作,以实现对目标设备与服务器之间的异常连接状态进行查看。In addition, the electronic device can diagnose the abnormal connection status between the target device and the server through a preset application, that is, the user can operate the preset application in the electronic device to view the abnormal connection status between the target device and the server.
进一步地,在电子设备接收到服务器发送的离线提示的情况下,电子设备与目标设备之间建立连接,然后向目标设备发送诊断数据请求。可以理解的是,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。其中,用户可以通过对预设应用程序进行操作,以实现手动接收服务器所发送的离线提示,具体可以通过操作电子设备的预设程序主动刷新目标设备与服务器之间的连接状态,当服务器与目标设备断开连接时,则会接收到相应地离线提示。或者在第二连接方式是SSE长连接方式的情况下,可以自动接收服务器发送的离线提示,也就是以预设的时间间隔实时接收服务器发送的目标设备与服务器之间的连接状态,当服务器与目标设备断开连接时,则会接收到相应地离线提示。Furthermore, when the electronic device receives an offline prompt sent by the server, a connection is established between the electronic device and the target device, and then a diagnostic data request is sent to the target device. It is understandable that when the connection between the target device and the server is disconnected, the server detects that the connection with the target device is disconnected, and an offline prompt can be generated, and then the offline prompt is sent to the electronic device. Among them, the user can operate the preset application to manually receive the offline prompt sent by the server. Specifically, the connection status between the target device and the server can be actively refreshed by operating the preset program of the electronic device. When the server is disconnected from the target device, the corresponding offline prompt will be received. Or when the second connection mode is the SSE long connection mode, the offline prompt sent by the server can be automatically received, that is, the connection status between the target device and the server sent by the server is received in real time at a preset time interval. When the server is disconnected from the target device, the corresponding offline prompt will be received.
然后,在接收到离线提示的情况下,电子设备可以向目标设备发送诊断数据请求。此时,目标设备与电子设备之间通过第一连接方式相连接,从而可以保证目标设备能够接收到电子设备发送的诊断数据请求。Then, when receiving the offline prompt, the electronic device can send a diagnostic data request to the target device. At this time, the target device and the electronic device are connected via a first connection mode, thereby ensuring that the target device can receive the diagnostic data request sent by the electronic device.
进一步地,电子设备接收目标设备所发送的与诊断数据请求对应的诊断数据,此时,由于目标设备与电子设备之间通过第一连接方式相连接,因此即使目标设备与服务器断开连接,仍然能够将诊断数据发送至电子设备。Furthermore, the electronic device receives diagnostic data corresponding to the diagnostic data request sent by the target device. At this time, since the target device and the electronic device are connected via the first connection method, the diagnostic data can still be sent to the electronic device even if the target device is disconnected from the server.
最后,电子设备即可对接收到的诊断数据进行解析,以确定目标设备与服务器之间的异常连接状态。同时,用于可以通过电子设备中所安装的预设应用程序,查看目标设备与服务器之间的异常连接状态。Finally, the electronic device can parse the received diagnostic data to determine the abnormal connection status between the target device and the server. At the same time, the user can view the abnormal connection status between the target device and the server through a preset application installed in the electronic device.
本发明提供的网络诊断方法,电子设备与服务器之间通过第二连接方式相连接,在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第一连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnosis method provided by the present invention, the electronic device is connected to the server via the second connection mode, and when the target device is disconnected from the server, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device is connected to the target device via the first connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server based on the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
在一些实施例中,可选地,根据诊断数据,确定目标设备与服务器的异常连接状态,包括:对诊断数据进行解析,生成诊断状态码;在预设的诊断状态码映射表中确定与诊断状态码对应的异常连接状态;其中,诊断状态码映射表用于展示诊断状态码与异常连接状态之间的映射关系。In some embodiments, optionally, based on the diagnostic data, determining the abnormal connection status between the target device and the server includes: parsing the diagnostic data to generate a diagnostic status code; determining the abnormal connection status corresponding to the diagnostic status code in a preset diagnostic status code mapping table; wherein the diagnostic status code mapping table is used to display the mapping relationship between the diagnostic status code and the abnormal connection status.
在该实施例中,电子设备在接收到目标设备所发送的诊断数据之后,首先可以对诊断数据进行解析,从而生成诊断状态码,进而根据诊断状态码,确定目标设备与服务器之间的异常连接状态。In this embodiment, after receiving the diagnostic data sent by the target device, the electronic device may first parse the diagnostic data to generate a diagnostic status code, and then determine the abnormal connection status between the target device and the server according to the diagnostic status code.
需要说明的是,电子设备中可以存储有诊断状态码映射表,从而使得电子设备在解析出诊断状态码之后,可以直接根据诊断状态码映射表,确定所解析出的诊断状态码对应的异常连接状态。其中,诊断状态码以及诊断状态码映射表均是预先根据目标设备与服务器之间的多种不同的异常连接状态所建立的,用于展示不同的诊断状态码与不同的异常连接状态之间的映射关系。It should be noted that a diagnostic status code mapping table may be stored in the electronic device, so that after parsing the diagnostic status code, the electronic device can directly determine the abnormal connection state corresponding to the parsed diagnostic status code according to the diagnostic status code mapping table. Among them, the diagnostic status code and the diagnostic status code mapping table are both established in advance according to a variety of different abnormal connection states between the target device and the server, and are used to show the mapping relationship between different diagnostic status codes and different abnormal connection states.
通过在预设的诊断状态码映射表中确定与诊断状态码对应的异常连接状态,可以有效地提高目标设备与服务器之间的异常连接状态的确定的效率。By determining the abnormal connection state corresponding to the diagnostic status code in a preset diagnostic status code mapping table, the efficiency of determining the abnormal connection state between the target device and the server can be effectively improved.
示例性地,诊断状态码映射表如表1所示,其中,诊断状态码的数量可以为多个,例如状态码1、状态码2……,不同的状态码代表目标设备与服务器之间的不同连接状态。例如,目标设备与服务器之间的连接状态可以包括:目标设备连接状态正常。电子设备的预设应用程序可直接进入设备插件页面对目标设备进行控制、路由器密码错误,电子设备的预设应用程序故障展示“请确认路由器WiFi名称或密码是否修改。若修改了WiFi名称或密码,请点击下方按钮,为设备重连”、路由信号弱,电子设备的预设应用程序故障展示“距离路由器太远,请将路由器靠近设备或增加桥接的路由器后重新诊断”、未知错误、未找到路由信息。电子设备的预设应用程序故障展示“请确认路由器WiFi名未修改,若已修改,请重新联网”、连接路由失败,电子设备的预设应用程序故障展示“请确认路由器未设置Mac地址黑名单等。确认后请重新诊断/若仍无法解决请尝试重新联网”、设备无法连接到云端。电子设备的预设应用程序故障展示“请确认网络畅通后重新诊断/若仍无法解决请尝试重新联网”。其中,状态码1至状态码7中的任意一个,可以包括一个具体地态码,也可以包括多个具体的状态码。Exemplarily, the diagnostic status code mapping table is shown in Table 1, wherein the number of diagnostic status codes may be multiple, such as status code 1, status code 2, etc., and different status codes represent different connection states between the target device and the server. For example, the connection state between the target device and the server may include: the target device connection state is normal. The preset application of the electronic device can directly enter the device plug-in page to control the target device, the router password is wrong, and the preset application of the electronic device fails to display "Please confirm whether the router WiFi name or password has been modified. If the WiFi name or password has been modified, please click the button below to reconnect the device", the routing signal is weak, and the preset application of the electronic device fails to display "Too far from the router, please move the router closer to the device or add a bridged router and re-diagnose", unknown error, no routing information found. The preset application of the electronic device fails to display "Please confirm that the router WiFi name has not been modified. If it has been modified, please reconnect to the network", the connection route fails, and the preset application of the electronic device fails to display "Please confirm that the router has not set a Mac address blacklist, etc. Please re-diagnose after confirmation/If it still cannot be solved, please try to reconnect to the network", and the device cannot connect to the cloud. The default application failure of the electronic device displays "Please confirm that the network is unobstructed and re-diagnose/if the problem still cannot be solved, please try to reconnect to the network." Among them, any one of the status codes 1 to 7 may include one specific status code or multiple specific status codes.
表1Table 1
在一些实施例中,可选地,向目标设备发送诊断数据请求,包括:接收第一输入;响应于第一输入,向目标设备发送诊断数据请求。In some embodiments, optionally, sending a diagnostic data request to a target device includes: receiving a first input; and sending a diagnostic data request to the target device in response to the first input.
在该实施例中,当电子设备接收到服务器发送的离线提示的情况下,用户可以对电子设备进行操作,从而发起目标设备的异常连接状态的诊断。具体地,用户可以对电子设备进行第一输入,电子设备响应于第一输入,即可向目标设备发送诊断数据请求,以实现对目标设备的异常连接状态进行诊断。In this embodiment, when the electronic device receives an offline prompt sent by the server, the user can operate the electronic device to initiate the diagnosis of the abnormal connection state of the target device. Specifically, the user can make a first input to the electronic device, and the electronic device can send a diagnostic data request to the target device in response to the first input to diagnose the abnormal connection state of the target device.
在一些实施例中,可选地,在接收到服务器发送的离线提示的情况下,向目标设备发送诊断数据请求之前,网络诊断方法还包括:获取离线提示中的第一媒体访问控制地址;根据第一媒体访问控制地址,确定目标设备。In some embodiments, optionally, upon receiving an offline prompt sent by the server, before sending a diagnostic data request to the target device, the network diagnosis method further includes: obtaining a first media access control address in the offline prompt; and determining the target device based on the first media access control address.
在该实施例中,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。需要说明的是,在目标设备与服务器之间的连接断开时,首先可以获取目标设备的媒体访问控制地址(Mac地址),然后根据Mac地址,生成离线提示。In this embodiment, when the connection between the target device and the server is disconnected, the server detects that the connection with the target device is disconnected, generates an offline prompt, and then sends the offline prompt to the electronic device. It should be noted that when the connection between the target device and the server is disconnected, the media access control address (Mac address) of the target device can be obtained first, and then the offline prompt is generated according to the Mac address.
相应地,在电子设备接收到服务器发送的离线提示的情况下,首先可以获取离线提示中的第一媒体访问控制地址,然后,根据所获取到的第一媒体访问控制地址确定目标设备,进而向目标设备发送诊断数据请求。Accordingly, when the electronic device receives an offline prompt sent by the server, it can first obtain the first media access control address in the offline prompt, then determine the target device based on the obtained first media access control address, and then send a diagnostic data request to the target device.
可以理解的是,通常,用户可能在家中放置有多台智能家电设备,可以通过电子设备对所有智能家电设备进行配网绑定,多台智能家电设备在连接至服务器之后,然后电子设备将每台智能家电设备的媒体访问控制地址上传至服务器,以使得服务器能够对多台智能家电设备进行识别。也就是,用户通过电子设备上的预设应用程序对多台智能家电设备进行控制时,可以直接通过预设应用程序控制多台智能家电设备与服务器建立连接,通过预设应用程序将多台智能家电设备的媒体访问控制地址上传至服务器中。在智能家电设备向服务器以及向电子设备之间进行数据传输的过程中,可以在广播数据包中添加自身的媒体访问控制地址,电子设备和服务器均可以通过约定的通信协议解析,以得到智能家电设备所发出的媒体访问控制地址,从而实现对智能家电设备进行识别。It is understandable that, usually, a user may place multiple smart home appliances at home, and all smart home appliances can be networked and bound through electronic devices. After multiple smart home appliances are connected to the server, the electronic device then uploads the media access control address of each smart home appliance to the server, so that the server can identify multiple smart home appliances. That is, when a user controls multiple smart home appliances through a preset application on an electronic device, the user can directly control multiple smart home appliances to establish a connection with the server through the preset application, and upload the media access control addresses of multiple smart home appliances to the server through the preset application. In the process of data transmission between smart home appliances to the server and between electronic devices, their own media access control addresses can be added to the broadcast data packet, and both the electronic device and the server can parse through the agreed communication protocol to obtain the media access control address issued by the smart home appliance, thereby realizing the identification of the smart home appliance.
在一些实施例中,可选地,根据诊断数据,确定目标设备与服务器的异常连接状态,包括:获取诊断数据中的第二媒体访问控制地址;在第二媒体访问控制地址与第一媒体访问控制地址相对应的情况下,根据诊断数据,确定目标设备与服务器的异常连接状态。In some embodiments, optionally, determining an abnormal connection state between the target device and the server based on diagnostic data includes: obtaining a second media access control address in the diagnostic data; and when the second media access control address corresponds to the first media access control address, determining an abnormal connection state between the target device and the server based on the diagnostic data.
在该实施例中,当电子设备接收到诊断数据时,同样可以获取诊断数据中的第二媒体访问控制地址,进而将诊断数据中的第二媒体访问控制地址与服务器所发送的离线提示中的第一媒体访问控制地址进行比较,从而确定所接收到的诊断数据是否为目标设备所发送的,进而保证能够准确地对目标设备与服务器之间的异常连接状态进行诊断。In this embodiment, when the electronic device receives diagnostic data, it can also obtain the second media access control address in the diagnostic data, and then compare the second media access control address in the diagnostic data with the first media access control address in the offline prompt sent by the server, so as to determine whether the received diagnostic data is sent by the target device, thereby ensuring that the abnormal connection status between the target device and the server can be accurately diagnosed.
在一些实施例中,可选地,根据诊断数据,确定目标设备与服务器的异常连接状态之后,网络诊断方法还包括:根据异常连接状态,生成与异常连接状态对应的处理措施;根据处理措施,指示目标设备与服务器之间建立连接。In some embodiments, optionally, after determining the abnormal connection state between the target device and the server based on the diagnostic data, the network diagnosis method further includes: generating processing measures corresponding to the abnormal connection state based on the abnormal connection state; and instructing to establish a connection between the target device and the server based on the processing measures.
在该实施例中,电子设备还可以根据所确定的异常连接状态,生成相应地处理措施,进一步根据处理措施,指示目标设备与服务器之间重新建立连接。In this embodiment, the electronic device may also generate corresponding processing measures according to the determined abnormal connection state, and further instruct the target device to re-establish a connection with the server according to the processing measures.
在一些实施例中,可选地,根据处理措施,指示目标设备与服务器之间建立连接,包括:向目标设备发送路由自检提示;其中,路由自检提示用于提示目标设备重新发起与服务器之间的连接流程。In some embodiments, optionally, instructing the target device to establish a connection with the server based on the processing measures includes: sending a route self-check prompt to the target device; wherein the route self-check prompt is used to prompt the target device to re-initiate a connection process with the server.
具体地,状态码1,则代表诊断成功,目标设备连接状态正常。电子设备的预设应用程序可直接进入设备插件页面对目标设备进行控制,无需生成处理措施。状态码为2,则代表路由器密码错误。电子设备的预设应用程序故障展示“请确认路由器WiFi名称或密码是否修改。若修改了WiFi名称或密码,请点击下方按钮,为设备重连”。处理措施为:电子设备的预设应用程序提供用户操作按钮一键重连,更新路由器的WiFi名称或密码。状态码3,则代表路由信号弱。电子设备的预设应用程序故障展示“距离路由器太远,请将路由器靠近设备或增加桥接的路由器后重新诊断”。处理措施为:电子设备的预设应用程序引导用户操作移动目标设备或路由器增强信号。状态码4,则代表未知错误。处理措施为:电子设备的预设应用程序提供用户重新联网按钮,进入设备配网流程,重新发送WiFi名称和密码,并将设备绑定到家庭账户。状态码5,则代表未找到路由信息。电子设备的预设应用程序故障展示“请确认路由器WiFi名未修改,若已修改,请重新联网”。处理措施为:电子设备的预设应用程序提供重新诊断和重新联网按钮操作。状态码6,则代表连接路由失败。电子设备的预设应用程序故障展示“请确认路由器未设置Mac地址黑名单等。确认后请重新诊断/若仍无法解决请尝试重新联网”。处理措施为:电子设备的预设应用程序提供重新诊断和重新联网按钮操作。状态码7,则代表设备无法连接到云端。电子设备的预设应用程序故障展示“请确认网络畅通后重新诊断/若仍无法解决请尝试重新联网”。处理措施为:电子设备的预设应用程序提供重新诊断和重新联网按钮操作。Specifically, status code 1 means that the diagnosis is successful and the target device connection status is normal. The preset application of the electronic device can directly enter the device plug-in page to control the target device without generating processing measures. Status code 2 means that the router password is wrong. The preset application of the electronic device fails and displays "Please confirm whether the router WiFi name or password has been modified. If the WiFi name or password has been modified, please click the button below to reconnect the device." The processing measure is: the preset application of the electronic device provides the user with an operation button to reconnect with one click and update the router's WiFi name or password. Status code 3 means that the routing signal is weak. The preset application of the electronic device fails and displays "Too far away from the router, please move the router closer to the device or add a bridged router and re-diagnose." The processing measure is: the preset application of the electronic device guides the user to operate the mobile target device or router to enhance the signal. Status code 4 means an unknown error. The processing measure is: the preset application of the electronic device provides the user with a re-networking button to enter the device network configuration process, resend the WiFi name and password, and bind the device to the family account. Status code 5 means that the routing information is not found. The default application of the electronic device displays a malfunction message "Please confirm that the router WiFi name has not been modified. If it has been modified, please reconnect to the network." The handling measures are: The default application of the electronic device provides re-diagnosis and re-networking button operations. Status code 6 means that the connection to the router has failed. The default application of the electronic device displays a malfunction message "Please confirm that the router has not set up a Mac address blacklist, etc. After confirmation, please re-diagnose/if the problem still cannot be solved, please try to reconnect to the network." The handling measures are: The default application of the electronic device provides re-diagnosis and re-networking button operations. Status code 7 means that the device cannot connect to the cloud. The default application of the electronic device displays a malfunction message "Please confirm that the network is unobstructed and re-diagnose/if the problem still cannot be solved, please try to reconnect to the network." The handling measures are: The default application of the electronic device provides re-diagnosis and re-networking button operations.
如图2所示,根据本申请的一个实施例,提出了一种网络诊断方法,由目标设备执行,目标设备与服务器相连接,目标设备通过第一连接方式与电子设备相连接,电子设备通过第二连接方式与服务器相连接,网络诊断方法包括:As shown in FIG. 2 , according to an embodiment of the present application, a network diagnosis method is proposed, which is executed by a target device, the target device is connected to a server, the target device is connected to an electronic device through a first connection method, and the electronic device is connected to the server through a second connection method. The network diagnosis method includes:
S202,在接收到电子设备发送的诊断数据请求的情况下,获取与服务器之间的异常连接状态;S202, when receiving a diagnostic data request sent by the electronic device, obtaining an abnormal connection state with the server;
其中,诊断数据请求是电子设备在接收到服务器发送的离线提示的情况下生成的,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;The diagnostic data request is generated by the electronic device when receiving an offline prompt sent by the server, and the offline prompt is generated by the server when the target device is disconnected from the server;
S204,根据异常连接状态,生成诊断数据;S204, generating diagnostic data according to the abnormal connection state;
其中,诊断数据用于供电子设备进行解析,以确定目标设备与服务器之间的异常连接状态;The diagnostic data is used for analysis by the electronic device to determine the abnormal connection status between the target device and the server;
S206,向电子设备发送诊断数据。S206: Send diagnostic data to the electronic device.
本发明提供的网络诊断方法,可以用于诊断目标设备与服务器之间的异常连接状态,其中,目标设备可以是家用智能设备,例如电视、智能空调器、智能冰箱等。进一步地,网络诊断方法可以由目标设备执行,目标设备通过第一连接方式与电子设备相连接,电子设备通过第二连接方式与服务器相连接。也就是,电子设备通过不同的连接方式分别与目标设备和服务器相连接,在目标设备与服务器之间的连接发生异常时,电子设备仍然能够与目标设备相连接,以实现对目标设备与服务器之间的异常连接状态进行诊断。The network diagnostic method provided by the present invention can be used to diagnose the abnormal connection state between the target device and the server, wherein the target device can be a household smart device, such as a television, a smart air conditioner, a smart refrigerator, etc. Further, the network diagnostic method can be executed by the target device, the target device is connected to the electronic device through a first connection method, and the electronic device is connected to the server through a second connection method. That is, the electronic device is connected to the target device and the server respectively through different connection methods, and when an abnormality occurs in the connection between the target device and the server, the electronic device can still be connected to the target device to diagnose the abnormal connection state between the target device and the server.
其中,电子设备与目标设备之间的第一连接方式可以是蓝牙连接方式,电子设备与服务器之间的第二连接方式可以是SSE(Server-sent Events)长连接方式。The first connection mode between the electronic device and the target device may be a Bluetooth connection mode, and the second connection mode between the electronic device and the server may be an SSE (Server-sent Events) long connection mode.
另外,电子设备可以通过预设的应用程序来实现对目标设备与服务器之间的异常连接状态进行诊断,也就是,用户可以对电子设备中的预设应用程序进行操作,以实现对目标设备与服务器之间的异常连接状态进行查看。In addition, the electronic device can diagnose the abnormal connection status between the target device and the server through a preset application, that is, the user can operate the preset application in the electronic device to view the abnormal connection status between the target device and the server.
进一步地,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。在电子设备接收到服务器发送的离线提示的情况下,向目标设备发送诊断数据请求。此时,目标设备与电子设备之间通过第一连接方式相连接,从而可以保证目标设备能够接收到电子设备发送的诊断数据请求。Furthermore, when the connection between the target device and the server is disconnected, the server detects that the connection with the target device is disconnected, generates an offline prompt, and then sends the offline prompt to the electronic device. When the electronic device receives the offline prompt sent by the server, a diagnostic data request is sent to the target device. At this time, the target device and the electronic device are connected via the first connection mode, thereby ensuring that the target device can receive the diagnostic data request sent by the electronic device.
进一步地,目标设备在接收到电子设备发送的诊断数据请求时,即可根据当前目标设备与服务器之间的异常连接状态,生成诊断数据,并将诊断数据发送至电子设备。此时,由于目标设备与电子设备之间通过第一连接方式相连接,因此即使目标设备与服务器断开连接,仍然能够将诊断数据发送至电子设备。Furthermore, when the target device receives the diagnostic data request sent by the electronic device, it can generate diagnostic data according to the abnormal connection state between the current target device and the server, and send the diagnostic data to the electronic device. At this time, since the target device and the electronic device are connected via the first connection mode, the diagnostic data can still be sent to the electronic device even if the target device is disconnected from the server.
最后,电子设备即可对接收到的诊断数据进行解析,以确定目标设备与服务器之间的异常连接状态。同时,用于可以通过电子设备中所安装的预设应用程序,查看目标设备与服务器之间的异常连接状态。Finally, the electronic device can parse the received diagnostic data to determine the abnormal connection status between the target device and the server. At the same time, the user can view the abnormal connection status between the target device and the server through a preset application installed in the electronic device.
本发明提供的网络诊断方法,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnosis method provided by the present invention, the electronic device is connected to the target device through a first connection mode, so that when the target device is disconnected from the server, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device is connected to the target device through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
在一些实施例中,可选地,根据异常连接状态,生成诊断数据,包括:获取目标设备的媒体访问控制地址;获取预设的诊断状态码映射表;其中,诊断状态码映射表用于展示诊断状态码与异常连接状态之间的映射关系;在诊断状态码映射表中,确定与异常连接状态对应的诊断状态码;根据媒体访问控制地址和诊断状态码,生成诊断数据。In some embodiments, optionally, diagnostic data is generated based on the abnormal connection status, including: obtaining a media access control address of the target device; obtaining a preset diagnostic status code mapping table; wherein the diagnostic status code mapping table is used to display a mapping relationship between a diagnostic status code and an abnormal connection status; in the diagnostic status code mapping table, determining a diagnostic status code corresponding to the abnormal connection status; and generating diagnostic data based on the media access control address and the diagnostic status code.
在该实施例中,在目标设备接收到电子设备所发送的诊断数据请求之后,目标设备首先可以获取诊断状态码映射表,从而可以直接根据诊断状态码映射表,确定当前与服务器之间的异常连接状态对应的诊断状态码。如表1所示。其中,诊断状态码以及诊断状态码映射表均是预先根据目标设备与服务器之间的多种不同的异常连接状态所建立的,用于展示不同的诊断状态码与不同的异常连接状态之间的映射关系。In this embodiment, after the target device receives the diagnostic data request sent by the electronic device, the target device can first obtain the diagnostic status code mapping table, so that the diagnostic status code corresponding to the current abnormal connection state between the target device and the server can be directly determined according to the diagnostic status code mapping table. As shown in Table 1. Among them, the diagnostic status code and the diagnostic status code mapping table are both established in advance according to a variety of different abnormal connection states between the target device and the server, and are used to show the mapping relationship between different diagnostic status codes and different abnormal connection states.
通过在预设的诊断状态码映射表中确定与异常连接状态对应的诊断状态码,可以有效地提高诊断状态码确定的效率,进而提高电子设备对目标设备与服务器之间的异常连接状态的确定的效率。By determining the diagnostic status code corresponding to the abnormal connection status in a preset diagnostic status code mapping table, the efficiency of determining the diagnostic status code can be effectively improved, thereby improving the efficiency of the electronic device in determining the abnormal connection status between the target device and the server.
进一步地,目标设备还可以获取自身的媒体访问控制地址,然后根据媒体访问控制地址以及诊断状态码,生成诊断数据,并将诊断数据发送至电子设备,以使得电子设备能够识别出目标设备,进而根据诊断状态码确定目标设备与服务器之间的异常连接状态。Furthermore, the target device can also obtain its own media access control address, and then generate diagnostic data based on the media access control address and the diagnostic status code, and send the diagnostic data to the electronic device so that the electronic device can identify the target device, and then determine the abnormal connection status between the target device and the server based on the diagnostic status code.
在一些实施例中,可选地,网络诊断方法还包括:在与服务器相连接的情况下,将目标设备的媒体访问控制地址上传至服务器;其中,在服务器与目标设备断开连接的情况下,服务器能够根据媒体访问控制地址生成离线提示。In some embodiments, optionally, the network diagnostic method further includes: when connected to the server, uploading the media access control address of the target device to the server; wherein, when the server is disconnected from the target device, the server can generate an offline prompt based on the media access control address.
在该实施例中,当目标设备与服务器之间正常连接时,目标设备可以将自身的媒体方位控制地址上传至服务器,从而目标设备与服务器断开连接时,使得服务器能够根据媒体访问控制地址生成离线提示。进而使得电子设备能够根据服务器所发送的离线提示中的媒体访问控制地址确定目标设备。In this embodiment, when the target device is normally connected to the server, the target device can upload its own media access control address to the server, so that when the target device is disconnected from the server, the server can generate an offline prompt according to the media access control address. Then, the electronic device can determine the target device according to the media access control address in the offline prompt sent by the server.
可以理解的是,通常,用户可能在家中放置有多台智能家电设备,多台智能家电设备在连接至服务器之后,均会将自身的媒体访问控制地址上传至服务器,以使得服务器能够对多台智能家电设备进行识别。另外,用户通过电子设备上的预设应用程序对多台智能家电设备进行控制时,可以直接通过预设应用程序控制多台智能家电设备与服务器建立连接,通过预设应用程序将多台智能家电设备的媒体访问控制地址上传至服务器中。在智能家电设备与服务器以及与电子设备之间进行数据传输的过程中,以及电子设备与智能家电设备之间进行数据传输的过程中,均可以在所传输的数据中添加智能家电设备的媒体访问控制地址,以便对所通信的智能家电设备进行识别。It is understandable that, usually, a user may place multiple smart home appliances at home. After connecting to the server, the multiple smart home appliances will upload their own media access control addresses to the server so that the server can identify the multiple smart home appliances. In addition, when a user controls multiple smart home appliances through a preset application on an electronic device, the user can directly control the multiple smart home appliances to establish a connection with the server through the preset application, and upload the media access control addresses of the multiple smart home appliances to the server through the preset application. In the process of data transmission between smart home appliances and servers and electronic devices, and in the process of data transmission between electronic devices and smart home appliances, the media access control addresses of smart home appliances can be added to the transmitted data to identify the communicating smart home appliances.
如图3所示,根据本申请的一个实施例,提出了一种网络诊断方法,由服务器执行,服务器与电子设备相连接,服务器与目标设备相连接,网络诊断方法包括:As shown in FIG3 , according to an embodiment of the present application, a network diagnosis method is proposed, which is executed by a server, the server is connected to an electronic device, and the server is connected to a target device. The network diagnosis method includes:
S302,在与目标设备断开连接的情况下,获取预存的目标设备的媒体访问控制地址;S302, when disconnecting from the target device, obtaining a pre-stored media access control address of the target device;
S304,根据媒体访问控制地址,生成离线提示;S304, generating an offline prompt according to the media access control address;
S306,向电子设备发送离线提示。S306: Send an offline prompt to the electronic device.
其中,离线提示用于提示电子设备目标设备与服务器断开连接,电子设备能够在接收到离线提示的情况下,向目标设备发送诊断数据请求,以诊断目标设备与服务器之间的异常连接状态。The offline prompt is used to prompt the electronic device that the target device is disconnected from the server. Upon receiving the offline prompt, the electronic device can send a diagnostic data request to the target device to diagnose the abnormal connection status between the target device and the server.
本申请提供的网络诊断方法,可以用于诊断目标设备与服务器之间的异常连接状态,其中,目标设备可以是家用智能设备,例如电视、智能空调器、智能冰箱等。进一步地,网络诊断方法可以由服务器执行,服务器分别与目标设备和电子设备相连接,其中,服务器与电子设备之间通过第二连接方式相连接,电子设备与目标设备之间通过第一连接方式相连接。也就是,电子设备通过不同的连接方式分别与目标设备和服务器相连接,在目标设备与服务器之间的连接发生异常时,电子设备仍然能够与目标设备相连接,以实现对目标设备与服务器之间的异常连接状态进行诊断。The network diagnostic method provided in the present application can be used to diagnose the abnormal connection state between the target device and the server, wherein the target device can be a household smart device, such as a television, a smart air conditioner, a smart refrigerator, etc. Further, the network diagnostic method can be executed by a server, and the server is connected to the target device and the electronic device respectively, wherein the server is connected to the electronic device via a second connection method, and the electronic device is connected to the target device via a first connection method. That is, the electronic device is connected to the target device and the server respectively via different connection methods, and when an abnormality occurs in the connection between the target device and the server, the electronic device can still be connected to the target device to diagnose the abnormal connection state between the target device and the server.
其中,电子设备与目标设备之间的第一连接方式可以是蓝牙连接方式,电子设备与服务器之间的第二连接方式可以是SSE(Server-sent Events)长连接方式。The first connection mode between the electronic device and the target device may be a Bluetooth connection mode, and the second connection mode between the electronic device and the server may be an SSE (Server-sent Events) long connection mode.
另外,电子设备可以通过预设的应用程序来实现对目标设备与服务器之间的异常连接状态进行诊断,也就是,用户可以对电子设备中的预设应用程序进行操作,以实现对目标设备与服务器之间的异常连接状态进行查看。In addition, the electronic device can diagnose the abnormal connection status between the target device and the server through a preset application, that is, the user can operate the preset application in the electronic device to view the abnormal connection status between the target device and the server.
进一步地,当目标设备与服务器之间的连接断开时,服务器检测到与目标设备连接断开,即可生成离线提示,然后将离线提示发送给电子设备。需要说明的是,在目标设备与服务器之间的连接断开时,首先可以获取目标设备的媒体访问控制地址(Mac地址),然后根据Mac地址,生成离线提示。Furthermore, when the connection between the target device and the server is disconnected, the server detects the disconnection with the target device and generates an offline prompt, and then sends the offline prompt to the electronic device. It should be noted that when the connection between the target device and the server is disconnected, the media access control address (Mac address) of the target device can be obtained first, and then the offline prompt is generated according to the Mac address.
在电子设备接收到服务器发送的离线提示的情况下,首先可以根据离线提示中的Mac地址,确定目标设备,进而向目标设备发送诊断数据请求。此时,目标设备与电子设备之间通过第一连接方式相连接,从而可以保证目标设备能够接收到电子设备发送的诊断数据请求。When the electronic device receives an offline prompt sent by the server, the target device can be determined based on the Mac address in the offline prompt, and then a diagnostic data request can be sent to the target device. At this time, the target device and the electronic device are connected via a first connection method, thereby ensuring that the target device can receive the diagnostic data request sent by the electronic device.
进一步地,目标设备在接收到电子设备发送的诊断数据请求时,即可根据当前目标设备与服务器之间的异常连接状态,生成诊断数据,并将诊断数据发送至电子设备。此时,由于目标设备与电子设备之间通过第一连接方式相连接,因此即使目标设备与服务器断开连接,仍然能够将诊断数据发送至电子设备。Furthermore, when the target device receives the diagnostic data request sent by the electronic device, it can generate diagnostic data according to the abnormal connection state between the current target device and the server, and send the diagnostic data to the electronic device. At this time, since the target device and the electronic device are connected via the first connection mode, the diagnostic data can still be sent to the electronic device even if the target device is disconnected from the server.
最后,电子设备即可对接收到的诊断数据进行解析,以确定目标设备与服务器之间的异常连接状态。同时,用于可以通过电子设备中所安装的预设应用程序,查看目标设备与服务器之间的异常连接状态。Finally, the electronic device can parse the received diagnostic data to determine the abnormal connection status between the target device and the server. At the same time, the user can view the abnormal connection status between the target device and the server through a preset application installed in the electronic device.
本发明提供的网络诊断方法,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnosis method provided by the present invention, the electronic device is connected to the target device through a first connection mode, so that when the target device is disconnected from the server, the electronic device can receive an offline prompt sent by the server. Furthermore, the electronic device is connected to the target device through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data to the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
在一个具体实施例中,如图7所示,电子设备通过预设应用程序(APP)控制目标设备与服务器之间建立网络连接,也就是APP给目标设备配置上网,以实现目标设备与服务器之间相连接。然后,APP通过SSE长连接方式与服务器相连接。同时,目标设备可以将自身的连接状态通过服务器同步到APP上。也就是在目标设备与服务器之间断开连接时,服务器向APP发送目标设备的连接状态。或者,APP可以主动请求目标设备的连接状态,以确定目标设备是否与服务器断开连接。In a specific embodiment, as shown in FIG7 , the electronic device controls the target device to establish a network connection with the server through a preset application (APP), that is, the APP configures the target device to access the Internet to achieve the connection between the target device and the server. Then, the APP is connected to the server through the SSE long connection method. At the same time, the target device can synchronize its own connection status to the APP through the server. That is, when the target device is disconnected from the server, the server sends the connection status of the target device to the APP. Alternatively, the APP can actively request the connection status of the target device to determine whether the target device is disconnected from the server.
进一步地,在APP接收到服务器的离线提示的情况下,确定目标设备离线,然后发起蓝牙扫描,也就是通过蓝牙的方式与目标设备相连接。目标设备通过蓝牙回复诊断数据。APP根据诊断数据中的诊断状态码对诊断结果进行匹配,确定异常连接状态,进一步根据异常连接状态生成处理措施,以指示目标设备与服务器之间重新建立连接。例如,提示目标设备与路由器自检、更新目标设备所连接的Wifi名称和密码、重新联网进入配网流程、重新绑定账号等等。Furthermore, when the APP receives an offline prompt from the server, it determines that the target device is offline, and then initiates a Bluetooth scan, that is, connects to the target device via Bluetooth. The target device replies with diagnostic data via Bluetooth. The APP matches the diagnostic results according to the diagnostic status code in the diagnostic data, determines the abnormal connection status, and further generates processing measures based on the abnormal connection status to instruct the target device to re-establish a connection with the server. For example, prompt the target device to self-check with the router, update the Wifi name and password to which the target device is connected, reconnect to the network and enter the network configuration process, rebind the account, etc.
根据本申请的第四方面,如图4所示,提出了一种网络诊断装置400,用于电子设备,网络诊断装置400包括:连接单元402,与服务器建立连接;其中,待诊断的目标设备与服务器相连接;连接单元402还用于在接收到服务器发送的离线提示的情况下,与目标设备建立连接;其中,电子设备通过第一连接方式与目标设备相连接,电子设备通过第二连接方式与服务器相连接,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;发送单元404,用于向目标设备发送诊断数据请求;接收单元406,用于接收目标设备发送的与离线提示对应的诊断数据;确定单元408,用于根据诊断数据,确定目标设备与服务器的异常连接状态。According to the fourth aspect of the present application, as shown in Figure 4, a network diagnostic device 400 is proposed, which is used for electronic equipment. The network diagnostic device 400 includes: a connecting unit 402, which establishes a connection with a server; wherein the target device to be diagnosed is connected to the server; the connecting unit 402 is also used to establish a connection with the target device when an offline prompt sent by the server is received; wherein the electronic device is connected to the target device through a first connection method, and the electronic device is connected to the server through a second connection method, and the offline prompt is generated by the server when the target device is disconnected from the server; a sending unit 404 is used to send a diagnostic data request to the target device; a receiving unit 406 is used to receive diagnostic data sent by the target device corresponding to the offline prompt; a determining unit 408 is used to determine the abnormal connection state between the target device and the server based on the diagnostic data.
本发明提供的网络诊断装置400,在对目标设备与服务器之间的异常连接状态进行诊断的过程中,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnostic device 400 provided by the present invention, in the process of diagnosing the abnormal connection state between the target device and the server, the electronic device and the target device are connected through a first connection mode, so that when the target device and the server are disconnected, the electronic device can receive an offline prompt sent by the server. Further, the electronic device and the target device are connected through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data with the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
进一步地,确定单元408具体用于:对诊断数据进行解析,生成诊断状态码;在预设的诊断状态码映射表中确定与诊断状态码对应的异常连接状态;其中,诊断状态码映射表用于展示诊断状态码与异常连接状态之间的映射关系。Furthermore, the determination unit 408 is specifically used to: parse the diagnostic data to generate a diagnostic status code; determine the abnormal connection status corresponding to the diagnostic status code in a preset diagnostic status code mapping table; wherein the diagnostic status code mapping table is used to display the mapping relationship between the diagnostic status code and the abnormal connection status.
进一步地,接收单元406还用于接收第一输入;发送单元404还用于响应于第一输入,向目标设备发送诊断数据请求。Furthermore, the receiving unit 406 is further configured to receive a first input; and the sending unit 404 is further configured to send a diagnostic data request to the target device in response to the first input.
进一步地,确定单元408还用于:获取离线提示中的第一媒体访问控制地址;根据第一媒体访问控制地址,确定目标设备。Furthermore, the determining unit 408 is further configured to: obtain a first media access control address in the offline prompt; and determine a target device according to the first media access control address.
进一步地,确定单元408具体还用于:获取诊断数据中的第二媒体访问控制地址;在第二媒体访问控制地址与第一媒体访问控制地址相对应的情况下,根据诊断数据,确定目标设备与服务器的异常连接状态。Furthermore, the determination unit 408 is specifically configured to: obtain a second media access control address in the diagnostic data; and determine an abnormal connection state between the target device and the server according to the diagnostic data when the second media access control address corresponds to the first media access control address.
进一步地,网络诊断装置400还包括生成单元,用于根据异常连接状态,生成与异常连接状态对应的处理措施;以及根据处理措施,指示目标设备与服务器之间建立连接。Furthermore, the network diagnosis apparatus 400 further includes a generating unit, which is used to generate a processing measure corresponding to the abnormal connection state according to the abnormal connection state; and to instruct the target device to establish a connection with the server according to the processing measure.
进一步地,生成还用于根据处理措施,生成路由自检提示;发送单元还用于向目标设备发送路由自检提示;其中,路由自检提示用于提示目标设备重新发起与服务器之间的连接流程。Furthermore, the generation unit is also used to generate a route self-check prompt according to the processing measures; the sending unit is also used to send the route self-check prompt to the target device; wherein the route self-check prompt is used to prompt the target device to re-initiate the connection process with the server.
根据本申请的第五方面,如图5所示,提出了一种网络诊断装置500,用于目标设备,目标设备与服务器相连接,目标设备通过第一连接方式与电子设备相连接,电子设备通过第二连接方式与服务器相连接,网络诊断装置500包括:获取单元502,用于在接收到电子设备发送的诊断数据请求的情况下,获取与服务器之间的异常连接状态;其中,诊断数据请求是电子设备在接收到服务器发送的离线提示的情况下生成的,离线提示是在目标设备与服务器断开的情况下,由服务器生成的;生成单元504,用于根据异常连接状态,生成诊断数据;其中,诊断数据用于供电子设备进行解析,以确定目标设备与服务器之间的异常连接状态;发送单元506,用于向电子设备发送诊断数据。According to the fifth aspect of the present application, as shown in FIG5 , a network diagnostic apparatus 500 is proposed, which is used for a target device, wherein the target device is connected to a server, the target device is connected to an electronic device via a first connection method, and the electronic device is connected to the server via a second connection method. The network diagnostic apparatus 500 includes: an acquisition unit 502, which is used to acquire an abnormal connection state with the server when a diagnostic data request sent by the electronic device is received; wherein the diagnostic data request is generated by the electronic device when an offline prompt is received from the server, and the offline prompt is generated by the server when the target device is disconnected from the server; a generation unit 504, which is used to generate diagnostic data according to the abnormal connection state; wherein the diagnostic data is used for the electronic device to parse to determine the abnormal connection state between the target device and the server; and a sending unit 506, which is used to send diagnostic data to the electronic device.
本发明提供的网络诊断装置500,在对目标设备与服务器之间的异常连接状态进行诊断的过程中,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnostic device 500 provided by the present invention, in the process of diagnosing the abnormal connection state between the target device and the server, the electronic device and the target device are connected through a first connection mode, so that when the target device and the server are disconnected, the electronic device can receive an offline prompt sent by the server. Further, the electronic device and the target device are connected through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data with the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
进一步地,生成单元504具体用于:获取目标设备的媒体访问控制地址;获取预设的诊断状态码映射表;其中,诊断状态码映射表用于展示诊断状态码与异常连接状态之间的映射关系;在诊断状态码映射表中,确定与异常连接状态对应的诊断状态码;根据媒体访问控制地址和诊断状态码,生成诊断数据。Furthermore, the generation unit 504 is specifically used to: obtain the media access control address of the target device; obtain a preset diagnostic status code mapping table; wherein the diagnostic status code mapping table is used to display the mapping relationship between the diagnostic status code and the abnormal connection status; in the diagnostic status code mapping table, determine the diagnostic status code corresponding to the abnormal connection status; generate diagnostic data based on the media access control address and the diagnostic status code.
进一步地,网络诊断装置500还包括上传单元,用于在与服务器相连接的情况下,将目标设备的媒体访问控制地址上传至服务器;其中,在服务器与目标设备断开连接的情况下,服务器能够根据媒体访问控制地址生成离线提示。Furthermore, the network diagnostic device 500 also includes an uploading unit for uploading the media access control address of the target device to the server when connected to the server; wherein, when the server is disconnected from the target device, the server can generate an offline prompt based on the media access control address.
根据本申请的第六方面,如图6所示,提出了一种网络诊断装置600,用于服务器,服务器与电子设备相连接,服务器与目标设备相连接,网络诊断装置600包括:获取单元602,用于在与目标设备断开连接的情况下,获取预存的目标设备的媒体访问控制地址;生成单元604,用于根据媒体访问控制地址,生成离线提示;发送单元606,用于向电子设备发送离线提示;其中,离线提示用于提示电子设备目标设备与服务器断开连接,电子设备能够在接收到离线提示的情况下,向目标设备发送诊断数据请求,以诊断目标设备与服务器之间的异常连接状态。According to the sixth aspect of the present application, as shown in FIG6 , a network diagnostic device 600 is proposed, which is used for a server, wherein the server is connected to an electronic device, and the server is connected to a target device. The network diagnostic device 600 includes: an acquisition unit 602, which is used to acquire a pre-stored media access control address of a target device when the connection with the target device is disconnected; a generation unit 604, which is used to generate an offline prompt according to the media access control address; and a sending unit 606, which is used to send an offline prompt to the electronic device; wherein the offline prompt is used to prompt the electronic device that the target device is disconnected from the server, and the electronic device can send a diagnostic data request to the target device when receiving the offline prompt to diagnose the abnormal connection status between the target device and the server.
本发明提供的网络诊断装置600,在对目标设备与服务器之间的异常连接状态进行诊断的过程中,电子设备与目标设备之间通过第一连接方式相连接,从而在目标设备与服务器之间断开连接的情况下,电子设备能够接收到服务器所发送的离线提示。进一步地,电子设备与目标设备之间通过第二连接方式相连接,从而使得电子设备在接收到离线提示的情况下,能够与目标设备之间进行诊断数据的传输,进而根据诊断数据对目标设备与服务器之间的异常连接状态进行诊断,使得用户能够通过电子设备查看到目标设备与服务器之间的异常连接状态,提高用户的体验。In the network diagnostic device 600 provided by the present invention, in the process of diagnosing the abnormal connection state between the target device and the server, the electronic device and the target device are connected through a first connection mode, so that when the target device and the server are disconnected, the electronic device can receive an offline prompt sent by the server. Further, the electronic device and the target device are connected through a second connection mode, so that when the electronic device receives the offline prompt, it can transmit diagnostic data with the target device, and then diagnose the abnormal connection state between the target device and the server according to the diagnostic data, so that the user can view the abnormal connection state between the target device and the server through the electronic device, thereby improving the user experience.
根据本申请的第七方面,提出了一种电子设备,包括:处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如上述实施例中任一项提供的网络诊断方法的步骤。According to the seventh aspect of the present application, an electronic device is proposed, comprising: a processor and a memory, the memory storing programs or instructions that can be run on the processor, and the program or instructions, when executed by the processor, implements the steps of the network diagnostic method provided in any one of the above embodiments.
本申请提供的电子设备,包括存储器和处理器,还包括存储在存储器上的程序或指令,该程序或指令被处理器执行时,能够实现上述实施例中任一项的网络诊断方法的步骤,因此该电子设备具备上述网络诊断方法的全部有益效果,在此不再赘述。The electronic device provided in the present application includes a memory and a processor, and also includes a program or instruction stored in the memory. When the program or instruction is executed by the processor, it can implement the steps of the network diagnostic method of any one of the above embodiments. Therefore, the electronic device has all the beneficial effects of the above network diagnostic method, which will not be repeated here.
根据本申请的第八方面,提出了一种可读存储介质,其上存储有程序或指令,程序或指令被处理器执行时实现上述实施例中任一项提供的网络诊断方法的步骤。According to an eighth aspect of the present application, a readable storage medium is proposed, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the network diagnostic method provided in any one of the above embodiments are implemented.
本申请提供的可读存储介质,其上存储有程序或指令,因该程序或指令被处理器执行时,能够实现上述实施例中任一项提供的网络诊断方法的步骤,因此该存储介质具备上述网络诊断方法的全部有益效果,在此不再赘述。The readable storage medium provided in the present application stores a program or instruction thereon. When the program or instruction is executed by the processor, the steps of the network diagnostic method provided in any one of the above embodiments can be implemented. Therefore, the storage medium has all the beneficial effects of the above network diagnostic method, which will not be repeated here.
在本申请的描述中,术语“多个”则指两个或两个以上,除非另有明确的限定,术语“上”、“下”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制;术语“连接”、“安装”、“固定”等均应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In the description of this application, the term "plurality" refers to two or more than two. Unless otherwise clearly defined, the terms "upper" and "lower" indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as limitations on this application. The terms "connection", "installation", "fixed", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
在本说明书的描述中,术语“一个实施例”、“一些实施例”、“具体实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或实例。而且,描述的具体特征、结构、材料或特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (17)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410224451.7A CN118055005A (en) | 2024-02-28 | 2024-02-28 | Network diagnosis method, network diagnosis device, electronic apparatus, and readable storage medium |
| PCT/CN2025/070237 WO2025180082A1 (en) | 2024-02-28 | 2025-01-02 | Network diagnosis methods, network diagnosis apparatuses, electronic device, and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410224451.7A CN118055005A (en) | 2024-02-28 | 2024-02-28 | Network diagnosis method, network diagnosis device, electronic apparatus, and readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118055005A true CN118055005A (en) | 2024-05-17 |
Family
ID=91053276
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410224451.7A Pending CN118055005A (en) | 2024-02-28 | 2024-02-28 | Network diagnosis method, network diagnosis device, electronic apparatus, and readable storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN118055005A (en) |
| WO (1) | WO2025180082A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025180082A1 (en) * | 2024-02-28 | 2025-09-04 | 广东美的制冷设备有限公司 | Network diagnosis methods, network diagnosis apparatuses, electronic device, and readable storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002217976A (en) * | 2001-01-16 | 2002-08-02 | Osaka Prefecture | Network diagnostic method, program and server |
| KR20180045620A (en) * | 2016-10-26 | 2018-05-04 | 주식회사 케이티 | System for diagnosing network using IoT terminal and method thereof |
| CN116367271A (en) * | 2021-12-27 | 2023-06-30 | 美的集团股份有限公司 | Interaction method and device, autonomous mobile device, storage medium and program product |
| CN117440340A (en) * | 2022-07-15 | 2024-01-23 | 上海集度汽车有限公司 | WIFI connection processing method and device and related equipment |
| CN118055005A (en) * | 2024-02-28 | 2024-05-17 | 广东美的制冷设备有限公司 | Network diagnosis method, network diagnosis device, electronic apparatus, and readable storage medium |
-
2024
- 2024-02-28 CN CN202410224451.7A patent/CN118055005A/en active Pending
-
2025
- 2025-01-02 WO PCT/CN2025/070237 patent/WO2025180082A1/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025180082A1 (en) * | 2024-02-28 | 2025-09-04 | 广东美的制冷设备有限公司 | Network diagnosis methods, network diagnosis apparatuses, electronic device, and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2025180082A1 (en) | 2025-09-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109150650B (en) | Method for reporting communication faults and corresponding equipment | |
| US8667339B2 (en) | Internet server apparatus and program causing a server apparatus to implement functions of preparation processing for direct connection of an appliance in a private network and a mobile terminal outside the private network | |
| JP4786081B2 (en) | Home gateway equipment | |
| US7372004B2 (en) | Method and device for recording the registration of the connection of a household appliance to a bus line configuration | |
| US20050015644A1 (en) | Network connection agents and troubleshooters | |
| US8687503B2 (en) | Technique for identifying a failed network interface card within a team of network interface cards | |
| KR20040103363A (en) | Home network system | |
| JPH08242229A (en) | State matching processing system in network monitoring | |
| CN111049741B (en) | Method for improving communication reliability, communication system and terminal equipment | |
| CN112232454B (en) | Data writing method and system, terminal, household appliance and computer device | |
| WO2025180082A1 (en) | Network diagnosis methods, network diagnosis apparatuses, electronic device, and readable storage medium | |
| CN106031091B (en) | Techniques for Assisting Remote Diagnosis of Access Gateways | |
| CN105141657A (en) | Novel network communication method suitable for intelligent household control system | |
| US7545741B1 (en) | Technique for identifying a failed network interface card within a team of network interface cards | |
| CN113595839B (en) | Device binding method, terminal device and storage medium | |
| KR100965626B1 (en) | Method of testing for wireless LAN system and test protocol | |
| CN103080913B (en) | Method and management device for discovering communication devices connected to communication network | |
| JP5038956B2 (en) | Network system | |
| US20060146804A1 (en) | Telephone system, switching system and management method of telephone system | |
| US20070280228A1 (en) | Communication system and remote diagnosis system | |
| JPWO2018229935A1 (en) | Remote control system and home appliance | |
| CN117880749A (en) | Data interaction method, device, apparatus, readable storage medium and program product | |
| TW202322645A (en) | Method for establishing point-to-point data transmission for IoT devices, computer device, and computer readable recording medium requiring no external network to perform point-to-point data transmission | |
| KR100998750B1 (en) | Diagnostic Methods and Diagnostic Protocols of WLAN Systems | |
| KR20090124925A (en) | Relay device, relay method and monitoring device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |