CN109920217A - A kind of data transmission method, device and safety defense monitoring system - Google Patents

A kind of data transmission method, device and safety defense monitoring system Download PDF

Info

Publication number
CN109920217A
CN109920217A CN201711326272.0A CN201711326272A CN109920217A CN 109920217 A CN109920217 A CN 109920217A CN 201711326272 A CN201711326272 A CN 201711326272A CN 109920217 A CN109920217 A CN 109920217A
Authority
CN
China
Prior art keywords
data
module
next stage
upper level
differential
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711326272.0A
Other languages
Chinese (zh)
Other versions
CN109920217B (en
Inventor
林彦国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201711326272.0A priority Critical patent/CN109920217B/en
Publication of CN109920217A publication Critical patent/CN109920217A/en
Application granted granted Critical
Publication of CN109920217B publication Critical patent/CN109920217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Alarm Systems (AREA)

Abstract

The application provides a kind of data transmission method, device and safety defense monitoring system.The safety defense monitoring system includes: an alarm host machine, multiple communication modules and multiple expansion modules;Alarm host machine is communicated by bus with corresponding next stage module, according to the data obtained from corresponding next stage module polls, executes alert process;Each communication module is communicated by the state mouth of itself with corresponding upper level module, is communicated by the extension mouth of itself with corresponding next stage module, according to the data obtained from corresponding next stage module polls, upward previous module reported data;Each expansion module is communicated by the state mouth of itself and corresponding upper level module, is communicated by the extension mouth and defence area detector of itself, obtains security protection data, upward previous module reported data according to from corresponding defence area detector.Safety defense monitoring system provided herein can solve the higher problem of communication delay in the prior art.

Description

A kind of data transmission method, device and safety defense monitoring system
Technical field
This application involves security monitoring technology, in particular to a kind of data transmission method, device and safety monitoring system System.
Background technique
For a safety defense monitoring system, it usually needs the region of detection is more, visits at this time, it may be necessary to access a large amount of defence area Survey device, wherein the security protection data in defence area where defence area detector is used to detect.
Safety defense monitoring system in the prior art generally includes: an alarm host machine and multiple expansion modules;Wherein, the report Alert host is communicated by bus and each expansion module, and each expansion module includes a state mouth and at least one extension Mouthful, it is communicated by state mouth and the alarm host machine, and communicated by extension mouth with defence area detector, in this way, alarm master Machine can with each expansion module of poll, to obtain the security protection data of corresponding defence area detector by each expansion module, And then the data obtained based on poll execute alert process.
As it can be seen that since existing safety defense monitoring system is by alarm host machine and the direct-connected communication of expansion module, so that alarm The each expansion module of poll causes communication delay higher to host needs one by one to obtain security protection data.
Summary of the invention
In view of this, the application provides a kind of safety defense monitoring system, with solve existing safety defense monitoring system communication delay compared with High problem.In addition, present invention also provides a kind of data transmission method and device, to guarantee that safety defense monitoring system expands on a large scale Bus communication is not easy to block when exhibition, so that safety defense monitoring system data transmission efficiency with higher.
Specifically, the application is achieved by the following technical solution:
In a first aspect, this application provides a kind of safety defense monitoring systems, comprising: an alarm host machine, multiple communication modules With multiple expansion modules;Wherein, each communication module includes a state mouth and at least one extension mouth, each expansion module It include a state mouth and at least one extension mouth;
The alarm host machine is communicated by bus with corresponding next stage module, is used for basis from corresponding next stage The data that module polls obtain execute alert process;Wherein, the corresponding next stage module of the alarm host machine includes: at least one A communication module and/or at least one expansion module;
Each communication module is communicated with corresponding upper level module by the state mouth of itself, passes through the expansion of itself Exhibition mouth is communicated with corresponding next stage module, for the data that basis is obtained from corresponding next stage module polls, to correspondence Upper level module reported data;Wherein, the corresponding upper level module of any communication module includes: the alarm host machine or one Communication module;The corresponding next stage module of any communication module includes: at least one communication module and/or at least one expanded mode Block;
Each expansion module is communicated by the state mouth of itself and corresponding upper level module, by itself Extension mouth is communicated with defence area detector, security protection data is obtained from corresponding defence area detector for basis, to corresponding upper one Grade module reported data;Wherein, the corresponding upper level module of any expansion module includes: a communication module or alarm master Machine.
Second aspect, this application provides a kind of data transmission methods, applied to the alarm host machine in safety defense monitoring system; The described method includes:
It monitors and whether meets reference data acquisition condition;
When meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself chain Reference data corresponding to road;Wherein, the reference data is current security protection data;
When not meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself Differential data corresponding to link;Wherein, differential data corresponding to any next stage module itself link are as follows: the next stage mould Difference value of first latest data of block relative to the first normal data, the first latest data of the next stage module are as follows: under this Newest differential data corresponding to itself link of the next stage module of previous module, first normal data are as follows: the report The resulting result of last request of data that alert host carries out the next stage module.
The third aspect, this application provides a kind of data transmission methods, applied to the communication module in safety defense monitoring system; The described method includes:
Upper level module is monitored whether to the communication module request data;
When listening to upper level module to the communication module request data and data type is reftype, poll is each A next stage module obtains security protection data current corresponding to each next stage module itself link;
The current security protection data that poll is obtained are determined as reference data corresponding to itself link of the communication module, And the reference data is fed back into the upper level module;
When listening to the upper level module to the communication module request data and data type is differential-type, obtain Obtain differential data corresponding to itself link of the communication module;Wherein, difference corresponding to itself link of the communication module Data are as follows: difference value of second latest data relative to the second normal data, second latest data are as follows: each next stage mould Newest differential data corresponding to block itself link, second normal data are as follows: the upper level module is to the communication The resulting result of last request of data that module is carried out;
Differential data corresponding to itself link of the communication module is fed back into the upper level module.
Fourth aspect, this application provides a kind of data transmission methods, applied to the expansion module in safety defense monitoring system; The described method includes:
Upper level module is monitored whether to the expansion module request data;
When listening to upper level module to the expansion module request data and data type is reftype, institute is detected Each defence area detector that expansion module is connected is stated, the current security protection data of each defence area detector are obtained;
Current security protection data are determined as reference data corresponding to itself link of the expansion module, and by the ginseng Data feedback is examined to the upper level module;
When listening to the upper level module to the expansion module request data and data type is differential-type, obtain Obtain differential data corresponding to itself link of the expansion module;Wherein, difference corresponding to itself link of the expansion module Data are as follows: difference value of the third latest data relative to third normal data, the third latest data are as follows: the expansion module The newest security protection data of each defence area detector connected, the third normal data are as follows: the upper level module is to described The resulting result of last request of data that expansion module is carried out;
Differential data corresponding to itself link of the expansion module is fed back into the upper level module.
5th aspect, this application provides a kind of data transmission devices, applied to the alarm host machine in safety defense monitoring system; Described device includes:
Monitoring unit, for judging whether that meeting reference data obtains condition;
Reference data obtaining unit, for when meeting reference data acquisition condition, each next stage module of poll to be obtained Reference data corresponding to each next stage module itself link;Wherein, the reference data is current security protection data;
Differential data obtaining unit, for when not meeting reference data acquisition condition, each next stage module of poll to be obtained Obtain differential data corresponding to each next stage module itself link;Wherein, corresponding to any next stage module itself link Differential data are as follows: difference value of the first latest data of the next stage module relative to the first normal data, the next stage module The first latest data are as follows: newest differential data corresponding to itself link of the next stage module of the next stage module, it is described First normal data are as follows: the resulting result of last request of data that the alarm host machine carries out the next stage module.
6th aspect, this application provides a kind of data transmission devices, applied to the communication module in safety defense monitoring system; Described device includes:
First monitoring unit, for whether monitoring upper level module to the communication module request data;
First security protection data acquiring unit listens to upper level module to the communication module request data and number for working as According to type be reftype when, each next stage module of poll obtains current corresponding to each next stage module itself link Security protection data;
First data feedback unit, the current security protection data for obtaining poll are determined as the communication module itself Reference data corresponding to link, and the reference data is fed back into the upper level module;
First differential data obtaining unit listens to the upper level module to the communication module request data for working as And data type be differential-type when, obtain differential data corresponding to itself link of the communication module;Wherein, the communication Differential data corresponding to module itself link are as follows: difference value of second latest data relative to the second normal data, described Two latest datas are as follows: newest differential data corresponding to each next stage module itself link, second normal data are as follows: The resulting result of last request of data that the upper level module carries out the communication module;
Second data feedback unit, it is described for feeding back to differential data corresponding to itself link of the communication module Upper level module.
7th aspect, this application provides a kind of data transmission devices, applied to the expansion module in safety defense monitoring system; Described device includes:
Second monitoring unit, for whether monitoring upper level module to the expansion module request data;
Second security protection data acquiring unit listens to upper level module to the expansion module request data and number for working as According to type be reftype when, detect each defence area detector that the expansion module is connected, obtain each defence area detector Current security protection data;
Third data feedback unit, for current security protection data to be determined as corresponding to itself link of the expansion module Reference data, and the reference data is fed back into the upper level module;
Second differential data obtaining unit listens to the upper level module to the expansion module request data for working as And data type be differential-type when, obtain differential data corresponding to itself link of the expansion module;Wherein, the extension Differential data corresponding to module itself link are as follows: difference value of the third latest data relative to third normal data, described Three latest datas are as follows: the newest security protection data of each defence area detector that the expansion module is connected, the third criterion numeral According to are as follows: the resulting result of last request of data that the upper level module carries out the expansion module;
4th data feedback unit, it is described for feeding back to differential data corresponding to itself link of the expansion module Upper level module.
Eighth aspect, this application provides a kind of electronic equipment, the electronic equipment is the alarm in safety defense monitoring system Host;The electronic equipment includes: internal bus, memory, processor and communication interface;Wherein, the processor, described logical Letter interface, the memory complete mutual communication by the internal bus;Wherein, the memory, for storing number According to the feasible instruction of the corresponding machine of transmission method;
The processor for reading the machine readable instructions on the memory, and executes described instruction with reality Now following operation:
It monitors and whether meets reference data acquisition condition;
When meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself chain Reference data corresponding to road;Wherein, the reference data is current security protection data;
When not meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself Differential data corresponding to link;Wherein, differential data corresponding to any next stage module itself link are as follows: the next stage mould Difference value of first latest data of block relative to the first normal data, the first latest data of the next stage module are as follows: under this Newest differential data corresponding to itself link of the next stage module of previous module, first normal data are as follows: the report The resulting result of last request of data that alert host carries out the next stage module.
9th aspect, this application provides a kind of electronic equipment, the electronic equipment is the communication in safety defense monitoring system Module;The electronic equipment includes: internal bus, memory, processor and communication interface;Wherein, the processor, described logical Letter interface, the memory complete mutual communication by the internal bus;Wherein, the memory, for storing number According to the feasible instruction of the corresponding machine of transmission method;
The processor for reading the machine readable instructions on the memory, and executes described instruction with reality Now following operation:
Upper level module is monitored whether to the electronic equipment requests data;
When listening to upper level module to the electronic equipment requests data and data type is reftype, poll is each A next stage module obtains security protection data current corresponding to each next stage module itself link;
The current security protection data that poll is obtained are determined as reference data corresponding to itself link of the electronic equipment, And the reference data is fed back into the upper level module;
When listening to the upper level module to the electronic equipment requests data and data type is differential-type, obtain Obtain differential data corresponding to itself link of the electronic equipment;Wherein, difference corresponding to itself link of the electronic equipment Data are as follows: difference value of second latest data relative to the second normal data, second latest data are as follows: each next stage mould Newest differential data corresponding to block itself link, second normal data are as follows: the upper level module is to the electronics The resulting result of last request of data that equipment is carried out;
Differential data corresponding to itself link of the electronic equipment is fed back into the upper level module.
Tenth aspect, this application provides a kind of electronic equipment, the electronic equipment is the extension in safety defense monitoring system Module;The electronic equipment includes: internal bus, memory, processor and communication interface;Wherein, the processor, described logical Letter interface, the memory complete mutual communication by the internal bus;Wherein, the memory, for storing number According to the feasible instruction of the corresponding machine of transmission method;
The processor for reading the machine readable instructions on the memory, and executes described instruction with reality Now following operation:
Upper level module is monitored whether to the electronic equipment requests data;
When listening to upper level module to the electronic equipment requests data and data type is reftype, institute is detected Each defence area detector that expansion module is connected is stated, the current security protection data of each defence area detector are obtained;
Current security protection data are determined as reference data corresponding to itself link of the electronic equipment, and by the ginseng Data feedback is examined to the upper level module;
When listening to the upper level module to the electronic equipment requests data and data type is differential-type, obtain Obtain differential data corresponding to itself link of the electronic equipment;Wherein, difference corresponding to itself link of the electronic equipment Data are as follows: difference value of the third latest data relative to third normal data, the third latest data are as follows: the electronic equipment The newest security protection data of each defence area detector connected, the third normal data are as follows: the upper level module is to described The resulting result of last request of data that electronic equipment is carried out;
Differential data corresponding to itself link of the electronic equipment is fed back into the upper level module.
In safety defense monitoring system provided herein, alarm host machine can be communicated with communication module and/or expansion module Letter, and communication module can be used as the next stage module of another communication module or alarm host machine and as several communication modules And/or the upper level module of expansion module, therefore, safety defense monitoring system provided by this programme can be classified poll to be pacified Anti- data.As it can be seen that for alarm host machine in existing safety defense monitoring system one by one poll expansion module, it is provided herein Safety defense monitoring system can substantially reduce communication delay
In addition, data transmission method and device provided herein are based on safety defense monitoring system provided herein Method and device, it is ensured that bus communication is not easy to block when safety defense monitoring system extends on a large scale so that security protection supervise Control system data transmission efficiency with higher.
Detailed description of the invention
Fig. 1 (a), Fig. 1 (b) and Fig. 1 (c) are a kind of structural representation of safety defense monitoring system provided herein respectively Figure;
Fig. 2 (a) and Fig. 2 (b) is that the structure of communication module in a kind of safety defense monitoring system provided herein is shown respectively It is intended to;Fig. 2 (c) is the structural schematic diagram of expansion module in a kind of safety defense monitoring system provided herein;
Fig. 3 is a kind of flow chart of data transmission method provided by angle of the application from alarm host machine;
Fig. 4 is a kind of another flow chart of data transmission method provided by angle of the application from alarm host machine;
Fig. 5 is a kind of flow chart of data transmission method provided by angle of the application from communication module;
Fig. 6 is a kind of another flow chart of data transmission method provided by angle of the application from communication module;
Fig. 7 is a kind of flow chart of data transmission method provided by angle of the application from expansion module;
Fig. 8 is a kind of another flow chart of data transmission method provided by angle of the application from expansion module;
Fig. 9 is a kind of structural schematic diagram of data transmission device provided by angle of the application from alarm host machine;
Figure 10 is a kind of structural schematic diagram of data transmission device provided by angle of the application from communication module;
Figure 11 is a kind of structural schematic diagram of data transmission device provided by angle of the application from expansion module;
Figure 12 is the structural schematic diagram of a kind of electronic equipment provided herein.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
In order to solve the problems, such as that safety defense monitoring system communication delay is higher in the prior art, this application provides a kind of security protections Monitoring system.
This application provides a kind of safety defense monitoring systems, comprising: an alarm host machine, multiple communication modules and multiple extensions Module;Wherein, each communication module includes a state mouth and at least one extension mouth, and each expansion module includes one State mouth and at least one extension mouth;
The alarm host machine is communicated by bus with corresponding next stage module, is used for basis from corresponding next stage mould The data that block poll obtains execute alert process;Wherein, the corresponding next stage module of the alarm host machine includes: that at least one is logical Believe module and/or at least one expansion module;
Each communication module is communicated with corresponding upper level module by the state mouth of itself, passes through the expansion of itself Exhibition mouth is communicated with corresponding next stage module, for the data that basis is obtained from corresponding next stage module polls, to correspondence Upper level module reported data;Wherein, the corresponding upper level module of any communication module includes: that the alarm host machine or one are logical Believe module;The corresponding next stage module of any communication module includes: at least one communication module and/or at least one expanded mode Block;
Each expansion module is communicated by the state mouth of itself and corresponding upper level module, by itself Extension mouth is communicated with defence area detector, security protection data is obtained from corresponding defence area detector for basis, to corresponding upper one Grade module reported data;Wherein, the corresponding upper level module of any expansion module includes: a communication module or alarm master Machine.
Wherein, the communication module in safety defense monitoring system provided herein and defence area expansion module, which belong to, is integrated with number According to the processor of acquisition, transmission and processing function, specific hardware configuration is it is not limited here.
In the application, alarm host machine can be connected by bus with communication module, can also pass through bus and expanded mode Block is connected, that is to say, that if the corresponding all next stage modules of alarm host machine can only include several communication module or Dry expansion module can also not only include several communication modules but also include several expansion modules, this is all reasonable.
In addition, since communication module each in the application includes a state expansion and at least one extension mouth, such as Fig. 2 (a) With shown in Fig. 2 (b), therefore, each communication module only corresponds to a upper level module and corresponds at least one next stage module, Specifically, the corresponding upper level module of each communication module can be alarm host machine or another communication module, and each communication mould The corresponding all next stage modules of block can only include expansion module or communication module, can also not only include expansion module but also Including communication module.Similar, since expansion module each in the application includes a state mouth and at least one extension mouth, such as Shown in Fig. 2 (c), therefore, each expansion module only corresponds to a upper level module and corresponds at least one next stage module, has Body, the corresponding upper level module of each expansion module can be alarm host machine or communication module, and since expansion module is most The communication module of bottom, therefore the corresponding all next stage modules of each expansion module are defence area detectors.As it can be seen that based on logical Believe the structure of module and expansion module, the extended mode of safety defense monitoring system provided herein is extremely abundant, can satisfy The demand of various application scenarios, for example: Fig. 1 (a), Fig. 1 (b) and Fig. 1 (c) respectively illustrate one kind provided herein A kind of structural schematic diagram of safety defense monitoring system, to adapt to different application scenarios.It is emphasized that Fig. 1 (a), Fig. 1 (b) It is merely exemplary with Fig. 1 (c), it should not constitute the restriction to the application.
It should be noted that modules are corresponding next by itself in safety defense monitoring system provided herein Grade module executes corresponding processing based on obtained data to obtain data.Specifically, alarm host machine passes through poll itself Next stage module executes alarm analysis by obtained data to obtain data;Communication module is receiving upper level module Request of data when, data are obtained by the next stage module of poll itself, and will be from the data that next stage poll obtains Offer upper level module;And expansion module is when receiving the request of data of upper level module, is connected by detecting itself Defence area detector obtains security protection data, and is based on the upward previous module feedback data of obtained security protection data.
Further it will be understood that the defence area detector is used to detect the security protection data in place defence area, wherein the security protection Data may include but be not limited to security protection status data, wherein security protection status data may include: precarious position and normal shape State.Wherein, detector targeted region in defence area is defence area, specifically, distinguished by whether Defence areas alarm is equipped with delay time, It is anti-to divide into: instantaneous defence area and delay defence area;And it is distinguished by the installation site and its preventing function of defence area detector, anti-differentiation Are as follows: circumference defence area enters and leaves defence area, internal defence area, day and night defence area, fire alarm defence area etc..
It should be noted that the defence area detector in the application can be the defence area detector in the presence of the prior art, Specifically which kind of defence area detector to determine that the application is not construed as limiting this according to concrete application scene using.In addition, alarm host machine Specific type of alarm and based on obtained data carry out alarm analysis process be also referred to the prior art, the application does not limit It is fixed.
In safety defense monitoring system provided herein, alarm host machine can be communicated with communication module and/or expansion module Letter, and communication module can be used as the next stage module of another communication module or alarm host machine and as several communication modules And/or the upper level module of expansion module, therefore, safety defense monitoring system provided by this programme can be classified poll to be pacified Anti- data.As it can be seen that for alarm host machine in existing safety defense monitoring system one by one poll expansion module, it is provided herein Safety defense monitoring system can substantially reduce communication delay;Also, the topological structure of safety defense monitoring system provided herein It is easy to networking, extension is flexible.
Based on safety defense monitoring system provided by the present application, when communication module and more expansion module, data from bottom to High level convergence, communication module need to communicate after the data collection of all modules in itself chain road to upper level, it will cause to count According to more and more.In order to enable bus communication is not easy to block when safety defense monitoring system extends on a large scale, so that safety monitoring System data transmission efficiency with higher, the application are provided from the angle of alarm host machine, communication module and expansion module respectively A kind of data transmission method and device.
First below from the angle of alarm host machine, a kind of data transmission method provided herein is introduced.
As shown in figure 3, it may include as follows that this application provides a kind of data transmission methods from the angle of alarm host machine Step:
S101 is monitored and whether is met reference data acquisition condition;
It should be noted that it is the complete of safety defense monitoring system that the reference data, which obtains the corresponding reference data obtained of condition, Whole security protection data, i.e., the security protection data of all defence area detectors.
In order to guarantee data integrity, reference data can be obtained in system initialization, at this point, judging whether to meet ginseng Examine data acquisition conditions are as follows: judge whether to system initialization;It certainly, can be every one section in order to guarantee communication stability Time obtains a reference data, at this point, judge whether to meet reference data obtain condition can be with are as follows: judge whether to reach predetermined Moment.
S102, when meeting reference data acquisition condition, each next stage module of poll obtains each next stage module certainly Reference data corresponding to body link;Wherein, the reference data is current security protection data;
When listen to meet reference data obtain condition when, demonstrate the need for obtain partial data, therefore, which can To be polled to each next stage module, reference data corresponding to each next stage module itself link is obtained, i.e., currently Security protection data.It is emphasized that since the present embodiment is to introduce method from the angle of alarm host machine, this reality Applying next stage module described in example is next stage module corresponding to alarm host machine.Also, when obtaining reference data, wheel The rate for asking each next stage module can be set according to the actual situation, it is not limited here.
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector, if alarm host machine meet reference data obtain condition when be polled to the expansion module, the expanded mode Block obtains current security protection data from the defence area detector connected, and is reported to the alarm host machine.
And if next stage module is communication module, the link of the communication module itself is direct-connected module to defence area The link of detector, if alarm host machine is polled to the communication module when meeting reference data and obtaining condition, the communication mould Block requests to obtain from direct-connected module the reference data of itself link of the direct-connected module, will be obtained from each direct-connected module The sum of reference data obtained is as the corresponding reference data of itself link of the communication module and is reported to the alarm host machine, wherein The reference data of itself link of direct-connected module are as follows: each institute's link block itself link that the direct-connected module request obtains The sum of reference data, and so on.
It is understood that alarm host machine is after the reference data that poll obtains each next stage module feedback, Ke Yigen According to the reference data, alert process is executed.Wherein, the process that the reference data obtained based on poll executes alert process belongs to existing There is technology, the application does not limit this.
S103, when not meeting reference data acquisition condition, each next stage module of poll obtains each next stage module Differential data corresponding to itself link.
Wherein, differential data corresponding to any next stage module itself link are as follows: the first of the next stage module is newest Difference value of the data relative to the first normal data, the first latest data of the next stage module are as follows: under the next stage module Newest differential data corresponding to previous module itself link, first normal data are as follows: the alarm host machine is to the next stage The resulting result of last request of data that module is carried out.
In order to guarantee data transmission efficiently, removes and meet the opportunity that reference data obtains condition, which can be right Each next stage module is polled, and poll obtains differential data corresponding to each next stage module itself link, to reduce Data volume.It is emphasized that alarm host machine can be according to the obtained difference number of request although the data volume of transmission tails off According to, and the differential data and reference data requested before, determine the complete security protection data of the safety defense monitoring system, To not influence alarm analysis and institute's integrity of data stored.Also, when obtaining differential data, each next stage module of poll Rate may be set according to actual conditions, it is not limited here.In addition, when not meeting reference data and obtaining condition, it can be with It sets differential data and obtains moment or condition, when reaching differential data acquisition moment or condition, each next stage module of poll, The corresponding differential data of each next stage module itself link is obtained, it is of course also possible to obtain condition not meeting reference data When, according to certain poll rate, the constantly each next stage module of poll, this is all reasonable.
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector, when the alarm host machine to the expansion module request differential data when, which can determine two class numbers According to, and the difference value between two determined class data is calculated, it obtains the corresponding differential data of the expansion module and is reported to The alarm host machine;Wherein, a kind of data in the two classes data are as follows: the newest security protection obtained from connected defence area detector Data, another kind of data are as follows: the data that the alarm host machine last time obtains from the expansion module poll.
And if next stage module is communication module, the link of the communication module itself is each direct-connected module to anti- The link of area's detector, when alarm host machine requests differential data to the communication module, which can be from each direct-connected Module at request obtain the differential data of each itself link of direct-connected module, and calculate and obtained from each direct-connected module Differential data and the difference value of data that is obtained from the communication module poll of the alarm host machine last time, obtain the communication module The corresponding differential data of itself link is simultaneously reported to the alarm host machine.It wherein, should if direct-connected module is a communication module The differential data of itself link of direct-connected module are as follows: the differential data that the direct-connected module is obtained from institute's link block is logical with this Believe that the module last time obtains the difference value of data from the direct-connected module polls;And if direct-connected module is an expansion module, The then differential data of itself link of the direct-connected module are as follows: the security protection number that the direct-connected module is obtained from connected defence area detector According to obtaining the difference value of data from the direct-connected module polls with the communication module last time.
It is emphasized that in safety defense monitoring system, in order to guarantee efficiently to cope with risk in time, to different defence areas The defence area that priority may be different, usually more to alarm times is detected, detection priority is higher.Thought is handled based on this kind, It is described when do not meet reference data obtain condition when, each next stage module of poll obtains each next stage module itself link The step of corresponding differential data, may include:
When not meeting reference data acquisition condition, according to the polling priority of each next stage module, under poll is each Previous module obtains differential data corresponding to each next stage module itself link.
Wherein, the polling priority of each next stage module can be by manually setting, naturally it is also possible to according to certain ginseng Standard is examined to set automatically.
Optionally, in a kind of specific implementation, the polling priority of each next stage module of the alarm host machine Method of determination, may include:
Determine each next stage module in the data length of the differential data of the first predetermined period internal feedback;
According to the corresponding data length of each next stage module and the first total length of data, each of the alarm host machine is determined The polling priority of next stage module;Wherein, first total length of data be the corresponding data length of each next stage module it With.
Specifically, the ratio of the corresponding data length of each next stage module and the first total length of data can be determined as The polling priority of each next stage module, certainly, it is not limited to this.Also, in order to cope with scene changes and guarantee excellent First grade reliability can dynamically calculate the priority of each next stage module, i.e. it is excellent just to execute a poll for separated in time First grade determines operation, and polling priority determines that operating utilized data is newest data.
For example: the calculating process of the priority of next stage modules A 0-Am corresponding to alarm host machine may include:
Length is carried out in the differential data of certain time period to next stage modules A 0-Am to add up, and obtains each next stage mould The corresponding data length of block, wherein the data length SAx of next stage modules A x, the then polling priority of next stage modules A x
For next stage modules A x, according to polling priority poll treatment process are as follows: be in total degree's Be SAx times to the wrap count of next stage modules A x in polling procedure, i.e., everyPoll is primary.
It is emphasized that the mode of above-mentioned given automatic setting polling priority is merely exemplary, do not answer Restriction of this composition to the application, such as: to the corresponding data length of each next stage module multiplied by after certain weight again with First total length of data is divided by, and obtains corresponding polling priority of each next stage module, etc..
In scheme provided herein, only when meeting reference data acquisition condition, each next stage module is obtained certainly The reference data of body link;And remaining moment obtains the differential data of each next stage module, greatly reduces data volume, because This, with this solution, it is ensured that bus communication is not easy to block when safety defense monitoring system extends on a large scale, so that security protection is supervised Control system data transmission efficiency with higher.
Below with reference to specific application example, to the application from a kind of data transmission method provided by alarm host machine angle into Row is introduced.
As shown in figure 4, a kind of data transmission method provided herein, may include as follows from alarm host machine angle Step:
S201 is monitored and whether is met reference data acquisition condition;
Wherein, in the present embodiment, S201 is identical as the S101 of above-described embodiment, and this will not be repeated here.
S202, when meeting reference data acquisition condition, each next stage module of poll, to each next stage being polled to Module issues the corresponding poll instruction for belonging to reftype;
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector, if alarm host machine meet reference data obtain condition when be polled to the expansion module, to the extension Module issues the poll instruction for belonging to reftype, and the expansion module obtains current peace from the defence area detector connected Anti- data generate the reference data frame for carrying current security protection data and are reported to the alarm host machine.
And if next stage module is communication module, the link of the communication module itself is direct-connected module to defence area The link of detector, if alarm host machine is polled to the communication module when meeting reference data and obtaining condition, to the communication Module issues the poll instruction for belonging to reftype;Correspondingly, the communication module can be referred to by belonging to the poll of reftype It enables from direct-connected module request obtain the reference data of itself link of the direct-connected module, will be obtained from each direct-connected module The sum of reference data obtained generates the ginseng for carrying the reference data as the corresponding reference data of itself link of the communication module It examines data frame and is reported to the alarm host machine.Wherein, if the direct-connected module is a communication module, direct-connected module itself The reference data of link are as follows: each connected mould that the direct-connected module is obtained by belonging to the poll instruction request of reftype The sum of the reference data of block itself link, and so on;And if the direct-connected module is expansion module, the direct-connected module The reference data of itself link are as follows: current security protection data are obtained from the defence area detector connected.
Optionally, in a kind of specific implementation, the data format of poll instruction be can be such that
Byte(1) Byte(2) Byte(3) Byte(4) Byte(5) Byte(6) Byte(7)
Start Addr1 Addr2 Length Type Command Checksum
Wherein, Start: packet header, such as: 0xA3;
Addr1: sender address;
Addr2: recipient address
Length: data length;
Type: type of data packet refers specifically to: upstream or downstream;
Command: bid value, different values indicate the polling order of differential-type and the polling order of reftype;
Checksum: check value.
Poll instructs the data format of corresponding acknowledgement frame (reference data frame and differential data frame) as follows:
Byte(1) Byte(2) Byte(3) Byte(4) Byte(5) Byte(6) Byte(7)-Byte(N) Byte(N+1)
Start Addr1 Addr2 Length Type Command Data(1)-Data(N-6) Checksum
It is assumed that expansion module supports 8 tunnel defence areas, then when belonging to the polling order of reftype to expansion module transmission, instead The format of the supplemental characteristic frame of feedback is as follows:
Byte(1) Byte(2) Byte(3) Byte(4) Byte(5) Byte(6) Byte(7)-Byte(22) Byte(23)
Start Addr1 Addr2 Length Type Command Data(1)-Data(16) Checksum
Data (1)-Data (16): for the defence area index and security protection data of return, wherein Data (1) is the index of defence area 1, Data (2) is the security protection data in defence area 1, and Data (3) is the index of defence area 2, and Data (4) is the security protection data in defence area 2, successively class It pushes away.
S203, receive each next stage module feedback, carry the ginseng of security protection data current corresponding to itself link Examine data frame;
S204, by security protection data in received reference data frame to be determined as each next stage module itself link institute right The reference data answered;
Obtain each next stage module feedback, carry the reference number of security protection data current corresponding to itself link After frame, security protection data can be extracted from received reference data frame, and extracted security protection data are determined as respectively Reference data corresponding to a next stage module itself link.
S205, when not meeting reference data acquisition condition, each next stage module of poll is each next to what is be polled to Grade module issues the corresponding poll instruction for belonging to differential-type;
In order to guarantee data transmission efficiently, removes and meet the opportunity that reference data obtains condition, which can be right Each next stage module is polled, and is issued the corresponding poll for belonging to differential-type to each next stage module being polled to and is referred to It enables, to obtain differential data corresponding to each next stage module itself link, to reduce data volume.
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector, when the alarm host machine to the expansion module request differential data when, issue corresponding category to the expansion module It is instructed in the poll of differential-type;Correspondingly, the expansion module can determine obtained from connected defence area detector it is newest Security protection data, and determine the data that obtain from the expansion module poll of alarm host machine last time, and calculate and determined The difference value of two class data obtains the corresponding differential data of the expansion module, and then generates the difference for carrying and being calculated The differential data frame of data is simultaneously reported to the alarm host machine.
And if next stage module be communication module, the link of the communication module itself be each direct-connected module extremely The link of defence area detector issues to the communication module when alarm host machine requests differential data to the communication module and belongs to difference The poll of classifying type instructs;Correspondingly, the communication module can be instructed based on the poll of differential-type from each direct-connected module Place's request obtains the differential data of each itself link of direct-connected module, and calculates from each direct-connected module difference obtained The difference value for the data that data and the alarm host machine last time obtain from the communication module poll, obtains itself chain of the communication module The corresponding differential data in road, and then generate the differential data frame for carrying the differential data and be reported to the alarm host machine.Wherein, If direct-connected module is a communication module, the differential data of itself link of the direct-connected module are as follows: the direct-connected module is logical The poll for crossing differential-type instructs the differential data that obtains from institute's link block, with the communication module last time from the direct-connected mould Block poll obtains the difference value of data;And if direct-connected module is an expansion module, itself link of the direct-connected module Differential data are as follows: the security protection data that the direct-connected module is obtained from connected defence area detector, with the communication module last time from The direct-connected module polls obtain the difference value of data.
It is emphasized that in safety defense monitoring system, in order to guarantee efficiently to cope with risk in time, to different defence areas The defence area that priority may be different, usually more to alarm times is detected, detection priority is higher.Thought is handled based on this kind, It is described when do not meet reference data obtain condition when, each next stage module of poll obtains each next stage module itself link The step of corresponding differential data, may include:
When not meeting reference data acquisition condition, according to the polling priority of each next stage module, under poll is each Previous module issues the corresponding poll instruction for belonging to differential-type to each next stage module being polled to.
Wherein, the polling priority of each next stage module can be by manually setting, naturally it is also possible to according to certain ginseng It examines standard to set automatically, referring specifically to the related content of above-described embodiment.
It should be noted that belonging to the data format of the poll instruction of differential-type, above-mentioned poll instruction may refer to Data format.
S206, receive each next stage module feedback, carry the differential data of differential data corresponding to itself link Frame;
S207 extracts differential data from the received differential data frame of institute.
After receiving the differential data frame that each next stage module is sent, it can be mentioned from the received differential data frame of institute Differential data is taken, to obtain the differential data for each next stage module itself link being polled to.
It is assumed that the complete security protection data obtained from an expansion module are as follows when certain poll:
D(1) D(2) D(3) D(4) D(5) D(6) D(7) D(8) D(9) D(10) D(11) D(12) D(13) D(14) D(15) D(16)
1 0 2 0 3 0 4 1 5 0 6 0 7 0 8 0
After poll, security protection data become:
D(1) D(2) D(3) D(4) D(5) D(6) D(7) D(8) D(9) D(10) D(11) D(12) D(13) D(14) D(15) D(16)
1 1 2 0 3 0 4 0 5 0 6 0 7 0 8 0
Poll uses the polling order of differential-type next time, inquires the expansion module, and discovery only has 1 He of defence area 4 state of defence area changes, then the differential data frame for needing to send are as follows:
Byte(1)-Byte(6) Byte(7) Byte(8) Byte(9) Byte(10) Byte(11)
Start-Command 1 1 4 0 Checksum
Wherein, the data length of differential data entrained by differential data frame is 4bit.
In the present embodiment, only when meeting reference data acquisition condition, issued to each next stage module being polled to The poll instruction for belonging to reftype, obtains the reference data of each next stage module itself link;And remaining moment is to wheel The each next stage module ask issues the poll instruction for belonging to differential-type, obtains the differential data of each next stage module, Data volume is greatly reduced, therefore, with this solution, it is ensured that bus communication is not easy when safety defense monitoring system extends on a large scale Obstruction, so that safety defense monitoring system data transmission efficiency with higher.
Below from the angle of communication module, a kind of data transmission method is introduced provided herein.
As shown in figure 5, from the angle of communication module, a kind of security-protecting and monitoring method provided herein, may include as Lower step:
Whether S301 monitors upper level module to the communication module request data;
Wherein, upper level module corresponding to the communication module can be another communication module, be also possible to alarm host machine.
S302, when listening to upper level module to the communication module request data and data type is reftype, wheel Each next stage module is ask, security protection data current corresponding to each next stage module itself link are obtained;
Since the present embodiment is to introduce method from the angle of communication module, it is described in the present embodiment next Grade module is next stage module corresponding to communication module.
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector, if the communication module is to the data of expansion module request reftype, the expansion module is from being connected Defence area detector in obtain current security protection data, and be reported to the alarm host machine.
And if next stage module is another communication module, the link of another communication module itself is direct-connected mould Block is to the link of defence area detector, if the communication module is to the data of another communication module request reftype, this is another Communication module requests to obtain from direct-connected module the reference data of itself link of the direct-connected module, will be from each direct-connected mould The sum of block reference data obtained is as the corresponding reference data of another communication module itself link and is reported to the communication Module.Wherein, the reference data of itself link of direct-connected module are as follows: each institute's link block that the direct-connected module request obtains The sum of the reference data of itself link, and so on.
S303, the current security protection data that poll is obtained are determined as reference number corresponding to itself link of the communication module According to, and the reference data is fed back into the upper level module;
Wherein, reference data corresponding to itself link of the communication module are as follows: each next stage module of the communication module The sum of reference data reported.
S304, when listening to the upper level module to the communication module request data and data type is differential-type, Obtain differential data corresponding to itself link of the communication module;
Wherein, differential data corresponding to itself link of the communication module are as follows: the second latest data is relative to the second standard The difference value of data, second latest data are as follows: newest differential data corresponding to each next stage module itself link, it should Second normal data are as follows: the resulting result of last request of data that the upper level module carries out the communication module.
Optionally, in one implementation, the communication module can to each next stage module request obtain it is each under The corresponding differential data of previous module itself link, and by the corresponding difference number of obtained each next stage module itself link The sum of according to, it is determined as differential data corresponding to itself link of the communication module.
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector, if the communication module to the expansion module request differential data, which can determine two Class data, and calculate the difference value between determined two class data obtain the corresponding difference of the expansion module itself link Data are simultaneously reported to the communication module;Wherein, a kind of data in the two classes data are as follows: obtained from connected defence area detector Newest security protection data, another kind of data are as follows: the data that the communication module last time obtains from the expansion module poll.
And if next stage module is another communication module, the link of another communication module itself is each direct-connected Module to the link of defence area detector, when the communication module is to another communication module request differential data, this is another logical Letter module can request to obtain from each direct-connected module the differential data of each itself link of direct-connected module, and calculating from The number that each direct-connected module differential data obtained and the communication module last time obtain from another communication module poll According to difference value, obtain the corresponding differential data of another communication module itself link and be reported to the communication module.Wherein, such as The direct-connected module of fruit is a communication module, then the differential data of itself link of the direct-connected module are as follows: the direct-connected module is from institute The differential data that link block obtains, obtains the difference of data from the direct-connected module polls with another communication module last time Value;And if direct-connected module is an expansion module, the differential data of itself link of the direct-connected module are as follows: the direct-connected mould The security protection data that block is obtained from connected defence area detector are obtained with another communication module last time from the direct-connected module polls To the difference value of data.
Optionally, in another implementation, in order to further increase communication efficiency, which can deposit in advance Differential data corresponding to each next stage module itself link is stored up, and then in upper level module request differential data, it can be with Pre-stored data are directly based upon to determine differential data corresponding to itself link of the communication module.Thought based on this kind processing Think, method provided by the present embodiment can also include:
The each next stage module of poll obtains differential data corresponding to each next stage module itself link;
Correspondingly, second latest data are as follows: each next stage module itself link institute that the communication module is stored is right The newest differential data answered.
It is emphasized that in safety defense monitoring system, in order to guarantee efficiently to cope with risk in time, to different defence areas The defence area that priority may be different, usually more to alarm times is detected, detection priority is higher.Thought is handled based on this kind, The each next stage module of poll, the step of obtaining differential data corresponding to each next stage module itself link, can be with Include:
With the polling priority of each next stage module, each next stage module of poll obtains each next stage module certainly Differential data corresponding to body link.
Wherein, the polling priority of each next stage module can be by manually setting, naturally it is also possible to according to certain ginseng Standard is examined to set automatically.
Optionally, in one implementation, the determination of the polling priority of each next stage module of the communication module Mode may include:
Determine each next stage module in the data length of the differential data of the second predetermined amount of time internal feedback;
According to the corresponding data length of each next stage module and the second total length of data, each next stage module is calculated Polling priority;Wherein, second total length of data are as follows: the sum of corresponding data length of each next stage module.
For example: the calculating process of the priority of next stage module B0-Bm corresponding to communication module can wrap It includes:
Length is carried out in the differential data of certain time period to next stage module B0-Bm to add up, and obtains each next stage mould The corresponding data length of block, wherein the data length SBx of next stage module Bx, the then polling priority of next stage module Bx
For next stage module Bx, according to polling priority poll treatment process are as follows: be in total degree's Be SBx times to the wrap count of next stage module Bx in polling procedure, i.e., everyPoll is primary.
It is emphasized that the mode of above-mentioned given automatic setting polling priority is merely exemplary, do not answer Restriction of this composition to the application.
Differential data corresponding to itself link of the communication module is fed back to the upper level module by S305.
After obtaining differential data corresponding to the communication module itself, by difference corresponding to itself link of the communication module Divided data feeds back to the upper level module.
In the present embodiment, communication module is only in upper level module request reference data, each next stage module of poll, It obtains current security protection data corresponding to each next stage module itself link and reports;And in upper level module request difference When data, obtains differential data corresponding to itself link and report, greatly reduce data volume, it therefore, with this solution, can Bus communication is not easy to block when guaranteeing that safety defense monitoring system extends on a large scale, so that safety defense monitoring system is with higher Data transmission efficiency.
Combined with specific embodiments below, a kind of data transmission method provided by the angle to the application from communication module into Row is introduced.
As shown in fig. 6, a kind of data transmission method provided by the present application, may include as follows from the angle of communication module Step:
S401, whether monitoring upper level module, which issues poll to the communication module, instructs;
Wherein, the data format about poll instruction is referred to the specific lattice for the poll instruction that above-described embodiment provides Formula, this will not be repeated here.
S402, when listening to, upper level module issues poll instruction to the communication module and the poll instruction issued is ginseng When examining type, each next stage module of poll issues the corresponding reftype that belongs to each next stage module for being polled to Poll instruction;
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector issued to the expansion module if the communication module is polled to the expansion module and belong to reftype Poll instruction;Correspondingly, the expansion module obtains current security protection data from the defence area detector connected, generates to carry and work as The reference data frame of preceding security protection data is simultaneously reported to the communication module.
And if next stage module is another communication module, the link of another communication module itself is direct-connected mould Block to defence area detector link, if the communication module is polled to another communication module, under another communication module Hair belongs to the poll instruction of reftype;Correspondingly, another communication module can be instructed by belonging to the poll of reftype Request obtains the reference data of itself link of the direct-connected module from direct-connected module, will be obtained from each direct-connected module The sum of reference data as the corresponding reference data of another communication module itself link, generation carries the reference data Reference data frame is simultaneously reported to the communication module.Wherein, if the direct-connected module is a communication module, direct-connected module is certainly The reference data of body link are as follows: the direct-connected module each being connected by belong to that the poll instruction request of reftype obtains The sum of the reference data of module itself link, and so on;And if the direct-connected module is expansion module, the direct-connected mould The reference data of block itself link is obtains current security protection data from the defence area detector connected.
S403, receive each next stage module feedback, carry the ginseng of security protection data current corresponding to itself link Data frame is examined, extracts security protection data from the received reference data frame of institute;
S404, the current security protection data that poll is obtained are determined as reference number corresponding to itself link of the communication module According to;
S405 generates the reference data frame for carrying the reference data, and reference data frame generated is fed back to this Upper level module;
Wherein, the data format of reference data frame is referred to response corresponding about poll instruction in above-described embodiment The format of frame, this will not be repeated here.
S406 is differential-type when listening to the poll instruction that the upper level module issues and the poll instruction issued When, obtain differential data corresponding to itself link of the communication module;
Optionally, in one implementation, which can be each to what is be polled to each next stage module of poll A next stage module issues the poll instruction for belonging to differential-type, obtains the corresponding difference number of each next stage module itself link According to, and by the sum of corresponding differential data of obtained each next stage module itself link, it is determined as the communication module itself Differential data corresponding to link.
It should be noted that itself link of the expansion module is to be connected if next stage module is expansion module Defence area detector, if the communication module to the expansion module request differential data, issued to the expansion module and belong to difference The poll of classifying type instructs;Correspondingly, the expansion module can determine the newest peace obtained from connected defence area detector Anti- data, and the data that the determining communication module last time obtains from the expansion module poll, and calculate determined two The difference value of class data, obtains the corresponding differential data of the expansion module itself link, and generation carries obtained difference number According to differential data frame and the differential data frame is reported to the communication module.
And if next stage module is another communication module, the link of another communication module itself is each direct-connected Module to defence area detector link, it is another logical to this when the communication module is to another communication module request differential data Letter module issues the poll instruction for belonging to differential-type;Correspondingly, another communication module can be from each direct-connected module Request obtains the differential data of each itself link of direct-connected module, and calculates from each direct-connected module difference number obtained According to the difference value of the data obtained with the communication module last time from another communication module poll, another communication module is obtained The corresponding differential data of itself link generates and carries the differential data frame of obtained differential data, and by the differential data Frame is reported to the communication module.Wherein, if direct-connected module is a communication module, the difference of itself link of the direct-connected module Divided data are as follows: the differential data that the direct-connected module is obtained from institute's link block is straight from this with another communication module last time Module polls even obtain the difference value of data;And if direct-connected module is an expansion module, the direct-connected module itself The differential data of link are as follows: the security protection data that the direct-connected module is obtained from connected defence area detector, with another communication mould The block last time obtains the difference value of data from the direct-connected module polls.
Optionally, in another implementation, in order to further increase communication efficiency, which can deposit in advance Differential data corresponding to each next stage module itself link is stored up, and then in upper level module request differential data, it can be with Pre-stored data are directly based upon to determine differential data corresponding to itself link of the communication module.Thought based on this kind processing Think, method provided by the present embodiment can also include:
The each next stage module of poll issues to each next stage module being polled to and belongs to the poll of differential-type and refer to It enables, obtains differential data corresponding to each next stage module itself link;
Correspondingly, second latest data are as follows: each next stage module itself link institute that the communication module is stored is right The newest differential data answered.
S407 generates the differential data frame for carrying differential data corresponding to itself link of the communication module, and by the difference Divided data frame feeds back to the upper level module.
After obtaining differential data corresponding to itself link of the communication module, it can be generated and carry the communication module itself The differential data frame of differential data corresponding to link, and the differential data frame is fed back into the upper level module.
Wherein, the data format about differential data frame is referred in above-described embodiment instruct corresponding answer about poll The data format of frame is answered, this will not be repeated here.
In the present embodiment, communication module only upper level module issue belong to reftype poll instruction when, poll Each next stage module issues the poll instruction for belonging to reftype to each next stage module, obtains each next stage module Current security protection data corresponding to itself link simultaneously report;And the poll instruction for belonging to differential-type is issued in upper level module When, it obtains differential data corresponding to itself link and reports, greatly reduce data volume.Therefore, with this solution, Ke Yibao Bus communication is not easy to block when card safety defense monitoring system extends on a large scale, so that safety defense monitoring system data with higher Efficiency of transmission.
Below from the angle of expansion module, a kind of data transmission method provided herein is introduced.
As shown in fig. 7, a kind of data transmission method provided by the present application, may include as follows from the angle of expansion module Step:
Whether S501 monitors upper level module to the expansion module request data;
Wherein, upper level module corresponding to the expansion module can be alarm host machine or communication module.
S502, when listening to upper level module to the expansion module request data and data type is reftype, inspection Each defence area detector that the expansion module is connected is surveyed, the current security protection data of each defence area detector are obtained;
When listening to upper level module to the expansion module request data and data type is reftype, show on this Previous module intentionally gets complete data, and therefore, which can detecte each defence area that the expansion module is connected Detector obtains the current security protection data of each defence area detector.
Current security protection data are determined as reference data corresponding to itself link of the expansion module by S503, and should Reference data feeds back to the upper level module;
S504, when listening to the upper level module to the expansion module request data and data type is differential-type, Obtain differential data corresponding to itself link of the expansion module;
Wherein, differential data corresponding to itself link of the expansion module are as follows: third latest data is relative to third standard The difference value of data, the third latest data are as follows: the newest security protection data of each defence area detector that the expansion module is connected, The third normal data are as follows: the resulting result of last request of data that the upper level module carries out the expansion module.
Optionally, in one implementation, the specific of differential data corresponding to itself link of the expansion module is obtained Implementation can be with are as follows: detects each defence area detector, obtains the security protection data of each defence area detector, by obtained security protection The difference value for the resulting result of last request of data that data and the upper level module carry out the expansion module, as this Differential data corresponding to expansion module itself link.
Optionally, in another implementation, in order to further provide for communication efficiency, which can deposit in advance The security protection data of each defence area detector are stored up, and then in upper level module request differential data, it is true based on the data stored The fixed corresponding differential data of itself link of the expansion module.Thought is handled based on this kind, method provided herein can be with Include:
Each defence area detector that the expansion module is connected is detected, the security protection data of each defence area detector are obtained, and Save the security protection data that detection obtains;
Correspondingly, the third latest data are as follows: in the security protection data for each defence area detector that the expansion module is saved Latest data.
Differential data corresponding to itself link of the expansion module is fed back to the upper level module by S505.
It, can be by itself link of expansion module institute after obtaining differential data corresponding to itself link of the expansion module Corresponding differential data feeds back to the upper level module.
In the present embodiment, expansion module only in upper level module request reference data, detects the company, expansion module institute The each defence area detector connect obtains the current security protection data of each defence area detector and reports;And in upper level module request When differential data, obtains differential data corresponding to itself link and report, greatly reduce data volume, therefore, pass through the party Case, it is ensured that bus communication is not easy to block when safety defense monitoring system extends on a large scale, so that safety defense monitoring system has Higher data transmission efficiency.
Combined with specific embodiments below, a kind of data transmission method provided by the angle to the application from expansion module into Row is introduced.
As shown in figure 8, a kind of data transmission method provided by the present application, may include as follows from the angle of expansion module Step:
S601, whether monitoring upper level module, which issues poll to the expansion module, instructs;
Wherein, the data format of poll instruction is referred to the data format in above-described embodiment about poll instruction, This is not repeated them here.
S602, when listening to, upper level module issues poll instruction to the expansion module and the poll instruction issued is ginseng When examining type, each defence area detector that the expansion module is connected is detected, the current security protection number of each defence area detector is obtained According to;
Current security protection data are determined as reference data corresponding to itself link of the expansion module by S603;
S604 generates the reference data frame for carrying the reference data, and reference data frame generated is fed back to this Upper level module;
Wherein, the data format of reference data frame is referred to the number in above-described embodiment about the acknowledgement frame of poll instruction According to format, this will not be repeated here.
S605 is differential-type when listening to the poll instruction that the upper level module issues and the poll instruction issued When, obtain differential data corresponding to itself link of the expansion module;
Optionally, in one implementation, the specific of differential data corresponding to itself link of the expansion module is obtained Implementation can be with are as follows: detects each defence area detector, obtains the security protection data of each defence area detector, by obtained security protection The difference value for the resulting result of last request of data that data and the upper level module carry out the expansion module, as this Differential data corresponding to expansion module itself link.
Optionally, in another implementation, in order to further increase communication efficiency, which can deposit in advance The security protection data of each defence area detector are stored up, and then in upper level module request differential data, it is true based on the data stored The fixed corresponding differential data of itself link of the expansion module.Thought is handled based on this kind, method provided herein can be with Include:
Each defence area detector that the expansion module is connected is detected, the security protection data of each defence area detector are obtained, and Save the security protection data that detection obtains;
Correspondingly, the third latest data are as follows: in the security protection data for each defence area detector that the expansion module is saved Latest data.
S606 generates the differential data frame for carrying the differential data, and differential data frame generated is fed back to this Upper level module.
After obtaining the corresponding differential data of itself link of the expansion module, the difference for carrying the differential data can be generated Divided data frame, and differential data frame generated is fed back into the upper level module.
Wherein, the data format of differential data frame is referred to the number in above-described embodiment about the acknowledgement frame of poll instruction According to format, this will not be repeated here.
In the present embodiment, expansion module only when upper level module issues the poll instruction for belonging to reftype, is detected Each defence area detector that the expansion module is connected obtains the current security protection data of each defence area detector and reports;And When upper level module issues the poll instruction for belonging to differential-type, obtains differential data corresponding to itself link and report, greatly Data volume is reduced greatly, therefore, with this solution, it is ensured that bus communication is not easy to hinder when safety defense monitoring system extends on a large scale Plug, so that safety defense monitoring system data transmission efficiency with higher.
Corresponding to embodiment of the method provided by the above-mentioned angle from alarm host machine, this application provides a kind of transmission of data Device, applied to the alarm host machine in safety defense monitoring system;As shown in figure 9, the apparatus may include:
Whether monitoring unit 910 meets reference data acquisition condition for monitoring;
Reference data obtaining unit 920, for when meet reference data obtain condition when, each next stage module of poll, Obtain reference data corresponding to each next stage module itself link;Wherein, the reference data is current security protection data;
Differential data obtaining unit 930, for when do not meet reference data obtain condition when, each next stage mould of poll Block obtains differential data corresponding to each next stage module itself link;Wherein, any next stage module itself link institute is right The differential data answered are as follows: difference value of the first latest data of the next stage module relative to the first normal data, the next stage First latest data of module are as follows: newest differential data corresponding to itself link of the next stage module of the next stage module, First normal data are as follows: the resulting knot of last request of data that the alarm host machine carries out the next stage module Fruit.
In scheme provided herein, only when meeting reference data acquisition condition, each next stage module is obtained certainly The reference data of body link;And remaining moment obtains the differential data of each next stage module, greatly reduces data volume, because This, with this solution, it is ensured that bus communication is not easy to block when safety defense monitoring system extends on a large scale, so that security protection is supervised Control system data transmission efficiency with higher.Optionally, the reference data obtaining unit 920 may include:
First poll instruction issue subelement, for when meet reference data obtain condition when, each next stage mould of poll Block issues the corresponding poll instruction for belonging to reftype to each next stage module being polled to;
Reference data frame obtain subelement, for receive each next stage module feedback, carry corresponding to itself link Current security protection data reference data frame;
Reference data obtains subelement, for by security protection data in received reference data frame be determined as it is each next Reference data corresponding to grade module itself link.
Optionally, differential data obtaining unit 930 may include:
First poll instruction issue subelement, for when do not meet reference data obtain condition when, each next stage of poll Module issues the corresponding poll instruction for belonging to differential-type to each next stage module being polled to;
Differential data frame obtain subelement, for receive each next stage module feedback, carry corresponding to itself link Differential data differential data frame;
Differential data obtains subelement, for extracting differential data from the received differential data frame of institute.
Optionally, differential data obtaining unit 930, is specifically used for:
When not meeting reference data acquisition condition, according to the polling priority of each next stage module, under poll is each Previous module obtains differential data corresponding to each next stage module itself link.
Optionally, the method for determination of the polling priority of each next stage module of the alarm host machine may include:
Determine each next stage module in the data length of the differential data of the first predetermined period internal feedback;
According to the corresponding data length of each next stage module and the first total length of data, each of the alarm host machine is determined The polling priority of a next stage module;Wherein, first total length of data is that the corresponding data of each next stage module are long The sum of degree.
Corresponding to embodiment of the method provided by the above-mentioned angle from communication module, present invention also provides a kind of data biographies Defeated device, applied to the communication module in safety defense monitoring system;As shown in Figure 10, the apparatus may include:
First monitoring unit 1010, for whether monitoring upper level module to the communication module request data;
First security protection data acquiring unit 1020 listens to upper level module to the communication module request data for working as And data type be reftype when, each next stage module of poll obtains corresponding to each next stage module itself link Current security protection data;
First data feedback unit 1030, the current security protection data for obtaining poll are determined as the communication module Reference data corresponding to itself link, and the reference data is fed back into the upper level module;
First differential data obtaining unit 1040 is requested for that ought listen to the upper level module to the communication module When data and data type are differential-type, differential data corresponding to itself link of the communication module is obtained;Wherein, described Differential data corresponding to communication module itself link are as follows: difference value of second latest data relative to the second normal data, institute State the second latest data are as follows: newest differential data corresponding to each next stage module itself link, second criterion numeral According to are as follows: the resulting result of last request of data that the upper level module carries out the communication module;
Second data feedback unit 1050, for feeding back to differential data corresponding to itself link of the communication module The upper level module.
In the present embodiment, communication module is only in upper level module request reference data, each next stage module of poll, It obtains current security protection data corresponding to each next stage module itself link and reports;And in upper level module request difference When data, obtains differential data corresponding to itself link and report, greatly reduce data volume, it therefore, with this solution, can Bus communication is not easy to block when guaranteeing that safety defense monitoring system extends on a large scale, so that safety defense monitoring system is with higher Data transmission efficiency.Optionally, device provided in the present embodiment can also include:
Poll units are used for each next stage module of poll, obtain difference corresponding to each next stage module itself link Divided data;
Correspondingly, second latest data are as follows: each next stage module itself link that the communication module is stored Corresponding newest differential data.
Optionally, first monitoring unit 1010 is specifically used for:
Whether monitoring upper level module, which issues poll to the communication module, instructs;
The first security protection data acquiring unit 1020 may include:
Instruction issues subelement, issues under poll instruction and institute for that ought listen to upper level module to the communication module When the poll instruction of hair is reftype, each next stage module of poll issues correspondence to each next stage module being polled to Belong to reftype poll instruction;
Security protection data obtain subelement, for receive each next stage module feedback, carry corresponding to itself link The reference data frame of current security protection data extracts security protection data from the received reference data frame of institute;
First data feedback unit 1030, is specifically used for:
The current security protection data that poll is obtained are determined as reference data corresponding to itself link of the communication module, The reference data frame for carrying the reference data is generated, and reference data frame generated is fed back into the upper level mould Block.
Optionally, the first monitoring unit 1010, is specifically used for:
Whether monitoring upper level module, which issues poll to the communication module, instructs;
The first differential data obtaining unit 1040 may include:
Differential data obtains subelement, for referring to when listening to the upper level module and issue poll to the communication module Enable and issued poll instruction be differential-type when, obtain differential data corresponding to itself link of the communication module;
Second data feedback unit 1050, is specifically used for:
Generate the differential data frame for carrying differential data corresponding to communication module itself link, and by the difference Data frame feeds back to the upper level module.
Optionally, the poll units, are specifically used for:
With the polling priority of each next stage module, each next stage module of poll obtains each next stage module certainly Differential data corresponding to body link.
Optionally, the method for determination of the polling priority of each next stage module of the communication module, comprising:
Determine each next stage module in the data length of the differential data of the second predetermined amount of time internal feedback;
According to the corresponding data length of each next stage module and the second total length of data, each next stage module is calculated Polling priority;Wherein, second total length of data are as follows: the sum of corresponding data length of each next stage module.
Corresponding to embodiment of the method provided by the above-mentioned angle from expansion module, present invention also provides a kind of data biographies Defeated device, applied to the expansion module in safety defense monitoring system;As shown in figure 11, the apparatus may include:
Second monitoring unit 1110, for whether monitoring upper level module to the expansion module request data;
Second security protection data acquiring unit 1120 listens to upper level module to the expansion module request data for working as And data type detects each defence area detector that the expansion module is connected, obtains each defence area and visit when being reftype Survey the current security protection data of device;
Third data feedback unit 1130, for current security protection data to be determined as itself link of expansion module institute Corresponding reference data, and the reference data is fed back into the upper level module;
Second differential data obtaining unit 1140 is requested for that ought listen to the upper level module to the expansion module When data and data type are differential-type, differential data corresponding to itself link of the expansion module is obtained;Wherein, described Differential data corresponding to expansion module itself link are as follows: difference value of the third latest data relative to third normal data, institute State third latest data are as follows: the newest security protection data of each defence area detector that the expansion module is connected, the third mark Quasi- data are as follows: the resulting result of last request of data that the upper level module carries out the expansion module;
4th data feedback unit 1150, for feeding back to differential data corresponding to itself link of the expansion module The upper level module.
In the present embodiment, expansion module only in upper level module request reference data, detects the company, expansion module institute The each defence area detector connect obtains the current security protection data of each defence area detector and reports;And in upper level module request When differential data, obtains differential data corresponding to itself link and report, greatly reduce data volume, therefore, pass through the party Case, it is ensured that bus communication is not easy to block when safety defense monitoring system extends on a large scale, so that safety defense monitoring system has Higher data transmission efficiency.Optionally, device provided in the present embodiment can also include:
Detection unit, each defence area detector connected for detecting the expansion module obtain each defence area detection The security protection data of device, and save the security protection data that detection obtains;
The third latest data are as follows: in the security protection data for each defence area detector that the expansion module is saved most New data.
Optionally, second monitoring unit 1110 is specifically used for: whether monitoring upper level module to the expansion module Issue poll instruction;
The second security protection data acquiring unit 1120, is specifically used for:
When listening to, upper level module issues poll instruction to the expansion module and the poll instruction issued is reference When type, each defence area detector that the expansion module is connected is detected, the current security protection number of each defence area detector is obtained According to;
Third data feedback module 1130, is specifically used for:
Current security protection data are determined as reference data corresponding to itself link of the expansion module, generation carries The reference data frame of the reference data, and reference data frame generated is fed back into the upper level module.
Optionally, second monitoring unit 1110, is specifically used for:
Whether monitoring upper level module, which issues poll to the expansion module, instructs;
The second differential data obtaining unit 1140, is specifically used for:
When listening to, the upper level module issues poll instruction to the defence area communication module and the poll issued refers to When order is differential-type, differential data corresponding to itself link of the expansion module is obtained;
4th data feedback unit 1150, is specifically used for:
The differential data frame for carrying the differential data is generated, and differential data frame generated is fed back on described Previous module.
It is also provided corresponding to a kind of data transmission method, the embodiment of the present application provided by the above-mentioned angle from alarm host machine A kind of electronic equipment, the electronic equipment are the alarm host machine in safety defense monitoring system;As shown in figure 12, the electronic equipment It include: internal bus 1210, memory (memory) 1220, processor (processor) 1230 and communication interface (Communications Interface)1240;Wherein, the processor 1230, the communication interface 1240, the storage Device 1220 completes mutual communication by the internal bus 1210;
Wherein, the memory 1220, for storing data feasible instruction of the corresponding machine of transmission method;
The processor 1230, for reading the machine readable instructions on the memory 1220, and described in execution Instruction is to realize following operation:
It monitors and whether meets reference data acquisition condition;
When meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself chain Reference data corresponding to road;Wherein, the reference data is current security protection data;
When not meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself Differential data corresponding to link;Wherein, differential data corresponding to any next stage module itself link are as follows: the next stage mould Difference value of first latest data of block relative to the first normal data, the first latest data of the next stage module are as follows: under this Newest differential data corresponding to itself link of the next stage module of previous module, first normal data are as follows: the report The resulting result of last request of data that alert host carries out the next stage module.
In the present embodiment, the associated description of the specific steps about data transmission method may refer to the application and lead from alarm Description content in machine angle institute providing method embodiment, this will not be repeated here.
It is also provided corresponding to a kind of data transmission method, the embodiment of the present application provided by the above-mentioned angle from communication module A kind of electronic equipment, the electronic equipment are the communication module in safety defense monitoring system;The electronic equipment includes: internal total Line, memory, processor and communication interface;Wherein, the processor, the communication interface, the memory pass through described interior Portion's bus completes mutual communication;
Wherein, the memory, for storing data feasible instruction of the corresponding machine of transmission method;
The processor for reading the machine readable instructions on the memory, and executes described instruction with reality Now following operation:
Upper level module is monitored whether to the electronic equipment requests data;
When listening to upper level module to the electronic equipment requests data and data type is reftype, poll is each A next stage module obtains security protection data current corresponding to each next stage module itself link;
The current security protection data that poll is obtained are determined as reference data corresponding to itself link of the electronic equipment, And the reference data is fed back into the upper level module;
When listening to the upper level module to the electronic equipment requests data and data type is differential-type, obtain Obtain differential data corresponding to itself link of the electronic equipment;Wherein, difference corresponding to itself link of the electronic equipment Data are as follows: difference value of second latest data relative to the second normal data, second latest data are as follows: each next stage mould Newest differential data corresponding to block itself link, second normal data are as follows: the upper level module is to the electronics The resulting result of last request of data that equipment is carried out;
Differential data corresponding to itself link of the electronic equipment is fed back into the upper level module.
Wherein, the knot of the structure of the electronic equipment in the present embodiment and electronic equipment (i.e. alarm host machine) in a upper embodiment Structure is identical, and specific structure is referred to Figure 12.
In the present embodiment, the associated description of the specific steps about data transmission method may refer to the application from communication mould Description content in block angle institute providing method embodiment, this will not be repeated here.
It is also provided corresponding to a kind of data transmission method, the embodiment of the present application provided by the above-mentioned angle from expansion module A kind of electronic equipment, the electronic equipment are the expansion module in safety defense monitoring system;The electronic equipment includes: internal total Line, memory, processor and communication interface;Wherein, the processor, the communication interface, the memory pass through described interior Portion's bus completes mutual communication;
Wherein, the memory, for storing data feasible instruction of the corresponding machine of transmission method;
The processor for reading the machine readable instructions on the memory, and executes described instruction with reality Now following operation:
Upper level module is monitored whether to the electronic equipment requests data;
When listening to upper level module to the electronic equipment requests data and data type is reftype, institute is detected Each defence area detector that expansion module is connected is stated, the current security protection data of each defence area detector are obtained;
Current security protection data are determined as reference data corresponding to itself link of the electronic equipment, and by the ginseng Data feedback is examined to the upper level module;
When listening to the upper level module to the electronic equipment requests data and data type is differential-type, obtain Obtain differential data corresponding to itself link of the electronic equipment;Wherein, difference corresponding to itself link of the electronic equipment Data are as follows: difference value of the third latest data relative to third normal data, the third latest data are as follows: the electronic equipment The newest security protection data of each defence area detector connected, the third normal data are as follows: the upper level module is to described The resulting result of last request of data that electronic equipment is carried out;
Differential data corresponding to itself link of the electronic equipment is fed back into the upper level module.
Wherein, the knot of the structure of the electronic equipment in the present embodiment and electronic equipment (i.e. alarm host machine) in a upper embodiment Structure is identical, and specific structure is referred to Figure 12.
In the present embodiment, the associated description of the specific steps about data transmission method may refer to the application from expanded mode Description content in block angle institute providing method embodiment, this will not be repeated here.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.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 The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (22)

1. a kind of safety defense monitoring system characterized by comprising an alarm host machine, multiple communication modules and multiple expanded modes Block;Wherein, each communication module includes a state mouth and at least one extension mouth, and each expansion module includes a shape State mouth and at least one extension mouth;
The alarm host machine is communicated by bus with corresponding next stage module, is used for basis from corresponding next stage module The data that poll obtains execute alert process;Wherein, the corresponding next stage module of the alarm host machine includes: that at least one is logical Believe module and/or at least one expansion module;
Each communication module is communicated with corresponding upper level module by the state mouth of itself, passes through the extension mouth of itself It is communicated with corresponding next stage module, for the data that basis is obtained from corresponding next stage module polls, on corresponding Previous module reported data;Wherein, the corresponding upper level module of any communication module includes: the alarm host machine or a communication Module;The corresponding next stage module of any communication module includes: at least one communication module and/or at least one expansion module;
Each expansion module is communicated by the state mouth of itself and corresponding upper level module, passes through the extension of itself Mouth is communicated with defence area detector, security protection data is obtained from corresponding defence area detector for basis, to corresponding upper level mould Block reported data;Wherein, the corresponding upper level module of any expansion module includes: a communication module or the alarm host machine.
2. a kind of data transmission method, which is characterized in that applied to the alarm host machine in safety defense monitoring system;The method packet It includes:
It monitors and whether meets reference data acquisition condition;
When meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself link institute Corresponding reference data;Wherein, the reference data is current security protection data;
When not meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself link Corresponding differential data;Wherein, differential data corresponding to any next stage module itself link are as follows: the next stage module Difference value of first latest data relative to the first normal data, the first latest data of the next stage module are as follows: the next stage Newest differential data corresponding to itself link of the next stage module of module, first normal data are as follows: the alarm master The resulting result of last request of data that machine carries out the next stage module.
3. according to the method described in claim 2, poll is each it is characterized in that, described when meeting reference data acquisition condition A next stage module, the step of obtaining reference data corresponding to each next stage module itself link, comprising:
When meeting reference data acquisition condition, each next stage module of poll is issued to each next stage module being polled to The corresponding poll instruction for belonging to reftype;
Receive each next stage module feedback, carry the reference data frame of security protection data current corresponding to itself link;
By security protection data in received reference data frame be determined as reference corresponding to each next stage module itself link Data.
4. according to the method in claim 2 or 3, which is characterized in that described when not meeting reference data acquisition condition, wheel The step of asking each next stage module, obtaining differential data corresponding to each next stage module itself link, comprising:
When not meeting reference data acquisition condition, each next stage module of poll, under each next stage module being polled to Send out to belong to the poll instruction of differential-type corresponding;
Differential data frame receiving each next stage module feedback, carrying differential data corresponding to itself link;
Differential data is extracted from the received differential data frame of institute.
5. according to the method in claim 2 or 3, which is characterized in that described when not meeting reference data acquisition condition, wheel Each next stage module is ask, differential data corresponding to each next stage module itself link is obtained, comprising:
When not meeting reference data acquisition condition, according to the polling priority of each next stage module, each next stage of poll Module obtains differential data corresponding to each next stage module itself link.
6. according to the method described in claim 5, it is characterized in that, the poll of each next stage module of the alarm host machine is excellent The method of determination of first grade, comprising:
Determine each next stage module in the data length of the differential data of the first predetermined period internal feedback;
According to the corresponding data length of each next stage module and the first total length of data, determine the alarm host machine it is each under The polling priority of previous module;Wherein, first total length of data be the corresponding data length of each next stage module it With.
7. a kind of data transmission method, which is characterized in that applied to the communication module in safety defense monitoring system;The method packet It includes:
Upper level module is monitored whether to the communication module request data;
When listening to upper level module to the communication module request data and data type is reftype, under poll is each Previous module obtains security protection data current corresponding to each next stage module itself link;
The current security protection data that poll is obtained are determined as reference data corresponding to itself link of the communication module, and will The reference data feeds back to the upper level module;
When listening to the upper level module to the communication module request data and data type is differential-type, institute is obtained State differential data corresponding to communication module itself link;Wherein, differential data corresponding to itself link of the communication module Are as follows: difference value of second latest data relative to the second normal data, second latest data are as follows: each next stage module is certainly Newest differential data corresponding to body link, second normal data are as follows: the upper level module is to the communication module The resulting result of last request of data carried out;
Differential data corresponding to itself link of the communication module is fed back into the upper level module.
8. the method according to the description of claim 7 is characterized in that further include:
The each next stage module of poll obtains differential data corresponding to each next stage module itself link;
Correspondingly, second latest data are as follows: each next stage module itself link institute that the communication module is stored is right The newest differential data answered.
9. method according to claim 7 or 8, which is characterized in that whether the monitoring upper level module is to the communication The step of module request data, comprising:
Whether monitoring upper level module, which issues poll to the communication module, instructs;
It is described when listening to upper level module to the communication module request data and data type is reftype, poll is each A next stage module, the step of obtaining security protection data current corresponding to each next stage module itself link, comprising:
When listening to, upper level module issues poll instruction to the communication module and the poll instruction issued is reftype When, each next stage module of poll issues the corresponding poll for belonging to reftype to each next stage module being polled to and refers to It enables;
Receive each next stage module feedback, carry the reference data frame of security protection data current corresponding to itself link, Security protection data are extracted from the received reference data frame of institute;
The step of reference data is fed back into the upper level module, comprising:
The reference data frame for carrying the reference data is generated, and reference data frame generated is fed back into the upper level Module.
10. method according to claim 7 or 8, which is characterized in that whether the monitoring upper level module is to the communication The step of module request data, comprising:
Whether monitoring upper level module, which issues poll to the communication module, instructs;
It is described when listening to the upper level module to the communication module request data and data type is differential-type, obtain The step of obtaining differential data corresponding to itself link of the communication module, comprising:
When listening to, the upper level module issues poll instruction to the communication module and the poll instruction issued is difference When type, differential data corresponding to itself link of the communication module is obtained;
The step of differential data corresponding to itself link of the communication module is fed back into the upper level module, comprising:
Generate the differential data frame for carrying differential data corresponding to communication module itself link, and by the differential data Frame feeds back to the upper level module.
11. according to the method described in claim 8, it is characterized in that, each next stage module of the poll, obtains each next The step of differential data corresponding to grade module itself link, comprising:
With the polling priority of each next stage module, each next stage module of poll obtains each next stage module itself chain Differential data corresponding to road.
12. according to the method for claim 11, which is characterized in that the poll of each next stage module of the communication module The method of determination of priority, comprising:
Determine each next stage module in the data length of the differential data of the second predetermined amount of time internal feedback;
According to the corresponding data length of each next stage module and the second total length of data, the poll of each next stage module is calculated Priority;Wherein, second total length of data are as follows: the sum of corresponding data length of each next stage module.
13. a kind of data transmission method, which is characterized in that applied to the expansion module in safety defense monitoring system;The method packet It includes:
Upper level module is monitored whether to the expansion module request data;
When listening to upper level module to the expansion module request data and data type is reftype, the expansion is detected Each defence area detector that exhibition module is connected, obtains the current security protection data of each defence area detector;
Current security protection data are determined as reference data corresponding to itself link of the expansion module, and by the reference number According to feeding back to the upper level module;
When listening to the upper level module to the expansion module request data and data type is differential-type, institute is obtained State differential data corresponding to expansion module itself link;Wherein, differential data corresponding to itself link of the expansion module Are as follows: difference value of the third latest data relative to third normal data, the third latest data are as follows: company, the expansion module institute The newest security protection data of each defence area detector connect, the third normal data are as follows: the upper level module is to the extension The resulting result of last request of data that module is carried out;
Differential data corresponding to itself link of the expansion module is fed back into the upper level module.
14. according to the method for claim 13, which is characterized in that further include:
Each defence area detector that the expansion module is connected is detected, obtains the security protection data of each defence area detector, and protect Deposit the security protection data that detection obtains;
The third latest data are as follows: the newest number in the security protection data for each defence area detector that the expansion module is saved According to.
15. method described in 3 or 14 according to claim 1, which is characterized in that whether the monitoring upper level module is to the expansion The step of opening up module request data, comprising:
Whether monitoring upper level module, which issues poll to the expansion module, instructs;
It is described when listening to upper level module to the expansion module request data and data type is reftype, detect institute The step of stating each defence area detector that expansion module is connected, obtaining each defence area detector current security protection data, comprising:
When listening to, upper level module issues poll instruction to the expansion module and the poll instruction issued is reftype When, each defence area detector that the expansion module is connected is detected, the current security protection data of each defence area detector are obtained;
The step of reference data is fed back into the upper level module, comprising:
The reference data frame for carrying the reference data is generated, and reference data frame generated is fed back into the upper level Module.
16. method described in 3 or 14 according to claim 1, which is characterized in that whether the monitoring upper level module is to the expansion The step of opening up module request data, comprising:
Whether monitoring upper level module, which issues poll to the expansion module, instructs;
It is described when listening to the upper level module to the expansion module request data and data type is differential-type, obtain The step of obtaining differential data corresponding to itself link of the expansion module, comprising:
When listening to, the upper level module issues poll instruction to the defence area communication module and the poll instruction issued is When differential-type, differential data corresponding to itself link of the expansion module is obtained;
The step of differential data is fed back into the upper level module, comprising:
The differential data frame for carrying the differential data is generated, and differential data frame generated is fed back into the upper level Module.
17. a kind of data transmission device, which is characterized in that applied to the alarm host machine in safety defense monitoring system;Described device packet It includes:
Monitoring unit, for judging whether that meeting reference data obtains condition;
Reference data obtaining unit, for when meeting reference data acquisition condition, each next stage module of poll to be obtained each Reference data corresponding to itself link of next stage module;Wherein, the reference data is current security protection data;
Differential data obtaining unit, for when not meeting reference data acquisition condition, each next stage module of poll to be obtained each Differential data corresponding to a next stage module itself link;Wherein, difference corresponding to any next stage module itself link Data are as follows: difference value of the first latest data of the next stage module relative to the first normal data, the of the next stage module One latest data are as follows: newest differential data corresponding to itself link of the next stage module of the next stage module, described first Normal data are as follows: the resulting result of last request of data that the alarm host machine carries out the next stage module.
18. a kind of data transmission device, which is characterized in that applied to the communication module in safety defense monitoring system;Described device packet It includes:
First monitoring unit, for whether monitoring upper level module to the communication module request data;
First security protection data acquiring unit listens to upper level module to the communication module request data and data class for working as When type is reftype, each next stage module of poll obtains peace current corresponding to each next stage module itself link Anti- data;
First data feedback unit, the current security protection data for obtaining poll are determined as itself link of the communication module Corresponding reference data, and the reference data is fed back into the upper level module;
First differential data obtaining unit listens to the upper level module to the communication module request data and number for working as According to type be differential-type when, obtain differential data corresponding to itself link of the communication module;Wherein, the communication module Differential data corresponding to itself link are as follows: difference value of second latest data relative to the second normal data, described second most New data are as follows: newest differential data corresponding to each next stage module itself link, second normal data are as follows: described The resulting result of last request of data that upper level module carries out the communication module;
Second data feedback unit, for differential data corresponding to itself link of the communication module to be fed back to described upper one Grade module.
19. a kind of data transmission device, which is characterized in that applied to the expansion module in safety defense monitoring system;Described device packet It includes:
Second monitoring unit, for whether monitoring upper level module to the expansion module request data;
Second security protection data acquiring unit listens to upper level module to the expansion module request data and data class for working as When type is reftype, each defence area detector that the expansion module is connected is detected, it is current to obtain each defence area detector Security protection data;
Third data feedback unit, for current security protection data to be determined as ginseng corresponding to itself link of the expansion module Data are examined, and the reference data is fed back into the upper level module;
Second differential data obtaining unit listens to the upper level module to the expansion module request data and number for working as According to type be differential-type when, obtain differential data corresponding to itself link of the expansion module;Wherein, the expansion module Differential data corresponding to itself link are as follows: difference value of the third latest data relative to third normal data, the third is most New data are as follows: the newest security protection data of each defence area detector that the expansion module is connected, the third normal data are as follows: The resulting result of last request of data that the upper level module carries out the expansion module;
4th data feedback unit, for differential data corresponding to itself link of the expansion module to be fed back to described upper one Grade module.
20. a kind of electronic equipment, the electronic equipment is the alarm host machine in safety defense monitoring system;It is characterized in that, the electricity Sub- equipment includes: internal bus, memory, processor and communication interface;Wherein, the processor, communication interface, described Memory completes mutual communication by the internal bus;Wherein, the memory, for storing data transmission method pair The feasible instruction of the machine answered;
The processor for reading the machine readable instructions on the memory, and executes described instruction to realize such as Lower operation:
It monitors and whether meets reference data acquisition condition;
When meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself link institute Corresponding reference data;Wherein, the reference data is current security protection data;
When not meeting reference data acquisition condition, each next stage module of poll obtains each next stage module itself link Corresponding differential data;Wherein, differential data corresponding to any next stage module itself link are as follows: the next stage module Difference value of first latest data relative to the first normal data, the first latest data of the next stage module are as follows: the next stage Newest differential data corresponding to itself link of the next stage module of module, first normal data are as follows: the alarm master The resulting result of last request of data that machine carries out the next stage module.
21. a kind of electronic equipment, the electronic equipment is the communication module in safety defense monitoring system;It is characterized in that, the electricity Sub- equipment includes: internal bus, memory, processor and communication interface;Wherein, the processor, communication interface, described Memory completes mutual communication by the internal bus;Wherein, the memory, for storing data transmission method pair The feasible instruction of the machine answered;
The processor for reading the machine readable instructions on the memory, and executes described instruction to realize such as Lower operation:
Upper level module is monitored whether to the electronic equipment requests data;
When listening to upper level module to the electronic equipment requests data and data type is reftype, under poll is each Previous module obtains security protection data current corresponding to each next stage module itself link;
The current security protection data that poll is obtained are determined as reference data corresponding to itself link of the electronic equipment, and will The reference data feeds back to the upper level module;
When listening to the upper level module to the electronic equipment requests data and data type is differential-type, institute is obtained State differential data corresponding to electronic equipment itself link;Wherein, differential data corresponding to itself link of the electronic equipment Are as follows: difference value of second latest data relative to the second normal data, second latest data are as follows: each next stage module is certainly Newest differential data corresponding to body link, second normal data are as follows: the upper level module is to the electronic equipment The resulting result of last request of data carried out;
Differential data corresponding to itself link of the electronic equipment is fed back into the upper level module.
22. a kind of electronic equipment, the electronic equipment is the expansion module in safety defense monitoring system;It is characterized in that, the electricity Sub- equipment includes: internal bus, memory, processor and communication interface;Wherein, the processor, communication interface, described Memory completes mutual communication by the internal bus;Wherein, the memory, for storing data transmission method pair The feasible instruction of the machine answered;
The processor for reading the machine readable instructions on the memory, and executes described instruction to realize such as Lower operation:
Upper level module is monitored whether to the electronic equipment requests data;
When listening to upper level module to the electronic equipment requests data and data type is reftype, the expansion is detected Each defence area detector that exhibition module is connected, obtains the current security protection data of each defence area detector;
Current security protection data are determined as reference data corresponding to itself link of the electronic equipment, and by the reference number According to feeding back to the upper level module;
When listening to the upper level module to the electronic equipment requests data and data type is differential-type, institute is obtained State differential data corresponding to electronic equipment itself link;Wherein, differential data corresponding to itself link of the electronic equipment Are as follows: difference value of the third latest data relative to third normal data, the third latest data are as follows: company, the electronic equipment institute The newest security protection data of each defence area detector connect, the third normal data are as follows: the upper level module is to the electronics The resulting result of last request of data that equipment is carried out;
Differential data corresponding to itself link of the electronic equipment is fed back into the upper level module.
CN201711326272.0A 2017-12-13 2017-12-13 Data transmission method and device and security monitoring system Active CN109920217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711326272.0A CN109920217B (en) 2017-12-13 2017-12-13 Data transmission method and device and security monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711326272.0A CN109920217B (en) 2017-12-13 2017-12-13 Data transmission method and device and security monitoring system

Publications (2)

Publication Number Publication Date
CN109920217A true CN109920217A (en) 2019-06-21
CN109920217B CN109920217B (en) 2021-04-27

Family

ID=66958495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711326272.0A Active CN109920217B (en) 2017-12-13 2017-12-13 Data transmission method and device and security monitoring system

Country Status (1)

Country Link
CN (1) CN109920217B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1180213A (en) * 1996-03-29 1998-04-29 能美防灾株式会社 Fire alarming system
CN101593399A (en) * 2009-07-10 2009-12-02 浙江大学 Fire monitoring system based on GPRS and ZigBee sensor network
CN101872536A (en) * 2010-06-24 2010-10-27 北京航空航天大学 System for monitoring intrusion on basis of wireless sensor network
CN201853309U (en) * 2010-11-29 2011-06-01 朱成杰 Coal bunker fire disaster early warning and monitoring device based on wireless sense network
EP2472231A1 (en) * 2011-01-04 2012-07-04 General Electric Company Systems, methods, and apparatus for providing security services utilizing a smart utility meter
JP2014153876A (en) * 2013-02-07 2014-08-25 Plum Systems Inc Inter-operator information transmission system in noise environment, inter-operator information transmission device, and transmission method using the device
US20170124836A1 (en) * 2015-11-04 2017-05-04 Avante International Technology, Inc. Personnel tracking and monitoring system and method employing protective gear including a personnel electronic monitor device
CN107005451A (en) * 2015-03-19 2017-08-01 株式会社东芝 Transmission system and transfer station

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1180213A (en) * 1996-03-29 1998-04-29 能美防灾株式会社 Fire alarming system
CN101593399A (en) * 2009-07-10 2009-12-02 浙江大学 Fire monitoring system based on GPRS and ZigBee sensor network
CN101872536A (en) * 2010-06-24 2010-10-27 北京航空航天大学 System for monitoring intrusion on basis of wireless sensor network
CN201853309U (en) * 2010-11-29 2011-06-01 朱成杰 Coal bunker fire disaster early warning and monitoring device based on wireless sense network
EP2472231A1 (en) * 2011-01-04 2012-07-04 General Electric Company Systems, methods, and apparatus for providing security services utilizing a smart utility meter
JP2014153876A (en) * 2013-02-07 2014-08-25 Plum Systems Inc Inter-operator information transmission system in noise environment, inter-operator information transmission device, and transmission method using the device
CN107005451A (en) * 2015-03-19 2017-08-01 株式会社东芝 Transmission system and transfer station
US20170124836A1 (en) * 2015-11-04 2017-05-04 Avante International Technology, Inc. Personnel tracking and monitoring system and method employing protective gear including a personnel electronic monitor device

Also Published As

Publication number Publication date
CN109920217B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
EP3174243B1 (en) Poe-based power supply method and pse
US9992117B2 (en) Network apparatus, communication system, abnormal traffic detection method, and program
CN105321320B (en) A kind of 4G LTE network on-line early warning system and method based on VPN framework
CN105991587A (en) Intrusion detection method and system
JP7109391B2 (en) Unauthorized communication detection device and unauthorized communication detection program
CN105404224B (en) A kind of method and device of processing computer room failure
CN104767630B (en) A kind of worksheet processing method and device based on alarm association
CN106886716A (en) Integrated manufacturing system (IMS) and its control method
CN113740633B (en) System and method for detecting electrical system faults in a data center
CN108616367A (en) Fault Locating Method and the network equipment
CN110213734A (en) A kind of dynamic data packet communication method and system based on intelligent building Internet of Things
CN110113222B (en) Method and device for acquiring link bandwidth utilization rate and terminal
CN205483093U (en) Turbine meter's monitoring module and device that couples turbine meter
CN109920217A (en) A kind of data transmission method, device and safety defense monitoring system
CN102970186A (en) Equipment performance detection method and equipment performance detection device
CN108206826B (en) Lightweight intrusion detection method for integrated electronic system
US10992694B2 (en) Method and system to detect abnormal message transactions on a network
CN113311250B (en) Method, device, equipment and medium for evaluating shielding effectiveness of cable braided shielding layer
CN105282647B (en) A kind of MPP speaker control method and access controller
CN109413062A (en) Fictitious host computer is by the monitor processing method of malicious attack and system, node server
CN113807697A (en) Alarm association-based order dispatching method and device
CN108427615A (en) A kind of message monitoring method and device
CN103995216B (en) Line fault of electrical power system automatic monitoring method
CN111654474A (en) Safety detection method and device
CN105245597B (en) A kind of communication means and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant