CN101324843A - Object model of general-purpose gateway design - Google Patents

Object model of general-purpose gateway design Download PDF

Info

Publication number
CN101324843A
CN101324843A CNA200810029513XA CN200810029513A CN101324843A CN 101324843 A CN101324843 A CN 101324843A CN A200810029513X A CNA200810029513X A CN A200810029513XA CN 200810029513 A CN200810029513 A CN 200810029513A CN 101324843 A CN101324843 A CN 101324843A
Authority
CN
China
Prior art keywords
gateway
protocol
port
class
management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA200810029513XA
Other languages
Chinese (zh)
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.)
FUDAN AOTE SCIENCE AND TECHNOLOGY Co Ltd GUANGZHOU
Original Assignee
FUDAN AOTE SCIENCE AND TECHNOLOGY Co Ltd GUANGZHOU
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 FUDAN AOTE SCIENCE AND TECHNOLOGY Co Ltd GUANGZHOU filed Critical FUDAN AOTE SCIENCE AND TECHNOLOGY Co Ltd GUANGZHOU
Priority to CNA200810029513XA priority Critical patent/CN101324843A/en
Publication of CN101324843A publication Critical patent/CN101324843A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an object model for the design of a common gateway. The object model mainly comprises an application class (1), a protocol management class (2), a communication management class (3), a data capsule class (4), a file class (5) and a user class (6). The object model can ensure that modularization packaging is performed to the protocol analyzing function, so as to form a protocol analyzing stack, each protocol analyzing method is only required to be programmed once, and can be reutilized later, so that the accuracy of the protocol analysis is ensured, the corresponding development cost is greatly reduced, the code efficiency is greatly improved, related parameters are only required to be simply configured under a plurality of management interfaces during the process of creating the gateway, then the system of the configuration file is compiled, and then the application procedure of the gateway can be automatically generated, therefore, the gateway development efficiency is high, the quality is reliable, and the operation is simple and easy-to-use.

Description

The object model of universal gateway design
Technical field
The invention belongs to the technical field of building intelligent system integration field integrated gateway exploitation, specifically be meant the object model of universal gateway design.
Background technology
The development of customization method is adopted in the exploitation of building intelligent system integration field integrated gateway at present basically, though in the building intelligent field OO consideration is arranged, is not also adopting OO method aspect the integrated gateway exploitation.The portability of the program code of this method exploitation is poor, but the gateway product recycling rate of waterused of being developed is not high.Simultaneously, closely related with the characteristic of hardware interface in the compiling procedure of gateway program code, major part can not provide the dynamic-configuration function of communication port parameter.
The problem that the tradition development approach exists:
1, the screening that the data point monitored of gateway must a point of a point is added, the system integrator must understand very much integrated equipment or subsystem object.
2, the processing code of each data extract in the gateway table of data points all must be write when creating gateway application at every turn pointedly, and is portable poor.
It is poor that communication port characteristic when 3, hardware being connected is revised adaptive faculty, the communication debug difficulties, and the time is long, and progress can't guarantee.
4, do not have the artificial debugging function, after a concrete gateway program was finished, its functional test must be debugged under complete real software/hardware environment, and the time is long, and the quality progress does not have guarantee.
Summary of the invention
The object of the present invention is to provide a kind of object model of universal gateway design, it only need do simple object configuration by gateway development management platform, creates the gateway table of data points by Automatic Program; The extracting method of each data point information in the table of data points is carried out the modularization encapsulation in the mode of protocol stack; Increased configuration feature, made the communication adaptation ability of gateway flexible, can independently revise configuration the communication port attribute; Increased the emulation testing function before gateway uses under authentic real environment, made the field adjustable in later stage simple, reliable in quality, progress are controlled.
For solving the problems of the technologies described above, the technical solution used in the present invention is: the object model of universal gateway design comprises:
Application class, this object comprises the system state attribute, the operation gateway is provided, withdraws from the operation of gateway, table of data points, gateway program creation method, this object is used to initialization, the operation of gateway table of data points, the gateway application process scheduling management and operation creating gateway application and generate application component, processing gateway application program automatically;
The consultative management class, be divided into two subobjects of free consultative management class and standard protocol management class, this object comprises protocol name, protocol number, protocol version, protocol data piece attribute, provide and analyze packet, encapsulated data packet, freedom/standard agreement processing, freedom/standard protocol management method, this object is used for the parsing of processing protocol, the encapsulation of agreement, the calling interface normalized definition of agreement, the management of agreement;
The telecommunication management class, this object comprises port type, the port connected mode, port address, code effect mode, the code stream characteristic attribute, provide com-state to handle, the network interface state processing, the communication port attribute management, communication port detects and handles, packet receives, data packet sending method, this object is with the processing of port communication state, the modification of port communication attribute, port arrangement and parameter setting, and packet sends and method of reseptance is unified encapsulation, be packaged into communication port attribute configuration management subobject, realize data communication with protocol-independent;
The data capsule class, this object comprises system's chained list, equipment chained list, table of data points chain Table Properties, the table of newly laying foundations is provided, revises a table, upgrades the some table, deletes some table, table of data points management method, this object is used to realize that the structuring of data handles, and provides that table of data points management, table of data points read, dynamically update, the data write-in functions;
Files classes are used to handle the associative operation of file system;
User class is used for the operation of process user.
The present invention also comprises the emulation testing class, this object comprises the system state attribute, functional test, protocol test, communication connecting method are provided, and this object is used for upper port functional test, lower port functional test, upper port protocol test, lower port protocol test, upper port connection test, lower port connection test.
Described application class makes up the application program Control Engine around the gateway table of data points, and the realization function of application programs is screened and dispatched, and calls relevant program module and configuration file, creates the application code of gateway automatically; The demand resource of application programs is organized and is disposed, and the initialization management and configuration of concrete application scenario and environment for use condition are provided; The process status of application programs detects, judges and switch that the concrete application program that assurance is created can be finished all functions under the current configuration condition automatically.
Functional objective and requirement that described consultative management class is resolved around gateway protocol, the object of protocol analysis is decomposed into three layers of administration and supervision authorities, level of abstraction and Physical layers, administration and supervision authorities are mainly finished the interface specification definition and the configuration management of agreement, the driving of resolution protocol with call problem, level of abstraction is then according to the characteristics and the requirement of monitored object in the building intelligent field, monitored object is classified, define the empty method that supporting protocol analysis realization is adopted, Physical layer is inherited and specific implementation these empty methods.
Described telecommunication management class obtaining communication packet, send packet, call the serial ports or the network port standard operation, to port operation handle, standard port bookkeeping such as setting state of calling communication port, data timeout treatment, data communication fault handling, the communication process of port is monitored.
Owing to adopted above-mentioned structure, the object model of universal gateway design of the present invention has following beneficial effect:
1, the protocol analysis function is carried out the modularization encapsulation, form the protocol analysis stack, every kind of protocol analysis method only need be programmed once, can reuse later on, the accuracy of protocol analysis is guaranteed, and corresponding cost of development reduces greatly, code efficiency improves greatly.
2, the process of creating gateway only need dispose some relevant parameters simply under several administration interfaces, afterwards profile system is compiled, and generates the application program of gateway automatically, efficient height, the reliable in quality, simple to operate easy-to-use of gateway exploitation.
3, the debug time at scene can be shortened greatly, and the effect of the system integration is improved greatly, integrated effective, debugging is used simple, and the progress of integrated debugging is controlled.
This object model is done standardization exploitation at building intelligent neighborhood system integrated gateway and is put forward, and can be used for The intelligence building system integrated gateway exploitation to subsystem such as fire alarm system, guard against theft and alarm system, video monitoring system, broadcast system, clock system, gate control system, intelligent illuminating system, elevator, frequency converter, handpiece Water Chilling Units, intelligent electric meter, genset, precision air conditioner, UPS uninterrupted power source or smart machine when integrated.The modular design method of object model and architecture design theory also adapt to the Application and Development of other field integrated gateway.
Description of drawings
Fig. 1 is the class figure of the object model of universal gateway design.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in further detail, but does not constitute any limitation of the invention.
As shown in Figure 1, the object model of described universal gateway design comprises following object module:
Application class 1, this object comprises the system state attribute, the operation gateway is provided, withdraws from the operation of gateway, table of data points, gateway program creation method, this object is used to initialization, the operation of gateway table of data points, the gateway application process scheduling management and operation creating gateway application and generate application component, processing gateway application program automatically.Described application class 1 major function is to make up the application program Control Engine around the gateway table of data points, and the realization function of application programs is screened and dispatched, and calls relevant program module and configuration file, creates the application code of gateway automatically; The demand resource of application programs is organized and is disposed, and the initialization management and configuration of concrete application scenario and environment for use condition are provided; The process status of application programs detects, judges and switch that the concrete application program that assurance is created can be finished all functions under the current configuration condition automatically.The system state of this object mainly comprises starting state, accepting state, transmit status, treatment state, waiting status, done state, error condition etc., and methods such as application initialization, the management of gateway table of data points, application program establishment automatically, state-detection, state switching, state processing are provided.This is to liking the critical component of this object model, and the calling interface of other classes is all obeyed the interface definition standard of this member, and the function of specific implementation is kept in the database container class.
Consultative management class 2, it is divided into free consultative management class and two subobjects of standard protocol management class, this object comprises protocol name, protocol number, protocol version, protocol data piece attribute, provide and analyze packet, encapsulated data packet, freedom/standard agreement processing, freedom/standard protocol management method, this object is used for the parsing of processing protocol, the encapsulation of agreement, the calling interface normalized definition of agreement, the management of agreement.Described consultative management class 2 major functions are the functional objective and the requirements of resolving around gateway protocol, the object of protocol analysis is decomposed into administration and supervision authorities, three layers of level of abstraction and Physical layers, administration and supervision authorities are mainly finished the interface specification definition and the configuration management of agreement, the driving of resolution protocol with call problem, level of abstraction is then according to the characteristics and the requirement of monitored object in the building intelligent field, monitored object is classified, and (illustrate: the phase one classifies by 14 classes, can expand later on), define the empty method that supporting protocol analysis realization is adopted, Physical layer is inherited and specific implementation these empty methods.By this processing, make the method for protocol analysis and applied environment and the functional requirement that process is independent of concrete gateway, realize the modularization encapsulation of protocol analysis.This to as if another critical component of this object model, be used for the parsing of processing protocol, the encapsulation of agreement, the calling interface normalized definition of agreement and the functions such as management of agreement, be prerequisite and the technical support that the resolution protocol resolving code can reuse.
Telecommunication management class 3, this object comprises port type, the port connected mode, port address, code effect mode, the code stream characteristic attribute, provide com-state to handle, the network interface state processing, the communication port attribute management, communication port detects and handles, packet receives, data packet sending method, this object is with the processing of port communication state, the modification of port communication attribute, port arrangement and parameter setting, and packet sends and method of reseptance is unified encapsulation, be packaged into communication port attribute configuration management subobject, realize data communication with protocol-independent.Described telecommunication management class 3 major functions are obtaining communication packets, send packet, call the serial ports or the network port standard operation, to port operation handle, standard port bookkeeping such as setting state of calling communication port, data timeout treatment, data communication fault handling, the communication process of port is monitored.This is responsible for telecommunication management and data packet transceive work to liking the vitals of this object model, makes the modification of port communication attribute be independent of the protocol analysis process.
Data capsule class 4, this object comprises system's chained list, equipment chained list, table of data points chain Table Properties, the table of newly laying foundations is provided, revises a table, upgrades the some table, deletes some table, table of data points management method, this object is used to realize that the structuring of data handles, and provides that table of data points management, table of data points read, dynamically update, the data write-in functions.This to as if the vitals of this object model, guarantee that each gateway application of creating all has individuation data, make each gateway application that generates automatically all have good dirigibility and to the adaptability of various project restrictive conditions.
Files classes 5 are used to handle the associative operation of file system.User class 6 is used for the operation of process user, comprises that user's login, user authority management, user withdraw from etc.Files classes 5 and user class 6 belong to assisted class, are to consider to append from the integrality that object model uses, and are the organic composition parts of this object model.
The present invention also comprises emulation testing class 7, this object comprises the system state attribute, functional test, protocol test, communication connecting method are provided, and this object is used for upper port functional test, lower port functional test, upper port protocol test, lower port protocol test, upper port connection test, lower port connection test.This Object Creation gateway emulation testing environment makes the functional test of gateway be independent of concrete rig-site utilization environment, realizes guaranteeing accuracy and integrality that gateway function is realized to generating the off-line simulation test of gateway application.This is to liking the accessory of this object model, and purpose is quality and the performance that promotes the gateway of developing, and improves the reliability of gateway, shortens the time that gateway is debugged at the scene, guarantees the progress and the quality of field adjustable.

