CN109040171A - A kind of emergency response system, method, equipment and storage medium - Google Patents
A kind of emergency response system, method, equipment and storage medium Download PDFInfo
- Publication number
- CN109040171A CN109040171A CN201810615528.8A CN201810615528A CN109040171A CN 109040171 A CN109040171 A CN 109040171A CN 201810615528 A CN201810615528 A CN 201810615528A CN 109040171 A CN109040171 A CN 109040171A
- Authority
- CN
- China
- Prior art keywords
- event
- message
- data
- database
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- 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/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- 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/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
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- 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]
Abstract
It includes: message conversion module that the present invention, which discloses a kind of emergency response system, method, equipment and storage medium, system, for receiving the primary data of internet of things equipment transmission, and carries out Message processing to the primary data and generates message data;The primary data includes event information and data information;Mechanical floor drive module, the message data sent for receiving the message conversion module, and conversion generation event title and event argument information are carried out to the message data;Trigger event engine modules, are also used to obtain rule script after determining that event title trigger event is regular, and event argument information is passed to rule script to execute generation movement and execute parameter, parameter is executed according to movement and the generation of event argument information executes instruction;Action drives module is executed, generation is executed instruction for basis and executes message, and is sent to internet of things equipment and completes response.The present invention realizes versatility, scalability and compatibility in different scenes.
Description
Technical field
The present invention relates to the Internet of Things communications fields more particularly to a kind of emergency response system, method, equipment and storage to be situated between
Matter.
Background technique
At present in the application solution of smart city, widely there is various kinds of sensors, such as illumination/water enchroachment (invasion)/micro-
Wave induction etc., is also provided simultaneously with the execution controller of the controllable operation of different function, such as tunable optical lamps and lanterns, alarm switch
Deng.It is frequently necessary to remove design sensor according to certain scene in practical application and executes the linkage scheme of controller.
Main problem existing for existing solution is that all kinds of linkage schemes are all independent designs, is not had general
Property, scalability and compatibility, can not be multiplexed in the platform of smart city to reach effective and reasonable monitoring demand.
Summary of the invention
In view of the above-mentioned problems, the purpose of the present invention is to provide a kind of emergency response system, method, equipment and storages to be situated between
Matter enables to sensor and the linkage for executing controller to have versatility, scalability and compatibility.
The embodiment of the invention provides a kind of emergency response systems, comprising:
Message conversion module for receiving the primary data of internet of things equipment transmission, and is reported the primary data
Text processing generates message data;The primary data includes event information and data information;
Mechanical floor drive module, the message data sent for receiving the message conversion module, and to the message number
According to carrying out conversion generation event title and event argument information;
Trigger event engine modules, for receiving the event title and event argument information, and according to the event name
Title judges whether trigger event rule;
The trigger event engine modules are also used to obtain after determining that the event title triggers scheduled event rules
Rule script corresponding with the event rules of triggering is taken, the event argument information is passed to the rule script to execute generation
Corresponding movement executes parameter, and is executed instruction according to movement execution parameter and event argument information generation;
Action drives module is executed, generates corresponding execution message for executing instruction according to, and by the execution
Message is sent to the internet of things equipment by the message conversion module, to complete to respond.
Preferably, the message conversion module includes:
Realize the http client that data communication is carried out with the mechanical floor drive module;
Realize the http server-side that data communication is carried out with the execution action drives module;
Realize the equipment access service end communicated with the internet of things equipment;
Message manager, for receiving and forwarding disappearing from the http server-side and equipment access service end
Breath;
Consultative management controller, for receiving the message come from message manager forwarding, and to the message received
The http client or equipment access service end are forwarded to after carrying out protocol conversion.
Preferably,
Equipment access service end includes TCP service module and UDP service module, and the UDP service module includes meeting
Talk about control module and port list;Wherein,
The session control module, for receiving the IP address and port numbers that report carrying by internet of things equipment, and with end
The IP address and port numbers of mouth list storage are compared;Wherein, it if comparison result is consistent, does not need to modify;If than
It is inconsistent compared with result, new IP address and port number combinations update are modified in port list, to reach port number progress
It is corresponding to change.
Preferably, the emergency response system includes event engine database, and the event engine database includes event
Rule database, the event rules database is for storing trigger event title and corresponding event rules;
Then the trigger event engine modules are specifically used for, inquired in event rules database whether with current event
The corresponding trigger event title of title, to judge whether to trigger corresponding event rules.
Preferably, the event engine database further includes rule script database and external interface database;
Then the trigger event engine modules also particularly useful for,
When determining that the event rules database registration has event rules corresponding with the event title, from regular foot
Rule script corresponding with the event rules is obtained in database;
The event argument information is passed to the rule script;
Judge to execute whether the rule script needs to call external interface;
If so, searching chartered external interface and synchronization call, in the external interface database to return
Action parameter;
Parameter is executed with return action if it is not, then executing the rule script;
Parameter is executed according to the movement and event argument information generation executes instruction.
Preferably, further includes:
Database interface module is parsed for obtaining the logon message of JSON format, and to the logon message, and
Corresponding database is sent by the parsing data of generation to register;Wherein, the logon message of the JSON format passes through use
Respective rule script, external interface data and event rules are write in host computer administration interface and are generated in family.
Preferably, the primary data is binary data;The data information includes the equipment of the internet of things equipment
ID。
The embodiment of the invention also provides a kind of event response methods, include the following steps:
The primary data that internet of things equipment is sent is received, and Message processing is carried out to the primary data and generates message number
According to;The primary data includes event information and data information;
Conversion generation event title and event argument information are carried out to the message data;
Judge whether trigger event rule according to the event title;
After determining that the event title triggers scheduled event rules, rule corresponding with the event rules of triggering is obtained
The event argument information is passed to the rule script to execute and generate corresponding movement execution parameter by script, and according to institute
It states movement execution parameter and event argument information generation executes instruction;
The corresponding execution message of generation is executed instruction according to described, and the execution message is sent to the Internet of Things and is set
It is standby, to complete to respond.
The embodiment of the invention also provides a kind of event response equipment, including processor, memory and it is stored in described
In memory and it is configured as the computer program executed by the processor, when the processor executes the computer program
Realize such as above-mentioned event response method.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium includes
The computer program of storage, wherein control in computer program operation and set where the computer readable storage medium
It is standby to execute such as above-mentioned event response method.
In said one embodiment, the judgement to event title is realized by trigger event engine modules and is provided corresponding
Event rules to solve the problems, such as the complex logic relationship in multiple sensor signals fusion and decoupling scene, and can be realized
The linkage scheme of sensor and actuator is transferred according to more scenes, solves versatility, scalability in different scenes design scheme
With compatibility.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, attached drawing needed in embodiment will be made below
Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of interaction of the emergency response system that first embodiment of the invention provides and internet of things equipment and host computer
Schematic diagram.
Fig. 2 is a kind of interaction of the emergency response system that the preferred embodiment of the present invention provides and internet of things equipment and host computer
Schematic diagram.
Fig. 3 is the flow diagram for the event response method that second embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, first embodiment of the invention provides a kind of emergency response system 100, comprising:
Message conversion module 11 is carried out for receiving the primary data of internet of things equipment transmission, and to the primary data
Message processing generates message data;The primary data includes event information and data information;
Mechanical floor drive module 10, the message data sent for receiving the message conversion module, and to the message
Data carry out conversion generation event title and event argument information.
In the present embodiment, the internet of things equipment may be, for example, intelligent video camera head, intelligent road-lamp, Intelligent alarm switch
Deng the present invention is not specifically limited.Wherein, the internet of things equipment and the emergency response system 100 can pass through local area network, city
The modes such as domain net, wide area network carry out the transmission of data, and the present invention is not specifically limited.
In the present embodiment, upon establishment of a connection, the internet of things equipment can be sent just to the message conversion module 11
Beginning data, wherein the primary data is binary data, and including event information and data information;The data information
Including at least the device id of the internet of things equipment.
In the present embodiment, the mechanical floor drive module 10 is after receiving the message data, according to presetting
Message rule message is parsed, to generate event title corresponding with event information and event corresponding with data information
Parameter information.
Trigger event engine modules 20, for receiving the event title and event argument information, and according to the event
Title judges whether trigger event rule;
Specifically, in the present embodiment, the emergency response system 100 includes event engine database, and the event is drawn
Holding up database includes event rules database, and the event rules database is for storing trigger event title and corresponding thing
Part rule;
Then the trigger event engine modules 20 are specifically used for, inquired in event rules database whether with current thing
The consistent trigger event title of part title, to judge whether trigger event rule.
The trigger event engine modules 20 are also used to after determining that the event title triggers scheduled event rules,
Rule script corresponding with the event rules of triggering is obtained, the event argument information is passed to the rule script to execute life
Parameter is executed at corresponding movement, and is executed instruction according to movement execution parameter and event argument information generation.
Specifically, the event engine database further includes script rule database and external interface database;
Then the trigger event engine modules 20 also particularly useful for,
When determining that the event rules database registration has event rules corresponding with the event title, from regular foot
Rule script corresponding with the event rules is obtained in database;
The event argument information is passed to the rule script and judges to execute whether the rule script needs to call
External interface;
If so, searching chartered external interface and synchronization call, in the external interface database to return
Action parameter;
Parameter is executed with return action if it is not, then executing the rule script;
Parameter is executed according to the movement and event argument information generation executes instruction.
Action drives module 30 is executed, generates corresponding execution message for executing instruction according to, and hold described
Row message is sent to the internet of things equipment by the protocol data converter 210, to complete to respond.
To be done with an actual example to the present embodiment further retouch below convenient for the understanding to the present embodiment
It states.
Assuming that the internet of things equipment is the concentrator (Concentrator) of wisdom road lamp system, and in event rules
The concentrator is had registered in database, and event rules " when school " are needed to be implemented in each log in.
After then being first logged into concentrator or causing to go offline because of accident after login, when concentrator and the event response
When system establishes connection, primary data can be sent to the message conversion module 11, primary data includes logging request and collection
Middle device ID.
The message conversion module 11 carries out Message processing to primary data, generates the message data of JSON format, and leads to
It crosses mechanical floor drive module 10 and the message data is converted into corresponding event title (CCULOGIN) and event argument information
(CCUID)。
Then, the trigger event engine modules 20 have searched whether and the event in the event rules database
Title (such as are as follows: CCULOGIN) corresponding trigger event title.Exist due to having registered concentrator in event rules database
The event rules " when school " are needed to be implemented when logging in every time, therefore, the trigger event engine modules 20 have been found and event
The corresponding event rules " when school " of title " CCULOGIN ".
Then, the event argument information is passed to corresponding rule script by the trigger event engine modules 20, and is led to
Executing rule script is crossed to carry out " when school ".Rule script obtains incoming event argument information (CCUID) and by having infused
Volume good external interface getCCUTimeZone and event argument information CCUID get time-zone information from external system
Timezone, and contradistinction system time zone and current time calculate a time.Then, rule script return implementing result is
Success and time and CCUID, the trigger event engine modules 20 call generation to hold using return value time and CCUID as parameter
Row instruction.Finally, the execution action drives module 30 according to it is described execute instruction to be combined into corresponding execute message and send
To corresponding concentrator, so that the concentrator is executed instruction according to event and is calibrated.
It should be noted that needing to call external interface in executing rule script, but in some cases in above-mentioned example
Under, executing rule script only may also need to do the judgement of a simple "Yes" or "No", without calling external connect
Mouthful.
In conclusion emergency response system 100 provided in this embodiment, realizes and transfers sensor according to more scenes and execute
The linkage scheme of device solves versatility, scalability and compatibility in different scenes design scheme.Trigger event engine modules 20
It is the nuclear structure of this system, it mainly realizes the judgement to event title and provides corresponding event rules.Event engine number
It include external interface database and rule script database according to library, to solve the problems, such as multiple sensor signals fusion and decoupling field
Complex logic relationship in scape.In addition, this system uses the thread management schemes of multithreading and multithreading group, can cope with
More equipment and big data quantity concurrent processing problem, the robustness and stability of lifting system.
Referring to Fig. 2, on the basis of first embodiment, it is preferable that the message conversion module 11 includes:
Realize the http client that data communication is carried out with the mechanical floor drive module;
Realize the http server-side that data communication is carried out with the execution action drives module 30;
Realize the equipment access service end communicated with the internet of things equipment 200;
Message manager, for receiving and forwarding disappearing from the http server-side and equipment access service end
Breath;
Consultative management controller, for receiving the message come from message manager forwarding, and to the message received
The http client or equipment access service end are forwarded to after carrying out protocol conversion.
In the present embodiment, on the one hand the consultative management controller can be used to receive disappears from what message manager forwarding came
On the other hand breath can be used to the message after receiving being forwarded to the http client or equipment access service end, therefore,
Consultative management controller communicates respectively with message manager, equipment access service end and the http client, http server-side
Connection.
In the present embodiment, equipment access service end is used to receive the device protocol message from internet of things equipment 200
(device protocol message is the message for meeting device protocol).Meanwhile equipment access service end can be used for internet of things equipment
200 send the message for meeting device protocol.
In the present embodiment, since what is exchanged between the http client, http server-side and host computer is application layer
Protocol massages, and what is exchanged between equipment access service end and internet of things equipment 200 is device protocol message, therefore, in http
Between client, http server-side and equipment access service end, need to realize to using layer protocol message and device protocol message
Between conversion.It is high by the way of two structure cooperatings of message manager and consultative management controller in the present embodiment
Realize this function in effect ground.
Specifically, either http server-side generate message or equipment access service end generate message, forward
To message manager, storage, reception and the forwarding of message are realized by the message manager, is then forwarded to consultative management control
Device.In consultative management controller therefore setting or the transformation rule being stored between each agreement can independently be realized not
With the conversion between agreement, so that whole event response system can be compatible with the different agreement of different vendor's distinct device,
It realizes the high efficiency of data conversion, improves the response speed that internet of things equipment 200 is communicated with host computer, solve host computer processing report
The burden of literary (message conversion), so that host computer efficient process information.
In addition, in the present embodiment, equipment access service end includes TCP service module and UDP service module, also,
UDP service module includes session control module and port list.By the way that session control module and port is arranged in UDP service module
List, the present embodiment form a kind of UDP server-side link pretreatment mechanism, so that message conversion module is when handling udp protocol,
Mitigate whole system because link is often changed due to the load caused by system.
Specifically, session control module and port list realize that the pretreated mechanism process of UDP server-side link is as follows:
After internet of things equipment 200, which will log in packet (message), is supplied to message conversion module 11, internet of things equipment 200
UID number can be bound with the IP address and port numbers of login, and message is saved in UDP service module;Hereafter, this Internet of Things
Net equipment 200 sends message to message conversion module 11, and message conversion module 11 can generate the pointer including UID message and tie
It ties up in main body of the packet;From this, the address mapping of this internet of things equipment 200 and change will not carry out pipe in consultative management controller
Reason, report every time carrying IP address and port numbers by session control module receive after, all can in UDP service module with port
List is compared (if comparison result is consistent, not to be needed to modify with respective handlings such as modifications;If comparison result is different
It causes, new IP address and port number combinations update is modified in list, to reach the reply of port number change);Message exists
In subsequent consultative management control, only will do it content modification (address will not be processed), corresponding address is UID pointer,
When message is handled well, this internet of things equipment 200 is transmitted back to, according to this corresponding IP address of UID pointer maps and end
Slogan.By this working mechanism, the present embodiment can reduce the memory loss of consultative management controller, improve the stabilization of system
Property.
That is, in the present embodiment, due to being provided with session control module and port list, energy in UDP service module
It is enough to realize to comparison correction mechanism in port is added in UDP service module, the port of blocking will be easy to cause to correct originally, setting exists
Message carries out before entering consultative management controller, reduces the active line of consultative management controller processing UDP port number (variation)
Journey promotes the working efficiency and stability of message conversion module 11.Therefore, mould is serviced by consultative management controller and UDP
The cooperation of block is able to solve the message transfer problem of existing host computer and internet of things equipment, it is concurrent to solve more equipment, big data quantity
Processing problem improves the efficiency of data conversion.
On the basis of first embodiment, it is preferable that the emergency response system 100, further includes:
Database interface module 40 is parsed for obtaining the logon message of JSON format, and to the logon message,
And corresponding database is sent by the parsing data of generation and is registered;Wherein, the logon message of the JSON format passes through
User writes respective rule script, external interface data and event rules in the administration interface of host computer and generates.
In the present embodiment, user can by the administration interface redaction rule script of host computer, external interface data and
Event rules, these regular commands will be sent to database interface module 40 by the format of JSON message, by the database
Interface module 40 is unpacked and is registered, thus the database interface module 40 can be convenient registration rule script,
External interface and event rules increase the scalability of this system, facilitate subsequent maintenance work.
Referring to Fig. 3, second embodiment of the invention provides a kind of event response method, include the following steps:
S101 receives the primary data that internet of things equipment is sent, and carries out Message processing to the primary data and generate report
Literary data;The primary data includes event information and data information;
S102 carries out conversion generation event title and event argument information to the message data;
S103 judges whether trigger event rule according to the event title;
S104 is obtained corresponding with the event rules of triggering after determining that the event title triggers scheduled event rules
Rule script, the event argument information is passed to the rule script to execute and generate corresponding movement and execute parameter, and
Parameter is executed according to the movement and event argument information generation executes instruction;
S105 executes instruction the corresponding execution message of generation according to described, and the execution message is sent to the object
Networked devices, to complete to respond.
It preferably, further include event engine database, the event engine database includes event rules database, described
Event rules database is for storing trigger event title and corresponding event rules;
It is then described that trigger event rule is judged whether according to the event title specifically:
Inquired in event rules database whether trigger event title corresponding with current event title, with judgement be
The no corresponding event rules of triggering.
Preferably, the event engine database further includes rule script database and external interface database;
It is then described after determining that the event title triggers scheduled event rules, it obtains corresponding with the event rules of triggering
Rule script, the event argument information is passed to the rule script to execute and generate corresponding movement and execute parameter, and
Parameter is executed according to the movement and event argument information generation is executed instruction and specifically included:
When determining that the event rules database registration has event rules corresponding with the event title, from regular foot
Rule script corresponding with the event rules is obtained in database;
The event argument information is passed to the rule script and judges to execute whether the rule script needs to call
External interface;
If so, searching chartered external interface and synchronization call, in the external interface database to return
Action parameter;
Parameter is executed with return action if it is not, then executing the rule script;
Parameter is executed according to the movement and event argument information generation executes instruction.
Preferably, further includes:
The logon message of JSON format is obtained, and the logon message is parsed, and the parsing data of generation are sent out
Corresponding database is sent to be registered;Wherein, the logon message of the JSON format is by user in host computer administration interface
Respective rule script, external interface data and event rules are write to generate.
Preferably, the primary data is binary data;The data information includes the equipment of the internet of things equipment
ID。
In the present embodiment, by being judged event title and being provided corresponding event rules, to solve more sensings
Complex logic relationship in device signal fused problem and decoupling scene, and can be realized and transfer sensor according to more scenes and hold
The linkage scheme of row device solves versatility, scalability and compatibility in different scenes design scheme.
Third embodiment of the invention additionally provides a kind of event response equipment, including processor, memory and is stored in
In the memory and the computer program that can run on the processor.When the processor executes the computer program
Realize above-mentioned each step.
Illustratively, the computer program can be divided into one or more units, one or more of lists
Member is stored in the memory, and is executed by the processor, to complete the present invention.One or more of units can be with
It is the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing the computer program in thing
Implementation procedure in part response apparatus.
The event response equipment can be the calculating such as desktop PC, notebook, palm PC and cloud server
Equipment.The event response equipment may include, but are not limited to processor, memory.It will be understood by those skilled in the art that institute
The example that schematic diagram is only event response equipment is stated, the restriction to event response equipment is not constituted, may include than diagram
More or fewer components perhaps combine certain components or different components, such as the event response equipment can also wrap
Include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng, the processor is the control centre of the event response equipment, utilize various interfaces and connection whole event response
The various pieces of equipment.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of event response equipment.The memory can mainly include storing program area and storage data area, wherein storage journey
It sequence area can application program needed for storage program area, at least one function (such as sound-playing function, image player function
Deng) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.This
Outside, memory may include high-speed random access memory, can also include nonvolatile memory, such as hard disk, memory, insert
Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory
Block (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Wherein, if the unit of the event response integration of equipments is realized in the form of SFU software functional unit and as independence
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention
It realizes all or part of the process in above-described embodiment method, can also instruct relevant hardware come complete by computer program
At the computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, described
Computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The meter
Calculation machine readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk,
Mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter
Number and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand
And implement.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. a kind of emergency response system characterized by comprising
Message conversion module carries out at message for receiving the primary data of internet of things equipment transmission, and to the primary data
Reason generates message data;The primary data includes event information and data information;
Mechanical floor drive module, the message data sent for receiving the message conversion module, and to the message data into
Row conversion generation event title and event argument information;
Trigger event engine modules are sentenced for receiving the event title and event argument information, and according to the event title
It is disconnected that whether trigger event is regular;
The trigger event engine modules are also used to after determining that the event title triggers scheduled event rules, obtain with
The event argument information is passed to the rule script to execute and generate accordingly by the corresponding rule script of the event rules of triggering
Movement execute parameter, and parameter and the event argument information executed according to the movement generate and execute instruction;
Action drives module is executed, generates corresponding execution message for executing instruction according to, and by the execution message
It is sent to the internet of things equipment by the message conversion module, to complete to respond.
2. emergency response system according to claim 1, which is characterized in that the message conversion module includes:
Realize the http client that data communication is carried out with the mechanical floor drive module;
Realize the http server-side that data communication is carried out with the execution action drives module;
Realize the equipment access service end communicated with the internet of things equipment;
Message manager, for receiving and forwarding the message from the http server-side and equipment access service end;
Consultative management controller is carried out for receiving the message come from message manager forwarding, and to the message received
The http client or equipment access service end are forwarded to after protocol conversion.
3. message conversion module as claimed in claim 2, which is characterized in that equipment access service end includes TCP service
Module and UDP service module, the UDP service module include session control module and port list;Wherein,
The session control module is arranged for receiving the IP address and port numbers that report carrying by internet of things equipment, and with port
The IP address and port numbers of table storage are compared;Wherein, it if comparison result is consistent, does not need to modify;If comparing knot
Fruit is inconsistent, and new IP address and port number combinations update are modified in port list, corresponded to reaching port number
Change.
4. emergency response system according to claim 1, which is characterized in that the emergency response system includes event engine
Database, the event engine database include event rules database, and the event rules database is for storing triggering thing
Part title and corresponding event rules;
Then the trigger event engine modules are specifically used for, inquired in event rules database whether with current event title
Corresponding trigger event title, to judge whether to trigger corresponding event rules.
5. emergency response system according to claim 4, which is characterized in that the event engine database further includes rule
Script database and external interface database;
Then the trigger event engine modules also particularly useful for,
When determining that the event rules database registration has event rules corresponding with the event title, from rule script number
According to acquisition rule script corresponding with the event rules in library;
The event argument information is passed to the rule script;
Judge to execute whether the rule script needs to call external interface;
If so, searching chartered external interface and synchronization call, in the external interface database with return action
Parameter;
Parameter is executed with return action if it is not, then executing the rule script;
Parameter is executed according to the movement and event argument information generation executes instruction.
6. emergency response system according to claim 5, which is characterized in that further include:
Database interface module is parsed for obtaining the logon message of JSON format, and to the logon message, and will be given birth to
At parsing data be sent to corresponding database and registered;Wherein, the logon message of the JSON format is existed by user
Host computer administration interface is write respective rule script, external interface data and event rules and is generated.
7. according to claim 1 to emergency response system described in 6 any one, which is characterized in that the primary data is two
Binary data;The data information includes the device id of the internet of things equipment.
8. a kind of event response method, which comprises the steps of:
The primary data that internet of things equipment is sent is received, and Message processing is carried out to the primary data and generates message data;Institute
Stating primary data includes event information and data information;
Conversion generation event title and event argument information are carried out to the message data;
Judge whether trigger event rule according to the event title;
After determining that the event title triggers scheduled event rules, regular foot corresponding with the event rules of triggering is obtained
This, is passed to the rule script for the event argument information to execute and generate corresponding movement execution parameter, and according to described
Movement executes parameter and event argument information generation executes instruction;
The corresponding execution message of generation is executed instruction according to described, and the execution message is sent to the internet of things equipment,
To complete response.
9. a kind of event response equipment, which is characterized in that including processor, memory and storage in the memory and by
It is configured to the computer program executed by the processor, is realized when the processor executes the computer program as right is wanted
Event response method described in asking 8.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage
Machine program, wherein equipment where controlling the computer readable storage medium in computer program operation is executed as weighed
Benefit require 8 described in event response method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810615528.8A CN109040171A (en) | 2018-06-14 | 2018-06-14 | A kind of emergency response system, method, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810615528.8A CN109040171A (en) | 2018-06-14 | 2018-06-14 | A kind of emergency response system, method, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109040171A true CN109040171A (en) | 2018-12-18 |
Family
ID=64609611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810615528.8A Pending CN109040171A (en) | 2018-06-14 | 2018-06-14 | A kind of emergency response system, method, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109040171A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857774A (en) * | 2018-12-26 | 2019-06-07 | 广州海达安控智能科技有限公司 | Based on Multi-sensor Fusion deformation measurement data statistical method and device |
CN110147985A (en) * | 2019-05-05 | 2019-08-20 | 珠海泰坦软件系统有限公司 | A kind of rule-based storage area device events linkage management method and system |
CN110806960A (en) * | 2019-11-01 | 2020-02-18 | 中国联合网络通信集团有限公司 | Information processing method and device and terminal equipment |
CN111028925A (en) * | 2019-10-21 | 2020-04-17 | 望海康信(北京)科技股份公司 | Data transmission method and system |
CN111083225A (en) * | 2019-12-19 | 2020-04-28 | 远景智能国际私人投资有限公司 | Data processing method and device in Internet of things platform and Internet of things platform |
CN111212085A (en) * | 2020-01-16 | 2020-05-29 | 厦门网宿有限公司 | Internet of things platform synchronous calling method, Internet of things system and network equipment |
CN111368947A (en) * | 2020-02-19 | 2020-07-03 | 广东省安心加科技有限公司 | Management method and device for intelligent building and computer readable storage medium |
CN111757049A (en) * | 2019-03-29 | 2020-10-09 | 杭州海康威视系统技术有限公司 | Security linkage method, device and system |
CN112181624A (en) * | 2020-10-12 | 2021-01-05 | 南方电网数字电网研究院有限公司 | Building system linkage method and device, computer equipment and storage medium |
CN112671728A (en) * | 2020-12-14 | 2021-04-16 | 中科曙光国际信息产业有限公司 | Network access request acquisition method and device, computer equipment and storage medium |
CN112839066A (en) * | 2019-11-22 | 2021-05-25 | 斑马智行网络(香港)有限公司 | Service distribution method, service generation method, service distribution system, service generation device, service distribution equipment and storage medium |
CN113781740A (en) * | 2021-09-07 | 2021-12-10 | 北京石油化工学院 | Method and device for event-triggered response |
CN113920767A (en) * | 2021-10-22 | 2022-01-11 | 南京智慧交通信息股份有限公司 | Operation and maintenance alarming method, system, device and computer readable storage medium |
CN109857774B (en) * | 2018-12-26 | 2024-04-23 | 广州市中海达测绘仪器有限公司 | Deformation monitoring data statistics method and device based on multi-sensor fusion |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139150A (en) * | 2011-11-25 | 2013-06-05 | 中兴通讯股份有限公司 | Terminal adaptation processing method, protocol adaptation module and terminal |
CN106126215A (en) * | 2016-06-17 | 2016-11-16 | 深圳市麦斯杰网络有限公司 | Business rule scenario generation method and device |
CN106576220A (en) * | 2014-08-11 | 2017-04-19 | 高通股份有限公司 | Method and apparatus for automatically generating an events dictionary in an internet of things (IOT) network |
US20180117447A1 (en) * | 2016-05-02 | 2018-05-03 | Bao Tran | Smart device |
CN108156029A (en) * | 2017-12-20 | 2018-06-12 | 中国电子科技集团公司信息科学研究院 | Capability of Internet of things integrates and combined system and ability integrates and combined method |
-
2018
- 2018-06-14 CN CN201810615528.8A patent/CN109040171A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139150A (en) * | 2011-11-25 | 2013-06-05 | 中兴通讯股份有限公司 | Terminal adaptation processing method, protocol adaptation module and terminal |
CN106576220A (en) * | 2014-08-11 | 2017-04-19 | 高通股份有限公司 | Method and apparatus for automatically generating an events dictionary in an internet of things (IOT) network |
US20180117447A1 (en) * | 2016-05-02 | 2018-05-03 | Bao Tran | Smart device |
CN106126215A (en) * | 2016-06-17 | 2016-11-16 | 深圳市麦斯杰网络有限公司 | Business rule scenario generation method and device |
CN108156029A (en) * | 2017-12-20 | 2018-06-12 | 中国电子科技集团公司信息科学研究院 | Capability of Internet of things integrates and combined system and ability integrates and combined method |
Non-Patent Citations (1)
Title |
---|
孔英会等: "基于Watir的物联网数据处理系统设计", 《电视技术》 * |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857774A (en) * | 2018-12-26 | 2019-06-07 | 广州海达安控智能科技有限公司 | Based on Multi-sensor Fusion deformation measurement data statistical method and device |
CN109857774B (en) * | 2018-12-26 | 2024-04-23 | 广州市中海达测绘仪器有限公司 | Deformation monitoring data statistics method and device based on multi-sensor fusion |
CN111757049A (en) * | 2019-03-29 | 2020-10-09 | 杭州海康威视系统技术有限公司 | Security linkage method, device and system |
CN110147985A (en) * | 2019-05-05 | 2019-08-20 | 珠海泰坦软件系统有限公司 | A kind of rule-based storage area device events linkage management method and system |
CN111028925A (en) * | 2019-10-21 | 2020-04-17 | 望海康信(北京)科技股份公司 | Data transmission method and system |
CN110806960A (en) * | 2019-11-01 | 2020-02-18 | 中国联合网络通信集团有限公司 | Information processing method and device and terminal equipment |
CN110806960B (en) * | 2019-11-01 | 2024-01-26 | 中国联合网络通信集团有限公司 | Information processing method and device and terminal equipment |
CN112839066A (en) * | 2019-11-22 | 2021-05-25 | 斑马智行网络(香港)有限公司 | Service distribution method, service generation method, service distribution system, service generation device, service distribution equipment and storage medium |
CN111083225A (en) * | 2019-12-19 | 2020-04-28 | 远景智能国际私人投资有限公司 | Data processing method and device in Internet of things platform and Internet of things platform |
CN111083225B (en) * | 2019-12-19 | 2022-09-30 | 远景智能国际私人投资有限公司 | Data processing method and device in Internet of things platform and Internet of things platform |
CN111212085A (en) * | 2020-01-16 | 2020-05-29 | 厦门网宿有限公司 | Internet of things platform synchronous calling method, Internet of things system and network equipment |
CN111212085B (en) * | 2020-01-16 | 2022-11-22 | 厦门网宿有限公司 | Method for synchronously calling Internet of things platform, internet of things system and network equipment |
CN111368947B (en) * | 2020-02-19 | 2024-01-12 | 广东省安心加科技有限公司 | Management method, device and computer readable storage medium for intelligent building |
CN111368947A (en) * | 2020-02-19 | 2020-07-03 | 广东省安心加科技有限公司 | Management method and device for intelligent building and computer readable storage medium |
CN112181624A (en) * | 2020-10-12 | 2021-01-05 | 南方电网数字电网研究院有限公司 | Building system linkage method and device, computer equipment and storage medium |
CN112671728A (en) * | 2020-12-14 | 2021-04-16 | 中科曙光国际信息产业有限公司 | Network access request acquisition method and device, computer equipment and storage medium |
CN113781740A (en) * | 2021-09-07 | 2021-12-10 | 北京石油化工学院 | Method and device for event-triggered response |
CN113781740B (en) * | 2021-09-07 | 2023-03-24 | 北京石油化工学院 | Method and device for event-triggered response |
CN113920767A (en) * | 2021-10-22 | 2022-01-11 | 南京智慧交通信息股份有限公司 | Operation and maintenance alarming method, system, device and computer readable storage medium |
CN113920767B (en) * | 2021-10-22 | 2023-02-24 | 南京智慧交通信息股份有限公司 | Operation and maintenance alarming method, system, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109040171A (en) | A kind of emergency response system, method, equipment and storage medium | |
CN104620559B (en) | System and method for supporting the scalable messaging bus in distributed data grid cluster | |
CN110048927B (en) | Communication method and communication device | |
CN103763367A (en) | Method and system for designing distributed virtual network in cloud calculating data center | |
CN107947977B (en) | A kind of configuration method of interchanger, device, electronic equipment and storage medium | |
CN103118076A (en) | Upgraded server cluster system and load balancing method thereof | |
CN109213792A (en) | Method, server-side, client, device and the readable storage medium storing program for executing of data processing | |
CN103607424B (en) | Server connection method and server system | |
CN104158868B (en) | A kind of document transmission method and management server | |
CN110233881A (en) | Service request processing method, device, equipment and storage medium | |
US20200274897A1 (en) | Method and apparatus for processing data | |
CN109327511A (en) | A kind of data request method and server based on http protocol | |
CN109428864A (en) | Improve the method and device that nginx-rtmp draws streaming quality | |
CN106937351B (en) | Session realization method and core network element | |
CN103677983A (en) | Scheduling method and device of application | |
CN108667817A (en) | Message converting system and message forwarding method | |
CN109348434A (en) | A kind of sending method of scene information, sending device and terminal device | |
CN102984272B (en) | A kind of system of remote control mobile terminal communication capacity and method thereof | |
CN104270453B (en) | Data communications method and server between a kind of multistage server | |
CN103929365B (en) | A kind of SiteServer LBS and method suitable for UDP service | |
CN103092951A (en) | Conventional data exchange method and conventional data exchange system based on information presentation layers | |
CN109981538A (en) | The register method and system of subscription event, the processing method and system for subscribing to event | |
KR20180027564A (en) | Service Layer Anycast and Thumbcast | |
CN106156308B (en) | Local updating method and system for webpage | |
CN105933352B (en) | Method of data synchronization, client and system between client-based server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |