Intelligent construction group's I O point interactive correspondence methodTechnical field
The present invention relates to intelligent building communication field, especially a kind of intelligent construction group I O point interactive correspondence method.
Background technology
Currently, intelligent building is integrated for the purpose of building the building intellectualization management system in building body, synthesis is utilizedWiring technique, building automation technology, the communication technology, network interconnection technology, multimedia application technology, security precautions technology etc. are by phaseClose equipment, software progress Integrated design, installation and debugging, interface customizing development and application support.The intelligence building system Integration Data ModelSubsystem include comprehensive wiring, building automation, telephone exchange, computer room engineering, monitoring system, burglar alarm, public broadcasting,Cable television, access control system, building talkback, all-purpose card, parking management, fire-fighting system, multi-media display system, teleconference systemSystem etc. more than 30 is planted.Since the subsystem being integrated is numerous, network isomerism is strong, the communication between integrated software and subsystem is causedIt is very difficult.Intelligent building is as shown in Figure 1 using the communication complexity between subsystem interface agreement.
Invention content
The present invention provides a kind of intelligent construction group I O point interactive correspondence method, to solve the complex environment of heterogeneous networkUnder, in integrated software and it is integrated the Communications of multiple interfaces between subsystem, various protocols.
The technical solution of the means of communication disclosed by the invention is:It is connect equipped with public on integrated system in building subsystemMouthful, it builds and I/O module is set between subsystem and integrated system, tunneling communication mechanism and agreement are handed in the I/O moduleMutual concrete operations are only interacted with I/O module when integrated system is written and read communication operation with building subsystem;The company of completionAfter connecing, for the data conversion that I/O module conveys each common interface at unified data format, which can by integrated system" address " and " value " two parts expression of identification, directly by the network-based modes of TCP/IP or UDP, from I/O module to collectionAt system or building subsystem modules transmission.
Wherein, the common interface is that inner classes realize interface.
Wherein, the I/O module includes IOFairy main-inlets, IIOAdapter interfaces, IIOHost interfaces andIOPoint series interfaces;The IOFairy main-inlets are for creating I O point and obtaining Host information;DescribedIIOAdapter interfaces are the adapter of I O point operation, the adapting operation for providing each access protocol;The IIOHostInterface is for providing that necessary essential attribute, the IOPoint series interfaces are used for exterior read-write.
Further, the IOPoint series interfaces include IreadablePoint interfaces, IwriteablePointInterface, IIOPoint interfaces and IAsyncReadPoint interfaces;The IreadablePoint is readable I O point interface,The IwriteablePoint interfaces are writeable I O point interface, and the IIOPoint interfaces are readable writeable I O pointInterface, the IAsyncReadPoint interfaces be can asynchronous reading I O point interface.
The means of communication are by introducing I/O module so that when being written and read operation between building subsystem and integrated system,It is only interacted with I/O module, is physically under the jurisdiction of which subsystem, and use without regard to specifically integrating pointWhich kind of agreement is communicated, to solve the problems, such as the complex communication under heterogeneous network.The present invention, will in heterogeneous network environmentBuilding subsystem is isolated with the complex communication mode between integrated system, effectively reduces the integrated complexity of intelligent building,Facilitate and carries out reading over exploitation, debugging deployment and upgrade maintenance for software.
Description of the drawings
Fig. 1 is the intelligent building of the prior art using the communication network schematic diagram between subsystem interface agreement;
Fig. 2 is the communication network structural schematic diagram of the present invention;
Fig. 3 is the parameter designing schematic diagram of present invention I O Fariy main-inlets;
Fig. 4 is the parameter designing schematic diagram of IIOAdapter interfaces of the present invention;
Fig. 5 is the parameter designing schematic diagram of IIOHost interfaces of the present invention;
Fig. 6 is the structural schematic diagram of Ipoint interfaces of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, rightThe present invention is further elaborated.
As shown in Fig. 2, the invention discloses a kind of intelligent construction group I O point interactive correspondence methods:Building subsystem withIntegrated system is equipped with common interface, builds and I/O module is arranged between subsystem and integrated system, and tunneling is logical in I/O moduleThe concrete operations of letter mechanism and protocol interaction, integrated system with building subsystem be written and read communication operation when, only and I/O moduleIt interacts.I/O module encapsulates the concrete operations with protocol interaction, user of the protocol communication mechanism to I/O module(It is integrated softPart, service, program etc.)It is invisible, common interface is only exposed to user, and common interface is that inner classes realize interface, it is ensured thatGood encapsulation, as long as any agreement realizes the interface of I/O module, you can in the program of seamless access to user.It completesAfter connection, the data conversion that I/O module conveys each common interface is at unified data format, and the data format is by integrated systemIdentifiable " address " and " value " two parts indicate, directly by the network-based mode such as TCP/IP or UDP, by I/O moduleTo integrated system or building subsystem modules transmission.
As seen in figures 3-6, I/O module includes IOFairy main-inlets, IIOAdapter interfaces, IIOHost interfaces andIOPoint series interfaces.
If Fig. 3 shows, IOFairy main-inlets are for creating I O point and obtaining Host information.
If Fig. 4 shows, IIOAdapter interfaces are the adapter of I O point operation, for providing that the adaptation of each access protocol is graspedMake, each agreement must realize this interface, the various tools such as connection, reading, write-in, disconnection, session, caching in assumption agreementThe function of body.
If Fig. 5 shows, IIOHost interfaces are the abstract of each agreement Host, for providing necessary essential attribute, including masterMachine address, connection string, description, all I O points for including(And tree structure)Deng.
Fig. 6 be IOPoint series interfaces structural schematic diagram, IOPoint interfaces include IreadablePoint interfaces,IwriteablePoint interfaces, IIOPoint interfaces and IAsyncReadPoint interfaces.
IreadablePoint is readable I O point interface, and IReadablePoint interfaces indicate readable I O point interface pairAs in addition to having I O point essential attribute, alsoing specify the function of synchronous reading.
IwriteablePoint interfaces are that writeable I O point interface alsies specify in addition to having I O point essential attributeThe function being synchronously written.
IIOPoint interfaces are readable writeable I O point interface, add IwriteablePoint equal to IReadablePoint.Father's interface of IIOPoint interfaces or all I O point interface objects.
IAsyncReadPoint interfaces be can asynchronous reading I O point interface.
The present invention solves under the complex environment of heterogeneous network, in integrated software and is integrated a variety of between subsystem connectThe Communication of mouth, various protocols, convenient for communication secondary development, debugging deployment and upgrade maintenance.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,Any one skilled in the art in the technical scope disclosed by the present invention, the change or replacement that can be readily occurred in,It should be covered by the protection scope of the present invention.