Claims (5)

1. the object model of universal gateway design is characterized in that, comprising:
Application class (1), this object comprises the system state attribute, the operation gateway is provided, withdraws from the operation of gateway, table of data points, gateway program creation method, this object is used to initialization, the operation of gateway table of data points, the gateway application process scheduling management and operation creating gateway application and generate application component, processing gateway application program automatically;
Consultative management class (2), be divided into two subobjects of free consultative management class and standard protocol management class, this object comprises protocol name, protocol number, protocol version, protocol data piece attribute, provide and analyze packet, encapsulated data packet, freedom/standard agreement processing, freedom/standard protocol management method, this object is used for the parsing of processing protocol, the encapsulation of agreement, the calling interface normalized definition of agreement, the management of agreement;
Telecommunication management class (3), this object comprises port type, the port connected mode, port address, code effect mode, the code stream characteristic attribute, provide com-state to handle, the network interface state processing, the communication port attribute management, communication port detects and handles, packet receives, data packet sending method, this object is with the processing of port communication state, the modification of port communication attribute, port arrangement and parameter setting, and packet sends and method of reseptance is unified encapsulation, be packaged into communication port attribute configuration management subobject, realize data communication with protocol-independent;
Data capsule class (4), this object comprises system's chained list, equipment chained list, table of data points chain Table Properties, the table of newly laying foundations is provided, revises a table, upgrades the some table, deletes some table, table of data points management method, this object is used to realize that the structuring of data handles, and provides that table of data points management, table of data points read, dynamically update, the data write-in functions;
Files classes (5) are used to handle the associative operation of file system;
User class (6) is used for the operation of process user.
2. the object model of universal gateway design according to claim 1, it is characterized in that: also comprise emulation testing class (7), this object comprises the system state attribute, functional test, protocol test, communication connecting method are provided, and this object is used for upper port functional test, lower port functional test, upper port protocol test, lower port protocol test, upper port connection test, lower port connection test.
3. the object model of universal gateway design according to claim 1 and 2, it is characterized in that: described application class (1) makes up the application program Control Engine around the gateway table of data points, the realization function of application programs is screened and is dispatched, call relevant program module and configuration file, create the application code of gateway automatically; The demand resource of application programs is organized and is disposed, and the initialization management and configuration of concrete application scenario and environment for use condition are provided; The process status of application programs detects, judges and switch that the concrete application program that assurance is created can be finished all functions under the current configuration condition automatically.
4. the object model of universal gateway design according to claim 1 and 2, it is characterized in that: functional objective and requirement that described consultative management class (2) is resolved around gateway protocol, the object of protocol analysis is decomposed into administration and supervision authorities, three layers of level of abstraction and Physical layers, administration and supervision authorities are mainly finished the interface specification definition and the configuration management of agreement, the driving of resolution protocol with call problem, level of abstraction is then according to the characteristics and the requirement of monitored object in the building intelligent field, monitored object is classified, define the empty method that supporting protocol analysis realization is adopted, Physical layer is inherited and specific implementation these empty methods.
5. according to the object model of claim 4 or the design of 2 described universal gateways, it is characterized in that, described telecommunication management class (3) obtaining communication packet, send packet, call the serial ports or the network port standard operation, to port operation handle, standard port bookkeeping such as setting state of calling communication port, data timeout treatment, data communication fault handling, the communication process of port is monitored.
CNA200810029513XA 2008-07-16 2008-07-16 Object model of general-purpose gateway design Pending CN101324843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200810029513XA CN101324843A (en) 2008-07-16 2008-07-16 Object model of general-purpose gateway design

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200810029513XA CN101324843A (en) 2008-07-16 2008-07-16 Object model of general-purpose gateway design

Publications (1)

Publication Number Publication Date
CN101324843A true CN101324843A (en) 2008-12-17

Family

ID=40188390

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200810029513XA Pending CN101324843A (en) 2008-07-16 2008-07-16 Object model of general-purpose gateway design

Country Status (1)

Country Link
CN (1) CN101324843A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193799A (en) * 2011-03-25 2011-09-21 上海磁浮交通发展有限公司 Safety intermediate system for safety computer communication
CN102467364A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Method and device for adaptively generating power supply host computer interface
CN104080107A (en) * 2014-04-15 2014-10-01 石家庄安瑞科气体机械有限公司 Automatic setting method for wireless gateway register mapping table
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system
CN105207827A (en) * 2015-10-27 2015-12-30 珠海智城信息技术有限公司 Communication gateway adding method and device as well as data communication method, system and device
CN106656777A (en) * 2017-01-22 2017-05-10 上海新柏石智能科技股份有限公司 Object-based smart home gateway communication interface framework
CN112153079A (en) * 2020-11-18 2020-12-29 福州大学 Reference gateway device and method for industrial internet gateway test
CN112749073A (en) * 2019-10-30 2021-05-04 腾讯科技(深圳)有限公司 Service testing method and device, storage medium and electronic equipment

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467364A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Method and device for adaptively generating power supply host computer interface
CN102467364B (en) * 2010-11-03 2016-08-10 北京普源精电科技有限公司 A kind of method and device of adaptive generation power supply host computer interface
CN102193799A (en) * 2011-03-25 2011-09-21 上海磁浮交通发展有限公司 Safety intermediate system for safety computer communication
CN104080107B (en) * 2014-04-15 2017-09-29 石家庄安瑞科气体机械有限公司 The method that radio network gateway register mapping table is set automatically
CN104080107A (en) * 2014-04-15 2014-10-01 石家庄安瑞科气体机械有限公司 Automatic setting method for wireless gateway register mapping table
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system
CN104950757B (en) * 2015-06-12 2018-03-16 北京奇虎科技有限公司 The method and system of monitoring of containers
CN105207827B (en) * 2015-10-27 2018-08-14 珠海智城信息技术有限公司 Data communication method, system and device
CN105207827A (en) * 2015-10-27 2015-12-30 珠海智城信息技术有限公司 Communication gateway adding method and device as well as data communication method, system and device
CN106656777A (en) * 2017-01-22 2017-05-10 上海新柏石智能科技股份有限公司 Object-based smart home gateway communication interface framework
CN112749073A (en) * 2019-10-30 2021-05-04 腾讯科技(深圳)有限公司 Service testing method and device, storage medium and electronic equipment
CN112749073B (en) * 2019-10-30 2024-02-13 腾讯科技(深圳)有限公司 Service testing method and device, storage medium and electronic equipment
CN112153079A (en) * 2020-11-18 2020-12-29 福州大学 Reference gateway device and method for industrial internet gateway test

Similar Documents

Publication Publication Date Title
CN101324843A (en) Object model of general-purpose gateway design
de Keijzer et al. JAIN: A new approach to services in communication networks
US5533116A (en) Network management system
CN109218139B (en) Gateway test system
CN106374439A (en) Intelligent substation protection control system-based software definition implementation method
CN100466563C (en) Central monitoring method of the data service system without network management interface
CN103513976B (en) Service flowpath modelling approach and device
CN105701000B (en) Service test method and device
CN111555915A (en) Dynamic network element control system based on plug-in configuration
Hagerer et al. Efficient regression testing of CTI-systems: Testing a complex call-center solution
CN107133034A (en) The platform software implementation method and system of cross operating system
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN1110927C (en) Device and method for configurating and updating services in telecommunication network
Kukliński Programmable management framework for evolved SDN
CN102111801B (en) Method and system for testing network management interface of third generation mobile communication network
CN103457996B (en) A kind of Protocol Conformance Test System internal data store method and system
CN105847047B (en) A method of realizing that special OID is acquired and parsed in MIB using plug-in unitization
CN108833005A (en) Optical network communication equipment and its automated test tool packet and method for organizing network service
CN101192975B (en) Access management sub-system of network management system
CN113434118B (en) Java platform-based hierarchical architecture system of concentrator
TWI651947B (en) Programmable Template Monitoring Method for Equipment and Service Monitoring
CN110808982B (en) Communication protocol establishing method and system based on registration mechanism
CN102651881B (en) Parameter modifying method and system in test of external field of wireless network
CN103312663B (en) A kind of intelligent network business control device and method for processing business
Ayeb et al. Coordinated autonomic loops for target identification, load and error-aware Device Management for the IoT

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20081217