A system and method for receiving and handling police calls offline
By setting up an offline processing device in the alarm terminal or local proxy server, monitoring the network environment and storing alarm information during failure, the problem of information cannot be distributed and saved in a timely manner caused by the alarm network failure is solved, and the alarm information is realized The timely storage and distribution of the company has improved police efficiency and data integrity.
Patent Information
- Application Number
- CN202211655122.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2042-12-22
AI Technical Summary
When the network environment of the alarm reception station fails, the dispatched police information cannot be distributed and saved in a timely manner, resulting in poor real-time performance, difficulty in repetitive storage and querying of data, affecting police efficiency and data integrity.
The local proxy server is used to form a dual-channel information transmission channel. The network environment is monitored in the alarm terminal or the local proxy server through offline processing devices. If a fault occurs, determine the fault type and store the alarm information locally. After the network is restored, it will automatically be restored. Synchronize to the network database to ensure that data is saved and distributed in a timely manner.
It realizes timely storage and distribution of alarm information when network or database connection failure, avoids data loss and repeated storage, ensures the 24-hour uninterrupted real-time and efficient police dispatch capabilities of the alarm station, and improves the stability of the network environment and Data query efficiency.
Smart Images

Figure CN116016113B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a system and method for receiving and handling off-line alarms. Background Art
[0002] When the alarm station is offline, the dispatch information cannot be sent and saved in time. In order to maintain social stability and normal operation, the alarm station PC needs to dispatch police in real time, efficiently and accurately 24 hours a day, safeguard national security and social order, protect citizens' personal safety, personal freedom and legal property, protect public property, prevent, stop and punish illegal and criminal activities. With the continuous development of science and technology, the alarm station system is increasingly dependent on the network. Network data can be retrieved faster and more conveniently, and it can also save police force and space. However, when the existing network service or database connection fails and cannot handle the alarm in real time, the alarm station cannot send the alarm data directly to the alarm station PC of the subordinate unit through the network for alarm handling.
[0003] The database offline caused by the network environment will also have the following disadvantages: Disadvantage 1: Poor real-time performance, high cost of full data export, the larger the data volume, the more difficult it is to output data; redundant data is stored offline repeatedly; Disadvantage 3: It is difficult to identify increments in repeated exports, and historical data is exported repeatedly. It is inconvenient for later case sorting and data query, and the workload increases. Summary of the invention
[0004] In order to solve the problem that the alarm dispatch information cannot be sent and saved in time when the network environment of the alarm reception station fails, the present invention provides a method and system for receiving and handling alarms offline. By building a local proxy server, a dual-channel information transmission channel of local and network links is formed to save and distribute alarm information, so as to realize timely handling of alarms.
[0005] Specifically, the technical solution of the present invention is as follows:
[0006] In a first aspect, the present invention discloses an offline alarm receiving and processing system, comprising: an alarm receiving station terminal, a local proxy server, a network database, a data distribution server, and an offline processing device; the offline processing device is integrated in the alarm receiving station terminal or the local proxy server, wherein:
[0007] Alarm receiving terminal, used to obtain alarm information;
[0008] The offline processing device comprises:
[0009] A local storage module, used to receive the alarm information from the alarm receiving terminal and store it synchronously to the local proxy server;
[0010] A network environment monitoring module is used to regularly monitor the network environment and determine whether the network environment has any faults;
[0011] A network storage module, used for synchronously storing the alarm information in the network database if there is no failure in the network environment;
[0012] A fault judgment module is used to judge the type of fault if a fault occurs in the network environment;
[0013] A data sending module, used to send the alarm information to a data distribution server when a database connection failure occurs, so that the data distribution server sends the alarm information to a corresponding processing terminal;
[0014] The network storage module is also used to automatically call the corresponding interface to save the alarm information cached by the local storage module to the network database when monitoring that the database connection failure is restored or the network connection failure is restored;
[0015] The data sending module is also used to send the alarm information to the data distribution server after monitoring the recovery of the network connection failure, so that the data distribution server can send the alarm information to the corresponding processing terminal.
[0016] In some implementations, the local storage module specifically includes:
[0017] The first collection submodule is used to receive the alarm information of the case collected by the alarm receiving terminal, and the alarm information includes: the alarm information collected by the police receiver through answering the alarm call, and the alarm handling information;
[0018] The format conversion submodule is used to convert the alarm information into an XML file format;
[0019] The data saving submodule is used to save the alarm information in the XML file format to the local proxy server.
[0020] In some implementations, the data distribution server includes:
[0021] The information receiving submodule is used to receive the alarm information transmitted by the data sending module; the alarm information includes alarm receiving data and alarm handling data;
[0022] A processing determination submodule, used to determine a target processing terminal for processing the received alarm data according to the alarm handling data in the alarm information;
[0023] The information sending submodule is used to send the alarm data to the corresponding target processing terminal.
[0024] In some implementations, the network environment monitoring module specifically includes:
[0025] The time setting submodule is used to set the interval time of regular access in advance;
[0026] An interface access submodule, used to access the service interface or message interface of the network database according to the access time set in advance;
[0027] The access result judgment submodule is used to receive the feedback result of the access and judge whether a fault occurs in the network environment.
[0028] In some implementations, the fault judgment module specifically includes:
[0029] An error code extraction submodule, used for extracting the error code carried in the feedback result when a fault occurs in the network environment;
[0030] A fault judgment submodule, used to judge the cause of the access failure and the fault type according to the error code;
[0031] The fault reminder submodule is used to send a network environment fault reminder to the alarm receiving station terminal, wherein the network environment fault reminder includes the type of network environment fault and the cause of the network environment fault.
[0032] In a second aspect, the present invention further discloses a method for receiving and handling an off-line alarm, comprising the following steps:
[0033] Obtain alarm information through the alarm receiving terminal;
[0034] Receive the alarm information from the alarm receiving terminal and store it synchronously to the local proxy server;
[0035] Regularly monitor the network environment to determine whether there is any failure in the network environment;
[0036] If the network environment does not fail, the alarm information is synchronously stored in the network database;
[0037] If a fault occurs in the network environment, determining the type of fault;
[0038] When the database connection fails, the alarm information transmitted by the alarm receiving terminal is sent to the data distribution server; so that the data distribution server sends the alarm information to the corresponding processing terminal;
[0039] When the database connection failure is detected to be restored, the corresponding interface is automatically called to save the locally cached alarm information to the network database;
[0040] When the network connection failure is detected to be restored, the corresponding interface is automatically called to save the locally cached alarm information to the network database; and the alarm information is sent to the data distribution server; so that the data distribution server sends the alarm information to the corresponding processing terminal.
[0041] The receiving of the alarm information from the alarm receiving terminal and synchronously storing it in the local proxy server comprises the following steps:
[0042] Receiving the alarm information of the case collected by the alarm receiving terminal, the alarm information includes: the alarm information collected by the alarm receiver through answering the alarm call, and the alarm handling information;
[0043] Convert the alarm information into XML file format;
[0044] The alarm information in the XML file format is saved to the local proxy server.
[0045] In some implementations, the step of sending the alarm information to a data distribution server so that the data distribution server sends the alarm information to a corresponding processing terminal comprises the following steps:
[0046] Receiving the alarm information transmitted by the alarm receiving terminal or the local proxy server; the alarm information includes: alarm information collected by the alarm receiver through answering the alarm call, and alarm handling information;
[0047] The alarm information is sent to a data distribution server so that the data distribution server determines a target processing terminal for processing the alarm data according to the alarm handling information in the alarm information, and sends the alarm data to the corresponding target processing terminal.
[0048] In some implementations, the periodic monitoring of the network environment to determine whether the network environment fails specifically includes the following steps:
[0049] Set up regular visit intervals in advance;
[0050] Accessing the service interface or message interface of the database according to the access time set in advance;
[0051] Receive the feedback result of the access and determine whether a network environment failure occurs.
[0052] In some implementations, if a fault occurs in the network environment, determining the fault type includes the following steps:
[0053] When a fault occurs in the network environment, extracting an error code carried in the feedback result;
[0054] Determine the cause of the access failure and the type of failure according to the error code;
[0055] A network environment failure reminder is sent to the alarm receiving station terminal, wherein the network environment failure reminder includes the type of network environment failure and the cause of the network environment failure.
[0056] Compared with the prior art, the present invention has at least one of the following beneficial effects:
[0057] 1. The alarm data can be saved to the database in time; the present invention can save the alarm data in time by establishing a local proxy server. The database is accessed regularly, and the return result is used to determine whether the communication with the database is normal; regular service interface and message interface calls are made to determine whether there is a network failure. In daily work, basic data also needs to be synchronized to the database regularly to ensure that the alarm data of the local proxy server is consistent with the data in the database. This is used to distinguish data synchronization after offline recovery of the network or database. After the data is restored, the corresponding interface is automatically called to call and save the locally cached data. Data loss and duplicate data storage due to network problems are avoided.
[0058] 2. It can distribute alarms in a timely manner. No matter if the network or database connection fails, the alarm can be quickly pushed to the corresponding lower-level alarm receiving station PC for alarm handling. The alarm receiving station terminal can dispatch police in real time, efficiently and accurately 24 hours a day, allowing the system to serve users better and more robustly. In the event of a network connection failure, the alarm is distributed to the lower-level alarm receiving station terminal using offline communication methods such as making phone calls and police communications. When the database connection is disconnected and the network connection is normal, the alarm is distributed to the lower-level alarm receiving station terminal using the online method of sending complete alarm data to the data distribution server. This minimizes the disadvantages caused by network failures while utilizing the network.
[0059] 3. The local proxy server regularly checks and calls services to perform network monitoring and perception. It regularly accesses the database and determines the online status of the database based on the success or failure of the access and the error code of the failed access. After detecting a network failure, it provides intelligent reminders for the current network failure, making it convenient for network maintenance personnel to correct the failure in a timely manner. A good network environment will also improve the efficiency of the work of the police receiver, which is crucial to protecting the life and property of the caller. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The preferred implementation modes will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.
[0061] Figure 1 A structural block diagram of an embodiment of an offline alarm receiving and handling system of the present invention;
[0062] Figure 2 It is a structural block diagram of submodules of a data distribution server in one embodiment of an offline alarm receiving and handling system of the present invention;
[0063] Figure 3 A structural block diagram of another embodiment of an offline alarm receiving and handling system of the present invention;
[0064] Figure 4 A flowchart of an embodiment of a method for receiving and handling police calls offline according to the present invention;
[0065] Figure 5 The present invention is a flowchart of another embodiment of a method for offline alarm reception and handling. DETAILED DESCRIPTION
[0066] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0067] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.
[0068] In order to simplify the drawings, only the parts related to the invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".
[0069] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0070] In this document, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0071] In a specific implementation, the terminal device described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones, laptop computers, tutoring machines, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the terminal device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).
[0072] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.
[0074] Reference Manual Attached Figure 1 An embodiment of an offline alarm receiving and handling system provided by the present invention includes: an offline alarm receiving and handling system, including: an alarm receiving station terminal 10, a local proxy server 20, a network database 30, a data distribution server 40, and an offline processing device 50. The offline processing device 50 is integrated in the alarm receiving station terminal or the local proxy server, wherein:
[0075] The alarm receiving terminal 10 is used to obtain alarm information.
[0076] Specifically, the terminal receives an alarm call or text message to obtain alarm information. The local proxy service 20 performs network monitoring and perception, and perceives whether the database is offline and the network is disconnected through regular inspection and service call.
[0077] The offline processing device 50 comprises:
[0078] The local storage module 51 is used to receive the alarm information from the alarm receiving terminal and store it synchronously to the local proxy server.
[0079] Specifically, the alarm information obtained by the alarm receiving terminal 10 is sorted and saved locally in the XML file format. The XML file can be considered as a text-based database. XML describes the content according to the described data, and the XML file can be completely processed into data by the program.
[0080] The network environment monitoring module 52 is used to regularly monitor the network environment and determine whether a fault occurs in the network environment.
[0081] Specifically, the periodic check is to access the database regularly and determine the online status of the database according to whether the access result is successful or not and the error code of the failed access.
[0082] By calling the service interface and message interface regularly, if all interfaces are inaccessible, it is determined to be a network failure.
[0083] The network storage module 53 is used to synchronously store the alarm information in the network database if there is no failure in the network environment.
[0084] Specifically, basic data is synchronized regularly to provide data support for offline situations. The local server regularly synchronizes local data to the database to keep the database data consistent with the local database to prevent data conflicts.
[0085] The fault judgment module 54 is used to judge the fault type if a fault occurs in the network environment.
[0086] Specifically, network environment failures can be roughly divided into two types: network connection failures and database connection failures. When the network connection fails, the database is also disconnected accordingly. When the database connection fails, the network connection may not necessarily fail.
[0087] The data sending module 55 is used to send the warning information to the data distribution server when the database connection fails, so that the data distribution server sends the warning information to the corresponding processing terminal.
[0088] Specifically, when the network is offline, the local proxy server directly saves the alarm data locally and does not perform other operations. When the database is offline, in addition to saving the data locally, the complete alarm information needs to be sent to the data distribution service, and the data distribution service sends the alarm data to the subordinate units.
[0089] The network storage module 53 is also used to automatically call the corresponding interface to save the alarm information cached by the local storage module to the network database when monitoring that the database connection failure is restored or the network connection failure is restored.
[0090] Specifically, the local server determines that after the communication connection of the network or database of the alarm receiving station PC is restored by monitoring the connection heartbeat between the databases, the proxy server will automatically call the corresponding interface to save the locally cached alarm data information into the database.
[0091] The data sending module 55 is also used to send the warning information to the data distribution server when the network connection failure is detected to be restored, so that the data distribution server can send the warning information to the corresponding processing terminal.
[0092] Another embodiment of the offline alarm receiving and handling system of the present invention, based on the local storage module 51 in one embodiment of the above system, further includes:
[0093] The first collection submodule 511 is used to receive the alarm information of the case collected by the alarm receiving terminal, and the alarm information includes: the alarm information collected by the police receiver by answering the alarm call, and the alarm handling information.
[0094] The format conversion submodule 512 is used to convert the alarm information into an XML file format.
[0095] The data saving submodule 513 is used to save the alarm information in the XML file format to the local proxy server.
[0096] Another embodiment of the system for receiving and handling off-line alarms of the present invention is shown in the attached specification. Figure 2 As shown, in one embodiment of the above system, based on the data distribution server 40, it includes:
[0097] The information receiving submodule 41 is used to receive the alarm information transmitted by the data sending module, wherein the alarm information includes alarm receiving data and alarm handling data.
[0098] The processing determination submodule 42 is used to determine the target processing terminal for processing the received alarm data according to the alarm handling data in the alarm information.
[0099] The information sending submodule 43 is used to send the alarm data to the corresponding target processing terminal.
[0100] Another embodiment of an offline alarm receiving and handling system of the present invention, based on the network environment detection module 52 in one embodiment of the above system, includes:
[0101] The time setting submodule 521 is used to set the interval time of the regular access in advance.
[0102] The interface access submodule 522 is used to access the service interface or message interface of the network database according to the access time set in advance.
[0103] The access result judgment submodule 523 is used to receive the feedback result of the access and judge whether a fault occurs in the network environment.
[0104] Another embodiment of the system of the present invention, based on the fault judgment module 54 in any of the above system embodiments, further includes:
[0105] The error code extraction submodule 541 is used to extract the error code carried in the feedback result when a fault occurs in the network environment.
[0106] The fault judgment submodule 542 is used to judge the cause of the access failure and the fault type according to the error code.
[0107] The fault reminder submodule 543 is used to send a network environment fault reminder to the alarm receiving station terminal, wherein the network environment fault reminder includes the type of network environment fault and the cause of the network environment fault.
[0108] Another embodiment of the system for receiving and handling off-line alarms of the present invention is shown in the attached specification. Figure 3 As shown, including:
[0109] It includes the alarm receiving station PC, local proxy server, alarm receiving and handling service, and database.
[0110] The city police station's alarm receiving station PC has a built-in local proxy server.
[0111] The local proxy server is used by the alarm receiving station PC to transmit and synchronize alarm information.
[0112] Preferably, the alarm information on the local proxy server is synchronized to the database in real time through the alarm receiving and handling service, so that the alarm information locally and in the database remain completely consistent.
[0113] When the database connection is disconnected, the local proxy server needs to save the data locally and send the complete alarm information to the alarm receiving station PC of the subordinate unit. After the network is restored, the proxy server automatically calls the corresponding interface to save the locally cached data to the database.
[0114] When the network connection is disconnected, the local proxy server saves the data locally and does not send it down. When the network connection is restored, the proxy server automatically calls the corresponding interface to save the locally cached data to the database, and sends the alarm information to the alarm receiving station PC of the subordinate unit through the data distribution server. Based on the same technical concept, the present invention also discloses an offline alarm receiving and handling method, which can be implemented with the help of any of the above-mentioned offline alarm receiving and handling system embodiments. Specifically, an offline alarm receiving and handling method embodiment of the present application is shown in the attached manual. Figure 4 As shown, including:
[0115] S100, obtaining alarm information through the alarm receiving terminal.
[0116] S200, receiving the alarm information from the alarm receiving terminal, and synchronously storing the information to the local proxy server.
[0117] Specifically, the police information collected by the alarm receiving terminal is saved locally in the form of an XML file so that the database can organize the case history.
[0118] S300, regularly monitoring the network environment to determine whether a fault occurs in the network environment.
[0119] Specifically, through regular database access, service interface calls, and message interface calls by the local proxy server, the online status of the database and the network can be determined, and it can be sensed whether there is a database offline or a network disconnection in the environment. The business interaction with the alarm station can also perceive environmental problems.
[0120] If the database cannot be connected and all interfaces cannot be accessed, it is basically determined that the network is faulty. The specific cause of the fault in the current network environment can be determined by the error code returned for access failure.
[0121] S400: If there is no failure in the network environment, the alarm information is synchronously stored in the network database.
[0122] Specifically, basic data is synchronized to the database at regular intervals to ensure that the alarm data of the local proxy server is consistent with the data in the database. In the absence of network failures, the alarm data of the local proxy server can also reduce the time for database retrieval of data. In the event of a network failure, the alarm data of the local proxy server can also ensure the data basis for case processing, avoiding losses caused by the inability to handle cases in a timely manner due to network problems.
[0123] S500: If a fault occurs in the network environment, determine the type of fault.
[0124] Specifically, the database is accessed regularly, and the communication with the database is judged to be normal by the access return results. The network is judged to have any faults by calling the service interface and message interface regularly.
[0125] S600, when the database connection fails, the alarm information transmitted by the alarm receiving terminal is sent to the data distribution server, so that the data distribution server sends the alarm information to the corresponding processing terminal.
[0126] Specifically, when the network connection fails, the connection with the database is also disconnected. The alarm receiving terminal collects the alarm information of the case by answering the alarm call, receiving text messages and other alarm records, or offline alarm records, etc. The alarm information includes: the alarm information collected by the alarm receiver by answering the alarm call, and the alarm handling information sent to the corresponding unit or police officer. The alarm information is converted into XML file format. The alarm information in the XML file format is saved locally.
[0127] XML files can be considered as text-based databases. XML files can describe content based on the data they describe. XML files can be completely processed by programs as data.
[0128] After that, the specific circumstances, details, and case handling methods of the case will be passed on to the police officers involved in the case through telephone, police communication, offline communication and other methods that do not require the Internet, so that the police officers can understand the details of the case and handle the case in a timely manner.
[0129] S700, when it is detected that the database connection failure is restored, the corresponding interface is automatically called to save the locally cached alarm information to the network database.
[0130] Specifically, when the database connection fails, the network connection is not faulty, but the database cannot be accessed. In addition to saving the alarm information collected by the alarm terminal locally, the corresponding complete alarm data needs to be sent to the data distribution server. The corresponding complete alarm data refers to more detailed and specific alarm data including alarm information. For example, in addition to textual case records and police handling information, it also includes the audio data of the caller, photos and videos provided by the caller, and other content that cannot be described by XML files. After the complete alarm data is sorted and sent to the data distribution server, the data distribution server locks the corresponding police handling terminal according to the police handling information in the alarm data, and sends the complete alarm data to the corresponding police handling terminal, so that the police handling personnel can understand the details of the case and handle the case in a timely manner.
[0131] S800, when the network connection failure is detected to be restored, the corresponding interface is automatically called to save the locally cached alarm information to the network database, and the alarm information is sent to the data distribution server, so that the data distribution server sends the alarm information to the corresponding processing terminal.
[0132] Specifically, after monitoring that the network connection has been restored, the database connection is also restored accordingly. The corresponding complete alarm data refers to more detailed and specific alarm data including alarm information. For example, in addition to textual case records and police handling information, it also includes the caller's audio data, photos and videos provided by the caller, and other content that cannot be described in XML files.
[0133] Another embodiment of the method for receiving and handling an offline alarm provided by the present invention, in the above method embodiment S200, based on receiving the alarm information of the alarm receiving terminal and synchronously storing it in the local proxy server, the method for receiving and handling an offline alarm further includes:
[0134] S210, receiving the alarm information of the case collected by the alarm receiving terminal, the alarm information including: the alarm receiving information collected by the alarm receiver by answering the alarm call, and the alarm handling information.
[0135] S220, converting the alarm information into an XML file format.
[0136] S230, saving the alarm information in the XML file format to the local proxy server.
[0137] In another embodiment of an offline alarm receiving and handling method provided by the present invention, in the above method embodiment S600, the alarm information is sent to a data distribution server. On the basis that the data distribution server sends the alarm information to the corresponding processing terminal, the offline alarm receiving and handling method further includes:
[0138] S610, receiving the alarm information transmitted by the alarm receiving terminal or the local proxy server. The alarm information includes: alarm information collected by the alarm receiver through answering the alarm call, and alarm handling information.
[0139] S620, sending the alarm information to the data distribution server, so that the data distribution server determines the target processing terminal for processing the alarm data according to the alarm handling information in the alarm information, and sends the alarm data to the corresponding target processing terminal.
[0140] Another embodiment of an offline alarm receiving and handling method provided by the present invention, in the above method embodiment S300, based on regularly monitoring the network environment and determining whether the network environment has a fault, the offline alarm receiving and handling method further includes:
[0141] S310, setting the interval time of the regular access in advance.
[0142] S320, accessing the service interface or message interface of the database according to the access time set in advance.
[0143] S330, receiving the feedback result of the access, and determining whether a network environment failure occurs.
[0144] Another embodiment of an offline alarm receiving and handling method provided by the present invention, in the above method embodiment S500, if the network environment fails, then based on determining the type of failure, the offline alarm receiving and handling method further includes:
[0145] S510: When a fault occurs in the network environment, extract an error code carried in the feedback result.
[0146] S520: Determine the cause of the access failure and the type of failure according to the error code.
[0147] S530: Send a network environment failure reminder to the alarm receiving terminal, where the network environment failure reminder includes the type of network environment failure and the cause of the network environment failure.
[0148] Another embodiment of the method for receiving and handling an off-line alarm of the present invention is as shown in the attached specification. Figure 5 As shown, the following steps are included:
[0149] S1. The local proxy service of the alarm reception station monitors and senses the network environment, including network failure conditions and database connection conditions.
[0150] S2. Regularly access the database and determine whether the communication with the database is normal based on the access return results; determine whether there is a network failure through regular service interface and message interface calls.
[0151] Specifically, through regular detection, service calls, and interface error return judgment, it is possible to detect whether the database in the environment is offline and whether the network is disconnected.
[0152] Regular inspections include: database access, judging the online status of the database based on the access success or failure and the error code screening of failures; judging the network status through regular service interface and message interface calls, and basically judging the network failure if all interfaces are inaccessible. The interaction between the business and the alarm reception desk can also perceive environmental problems, and the basic logic is the same as the regular inspection.
[0153] S3. Basic data is synchronized regularly to provide data support for offline situations.
[0154] Specifically, in daily work, basic data also needs to be synchronized to the database regularly to ensure that the alarm data of the local proxy server is consistent with the data in the database. This scenario is different from data synchronization after the network or database is restored offline.
[0155] S4. When the network is offline, the local proxy server directly saves the alarm information entered into the system by the police officer when answering the call, as well as the alarm handling information sent to the corresponding unit or police officer, in the XML file format locally, and sends the alarm to the handling unit through offline transmission methods such as telephone or police communication according to the alarm handling information; when the database is offline, in addition to saving the data locally, the complete alarm information needs to be sent to the data distribution service.
[0156] S5. After the environment changes from offline to online, the proxy server automatically calls the corresponding interface to save the locally cached data to the database.
[0157] Specifically, the local proxy server needs to monitor the heartbeat of the network and database connection in real time to monitor the connection status of the network and the database. If the heartbeat is detected to be restored, the local proxy server automatically calls the corresponding interface to save the locally cached data into the database.
[0158] The system and method for offline alarm reception and handling of the present invention have the same technical concept, and the technical details of the embodiments of the two are applicable to each other. In order to reduce repetition, they will not be described again.
[0159] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0160] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0161] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0162] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0163] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An offline police response system. include: Alarm receiving terminal, local proxy server, network database, data distribution server, and offline processing device; The offline processing device is integrated into the alarm receiving terminal or the local proxy server, wherein: Alarm receiving terminal, used to obtain alarm information; The offline processing device comprises: A local storage module, used to receive the alarm information from the alarm receiving terminal and store it synchronously to the local proxy server; A network environment monitoring module is used to regularly monitor the network environment and determine whether the network environment has any faults; A network storage module, used for synchronously storing the alarm information in the network database if there is no failure in the network environment; A fault judgment module is used to judge the type of fault if a fault occurs in the network environment; A data sending module, used to send the alarm information to a data distribution server when a database connection failure occurs, so that the data distribution server sends the alarm information to a corresponding processing terminal; The network storage module is also used to automatically call the corresponding interface to save the alarm information cached by the local storage module to the network database when monitoring that the database connection failure is restored or the network connection failure is restored; The data sending module is also used to send the alarm information to the data distribution server when the network connection failure is detected to be restored, so that the data distribution server sends the alarm information to the corresponding processing terminal; The local storage module specifically includes: The first collection submodule is used to receive the alarm information of the case collected by the alarm receiving terminal, and the alarm information includes: the alarm information collected by the police receiver through answering the alarm call, and the alarm handling information; The format conversion submodule is used to convert the alarm information into an XML file format; A data saving submodule is used to save the alarm information in the XML file format to a local proxy server; The data distribution server comprises: The information receiving submodule is used to receive the alarm information transmitted by the data sending module; the alarm information includes alarm receiving data and alarm handling data; A processing determination submodule, used to determine a target processing terminal for processing the received alarm data according to the alarm handling data in the alarm information; An information sending submodule, used for sending the alarm data to the corresponding target processing terminal; The network environment monitoring module specifically includes: The time setting submodule is used to set the interval time of regular access in advance; An interface access submodule, used to access the service interface or message interface of the network database according to the access time set in advance; An access result judgment submodule is used to receive the feedback result of the access and judge whether a fault occurs in the network environment; The fault judgment module specifically includes: An error code extraction submodule, used to extract the error code carried in the feedback result when a fault occurs in the network environment; A fault judgment submodule, used to judge the cause of the access failure and the fault type according to the error code; The fault reminder submodule is used to send a network environment fault reminder to the alarm receiving station terminal, wherein the network environment fault reminder includes the type of network environment fault and the cause of the network environment fault.
2. A method for receiving and handling police calls offline. It is characterized in that The following steps are involved: Obtain alarm information through the alarm receiving terminal; Receive the alarm information from the alarm receiving terminal and store it synchronously to the local proxy server; Regularly monitor the network environment to determine whether there is any failure in the network environment; If the network environment does not fail, the alarm information is synchronously stored in the network database; If a fault occurs in the network environment, determining the type of fault; When the database connection fails, the alarm information transmitted by the alarm receiving terminal is sent to the data distribution server; so that the data distribution server sends the alarm information to the corresponding processing terminal; When the database connection failure is detected to be restored, the corresponding interface is automatically called to save the locally cached alarm information to the network database; When the network connection failure is detected to be restored, the corresponding interface is automatically called to save the locally cached alarm information to the network database; and sending the alarm information to a data distribution server; so that the data distribution server sends the alarm information to a corresponding processing terminal; The receiving of the alarm information from the alarm receiving terminal and synchronously storing it in the local proxy server comprises the following steps: Receiving the alarm information of the case collected by the alarm receiving terminal, the alarm information includes: the alarm information collected by the alarm receiver through answering the alarm call, and the alarm handling information; Convert the alarm information into XML file format; The warning information in the XML file format is saved to the local proxy server; The method of sending the alarm information to a data distribution server so that the data distribution server sends the alarm information to a corresponding processing terminal comprises the following steps: Receiving the alarm information transmitted by the alarm receiving terminal or the local proxy server; the alarm information includes alarm receiving data and alarm handling data; Send the alarm information to the data distribution server, so that the data distribution server determines the target processing terminal for processing the alarm data according to the alarm handling information in the alarm information, and sends the alarm data to the corresponding target processing terminal; The periodic monitoring of the network environment to determine whether the network environment has a fault specifically includes the following steps: Set up regular visit intervals in advance; Accessing the service interface or message interface of the database according to the access time set in advance; Receiving feedback results of the access and determining whether a network environment failure occurs; If the network environment fails, determining the type of failure includes the following steps: When a fault occurs in the network environment, extracting an error code carried in the feedback result; Determine the cause of the access failure and the type of failure according to the error code; A network environment failure reminder is sent to the alarm receiving station terminal, wherein the network environment failure reminder includes the type of network environment failure and the cause of the network environment failure.
