CN110660205A - Alarm information processing method, device, electronic device and readable storage medium - Google Patents
Alarm information processing method, device, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN110660205A CN110660205A CN201910817866.4A CN201910817866A CN110660205A CN 110660205 A CN110660205 A CN 110660205A CN 201910817866 A CN201910817866 A CN 201910817866A CN 110660205 A CN110660205 A CN 110660205A
- Authority
- CN
- China
- Prior art keywords
- alarm
- alarm information
- user
- information
- administrative division
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B25/00—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
- G08B25/14—Central alarm receiver or annunciator arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明实施例提供了一种报警信息处理方法、装置、电子设备及可读存储介质,应用于视联网GIS系统,视联网GIS系统通过视联网流媒体服务器与多个报警客户端通信连接,包括GIS服务器及多个用户终端;其中,视联网流媒体服务器用于接收多个报警客户端各自发送的第一报警信息,方法包括:接收视联网流媒体服务器发送的第一报警信息,并从第一报警信息中读取第一行政区划代码;从数据库中获取与第一行政区划代码处于同一行政级别的多个第一用户ID;采用各第一用户ID及第一报警信息生成第二报警信息;基于第二报警信息中的各第一ID数组,确定多个第一用户终端;将第二报警信息分别发送给多个第一用户终端。使得用户的报警能在本辖区内得到及时处理。
The embodiments of the present invention provide an alarm information processing method, device, electronic device and readable storage medium, which are applied to the Internet of View GIS system. A GIS server and a plurality of user terminals; wherein, the video network streaming media server is used for receiving the first alarm information sent by the plurality of alarm clients respectively, and the method includes: receiving the first alarm information sent by the video network streaming media server, and from the first alarm information sent by the video network streaming media server. Read the first administrative division code from the alarm information; obtain a plurality of first user IDs at the same administrative level as the first administrative division code from the database; use each first user ID and the first alarm information to generate the second alarm information ; determining a plurality of first user terminals based on each first ID array in the second alarm information; and respectively sending the second alarm information to the plurality of first user terminals. The user's alarm can be dealt with in a timely manner within the jurisdiction.
Description
技术领域technical field
本发明涉及数据处理技术领域,特别是涉及一种报警信息方法、一种报警信息处理装置、一种电子设备以及一种计算机可读存储介质。The present invention relates to the technical field of data processing, and in particular, to an alarm information method, an alarm information processing apparatus, an electronic device and a computer-readable storage medium.
背景技术Background technique
随着视联网业务在全国范围内的普及发展,视联网高清视联交互技术在各行业中发挥着举足轻重的作用。With the popularization and development of the Internet of Things business across the country, the Internet of Things high-definition interactive technology plays a pivotal role in various industries.
视联网采用全球最先进的实时高清视频交换技术,实现了目前互联网无法实现的全网高清视频实时传输,将高清视频会议、视频监控、远程培训、智能化监控分析、应急指挥、视频电话、现场直播、电视邮件、信息发布等数十种视频、语音、图片、文字、通讯、数据等服务全部整合在一个系统平台,通过多种终端设备实现高清品质视频通信实时互联互通。The video network adopts the world's most advanced real-time high-definition video switching technology, which realizes the real-time transmission of high-definition video across the entire network that cannot be achieved by the Internet at present. Dozens of video, voice, picture, text, communication, data and other services such as live broadcast, TV mail, and information release are all integrated into one system platform, and real-time interconnection of high-definition video communication is realized through a variety of terminal devices.
在现有的视联网服务体系中,视联网GIS系统(Geographic Information System或Geo-Information system,地理信息系统)是应用于视联网中在的GIS天眼调度应用系统(简称视联网GIS系统),可以实现远程报警等功能。该报警功能的实现主要是通过视联网GIS系统接收报警客户端发送的报警信息,以将报警信息进行发布,使得GIS用户可以看到报警信息以对报警信息进行处理。In the existing Internet of Vision service system, the Internet of Vision GIS system (Geographic Information System or Geo-Information system, geographic information system) is a GIS Tianyan scheduling application system (referred to as the Internet of Vision GIS system) applied to the Internet of Vision. Realize functions such as remote alarm. The realization of the alarm function is mainly to receive the alarm information sent by the alarm client through the Internet of Things GIS system, so as to publish the alarm information, so that the GIS users can see the alarm information and process the alarm information.
随着视联网GIS系统的远程报警功能被越来越多的客户应用,其覆盖的地理范围也随之扩大,进而就面临一个比较现实的问题:如何实现报警信息能被有效处理,从而使得视联网GIS系统能在非常广阔的地理范围内行之有效地解决客户发送的报警。With the remote alarm function of the Internet of Things GIS system being applied by more and more customers, its geographical coverage has also expanded, and then it is faced with a more realistic problem: how to realize the effective processing of alarm information, so that the video can be effectively processed. A networked GIS system can effectively resolve alarms sent by customers over a very broad geographic range.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种报警信息处理方法、一种报警信息处理装置、一种电子设备以及一种计算机可读存储介质。In view of the above problems, embodiments of the present invention are proposed to provide an alarm information processing method, an alarm information processing apparatus, an electronic device, and a computer-readable storage device that overcome the above problems or at least partially solve the above problems medium.
本发明实施例的第一方面,提供一种报警信息处理方法,所述方法应用于视联网GIS系统,所述视联网GIS系统通过视联网流媒体服务器与多个报警客户端通信连接,所述视联网GIS系统包括GIS服务器及多个用户终端,所述视联网GIS系统配置有数据库;其中,所述视联网流媒体服务器用于接收所述多个报警客户端各自发送的第一报警信息;针对每个所述第一报警信息执行所述报警信息处理方法,包括:In a first aspect of the embodiments of the present invention, a method for processing alarm information is provided. The method is applied to the Internet of View GIS system. The Internet-of-view GIS system includes a GIS server and a plurality of user terminals, and the Internet-of-view GIS system is configured with a database; wherein, the Internet-of-view streaming media server is used to receive the first alarm information sent by each of the plurality of alarm clients; Executing the alarm information processing method for each of the first alarm information includes:
接收所述视联网流媒体服务器发送的所述第一报警信息,并从所述第一报警信息中读取第一行政区划代码;receiving the first alarm information sent by the video network streaming media server, and reading the first administrative division code from the first alarm information;
从所述数据库中获取与所述第一行政区划代码处于同一行政级别的多个第一用户ID;Acquiring a plurality of first user IDs at the same administrative level as the first administrative division code from the database;
将各所述第一用户ID封装进所述第一报警信息,得到第二报警信息,所述第二报警信息中包括与各所述第一用户ID各自对应的第一ID数组;Encapsulating each of the first user IDs into the first alarm information to obtain second alarm information, and the second alarm information includes a first ID array corresponding to each of the first user IDs;
基于各所述第一ID数组,确定所述第二报警信息针对的多个第一用户终端;determining, based on each of the first ID arrays, a plurality of first user terminals targeted by the second alarm information;
将所述第二报警信息分别发送给所述多个第一用户终端。Sending the second alarm information to the plurality of first user terminals respectively.
可选地,将所述第二报警信息分别发送给所述多个第一用户终端,包括:Optionally, respectively sending the second alarm information to the multiple first user terminals, including:
在所述多个第一用户终端中确定当前登录的至少一个第二用户终端;determining at least one second user terminal currently logged in from among the plurality of first user terminals;
通过websocket通道将所述第二报警信息发送给各所述第二用户终端。The second alarm information is sent to each of the second user terminals through a websocket channel.
可选地,所述方法还包括:Optionally, the method further includes:
为所述第二报警信息绑定转警触发条件和转警结束条件;Binding the triggering condition of alarm transfer and the ending condition of alarm transfer to the second alarm information;
在将所述第二报警信息发送给各所述第一用户终端之后,所述方法还包括:After sending the second alarm information to each of the first user terminals, the method further includes:
步骤S1,判断是否满足所述转警触发条件;若满足所述转警触发条件,则确定位于所述第一行政区划代码上N个级别的第二行政区划代码所对应的多个第三用户终端,将所述第一报警信息发送给所述多个第三用户终端,并进入步骤S2;Step S1, judging whether the alarm transfer trigger condition is met; if the alarm transfer trigger condition is met, then determine a plurality of third users corresponding to the second administrative division codes at N levels on the first administrative division code terminal, sending the first alarm information to the plurality of third user terminals, and entering step S2;
步骤S2,判断是否满足所述转警结束条件,若满足所述转警结束条件,则生成针对所述第一报警信息的结案信息;若不满足所述转警结束条件,则返回上述步骤S1。Step S2, judging whether the end condition of the alarm transfer is satisfied, if the end condition of the alarm transfer is satisfied, then the case closing information for the first alarm information is generated; .
可选地,为所述第二报警信息绑定转警触发条件及转警结束条件,包括:Optionally, binding an alarm transfer trigger condition and an alarm transfer end condition for the second alarm information, including:
为所述第二报警信息绑定定时任务、转警信令监听任务及省级行政区划代码;所述定时任务设置有倒计时时间;所述定时任务用于在所述倒计时时间内监听是否接收到针对所述第二报警信息的接警信令,所述转警信令监听任务用于监听是否接收到针对所述第二报警信息的转警信令,所述省级行政区划代码与所述第一行政区划代码相对应;Binding a timing task, an alarm transfer signaling monitoring task and a provincial administrative division code for the second alarm information; the timing task is provided with a countdown time; the timing task is used to monitor whether the received For the alarm reception signaling of the second alarm information, the alarm transfer signaling monitoring task is used to monitor whether the alarm transfer signaling for the second alarm information is received, and the provincial administrative division code is the same as the first alarm signal. 1. Corresponding to the administrative division code;
将所述定时任务未监听到所述接警信令,和/或,将所述转警信令监听任务监听到所述转警信令作为所述转警触发条件;将所述第三用户终端对应的行政区划代码为所述省级行政区划代码作为所述转警结束条件;The timing task does not monitor the alarm-receiving signaling, and/or, the alarm-transfer signaling monitoring task monitors the alarm-transfer signaling as the alarm-transfer triggering condition; the third user terminal The corresponding administrative division code is the provincial administrative division code as the condition for ending the alarm transfer;
所述方法还包括:The method also includes:
若确定不满足所述转警触发条件,则取消所述定时任务及所述转警信令监听任务。If it is determined that the alarm transfer triggering condition is not met, the timing task and the alarm transfer signaling monitoring task are canceled.
可选地,为所述第二报警信息绑定定时任务,包括:Optionally, binding a timing task to the second alarm information, including:
根据所述第二报警信息的报警标识生成针对所述第二报警信息的key,并将所述key存入redis缓存;Generate a key for the second alarm information according to the alarm identification of the second alarm information, and store the key in the redis cache;
在所述redis缓存中为所述key绑定所述定时任务,并为所述定时任务设置所述倒计时时间;Bind the timing task for the key in the redis cache, and set the countdown time for the timing task;
取消所述定时任务,包括:Cancelling the scheduled task includes:
从所述redis缓存中取消所述key与所述定时任务的绑定关系,和/或,删除所述key。The binding relationship between the key and the scheduled task is cancelled from the redis cache, and/or the key is deleted.
可选地,所述方法还包括:Optionally, the method further includes:
将所述第二报警信息存入所述数据库,其中,所述第二报警信息包括所述报警标识;storing the second alarm information in the database, wherein the second alarm information includes the alarm identification;
确定位于所述第一行政区划代码上N个级别的第二行政区划代码所对应的多个第三用户终端,将所述第一报警信息发送给所述多个第三用户终端,包括:Determining multiple third user terminals corresponding to the second administrative division codes at N levels on the first administrative division code, and sending the first alarm information to the multiple third user terminals, including:
从所述数据库中获取与确定出的所述第二行政区划代码同处一个行政级别的多个第二用户ID;Acquiring from the database multiple second user IDs at the same administrative level as the determined second administrative division code;
基于所述key,从所述redis缓存中获取所述第二报警信息的报警标识;Based on the key, obtain the alarm identification of the second alarm information from the redis cache;
基于所述报警标识,从所述数据库中获取所述第二报警信息,并基于所述第二用户ID,更新所述第二报警信息中的第一ID数组,得到第三报警信息,所述第三报警信息中包括与各所述第二用户ID各自对应的第二ID数组;Based on the alarm identifier, the second alarm information is obtained from the database, and based on the second user ID, the first ID array in the second alarm information is updated to obtain third alarm information, the The third alarm information includes a second ID array corresponding to each of the second user IDs;
基于所述第二ID数组,确定所述第三报警信息针对的多个第三用户终端;determining, based on the second ID array, a plurality of third user terminals targeted by the third alarm information;
将所述第三报警信息分别发送给所述多个第三用户终端。Sending the third alarm information to the plurality of third user terminals respectively.
本发明实施例的第二方面,提提供一种报警信息处理装置,所述装置应用于视联网GIS系统,所述视联网GIS系统通过视联网流媒体服务器与报警客户端通信连接,所述视联网GIS系统包括GIS服务器及多个用户终端,所述视联网GIS系统配置有数据库;其中,所述视联网流媒体服务器用于接收所述多个报警客户端各自发送的第一报警信息;所述装置包括:In a second aspect of the embodiments of the present invention, an alarm information processing device is provided. The device is applied to a video network GIS system. The video network GIS system is connected to an alarm client through a video network streaming media server. The networked GIS system includes a GIS server and a plurality of user terminals, and the video networked GIS system is configured with a database; wherein, the video networked streaming media server is used to receive the first alarm information sent by each of the plurality of alarm clients; The device includes:
报警信息接收模块,用于接收所述视联网流媒体服务器发送的所述第一报警信息,并从所述第一报警信息中读取第一行政区划代码;an alarm information receiving module, configured to receive the first alarm information sent by the video network streaming media server, and read the first administrative division code from the first alarm information;
用户ID获取模块,用于从所述数据库中获取与所述第一行政区划代码处于同一行政级别的多个第一用户ID;a user ID acquisition module for acquiring a plurality of first user IDs that are at the same administrative level as the first administrative division code from the database;
报警信息编辑模块,用于采用所述第一用户ID及所述第一报警信息,生成第二报警信息,所述第二报警信息中包括与各所述第一用户ID各自对应的第一ID数组;an alarm information editing module for generating second alarm information by using the first user ID and the first alarm information, wherein the second alarm information includes a first ID corresponding to each of the first user IDs array;
用户终端确定模块,用于基于各所述第一ID数组,确定所述第二报警信息针对的多个第一用户终端;a user terminal determination module, configured to determine, based on each of the first ID arrays, a plurality of first user terminals targeted by the second alarm information;
报警信息发送模块,用于将所述第二报警信息分别发送给所述多个第一用户终端。An alarm information sending module, configured to send the second alarm information to the plurality of first user terminals respectively.
本发明实施例的第三方面,还公开了一种电子设备,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如本发明实施例所述的一个或多个的报警信息处理方法。In a third aspect of the embodiments of the present invention, an electronic device is also disclosed, including: one or more processors; and one or more machine-readable media on which instructions are stored, when the one or more When executed by the processor, the apparatus is caused to execute one or more alarm information processing methods according to the embodiments of the present invention.
本发明实施例的第四方面,还公开了一种计算机可读存储介质,其存储的计算机程序使得处理器执行如本发明实施例所述的报警信息处理方法。In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is further disclosed, and a computer program stored in the storage medium enables a processor to execute the alarm information processing method according to the embodiments of the present invention.
本发明实施例包括以下优点:The embodiments of the present invention include the following advantages:
本发明实施例中,视联网GIS系统从视联网流媒体服务器上获取多个报警客户端各自发送的第一报警信息,根据第一报警信息中包括的第一行政区划代码,从数据库中获取与该第一行政区划代码处于同一行政级别的多个第一用户ID,并采用第一报警信息和各第一用户ID生成第二报警信息,以根据第二报警信息中包括的第一ID数组,确定与第一用户ID各自对应的第一用户终端,进而将第二报警信息发送给第一用户终端。由于第一用户ID与第一行政区划代码处于同一行政级别,则第一用户终端则与发送该报警信息的报警客户端处于同一辖区,也即是第一用户终端则与发送该报警信息的报警客户端处于同一辖区,这样,使得该条第一报警信息能被在自身所在辖区的GIS用户查看和处理。进而使得在非常广阔的地理范围内分布于不同辖区的报警客户端发送的报警信息都能被本辖区的GIS用户接收和处理,进而使得用户的远程报警能在本辖区内就能得到及时处理,行之有效地满足了各个用户在分布广泛的地理范围内发送的报警。In the embodiment of the present invention, the Internet-of-view GIS system obtains the first alarm information sent by the multiple alarm clients from the streaming media server of the Internet of View, and obtains the first alarm information from the database according to the first administrative division code included in the first alarm information. The first administrative division code is in a plurality of first user IDs of the same administrative level, and the first alarm information and each first user ID are used to generate the second alarm information, so that according to the first ID array included in the second alarm information, Determine the first user terminals corresponding to the first user IDs, and then send the second alarm information to the first user terminals. Since the first user ID and the first administrative division code are in the same administrative level, the first user terminal is in the same jurisdiction as the alarm client that sent the alarm information, that is, the first user terminal is in the same jurisdiction as the alarm client that sent the alarm information. The client is in the same jurisdiction, so that the first alarm information can be viewed and processed by the GIS users in the jurisdiction where the client is located. In this way, the alarm information sent by the alarm clients distributed in different jurisdictions in a very wide geographical range can be received and processed by the GIS users in the jurisdiction, so that the remote alarms of the users can be processed in time in the jurisdiction. Effectively meet the alarm sent by various users in a wide geographical range.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1是本发明的一种视联网的组网示意图;Fig. 1 is the networking schematic diagram of a kind of video network of the present invention;
图2是本发明的一种节点服务器的硬件结构示意图;2 is a schematic diagram of the hardware structure of a node server of the present invention;
图3是本发明的一种接入交换机的硬件结构示意图;3 is a schematic diagram of a hardware structure of an access switch of the present invention;
图4是本发明的一种以太网协转网关的硬件结构示意图;4 is a schematic diagram of the hardware structure of an Ethernet protocol conversion gateway of the present invention;
图5是本发明实施例的一种报警信息处理方法的应用环境图;5 is an application environment diagram of a method for processing alarm information according to an embodiment of the present invention;
图6是本发明实施例的一种报警信息处理方法的步骤流程图;6 is a flowchart of steps of a method for processing alarm information according to an embodiment of the present invention;
图7是本发明实施例的一种可选实施例的报警信息处理方法的步骤流程图;FIG. 7 is a flowchart of steps of a method for processing alarm information according to an optional embodiment of the embodiment of the present invention;
图8是本发明实施例提供的为所述第二报警信息绑定定时任务的步骤流程图;8 is a flowchart of steps for binding a timing task for the second alarm information provided by an embodiment of the present invention;
图9是本发明实施例的一种报警信息处理装置的结构示意图。FIG. 9 is a schematic structural diagram of an alarm information processing apparatus according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
视联网是网络发展的重要里程碑,是一个实时网络,能够实现高清视频实时传输,将众多互联网应用推向高清视频化,高清面对面。Video networking is an important milestone in network development. It is a real-time network that can realize real-time transmission of high-definition video, and push many Internet applications to high-definition video, high-definition face-to-face.
视联网采用实时高清视频交换技术,可以在一个网络平台上将所需的服务,如高清视频会议、视频监控、智能化监控分析、应急指挥、数字广播电视、延时电视、网络教学、现场直播、VOD点播、电视邮件、个性录制(PVR)、内网(自办)频道、智能化视频播控、信息发布等数十种视频、语音、图片、文字、通讯、数据等服务全部整合在一个系统平台,通过电视或电脑实现高清品质视频播放。Video networking adopts real-time high-definition video switching technology, which can provide required services on a network platform, such as high-definition video conferencing, video surveillance, intelligent monitoring and analysis, emergency command, digital broadcast TV, delayed TV, online teaching, live broadcast , VOD on demand, TV mail, personal recording (PVR), intranet (self-organized) channels, intelligent video broadcast control, information release and other dozens of video, voice, picture, text, communication, data and other services are all integrated into one The system platform can realize high-definition video playback through TV or computer.
为使本领域技术人员更好地理解本发明实施例,以下对视联网进行介绍:In order to make those skilled in the art better understand the embodiments of the present invention, video networking is introduced as follows:
视联网所应用的部分技术如下所述:Some of the technologies used in the Internet of Things are as follows:
网络技术(NetworkTechnology)Network Technology
视联网的网络技术创新改良了传统以太网(Ethernet),以面对网络上潜在的巨大第一视频流量。不同于单纯的网络分组包交换(Packet Switching)或网络电路交换(Circuit Switching),视联网技术采用Packet Switching满足Streaming需求。视联网技术具备分组交换的灵活、简单和低价,同时具备电路交换的品质和安全保证,实现了全网交换式虚拟电路,以及数据格式的无缝连接。The network technology innovation of the video network improves the traditional Ethernet (Ethernet) to face the potential huge first video traffic on the network. Different from simple network packet switching (Packet Switching) or network circuit switching (Circuit Switching), the Internet of View technology adopts Packet Switching to meet the requirements of Streaming. The Internet of Things technology has the flexibility, simplicity and low price of packet switching, and at the same time has the quality and security assurance of circuit switching, and realizes the entire network of switched virtual circuits and seamless connection of data formats.
交换技术(Switching Technology)Switching Technology
视联网采用以太网的异步和包交换两个优点,在全兼容的前提下消除了以太网缺陷,具备全网端到端无缝连接,直通用户终端,直接承载IP数据包。用户数据在全网范围内不需任何格式转换。视联网是以太网的更高级形态,是一个实时交换平台,能够实现目前互联网无法实现的全网大规模高清视频实时传输,将众多网络视频应用推向高清化、统一化。The Internet of Things adopts the asynchronous and packet switching advantages of Ethernet, and eliminates the defects of Ethernet under the premise of full compatibility. User data does not need any format conversion in the whole network. Video networking is a more advanced form of Ethernet. It is a real-time switching platform that can realize the real-time transmission of large-scale high-definition video across the entire network that cannot be achieved by the Internet, and push many network video applications to high-definition and unified.
服务器技术(ServerTechnology)Server Technology
视联网和统一视频平台上的服务器技术不同于传统意义上的服务器,它的流媒体传输是建立在面向连接的基础上,其数据处理能力与流量、通讯时间无关,单个网络层就能够包含信令及数据传输。对于语音和视频业务来说,视联网和统一视频平台流媒体处理的复杂度比数据处理简单许多,效率比传统服务器大大提高了百倍以上。The server technology on the video networking and unified video platform is different from the server in the traditional sense. Its streaming media transmission is based on connection-oriented, and its data processing capability has nothing to do with traffic and communication time. A single network layer can contain information. command and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than data processing, and the efficiency is greatly improved by more than 100 times compared to traditional servers.
储存器技术(Storage Technology)Storage Technology
统一视频平台的超高速储存器技术为了适应超大容量和超大流量的媒体内容而采用了最先进的实时操作系统,将服务器指令中的节目信息映射到具体的硬盘空间,媒体内容不再经过服务器,瞬间直接送达到用户终端,用户等待一般时间小于0.2秒。最优化的扇区分布大大减少了硬盘磁头寻道的机械运动,资源消耗仅占同等级IP互联网的20%,但产生大于传统硬盘阵列3倍的并发流量,综合效率提升10倍以上。The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content of large capacity and large flow, and maps the program information in the server instruction to the specific hard disk space, and the media content no longer passes through the server. It is directly delivered to the user terminal in an instant, and the general waiting time of the user is less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical movement of the hard disk head seeking, and the resource consumption only accounts for 20% of the same level of IP Internet, but it generates 3 times more concurrent traffic than traditional hard disk arrays, and the overall efficiency is increased by more than 10 times.
网络安全技术(Network Security Technology)Network Security Technology
视联网的结构性设计通过每次服务单独许可制、设备与用户数据完全隔离等方式从结构上彻底根除了困扰互联网的网络安全问题,一般不需要杀毒程序、防火墙,杜绝了黑客与病毒的攻击,为用户提供结构性的无忧安全网络。The structural design of the Internet of Things completely eliminates the network security problems that plague the Internet through separate licensing for each service and complete isolation of equipment and user data. Generally, anti-virus programs and firewalls are not required, and hackers and viruses are prevented from attacking. , to provide users with a structured worry-free safety network.
服务创新技术(Service Innovation Technology)Service Innovation Technology
统一视频平台将业务与传输融合在一起,不论是单个用户、私网用户还是一个网络的总合,都不过是一次自动连接。用户终端、机顶盒或PC直接连到统一视频平台,获得丰富多彩的各种形态的多媒体视频服务。统一视频平台采用“菜谱式”配表模式来替代传统的复杂应用编程,可以使用非常少的代码即可实现复杂的应用,实现“无限量”的新业务创新。The unified video platform integrates services and transmission. Whether it is a single user, a private network user, or the aggregate of a network, it is just an automatic connection. User terminals, set-top boxes or PCs are directly connected to the unified video platform to obtain a variety of multimedia video services in various forms. The unified video platform adopts the "recipe-style" table matching mode to replace the traditional complex application programming. It can realize complex applications with very little code, and realize "unlimited" new business innovation.
视联网的组网如下所述:The networking of the Internet of Things is as follows:
视联网是一种集中控制的网络结构,该网络可以是树型网、星型网、环状网等等类型,但在此基础上网络中需要有集中控制节点来控制整个网络。The Internet of Things is a centralized control network structure. The network can be a tree network, a star network, a ring network, etc., but on this basis, a centralized control node is required in the network to control the entire network.
如图1所示,视联网分为接入网和城域网两部分。As shown in Figure 1, the Internet of Things is divided into two parts: the access network and the metropolitan area network.
接入网部分的设备主要可以分为3类:节点服务器,接入交换机,终端(包括各种机顶盒、编码板、存储器等)。节点服务器与接入交换机相连,接入交换机可以与多个终端相连,并可以连接以太网。The equipment in the access network part can be mainly divided into three categories: node server, access switch, and terminal (including various set-top boxes, coding boards, memory, etc.). The node server is connected to the access switch, and the access switch can be connected to multiple terminals and can be connected to Ethernet.
其中,节点服务器是接入网中起集中控制功能的节点,可控制接入交换机和终端。节点服务器可直接与接入交换机相连,也可以直接与终端相连。The node server is a node in the access network that functions as a centralized control, and can control access switches and terminals. The node server can be directly connected to the access switch, or it can be directly connected to the terminal.
类似的,城域网部分的设备也可以分为3类:城域服务器,节点交换机,节点服务器。城域服务器与节点交换机相连,节点交换机可以与多个节点服务器相连。Similarly, the equipment in the metropolitan area network can also be divided into three categories: metropolitan area server, node switch, and node server. The metropolitan area server is connected with the node switch, and the node switch can be connected with multiple node servers.
其中,节点服务器即为接入网部分的节点服务器,即节点服务器既属于接入网部分,又属于城域网部分。The node server is the node server of the access network part, that is, the node server belongs to both the access network part and the metropolitan area network part.
城域服务器是城域网中起集中控制功能的节点,可控制节点交换机和节点服务器。城域服务器可直接连接节点交换机,也可直接连接节点服务器。The metropolitan area server is a node with centralized control function in the metropolitan area network, which can control the node switch and the node server. The metropolitan area server can be directly connected to the node switch or directly connected to the node server.
由此可见,整个视联网络是一种分层集中控制的网络结构,而节点服务器和城域服务器下控制的网络可以是树型、星型、环状等各种结构。It can be seen that the entire VisionLink network is a network structure controlled by layers and centralized, and the network controlled by the node server and the metro server can be tree, star, ring and other structures.
形象地称,接入网部分可以组成统一视频平台(虚线圈中部分),多个统一视频平台可以组成视联网;每个统一视频平台可以通过城域以及广域视联网互联互通。Figuratively, the access network part can form a unified video platform (the part in the dashed circle), and multiple unified video platforms can form a video network; each unified video platform can be interconnected through the metro and wide-area video networks.
视联网设备分类Classification of Internet-connected devices
1.1本发明实施例的视联网中的设备主要可以分为3类:服务器,交换机(包括以太网协转网关),终端(包括各种机顶盒,编码板,存储器等)。视联网整体上可以分为城域网(或者国家网、全球网等)和接入网。1.1 The devices in the video networking according to the embodiment of the present invention can be mainly divided into three categories: servers, switches (including Ethernet protocol conversion gateways), and terminals (including various set-top boxes, coding boards, memories, etc.). As a whole, the Internet of Views can be divided into a metropolitan area network (or a national network, a global network, etc.) and an access network.
1.2其中接入网部分的设备主要可以分为3类:节点服务器,接入交换机(包括以太网协转网关),终端(包括各种机顶盒,编码板,存储器等)。1.2 The equipment in the access network part can be mainly divided into three categories: node server, access switch (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding boards, memory, etc.).
各接入网设备的具体硬件结构为:The specific hardware structure of each access network device is as follows:
节点服务器:Node server:
如图2所示,主要包括网络接口模块201、交换引擎模块202、CPU模块203、磁盘阵列模块204;As shown in FIG. 2 , it mainly includes a
其中,网络接口模块201,CPU模块203、磁盘阵列模块204进来的包均进入交换引擎模块202;交换引擎模块202对进来的包进行查地址表205的操作,从而获得包的导向信息;并根据包的导向信息把该包存入对应的包缓存器206的队列;如果包缓存器206的队列接近满,则丢弃;交换引擎模块202轮询所有包缓存器队列,如果满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。磁盘阵列模块204主要实现对硬盘的控制,包括对硬盘的初始化、读写等操作;CPU模块203主要负责与接入交换机、终端(图中未示出)之间的协议处理,对地址表205(包括下行协议包地址表、上行协议包地址表、数据包地址表)的配置,以及,对磁盘阵列模块204的配置。Among them, the incoming packets from the
接入交换机:Access switch:
如图3所示,主要包括网络接口模块(下行网络接口模块301、上行网络接口模块302)、交换引擎模块303和CPU模块304;As shown in FIG. 3 , it mainly includes a network interface module (downlink network interface module 301, uplink network interface module 302), a switching engine module 303 and a CPU module 304;
其中,下行网络接口模块301进来的包(上行数据)进入包检测模块305;包检测模块305检测包的目地地址(DA)、源地址(SA)、数据包类型及包长度是否符合要求,如果符合,则分配相应的流标识符(stream-代码),并进入交换引擎模块303,否则丢弃;上行网络接口模块302进来的包(下行数据)进入交换引擎模块303;CPU模块304进来的数据包进入交换引擎模块303;交换引擎模块303对进来的包进行查地址表306的操作,从而获得包的导向信息;如果进入交换引擎模块303的包是下行网络接口往上行网络接口去的,则结合流标识符(stream-代码)把该包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃;如果进入交换引擎模块303的包不是下行网络接口往上行网络接口去的,则根据包的导向信息,把该数据包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃。Wherein, the incoming packet (uplink data) from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the destination address (DA), source address (SA), data packet type and packet length of the packet meet the requirements, if If it matches, assign the corresponding stream identifier (stream-code) and enter the switching engine module 303, otherwise discard it; the incoming packet (downlink data) from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet from the CPU module 304 Enter the switching engine module 303; the switching engine module 303 performs the operation of looking up the address table 306 for the incoming packet, thereby obtaining the orientation information of the packet; if the packet entering the switching engine module 303 is from the downlink network interface to the uplink network interface, then combine The stream identifier (stream-code) stores the packet into the queue of the corresponding packet buffer 307; if the queue of the packet buffer 307 is close to full, it is discarded; if the packet entering the switching engine module 303 is not a downstream network interface, it goes upstream If the data packet goes to the network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the direction information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
交换引擎模块303轮询所有包缓存器队列,可以包括两种情形:The switching engine module 303 polls all packet buffer queues, which can include two situations:
如果该队列是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零;3)获得码率控制模块产生的令牌;If the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero; 3) The token generated by the rate control module is obtained ;
如果该队列不是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。If the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the sending buffer of the port is not full; 2) the packet counter of the queue is greater than zero.
码率控制模块308是由CPU模块304来配置的,在可编程的间隔内对所有下行网络接口往上行网络接口去的包缓存器队列产生令牌,用以控制上行转发的码率。The rate control module 308 is configured by the CPU module 304, and generates tokens for the packet buffer queues going from all downlink network interfaces to uplink network interfaces at programmable intervals, so as to control the rate of uplink forwarding.
CPU模块304主要负责与节点服务器之间的协议处理,对地址表306的配置,以及,对码率控制模块308的配置。The CPU module 304 is mainly responsible for the protocol processing with the node server, the configuration of the address table 306 , and the configuration of the rate control module 308 .
以太网协转网关: Ethernet protocol conversion gateway :
如图4所示,主要包括网络接口模块(下行网络接口模块401、上行网络接口模块402)、交换引擎模块403、CPU模块404、包检测模块405、码率控制模块408、地址表406、包缓存器407和MAC添加模块409、MAC删除模块410。As shown in Figure 4, it mainly includes a network interface module (downlink
其中,下行网络接口模块401进来的数据包进入包检测模块405;包检测模块405检测数据包的以太网MAC DA、以太网MAC SA、以太网length or frame type、视联网目地地址DA、视联网源地址SA、视联网数据包类型及包长度是否符合要求,如果符合则分配相应的流标识符(stream-代码);然后,由MAC删除模块410减去MAC DA、MAC SA、length or frametype(2byte),并进入相应的接收缓存,否则丢弃;Among them, the data packets coming from the downlink
下行网络接口模块401检测该端口的发送缓存,如果有包则根据包的视联网目地地址DA获知对应的终端的以太网MAC DA,添加终端的以太网MAC DA、以太网协转网关的MACSA、以太网length or frame type,并发送。The downlink
以太网协转网关中其他模块的功能与接入交换机类似。The functions of other modules in the Ethernet protocol conversion gateway are similar to that of the access switch.
终端:terminal:
主要包括网络接口模块、业务处理模块和CPU模块;例如,机顶盒主要包括网络接口模块、视音频编解码引擎模块、CPU模块;编码板主要包括网络接口模块、视音频编码引擎模块、CPU模块;存储器主要包括网络接口模块、CPU模块和磁盘阵列模块。Mainly include network interface module, service processing module and CPU module; for example, set-top box mainly includes network interface module, video and audio codec engine module, CPU module; encoding board mainly includes network interface module, video and audio encoding engine module, CPU module; memory It mainly includes network interface module, CPU module and disk array module.
1.3城域网部分的设备主要可以分为2类:节点服务器,节点交换机,城域服务器。其中,节点交换机主要包括网络接口模块、交换引擎模块和CPU模块;城域服务器主要包括网络接口模块、交换引擎模块和CPU模块构成。1.3 The equipment in the metropolitan area network can be mainly divided into two categories: node server, node switch, and metropolitan area server. Among them, the node switch mainly includes a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly includes a network interface module, a switching engine module and a CPU module.
2、视联网数据包定义2. Definition of Internet Data Packets
2.1接入网数据包定义2.1 Definition of Access Network Data Packets
接入网的数据包主要包括以下几部分:目的地址(DA)、源地址(SA)、保留字节、payload(PDU)、CRC。The data packet of the access network mainly includes the following parts: destination address (DA), source address (SA), reserved bytes, payload (PDU), and CRC.
如下表所示,接入网的数据包主要包括以下几部分:As shown in the table below, the data packets of the access network mainly include the following parts:
其中:in:
目的地址(DA)由8个字节(byte)组成,第一个字节表示数据包的类型(例如各种协议包、组播数据包、单播数据包等),最多有256种可能,第二字节到第六字节为城域网地址,第七、第八字节为接入网地址;The destination address (DA) consists of 8 bytes (byte), the first byte indicates the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are up to 256 possibilities, The second to sixth bytes are the metropolitan area network address, and the seventh and eighth bytes are the access network address;
源地址(SA)也是由8个字节(byte)组成,定义与目的地址(DA)相同;The source address (SA) is also composed of 8 bytes (byte), and the definition is the same as the destination address (DA);
保留字节由2个字节组成;Reserved bytes consist of 2 bytes;
payload部分根据不同的数据报的类型有不同的长度,如果是各种协议包的话是64个字节,如果是单组播数据包话是32+1024=1056个字节,当然并不仅仅限于以上2种;The payload part has different lengths according to different types of datagrams. If it is a variety of protocol packets, it is 64 bytes. If it is a single multicast data packet, it is 32+1024=1056 bytes. Of course, it is not limited to Above 2 kinds;
CRC有4个字节组成,其计算方法遵循标准的以太网CRC算法。The CRC consists of 4 bytes, and its calculation method follows the standard Ethernet CRC algorithm.
2.2城域网数据包定义2.2 MAN Data Packet Definition
城域网的拓扑是图型,两个设备之间可能有2种、甚至2种以上的连接,即节点交换机和节点服务器、节点交换机和节点交换机、节点交换机和节点服务器之间都可能超过2种连接。但是,城域网设备的城域网地址却是唯一的,为了精确描述城域网设备之间的连接关系,在本发明实施例中引入参数:标签,来唯一描述一个城域网设备。The topology of the metropolitan area network is a graph. There may be two or even more than two connections between two devices, that is, there may be more than two connections between node switches and node servers, between node switches and node switches, and between node switches and node servers. kind of connection. However, the metropolitan area network address of the metropolitan area network equipment is unique. In order to accurately describe the connection relationship between the metropolitan area network equipment, a parameter: label is introduced in the embodiment of the present invention to uniquely describe a metropolitan area network equipment.
本说明书中标签的定义和MPLS(Multi-Protocol Label Switch,多协议标签交换)的标签的定义类似,假设设备A和设备B之间有两个连接,那么数据包从设备A到设备B就有2个标签,数据包从设备B到设备A也有2个标签。标签分入标签、出标签,假设数据包进入设备A的标签(入标签)是0x0000,这个数据包离开设备A时的标签(出标签)可能就变成了0x0001。城域网的入网流程是集中控制下的入网过程,也就意味着城域网的地址分配、标签分配都是由城域服务器主导的,节点交换机、节点服务器都是被动的执行而已,这一点与MPLS的标签分配是不同的,MPLS的标签分配是交换机、服务器互相协商的结果。The definition of labels in this specification is similar to the definition of MPLS (Multi-Protocol Label Switch, Multi-Protocol Label Switch) labels. Assuming that there are two connections between device A and device B, the data packets from device A to device B have 2 labels, packets from device B to device A also have 2 labels. Labels are divided into incoming labels and outgoing labels. Assuming that the label (incoming label) of the data packet entering device A is 0x0000, the label (outgoing label) of the data packet when it leaves device A may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, which means that the address allocation and label allocation of the metropolitan area network are dominated by the metropolitan area server, and the node switches and node servers are all passively executed. Different from MPLS label assignment, MPLS label assignment is the result of mutual negotiation between switches and servers.
如下表所示,城域网的数据包主要包括以下几部分:As shown in the table below, the data packets of the metropolitan area network mainly include the following parts:
即目的地址(DA)、源地址(SA)、保留字节(Reserved)、标签、payload(PDU)、CRC。其中,标签的格式可以参考如下定义:标签是32bit,其中高16bit保留,只用低16bit,它的位置是在数据包的保留字节和payload之间。Namely destination address (DA), source address (SA), reserved bytes (Reserved), label, payload (PDU), CRC. Among them, the format of the label can refer to the following definition: the label is 32 bits, of which the upper 16 bits are reserved, and only the lower 16 bits are used, and its position is between the reserved bytes of the data packet and the payload.
基于上述视联网的特性,提出本申请的核心构思之一,在视联网GIS系统中,针对接收到的视联网流媒体服务器发送的每一个报警信息,根据报警信息的行政区划代码,将报警信息发送给处理该报警信息的GIS用户持有的用户终端,因行政区划代码标识了一个地域的辖区,则使得各个辖区发出的报警信息在本辖区处理,进而使得报警信息在广阔的地理范围内能得到有效分流,提高了报警信息的处理效率。Based on the above characteristics of the Internet of Views, one of the core concepts of the present application is proposed. In the Internet of Views GIS system, for each received alarm information sent by the streaming media server of the Internet of Views, according to the administrative division code of the alarm information, the alarm information It is sent to the user terminal held by the GIS user who processes the alarm information, because the administrative division code identifies the jurisdiction of a region, so that the alarm information sent by each jurisdiction is processed in the jurisdiction, and the alarm information is available in a wide geographical range. Effective shunting is obtained, and the processing efficiency of alarm information is improved.
参考图5,示出了本发明实施例的一种报警信息处理方法的应用环境图,在图5中,以A省为例,所述报警信息处理方法所应用的视联网GIS系统位于A省中,负责处理A省中发生的各个报警信息。所述视联网GIS系统包括GIS服务器及多个用户终端,所述视联网GIS系统配置有数据库。所述视联网GIS系统通过视联网流媒体服务器与多个报警客户端通信连接,具体地,视联网流媒体服务器与该多个报警客户端通信连接,GIS服务器与视联网流媒体服务器通信连接。其中,视联网流媒体服务器与GIS服务器,以及与多个报警客户端均可以采用视联网协议进行通信。Referring to FIG. 5, an application environment diagram of a method for processing alarm information according to an embodiment of the present invention is shown. In FIG. 5, taking province A as an example, the Internet of View GIS system to which the method for processing alarm information is applied is located in province A. , responsible for processing each alarm information that occurs in province A. The internet-of-view GIS system includes a GIS server and a plurality of user terminals, and the internet-of-view GIS system is configured with a database. The Internet-of-view GIS system is communicatively connected to a plurality of alarm clients through the Internet-of-view streaming media server. Specifically, the Internet-of-view streaming media server is communicatively connected to the plurality of alarm clients, and the GIS server is communicatively connected to the Internet-of-view streaming media server. Among them, the video network streaming media server and the GIS server, as well as multiple alarm clients can use the video network protocol to communicate.
其中,多个报警客户端可以分布在A省的不同辖区,视联网流媒体服务器具体用于接收来自A省不同辖区的多个报警客户端发送的第一报警信息。该第一报警信息具体可以是报警客户端在实际中认为需要行政管理部门人员及时处理的信息。实际中,报警客户端可以理解为是可以安装在智能设备上用于报警的APP,该APP具有支持编写报警内容、选择报警类型、上传报警图片和报警录音等报警功能,报警客户端用户(以下简称报警人员)可以通过该报警客户端发送报警信息,实际中,报警信息可以是图片信息、音视频信息或文字信息。Wherein, multiple alarm clients may be distributed in different jurisdictions of province A, and the video network streaming media server is specifically configured to receive the first alarm information sent from multiple alarm clients in different jurisdictions of province A. Specifically, the first alarm information may be information that the alarm client deems in practice that the personnel of the administrative management department need to deal with in a timely manner. In practice, the alarm client can be understood as an APP that can be installed on smart devices for alarming purposes. The APP has alarm functions such as writing alarm content, selecting alarm types, uploading alarm pictures and alarm recordings. Alarm personnel for short) can send alarm information through the alarm client. In practice, the alarm information can be picture information, audio and video information or text information.
用户终端可以理解为是与GIS服务器进行通信连接的终端,可以是手机、电脑、平板等智能设备,每一个用户终端都对应一个不同的GIS用户,GIS用户为预先在视联网GIS系统中注册可以处理报警的用户,可以被称为接警人员。实际处理报警时,GIS用户可以登录该视联网GIS系统以针对报警信息进行接警处理。The user terminal can be understood as a terminal that communicates with the GIS server, which can be smart devices such as mobile phones, computers, and tablets. Each user terminal corresponds to a different GIS user. The user who handles the alarm can be called the alarm receiver. When actually processing the alarm, the GIS user can log in to the Internet-of-View GIS system to receive and process the alarm information.
因本申请视联网GIS系统位于视联网中,则GIS服务器和多个用户终端可以预先在视联网内的视联网服务器中注册,以获得到视联网服务器分配的视联网号码,该视联网号码相当于GIS服务器和用户终端在视联网内的身份地址标识,进而可以通过视联网协议进行视联网通信,以利用视联网传输速度快、网络安全性高的特性,实现本发明实施例的报警系信息处理方法。Because the GIS system of the Internet of Things of the present application is located in the Internet of Things, the GIS server and a plurality of user terminals can be registered in the Internet of Internet server in the Internet of Things to obtain the Internet of Internet numbers assigned by the Internet of Internet of Things servers. Based on the identity address identification of the GIS server and the user terminal in the Internet of View, the Internet of Video communication can be carried out through the Internet of Video protocol, so as to utilize the characteristics of the Internet of Video transmission and high network security, the alarm system information of the embodiment of the present invention can be realized. Approach.
参照图6,示出了在上述图5所示的应用环境中的报警信息处理方法的步骤流程图,具体地,视联网GIS系统对视联网流媒体服务器接收到的每一个第一报警信息可以执行以下步骤:Referring to Fig. 6, it shows a flow chart of the steps of the alarm information processing method in the application environment shown in the above-mentioned Fig. 5. Perform the following steps:
步骤S61,接收所述视联网流媒体服务器发送的所述第一报警信息,并从所述第一报警信息中读取第一行政区划代码。Step S61: Receive the first alarm information sent by the video streaming server, and read the first administrative division code from the first alarm information.
实际中,GIS服务器的Forward服务层可以接收视联网流媒体服务器发送的各个第一报警信息,其中,Forward服务层为视联网GIS系统对外接收第一报警信息的接口。具体实施时,GIS服务器的Forward服务层可以周期性地接收视联网流媒体服务器周期性发送的第一报警信息。如,视联网流媒体服务器每间隔预设的时间便可以将该预设的时间内接收到的第一报警信息都发送给视联网GIS系统的GIS服务器。In practice, the Forward service layer of the GIS server can receive each first alarm information sent by the video network streaming media server, wherein the Forward service layer is an interface for the video network GIS system to receive the first alarm information externally. During specific implementation, the Forward service layer of the GIS server may periodically receive the first alarm information periodically sent by the Internet of View streaming media server. For example, the video network streaming media server can send the first alarm information received within the preset time to the GIS server of the video network GIS system every preset time.
在报警客户端发送的第一报警信息中可以包括但是不限于下述信息:报警客户端的视联网号码、报警客户端标识、报警客户端的用户信息及第一行政区划代码。其中,所述第一行政区划代码为报警客户端发送第一报警信息时,该报警客户端所处的辖区的组织结构代码。比如,报警客户端当前在A省B市C镇的D村发出了一条第一报警信息,则第一行政区划代码为D村的行政区划代码,例如:510811100210,该第一报警信息的第一行政区划代码即为510811100210。The first alarm information sent by the alarm client may include but not limited to the following information: the video network number of the alarm client, the identifier of the alarm client, the user information of the alarm client and the first administrative division code. Wherein, the first administrative division code is the organizational structure code of the jurisdiction where the alarm client is located when the alarm client sends the first alarm information. For example, if the alarm client currently sends a first alarm message in Village D, Town C, City B, Province A, the first administrative division code is the administrative division code of Village D, for example: 510811100210, the first alarm message of the first alarm message The administrative division code is 510811100210.
步骤S62,从所述数据库中获取与所述第一行政区划代码处于同一行政级别的多个第一用户ID。Step S62: Acquire a plurality of first user IDs at the same administrative level as the first administrative division code from the database.
实际中,该数据库可以为mySQL数据库,在该mySQL数据库中存储有多个用户信息,每个用户信息可以包括自身负责进行报警处理的辖区所对应的行政区划代码,其中,多个用户信息可以具有同一个行政区划代码,即,同一个行政辖区可以由多个GIS用户负责处理报警事务。如,负责处理D村接警事务的有2个GIS用户,则该2个GIS用户具有同一行政区划代码,均为D村的行政区划代码510811100210。In practice, the database may be a mySQL database, and multiple user information is stored in the mySQL database, and each user information may include an administrative division code corresponding to the jurisdiction in which it is responsible for alarm processing, wherein the multiple user information may have The same administrative division code, that is, the same administrative area, can be handled by multiple GIS users to handle alarm affairs. For example, if there are two GIS users who are responsible for handling the police affairs of village D, the two GIS users have the same administrative division code, which is the administrative division code of D village 510811100210.
具体实施时,与所述第一行政区划代码处于同一级别的多个第一用户ID可以理解为是,具有所述第一行政区划代码的多个用户信息各自包括的第一用户ID。具体地,GIS服务器的MyBatis(是一款持久层框架,它支持定制化SQL、存储过程以及高级映射集)技术架构层则可以从该mySQL数据库中先查询到具有所述第一行政区划代码的多个用户信息,进而从多个用户信息中读取各自携带的第一用户ID。其中,用户ID为GIS用户在视联网GIS系统中注册时视联网GIS系统为其分配的唯一标识该GIS用户的ID。如,GIS用户在视联网GIS系统中注册时,被分配的ID为0157,则用户ID为0157。During specific implementation, the multiple first user IDs at the same level as the first administrative division code can be understood as the first user IDs each included in the multiple user information having the first administrative division code. Specifically, the MyBatis (a persistence layer framework, which supports customized SQL, stored procedures and advanced mapping sets) technical architecture layer of the GIS server can first query the mySQL database to find the first administrative division code. multiple user information, and then read the first user ID carried by each from the multiple user information. Wherein, the user ID is the ID that uniquely identifies the GIS user assigned by the ViewNet GIS system when the GIS user registers in the ViewNet GIS system. For example, when a GIS user registers in the Internet of Things GIS system, the assigned ID is 0157, and the user ID is 0157.
示例地,以第一行政区划代码为D村的510811100210为例,则可以在mySQL数据库所包括的多个用户信息中,根据D村的行政区划代码51081110210,查询具有D村的行政区划代码的多个用户信息。例如,在数据库的多个用户信息中,查询到具有D村的行政区划代码的四个用户信息:该四个用户信息的第一用户ID分别为:0501,0502,0503,0504。For example, taking the first administrative division code as 510811100210 of D village as an example, in the multiple user information included in the mySQL database, according to the administrative division code of D village 51081110210, you can query the multiple users with the administrative division code of D village. user information. For example, from multiple user information in the database, four user information with administrative division codes of village D are queried: the first user IDs of the four user information are: 0501, 0502, 0503, and 0504 respectively.
步骤S63,将各所述第一用户ID封装进所述第一报警信息,得到第二报警信息,所述第二报警信息中包括与各所述第一用户ID各自对应的第一ID数组。Step S63: Encapsulate each of the first user IDs into the first alarm information to obtain second alarm information, where the second alarm information includes a first ID array corresponding to each of the first user IDs.
实际中,步骤S62从数据库中获取到的多个第一用户ID为用户ID的数据集合,将各所述第一用户ID封装进所述第一报警信息的具体过程可以是:将第一用户ID的数据集合封装成用户ID数组,再将ID数组添加到第一报警信息的指定字段上,从而形成第二报警信息,这样,在第二报警信息中便可以包括与各个第一用户ID对应的第一ID数组,如此,将第一ID数组封装进第一报警信息得到第二报警信息后,则每一个第二报警信息都确定了自己针对的用户终端,相当于第二报警信息通过自身包括的第一ID数组为自身标记了发送端信息。In practice, the multiple first user IDs obtained from the database in step S62 are data sets of user IDs, and the specific process of encapsulating each of the first user IDs into the first alarm information may be: The ID data set is encapsulated into a user ID array, and then the ID array is added to the specified field of the first alarm information to form the second alarm information. In this way, the second alarm information can include the corresponding IDs of each first user. The first ID array, so, after the first ID array is encapsulated into the first alarm information to obtain the second alarm information, then each second alarm information has determined the user terminal that it is aimed at, which is equivalent to the second alarm information through its own The included first ID array marks the sender information for itself.
例如,查询到的多个第一用户ID分别为0501,0502,0503,0504,则对应的读取出的用户ID数据集合为{user0501,user0502,user0503,user0504},则封装成的用户ID数组为{0501,0502,0503,0504},接着便将该ID数组{0501,0502,0503,0504}封装进第一报警信息的参数中,得到了第二报警信息,如此,第二报警信息中便包括了用户ID信息,其所携带的第一ID数组便分别为0501,0502,0503,0504(与各第一用户ID分别对应)。For example, if the queried first user IDs are 0501, 0502, 0503, and 0504 respectively, then the corresponding user ID data set read out is {user0501, user0502, user0503, user0504}, then the encapsulated user ID array is {0501, 0502, 0503, 0504}, then the ID array {0501, 0502, 0503, 0504} is encapsulated into the parameters of the first alarm information, and the second alarm information is obtained. In this way, in the second alarm information User ID information is included, and the first ID arrays carried by it are 0501, 0502, 0503, and 0504 (corresponding to each first user ID respectively).
步骤S64,基于各所述第一ID数组,确定所述第二报警信息针对的多个第一用户终端。Step S64: Determine, based on each of the first ID arrays, a plurality of first user terminals targeted by the second alarm information.
步骤S65,将所述第二报警信息分别发送给所述多个第一用户终端。Step S65, respectively sending the second alarm information to the multiple first user terminals.
本发明实施例中,GIS服务器可以根据该第二报警信息中所包括的各个第一ID数组,确定出该第一ID数组各自对应的第一用户终端。具体地,可以将多个用户信息各自所包括的用户ID与第二报警信息中指定字段上的第一ID数组进行比较,若多个用户信息各自所包括的用户ID包括在第二报警信息中的第一ID数组中,则将该用户信息对应的用户终端确定为第一用户终端,否则,则不确定为第一用户终端。In this embodiment of the present invention, the GIS server may determine the first user terminals corresponding to the first ID arrays according to the first ID arrays included in the second alarm information. Specifically, the user IDs included in each of the plurality of user information can be compared with the first ID array on the specified field in the second alarm information. If the user IDs included in each of the plurality of user information are included in the second alarm information In the first ID array of the user information, the user terminal corresponding to the user information is determined to be the first user terminal, otherwise, it is determined to be the first user terminal.
这样,在GIS服务器处理数量众多的第一报警信息时,可以根据每个第一报警信息和查询出的多个第一用户ID,形成新的第二报警信息,并通过第二报警信息的指定字段,在当前登录的多个用户终端中确定出该第二报警信息针对的第一用户终端,进而提高了发送第二报警信息的效率。其中,各第一用户终端即为处理该第二报警信息的对象,这样,每一个第一报警信息均发发送给了与自身的第一行政区划代码同级别的第一用户终端,以实现同级别的第一用户终端处理该条第一报警信息。In this way, when the GIS server processes a large number of first alarm information, new second alarm information can be formed according to each first alarm information and a plurality of queried first user IDs, and specified by the second alarm information field, the first user terminal targeted by the second alarm information is determined among the multiple user terminals currently logged in, thereby improving the efficiency of sending the second alarm information. Wherein, each first user terminal is the object of processing the second alarm information. In this way, each first alarm information is sent to the first user terminal of the same level as its own first administrative division code, so as to achieve the same The first user terminal of the level processes the first alarm message.
示例地,第二报警信息中包括了与第一用户ID:0501,0502,0503,0504,对应的的第一ID数组,则在当前登录的多个用户终端中确定出的与上述第一ID数组对应的第一用户终端中,每个第一用户终端的GIS用户均是处理D村报警信息的GIS用户,以使得在D村的报警客户端发出的第一报警信息能被处理D村的GIS用户处理。本发明实施例中对报警信息进行处理可以是指第一用户终端的GIS用户在视联网GIS系统界面针对该被展示的报警信息进行的接警点击操作。Exemplarily, the second alarm information includes a first ID array corresponding to the first user IDs: 0501, 0502, 0503, 0504, then the first IDs determined in the currently logged-in multiple user terminals are the same as the above-mentioned first IDs. In the first user terminals corresponding to the array, the GIS users of each first user terminal are GIS users who process the alarm information of village D, so that the first alarm information sent by the alarm client in village D can be processed by the alarm information of village D. GIS user processing. In the embodiment of the present invention, the processing of the alarm information may refer to an alarm click operation performed by the GIS user of the first user terminal on the displayed alarm information on the GIS system interface of the Internet of Views.
需要说明的是,各第一用户终端的GIS用户的实际工作权限是处理D村的报警事务、而不代表GIS用户的实际地理位置一定要位于D村,实际中,该GIS用户所在的地理位置可以位于D村,也可以位于A省的其他区域,或者位于其他省市。It should be noted that the actual work authority of the GIS user of each first user terminal is to handle the alarm affairs of village D, which does not mean that the actual geographical location of the GIS user must be located in village D. In reality, the geographical location of the GIS user is located. It can be located in Village D, or in other areas of Province A, or in other provinces and cities.
实际中,第一用户终端可以用于将该第二报警信息展示在视联网GIS系统界面,具体地,第一用户终端可以通过web前端的HTML前端渲染技术将第二报警信息展示在视联网GIS系统界面,第一用户终端的GIS用户则可以通过浏览器登录视联网GIS系统,进而在视联网GIS系统界面上查看和处理该第二报警信息。In practice, the first user terminal can be used to display the second alarm information on the Internet of View GIS system interface. Specifically, the first user terminal can display the second alarm information on the Internet of View GIS through the HTML front-end rendering technology of the web front end. System interface, the GIS user of the first user terminal can log in to the Internet of Things GIS system through a browser, and then view and process the second alarm information on the interface of the Internet of Things GIS system.
本发明实施例,由于视联网GIS系统的GIS服务器可以根据视联网流媒体服务器发送的每一个第一报警信息所包括的第一行政区划代码,确定出与该第一行政区划代码对应的第一用户ID,继而采用各第一用户ID与第一报警信息生产第二报警信息,使得GIS服务器可以根据该第二报警信息自身所包括的第一ID数组,确定出要发送到的各第一用户终端,最终由与发送该第一报警信息的报警客户端同属一个辖区的GIS用户处理。In the embodiment of the present invention, because the GIS server of the Internet-of-view GIS system can determine the first administrative division code corresponding to the first administrative division code according to the first administrative division code included in each first alarm message sent by the Internet-of-view streaming media server User ID, and then use each first user ID and the first alarm information to produce second alarm information, so that the GIS server can determine each first user to be sent to according to the first ID array included in the second alarm information itself The terminal is finally handled by a GIS user who belongs to the same jurisdiction as the alarm client that sends the first alarm information.
由于每个第一报警信息都发给同级别的GIS用户处理,这样,使得在广阔的地域中,不同辖区发送的报警信息都可以先交由处理本地事务的GIS用户处理,在实际中,便达到了本级GIS用户对报警信息可见,而不同级的GIS用户对该报警信息不可见的效果,使得每一条报警信息都是发给本辖区指定的GIS用户,进而降低了每一条报警信息所要占用的网络带宽,提高了报警信息的传输效率。同时,本发明实施例从整体上将众多的报警信息按照行政区划进行了分流发送、实现了分级别处理,进而从整体上提高了视联网GIS系统对报警信息的处理效率,做到了本辖区发出的报警信息可以优先在本辖区得到解决,构建了行之有效地对远程报警进行处理的运行机制。Since each first alarm information is sent to the GIS users of the same level for processing, in this way, the alarm information sent by different jurisdictions in a wide area can be first handed over to the GIS users who handle local affairs. It achieves the effect that the GIS users at the same level can see the alarm information, but the GIS users at different levels cannot see the alarm information, so that each alarm information is sent to the designated GIS users in the jurisdiction, thereby reducing the need for each alarm information. The occupied network bandwidth improves the transmission efficiency of alarm information. At the same time, the embodiment of the present invention divides and sends a large number of alarm information according to the administrative division as a whole, and realizes the hierarchical processing, thereby improving the processing efficiency of the alarm information by the Internet-of-view GIS system as a whole, so that the alarm information can be sent out in the jurisdiction area. The alarm information can be solved preferentially in the jurisdiction, and an effective operation mechanism for processing remote alarms has been established.
结合上述实施例,在一种可选的实施方式中,步骤S65具体可以包括以下步骤:In combination with the foregoing embodiment, in an optional implementation manner, step S65 may specifically include the following steps:
步骤S651,在所述多个第一用户终端中确定当前登录的至少一个第二用户终端。Step S651, at least one second user terminal currently logged in is determined among the plurality of first user terminals.
实际中,不同的第一用户终端其登录GIS系统的状况不一样,有的第一用户终端未登录而有的第一用户终端登录,则在发送第二报警信息时,可以将第二报警信息发送给已经登录的用户终端,避免将第二报警信息发送给全部的第一用户终端而造成的网络带宽资源的浪费。In practice, different first user terminals log in to the GIS system differently. Some first user terminals are not logged in but some first user terminals are logged in. When sending the second alarm information, the second alarm information can be sent to the GIS system. It is sent to the logged-in user terminals, so as to avoid waste of network bandwidth resources caused by sending the second alarm information to all the first user terminals.
示例地,在上述确定出的各第一用户终端中,若第一用户ID为0503和0501的GIS用户未登录,则确定出的当前登录的第一用户终端各自的第一用户ID分别为:0502、0504,则最终将第二报警信息发送给用户ID为0502和用户ID为0504的第二用户终端。这样,可以避免将第二报警信息发送给未登录的用户终端而造成的带宽资源浪费,进而降低GIS服务器的工作负载。Exemplarily, in each of the first user terminals determined above, if the GIS users whose first user IDs are 0503 and 0501 are not logged in, the determined first user IDs of the currently logged in first user terminals are respectively: 0502 and 0504, the second alarm information is finally sent to the second user terminal with the user ID of 0502 and the user ID of 0504. In this way, the waste of bandwidth resources caused by sending the second alarm information to the unlogged user terminal can be avoided, thereby reducing the workload of the GIS server.
步骤S652,通过websocket通道将所述第二报警信息发送给各所述第二用户终端。Step S652, sending the second alarm information to each of the second user terminals through a websocket channel.
本实施方式中,在GIS用户登录时,对应的用户终端则与GIS服务器建立了websocket(网页套接字协议)通道,继而,GIS服务器便可以通过WebSocket通道将第二报警信息发送给已经登录的第二用户终端。其中,WebSocket通道可以理解为是GIS服务器与用户终端之间建立的可以通过WebSocket进行数据发送和接收的通信通道。WebSocket协议支持客户端与远程主机之间进行全双工通信,可以在发送数据的同时发送一些指令信息,以便客户端和主机之间进行更高效的数据信息交互。In this embodiment, when a GIS user logs in, the corresponding user terminal establishes a websocket (web socket protocol) channel with the GIS server, and then the GIS server can send the second alarm information to the logged-in user through the WebSocket channel. the second user terminal. Among them, the WebSocket channel can be understood as a communication channel established between the GIS server and the user terminal that can send and receive data through WebSocket. The WebSocket protocol supports full-duplex communication between the client and the remote host, and can send some instruction information while sending data, so that the client and the host can exchange data and information more efficiently.
参照图7所示,示出了在一种可选实施方式中的报警信息处理方法的步骤流程图,在该可选的报警信息处理方法中,包括上述步骤S61至步骤S65,具体还包括以下步骤:Referring to FIG. 7, a flowchart of steps of an alarm information processing method in an optional embodiment is shown. The optional alarm information processing method includes the above steps S61 to S65, and specifically includes the following step:
步骤S60,为所述第二报警信息绑定转警触发条件和转警结束条件。Step S60: Bind the alarm transfer trigger condition and the alarm transfer end condition to the second alarm information.
具体地,该步骤S60可以在步骤S63之后及步骤S64之前,具体地,该转警触发条件为该第二报警信息需要被转警到第一行政区划代码对应的上一级行政辖区的条件,所述转警结束条件为表征在该第二报警信息被转警的过程中,不能再被继续转警的条件。Specifically, this step S60 can be after step S63 and before step S64, specifically, the triggering condition of the alarm transfer is the condition that the second alarm information needs to be transferred to the upper-level administrative area corresponding to the first administrative division code, The end condition of the alarm transfer is a condition that indicates that the second alarm information can no longer be transferred to an alarm during the process of being transferred to an alarm.
在步骤S65之后,具体可以包括以下步骤:After step S65, the following steps may be specifically included:
步骤S66,判断是否满足所述转警触发条件;若满足所述转警触发条件,则确定位于所述第一行政区划代码上N个级别的第二行政区划代码所对应的多个第三用户终端,将所述第一报警信息发送给所述多个第三用户终端,并进入步骤S67。Step S66, judging whether the alarm transfer trigger condition is met; if the alarm transfer trigger condition is met, then determine a plurality of third users corresponding to the second administrative division codes located at N levels on the first administrative division code The terminal sends the first alarm information to the plurality of third user terminals, and proceeds to step S67.
实际中,若该第二报警信息在给定时间内未被各第一用户终端处理,或者,该第二报警信息被当前GIS用户认为为需要转警到上一级处理时,则在此种情况下,确定为满足转警触发条件。若该第二报警信息在给定时间内被第一用户终端处理,则确定不满足转警触发条件。In practice, if the second alarm information is not processed by each first user terminal within a given time, or, the second alarm information is considered by the current GIS user as needing to be transferred to the upper level for processing, then in this case In this case, it is determined that the triggering condition for alarm transfer is met. If the second alarm information is processed by the first user terminal within a given time, it is determined that the triggering condition for alarm transfer is not satisfied.
具体地,在满足转警触发条件时,GIS服务器则可以确定该第一行政区划代码对应的上N级第二行政区划代码,进而采用上述步骤S62至步骤S65所述的方法,将该第一报警信息发送给第二行政区划代码对应的第三用户终端。其中,N大于等于1,具体的N的取值可以与该第二报警信息被转警的次数相同,如该第二报警信息被第一次转警,则N=1,若是第二次被转警,则N=2,若是第三次被转警,则N=3。即被转警的次数越多,则该第二报警信息被上报给的GIS用户的行政级别越高。Specifically, when the triggering condition for alarm transfer is met, the GIS server can determine the second administrative division code of the upper N level corresponding to the first administrative division code, and then use the methods described in the above steps S62 to S65 to generate the first administrative division code. The alarm information is sent to the third user terminal corresponding to the second administrative division code. Among them, N is greater than or equal to 1, and the specific value of N can be the same as the number of times the second alarm information is transferred to the alarm. If the second alarm information is transferred to the alarm for the first time, then N=1. If the alarm is transferred, then N=2, if it is transferred to the police for the third time, then N=3. That is, the more times the alarm is transferred, the higher the administrative level of the GIS user to which the second alarm information is reported.
示例地,以D村的报警客户端发送的第一报警信息为例,若负责处理D村报警事务的GIS用户在给定时间未处理根据该第一报警信息得到的第一报警信息,或者,GIS用户认为自己无法处理该第二报警信息需要转警到上一级处理,则GIS服务器确定满足转警触发条件,进而在数据库中获取D村所在的C镇的第二行政区划代码51081100000;该第二行政区划代码51081100000即是位于第一行政区划代码上一级别的代码。之后,在数据库中又获取具有第二行政区划代码51081100000的多个用户信息,并从该多个用户信息中获取各自的用户ID,例如,获取到的用户ID分别为1021、1478、2014,则采用步骤S64的方法,将上述各用户ID写入到第二报警信息中,得到新的报警信息,再根据新的报警信息重新确定要发送的第三用户终端,进而将新的报警信息分别发送给1021、1478、2014对应的第三用户终端,而不再发送给上述的第一用户终端。Illustratively, taking the first alarm information sent by the alarm client of Village D as an example, if the GIS user responsible for handling the alarm affairs of Village D does not process the first alarm information obtained according to the first alarm information at a given time, or, If the GIS user thinks that he cannot process the second alarm information and needs to transfer the alarm to the upper level for processing, the GIS server determines that the triggering condition for alarm transfer is met, and then obtains the second administrative division code 51081100000 of town C where village D is located in the database; The second administrative division code 51081100000 is the code at the upper level of the first administrative division code. After that, obtain multiple user information with the second administrative division code 51081100000 in the database, and obtain their respective user IDs from the multiple user information. For example, if the obtained user IDs are 1021, 1478, and 2014, then Using the method of step S64, write the above user IDs into the second alarm information to obtain new alarm information, and then re-determine the third user terminal to be sent according to the new alarm information, and then send the new alarm information respectively. It is sent to the third user terminal corresponding to 1021, 1478, and 2014, and is no longer sent to the above-mentioned first user terminal.
步骤S67,判断是否满足所述转警结束条件,若满足所述转警结束条件,则生成针对所述第一报警信息的结案信息;若不满足所述转警结束条件,则返回上述步骤S66。Step S67, judging whether the end condition of the alarm transfer is satisfied, if the end condition of the alarm transfer is satisfied, then the case closing information for the first alarm information is generated; .
实际中,若第三用户终端的用户是为处理省级报警事务的用户,则此种情况下,确定满足转警结束条件,表示第一报警信息已经被推送给最高级别的GIS用户处理,转警结束;反之,若第三用户终端的用户不为处理省级报警事务的用户,则确定不满足转警结束条件,此种情况下,可以转到上述步骤S66,继续判定是否满足转警触发条件及转警结束条件。具体实施时,在满足转警结束条件时,可以生成结案信息,以便视联网GIS系统的用户可以根据该结案信息获知该第一报警信息已被处理。其中,该结案信息中可以包括最终处理该第一报警信息的GIS用户的用户信息。In practice, if the user of the third user terminal is a user who handles provincial-level alarm affairs, in this case, it is determined that the conditions for ending the alarm transfer are met, indicating that the first alarm information has been pushed to the highest-level GIS user for processing, and the transfer On the contrary, if the user of the third user terminal is not a user who handles provincial-level alarm affairs, it is determined that the condition for ending the alarm transfer is not satisfied. Condition and Transition End Condition. In specific implementation, when the condition for ending the alarm transfer is satisfied, case closing information can be generated, so that the user of the Internet-of-View GIS system can know that the first alarm information has been processed according to the case closing information. Wherein, the case closing information may include user information of the GIS user who finally processes the first alarm information.
本发明实施例中,在发送第二报警信息给各第一用户终端后,若首次判定满足转警触发条件,则确定该第一行政区划代码对应的上一级第二行政区划代码,将第一报警信息发送给上一级的第三用户终端;若在将第一报警信息发送给第三用户终端后,第二次判定满足转警触发条件,则确定该第一行政区划代码对应的上两级第二行政区划代码,将第一报警信息发送给上两级的第三用户终端;以此类推,直到确定出满足转警结束条件为止。In the embodiment of the present invention, after sending the second alarm information to each first user terminal, if it is determined for the first time that the triggering condition for alarm transfer is satisfied, then the upper-level second administrative division code corresponding to the first administrative division code is determined, and the first administrative division code is determined. One alarm message is sent to the third user terminal at the upper level; if after the first alarm message is sent to the third user terminal, it is determined for the second time that the triggering condition for alarm transfer is satisfied, then the upper level corresponding to the first administrative division code is determined. The second administrative division code of the two levels sends the first alarm information to the third user terminal of the upper two levels; and so on, until it is determined that the conditions for ending the alarm transfer are met.
示例地,以D村的报警客户端发送的第一报警信息为例,在将根据第二报警信息和1021、1478、2014等三个用户ID生成的新的报警信息发送给第三用户终端后,若判断出满足转警触发条件,则GIS服务器则确定D村所在的B市的用户ID,并将新的报警信息发送给处理B市报警事务的GIS用户;若在发送给处理B市报警事务的GIS用户后,判断出仍满足转警触发条件,则GIS服务器则确定D村所在的A省的用户ID,继而将新的报警信息发送给处理A省报警事务的GIS用户,之后,转警结束,生成结案信息。Illustratively, taking the first alarm information sent by the alarm client in Village D as an example, after the new alarm information generated according to the second alarm information and the three user IDs of 1021, 1478, and 2014 is sent to the third user terminal. , if it is judged that the triggering condition for alarm transfer is met, the GIS server determines the user ID of city B where village D is located, and sends the new alarm information to the GIS user who handles the alarm affairs in city B; After the GIS user of the transaction determines that the triggering condition for alarm transfer is still met, the GIS server determines the user ID of province A where village D is located, and then sends the new alarm information to the GIS user who handles the alarm transaction in province A. When the police is over, a case closing message is generated.
采用上述技术方案,由于在第二报警信息未被第一用户终端及时处理的情况下,可以自动将第二报警信息发送给上一级的第三用户终端处理,或者,第一用户终端处理不了,需要交给上一级用户终端处理时,也可以自动将第二报警信息发送给上一级的第三用户终端处理。这样,使得在本级辖区无人进行接警处理的情况下,报警信息会自动转到上一级,并且,使得本级辖区无法进行报警处理的情况下,报警信息也自动转到上一级处理,让报警信息每一条都能被及时有效的处理。With the above technical solution, in the case that the second alarm information is not processed in time by the first user terminal, the second alarm information can be automatically sent to the third user terminal at the upper level for processing, or the first user terminal cannot process it. , when it needs to be handed over to the upper-level user terminal for processing, the second alarm information can also be automatically sent to the upper-level third user terminal for processing. In this way, the alarm information will be automatically transferred to the upper level when there is no one in the jurisdiction at the same level to handle the alarm, and the alarm information will also be automatically transferred to the upper level for processing when the jurisdiction at the same level cannot be processed. , so that each alarm information can be processed in a timely and effective manner.
结合图7所示的报警信息处理方法的可选实施方式,在一种可能的实施例中,步骤S60具体可以包括以下步骤:With reference to the optional implementation manner of the alarm information processing method shown in FIG. 7 , in a possible embodiment, step S60 may specifically include the following steps:
步骤S601,为所述第二报警信息绑定定时任务、转警信令监听任务及省级行政区划代码。Step S601: Bind a timing task, an alarm transfer signaling monitoring task and a provincial administrative division code to the second alarm information.
其中,所述定时任务设置有倒计时时间;所述定时任务用于在所述倒计时时间内监听是否接收到针对所述第二报警信息的接警信令,所述转警信令监听任务用于监听是否接收到针对所述第二报警信息的转警信令,所述省级行政区划代码与所述第一行政区划代码相对应。Wherein, the timing task is set with a countdown time; the timing task is used to monitor whether an alarm reception signaling for the second alarm information is received within the countdown time, and the alarm transfer signaling monitoring task is used to monitor Whether an alarm transfer signaling for the second alarm information is received, and the provincial administrative division code corresponds to the first administrative division code.
本实施方式中,所述的倒计时时间即为在上述步骤S66中所述的给定时间,该倒计时时间的时长可以根据需要设置,实际中,在生成该第二报警信息时,该倒计时时间开始倒计时。其中,接警信令由第一用户终端根据GIS用户的接警操作生成并发送给GIS服务器,转警信令由第一用户终端根据GIS用户的转警操作生成并发送给GIS服务器。该转警操作具体可以为GIS用户在视联网GIS系统界面上进行的勾选报警信息转推送的操作。In this embodiment, the countdown time is the given time described in the above step S66, and the duration of the countdown time can be set as required. In practice, when the second alarm information is generated, the countdown time starts Countdown. The alarm receiving signaling is generated by the first user terminal according to the alarm receiving operation of the GIS user and sent to the GIS server, and the alarm transfer signaling is generated by the first user terminal according to the alarm transfer operation of the GIS user and sent to the GIS server. The alarm transfer operation may specifically be an operation performed by a GIS user on the GIS system interface of the Internet of Things to check the alarm information and transfer it to push.
其中,省级行政区划代码是第一行政区划代码所在的省的行政区划代码,如,第一行政区划代码为D村的政区划代码:51081110000,D村所在的省为A省,则与该第一行政区划代码对应的省级行政区划代码为A省的行政区划代码:510000000000。Among them, the provincial administrative division code is the administrative division code of the province where the first administrative division code is located. For example, the first administrative division code is the administrative division code of the D village: 51081110000, and the province where the D village is located is the A province, then the same as this The provincial administrative division code corresponding to the first administrative division code is the administrative division code of province A: 510000000000.
步骤S602,将所述定时任务未监听到所述接警信令,和/或,将所述转警信令监听任务监听到所述转警信令作为所述转警触发条件;将所述第三用户终端对应的行政区划代码为所述省级行政区划代码作为所述转警结束条件。Step S602, the timing task does not monitor the alarm signalling, and/or, the alarm transfer signaling is monitored by the alarm transfer signal monitoring task as the alarm transfer trigger condition; The administrative division code corresponding to the three user terminals is the provincial administrative division code as the condition for ending the alarm transfer.
实际中,GIS服务器可以通过上述设置有倒计时时间的定时任务未监听到接警信令的结果,和/或,转警信令监听任务所监听到转警信令的结果作为转警触发条件。具体地,在倒计时时间为0之前,若该定时任务始终未监听到接收了所述接警信令,或者,转警信令监听任务监听到接收了转警信令,则确认满足转警触发条件。In practice, the GIS server may use the above-mentioned timing task with a countdown time not to monitor the result of the alarm receiving signaling, and/or the result of the alarm transfer signaling monitored by the alarm transfer signaling monitoring task as the alarm transfer trigger condition. Specifically, before the countdown time is 0, if the timing task has never monitored the reception of the alarm signal, or the alarm transfer signal monitoring task has monitored the reception of the alarm signal, it is confirmed that the alarm transfer trigger condition is met. .
其中,第三用户终端对应的行政区划代码即为第三用户终端对应的GIS用户负责处理的辖区的行政区划代码。比如,第三用户终端的GIS用户为李三,若李三负责处理的是B市的报警,则该第三用户终端对应的行政区划代码为B市的行政区划代码510800000000,则不为省级行政区划代码,不满足转警结束条件。若李三负责处理的是A省的报警,则该第三用户终端对应的行政区划代码为A省的行政区划代码510000000000,则为省级行政区划代码,满足转警结束条件。The administrative division code corresponding to the third user terminal is the administrative division code of the jurisdiction that is handled by the GIS user corresponding to the third user terminal. For example, the GIS user of the third user terminal is Li San. If Li San is responsible for handling the alarm of city B, the administrative division code corresponding to the third user terminal is the administrative division code of city B 510800000000, which is not provincial. The administrative division code does not meet the conditions for ending the alarm transfer. If Li San is responsible for handling the alarm of province A, the administrative division code corresponding to the third user terminal is the administrative division code of province A 510000000000, which is the provincial administrative division code and meets the conditions for ending the alarm transfer.
相应地,在该可选实施方式中的一种可能实施例中,还可以包括以下步骤:Correspondingly, in a possible example in this optional implementation manner, the following steps may also be included:
步骤S603,若确定不满足所述转警触发条件,则取消所述定时任务及所述转警信令监听任务。Step S603, if it is determined that the triggering condition for alarm transfer is not satisfied, cancel the timing task and the monitoring task of the alarm transfer signaling.
实际中,若不满足转警触发条件,则表示第二报警信息被处理,即,实际中第一用户终端的GIS用户对该第二报警信息点击了“接警”;或者,表示在将第一报警信息转警到第三用户终端后,被第三用户终端进行处理,即,实际中第三用户终端的GIS用户对该第二报警信息点击了“接警”,最终表示该第一报警信息已被处理,进而不需要进行转警。In practice, if the triggering condition for alarm transfer is not met, it means that the second alarm information has been processed, that is, in practice, the GIS user of the first user terminal has clicked "receive alarm" on the second alarm information; After the alarm information is transferred to the third user terminal, it is processed by the third user terminal, that is, in practice, the GIS user of the third user terminal clicks "Accept Alarm" to the second alarm information, which finally means that the first alarm information has been be processed, and no alert transfer is required.
取消定时任务及转警信令监听任,在实际中可以为取消第二报警信息与定时任务及转警信令监听任务的绑定关系,或者,删除第二报警信息绑定的定时任务及转警信令监听任务。To cancel the timing task and the monitoring task of the alarm transfer signaling, in practice, it can be to cancel the binding relationship between the second alarm information and the timing task and the monitoring task of the alarm transfer signaling, or delete the timed task and the transfer signal bound by the second alarm information. Alarm signal monitoring task.
在一种实施例中,如图8所示,图8是本申请另一实施方式提供的为所述第二报警信息绑定定时任务的方法的流程图,具体可以包括以下步骤:In one embodiment, as shown in FIG. 8 , FIG. 8 is a flowchart of a method for binding a timing task for the second alarm information provided by another embodiment of the present application, which may specifically include the following steps:
步骤S81,根据所述第二报警信息的报警标识生成针对所述第二报警信息的key,并将所述key存入redis缓存。Step S81: Generate a key for the second alarm information according to the alarm identifier of the second alarm information, and store the key in the redis cache.
实际中,该报警标识可以理解为是唯一标识该报警信息的标识,该标识可以为编码,具体地,redis缓存是一个key-value存储系统,是一个高性能的key-value数据库,用于存储数据,redis会周期性的把更新的数据写入磁盘或者把修改操作写入追加的记录文件redis会周期性的把更新的数据写入磁盘或者把修改操作写入追加的记录文件。本发明实施例中,通过报警标识生成唯一标识第二报警信息的key,该key可以是一个长度为32位的随机字符串,具体地,该key可以与报警标识相关联,以唯一标识该报警标识所标识的报警信息,这样,第二报警信息的Key实质也唯一标识第二报警信息。由此,便在redis缓存中实现了通过key的方式存储该第二报警信息的报警标识的效果。In practice, the alarm identifier can be understood as an identifier that uniquely identifies the alarm information, and the identifier can be a code. Specifically, the redis cache is a key-value storage system and a high-performance key-value database for storing Data, redis will periodically write updated data to disk or write modification operations to appended record files. Redis will periodically write updated data to disk or write modification operations to appended record files. In this embodiment of the present invention, a key that uniquely identifies the second alarm information is generated by an alarm identifier, and the key may be a random character string with a length of 32 bits. Specifically, the key may be associated with an alarm identifier to uniquely identify the alarm. The identified alarm information is identified, so that the Key substance of the second alarm information also uniquely identifies the second alarm information. As a result, the effect of storing the alarm identifier of the second alarm information by means of a key is realized in the redis cache.
步骤S82,在所述redis缓存中为所述key绑定所述定时任务,并为所述定时任务设置所述倒计时时间。Step S82: Bind the timing task for the key in the redis cache, and set the countdown time for the timing task.
具体地,在redis缓存中为该key创建了定时任务,该定时任务则可以理解为是监听是否接收到针对该key返回的接警信令,此种方式下,倒计时时间从绑定定时任务时开始计时。实际中,返回的接警信令中可以包括报警标识,则在定时任务进行监听时,可以直接根据接警信令所包括的报警标识,判断该接警信令是否是针对该Key的接警信令,无论是否接收到接警信令,定时任务都可以将结果可以写入key对应的记录文件中,这样,即可以根据记录文件确定第二报警信息的处理结果。Specifically, a timed task is created for the key in the redis cache, and the timed task can be understood as monitoring whether the alarm signal returned for the key is received. In this way, the countdown time starts when the timed task is bound timing. In practice, the returned alarm signaling may include an alarm identification, so when the scheduled task is monitoring, it can be directly judged according to the alarm identification included in the alarm signaling whether the alarm signaling is for the key, regardless of whether the alarm signaling is for the key. Whether an alarm signal is received or not, the timing task can write the result into the record file corresponding to the key, so that the processing result of the second alarm information can be determined according to the record file.
相应地,在步骤S603中取消所述定时任务,则可以通过下述步骤的方法实现:Correspondingly, canceling the timing task in step S603 can be implemented by the following steps:
步骤S83,从所述redis缓存中取消所述key与所述定时任务的绑定关系,和/或,删除所述key。Step S83, cancel the binding relationship between the key and the timing task from the redis cache, and/or delete the key.
相应地,在该可选实施方式中的一种可能实施例中,本发明实施例所述的报警信息处理方法还可以包括以下步骤S64’:Correspondingly, in a possible example of this optional implementation manner, the alarm information processing method described in the embodiment of the present invention may further include the following step S64':
步骤S64’,将所述第二报警信息存入所述数据库。Step S64', storing the second alarm information in the database.
实际中,在采用上述步骤S81将根据第二报警信息的报警标识生成的key存入redis缓存的同时,也可以将第二报警信息存入到数据库,其中,所述第二报警信息包括所述报警标识。In practice, while adopting the above-mentioned step S81 to store the key generated according to the alarm identification of the second alarm information into the redis cache, the second alarm information can also be stored in the database, wherein the second alarm information includes the Alarm ID.
相应地,步骤S66具体可以包括以下步骤:Correspondingly, step S66 may specifically include the following steps:
步骤S661,从所述数据库中获取与确定出的所述第二行政区划代码同处一个行政级别的多个第二用户ID。Step S661, acquiring from the database multiple second user IDs at the same administrative level as the determined second administrative division code.
该步骤S661与步骤S62的过程相似,具体地参照步骤S62即可,在此不再赘述。The process of this step S661 is similar to that of the step S62, and the specific reference may be made to the step S62, which will not be repeated here.
步骤S662,基于所述key,从所述redis缓存中获取所述第二报警信息的报警标识。Step S662, based on the key, obtain the alarm identifier of the second alarm information from the redis cache.
步骤S663,基于所述报警标识,从所述数据库中获取所述第二报警信息,并基于所述第二用户ID,更新所述第二报警信息中的第一ID数组,得到第三报警信息,所述第三报警信息中包括与各所述第二用户ID各自对应的第二ID数组。Step S663, based on the alarm identification, obtain the second alarm information from the database, and based on the second user ID, update the first ID array in the second alarm information to obtain the third alarm information , the third alarm information includes a second ID array corresponding to each of the second user IDs.
实际中,若满足转警触发条件,则GIS服务器则可以从所述redis缓存中获取到第二报警信息的key,并基于确定出与该key相关联的报警标识,进而可以根据该报警标识,在数据库中存储的多个报警信息中读取出该报警标识对应的第二报警信息。In practice, if the triggering condition for alarm transfer is met, then the GIS server can obtain the key of the second alarm information from the redis cache, and based on determining the alarm identification associated with the key, and then according to the alarm identification, The second alarm information corresponding to the alarm identification is read out from the plurality of alarm information stored in the database.
进一步地,则可以将第二报警信息中的第一ID数组进行删除,重新将第二用户ID对应的第二ID数组写入该删除了第一ID数组的第二报警信息中,进而形成了第三报警信息,这样,在第三报警信息中包括的便为第二ID数组。这样,实现了在转警过程中,可以更新报警信息中所包括的ID数组,以此实现了报警信息根据处理结果动态更新所要针对的用户ID。而实际中,该第二报警信息的报警标识始终保持不变。Further, the first ID array in the second alarm information can be deleted, and the second ID array corresponding to the second user ID is rewritten into the second alarm information that has deleted the first ID array, thereby forming a The third alarm information, in this way, what is included in the third alarm information is the second ID array. In this way, the ID array included in the alarm information can be updated during the alarm transfer process, so that the user ID to be targeted by the alarm information can be dynamically updated according to the processing result. In practice, the alarm identification of the second alarm information remains unchanged.
步骤S664,基于所述第二ID数组,确定所述第三报警信息针对的多个第三用户终端。Step S664: Determine, based on the second ID array, a plurality of third user terminals targeted by the third alarm information.
该步骤S664与步骤S64的过程相似,具体地参照步骤S64即可,在此不再赘述。The process of this step S664 is similar to that of the step S64, and the specific reference may be made to the step S64, which will not be repeated here.
步骤S665,将所述第三报警信息分别发送给所述多个第三用户终端。Step S665: Send the third alarm information to the multiple third user terminals respectively.
该步骤S665与步骤S65的过程相似,具体地参照步骤S65即可,在此不再赘述。The process of this step S665 is similar to that of the step S65, and the specific reference may be made to the step S65, which will not be repeated here.
采用上述技术方案,由于可以将第二报警信息和第二报警信息的key分开予以存储,在需要转警时,可以动态地将第二报警信息中的第一ID数组更新为第二ID数组,使得在数据库中存储的第二报警信息始终是针对某一行政区划代码,进而避免转警时,在数据库中要存储针对不同行政区划代码的第二报警信息,从而减小了在数据库中存储的数据量,提高了系统运行效率。Adopting the above-mentioned technical scheme, because the key of the second alarm information and the second alarm information can be stored separately, when the alarm needs to be transferred, the first ID array in the second alarm information can be dynamically updated to the second ID array, The second alarm information stored in the database is always for a certain administrative division code, so as to avoid the need to store the second alarm information for different administrative division codes in the database when the alarm is transferred, thereby reducing the amount of data stored in the database. The amount of data improves the operating efficiency of the system.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the sake of simple description, the method embodiments are described as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because According to embodiments of the present invention, certain steps may be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参考图9,示出了本发明实施例的一种报警信息处理装置,所述装置应用于视联网GIS系统,所述视联网GIS系统通过视联网流媒体服务器与报警客户端通信连接,所述视联网GIS系统包括GIS服务器及多个用户终端,所述视联网GIS系统配置有数据库;其中,所述视联网流媒体服务器用于接收所述多个报警客户端各自发送的第一报警信息;所述装置可以包括如下模块:Referring to FIG. 9 , a device for processing alarm information according to an embodiment of the present invention is shown. The device is applied to the Internet-of-view GIS system. The Internet-of-view GIS system includes a GIS server and a plurality of user terminals, and the Internet-of-view GIS system is configured with a database; wherein, the Internet-of-view streaming media server is used to receive the first alarm information sent by each of the plurality of alarm clients; The apparatus may include the following modules:
报警信息接收模块901,用于接收所述视联网流媒体服务器发送的所述第一报警信息,并从所述第一报警信息中读取第一行政区划代码;The alarm
用户ID获取模块902,用于从所述数据库中获取与所述第一行政区划代码处于同一行政级别的多个第一用户ID;A user
报警信息编辑模块903,用于采用所述第一用户ID及所述第一报警信息,生成第二报警信息,所述第二报警信息中包括与各所述第一用户ID各自对应的第一ID数组;The alarm
用户终端确定模块904,用于基于各所述第一ID数组,确定所述第二报警信息针对的多个第一用户终端;a user
报警信息发送模块905,用于将所述第二报警信息分别发送给所述多个第一用户终端。The alarm
可选地,所述装置还可以包括如下模块:Optionally, the device may also include the following modules:
触发条件绑定模块,用于为所述第一报警信息绑定转警触发条件和转警结束条件;a trigger condition binding module, configured to bind an alarm transfer trigger condition and an alarm transfer end condition for the first alarm information;
第一触发模块,用于判断是否满足所述转警触发条件;若满足所述转警触发条件,则确定位于所述第一行政区划代码上N个级别的第二行政区划代码所对应的多个第三用户终端,将所述第一报警信息发送给所述多个第三用户终端,并触发第二触发模块;The first triggering module is used to judge whether the triggering condition for alarm transfer is met; if the triggering condition for alarming transfer is met, determine the number of multiples corresponding to the second administrative division codes located at N levels on the first administrative division code. a third user terminal, sending the first alarm information to the plurality of third user terminals, and triggering the second trigger module;
所述第二触发模块,用于判断是否满足所述转警结束条件,若满足所述转警结束条件,则生成针对所述第一报警信息的结案信息;若不满足所述转警结束条件,则启用所述第一触发模块执行所述判断是否满足所述转警触发条件,若满足所述转警触发条件,则确定位于所述第一行政区划代码上N个级别的第二行政区划代码所对应的多个第三用户终端,将所述第一报警信息发送给所述多个第三用户终端,并触发第二触发模块的步骤。The second trigger module is used for judging whether the end condition of the alarm transfer is satisfied, and if the end condition of the alarm transfer is satisfied, then the case closing information for the first alarm information is generated; if the end condition of the alarm transfer is not satisfied , then enable the first trigger module to execute the judgment whether the alarm transfer trigger condition is met, and if the alarm transfer trigger condition is met, determine the second administrative division located at N levels on the first administrative division code The multiple third user terminals corresponding to the codes send the first alarm information to the multiple third user terminals, and trigger the step of the second triggering module.
可选地,所述报警信息发送模块905可以包括以下单元:Optionally, the alarm
用户确定单元,用于在所述多个第一用户终端中确定当前登录的至少一个第二用户终端;a user determining unit, configured to determine at least one second user terminal currently logged in among the plurality of first user terminals;
发送单元,用于通过websocket通道将所述第二报警信息发送给各所述第二用户终端。A sending unit, configured to send the second alarm information to each of the second user terminals through a websocket channel.
可选地,所述触发条件绑定模块可以包括以下单元:Optionally, the trigger condition binding module may include the following units:
任务绑定单元,用于为所述第二报警信息绑定定时任务、转警信令监听任务及省级行政区划代码;所述定时任务设置有倒计时时间;所述定时任务用于在所述倒计时时间内监听是否接收到针对所述第二报警信息的接警信令,所述转警信令监听任务用于监听是否接收到针对所述第二报警信息的转警信令,所述省级行政区划代码与所述第一行政区划代码相对应;A task binding unit, configured to bind a timed task, an alarm transfer signaling monitoring task and a provincial administrative division code for the second alarm information; the timed task is provided with a countdown time; the timed task is used for Monitor whether the alarm signalling for the second alarm information is received within the countdown period, and the alarm transfer signal monitoring task is used to monitor whether the alarm transfer signalling for the second alarm information is received. The administrative division code corresponds to the first administrative division code;
条件确定单元,用于将所述定时任务未监听到所述接警信令,和/或,将所述转警信令监听任务监听到所述转警信令作为所述转警触发条件;将所述第三用户终端对应的行政区划代码为所述省级行政区划代码作为所述转警结束条件。Condition determining unit, used for not listening to the alarm signalling by the timing task, and/or, using the alarm transfer signal monitoring task to monitor the alarm transfer signaling as the alarm transfer trigger condition; The administrative division code corresponding to the third user terminal is the provincial administrative division code as the condition for ending the alarm transfer.
所述装置还可以包括如下模块:The device may also include the following modules:
取消绑定模块,用于若确定不满足所述转警触发条件,则取消所述定时任务及所述转警信令监听任务。The unbinding module is configured to cancel the timing task and the monitoring task of the alarm signaling if it is determined that the alarm transfer trigger condition is not satisfied.
可选地,所述任务绑定单元可以包括以下子单元:Optionally, the task binding unit may include the following subunits:
Key缓存子单元,用于根据所述第二报警信息的报警标识生成针对所述第二报警信息的key,并将所述key存入redis缓存;The Key cache subunit is used to generate a key for the second alarm information according to the alarm identifier of the second alarm information, and store the key in the redis cache;
定时任务设定子单元,用于在所述redis缓存中为所述key绑定所述定时任务,并为所述定时任务设置所述倒计时时间;A timed task setting subunit, used to bind the timed task for the key in the redis cache, and set the countdown time for the timed task;
所述取消绑定模块,具体用于从所述redis缓存中取消所述key与所述定时任务的绑定关系,和/或,删除所述key。The unbinding module is specifically configured to cancel the binding relationship between the key and the timing task from the redis cache, and/or delete the key.
可选地,所述装置还可以包括如下模块:Optionally, the device may also include the following modules:
报警信息存储模块,用于将所述第二报警信息存入所述数据库,其中,所述第二报警信息包括所述报警标识;an alarm information storage module, configured to store the second alarm information in the database, wherein the second alarm information includes the alarm identifier;
相应地,所述第二触发模块可以包括以下单元:Correspondingly, the second trigger module may include the following units:
第二用户ID获取单元,用于从所述数据库中获取与确定出的所述第二行政区划代码同处一个行政级别的多个第二用户ID;The second user ID obtaining unit is used to obtain a plurality of second user IDs at the same administrative level as the determined second administrative division code from the database;
报警标识获取单元,用于基于所述key,从所述redis缓存中获取所述第二报警信息的报警标识;an alarm identification obtaining unit, used for obtaining the alarm identification of the second alarm information from the redis cache based on the key;
报警信息更新单元,用于基于所述报警标识,从所述数据库中获取所述第二报警信息,并基于所述第二用户ID,更新所述第二报警信息中的第一ID数组,得到第三报警信息,所述第三报警信息中包括与各所述第二用户ID各自对应的第二ID数组;An alarm information update unit, configured to obtain the second alarm information from the database based on the alarm identification, and based on the second user ID, update the first ID array in the second alarm information, to obtain third alarm information, the third alarm information includes a second ID array corresponding to each of the second user IDs;
第二用户终端确定单元,用于基于所述第二ID数组,确定所述第三报警信息针对的多个第三用户终端;A second user terminal determination unit, configured to determine, based on the second ID array, a plurality of third user terminals targeted by the third alarm information;
第二报警信息发送单元,用于将所述第三报警信息分别发送给所述多个第三用户终端。The second alarm information sending unit is configured to send the third alarm information to the plurality of third user terminals respectively.
对于报警信息处理装置实施例而言,由于其与报警信息处理方法实施例基本相似,所以描述的比较简单,相关之处参见报警信息处理方法实施例的部分说明即可。For the embodiment of the apparatus for processing alarm information, since it is basically similar to the embodiment of the method for processing alarm information, the description is relatively simple, and for relevant details, please refer to the partial description of the embodiment of the method for processing alarm information.
本发明实施例还提供了一种装置,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如本发明实施例所述的一个或多个的报警信息处理方法。Embodiments of the present invention also provide an apparatus, comprising: one or more processors; and one or more machine-readable media having instructions stored thereon, which, when executed by the one or more processors, cause The apparatus executes one or more alarm information processing methods according to the embodiments of the present invention.
本发明实施例还提供了一种计算机可读存储介质,其存储的计算机程序使得处理器执行如本发明实施例所述的报警信息处理方法。The embodiment of the present invention also provides a computer-readable storage medium, and the computer program stored in the storage medium enables the processor to execute the alarm information processing method according to the embodiment of the present invention.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that the embodiments of the embodiments of the present invention may be provided as a method, an apparatus, or a computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal equipment to produce a machine that causes the instructions to be executed by the processor of the computer or other programmable data processing terminal equipment Means are created for implementing the functions specified in the flow or flows of the flowcharts and/or the blocks or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the The instruction means implement the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby executing on the computer or other programmable terminal equipment The instructions executed on the above provide steps for implementing the functions specified in the flowchart or blocks and/or the block or blocks of the block diagrams.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although preferred embodiments of the embodiments of the present invention have been described, additional changes and modifications to these embodiments may be made by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment as well as all changes and modifications that fall within the scope of the embodiments of the present invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
以上对本发明所提供的一种报警信息处理方法、一种报警信息处理装置、一种电子设备和一种计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method for processing alarm information, an apparatus for processing alarm information, an electronic device and a computer-readable storage medium provided by the present invention have been described in detail above. Specific examples are used in this paper to explain the principles and implementation of the present invention. The description of the above embodiment is only used to help understand the method of the present invention and its core idea; meanwhile, for those of ordinary skill in the art, according to the idea of the present invention, both in the specific embodiment and application scope will be There are changes. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910817866.4A CN110660205B (en) | 2019-08-30 | 2019-08-30 | Alarm information processing method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910817866.4A CN110660205B (en) | 2019-08-30 | 2019-08-30 | Alarm information processing method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110660205A true CN110660205A (en) | 2020-01-07 |
CN110660205B CN110660205B (en) | 2021-11-16 |
Family
ID=69036634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910817866.4A Active CN110660205B (en) | 2019-08-30 | 2019-08-30 | Alarm information processing method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110660205B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112583638A (en) * | 2020-11-25 | 2021-03-30 | 新浪网技术(中国)有限公司 | Websocket-based voice alarm method and system |
CN115063961A (en) * | 2022-05-13 | 2022-09-16 | 西门子(中国)有限公司 | Alarm collection method, computing device and computer readable medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040267455A1 (en) * | 2003-06-30 | 2004-12-30 | Kabushiki Kaisha Toshiba | Data analyzing apparatus, data analyzing program, and mobile terminal |
CN101527014A (en) * | 2009-04-10 | 2009-09-09 | 重庆市公安局 | Automatic case distribution system |
CN202514010U (en) * | 2012-02-09 | 2012-10-31 | 成都三零凯天通信实业有限公司 | System with support of linkage of alarm, real-time video, historical video, and short message |
US20130132375A1 (en) * | 2005-06-27 | 2013-05-23 | Google Inc. | Dynamic View-Based Data Layer in a Geographic Information System |
CN106875641A (en) * | 2017-03-31 | 2017-06-20 | 深圳市茁壮网络股份有限公司 | A kind of alarm method and device |
CN107005668A (en) * | 2014-12-25 | 2017-08-01 | 索尼公司 | information processing device |
CN107680354A (en) * | 2017-09-13 | 2018-02-09 | 新丝绸之路科技有限公司 | Alarm processing method, alarm platform and storage medium |
CN108140298A (en) * | 2015-06-23 | 2018-06-08 | Ac&C有限责任公司 | Emergency alert system and method |
CN108305450A (en) * | 2017-12-26 | 2018-07-20 | 中国电信股份有限公司新疆分公司 | That converges a variety of alarm sources connects method and system of dealing with emergencies and dangerous situations |
-
2019
- 2019-08-30 CN CN201910817866.4A patent/CN110660205B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040267455A1 (en) * | 2003-06-30 | 2004-12-30 | Kabushiki Kaisha Toshiba | Data analyzing apparatus, data analyzing program, and mobile terminal |
US20130132375A1 (en) * | 2005-06-27 | 2013-05-23 | Google Inc. | Dynamic View-Based Data Layer in a Geographic Information System |
CN101527014A (en) * | 2009-04-10 | 2009-09-09 | 重庆市公安局 | Automatic case distribution system |
CN202514010U (en) * | 2012-02-09 | 2012-10-31 | 成都三零凯天通信实业有限公司 | System with support of linkage of alarm, real-time video, historical video, and short message |
CN107005668A (en) * | 2014-12-25 | 2017-08-01 | 索尼公司 | information processing device |
CN108140298A (en) * | 2015-06-23 | 2018-06-08 | Ac&C有限责任公司 | Emergency alert system and method |
CN106875641A (en) * | 2017-03-31 | 2017-06-20 | 深圳市茁壮网络股份有限公司 | A kind of alarm method and device |
CN107680354A (en) * | 2017-09-13 | 2018-02-09 | 新丝绸之路科技有限公司 | Alarm processing method, alarm platform and storage medium |
CN108305450A (en) * | 2017-12-26 | 2018-07-20 | 中国电信股份有限公司新疆分公司 | That converges a variety of alarm sources connects method and system of dealing with emergencies and dangerous situations |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112583638A (en) * | 2020-11-25 | 2021-03-30 | 新浪网技术(中国)有限公司 | Websocket-based voice alarm method and system |
CN115063961A (en) * | 2022-05-13 | 2022-09-16 | 西门子(中国)有限公司 | Alarm collection method, computing device and computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN110660205B (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110489484B (en) | Data synchronization method, device, readable storage medium and electronic device | |
CN109525460B (en) | Method and device for monitoring number resources of video network | |
CN109729310B (en) | Method and device for exporting monitoring inspection data | |
CN110647698A (en) | Page loading method, apparatus, electronic device and readable storage medium | |
CN108964962B (en) | Method and system for controlling video network terminal | |
CN110190973B (en) | Online state detection method and device | |
CN110381119B (en) | Method, system and device for acquiring log information and storage medium | |
CN110650313B (en) | Catalog display method and device for monitoring resources and storage medium | |
CN110839142B (en) | Monitoring directory sharing method and device | |
CN111431966A (en) | A service request processing method, device, electronic device and storage medium | |
CN110602039A (en) | Data acquisition method and system | |
CN109743585B (en) | Method and device for collecting monitoring videos and cloning favorites | |
CN109151061B (en) | Data storage method and device | |
CN110660205A (en) | Alarm information processing method, device, electronic device and readable storage medium | |
CN110166742A (en) | Video distribution method and apparatus based on view networking | |
CN111212255B (en) | Monitoring resource obtaining method and device and computer readable storage medium | |
CN110134892B (en) | Loading method and system of monitoring resource list | |
CN110784683B (en) | A management method, device and storage medium for monitoring resources | |
CN108965219B (en) | Data processing method and device based on video network | |
CN110022500A (en) | A kind of loss treating method and device | |
CN111858663B (en) | Monitoring statistics method, device and computer-readable storage medium | |
CN110620907B (en) | Monitoring and retrieval method, device, electronic device and storage medium | |
CN111193619B (en) | Log file acquisition method and device | |
CN110830185B (en) | Data transmission method and device | |
CN110557669B (en) | Method and device for displaying video data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013 Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113 Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |