Movatterモバイル変換


[0]ホーム

URL:


CN112134728B - Method and device for locating loss of contact reason, electronic equipment and storage medium - Google Patents

Method and device for locating loss of contact reason, electronic equipment and storage medium
Download PDF

Info

Publication number
CN112134728B
CN112134728BCN202010908287.3ACN202010908287ACN112134728BCN 112134728 BCN112134728 BCN 112134728BCN 202010908287 ACN202010908287 ACN 202010908287ACN 112134728 BCN112134728 BCN 112134728B
Authority
CN
China
Prior art keywords
gateway
disconnected
disconnection
cause
adjacent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010908287.3A
Other languages
Chinese (zh)
Other versions
CN112134728A (en
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 Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co LtdfiledCriticalChina Mobile Communications Group Co Ltd
Priority to CN202010908287.3ApriorityCriticalpatent/CN112134728B/en
Publication of CN112134728ApublicationCriticalpatent/CN112134728A/en
Application grantedgrantedCritical
Publication of CN112134728BpublicationCriticalpatent/CN112134728B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention relates to the field of fault detection, and discloses a method and a device for locating a loss of connection reason, electronic equipment and a storage medium. The method for positioning the reason of the loss of connection comprises the following steps: acquiring an offline gateway of a reason for which offline is to be positioned; acquiring an adjacent gateway of the lost connection gateway, wherein the distance between the adjacent gateway and the lost connection gateway is within a preset range; and acquiring the operation data of the adjacent gateway and positioning the loss of contact reasons of the loss of contact gateway. By adopting the method in the embodiment, the loss of connection reason of the disconnection between the gateway and the service platform can be accurately positioned.

Description

Translated fromChinese
定位失联原因的方法、装置、电子设备及存储介质Method, device, electronic device and storage medium for locating the cause of disconnection

技术领域technical field

本发明实施例涉及故障检测领域,特别涉及一种定位失联原因的方法、装置、电子设备及存储介质。Embodiments of the present invention relate to the field of fault detection, and in particular, to a method, an apparatus, an electronic device, and a storage medium for locating a cause of disconnection.

背景技术Background technique

智能网关具备智能家居控制枢纽及无线路由两大功能,一侧负责具体的安防报警,家电控制,用电信息采集。通过无线方式与智能交互终端等产品进行数据交互。它还具备有无线路由功能,优良的无线性能,网络安全和覆盖面积。通常智能网关与上一级的服务平台通过传输控制协议(Transmission Control Protocol,简称“TCP”)长连接,由于网络环境复杂,导致TCP长连接不稳定,若网关与服务平台断开连接后,通常通过网关管理平台重启智能网关,以恢复网关与服务平台之间的长连接。The smart gateway has two functions of smart home control hub and wireless routing. One side is responsible for specific security alarms, home appliance control, and electricity consumption information collection. Data interaction with products such as intelligent interactive terminals is carried out wirelessly. It also has wireless routing function, excellent wireless performance, network security and coverage area. Usually, the intelligent gateway and the upper-level service platform are connected through the Transmission Control Protocol ("TCP" for short). Due to the complex network environment, the long-term TCP connection is unstable. If the gateway is disconnected from the service platform, it is usually Restart the smart gateway through the gateway management platform to restore the long connection between the gateway and the service platform.

发明人发现相关技术中至少存在如下问题:目前通过对智能网关进行重启以恢复与服务平台之间的长连接,但是并没有定位失联原因,不能解决失联原因,导致网关经常因同样的失联原因与服务平台断开长连接。The inventor found that there are at least the following problems in the related art: at present, the long connection with the service platform is restored by restarting the intelligent gateway, but the cause of the disconnection is not located, and the cause of the disconnection cannot be solved. The long connection is disconnected from the service platform due to the connection reason.

发明内容SUMMARY OF THE INVENTION

本发明实施方式的目的在于提供一种定位失联原因的方法、装置、电子设备及存储介质,能够准确定位网关与服务平台之间断开连接的失联原因,提高网关与服务平台长连接的稳定性。The purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for locating the cause of disconnection, which can accurately locate the cause of disconnection between the gateway and the service platform, and improve the stability of the long-term connection between the gateway and the service platform. sex.

为解决上述技术问题,本发明的实施方式提供了一种定位失联原因的方法,包括:获取待定位失联原因的失联网关;获取失联网关的相邻网关,相邻网关与失联网关之间的距离处于预设范围之内;获取相邻网关的运行数据,定位失联网关的失联原因。In order to solve the above-mentioned technical problems, the embodiments of the present invention provide a method for locating the cause of the disconnection, including: obtaining the disconnected gateway of the disconnected cause to be located; obtaining the adjacent gateway of the disconnected gateway, the adjacent gateway and the disconnected gateway The distance between the gateways is within the preset range; the operation data of the adjacent gateways is obtained, and the cause of the disconnection of the disconnected gateway is located.

本发明的实施方式还提供了一种定位失联原因的装置,包括:第一获取模块、第二获取模块及定位模块;第一获取模块用于获取待定位失联原因的失联网关;第二获取模块用于获取所述失联网关的相邻网关,相邻网关与失联网关之间的距离处于预设范围之内;定位模块用于获取相邻网关的运行数据,定位失联网关的失联原因。Embodiments of the present invention also provide a device for locating the cause of disconnection, including: a first acquisition module, a second acquisition module, and a location module; the first acquisition module is used to acquire the disconnection gateway for the cause of the disconnection to be located; The second acquisition module is used to acquire the adjacent gateways of the out-of-connection gateway, and the distance between the adjacent gateway and the out-of-connection gateway is within a preset range; the positioning module is used to acquire the operation data of the adjacent gateways, and locate the out-of-connection gateway cause of disconnection.

本发明的实施方式还提供了一种电子设备,包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述的定位失联原因的方法。Embodiments of the present invention also provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by at least one processor. A processor executes to enable at least one processor to execute the above-described method of locating the cause of the disconnection.

本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述的定位失联原因的方法。Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned method for locating a cause of disconnection is implemented.

本发明实施方式相对于现有技术而言,获取失联网关的相邻网关的运行数据,根据各相邻网关的运行数据,定位失联网关的失联原因,由于失联网关与相邻网关之间的距离处于预设范围之内,相邻网关所处网络情况与该失联网关所处网络情况类似或者,或者相邻网关的供电情况与该失联网关的供电情况类似,进而通过相邻网关的运行数据,可以定位该失联网关的失联原因;通过定位失联网关的失联原因,解决该失联故障,避免出现该失联网关频繁断开与服务平台的连接的问题,提高网关与服务平台的连接的稳定性。Compared with the prior art, the embodiment of the present invention obtains the operation data of the adjacent gateways of the disconnected gateway, and locates the reason for the disconnection of the disconnected gateway according to the operation data of each adjacent gateway. The distance between them is within the preset range, the network conditions of the adjacent gateways are similar to the network conditions of the out-of-connection gateway, or the power supply of the adjacent gateways is similar to the power supply of the out-of-connection gateway. The operation data of the neighboring gateways can locate the cause of the disconnection of the disconnected gateway; by locating the disconnected cause of the disconnected gateway, the disconnected fault can be solved, and the problem of the disconnected gateway being frequently disconnected from the service platform can be avoided. Improve the stability of the connection between the gateway and the service platform.

另外,在获取失联网关的相邻网关之前,方法还包括:针对检测到的每个首次被激活的网关进行如下处理:获取网关的网关地址信息;解析网关的网关地址信息,获得网关的地理位置信息;将网关的地理位置信息映射至对应的地址向量。当网关被首次激活时,存储该网关的网关地址信息,将网关的网关地址信息以地址向量的方式存储,便于后续对网关的地理位置的查询,查询速度快。In addition, before acquiring the adjacent gateways of the disconnected gateway, the method further includes: performing the following processing for each detected gateway that is activated for the first time: acquiring the gateway address information of the gateway; parsing the gateway address information of the gateway, and acquiring the geographic location of the gateway Location information; map the geographic location information of the gateway to the corresponding address vector. When the gateway is activated for the first time, the gateway address information of the gateway is stored, and the gateway address information of the gateway is stored in the form of an address vector, which is convenient for subsequent query of the geographic location of the gateway, and the query speed is fast.

另外,网关的地址向量包括:第一区域的地址和第二区域的地址,第二区域的地址为记录的网关的最小地理范围的地址;获取失联网关的相邻网关,包括:根据失联网关的标识信息,获取预先存储的失联网关的所述地址向量;根据失联网关的第一区域的地址,查找第一区域内的网关;获取第一区域内的各个网关与第二区域之间的距离作为各网关与失联网关之间的距离;查找与失联网关之间的距离处于预设范围之内的网关作为相邻网关。通过第一区域的地址,可以快速缩小确定相邻网关的范围,基于第一区域内的网关和第二区域的地址,可以准确且快速地查找出相邻网关。In addition, the address vector of the gateway includes: the address of the first area and the address of the second area, and the address of the second area is the address of the smallest geographic range of the recorded gateway; obtaining the adjacent gateways of the disconnected gateway includes: according to the disconnected gateway Obtain the pre-stored address vector of the disconnected gateway; search for the gateway in the first area according to the address of the first area of the disconnected gateway; obtain the relationship between each gateway in the first area and the second area The distance between each gateway and the disconnected gateway is taken as the distance between each gateway and the disconnected gateway; the gateway whose distance from the disconnected gateway is within the preset range is taken as the adjacent gateway. Through the address of the first area, the range of determining the adjacent gateway can be quickly narrowed, and based on the gateway in the first area and the address of the second area, the adjacent gateway can be found out accurately and quickly.

另外,获取相邻网关的运行数据,定位失联网关的失联原因,包括:获取与服务平台断开连接的相邻网关的数目作为第一数目;判断第一数目是否大于预设的第一阈值,获取第一判断结果;若第一判断结果指示第一数目大于第一阈值,则定位失联原因为预设范围内发生停电故障,或者,定位失联原因为预设范围内的光纤发生故障。根据与服务平台断开连接的相邻网关的数目可以确定失联原因是否为该预设范围内发生停电故障或光纤断开的故障。In addition, obtaining the operation data of adjacent gateways, and locating the reason for the disconnection of the disconnected gateway, includes: obtaining the number of adjacent gateways disconnected from the service platform as the first number; judging whether the first number is greater than a preset first number threshold, and obtain the first judgment result; if the first judgment result indicates that the first number is greater than the first threshold, the cause of the location loss is a power failure within a preset range, or the cause of the location loss is an optical fiber within a preset range Fault. According to the number of adjacent gateways disconnected from the service platform, it can be determined whether the cause of the disconnection is a power failure or a fiber disconnection failure within the preset range.

另外,若第一判断结果指示第一数目小于等于第一阈值,方法还包括:获取网络质量数据超过预设的网络质量阈值的所述相邻网关的数目作为第二数目,网络质量数据包括:在预设时段内相邻网关与服务平台重连次数或相邻网关的光纤衰减率;判断第二数目是否大于预设的第二阈值,获得第二判断结果;若第二判断结果指示第二数目大于第二阈值,则定位失联原因为预设范围内的网络异常。当重连次数大于网络质量阈值的相邻网关的数目大于第二阈值,或,光纤衰减率大于网络质量阈值的相邻网关的数目大于第二阈值,表明该预设范围内的网络不稳定。In addition, if the first judgment result indicates that the first number is less than or equal to the first threshold, the method further includes: acquiring the number of the neighboring gateways whose network quality data exceeds the preset network quality threshold as the second number, and the network quality data includes: The number of reconnections between the adjacent gateways and the service platform or the optical fiber attenuation rate of the adjacent gateways within the preset period; determine whether the second number is greater than the preset second threshold, and obtain the second judgment result; if the second judgment result indicates the second If the number is greater than the second threshold, the cause of the location loss is a network abnormality within the preset range. When the number of adjacent gateways whose reconnection times are greater than the network quality threshold is greater than the second threshold, or the number of adjacent gateways whose fiber attenuation rate is greater than the network quality threshold is greater than the second threshold, it indicates that the network within the preset range is unstable.

另外,若第二判断结果指示第二数目小于等于第二阈值,方法还包括:判断失联网关的插件是否被启动,获得第三判断结果;若第三判断结果指示失联网关的插件被关停,则定位失联原因为插件被关停,由相邻网关启动失联网关的插件。可以通过检测插件是否被关停,定位失联原因并由相邻网关重启该失联网关,提高重启失联网关的灵活性。In addition, if the second judgment result indicates that the second number is less than or equal to the second threshold, the method further includes: judging whether the plug-in of the disconnected gateway is activated, and obtaining a third judgment result; if the third judgment result indicates that the plug-in of the disconnected gateway is closed If the plug-in is stopped, the reason for locating the disconnection is that the plug-in is shut down, and the plug-in of the disconnected connection is activated by the adjacent gateway. By detecting whether the plug-in is shut down, locating the cause of the disconnection, and restarting the disconnected gateway by the adjacent gateway, the flexibility of restarting the disconnected gateway can be improved.

另外,若第三判断结果指示失联网关的插件被启动,方法还包括:判断插件的版本是否为最新版本,若插件版本不是最新版本,定位失联原因为所述插件版本低,由相邻网关对失联网关的所述插件进行版本升级。In addition, if the third judgment result indicates that the plug-in of the disconnected connection is activated, the method further includes: judging whether the version of the plug-in is the latest version, and if the plug-in version is not the latest version, the reason for the location disconnection is that the version of the plug-in is low, and the adjacent plug-in version is low. The gateway performs version upgrade on the plug-in of the missing gateway.

附图说明Description of drawings

一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute limitations of the embodiments, and elements with the same reference numerals in the drawings are denoted as similar elements, Unless otherwise stated, the figures in the accompanying drawings do not constitute a scale limitation.

图1是根据本发明第一实施例提供的一种定位失联原因的方法的流程图;1 is a flowchart of a method for locating a cause of disconnection according to a first embodiment of the present invention;

图2是根据本发明第二实施例提供的一种定位失联原因的方法的流程图;2 is a flowchart of a method for locating a cause of disconnection according to a second embodiment of the present invention;

图3是根据本发明第三实施例提供的一种定位失联原因的方法的流程图;3 is a flowchart of a method for locating a cause of disconnection according to a third embodiment of the present invention;

图4是根据本发明第四实施例提供的一种定位失联原因的装置的结构框图;4 is a structural block diagram of a device for locating a cause of disconnection according to a fourth embodiment of the present invention;

图5是根据本发明第五实施例提供的一种电子设备的结构框图。FIG. 5 is a structural block diagram of an electronic device according to a fifth embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that, in the various embodiments of the present invention, many technical details are set forth in order for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized.

以下各个实施例的划分是为了描述方便,不应对本发明的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.

目前随着智能网络的发展,智能家居的应用也越来越广泛,智能家居通常与智能网关通信连接,智能网关与服务平台连接,服务平台可以是由多个服务器组成的网络平台,例如家庭开放平台,家庭开放平台用于为多样化的家庭业务提供统一且通用的管理、服务和支撑保障机制,以营造良好的家庭业务生长环境。网关通过TCP长连接服务平台,目前网络环境复杂,导致TCP长连接不稳定,出现网关与服务平台断开连接的情况。而通常通过网关管理平台发起网关重启的指令,从而恢复网关与服务平台的长连接,但是,目前并没有定位网关发生失联的原因,导致网关频繁出现失联的情况。同时,网关管理平台中由于网络和容量等原因,存在重启指令不能及时有效地到达失联网关,导致网关不能及时恢复与服务平台的长连接的问题。At present, with the development of intelligent network, the application of smart home is becoming more and more extensive. The smart home is usually connected with the intelligent gateway, and the intelligent gateway is connected with the service platform. The service platform can be a network platform composed of multiple servers. Platform, the family open platform is used to provide a unified and universal management, service and support mechanism for diversified family businesses, so as to create a good environment for family business growth. The gateway connects to the service platform through TCP. The current network environment is complex, resulting in unstable TCP long-term connection, and disconnection between the gateway and the service platform occurs. Usually, a gateway restart command is initiated through the gateway management platform to restore the long connection between the gateway and the service platform. However, the reason for the disconnection of the gateway has not been located at present, resulting in frequent disconnection of the gateway. At the same time, due to network and capacity reasons in the gateway management platform, there is a problem that the restart instruction cannot reach the disconnected gateway in a timely and effective manner, resulting in the gateway being unable to restore the long-term connection with the service platform in time.

本发明的第一实施方式涉及一种定位失联原因的方法。其流程如图1所示:The first embodiment of the present invention relates to a method of locating the cause of the disconnection. Its process is shown in Figure 1:

步骤101:获取待定位失联原因的失联网关。Step 101 : Obtain the disconnected gateway of the cause of disconnection to be located.

步骤102:获取失联网关的相邻网关,相邻网关与失联网关之间的距离处于预设范围之内。Step 102: Obtain the adjacent gateways of the disconnected gateway, and the distance between the adjacent gateway and the disconnected gateway is within a preset range.

步骤103:获取相邻网关的运行数据,定位失联网关的失联原因。Step 103: Obtain the operation data of the adjacent gateways, and locate the reason for the disconnection of the disconnected gateway.

本发明实施方式相对于现有技术而言,获取失联网关的相邻网关的运行数据,根据各相邻网关的运行数据,定位失联网关的失联原因,由于失联网关与相邻网关之间的距离处于预设范围之内,相邻网关所处网络情况与该失联网关所处网络情况类似或者,或者相邻网关的供电情况与该失联网关的供电情况类似,进而通过相邻网关的运行数据,可以定位该失联网关的失联原因;通过定位失联网关的失联原因,解决该失联故障,避免出现该失联网关频繁断开与服务平台的连接的问题,提高网关与服务平台的连接的稳定性。Compared with the prior art, the embodiment of the present invention obtains the operation data of the adjacent gateways of the disconnected gateway, and locates the reason for the disconnection of the disconnected gateway according to the operation data of each adjacent gateway. The distance between them is within the preset range, the network conditions of the adjacent gateways are similar to the network conditions of the out-of-connection gateway, or the power supply of the adjacent gateways is similar to the power supply of the out-of-connection gateway. The operation data of the neighboring gateways can locate the cause of the disconnection of the disconnected gateway; by locating the disconnected cause of the disconnected gateway, the disconnected fault can be solved, and the problem of the disconnected gateway being frequently disconnected from the service platform can be avoided. Improve the stability of the connection between the gateway and the service platform.

本发明的第二实施方式涉及一种定位失联原因的方法。第二实施例是对第一实施例中的步骤103的具体介绍,其流程如图2所示。A second embodiment of the present invention relates to a method of locating the cause of the disconnection. The second embodiment is a specific introduction to step 103 in the first embodiment, and the process is shown in FIG. 2 .

步骤201:获取待定位失联原因的失联网关。Step 201 : Obtain the disconnected gateway of the cause of disconnection to be located.

具体地,该定位失联原因的方法可以应用于网关管理平台;也可以应用于电子设备上,若应用于电子设备上,则该电子设备与该网关管理平台连接。该网关管理平台用于管理各个网关,各网关与服务平台连接,服务平台为各个网关提供网络服务;网关管理平台还可以与该服务平台连接。本示例中以该定位失联原因的方法应用于网关管理平台为例。Specifically, the method for locating the cause of disconnection can be applied to a gateway management platform; it can also be applied to an electronic device. If applied to an electronic device, the electronic device is connected to the gateway management platform. The gateway management platform is used to manage each gateway, each gateway is connected with a service platform, and the service platform provides network services for each gateway; the gateway management platform can also be connected with the service platform. In this example, the method for locating the cause of disconnection is applied to the gateway management platform as an example.

服务平台可以监控与每个网关的连接状态,服务平台可以将断开连接的网关的标识信息发送至网关管理平台,从而网关管理平台获取到待定位失联原因的失联网关。也可以是由网关管理平台监控每个网关与服务平台的连接状态,该网关管理平台直接获取待定位失联原因的失联网关的标识信息,其中,每个网关有唯一的标识信息。The service platform can monitor the connection status with each gateway, and the service platform can send the identification information of the disconnected gateway to the gateway management platform, so that the gateway management platform can obtain the disconnected gateway to be located. Alternatively, the gateway management platform may monitor the connection status of each gateway and the service platform, and the gateway management platform may directly obtain the identification information of the disconnected gateway whose cause of disconnection is to be located, wherein each gateway has unique identification information.

步骤202:获取失联网关的相邻网关,相邻网关与失联网关之间的距离处于预设范围之内。Step 202: Obtain the adjacent gateways of the disconnected gateway, and the distance between the adjacent gateway and the disconnected gateway is within a preset range.

具体地,根据存储的网关的地址信息,查找与失联网关之间的距离处于预设范围之内的网关,将查找到的网关作为该失联网关的相邻网关。预设范围可以根据实际应用进行设置,例如,预设范围可以是小于100m的范围、小于200m的范围、200m~5km的范围等等,本示例中预设范围为0~500m。其中,相邻网关的个数至少为2个。Specifically, according to the stored address information of the gateway, a gateway whose distance from the disconnected gateway is within a preset range is searched, and the found gateway is used as an adjacent gateway of the disconnected gateway. The preset range can be set according to practical applications. For example, the preset range can be a range less than 100m, a range less than 200m, a range of 200m-5km, etc. The preset range in this example is 0-500m. The number of adjacent gateways is at least two.

步骤203:获取与服务平台断开连接的相邻网关的数目作为第一数目。Step 203: Obtain the number of adjacent gateways disconnected from the service platform as the first number.

具体地,获取每个相邻网关的运行数据,运行数据可以包括与服务平台的连接状态;获取每个相邻网关的运行数据的方式与步骤201大致相同,可以由服务平台获取,也可以由网关管理平台获取。Specifically, the operation data of each adjacent gateway is obtained, and the operation data may include the connection status with the service platform; the method of obtaining the operation data of each adjacent gateway is roughly the same as that instep 201, which can be obtained by the service platform or by Obtained from the gateway management platform.

本示例中,获取当前时刻与服务平台断开连接的相邻网关的数目作为第一数目,例如,获取的相邻网关的总数为A1,与服务平台断开连接的相邻网关的数目有B1个,那么将B1作为第一数目,其中,A1>B1。In this example, the number of adjacent gateways disconnected from the service platform at the current moment is obtained as the first number, for example, the total number of adjacent gateways obtained is A1, and the number of adjacent gateways disconnected from the service platform is B1 , then take B1 as the first number, where A1>B1.

步骤204:判断第一数目是否大于预设的第一阈值,获取第一判断结果,若第一判断结果指示第一数目大于第一阈值,则执行步骤205;否则,执行步骤206。Step 204: Determine whether the first number is greater than a preset first threshold, and obtain a first determination result. If the first determination result indicates that the first number is greater than the first threshold, performstep 205; otherwise, performstep 206.

具体地,第一阈值可以预先根据实际应用确定,判断该第一数目是否大于第一阈值,若该第一数目大于该第一阈值,则执行步骤205。Specifically, the first threshold may be determined in advance according to the actual application, to determine whether the first number is greater than the first threshold, and if the first number is greater than the first threshold,step 205 is performed.

步骤205:定位失联原因为预设范围内发生停电故障,或者,定位失联原因为预设范围内的光纤发生故障。Step 205: The reason for the location loss is that a power failure occurs within a preset range, or the reason for the location loss is that an optical fiber within the preset range fails.

具体地,由于在该预设范围内发生失联的相邻网关的数目多,那么可以确定失联原因相同,可以定位该失联网关的失联原因为该预设范围内发生了停电故障,或者,定位该失联网关的失联原因为在该预设范围内发生了光纤故障,光纤故障可以是光纤断开的故障,例如,因外部施工挖断光纤导致光纤断开的故障,光纤故障将导致通信网路中的无保护环路的区域发生了断网。Specifically, since there are a large number of adjacent gateways that are disconnected within the preset range, it can be determined that the reasons for the disconnection are the same, and the reason for the disconnection of the disconnected gateway can be determined to be a power failure within the preset range. Or, locate the disconnection of the disconnected gateway because an optical fiber failure has occurred within the preset range, and the optical fiber failure may be an optical fiber disconnection failure. This will result in a disconnection in the area of the communication network without a protection loop.

需要说明的是,当定位了该失联原因后,可以执行步骤213,通知人工处理故障,例如,可以发送停电或光纤断开故障的提示信息,由人工检查该预设区域内发生停电的位置,可以为该停电位置的网络设备供电,以恢复该区域内的网络。若人工检测出是发生了光纤断开的故障,则由人工更换故障光纤,以恢复该区域内的网络。It should be noted that, after locating the cause of the disconnection,step 213 can be executed to notify manual processing of the fault, for example, prompt information of power failure or fiber disconnection fault can be sent, and the location of the power failure in the preset area can be manually checked. , can supply power to the network equipment at the outage location to restore the network in the area. If it is manually detected that the optical fiber is disconnected, the faulty optical fiber will be manually replaced to restore the network in the area.

步骤206:获取网络质量数据超过预设的网络质量阈值的相邻网关的数目作为第二数目,网络质量数据包括:在预设时段内相邻网关与服务平台重连次数和/或相邻网关的光纤衰减率。Step 206: Acquire the number of adjacent gateways whose network quality data exceeds a preset network quality threshold as the second number, and the network quality data includes: the number of reconnections between the adjacent gateways and the service platform and/or the adjacent gateways within a preset period of time fiber attenuation rate.

具体地,运行数据还可以包括网络质量数据,该网络质量数据可以包括:在预设时段内相邻网关与服务平台重连次数或相邻网关的光纤衰减率。预设时段可以是距离该失联网关发生失联时刻后的24小时内的时段。Specifically, the operation data may further include network quality data, and the network quality data may include: the number of reconnections between the adjacent gateway and the service platform within a preset period or the fiber attenuation rate of the adjacent gateway. The preset time period may be a time period within 24 hours from the moment when the disconnected gateway is disconnected.

若网络质量数据包括相邻网关与服务平台重连次数,那么对应的网络质量阈值为重连次数阈值,该重连次数阈值可以根据实际应用中的数据确定,例如,重连次数阈值可以为5次。同理,若网络质量数据包括相邻网关的光纤衰减率,那么对应的网络质量阈值为光纤衰减率阈值,例如,光纤衰减率阈值为-20dBm。If the network quality data includes the number of reconnections between the adjacent gateway and the service platform, then the corresponding network quality threshold is the threshold of the number of reconnections, which can be determined according to the data in the actual application. For example, the threshold of the number of reconnections can be 5 Second-rate. Similarly, if the network quality data includes the optical fiber attenuation rate of adjacent gateways, the corresponding network quality threshold is the optical fiber attenuation rate threshold, for example, the optical fiber attenuation rate threshold is -20dBm.

在获取网络质量数据超过该网络质量阈值的相邻网关的数目,将获取的数目作为第二数目。例如,在预设时段内,超过网络质量阈值的相邻网关的数目为10个,那么第二数目为10。After acquiring the number of neighboring gateways whose network quality data exceeds the network quality threshold, the acquired number is taken as the second number. For example, within a preset period, the number of neighboring gateways exceeding the network quality threshold is 10, and the second number is 10.

步骤207:判断第二数目是否大于预设的第二阈值,获得第二判断结果,若第二判断结果指示第二数目大于第二阈值,则执行步骤208;否则,执行步骤209。Step 207: Determine whether the second number is greater than a preset second threshold, and obtain a second determination result. If the second determination result indicates that the second number is greater than the second threshold, performstep 208; otherwise, performstep 209.

具体地,预设的第二阈值可以根据预设范围确定,预设范围越大,该第二阈值的数目可以越大,例如,若预设范围为0~500m的范围,第二阈值可以为10;若预设范围为0~1km,那么该第二阈值可以为20个。Specifically, the preset second threshold may be determined according to a preset range. The larger the preset range, the greater the number of the second thresholds. For example, if the preset range is in the range of 0 to 500 m, the second threshold may be 10; If the preset range is 0 to 1 km, then the second threshold may be 20.

步骤208:定位失联原因为预设范围内的网络异常。Step 208 : The cause of the location loss is a network abnormality within a preset range.

具体地,频繁的发生重连的相邻网关的数目大于第二阈值,或者光纤衰减率大于网络质量阈值的相邻网关的数目大于第二阈值,表明当前的预设范围内的网络不稳定。Specifically, the number of adjacent gateways with frequent reconnection is greater than the second threshold, or the number of adjacent gateways with optical fiber attenuation rate greater than the network quality threshold is greater than the second threshold, indicating that the network within the current preset range is unstable.

同理,该步骤执行完之后,可以执行步骤213。Similarly, after this step is performed,step 213 may be performed.

步骤209:判断失联网关的插件是否被启动,获得第三判断结果,若第三判断结果指示失联网关的插件被关停,则执行步骤210;否则,执行步骤211。Step 209: Determine whether the plug-in of the disconnected gateway is activated, and obtain a third determination result. If the third determination result indicates that the plug-in of the disconnected gateway is shut down, go to step 210; otherwise, go to step 211.

具体地,本实例中的插件用于管理网关,该插件被部署在网关内。可以通过网关管理平台检测失联网关的插件是否被启动,获得第三判断结果,若第三判断结果指示该失联网关的插件被关停,则可以执行步骤210,否则,执行步骤211。Specifically, the plug-in in this example is used to manage the gateway, and the plug-in is deployed in the gateway. The gateway management platform can detect whether the plug-in of the disconnected gateway is activated, and obtain a third judgment result. If the third judgment result indicates that the plug-in of the disconnected gateway is shut down, step 210 can be executed; otherwise, step 211 can be executed.

步骤210:定位失联原因为插件被关停,由相邻网关启动失联网关的插件。Step 210 : locate the cause of the disconnection because the plug-in is shut down, and the adjacent gateway starts the plug-in of the disconnected connection.

具体地,若失联网关的插件被关停,那么可以向相邻网关发送启动插件的指令,由相邻网关启动失联网关的插件,需要说明的是,相邻网关与该失联网关通信连接。Specifically, if the plug-in of the disconnected gateway is shut down, an instruction to start the plug-in may be sent to the adjacent gateway, and the adjacent gateway will start the plug-in of the disconnected gateway. It should be noted that the adjacent gateway communicates with the disconnected gateway. connect.

可以理解的是,若确定失联原因为插件被关停,也可以由该网关管理平台启动失联网关的插件。It can be understood that if it is determined that the cause of the disconnection is that the plug-in is shut down, the gateway management platform can also activate the plug-in of the disconnected gateway.

步骤211:判断插件的版本是否为最新版本,若插件版本不是最新版本,则执行步骤212,否则,执行步骤213。Step 211: Determine whether the version of the plug-in is the latest version, if the version of the plug-in is not the latest version, go toStep 212, otherwise, go toStep 213.

具体地,可以获取该失联网关的插件的版本信息,若该插件的版本信息与最新版本的版本信息不同,则可以确定该插件的版本不是最新版本,则执行步骤212;否则,执行步骤213。Specifically, the version information of the plug-in of the missing link can be obtained. If the version information of the plug-in is different from the version information of the latest version, it can be determined that the version of the plug-in is not the latest version, and then step 212 is executed; otherwise,step 213 is executed. .

步骤212:定位失联原因为插件版本低,由相邻网关对失联网关的插件进行版本升级。Step 212: The reason for the disconnection is located because the version of the plug-in is low, and the adjacent gateway performs version upgrade on the plug-in of the disconnected connection.

具体地,可以由相邻网关将最新版本的插件发送至失联网关,失联网关安装最新版本的插件,完成对插件的版本升级,在插件升级之后,启动该插件,重启失联网关。Specifically, the adjacent gateway can send the latest version of the plug-in to the out-of-connection gateway, and the out-of-connection gateway installs the latest version of the plug-in to complete the version upgrade of the plug-in.

步骤213:向人工发送处理故障的提示信息。Step 213: Send a prompt message for handling the fault to the manual.

具体地,可以电话提示人工上门处理故障,也可以发送信息提醒人工处理故障,提示信息中可以包括失联原因以及该失联网关的地理位置信息。Specifically, a phone call may be used to prompt manual door-to-door handling of the fault, or information may be sent to remind manual handling of the fault, and the prompt information may include the reason for the disconnection and the geographic location information of the disconnected gateway.

需要说明的是,本实施例中步骤203至步骤213是对第一实施例中的步骤103的具体介绍。It should be noted that, steps 203 to 213 in this embodiment are specific introductions to step 103 in the first embodiment.

上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.

本发明第三实施方式涉及一种定位失联原因的方法,第三实施方式是对第一实施方式中的步骤102的具体介绍,其流程可以如图3所示。The third embodiment of the present invention relates to a method for locating the cause of disconnection. The third embodiment is a specific introduction to step 102 in the first embodiment, and the process may be shown in FIG. 3 .

步骤301:获取待定位失联原因的失联网关。Step 301: Obtain the disconnected gateway of the cause of disconnection to be located.

该步骤可以采用如步骤201的方式,此处将不再进行赘述。This step may be in the manner ofstep 201, which will not be repeated here.

步骤302:根据失联网关的标识信息,获取预先存储的失联网关的地址向量。Step 302: Acquire a pre-stored address vector of the disconnected gateway according to the identification information of the disconnected gateway.

可以预先存储每个网关的地址向量,以便根据失联网关的标识信息,获取失联网关的地址向量。The address vector of each gateway may be pre-stored, so as to obtain the address vector of the disconnected gateway according to the identification information of the disconnected gateway.

在一个例子中,针对检测到的每个首次被激活的网关进行如下处理:获取网关的网关地址信息;解析网关的网关地址信息,获得网关的地理位置信息;将网关的地理位置信息映射至对应的地址向量。网关的地址向量可以包括:第一区域的地址和第二区域的地址,其中,第二区域的地址为记录的该网关的最小地理范围的地址。In one example, the following processing is performed for each detected gateway that is activated for the first time: obtaining gateway address information of the gateway; parsing the gateway address information of the gateway to obtain geographic location information of the gateway; mapping the geographic location information of the gateway to the corresponding address vector. The address vector of the gateway may include: the address of the first area and the address of the second area, wherein the address of the second area is the address of the minimum geographic range of the gateway recorded.

具体地,装维人员安装网关后,录入每个网关的网关地址信息,网关地址信息包含网关的省、市、区县信息,以及该网关所处的街道或小区等信息,其中,街道或小区信息为记录的最小地理范围的地址。当网关被首次激活后,网关管理平台可以获取该被激活的网关的网关地址信息。Specifically, after the installation and maintenance personnel install the gateway, the gateway address information of each gateway is entered. The gateway address information includes the gateway's province, city, district and county information, as well as information such as the street or community where the gateway is located, wherein the street or community The information is the address of the smallest geographic range recorded. After the gateway is activated for the first time, the gateway management platform can obtain the gateway address information of the activated gateway.

为了便于后续查找网关的地理位置信息。本示例中,将网关的网关地址信息映射至对应地址向量。网关的地址向量包括:第一区的域地址和第二区域的地址,第二区域的地址为记录的网关的最小地理范围的地址第二区域的地址为记录的网关的最小地理范围对应的地址。In order to facilitate the subsequent search for the geographic location information of the gateway. In this example, the gateway address information of the gateway is mapped to the corresponding address vector. The address vector of the gateway includes: the domain address of the first area and the address of the second area, the address of the second area is the address of the minimum geographical range of the recorded gateway, and the address of the second area is the address corresponding to the minimum geographical range of the recorded gateway .

例如,地址向量N可以表示为:{o1,o2,o3,o4};其中,o1表示省份信息,o2表示市信息,o3表示区县信息,o4表示小区或街道等信息。其中,可以将o1、o2和o3作为第一区域的地址,将o4作为第二区域的地址。具体映射的规则如下:由于省市区县名称明确,可以通过字符串近似匹配的方法识别出地址中的省、市、区县的名称,分别填充到向量N中的o1、o2和o3中;从网关地址信息中截去省、市、区县的信息以后,将剩余的字符串进行中文分词后,存储到对应的向量o4中。For example, the address vector N can be expressed as: {o1 , o2 , o3 , o4 }; where o1 represents province information, o2 represents city information, o3 represents district and county information, and o4 represents district or street and other information. Among them, o1 , o2 and o3 can be used as the address of the first area, and o4 can be used as the address of the second area. The specific mapping rules are as follows: Since the names of provinces, cities and counties are clear, the names of provinces, cities, districts and counties in the address can be identified by approximate string matching, and they are filled into o1 , o2 and o in the vector N respectively. Step3 : After truncating the information of the province, city, district and county from the gateway address information, the remaining character strings are segmented into Chinese, and then stored in the corresponding vector o4 .

需要说明的是,可以根据网关的标识信息作为地址向量的索引,以便后续可以快速查找对应的地址向量。因此,可以根据失联网关的标识信息,查找道对应的地址向量。It should be noted that, the identification information of the gateway can be used as the index of the address vector, so that the corresponding address vector can be quickly searched later. Therefore, the address vector corresponding to the track can be searched according to the identification information of the missing link.

步骤303:根据失联网关的第一区域的地址,查找第一区域内的网关。Step 303: Search for a gateway in the first area according to the address of the first area of the lost gateway.

具体地,获取失联网关中的地址向量中的第一区域的地址,例如,失联网关的地址向量N表示为{o1,o2,o3,o4},根据的o1、o2和o3存储的省、市和区县信息,精准定位出该区县区域内的所有网关。Specifically, the address of the first area in the address vector in the disconnected gateway is obtained. For example, the address vector N of the disconnected gateway is represented as {o1 , o2 , o3 , o4 }, according to o1 , o2 And the information of provinces, cities, districts and counties stored in o3 can accurately locate all gateways in the districts and counties.

步骤304:获取第一区域内的各个网关与第二区域之间的距离作为各网关与失联网关之间的距离。Step 304: Obtain the distance between each gateway in the first area and the second area as the distance between each gateway and the disconnected gateway.

具体地,获取第一区域内的各个网关与第二区域之间的距离,由于各个网关的最小地理地址均为一个区域,可以将每个网关的最小地理地址所在区域的中心点与第二区域的中心点之间的距离作为各网关与第二区域之间的距离。Specifically, the distance between each gateway in the first area and the second area is obtained. Since the minimum geographic address of each gateway is an area, the center point of the area where the minimum geographic address of each gateway is located can be compared with the second area. The distance between the center points of each gateway is taken as the distance between each gateway and the second area.

步骤305:查找与失联网关之间的距离处于预设范围之内的网关作为相邻网关。Step 305: Find a gateway whose distance from the disconnected gateway is within a preset range as a neighboring gateway.

预设范围与第二实施方式中的预设范围类似,本实施方式中将不再赘述。The preset range is similar to the preset range in the second embodiment, and will not be repeated in this embodiment.

需要说明的是,步骤302至步骤305是对第一实施方式中的步骤102的具体介绍,同时步骤302至步骤305也是对第二实施方式中的步骤202的具体介绍。It should be noted thatsteps 302 to 305 are a specific introduction to step 102 in the first embodiment, and steps 302 to 305 are also a specific introduction to step 202 in the second embodiment.

步骤306:获取相邻网关的运行数据,定位失联网关的失联原因。Step 306: Acquire the operation data of the adjacent gateways, and locate the reason for the disconnection of the disconnected gateway.

该步骤与第二实施方式中的步骤203至步骤213大致相同,此处将不再进行赘述。This step is substantially the same asstep 203 to step 213 in the second embodiment, and will not be repeated here.

本实施方式中的定位失联原因的方法,当网关被首次激活时,存储该网关的网关地址信息,将网关的网关地址信息以地址向量的方式存储,便于后续对网关地址的查询,查询速度快。通过第一区域的地址,可以快速缩小确定相邻网关的范围,基于第一区域内的网关和第二区域的地址,可以准确且快速地确定出相邻网关。In the method for locating the cause of disconnection in this embodiment, when the gateway is activated for the first time, the gateway address information of the gateway is stored, and the gateway address information of the gateway is stored in the form of an address vector, which is convenient for subsequent query of the gateway address, and the query speed quick. Through the address of the first area, the range of determining the adjacent gateway can be quickly narrowed, and based on the gateway in the first area and the address of the second area, the adjacent gateway can be determined accurately and quickly.

本发明第四实施方式涉及一种定位失联原因的装置,定位失联原因的装置40的结构框图如图4所示,包括:第一获取模块401、第二获取模块402及定位模块403;第一获取模块401用于获取待定位失联原因的失联网关;第二获取模块402用于获取失联网关的相邻网关,相邻网关与失联网关之间的距离处于预设范围之内;定位模块403用于获取相邻网关的运行数据,定位失联网关的失联原因。The fourth embodiment of the present invention relates to a device for locating the cause of disconnection. The block diagram of thedevice 40 for locating the cause of disconnection is shown in FIG. 4 , including: afirst acquisition module 401 , a second acquisition module 402 and apositioning module 403 ; Thefirst acquisition module 401 is used to acquire the disconnected gateway of the cause of disconnection to be located; the second acquisition module 402 is used to acquire the adjacent gateway of the disconnected gateway, and the distance between the adjacent gateway and the disconnected gateway is within the preset range. Thepositioning module 403 is used to obtain the operation data of the adjacent gateways, and locate the reason for the disconnection of the disconnected gateway.

值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,本实施方式中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that each module involved in this embodiment is a logical module. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

本发明第五实施方式涉及一种电子设备,其结构框图如图5所示,包括:至少一个处理器501;以及,与至少一个处理器501通信连接的存储器502;其中,存储器502存储有可被至少一个处理器501执行的指令,指令被至少一个处理器501执行,以使至少一个处理器501能够执行上述的定位失联原因的方法。The fifth embodiment of the present invention relates to an electronic device, the structural block diagram of which is shown in FIG. 5 , including: at least oneprocessor 501 ; and amemory 502 communicatively connected to the at least oneprocessor 501 ; Instructions executed by the at least oneprocessor 501, the instructions are executed by the at least oneprocessor 501, so that the at least oneprocessor 501 can execute the above-mentioned method for locating the cause of the disconnection.

其中,存储器502和处理器501采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器501和存储器502的各种电路链接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器501处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。Thememory 502 and theprocessor 501 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus links one ormore processors 501 and various circuits of thememory 502 together. The bus may also link together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides the interface between the bus and the transceiver. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. The data processed by theprocessor 501 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor.

处理器501负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。Processor 501 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory may be used to store data used by the processor in performing operations.

本发明第六实施方式涉及一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述的定位失联原因的方法。The sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned method for locating the cause of the disconnection is realized.

本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps in the method of the above embodiments can be completed by instructing the relevant hardware through a program. The program is stored in a storage medium and includes several instructions to make a device (which may be a single-chip microcomputer) , chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those skilled in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present invention. scope.

Claims (9)

Translated fromChinese
1.一种定位失联原因的方法,其特征在于,包括:1. a method for locating the cause of disconnection, is characterized in that, comprises:获取待定位失联原因的失联网关;Obtain the missing gateway of the cause of the missing connection to be located;获取所述失联网关的相邻网关,所述相邻网关与所述失联网关之间的距离处于预设范围之内;Obtain the adjacent gateways of the disconnected gateway, and the distance between the adjacent gateway and the disconnected gateway is within a preset range;获取所述相邻网关的运行数据,定位所述失联网关的失联原因,所述运行数据包括与服务平台的连接状态和网络质量数据;Acquiring the operation data of the adjacent gateway, and locating the cause of the disconnection of the disconnected gateway, the operation data includes the connection status with the service platform and network quality data;其中,所述获取所述相邻网关的运行数据,定位所述失联网关的失联原因,包括:Wherein, obtaining the operation data of the adjacent gateways and locating the cause of the disconnection of the disconnected gateways includes:获取所述与服务平台的连接状态为与服务平台断开连接的所述相邻网关的数目作为第一数目;Obtain the number of the adjacent gateways whose connection status with the service platform is disconnected from the service platform as the first number;判断所述第一数目是否大于预设的第一阈值,获取第一判断结果;Judging whether the first number is greater than a preset first threshold, and obtaining a first judgment result;若所述第一判断结果指示所述第一数目大于所述第一阈值,则定位所述失联原因为所述预设范围内发生停电故障,或者,定位所述失联原因为所述预设范围内的光纤发生故障;If the first judgment result indicates that the first number is greater than the first threshold, locate the cause of the disconnection as a power failure within the preset range, or locate the cause of the disconnection as the preset The optical fiber within the set range fails;若所述第一判断结果指示所述第一数目小于等于所述第一阈值,则获取所述网络质量数据超过预设的网络质量阈值的所述相邻网关的数目作为第二数目;If the first judgment result indicates that the first number is less than or equal to the first threshold, acquiring the number of the adjacent gateways whose network quality data exceeds the preset network quality threshold as the second number;判断所述第二数目是否大于预设的第二阈值,获得第二判断结果;Judging whether the second number is greater than a preset second threshold, and obtaining a second judgment result;若所述第二判断结果指示所述第二数目大于所述第二阈值,则定位所述失联原因为所述预设范围内的网络异常。If the second determination result indicates that the second number is greater than the second threshold, it is determined that the cause of the disconnection is a network abnormality within the preset range.2.根据权利要求1所述的定位失联原因的方法,其特征在于,在所述获取所述失联网关的相邻网关之前,所述方法还包括:2. The method for locating the cause of disconnection according to claim 1, characterized in that, before the acquisition of the adjacent gateway of the disconnected gateway, the method further comprises:针对检测到的每个首次被激活的网关进行如下处理:The following processing is performed for each detected gateway that is activated for the first time:获取所述网关的网关地址信息;Obtain the gateway address information of the gateway;解析所述网关的网关地址信息,获得所述网关的地理位置信息;Parse the gateway address information of the gateway to obtain geographic location information of the gateway;将所述网关的地理位置信息映射至对应的地址向量。Map the geographic location information of the gateway to a corresponding address vector.3.根据权利要求2所述的定位失联原因的方法,其特征在于,所述网关的地址向量包括:第一区域的地址和第二区域的地址,所述第二区域的地址为记录的所述网关的最小地理范围的地址;3. The method for locating the cause of disconnection according to claim 2, wherein the address vector of the gateway comprises: the address of the first area and the address of the second area, and the address of the second area is recorded the address of the minimum geographic range of the gateway;所述获取所述失联网关的相邻网关,包括:The obtaining of the adjacent gateways of the lost gateway includes:根据所述失联网关的标识信息,获取预先存储的所述失联网关的所述地址向量;According to the identification information of the disconnected gateway, obtain the pre-stored address vector of the disconnected gateway;根据所述失联网关的所述第一区域的地址,查找所述第一区域内的网关;Search for a gateway in the first area according to the address of the first area of the missing gateway;获取所述第一区域内的各个网关与所述第二区域之间的距离作为各所述网关与所述失联网关之间的距离;obtaining the distance between each gateway in the first area and the second area as the distance between each gateway and the disconnected gateway;查找与所述失联网关之间的距离处于所述预设范围之内的网关作为所述相邻网关。A gateway whose distance from the disconnected gateway is within the preset range is searched for as the neighboring gateway.4.根据权利要求1所述的定位失联原因的方法,其特征在于,所述网络质量数据包括:在预设时段内所述相邻网关与所述服务平台重连次数或所述相邻网关的光纤衰减率。4. The method for locating the cause of disconnection according to claim 1, wherein the network quality data comprises: the number of times of reconnection between the adjacent gateway and the service platform or the adjacent The fiber attenuation rate of the gateway.5.根据权利要求1所述的定位失联原因的方法,其特征在于,若所述第二判断结果指示所述第二数目小于等于所述第二阈值,所述方法还包括:5. The method for locating the cause of disconnection according to claim 1, wherein if the second judgment result indicates that the second number is less than or equal to the second threshold, the method further comprises:判断所述失联网关的插件是否被启动,获得第三判断结果;Judging whether the plug-in of the disconnected gateway is activated, and obtaining a third judgment result;若所述第三判断结果指示所述失联网关的插件被关停,则定位所述失联原因为插件被关停,由所述相邻网关启动所述失联网关的插件。If the third judgment result indicates that the plug-in of the disconnected gateway is shut down, the reason for the disconnection is determined to be that the plug-in is shut down, and the adjacent gateway starts the plug-in of the disconnected gateway.6.根据权利要求5所述的定位失联原因的方法,其特征在于,若所述第三判断结果指示所述失联网关的插件被启动,所述方法还包括:6. The method for locating the cause of disconnection according to claim 5, wherein if the third judgment result indicates that the plug-in of the disconnection gateway is activated, the method further comprises:判断所述插件的版本是否为最新版本,若所述插件版本不是所述最新版本,则定位所述失联原因为所述插件版本低,由所述相邻网关对所述失联网关的所述插件进行版本升级。Judging whether the version of the plug-in is the latest version, if the plug-in version is not the latest version, then locate the reason for the disconnection as the plug-in version is low, and the adjacent gateway will check the information of the disconnected gateway. Upgrade the version of the above plugin.7.一种定位失联原因的装置,其特征在于,包括:第一获取模块、第二获取模块及定位模块;7. A device for locating a cause of disconnection, comprising: a first acquisition module, a second acquisition module and a positioning module;所述第一获取模块用于获取待定位失联原因的失联网关;The first obtaining module is used to obtain the disconnected gateway of the cause of disconnection to be located;所述第二获取模块用于获取所述失联网关的相邻网关,所述相邻网关与所述失联网关之间的距离处于预设范围之内;The second obtaining module is configured to obtain the adjacent gateways of the disconnected gateway, and the distance between the adjacent gateway and the disconnected gateway is within a preset range;所述定位模块用于获取所述相邻网关的运行数据,定位所述失联网关的失联原因,所述运行数据包括与服务平台的连接状态和网络质量数据;The positioning module is used to obtain the operation data of the adjacent gateway, and locate the cause of the disconnection of the disconnected gateway, and the operation data includes the connection status with the service platform and network quality data;其中,所述获取所述相邻网关的运行数据,定位所述失联网关的失联原因,包括:Wherein, obtaining the operation data of the adjacent gateways and locating the cause of the disconnection of the disconnected gateways includes:获取所述与服务平台的连接状态为与服务平台断开连接的所述相邻网关的数目作为第一数目;Obtain the number of the adjacent gateways whose connection status with the service platform is disconnected from the service platform as the first number;判断所述第一数目是否大于预设的第一阈值,获取第一判断结果;Judging whether the first number is greater than a preset first threshold, and obtaining a first judgment result;若所述第一判断结果指示所述第一数目大于所述第一阈值,则定位所述失联原因为所述预设范围内发生停电故障,或者,定位所述失联原因为所述预设范围内的光纤发生故障;If the first judgment result indicates that the first number is greater than the first threshold, locate the cause of the disconnection as a power failure within the preset range, or locate the cause of the disconnection as the preset The optical fiber within the set range fails;若所述第一判断结果指示所述第一数目小于等于所述第一阈值,则获取所述网络质量数据超过预设的网络质量阈值的所述相邻网关的数目作为第二数目;If the first judgment result indicates that the first number is less than or equal to the first threshold, acquiring the number of the adjacent gateways whose network quality data exceeds the preset network quality threshold as the second number;判断所述第二数目是否大于预设的第二阈值,获得第二判断结果;Judging whether the second number is greater than a preset second threshold, and obtaining a second judgment result;若所述第二判断结果指示所述第二数目大于所述第二阈值,则定位所述失联原因为所述预设范围内的网络异常。If the second determination result indicates that the second number is greater than the second threshold, it is determined that the cause of the disconnection is a network abnormality within the preset range.8.一种电子设备,其特征在于,包括:8. An electronic device, characterized in that, comprising:至少一个处理器;以及,at least one processor; and,与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1-6任一所述的定位失联原因的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any of the claims 1-6 A method of locating the cause of the disconnection.9.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的定位失联原因的方法。9 . A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method for locating a cause of disconnection according to any one of claims 1 to 6 is implemented. 10 .
CN202010908287.3A2020-09-022020-09-02Method and device for locating loss of contact reason, electronic equipment and storage mediumActiveCN112134728B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010908287.3ACN112134728B (en)2020-09-022020-09-02Method and device for locating loss of contact reason, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010908287.3ACN112134728B (en)2020-09-022020-09-02Method and device for locating loss of contact reason, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN112134728A CN112134728A (en)2020-12-25
CN112134728Btrue CN112134728B (en)2022-09-27

Family

ID=73847231

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010908287.3AActiveCN112134728B (en)2020-09-022020-09-02Method and device for locating loss of contact reason, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN112134728B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112949869B (en)*2021-02-082023-07-04上海钧正网络科技有限公司Vehicle disconnection prediction method, system, medium and server
CN114338779A (en)*2021-12-282022-04-12深圳市欧瑞博科技股份有限公司Intelligent gateway keep-alive control method, server, intelligent gateway and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108271191A (en)*2016-12-302018-07-10中国移动通信集团福建有限公司Radio network problems root is because of localization method and device
CN110392379A (en)*2018-04-202019-10-29中国移动通信集团设计院有限公司 A method, device, electronic device and storage medium for locating network problems

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8908538B1 (en)*2010-03-312014-12-09Arris Enterprises, Inc.Impairment discovery using automatic geographical clustering
US20160037366A1 (en)*2014-08-012016-02-04Cox Communications, Inc.Detection and reporting of network impairments
CN109041267B (en)*2018-09-302021-04-23武汉斗鱼网络科技有限公司 A network connection fault processing method, device and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108271191A (en)*2016-12-302018-07-10中国移动通信集团福建有限公司Radio network problems root is because of localization method and device
CN110392379A (en)*2018-04-202019-10-29中国移动通信集团设计院有限公司 A method, device, electronic device and storage medium for locating network problems

Also Published As

Publication numberPublication date
CN112134728A (en)2020-12-25

Similar Documents

PublicationPublication DateTitle
CN107357571B (en)Maintenance method and system for equipment component program
US8928489B2 (en)Ping server
US8195985B2 (en)Network monitor and control apparatus
US9167031B2 (en)Distributed processing system and distributed processing method
CN103763122A (en)Fault information processing method and service system
CN112134728B (en)Method and device for locating loss of contact reason, electronic equipment and storage medium
CN102082710A (en)Method and system for implementing detection on network topology fault of nodes in network
CN106993043B (en)Data communication system and method based on agency
CN110109766B (en)Data interaction method and device based on cross-department and cross-platform data sharing exchange
CN104168126B (en)A kind of unattended intelligent device self-maintenance management system and method
CN111107149A (en)Method for continuously transmitting data of road traffic equipment in disconnected network
CN110942160A (en)Household appliance maintenance service system
CN110649962A (en)Intelligent optical cable on-line monitoring system and monitoring method
CN113970893A (en) A kind of power consumption monitoring terminal equipment and its ready-to-install method
CN107911764B (en)Method for accelerating business management of intensive EPON ONU
CN110646030A (en)Monitoring method and system for maintenance of civil air defense equipment
CN102006185A (en)Internet of things terminal charging query method and internet of things terminal charging query system
CN112367395A (en)Alarm threshold modifying method, equipment and computer readable storage medium
CN107241216A (en)Maintain the method and device of the stable transmission of critical data
CN105070058A (en)Accurate traffic analysis method and system based on real-time traffic video
CN115037719A (en) Code sending method and system
CN110620693A (en)Railway station route remote restart control system and method based on Internet of things
CN108011870B (en)A kind of remote software online upgrading information automatic identification management method
CN102752144B (en)Method and device for processing topology change in soft restart in-service software upgrade process
CN108089968A (en)Method for monitoring state of database of virtual machine by host machine

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp