[go: up one dir, main page]

CN115277362A - Fault diagnosis method, apparatus, electronic device and computer readable medium - Google Patents

Fault diagnosis method, apparatus, electronic device and computer readable medium Download PDF

Info

Publication number
CN115277362A
CN115277362A CN202210788760.8A CN202210788760A CN115277362A CN 115277362 A CN115277362 A CN 115277362A CN 202210788760 A CN202210788760 A CN 202210788760A CN 115277362 A CN115277362 A CN 115277362A
Authority
CN
China
Prior art keywords
data
fault diagnosis
fault
network
intelligent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210788760.8A
Other languages
Chinese (zh)
Inventor
张加臻
孙秋翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210788760.8A priority Critical patent/CN115277362A/en
Publication of CN115277362A publication Critical patent/CN115277362A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例公开了故障诊断方法、装置、电子设备和计算机可读介质。该方法的实施例包括:获取待检测的智能设备的标识、互联网协议IP地址和端口号;基于标识,从第一系统中查询智能设备的设备数据;基于IP地址和端口号,确定智能设备的配网信息,并从第二系统中查询配网信息关联的网络数据;对设备数据和网络数据进行汇总,生成综合数据;基于综合数据,对智能设备进行故障诊断,得到故障诊断结果。该实施方式提高了故障诊断效率和故障诊断的准确性。

Figure 202210788760

The embodiments of the present application disclose a fault diagnosis method, an apparatus, an electronic device, and a computer-readable medium. An embodiment of the method includes: acquiring the identification, Internet Protocol IP address and port number of the intelligent device to be detected; based on the identification, querying the device data of the intelligent device from the first system; distribution network information, and query the network data associated with the distribution network information from the second system; summarize equipment data and network data to generate comprehensive data; based on the comprehensive data, perform fault diagnosis on intelligent equipment to obtain fault diagnosis results. This embodiment improves the efficiency of fault diagnosis and the accuracy of fault diagnosis.

Figure 202210788760

Description

故障诊断方法、装置、电子设备和计算机可读介质Fault diagnosis method, device, electronic device and computer readable medium

技术领域technical field

本申请实施例涉及计算机技术领域,具体涉及故障诊断方法、装置、电子设备和计算机可读介质。The embodiments of the present application relate to the field of computer technology, and in particular to a fault diagnosis method, device, electronic equipment, and computer-readable medium.

背景技术Background technique

随着互联网技术的发展,在家庭、商超等越来越多的场景中,可部署智能设备(例如,能够联网的摄像装置),通过将智能设备接入网络,可实现远程控制、场景联动等功能。在智能设备故障时,通常需要同时对智能设备及其所接入的网络进行故障诊断。With the development of Internet technology, smart devices (such as camera devices capable of networking) can be deployed in more and more scenarios such as homes and supermarkets. By connecting smart devices to the network, remote control and scene linkage can be realized. and other functions. When a smart device fails, it is usually necessary to perform fault diagnosis on the smart device and the network connected to it at the same time.

现有技术中,智能设备所接入的网络的网络数据通常存储于独立的系统,无法直接获取,因此通常需要维修人员上门进行智能设备及其所接入的网络的检测,通过观测故障现象,从而依据经验进行故障诊断。这种方式故障诊断流程复杂,且对维修人员的技能要求较高,存在故障诊断效率低以及准确率较低的问题。In the existing technology, the network data of the network connected to the smart device is usually stored in an independent system and cannot be directly obtained. Therefore, maintenance personnel usually need to come to the door to detect the smart device and the network connected to it. By observing the fault phenomenon, Fault diagnosis can be carried out based on experience. In this way, the fault diagnosis process is complicated, and the technical requirements for maintenance personnel are relatively high, and there are problems of low fault diagnosis efficiency and low accuracy.

发明内容Contents of the invention

本申请实施例提出了故障诊断方法、装置、电子设备和计算机可读介质,以解决现有技术中故障诊断效率低以及准确率较低的技术问题。The embodiment of the present application proposes a fault diagnosis method, device, electronic device and computer readable medium to solve the technical problems of low efficiency and low accuracy of fault diagnosis in the prior art.

第一方面,本申请实施例提供了一种故障诊断方法,该方法包括:获取待检测的智能设备的标识、互联网协议IP地址和端口号;基于所述标识,从第一系统中查询所述智能设备的设备数据;基于所述IP地址和所述端口号,确定所述智能设备的配网信息,并从第二系统中查询所述配网信息关联的网络数据;对所述设备数据和所述网络数据进行汇总,生成综合数据;基于所述综合数据,对所述智能设备进行故障诊断,得到故障诊断结果。In the first aspect, the embodiment of the present application provides a fault diagnosis method, the method includes: obtaining the identification, Internet Protocol IP address and port number of the smart device to be detected; based on the identification, querying the The device data of the smart device; based on the IP address and the port number, determine the distribution network information of the smart device, and query the network data associated with the distribution network information from the second system; Summarizing the network data to generate comprehensive data; based on the comprehensive data, performing fault diagnosis on the smart device to obtain a fault diagnosis result.

第二方面,本申请实施例提供了一种故障诊断装置,该装置包括:获取单元,用于获取待检测的智能设备的标识、互联网协议IP地址和端口号;第一查询单元,用于基于所述标识,从第一系统中查询所述智能设备的设备数据;第二查询单元,用于基于所述IP地址和所述端口号,确定所述智能设备的配网信息,并从第二系统中查询所述配网信息关联的网络数据;生成单元,用于对所述设备数据和所述网络数据进行汇总,生成综合数据;第一故障诊断单元,用于基于所述综合数据,对所述智能设备进行故障诊断,得到故障诊断结果。In a second aspect, the embodiment of the present application provides a device for fault diagnosis, which includes: an acquisition unit, configured to acquire the identification, Internet Protocol IP address, and port number of the smart device to be detected; a first query unit, configured based on The identification is to query the device data of the smart device from the first system; the second query unit is used to determine the distribution network information of the smart device based on the IP address and the port number, and obtain the information from the second querying the network data associated with the distribution network information in the system; a generation unit for summarizing the device data and the network data to generate comprehensive data; a first fault diagnosis unit for, based on the comprehensive data, The intelligent device performs fault diagnosis and obtains a fault diagnosis result.

第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述第一方面中任一所述的方法。In the third aspect, the embodiment of the present application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the one or more programs are A plurality of processors are executed, so that the one or more processors implement the method as described in any one of the above first aspects.

第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如上述第一方面中任一所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the above-mentioned first aspects is implemented.

本申请实施例提供的故障诊断方法、装置、电子设备和计算机可读介质,通过所获取的待检测的智能设备的标识,从第一系统中查询智能设备的设备数据,并通过所获取的该智能设备的IP地址和端口号,从第二系统中查询配网信息关联的网络数据,进而可对来自于不同系统的设备数据和网络数据进行汇总,得到综合数据,可使得所得到的综合数据具有全面性,可为故障诊断提供完善的数据基础。基于该综合数据对智能设备进行故障诊断,无需维修人员上门进行智能设备及其所接入的网络的检测,从而简化了故障诊断流程,提高了故障诊断效率。同时,此过程不依赖于人工经验,可消除主观因素影响,从而提高了故障诊断的准确性。The fault diagnosis method, device, electronic device, and computer-readable medium provided in the embodiments of the present application query the device data of the smart device from the first system through the acquired identification of the smart device to be detected, and through the acquired The IP address and port number of the smart device, query the network data associated with the distribution network information from the second system, and then summarize the device data and network data from different systems to obtain comprehensive data, which can make the obtained comprehensive data It is comprehensive and can provide a complete data basis for fault diagnosis. Based on the comprehensive data, the fault diagnosis of the smart device is performed without the need for maintenance personnel to come to the door to detect the smart device and the network connected to it, thereby simplifying the fault diagnosis process and improving the fault diagnosis efficiency. At the same time, this process does not depend on human experience, which can eliminate the influence of subjective factors, thereby improving the accuracy of fault diagnosis.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请的实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;

图2是本申请的故障诊断方法的一个实施例的流程图;Fig. 2 is the flowchart of an embodiment of the fault diagnosis method of the present application;

图3是本申请的故障诊断方法的一个应用场景的流程图;Fig. 3 is a flowchart of an application scenario of the fault diagnosis method of the present application;

图4是本申请的故障诊断方法的又一个实施例的流程图;Fig. 4 is the flow chart of another embodiment of the fault diagnosis method of the present application;

图5是本申请的故障诊断装置的一个实施例的结构示意图;Fig. 5 is a structural schematic diagram of an embodiment of the fault diagnosis device of the present application;

图6是用于实现本申请实施例的电子设备的计算机系统的结构示意图。FIG. 6 is a schematic structural diagram of a computer system for implementing the electronic device of the embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

需要指出的是,本申请中所有获取信号、信息或数据的动作都是在遵照所在地国家相应的数据保护法规政策的前提下,并获得由相应装置所有者给予授权的情况下进行的。It should be pointed out that all actions to obtain signals, information or data in this application are carried out under the premise of complying with the corresponding data protection laws and policies of the country where the location is located, and with the authorization given by the corresponding device owner.

图1示出了可以应用本申请的故障诊断方法或故障诊断装置的示例性系统架构图。Fig. 1 shows an exemplary system architecture diagram to which the fault diagnosis method or fault diagnosis device of the present application can be applied.

如图1所示,系统架构可以包括故障诊断设备,故障诊断设备可以分别与第一系统和第二系统进行交互,以查询、获取数据。在一些示例中,故障诊断设备可以是用于进行故障诊断的服务器。第一系统和第二系统可以分别由不同的服务器维护,故障诊断设备可通过有线通信链路、无线通信链路或者光纤电缆等,与用于维护第一系统和第二系统的服务器通信。上述各服务器可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。在此不做具体限定。As shown in FIG. 1 , the system architecture may include a fault diagnosis device, and the fault diagnosis device may respectively interact with the first system and the second system to query and acquire data. In some examples, the fault diagnosis device may be a server for fault diagnosis. The first system and the second system can be maintained by different servers respectively, and the fault diagnosis equipment can communicate with the server for maintaining the first system and the second system through a wired communication link, a wireless communication link or an optical fiber cable. Each of the above servers can be implemented as a distributed server cluster composed of multiple servers, or as a single server. No specific limitation is made here.

第一系统可用于对物联网中的智能设备的设备数据进行管理和维护,例如,可以包括但不限于以下至少一项:物联网管理系统、智能设备后台管理系统、应用后台管理系统(例如,用于控制智能设备的应用的后台管理系统)等。上述智能设备可包括但不限于摄像装置(例如,摄像头)。The first system can be used to manage and maintain the device data of smart devices in the Internet of Things, for example, may include but not limited to at least one of the following: Internet of Things management system, smart device background management system, application background management system (for example, Background management system for applications controlling smart devices), etc. The aforementioned smart device may include, but is not limited to, a camera (for example, a camera).

第二系统可用于对网络数据进行管理和维护,例如,可以包括但不限于以下至少一项:PON(Passive Optical Network,无源光纤网络)管理系统、网络资源管理系统、互联网认证系统等。The second system may be used to manage and maintain network data, for example, may include but not limited to at least one of the following: PON (Passive Optical Network, Passive Optical Network) management system, network resource management system, Internet authentication system, etc.

需要说明的是,本申请实施例所提供的故障诊断方法一般由故障诊断设备执行,相应地,故障诊断装置一般设置于故障诊断设备中。It should be noted that the fault diagnosis method provided in the embodiment of the present application is generally executed by fault diagnosis equipment, and correspondingly, the fault diagnosis device is generally set in the fault diagnosis equipment.

请参考图2,其示出了根据本申请的故障诊断方法的一个实施例的流程图。该故障诊断方法,包括以下步骤:Please refer to FIG. 2 , which shows a flowchart of an embodiment of a fault diagnosis method according to the present application. The fault diagnosis method includes the following steps:

步骤201,获取待检测的智能设备的标识、IP地址和端口号。Step 201, acquire the identification, IP address and port number of the smart device to be detected.

在本实施例中,待检测的智能设备可以包括但不限于具有联网功能的电子设备,例如,物联网环境下的摄像装置(例如,摄像头)。故障诊断方法的执行主体(例如,图1中的故障诊断设备)可以获取待检测的智能设备的标识、互联网协议IP地址和端口号。其中,智能设备的标识可以是智能设备的序列号,也可以是智能设备的MAC地址(Media AccessControl Address,媒体存取控制位址)等信息,此处不作限定。In this embodiment, the smart device to be detected may include, but is not limited to, an electronic device with a networking function, for example, a camera device (eg, a camera) in an Internet of Things environment. The executing subject of the fault diagnosis method (for example, the fault diagnosis device in FIG. 1 ) can obtain the identification, IP address and port number of the smart device to be detected. Wherein, the identifier of the smart device may be a serial number of the smart device, or may be information such as a MAC address (Media Access Control Address, Media Access Control Address) of the smart device, which is not limited herein.

实践中,上述执行主体可以接收携带智能设备的标识的故障诊断请求,通过解析该请求,得到智能设备的标识。而后,可基于智能设备后台管理系统,检测智能设备是否在线,并在智能设备在线的情况下,基于该标识,从上述能设备后台管理系统中查询智能设备的IP地址和端口号。其中,智能设备后台管理系统中可存储有智能设备的网络信息,网络信息中可包括IP地址和端口号。In practice, the execution subject may receive the fault diagnosis request carrying the ID of the smart device, and obtain the ID of the smart device by parsing the request. Then, based on the smart device background management system, it is possible to detect whether the smart device is online, and when the smart device is online, based on the identification, query the IP address and port number of the smart device from the above smart device background management system. Wherein, the network information of the smart device may be stored in the background management system of the smart device, and the network information may include an IP address and a port number.

在一些可选的实现方式中,上述步骤可以在智能设备在线的情况下进行。若IP地址和端口号获取失败,或者,若智能设备离线,则可以获取智能设备的历史日志,并基于历史日志对智能设备进行故障诊断,得到故障诊断结果。其中,历史日志可中可以包括但不限于以下至少一项:历史故障诊断结果(包括定时自动诊断结果和手动诊断结果)、历史上线记录、历史上线宽带信息、历史上线设备信息。进一步地,此时,可输出“智能设备信息查询失败,请尝试重启智能设备后再次诊断”的提示信息,并可以同时输出历史日志中的上一次故障诊断结果,以供参考。In some optional implementation manners, the above steps can be performed when the smart device is online. If the acquisition of the IP address and port number fails, or if the smart device is offline, the history log of the smart device can be obtained, and the fault diagnosis of the smart device can be performed based on the history log to obtain a fault diagnosis result. Wherein, the history log may include but not limited to at least one of the following: historical fault diagnosis results (including timing automatic diagnosis results and manual diagnosis results), historical online records, historical online broadband information, and historical online device information. Further, at this time, the prompt message "Inquiry of smart device information failed, please try to restart the smart device and then diagnose again" can be output, and the last fault diagnosis result in the history log can be output at the same time for reference.

步骤202,基于标识,从第一系统中查询智能设备的设备数据。Step 202, based on the identifier, query the device data of the smart device from the first system.

在本实施例中,上述执行主体可以基于智能设备的标识,从第一系统中查询智能设备的设备数据。其中,上述第一系统可用于对物联网中的智能设备的设备数据进行管理和维护,例如,可以包括但不限于以下至少一项:物联网管理系统、智能设备后台管理系统、目标应用(例如,用于控制智能设备的应用)的后台管理系统等。In this embodiment, the execution subject may query the device data of the smart device from the first system based on the identifier of the smart device. Among them, the above-mentioned first system can be used to manage and maintain the device data of the smart devices in the Internet of Things, for example, it can include but not limited to at least one of the following: Internet of Things management system, smart device background management system, target application (such as , background management system for applications to control smart devices, etc.

上述设备数据可包括但不限于以下至少一项:网络连接方式信息(可用于指示智能设备的连接方式,例如,有线连接、无线连接)、无线网络信号强度信息、有线连接的网线连接速率和协商次数、摄像头到网关的连接质量(例如,延时、是否丢包、是否抖动等)、设备基本信息(例如,用户账号、设备标识、设备序列号等)、绑定手机号信息、在线情况信息、上下线记录、告警信息、工单和使用情况信息等。The above device data may include but not limited to at least one of the following: network connection mode information (which can be used to indicate the connection mode of the smart device, for example, wired connection, wireless connection), wireless network signal strength information, network cable connection rate of wired connection and negotiation Number of times, connection quality from the camera to the gateway (for example, delay, packet loss, jitter, etc.), basic device information (for example, user account, device ID, device serial number, etc.), bound mobile phone number information, online status information , online and offline records, alarm information, work orders and usage information, etc.

步骤203,基于IP地址和端口号,确定智能设备的配网信息,并从第二系统中查询配网信息关联的网络数据。Step 203, based on the IP address and port number, determine the distribution network information of the smart device, and query the network data associated with the distribution network information from the second system.

在本实施例中,配网信息可以包括但不限于宽带账号。上述执行主体可以与用于管理配网信息的互联网认证系统通信连接,以IP地址和端口号作为关键字,查询智能设备的配网信息。在得到配网信息后,可从第二系统中查询配网信息关联的网络数据。其中,第二系统可以与第一系统相互独立。In this embodiment, the distribution network information may include but not limited to a broadband account. The above-mentioned executive body can communicate with the Internet authentication system for managing distribution network information, and use IP address and port number as keywords to query the distribution network information of smart devices. After obtaining the distribution network information, the network data associated with the distribution network information can be queried from the second system. Wherein, the second system may be independent of the first system.

上述网络数据可包括但不限于以下至少一项:入网基本信息(例如,宽带账号、宽带线路资源信息、宽带速率、宽带安装地址等)、光猫相关信息(例如,绑定光猫情况、运行状态情况、下挂终端数量等)、宽带质量信息(例如,宽带在线情况、上下线情况、流量信息、线路光衰等)、上联PON设备信息(例如,PON口误码、光线路终端中继流量情况等)。The above-mentioned network data may include but not limited to at least one of the following: basic network access information (for example, broadband account number, broadband line resource information, broadband speed, broadband installation address, etc.), optical modem related information (for example, binding optical modem status, running Status, number of connected terminals, etc.), broadband quality information (for example, broadband online status, online and offline status, traffic information, line optical attenuation, etc.), uplink PON equipment information (for example, PON port error code, optical line terminal relay traffic conditions, etc.).

步骤204,对设备数据和网络数据进行汇总,生成综合数据。Step 204, summarizing the device data and network data to generate comprehensive data.

在本实施例中,上述执行主体可以将设备数据和网络数据进行汇总。例如,可将设备数据中的每项数据和网络数据中的每项数据进行格式转换,得到目标格式(例如,键值对格式)的数据。而后,将所得到的数据以列表、集合等形式进行汇总,生成综合数据。In this embodiment, the above execution subject may summarize the device data and network data. For example, each item of data in the device data and each item of data in the network data may be format-converted to obtain data in a target format (for example, a key-value pair format). Then, the obtained data is summarized in the form of a list, a set, etc., to generate comprehensive data.

在一些可选的实现方式中,上述执行主体可以首先基于智能设备的标识,查询目标数据库中的目标数据表。需要说明的是,若不存在目标数据表,则可以基于以该标识作为表名,创建目标数据表。在查询到目标数据表后,可以将设备数据中的每条数据和网络数据中的每条数据作为记录,添加至目标数据表,得到综合数据。需要说明的是,若目标数据表中已存储有数据,可以基于综合数据,对目标数据表中的数据进行更新。In some optional implementation manners, the execution subject may first query the target data table in the target database based on the identification of the smart device. It should be noted that, if the target data table does not exist, the target data table can be created based on the identifier as the table name. After the target data table is queried, each piece of data in the device data and each piece of data in the network data can be used as a record and added to the target data table to obtain comprehensive data. It should be noted that, if data is already stored in the target data table, the data in the target data table may be updated based on the integrated data.

步骤205,基于综合数据,对智能设备进行故障诊断,得到故障诊断结果。Step 205, based on the comprehensive data, perform fault diagnosis on the smart device, and obtain a fault diagnosis result.

在本实施例中,上述执行主体可以通过对综合数据进行分析,来实现对智能设备的故障诊断,得到故障诊断结果。例如,可以通过机器学习方法(例如,有监督学习方法)预先训练故障诊断模型,将综合数据输入至该模型,得到故障诊断结果。再例如,可以预先设置用于表征数据与故障诊断结果的对应关系的对应关系表,通过查表的方式得到故障诊断结果。In this embodiment, the execution subject can implement fault diagnosis on the smart device by analyzing the comprehensive data, and obtain a fault diagnosis result. For example, a fault diagnosis model may be pre-trained by a machine learning method (for example, a supervised learning method), and comprehensive data may be input into the model to obtain a fault diagnosis result. For another example, a correspondence table for representing the correspondence between data and fault diagnosis results may be preset, and the fault diagnosis results may be obtained by looking up the table.

在一些可选的实现方式中,还可以通过如下步骤进行故障诊断:首先,获取预设的故障诊断规则。上述故障诊断规则可以包括至少一个诊断结论和各诊断结论对应的故障条件。而后,检测综合数据是否满足各故障条件,将综合数据所满足的故障条件作为目标故障条件,将目标故障条件对应的诊断结论进行汇总,得到故障诊断结果。In some optional implementation manners, fault diagnosis may also be performed through the following steps: first, preset fault diagnosis rules are obtained. The above-mentioned fault diagnosis rule may include at least one diagnosis conclusion and a failure condition corresponding to each diagnosis conclusion. Then, it detects whether the comprehensive data satisfies each fault condition, takes the fault condition satisfied by the comprehensive data as the target fault condition, and summarizes the diagnostic conclusions corresponding to the target fault condition to obtain the fault diagnosis result.

可选的,故障诊断规则可以包括:若智能设备的连接方式为无线连接、智能设备至网关的网络延时异常、智能设备的无线信号强度异常且其他数据正常,则确定智能设备所处位置无线信号弱。Optionally, the fault diagnosis rule may include: if the connection mode of the smart device is a wireless connection, the network delay from the smart device to the gateway is abnormal, the wireless signal strength of the smart device is abnormal, and other data is normal, then determine that the location of the smart device is wireless. weak signal.

可选的,故障诊断规则可以包括:若连接方式为有线连接、智能设备上下线频率异常、智能设备的网络线路的光功率异常、配网信息中的宽带账号上下线频率异常、宽带账号在线且其他数据正常,则确定智能设备所接入的宽带线路异常。Optionally, the fault diagnosis rules may include: if the connection mode is a wired connection, the frequency of the smart device going online and offline is abnormal, the optical power of the network line of the smart device is abnormal, the frequency of the broadband account in the distribution network information is abnormal, the broadband account is online and If other data is normal, it is determined that the broadband line connected to the smart device is abnormal.

可选的,故障诊断规则可以包括:若连接方式为有线连接、智能设备上下线频率异常、智能设备的网络速率异常、宽带账号在线且其他数据正常,则确定智能设备的网线故障。Optionally, the fault diagnosis rules may include: if the connection mode is a wired connection, the frequency of the smart device going online and offline is abnormal, the network speed of the smart device is abnormal, the broadband account is online and other data is normal, then determine that the network cable of the smart device is faulty.

可选的,故障诊断规则可以包括:若连接方式为有线连接、配网信息中的宽带账号在线、智能设备的上行网络流量与带宽的占比异常、使用宽带账号的智能设备数量大于预设值且其他数据正常,则确定智能设备的上行网络带宽不足。Optionally, the fault diagnosis rules may include: if the connection mode is a wired connection, the broadband account in the distribution network information is online, the ratio of uplink network traffic to bandwidth of the smart device is abnormal, and the number of smart devices using the broadband account is greater than the preset value And other data is normal, it is determined that the uplink network bandwidth of the smart device is insufficient.

需要说明的是,故障诊断规则还可以根据需要进行其他设定,不限于上述列举。It should be noted that the fault diagnosis rules may also be set in other ways as required, and are not limited to the above-mentioned ones.

在一些可选的实现方式中,在得到故障诊断结果之后,上述执行主体还可以将故障诊断结果添加至上述历史日志,以更新历史日志。由此,可保持历史日志的实时更新。In some optional implementation manners, after obtaining the fault diagnosis result, the execution subject may also add the fault diagnosis result to the history log, so as to update the history log. Thus, real-time updates of history logs can be maintained.

参见图3,其示出了本申请的故障诊断方法的应用场景的示意图。在此场景中,智能设备可以是安装于家庭的摄像头。用户可以在终端设备或前端设备的保修页面输入摄像头的标识,并发起故障诊断请求。服务端在接收到该请求后,可从该请求中提取标识,进而基于该标识,查询IP地址和端口号。而后,可以基于该标识,从第一系统中查询上述摄像头的设备数据,并基于上述IP地址和上述端口号,确定上述摄像头的配网信息,并从第二系统中查询上述配网信息关联的网络数据。之后,可以对上述设备数据和上述网络数据进行汇总,生成综合数据。最后,可以基于上述综合数据,对上述摄像头进行故障诊断,得到故障诊断结果,例如“摄像头网线故障,请检查宽带设备至摄像头的网络”。在得到故障结果后,可在终端设备或前端设备中显示,由此,用户可用过终端设备或前端设备与后台进行交互,当用户在终端设备或前端设备输入信息后,数据处理过程均又后台运行,用户可直接从终端设备或前端设备中浏览故障诊断结果,易用程度较高。Referring to FIG. 3 , it shows a schematic diagram of an application scenario of the fault diagnosis method of the present application. In this scenario, the smart device could be a camera installed in the home. The user can enter the camera ID on the warranty page of the terminal device or front-end device, and initiate a fault diagnosis request. After receiving the request, the server can extract the identifier from the request, and then query the IP address and port number based on the identifier. Then, based on the identification, the device data of the above-mentioned camera can be queried from the first system, and based on the above-mentioned IP address and the above-mentioned port number, the distribution network information of the above-mentioned camera can be determined, and the information associated with the above-mentioned network distribution information can be queried from the second system network data. Afterwards, the above-mentioned device data and the above-mentioned network data may be summarized to generate comprehensive data. Finally, based on the above comprehensive data, a fault diagnosis can be performed on the above camera, and a fault diagnosis result can be obtained, such as "the network cable of the camera is faulty, please check the network from the broadband device to the camera". After the fault result is obtained, it can be displayed on the terminal device or the front-end device. Therefore, the user can interact with the background through the terminal device or the front-end device. Running, the user can browse the fault diagnosis results directly from the terminal device or the front-end device, which is easy to use.

本申请的上述实施例提供的方法,通过所获取的待检测的智能设备的标识,从第一系统中查询智能设备的设备数据,并通过所获取的该智能设备的IP地址和端口号,从第二系统中查询配网信息关联的网络数据,进而可对来自于不同系统的设备数据和网络数据进行汇总,得到综合数据,可使得所得到的综合数据具有全面性,可为故障诊断提供完善的数据基础。基于该综合数据对智能设备进行故障诊断,无需维修人员上门进行智能设备及其所接入的网络的检测,从而简化了故障诊断流程,提高了故障诊断效率。同时,此过程不依赖于人工经验,可消除主观因素影响,从而提高了故障诊断的准确性。In the method provided by the above-mentioned embodiments of the present application, the device data of the smart device is queried from the first system through the obtained identification of the smart device to be detected, and the obtained IP address and port number of the smart device are obtained from the In the second system, the network data associated with the distribution network information can be queried, and then the equipment data and network data from different systems can be summarized to obtain comprehensive data, which can make the obtained comprehensive data comprehensive and provide perfect fault diagnosis data base. Based on the comprehensive data, the fault diagnosis of the smart device is performed without the need for maintenance personnel to come to the door to detect the smart device and the network connected to it, thereby simplifying the fault diagnosis process and improving the fault diagnosis efficiency. At the same time, this process does not depend on human experience, which can eliminate the influence of subjective factors, thereby improving the accuracy of fault diagnosis.

进一步参考图4,其示出了故障诊断方法的又一个实施例的流程图。该故障诊断方法的流程,包括以下步骤:Further referring to FIG. 4 , it shows a flow chart of still another embodiment of the fault diagnosis method. The flow of the fault diagnosis method includes the following steps:

步骤401,获取待检测的智能设备的标识、IP地址和端口号。Step 401, acquire the ID, IP address and port number of the smart device to be detected.

本实施例中的步骤401可参见图2对应实施例的步骤201,此处不再赘述。For step 401 in this embodiment, reference may be made to step 201 in the embodiment corresponding to FIG. 2 , which will not be repeated here.

在一些可选的实现方式中,若IP地址和端口号获取失败,或者,若智能设备离线,则可以获取智能设备的历史日志,并基于历史日志对智能设备进行故障诊断,得到故障诊断结果。进一步地,此时,可输出“智能设备信息查询失败,请尝试重启智能设备后再次诊断”的提示信息,并可以同时输出历史日志中的上一次故障诊断结果,以供参考。In some optional implementation manners, if the acquisition of the IP address and port number fails, or if the smart device is offline, the history log of the smart device may be obtained, and based on the history log, fault diagnosis is performed on the smart device to obtain a fault diagnosis result. Further, at this time, the prompt message "Inquiry of smart device information failed, please try to restart the smart device and then diagnose again" can be output, and the last fault diagnosis result in the history log can be output at the same time for reference.

步骤402,基于标识,从第一系统中查询智能设备的设备数据。Step 402, based on the identifier, query the device data of the smart device from the first system.

本实施例中的步骤402可参见图2对应实施例的步骤202,此处不再赘述。For step 402 in this embodiment, reference may be made to step 202 in the embodiment corresponding to FIG. 2 , which will not be repeated here.

步骤403,基于IP地址和端口号,确定智能设备的配网信息,并从第二系统中查询配网信息关联的网络数据。Step 403, based on the IP address and port number, determine the distribution network information of the smart device, and query the network data associated with the distribution network information from the second system.

本实施例中的步骤403可参见图2对应实施例的步骤203,此处不再赘述。For step 403 in this embodiment, reference may be made to step 203 in the embodiment corresponding to FIG. 2 , which will not be repeated here.

步骤404,对设备数据和网络数据进行汇总,生成综合数据。Step 404, summarizing the device data and network data to generate comprehensive data.

本实施例中的步骤404可参见图2对应实施例的步骤204,此处不再赘述。For step 404 in this embodiment, reference may be made to step 204 in the embodiment corresponding to FIG. 2 , which will not be repeated here.

在一些可选的实现方式中,上述执行主体可以首先基于智能设备的标识,查询目标数据库中的目标数据表。需要说明的是,若不存在目标数据表,则可以基于以该标识作为表名,创建目标数据表。在查询到目标数据表后,可以将设备数据中的每条数据和网络数据中的每条数据作为记录,添加至目标数据表,得到综合数据。需要说明的是,若目标数据表中已存储有数据,可以基于综合数据,对目标数据表中的数据进行更新。In some optional implementation manners, the execution subject may first query the target data table in the target database based on the identification of the smart device. It should be noted that, if the target data table does not exist, the target data table can be created based on the identifier as the table name. After the target data table is queried, each piece of data in the device data and each piece of data in the network data can be used as a record and added to the target data table to obtain comprehensive data. It should be noted that, if data is already stored in the target data table, the data in the target data table may be updated based on the comprehensive data.

步骤405,基于综合数据,对智能设备进行故障诊断,得到故障诊断结果。Step 405, based on the comprehensive data, perform fault diagnosis on the smart device, and obtain a fault diagnosis result.

本实施例中的步骤405可参见图2对应实施例的步骤205,此处不再赘述。For step 405 in this embodiment, reference may be made to step 205 in the embodiment corresponding to FIG. 2 , which will not be repeated here.

在一些可选的实现方式中,还可以通过如下步骤进行故障诊断:首先,获取预设的故障诊断规则。上述故障诊断规则可以包括至少一个诊断结论和各诊断结论对应的故障条件。而后,检测综合数据是否满足各故障条件,将综合数据所满足的故障条件作为目标故障条件,将目标故障条件对应的诊断结论进行汇总,得到故障诊断结果。In some optional implementation manners, fault diagnosis may also be performed through the following steps: first, preset fault diagnosis rules are acquired. The above-mentioned fault diagnosis rule may include at least one diagnosis conclusion and a failure condition corresponding to each diagnosis conclusion. Then, it detects whether the comprehensive data satisfies each fault condition, takes the fault condition satisfied by the comprehensive data as the target fault condition, and summarizes the diagnostic conclusions corresponding to the target fault condition to obtain the fault diagnosis result.

在一些可选的实现方式中,故障诊断规则可以包括但不限于以下至少一项:若智能设备的连接方式为无线连接、智能设备至网关的网络延时异常、智能设备的无线信号强度异常且其他数据正常,则确定智能设备所处位置无线信号弱;若连接方式为有线连接、智能设备上下线频率异常、智能设备的网络线路的光功率异常、配网信息中的宽带账号上下线频率异常、宽带账号在线且其他数据正常,则确定智能设备所接入的宽带线路异常;若连接方式为有线连接、智能设备上下线频率异常、智能设备的网络速率异常、宽带账号在线且其他数据正常,则确定智能设备的网线故障;若连接方式为有线连接、配网信息中的宽带账号在线、智能设备的上行网络流量与带宽的占比异常、使用宽带账号的智能设备数量大于预设值且其他数据正常,则确定智能设备的上行网络带宽不足。In some optional implementations, the fault diagnosis rules may include but not limited to at least one of the following: if the connection mode of the smart device is a wireless connection, the network delay between the smart device and the gateway is abnormal, the wireless signal strength of the smart device is abnormal, and If other data is normal, it is determined that the wireless signal is weak at the location of the smart device; if the connection method is a wired connection, the frequency of going online and offline of the smart device is abnormal, the optical power of the network line of the smart device is abnormal, and the frequency of going online and offline of the broadband account in the distribution network information is abnormal If the broadband account is online and other data is normal, it is determined that the broadband line connected to the smart device is abnormal; if the connection method is a wired connection, the frequency of going online and offline of the smart device is abnormal, the network speed of the smart device is abnormal, the broadband account is online and other data is normal, Then it is determined that the network cable of the smart device is faulty; if the connection method is a wired connection, the broadband account in the distribution network information is online, the ratio of the uplink network traffic to the bandwidth of the smart device is abnormal, the number of smart devices using the broadband account is greater than the preset value, and other If the data is normal, it is determined that the uplink network bandwidth of the smart device is insufficient.

在一些可选的实现方式中,在得到故障诊断结果之后,上述执行主体还可以将故障诊断结果添加至上述历史日志,以更新历史日志。由此,可保持历史日志的实时更新。In some optional implementation manners, after obtaining the fault diagnosis result, the execution subject may also add the fault diagnosis result to the history log, so as to update the history log. Thereby, the real-time update of the history log can be kept.

步骤406,基于预设的监测计划信息,定期更新综合数据,并基于更新后的综合数据,对智能设备进行故障监测,得到故障监测结果。Step 406, based on the preset monitoring plan information, regularly update the comprehensive data, and based on the updated comprehensive data, perform fault monitoring on the smart device, and obtain the fault monitoring result.

在本实施例中,可以根据需要预先设定检测计划信息,以使上述执行主体按照所设定的时间自动进行故障监测。基于该监测计划信息,可按照上述步骤401至步骤405的操作定期更新综合数据,并基于更新后的综合数据,对智能设备进行故障监测,得到故障监测结果。故障监测结果可用于指示智能设备是否发生故障,在发生故障的情况下,故障监测结果还可以包括故障诊断结果。故障监测过程中的故障诊断操作可参见上述步骤405,此处不再赘述。In this embodiment, the detection plan information may be preset as required, so that the above-mentioned execution subject automatically performs fault monitoring according to the set time. Based on the monitoring plan information, the comprehensive data can be regularly updated according to the above steps 401 to 405, and based on the updated comprehensive data, fault monitoring is performed on smart devices to obtain fault monitoring results. The fault monitoring result can be used to indicate whether a fault occurs in the smart device, and in the case of a fault, the fault monitoring result can also include a fault diagnosis result. For the fault diagnosis operation in the fault monitoring process, refer to the above step 405, which will not be repeated here.

步骤407,若故障监测结果指示智能设备故障,则输出告警信息。Step 407, if the fault monitoring result indicates that the smart device is faulty, then output an alarm message.

在本实施例中,若故障监测结果指示智能设备故障,则可以输出告警信息,告警信息中可包括故障诊断结果,以便于用户排查和解决。In this embodiment, if the fault monitoring result indicates that the smart device is faulty, an alarm message may be output, and the alarm message may include a fault diagnosis result, so as to facilitate troubleshooting and resolution by the user.

从图3中可以看出,与图2对应的实施例相比,本实施例中的故障诊断方法的流程涉及了基于监测计划信息对智能设备定期进行故障监测的步骤。由此,本实施例描述的方案可以即使发现智能设备故障,便于提高了对智能设备进行日常维护的便捷性。It can be seen from FIG. 3 that, compared with the embodiment corresponding to FIG. 2 , the flow of the fault diagnosis method in this embodiment involves the step of regularly performing fault monitoring on smart devices based on monitoring plan information. Therefore, the solution described in this embodiment can improve the convenience of daily maintenance of the smart device even if the smart device is found to be faulty.

进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种故障诊断装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 5 , as the realization of the methods shown in the above figures, the present application provides an embodiment of a fault diagnosis device, which corresponds to the method embodiment shown in FIG. 2 , and the device can specifically Used in various electronic equipment.

如图5所示,本实施例的故障诊断装置500包括:获取单元501,用于获取待检测的智能设备的标识、互联网协议IP地址和端口号;第一查询单元502,用于基于上述标识,从第一系统中查询上述智能设备的设备数据;第二查询单元503,用于基于上述IP地址和上述端口号,确定上述智能设备的配网信息,并从第二系统中查询上述配网信息关联的网络数据;生成单元504,用于对上述设备数据和上述网络数据进行汇总,生成综合数据;第一故障诊断单元505,用于基于上述综合数据,对上述智能设备进行故障诊断,得到故障诊断结果。As shown in Figure 5, the fault diagnosis device 500 of this embodiment includes: an acquisition unit 501, used to acquire the identification, Internet Protocol IP address and port number of the smart device to be detected; a first query unit 502, used to , query the device data of the smart device from the first system; the second query unit 503 is configured to determine the distribution network information of the smart device based on the IP address and the port number, and query the distribution network from the second system information-related network data; the generation unit 504 is used to summarize the above-mentioned device data and the above-mentioned network data to generate comprehensive data; the first fault diagnosis unit 505 is used to perform fault diagnosis on the above-mentioned smart device based on the above-mentioned comprehensive data, and obtain Fault diagnosis results.

在一些可选的实现方式中,上述装置还包括:故障监测单元,用于基于预设的监测计划信息,定期更新上述综合数据,并基于更新后的综合数据,对上述智能设备进行故障监测,得到故障监测结果;若上述故障监测结果指示上述智能设备故障,则输出告警信息。In some optional implementation manners, the above device further includes: a fault monitoring unit, configured to periodically update the above comprehensive data based on preset monitoring plan information, and perform fault monitoring on the above smart device based on the updated comprehensive data, A fault monitoring result is obtained; if the fault monitoring result indicates that the smart device is faulty, an alarm message is output.

在一些可选的实现方式中,生成单元504,进一步用于基于上述标识,查询目标数据库中的目标数据表;将上述设备数据中的每条数据和上述网络数据中的每条数据作为记录,添加至上述目标数据表,得到综合数据。In some optional implementation manners, the generation unit 504 is further configured to query the target data table in the target database based on the above-mentioned identification; take each piece of data in the above-mentioned device data and each piece of data in the above-mentioned network data as a record, Add to the above target data table to get the composite data.

在一些可选的实现方式中,上述装置还包括:第二故障诊断单元,用于若上述IP地址和上述端口号获取失败,或者,若上述智能设备离线,则获取上述智能设备的历史日志,并基于上述历史日志对上述智能设备进行故障诊断,得到故障诊断结果。In some optional implementation manners, the above-mentioned device further includes: a second fault diagnosis unit, configured to obtain the history log of the above-mentioned smart device if the acquisition of the above-mentioned IP address and the above-mentioned port number fails, or if the above-mentioned smart device is offline, And based on the above historical logs, fault diagnosis is performed on the above smart device, and a fault diagnosis result is obtained.

在一些可选的实现方式中,上述装置还包括:更新单元,用于将上述故障诊断结果添加至上述历史日志,以更新上述历史日志。In some optional implementation manners, the above device further includes: an updating unit, configured to add the above fault diagnosis result to the above history log, so as to update the above history log.

在一些可选的实现方式中,上述第一故障诊断单元505,进一步用于获取预设的故障诊断规则,上述故障诊断规则包括至少一个诊断结论和各诊断结论对应的故障条件;检测上述综合数据是否满足各故障条件;将上述综合数据所满足的故障条件作为目标故障条件,将上述目标故障条件对应的诊断结论进行汇总,得到故障诊断结果。In some optional implementation manners, the above-mentioned first fault diagnosis unit 505 is further configured to obtain preset fault diagnosis rules, the above-mentioned fault diagnosis rules include at least one diagnosis conclusion and the fault conditions corresponding to each diagnosis conclusion; detect the above-mentioned comprehensive data Whether each fault condition is satisfied; the fault condition satisfied by the above comprehensive data is taken as the target fault condition, and the diagnosis conclusion corresponding to the above target fault condition is summarized to obtain the fault diagnosis result.

在一些可选的实现方式中,上述故障诊断规则包括以下至少一项:若上述智能设备的连接方式为无线连接、上述智能设备至网关的网络延时异常、上述智能设备的无线网络信号强度异常且其他数据正常,则确定上述智能设备所处位置无线信号弱;若上述连接方式为有线连接、上述智能设备上下线频率异常、上述智能设备的网络线路的光功率异常、上述配网信息中的宽带账号上下线频率异常、上述宽带账号在线且其他数据正常,则确定上述智能设备所接入的宽带线路异常;若上述连接方式为有线连接、上述智能设备上下线频率异常、上述智能设备的网络速率异常、上述宽带账号在线且其他数据正常,则确定上述智能设备的网线故障;若上述连接方式为有线连接、上述配网信息中的宽带账号在线、上述智能设备的上行网络流量与带宽的占比异常、使用上述宽带账号的智能设备数量大于预设值且其他数据正常,则确定上述智能设备的上行网络带宽不足。In some optional implementation manners, the above-mentioned fault diagnosis rules include at least one of the following: if the connection mode of the above-mentioned smart device is a wireless connection, the network delay between the above-mentioned smart device and the gateway is abnormal, and the wireless network signal strength of the above-mentioned smart device is abnormal And other data is normal, it is determined that the wireless signal is weak at the location of the above-mentioned smart device; If the broadband account’s online and offline frequency is abnormal, and the above broadband account is online and other data is normal, then it is determined that the broadband line connected to the above smart device is abnormal; If the speed is abnormal, the above-mentioned broadband account is online and other data is normal, it is determined that the network cable of the above-mentioned smart device is faulty; If the ratio is abnormal, the number of smart devices using the above-mentioned broadband account is greater than the preset value, and other data is normal, it is determined that the uplink network bandwidth of the above-mentioned smart devices is insufficient.

本申请的上述实施例提供的装置,通过所获取的待检测的智能设备的标识,从第一系统中查询智能设备的设备数据,并通过所获取的该智能设备的IP地址和端口号,从第二系统中查询配网信息关联的网络数据,进而可对来自于不同系统的设备数据和网络数据进行汇总,得到综合数据,可使得所得到的综合数据具有全面性,可为故障诊断提供完善的数据基础。基于该综合数据对智能设备进行故障诊断,无需维修人员上门进行智能设备及其所接入的网络的检测,从而简化了故障诊断流程,提高了故障诊断效率。同时,此过程不依赖于人工经验,可消除主观因素影响,从而提高了故障诊断的准确性。The device provided by the above-mentioned embodiments of the present application queries the device data of the smart device from the first system through the obtained identification of the smart device to be detected, and through the obtained IP address and port number of the smart device, from In the second system, the network data associated with the distribution network information can be queried, and then the equipment data and network data from different systems can be summarized to obtain comprehensive data, which can make the obtained comprehensive data comprehensive and provide perfect fault diagnosis data base. Based on the comprehensive data, the fault diagnosis of the smart device is performed without the need for maintenance personnel to come to the door to detect the smart device and the network connected to it, thereby simplifying the fault diagnosis process and improving the fault diagnosis efficiency. At the same time, this process does not depend on human experience, which can eliminate the influence of subjective factors, thereby improving the accuracy of fault diagnosis.

下面参考图6,其示出了用于实现本申请的一些实施例的电子设备的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本申请的实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , it shows a schematic structural diagram of an electronic device for implementing some embodiments of the present application. The electronic device shown in FIG. 6 is only an example, and should not limit the functions and scope of use of the embodiments of the present application.

如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, an electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may be randomly accessed according to a program stored in a read-only memory (ROM) 602 or loaded from a storage device 608. Various appropriate actions and processes are executed by programs in the memory (RAM) 603 . In the RAM 603, various programs and data necessary for the operation of the electronic device 600 are also stored. The processing device 601 , ROM 602 and RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to the bus 604 .

通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁盘、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图6中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Typically, the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 607 such as a computer; a storage device 608 including, for example, a magnetic disk, a hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 6 shows electronic device 600 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided. Each block shown in FIG. 6 may represent one device, or may represent multiple devices as required.

特别地,根据本申请的一些实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的一些实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的一些实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本申请的一些实施例的方法中限定的上述功能。In particular, according to some embodiments of the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, some embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In some such embodiments, the computer program may be downloaded and installed from a network via communication means 609 , or from storage means 608 , or from ROM 602 . When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of some embodiments of the present application are performed.

需要说明的是,本申请的一些实施例所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请的一些实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请的一些实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium described in some embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In some embodiments of the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. However, in some embodiments of the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperTextTransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future-developed network protocols such as HTTP (HyperTextTransferProtocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium ( For example, communication networks) interconnect. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取待检测的智能设备的标识、互联网协议IP地址和端口号;基于标识,从第一系统中查询智能设备的设备数据;基于IP地址和端口号,确定智能设备的配网信息,并从第二系统中查询配网信息关联的网络数据;对设备数据和网络数据进行汇总,生成综合数据;基于综合数据,对智能设备进行故障诊断,得到故障诊断结果。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the identification, Internet Protocol IP address and port number of the smart device to be detected; Identify, query the device data of the smart device from the first system; determine the distribution network information of the smart device based on the IP address and port number, and query the network data associated with the distribution network information from the second system; device data and network data Summarize and generate comprehensive data; based on the comprehensive data, perform fault diagnosis on smart devices and obtain fault diagnosis results.

可以以一种或多种程序设计语言或其组合来编写用于执行本申请的一些实施例的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++;还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接),上述网络包括局域网(LAN)或广域网(WAN)。Computer program code for carrying out the operations of some embodiments of the present application may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++ ; Also includes conventional procedural programming languages, such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user computer via any kind of network, including a Local Area Network (LAN) or a Wide Area Network, or to an external computer (such as via the Internet using an Internet Service Provider). (WAN).

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本申请的一些实施例中的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一确定单元、第二确定单元、选取单元和第三确定单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units described in some embodiments of the present application may be implemented by software or by hardware. The described units may also be set in a processor. For example, it may be described as: a processor includes a first determining unit, a second determining unit, a selecting unit, and a third determining unit. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances.

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.

以上描述仅为本申请的一些较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above descriptions are only some preferred embodiments of the present application and descriptions of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the above-mentioned Other technical solutions formed by any combination of technical features or equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) the embodiments of the present application.

Claims (10)

1. A fault diagnosis method, characterized in that the method comprises:
acquiring an identifier, an Internet Protocol (IP) address and a port number of intelligent equipment to be detected;
querying the intelligent device for device data from a first system based on the identification;
determining distribution network information of the intelligent equipment based on the IP address and the port number, and inquiring network data associated with the distribution network information from a second system;
summarizing the equipment data and the network data to generate comprehensive data;
and carrying out fault diagnosis on the intelligent equipment based on the comprehensive data to obtain a fault diagnosis result.
2. The method of claim 1, further comprising:
periodically updating the comprehensive data based on preset monitoring plan information, and carrying out fault monitoring on the intelligent equipment based on the updated comprehensive data to obtain a fault monitoring result;
and if the fault monitoring result indicates that the intelligent equipment has a fault, outputting alarm information.
3. The method of claim 1, wherein the aggregating the device data and the network data to generate aggregated data comprises:
querying a target data table in a target database based on the identification;
and taking each piece of data in the equipment data and each piece of data in the network data as records, and adding the records to the target data table to obtain comprehensive data.
4. The method of claim 1, further comprising:
if the IP address and the port number fail to be obtained, or if the intelligent device is offline, obtaining a history log of the intelligent device, and performing fault diagnosis on the intelligent device based on the history log to obtain a fault diagnosis result.
5. The method of claim 4, wherein after obtaining the fault diagnosis, the method further comprises:
adding the fault diagnosis result to the history log to update the history log.
6. The method of claim 1, wherein the performing fault diagnosis on the smart device based on the integrated data to obtain a fault diagnosis result comprises:
acquiring a preset fault diagnosis rule, wherein the fault diagnosis rule comprises at least one diagnosis conclusion and fault conditions corresponding to the diagnosis conclusions;
detecting whether the comprehensive data meet each fault condition;
and taking the fault condition met by the comprehensive data as a target fault condition, and summarizing diagnosis conclusions corresponding to the target fault condition to obtain a fault diagnosis result.
7. The method of claim 6, wherein the fault diagnosis rules comprise at least one of:
if the connection mode of the intelligent equipment is wireless connection, the network delay from the intelligent equipment to the gateway is abnormal, the wireless network signal strength of the intelligent equipment is abnormal, and other data are normal, determining that the wireless signal of the position where the intelligent equipment is located is weak;
if the connection mode is wired connection, the online and offline frequency of the intelligent device is abnormal, the optical power of a network line of the intelligent device is abnormal, the online and offline frequency of a broadband account in the distribution network information is abnormal, the broadband account is online, and other data is normal, determining that the broadband line to which the intelligent device is connected is abnormal;
if the connection mode is wired connection, the online and offline frequency of the intelligent equipment is abnormal, the network rate of the intelligent equipment is abnormal, the broadband account is online, and other data are normal, determining the network cable fault of the intelligent equipment;
and if the connection mode is wired connection, the broadband account in the distribution network information is on line, the ratio of the uplink network flow to the bandwidth of the intelligent equipment is abnormal, the number of the intelligent equipment using the broadband account is larger than a preset value, and other data are normal, determining that the uplink network bandwidth of the intelligent equipment is insufficient.
8. A fault diagnosis apparatus characterized by comprising:
the device comprises an acquisition unit, a detection unit and a control unit, wherein the acquisition unit is used for acquiring the identification, the Internet protocol IP address and the port number of the intelligent device to be detected;
the first query unit is used for querying the device data of the intelligent device from a first system based on the identification;
the second query unit is used for determining the distribution network information of the intelligent equipment based on the IP address and the port number, and querying network data associated with the distribution network information from a second system;
the generating unit is used for summarizing the equipment data and the network data to generate comprehensive data;
and the first fault diagnosis unit is used for carrying out fault diagnosis on the intelligent equipment based on the comprehensive data to obtain a fault diagnosis result.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202210788760.8A 2022-07-06 2022-07-06 Fault diagnosis method, apparatus, electronic device and computer readable medium Pending CN115277362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210788760.8A CN115277362A (en) 2022-07-06 2022-07-06 Fault diagnosis method, apparatus, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210788760.8A CN115277362A (en) 2022-07-06 2022-07-06 Fault diagnosis method, apparatus, electronic device and computer readable medium

Publications (1)

Publication Number Publication Date
CN115277362A true CN115277362A (en) 2022-11-01

Family

ID=83763021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210788760.8A Pending CN115277362A (en) 2022-07-06 2022-07-06 Fault diagnosis method, apparatus, electronic device and computer readable medium

Country Status (1)

Country Link
CN (1) CN115277362A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116192683A (en) * 2022-12-28 2023-05-30 中国电信股份有限公司 Gateway identification method, gateway identification device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703934A (en) * 2014-11-28 2016-06-22 亿阳信通股份有限公司 PON network fault diagnosis method and apparatus for household broadband service
CN109600261A (en) * 2018-12-14 2019-04-09 锐捷网络股份有限公司 Network restoration method, cloud server, user terminal and network restoration system
US20200403908A1 (en) * 2018-03-09 2020-12-24 Huawei Technologies Co., Ltd. Fault diagnosis method and apparatus thereof
CN113537268A (en) * 2020-11-24 2021-10-22 腾讯科技(深圳)有限公司 Fault detection method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703934A (en) * 2014-11-28 2016-06-22 亿阳信通股份有限公司 PON network fault diagnosis method and apparatus for household broadband service
US20200403908A1 (en) * 2018-03-09 2020-12-24 Huawei Technologies Co., Ltd. Fault diagnosis method and apparatus thereof
CN109600261A (en) * 2018-12-14 2019-04-09 锐捷网络股份有限公司 Network restoration method, cloud server, user terminal and network restoration system
CN113537268A (en) * 2020-11-24 2021-10-22 腾讯科技(深圳)有限公司 Fault detection method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116192683A (en) * 2022-12-28 2023-05-30 中国电信股份有限公司 Gateway identification method, gateway identification device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN103117879B (en) A kind of computer hardware operational factor network monitoring system
US9930098B2 (en) Method and system for ISP network performance monitoring and fault detection
CN105871584A (en) Method, device and system for updating client configuration in key value pair database
CN110727560A (en) Cloud service alarm method and device
CN111130912B (en) Abnormal location method, server and storage medium for content distribution network
CN112988485A (en) Simulation test method and device for power Internet of things equipment
US10771372B2 (en) Transmitting test traffic on a communication link
CN111711533B (en) Fault diagnosis method, fault diagnosis device, electronic device and storage medium
CN110659109A (en) Openstack cluster virtual machine monitoring system and method
CN112491859B (en) Domain name certificate detection method, device, electronic device and computer-readable medium
CN110851471A (en) Distributed log data processing method, device and system
CN110727563A (en) Cloud service alarm method and device for preset customer
CN115277362A (en) Fault diagnosis method, apparatus, electronic device and computer readable medium
CN114301988B (en) Distributed calling method, device, storage medium and electronic device
CN117130719A (en) Data source switching method, device, electronic equipment and computer readable medium
US10020990B2 (en) Network stability reconnaisance tool
CN115695227A (en) Performance testing method, device, electronic equipment and readable storage medium
CN109831335B (en) Data monitoring method, monitoring terminal, storage medium and data monitoring system
CN112527453A (en) Virtualization information simulation system, method and computer-readable storage medium
CN115391827B (en) Log information storage method, apparatus, device, computer readable medium and product
CN112559087B (en) Information generation method, apparatus, electronic device and computer readable medium
US10516767B2 (en) Unifying realtime and static data for presenting over a web service
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN114090293B (en) Service providing method and electronic equipment
CN115118619A (en) Network monitoring method, device, electronic device, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20221101