[summary of the invention]
The technical problem to be solved in the present invention, be the graphical control strategy configuration method that a kind of gate control system is provided, have employed patterned programming idea, can modify to the steering logic of gate inhibition easily, improve the extensibility of gate control system function and the portability of software, reduce the construction cycle of follow-up Related product.
The present invention is achieved in that a kind of graphical control strategy configuration method of gate control system, the software module of gate control system is decomposed into steering logic and device drives two parts, steering logic part adopts graphical control strategy configuration method to realize the design of access control logic, and device drives part provides the interface of unified standard to call for access control logic; Graphical control strategy configuration method refers to as gate control system provides one group of special configuration element, directly drags element and carries out configuration, thus realize the design of access control logic for user.
Further, described steering logic part adopts graphical control strategy configuration method specifically to comprise the steps:
The element demand of step 10, analysis gate control system, determines component type and number, completes the design of element function;
Step 20, function according to element, realize the function needed for each element successively, and all element functions be packaged into a dynamic link library;
Step 30, according to element demand, by calling the related function in dynamic link library, completing the pattern development of each element successively, forming graphical element, more graphical element is tested;
Step 40, the graphical element tested is stored in element template base;
The demand for control of step 50, analysis gate control system;
Step 60, demand for control according to gate control system, in graphic interface, the template dragging corresponding graphical element, in picture, completes and the configuration of testing and control logic;
Step 70, steering logic is downloaded in control station calculates, the computation process of each graphical element is monitored in real time, and completes the debugging of steering logic.
Wherein, in described step 10, described component type comprises input and output element, auxiliary element, boolean logic element, basic calculation element, function generating device and control strategy element.Described control strategy element formulates for the common application demand of gate control system, is divided into data message reading, data message transfer, data type conversion, data processing calculating, text voice sounding, time state to export 6 types.The content of the element pattern development in described step 30 comprises icon, input/output variable type, element control parameters and the element calling function of determining element.
Wherein, described device drives part provides the interface of unified standard to call for access control logic specifically to comprise:
(1) according to gate control system demand for control, be sent in the internal memory of control station by each physical device by field data, the device drives in control station called providing unified function interface for access control logic;
(2) control signal of access control logical program is sent to physical device by control station, and physical device performs corresponding control action.
Tool of the present invention has the following advantages:
(1) the inventive method adopts graphical control strategy configuration technology, for user provides a series of configuration element for gate control system, user can use graphic elements to carry out configuration and the amendment of steering logic easily, improves the extensibility of gate control system function.
(2) software module of gate control system is decomposed into steering logic and device drives two parts by the inventive method, device drives part have employed unified interface specification and calls for steering logic part, during system hardware upgrading, without the need to revising original control strategy, greatly increase the portability of whole software.
[embodiment]
The graphical control strategy configuration method of gate control system of the present invention, the software module of gate control system is decomposed into steering logic and device drives two parts, steering logic part adopts graphical control strategy configuration method to realize the design of access control logic, and device drives part provides the interface of unified standard to call for access control logic; Graphical control strategy configuration method refers to as gate control system provides one group of special configuration element, directly drag element for user and carry out configuration, thus realizing the design of access control logic, the interface of described unified standard refers to develops corresponding driver for particular hardware.
The inventive method is mainly by being decomposed into steering logic and device drives two parts by software module.1. on the one hand, steering logic part have employed patterned configuration technology, provides various access control configuration element.User can use graphic elements to carry out Logical Configuration easily, and amendment and the expansion of control strategy are all very convenient, greatly reduce the workload of logic realization.2. on the other hand, the access interface of device drives adopts unified standard, and steering logic part can directly call its intrinsic function.Like this, after access controller is changed, we need only upgrade corresponding device drives, and original steering logic still can continue to use, and greatly increases the portability of software.
As shown in Figure 1, described steering logic part adopts graphical control strategy configuration method specifically to comprise the steps:
The element demand of step 10, analysis gate control system, determines component type and number, completes the design of element function; Described component type comprises input and output element, auxiliary element, boolean logic element, basic calculation element, function generating device and control strategy element.Described control strategy element formulates for the common application demand of gate control system, is divided into data message reading, data message transfer, data type conversion, data processing calculating, text voice sounding, time state to export 6 types.Illustrate:
Example 1, for event " name in gate control system on reader identification certificate ", it is corresponding with it that we can design such element, and the functional realiey of this element is " string data is dumped to common exchange area ".
The functional realiey of respective element for event " gate inhibition's voice system prompting visitor name ", then can be " being read aloud by character string information " by example 2.
Step 20, function according to element, realize the function needed for each element successively, and all element functions be packaged into a dynamic link library;
Step 30, according to element demand, by calling the related function in dynamic link library, completing the pattern development of each element successively, forming graphical element, more graphical element is tested;
Such as, the content of element pattern development comprises icon, input/output variable type, element control parameters and the element calling function etc. of determining element.
Step 40, the graphical element tested is stored in element template base;
The demand for control of step 50, analysis gate control system;
Such as, based on the gate control system of China second-generation identity card, its demand for control realized mainly contains: the ID (identity number) card information of read access person, to be compared by the identification card number of authorizing in visitor's identification card number and database and to verify, judge the sex of visitor, voice message " Ms " or " sir ", gate inhibition's switch drive etc.
Step 60, demand for control according to gate control system, in graphic interface, the template dragging corresponding graphical element, in picture, completes and the configuration of testing and control logic;
Step 70, steering logic is downloaded in control station calculates, the computation process of each graphical element is monitored in real time, and completes the debugging of steering logic.
Wherein, described device drives part provides the interface of unified standard to call for access control logic specifically to comprise:
(1) according to gate control system demand for control, be sent in the internal memory of control station by each physical device by field data, described device drives called providing unified function interface for access control logic;
Described physical device comprises card reader, gate inhibition's voice system, electric lock, door open button etc.Described field data comprises image information, voice messaging, text message etc.Described control station comprises access controller, device drives, signal procedure etc.
Example 1, " name on certificate in gate control system, is identified " for event, we can by the name on the physical device reader identification certificate of gate control system, name is sent in the internal memory of control station with the form of string data by card reader, and related data then can be fed back to patterned access control logical gate by unified function interface by control station.
(2) control signal of access control logical program is sent to physical device by control station, and physical device performs corresponding control action.
Example 1, for event " steering logic request gate control system prompting visitor name ", speech data and steering order are sent in physical device gate inhibition voice system according to the control request of steering logic by control station, and voice system will report the name of visitor.
Tool of the present invention has the following advantages:
(1) the inventive method adopts graphical control strategy configuration technology, for user provides a series of configuration element for gate control system, user can use graphic elements to carry out configuration and the amendment of steering logic easily, improves the extensibility of gate control system function.
(2) software module of gate control system is decomposed into steering logic and device drives two parts by the inventive method, device drives part have employed unified interface specification and calls for steering logic part, during system hardware upgrading, without the need to revising original control strategy, greatly increase the portability of whole software.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.