CN115150226A - Intelligent gateway adaptation system based on object model and operation method thereof - Google Patents

Intelligent gateway adaptation system based on object model and operation method thereof Download PDF

Info

Publication number
CN115150226A
CN115150226A CN202210697250.XA CN202210697250A CN115150226A CN 115150226 A CN115150226 A CN 115150226A CN 202210697250 A CN202210697250 A CN 202210697250A CN 115150226 A CN115150226 A CN 115150226A
Authority
CN
China
Prior art keywords
adapter
service
equipment
object model
information
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
CN202210697250.XA
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.)
Wuhan Hongxin Technology Service Co Ltd
Original Assignee
Wuhan Hongxin Technology Service 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 Wuhan Hongxin Technology Service Co Ltd filed Critical Wuhan Hongxin Technology Service Co Ltd
Priority to CN202210697250.XA priority Critical patent/CN115150226A/en
Publication of CN115150226A publication Critical patent/CN115150226A/en
Priority to PCT/CN2022/134878 priority patent/WO2023245985A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an intelligent gateway adaptation system based on an object model, which comprises a database management module, an object model generation module, an adapter management platform, an interface document generation tool, an interface gateway module, an adapter system and a public module. The system refines different adaptation systems of a plurality of existing projects into an independent adaptation system based on the Internet of things to serve more subsequent project services, so that the development, operation and maintenance efficiency is improved, and the cost is saved; the system adopts an adaptation system based on a physical model to realize cross-service scenes and cross-platforms, thereby supporting the butt joint of various 4G, 5G and other devices of a plurality of manufacturers, therefore, the problem of butt joint of various manufacturers and various devices caused by a plurality of projects is solved; the system adopts the object model configuration template to be led into the database and converted into the object model structure body code, thereby realizing more independence and conciseness of the service interface of each service subsystem and reducing code redundancy.

Description

Intelligent gateway adaptation system based on object model and operation method thereof
Technical Field
The invention relates to the technical field of intelligent building Internet of things, in particular to an intelligent gateway adaptation system based on an object model and an operation method thereof.
Background
Currently, the internet of things (IoT) combines emerging technologies such as 5G and cloud computing, and the IoT can improve operation efficiency, reduce cost, improve decisions, and enhance customer experience, and can become a key driving factor for digital transformation in various industries.
In all intelligent management projects of the existing companies, the bottom layer of interaction with equipment is needed to be realized, and an old set of adaptation system is not only bulky, but also difficult to use. Each time a new item is docked, much effort is spent modifying the codes and modifying the database to adapt it to the new application scenario. Along with the increase of 4G and 5G services such as wisdom garden, wisdom community, wisdom building system, such a condition has appeared: the continuous operation of one item over another makes old systems increasingly large.
The sharing of old systems, which are increasingly large in scale, has been fruitful to a very low degree, and as projects continue to grow, people are inflated, low level repetition occurs, and quality, schedule and cost control are not always improved. The large number of items also causes problems of docking of various manufacturers and various devices. The codes realized by the service interfaces of all service subsystems such as access control, parking, video and the like are also redundant.
Disclosure of Invention
In view of at least one of the drawbacks or needs for improvement in the prior art, the present invention provides an intelligent gateway adaptation system based on an object model, which is used to solve the technical problems of low degree of sharing existing results, and as projects are continuously increased, people are inflated, low level of repetition is performed, and quality, progress and cost control are not improved all the time.
In order to achieve the above object, in a first aspect, the present invention provides an intelligent gateway adapting system based on object model, for adapting devices of different design standards of different manufacturers in each business subsystem of an intelligent construction project, including: the system comprises a database management module, an object model generation module and an adapter system;
the object model generating module is used for importing object model configuration templates of all the service subsystems, generating data exchange format files and importing the data exchange format files into a database to generate object models of all the service subsystems;
the database management module is used for storing and managing the physical model and the equipment data of each service subsystem, constructing a database definition table, and providing data definition and storage and management of deployment data for the adapter system;
the adapter system is used for designing a physical model structure body code of the service subsystem of the corresponding adapter according to the physical model of each service subsystem generated by the physical model generating module, abstracting equipment of different manufacturers of the same service subsystem into attributes, services and events, and simultaneously configuring equipment identification mapping relation templates of the adapter end and the third-party application platform system end to realize the adaptation of equipment of different standards of different manufacturers.
Furthermore, the object model generating module firstly performs template configuration on the object model of each service subsystem, including configuration of the object model of the service subsystem and configuration of the equipment object model, wherein the configuration of the object model of the service subsystem and the configuration of the equipment object model also include configuration of attributes, services and events; then, importing the object model configuration template, generating object model data exchange format files of all the service subsystems and importing the object model data exchange format files into the database; and finally, generating object model structure body codes of all the business subsystems according to the object model configuration template and the object models in the database, providing business service interface calling for adapters of all the business subsystems, and reporting events and attribute definitions.
The adapter management platform can import the device information aiming at the adapter which can not automatically acquire the device information, and the configuration items imported by the device information comprise one or more of device identification, network address, port, manufacturer original identification, manufacturer code, service subsystem code, group code, father device identification, manufacturer, device serial number, device position, connection state, device description and all attribute information under the device; the configuration of the equipment information realizes the communication between each service subsystem adapter and a third-party application platform through the communication between the equipment identifier and the interface gateway module, and realizes the communication between all manufacturer adapters and manufacturer equipment or platforms through the original manufacturer identifiers.
Furthermore, the adapter management platform can also import attribute information aiming at certain service subsystems which are butted by adopting an industrial control protocol, and configuration items imported by the attribute information comprise one or more of service subsystem codes, manufacturer codes, group codes, equipment identifiers, attribute keys, attribute object identifiers, data types, attribute connection character strings and remarks; each adapter can be realized through the configuration of the attribute information and the manufacturer communicates with the manufacturer through the attribute point location identification.
The interface document generation tool generates interface documents for butting each business subsystem with the third-party application platform according to the object model of each business subsystem generated by the object model generation module; the interface document includes one or more of attribute information, service information, and event information.
Further, the database definition table comprises one or more of a service subsystem code definition table, a manufacturer code definition table, a physical model table, a disaster recovery table, an adapter operation table, an adapter definition table, an equipment table, an attribute mapping table and a record table; the service subsystem code definition table, the manufacturer code definition table and the object model table are all used for providing service subsystem, manufacturer and equipment definition information and attribute, service and event definition information for the adapter system; the disaster recovery table is used for caching equipment abnormal information; the adapter running table is used for displaying the running information of the adapter; the adapter definition table is used for displaying the corresponding relation between adapters of different manufacturers and dynamic libraries and interface classes; the equipment table is used for displaying the associated information of all equipment of a manufacturer; the attribute mapping table is used for displaying equipment attribute mapping information of only the information of attribute point positions of some industrial control protocol docking manufacturers; the record list can display that some manufacturers have record information, so that repeated records are prevented, and the record report loss condition is stored.
Further, the object model configuration template comprises attributes, services and events of each business subsystem and equipment; the service calls a service interface of the adapter system for the third-party application platform through the interface gateway module; and the event is the change of the state of the manufacturer equipment reported by the adapter system, and the information of the alarm and the notice is transmitted to the third-party application platform.
Further, the equipment property model comprises one or more of attributes, names of events and services, identification keys, data types, specifications, readable and writable properties, parameter types, belonging keys, belonging names and event types; the structure code in the service and event includes one or more of a name, an identification key, a data type, and a specification.
Further, the adapter management platform also supports restarting the adapter, so that once a certain adapter process is interrupted, the adapter is automatically restarted by configuring an adapter daemon strategy.
In order to achieve the above object, in a second aspect, the present invention provides an operating method of an intelligent gateway adaptation system based on an object model, including the steps of:
configuring a business subsystem object model; the business subsystem object model comprises services, events and attributes of the business subsystem; the service of the service subsystem refers to a service interface of the service subsystem, the events of the service subsystem are all events which comprise service state change notifications of the service subsystem and are reported to a third-party application platform through an interface gateway module, and the attributes of the service subsystem refer to all attribute information of the service subsystem;
configuring an equipment model; the equipment object model comprises services, events and attributes of the equipment; the service of the equipment refers to a business service interface of the equipment, the event of the equipment is all events which comprise equipment alarm, notification and attribute and are reported to a third-party application platform through an interface gateway module, and the attribute of the equipment refers to all attribute information of the equipment;
initializing a database and constructing a database definition table;
importing a physical model configuration template of each business subsystem, generating a data exchange format file of the physical model, importing the data exchange format file into a database, and generating a physical model structure body code of each business subsystem according to the physical model configuration template and the physical model in the database;
each business subsystem adapter generates an independent adapter main body flow code through the object model structure body code;
creating a single adapter, acquiring a dynamic library, and configuring manufacturer information;
manually importing equipment information aiming at a manufacturer adapter which cannot automatically acquire the equipment information; manually importing attribute information aiming at a service subsystem manufacturer butted by an industrial control protocol; then, starting the adapter;
the third-party application platform calls an adapter system service interface through an interface gateway module to realize downlink service processing; the adapter reports the attribute, the event and the notice to realize the processing of the uplink service.
In general, compared with the prior art, the above technical solution contemplated by the present invention can achieve the following beneficial effects:
(1) According to the invention, different adaptation systems of a plurality of existing projects are extracted into an independent adaptation system based on the Internet of things to serve more subsequent project services, so that the development, operation and maintenance efficiency is improved, and the effective cost is saved.
(2) The invention is realized by adopting an adaptation system based on a physical model, and can cross service scenes and cross platforms, thereby supporting the butt joint of various 4G and 5G devices of a plurality of manufacturers and solving the butt joint problem of various manufacturers and various devices caused by a plurality of projects.
(3) In order to solve the definition realization of business interfaces of various business subsystems such as access control, parking, video and the like and reduce code redundancy, the invention adopts an object model configuration template to import into a database and converts the object model configuration template into an object model structure body code, thereby enabling the business interfaces of various business subsystems to be realized more independently and briefly.
(4) The adapter management platform is adopted to uniformly manage the adapters, and multiple adapters can be configured by the same manufacturer aiming at special scenes; under the condition that equipment cannot be automated, equipment information can be manually imported, and attribute import configuration can be realized for a special service subsystem based on an industrial control protocol to solve the docking problem.
(5) In order to rapidly and directly provide a clear docking service interface for a third-party application platform, an interface document generation tool is adopted for realizing, so that the efficiency of docking with the third-party application platform is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a system framework diagram of an intelligent gateway adaptation system based on an object model according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of an adapter base class according to an embodiment of the present invention;
FIG. 3 is a flowchart of an implementation of an adapter management platform according to an embodiment of the present invention;
fig. 4 is a flowchart of attribute reporting in an adapter system according to an embodiment of the present invention;
FIG. 5 is a flowchart of setting attributes in an adapter system according to an embodiment of the present invention;
fig. 6 is a flowchart for implementing an adapter reconnection mechanism according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The terms "comprises" or "comprising," and any variations thereof, in the description of the present application, the claims, or the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In one embodiment, as shown in fig. 1, an intelligent gateway adaptation system based on object models is used to adapt devices of different design standards of different vendors in each business subsystem of an intelligent construction project (a project of the type of intelligent campus, intelligent community, and intelligent building). The intelligent gateway adapting system based on the object model mainly comprises 7 components, namely a database management module, an object model generating module, an adapter management platform, an interface (API) document generating tool, an interface gateway module (Broker module), an adapter system and a public module. The intelligent gateway adaptation system based on the object model adopts a design mode that all modules are mutually independent, excel compiling (attribute, service and event) of an object model of each business subsystem (a system corresponding to each business such as entrance guard, parking and video in an intelligent construction project) is realized, json is generated and stored in a warehouse, and an API document is generated and provided for a third-party interface; the adapter management platform is realized, a manufacturer dynamic library of a plurality of adapters is managed, manufacturer information of each service subsystem is configured, equipment and attribute information are imported, and starting, restarting and guard strategy configuration of the adapters are realized. The method realizes that each manufacturer adapter shares a common service interface, connects a manufacturer platform, initializes equipment, starts a reconnection mechanism and reports attribute and alarm information.
The database management module includes a database tool and a mini-database. The database management module realizes the database initialization task through a database tool, writing in a service subsystem code, a manufacturer code, a physical model, an adapter definition table, an equipment information table and the like; the database management module realizes the object model and equipment data management of different manufacturers of each service subsystem by adopting small databases such as MySql, and the like, constructs database definition tables including a service subsystem coding table, a manufacturer coding table, an object model table, a disaster recovery table, an adapter operation table, an adapter definition table, an equipment table, an attribute mapping table, a recording table and the like, and provides data definition and storage and management of deployment data for the adapter system.
The service subsystem code definition table, the manufacturer code definition table and the object model table are all used for providing service subsystem, manufacturer and equipment definition and attribute, service and event definition information for the adapter system; the disaster recovery table is used for caching equipment abnormal information; the adapter running table is used for displaying adapter running information; the adapter definition table displays the corresponding relation between adapters of different manufacturers and dynamic libraries and interface classes; the equipment table displays the associated information of all equipment of a manufacturer, including IP, port, object model information and the like; the attribute mapping table displays equipment attribute mapping information of only docking attribute point location information of certain industrial control protocol docking manufacturers; the record list shows that some manufacturers have record information, so that record duplication is prevented, and storage is performed for the condition that record reporting is lost.
The object model generation module comprises an object model importing tool, an object model generating json tool and a generator model enumeration code tool. The object model is introduced into the tool: the business subsystem object model excel (object model configuration template) is imported; object model generation json tool: importing an excel document of an object model, generating a json file (data exchange format file), and importing the json file into a database; the generator model enumerates the code tool: and generating object model structure body codes of all the service subsystems, so that all the adapter modules of the adapter system can be conveniently used.
More specifically, the object model generation module firstly performs excel template configuration on the object model of each service subsystem, wherein the excel template configuration comprises configuration of the object model of the service subsystem and configuration of the equipment object model, and the configuration of the service subsystem and the equipment object model also comprises configuration of attributes, services and events; then importing an object model configuration excel to generate an object model json of each service subsystem; and finally, importing the generated object model txt of each service subsystem into an adapter system, providing object model structure body calling service for each service subsystem adapter, and reporting event and attribute definition.
The object model configuration template comprises attributes, services and events of each business subsystem and equipment; the service, namely the third-party application platform calls a service interface of the adapter system through the Broker module, and the event, namely the adapter system reports information such as the state change, the alarm, the notice and the like of the manufacturer equipment to the third-party application platform. The equipment object model comprises attributes, names of events and services, an identification Key (identification Key), a data type, specification, whether the equipment object model is readable and writable, a parameter type (0-in and 1-out), an affiliated Key (service and event-specific), an affiliated Name (service and event-specific) and an event type; in addition, the structure in the service and event includes a name, an identification key, a data type and a specification.
The adapter management platform: the addition, deletion and modification of the adapter are supported, and the operation and maintenance of the adapter are realized; the method supports equipment configuration import and attribute configuration import of an industrial control protocol, thereby providing early preparation work and monitoring functions for the operation of each adapter in the adapter system; and loading a console program and downloading the manufacturer environment.
Because the manufacturer connection information may change, the modification adapter can modify the connection character string docked with the manufacturer; continuously updating and importing configuration aiming at equipment information of a field project, wherein the equipment information is not only obtained according to a manufacturer platform (sometimes, missed equipment is provided, and some manufacturer equipment without the manufacturer platform is provided); aiming at the condition that some manufacturers are docked by using a supervisory control protocol and only attribute point IDs and attribute values are provided, the docking problem of the adapter and the manufacturer equipment is solved by adopting the import of attribute configuration information.
The adapter management platform can realize equipment information import aiming at the adapter which can not automatically acquire equipment information, and equipment information import configuration items comprise equipment identification, network addresses, ports, manufacturer original IDs, manufacturer codes, service subsystem codes, grouping codes, parent equipment identification, manufacturers, equipment serial numbers, equipment positions, connection states, equipment description and attributes. The configuration of the device information can realize the communication between each service subsystem adapter and the corresponding manufacturer device, and the communication is carried out through the device identifier and the Broker module.
The adapter management platform imports attribute configuration information aiming at certain service subsystems which are butted by adopting an industrial control protocol, wherein the contents of an attribute configuration template comprise service subsystem codes, manufacturer codes, group codes, equipment identifiers, attribute keys, attribute object IDs (attribute object identifiers), data types, attribute connection character strings and remarks. Through the attribute configuration information, communication between each adapter and each manufacturer through an attribute point location ID (attribute point location identification) can be realized.
Preferably, the adapter management platform also supports restarting adapters by configuring adapter daemon policies such that an adapter process will automatically restart the adapter once it is interrupted.
API (interface) document generation tool: and generating interface documents for the butt joint of each service subsystem of the adapter system and the third-party application platform, so that the development and the use of the third-party application are facilitated.
The API document generation tool generates an API document which is in butt joint with the third-party application platform according to the object model derived by the object model generation module; the API document content includes attribute information, service information, and event information. The attribute information includes key (key or key value), attribute name, readable (r)/writable (w), data type and description; the service information comprises an interface prototype, a request parameter, a return parameter and related structure information; the event information comprises an interface prototype, reported parameters and related structure information.
An adapter system: the method comprises the steps of realizing the general function and the special service function of each service subsystem, designing a corresponding object model, abstracting equipment of different manufacturers into attributes, services and events, and configuring equipment identification mapping relation templates of an adapter end and a system end. The same interfaces of different manufacturers are realized, the addition, deletion and modification of the interfaces of the equipment are realized, and the later expansion is facilitated; and the log function is realized, and batch modification of the adapter is supported.
The adapter system is used for designing corresponding adapter service property model structure codes according to the property models of the service subsystems generated by the property model generating module, abstracting the subsystem services and the equipment services of different manufacturers of the same service subsystem into attributes, services and events, and simultaneously configuring equipment identification mapping relation templates of the adapter end and the third-party application platform system end, so that the same service interface and the independent service interface of different manufacturers are realized, and the equipment interfaces are increased, deleted and modified.
The API gateway module (browser module) adopts browser open-source software realized based on open-source MQTT protocol, and is used for providing subscription and publication of instruction data and device data for an uplink service center (third-party application platform) and a downlink adapter system.
The common module is used for assisting other modules and providing common interfaces and method calls for other modules.
FIG. 2 is a flow chart of an adapter system framework implementation of an embodiment of the present invention. The flow of adapter initialization is described in terms of the following flow steps.
Step S100, decomposing a connection character string, initializing an SDK and the like;
step S101, logging in a manufacturer platform, initializing equipment, and reporting an off-line or on-line recovery alarm of the equipment;
step S102, in the execution process of the initialization equipment, if the equipment can be automatically initialized, newly-added equipment is required to be put in a warehouse, the existing equipment in the database is updated, the redundant equipment is deleted, and finally, the equipment table in the database is inquired to serve as a cache;
step S103, if the equipment can not be automatically initialized, inquiring an equipment table of a database as a cache;
step S104, after the step S101 is completed successfully, reporting an online alarm and an operation log of a manufacturer platform;
step S105, reporting the off-line alarm and the operation log of the manufacturer platform after the failure is completed in the step S101;
step S106, if the manufacturer platform is not connected in the step S101 but the equipment is directly connected, the equipment offline alarm needs to be reported when the equipment is offline, and the clearing alarm is reported when the equipment is changed from online to offline, even if the equipment is recovered to be online;
step S101 is repeatedly invoked in the disconnected state.
Fig. 3 is a flowchart of an implementation of the adapter management platform according to the embodiment of the present invention, where the flowchart specifically includes the following steps:
step S201, adding adapters, including adapter names, service subsystems, manufacturers, main programs, grouping codes and the like;
step S202, adding a manufacturer SDK package which needs to be downloaded by a certain manufacturer for the first time, wherein the manufacturer SDK package is not needed or is not needed to be downloaded by adding for the second time;
step S203, configuring manufacturer information including IP, port number, user name and password, and storing;
step S204, if the adapter supports the automatic acquisition equipment, automatically acquiring manufacturer equipment information through a program and warehousing the information;
step S205, otherwise, acquiring a device import template, importing all device data and putting the device data in storage;
step S206, step S204 and step S205 are followed by starting the adapter;
step S207, if some service subsystems support industrial control protocols, attribute configuration needs to be introduced;
step S208, if some service subsystems do not need to import attribute configuration, ignoring the attribute configuration;
step S209, starting the adapter;
step S210, deleting some adapters which are not needed;
step S211, if necessary, a daemon policy may be configured, and boot self-starting is selected, or the adapter is daemon (once some adapter process is hung, the adapter is automatically restarted).
The device information importing module in step S205 exemplifies: the energy consumption statistical service subsystem is configured as shown in the following table:
Figure BDA0003703141460000101
Figure BDA0003703141460000111
the configuration example of the import attribute in step S207: the energy consumption statistical service subsystem based on the modbus protocol is configured as shown in the following table:
Figure BDA0003703141460000112
fig. 4 is a flowchart of attribute reporting in the adapter system according to the embodiment of the present invention, where the flowchart specifically includes the following steps:
step S301, initializing a start time Timer (base class Timer);
step S302, judging that 5 minutes of polling reporting is not needed; (report, i.e.: report attribute)
Step S303, if the polling report is not needed for 5 minutes, the polling time is set to be 0, and unnecessary polling is stopped;
step S304, if 5 minutes of polling reporting is needed, reporting service attributes such as temperature, humidity, brightness and the like;
step S305, reporting status attributes, such as connection status, etc. (report alarm)
Fig. 5 is a flowchart of setting an attribute in the adapter system according to the embodiment of the present invention, where the flowchart specifically includes the following steps:
step S401, calling a set property function (SetProperties);
step S402, judge whether DeviceId (equipment identification) is valid, if invalid, throw (abandon invalid abnormal information);
step S403, if the attribute key is valid, whether the imported attribute propertyKey (attribute key) is valid or not is judged, and the imported attribute propertyKey (attribute key) can be written;
step S404, if the property propertyKey is invalid, throw (abandon the invalid property key);
step S405, if valid, changes the attribute.
Fig. 6 is a flowchart of an adapter reconnection mechanism according to an embodiment of the present invention, where the flowchart specifically includes the following steps:
step S501, initializing a starting time timer;
step S502, whether the equipment is online or not is judged, and if the equipment is directly connected with manufacturer equipment and the equipment is reconnected successfully, the True is returned;
step S503, if the vendor platform is successfully connected, the platform is online without any operation;
step S504, if the connection with the manufacturer platform fails, the platform is disconnected, and a reconnection mechanism is started;
in step S505, a function of a connection vendor (ConnectVendor) is called.
An operation method of an intelligent gateway adaptation system based on an object model mainly comprises the following steps:
step S1: configuring a business subsystem physical model comprising services, events and attributes; the service refers to a service interface of the service subsystem, the event comprises all events reported to a third-party application platform by an interface gateway module, such as service subsystem service state change notification, and the attribute refers to all attributes of the service subsystem;
step S2: configuring a device model, including services, events and attributes; the service refers to a business service interface of the equipment, the event comprises all events reported to a third-party platform by an interface gateway module, such as equipment alarm, notification and attribute, and the attribute refers to all attributes of the equipment;
and step S3: the database management module initializes a database, constructs a database definition table, manages equipment data and dynamic data of a plurality of service subsystems and persists a part of data;
and step S4: importing an object model configuration template of each business subsystem through an object model generation module, generating a data exchange format file of an object model, importing the file into a database, and generating an object model structure body code of each business subsystem according to the object model configuration template and the object model in the database;
step S5: object model structure body for adapter passing of each service subsystem the code quickly generates an independent adapter main body flow code;
s6, creating a single adapter, acquiring a dynamic library aiming at some SDK manufacturers and configuring manufacturer information;
step S7: aiming at a manufacturer adapter which can not automatically acquire equipment information, equipment information needs to be manually imported; in addition, for a service subsystem manufacturer in industrial control protocol docking, attribute information needs to be manually imported;
step S8: starting the adapter;
step S9: the third-party application platform calls an adapter system service interface through an interface gateway module to realize downlink service processing; the adapter reports information such as attributes, events, notifications and the like to realize the processing of uplink services;
step S10: in step S9, the adapters all call the public open interface, and in addition, each service subsystem also has a special service interface, and the adapters implement their own special service processing.
It should be noted that each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, or a part or all of the technical solution that substantially contributes to the prior art.
The flowchart or block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods or computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. It will also be noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, may be implemented by special purpose hardware-based systems which perform the specified functions or acts, or by combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit and teachings of the disclosure, and all such combinations and/or combinations are intended to fall within the scope of the disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. An intelligent gateway adaptation system based on object models for adapting devices of different design standards of different manufacturers in respective business subsystems of an intelligent construction project, comprising: the system comprises a database management module, an object model generation module and an adapter system;
the object model generating module is used for importing object model configuration templates of all the service subsystems, generating data exchange format files and importing the data exchange format files into a database to generate object models of all the service subsystems;
the database management module is used for storing and managing the physical model and the equipment data of each service subsystem, constructing a database definition table, and providing data definition and storage and management of deployment data for the adapter system;
the adapter system is used for designing a physical model structure body code of the service subsystem of the corresponding adapter according to the physical model of each service subsystem generated by the physical model generating module, abstracting equipment of different manufacturers of the same service subsystem into attributes, services and events, and simultaneously configuring equipment identification mapping relation templates of the adapter end and the third-party application platform system end to realize the adaptation of equipment of different standards of different manufacturers.
2. The intelligent gateway adaptation system of claim 1, wherein the object model generation module is configured to perform template configuration on the object model of each service subsystem, including configuration of the object model of the service subsystem and configuration of the object model of the device, and further including configuration of attributes, services and events in configuration of the object model of the service subsystem and configuration of the object model of the device;
the system is used for importing the object model configuration template, generating object model data exchange format files of all the service subsystems and importing the object model data exchange format files into the database;
and the system is also used for generating object model structure codes of all the service subsystems according to the object model configuration template and the object models in the database, providing service interface calling for adapters of all the service subsystems, and reporting events and attribute definitions.
3. The intelligent gateway adapting system according to claim 1, further comprising an adapter management platform, wherein the adapter management platform can import device information for adapters that cannot automatically obtain device information, and configuration items of device information import include one or more of device identifier, network address, port, vendor original identifier, vendor code, service subsystem code, group code, parent device identifier, vendor, device serial number, device location, connection status, device description, and all attribute information under the device; the configuration of the equipment information realizes the communication between each service subsystem adapter and a third-party application platform through the communication between the equipment identifier and the interface gateway module, and realizes the communication between all manufacturer adapters and manufacturer equipment or platforms through the original manufacturer identifiers.
4. The intelligent gateway adapting system according to claim 3, wherein the adapter management platform further performs attribute information import for some service subsystems interfaced by using industrial control protocol, and configuration items of attribute information import include one or more of service subsystem code, vendor code, group code, device identifier, attribute key, attribute object identifier, data type, attribute connection string and remark; and the communication between each adapter and each manufacturer through the attribute point location identification can be realized through the configuration of the attribute information.
5. The intelligent gateway adaptation system of claim 1, further comprising an interface document generation tool, wherein the interface document generation tool generates an interface document for each business subsystem to interface with the third-party application platform according to the object model of each business subsystem generated by the object model generation module; the interface document includes one or more of attribute information, service information, and event information.
6. The intelligent gateway adaptation system of claim 1, wherein the database definition table comprises one or more of a service subsystem code definition table, a vendor code definition table, a physical model table, a disaster recovery table, an adapter operation table, an adapter definition table, a device table, an attribute mapping table, and a record table; the business subsystem code definition table, the manufacturer code definition table and the object model table are used for providing business subsystem, manufacturer and equipment definition information and attribute, service and event definition information for the adapter system; the disaster recovery table is used for caching equipment abnormal information; the adapter running table is used for displaying the running information of the adapter; the adapter definition table is used for displaying the corresponding relation between adapters of different manufacturers and dynamic libraries and interface classes; the equipment table is used for displaying the associated information of all equipment of a manufacturer; the attribute mapping table is used for displaying equipment attribute mapping information of only the information of attribute point positions of some industrial control protocol docking manufacturers; the record list can display that some manufacturers have record information, so that repeated records are prevented, and the record report loss condition is stored.
7. The intelligent gateway adaptation system according to claim 2, wherein the object model configuration templates include attributes, services and events for each business subsystem and equipment; the service calls a service interface of the adapter system for the third-party application platform through the interface gateway module; and the event is the change of the state of the manufacturer equipment reported by the adapter system, and the information of the alarm and the notice is transmitted to the third-party application platform.
8. The intelligent gateway adaptation system according to claim 2, wherein the equipment model includes one or more of attributes, names of events and services, identification keys, data types, specifications, whether readable and writable, parameter types, attributed keys, attributed names, and event types; the structure code in the service and event includes one or more of a name, an identification key, a data type, and a specification.
9. The intelligent gateway adapter system of claim 4 wherein the adapter management platform further supports restarting adapters by configuring adapter daemon such that an adapter process will automatically restart the adapter once it is interrupted.
10. An operation method of an intelligent gateway adaptation system based on an object model is characterized by comprising the following steps:
configuring a business subsystem object model; the business subsystem object model comprises services, events and attributes of the business subsystem; the service of the service subsystem refers to a service interface of the service subsystem, the event of the service subsystem is all events which comprise service state change notification of the service subsystem and are reported to a third-party application platform through an interface gateway module, and the attribute of the service subsystem refers to all attribute information of the service subsystem;
configuring an equipment object model; the equipment object model comprises services, events and attributes of the equipment; the service of the equipment refers to a service interface of the equipment, the event of the equipment is all events which comprise equipment alarm, notification and attribute and are reported to a third-party application platform through an interface gateway module, and the attribute of the equipment refers to all attribute information of the equipment;
initializing a database and constructing a database definition table;
importing a physical model configuration template of each business subsystem, generating a data exchange format file of the physical model, importing the data exchange format file into a database, and generating a physical model structure body code of each business subsystem according to the physical model configuration template and the physical model in the database;
each business subsystem adapter generates an independent adapter main body flow code through the object model structure body code;
creating a single adapter, acquiring a dynamic library, and configuring manufacturer information;
manually importing equipment information aiming at a manufacturer adapter which cannot automatically acquire the equipment information; manually importing attribute information aiming at a service subsystem manufacturer butted by an industrial control protocol; then, starting the adapter;
the third-party application platform calls an adapter system service interface through an interface gateway module to realize downlink service processing; the adapter reports the attribute, the event and the notice to realize the processing of the uplink service.
CN202210697250.XA 2022-06-20 2022-06-20 Intelligent gateway adaptation system based on object model and operation method thereof Pending CN115150226A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210697250.XA CN115150226A (en) 2022-06-20 2022-06-20 Intelligent gateway adaptation system based on object model and operation method thereof
PCT/CN2022/134878 WO2023245985A1 (en) 2022-06-20 2022-11-29 Smart-gateway adaptation system based on thing model, and operation method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210697250.XA CN115150226A (en) 2022-06-20 2022-06-20 Intelligent gateway adaptation system based on object model and operation method thereof

Publications (1)

Publication Number Publication Date
CN115150226A true CN115150226A (en) 2022-10-04

Family

ID=83407765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210697250.XA Pending CN115150226A (en) 2022-06-20 2022-06-20 Intelligent gateway adaptation system based on object model and operation method thereof

Country Status (2)

Country Link
CN (1) CN115150226A (en)
WO (1) WO2023245985A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361282A (en) * 2022-10-18 2022-11-18 武汉慧联无限科技有限公司 Model configuration method and device, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117596157B (en) * 2024-01-18 2024-05-14 厦门立林科技有限公司 Dynamic construction method, apparatus and storage medium for object model

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458033A (en) * 2013-09-04 2013-12-18 北京邮电大学 System for providing services of event-driven service-oriented internet of things and working method thereof
CN108989293A (en) * 2018-06-27 2018-12-11 武汉虹信技术服务有限责任公司 A kind of intelligent building management platform adaption system and adaptation method
US20200092126A1 (en) * 2018-09-17 2020-03-19 Siemens Schweiz Ag Building automation system providing for integration of subsystems
CN112202874A (en) * 2020-09-28 2021-01-08 武汉虹信技术服务有限责任公司 Extensible Internet of things bottom equipment adapter and construction method
CN112714193A (en) * 2021-03-26 2021-04-27 深圳佳兆业科技集团有限公司 Community data processing system, method, device and equipment based on Internet of things platform
CN113132192A (en) * 2021-03-02 2021-07-16 西安电子科技大学 Massive Internet of things equipment access and management method
CN113805867A (en) * 2021-08-24 2021-12-17 中通服咨询设计研究院有限公司 Internet of things platform based on visual static script engine
CN113868868A (en) * 2021-09-29 2021-12-31 广州赛意信息科技股份有限公司 Equipment data interaction method, system and platform based on object model structure

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11294641B2 (en) * 2017-05-30 2022-04-05 Dimitris Lyras Microprocessor including a model of an enterprise

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458033A (en) * 2013-09-04 2013-12-18 北京邮电大学 System for providing services of event-driven service-oriented internet of things and working method thereof
CN108989293A (en) * 2018-06-27 2018-12-11 武汉虹信技术服务有限责任公司 A kind of intelligent building management platform adaption system and adaptation method
US20200092126A1 (en) * 2018-09-17 2020-03-19 Siemens Schweiz Ag Building automation system providing for integration of subsystems
CN112202874A (en) * 2020-09-28 2021-01-08 武汉虹信技术服务有限责任公司 Extensible Internet of things bottom equipment adapter and construction method
CN113132192A (en) * 2021-03-02 2021-07-16 西安电子科技大学 Massive Internet of things equipment access and management method
CN112714193A (en) * 2021-03-26 2021-04-27 深圳佳兆业科技集团有限公司 Community data processing system, method, device and equipment based on Internet of things platform
CN113805867A (en) * 2021-08-24 2021-12-17 中通服咨询设计研究院有限公司 Internet of things platform based on visual static script engine
CN113868868A (en) * 2021-09-29 2021-12-31 广州赛意信息科技股份有限公司 Equipment data interaction method, system and platform based on object model structure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
荣浩;江凌云;: "物联网开放服务平台", 电信科学, no. 02, pages 120 - 125 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361282A (en) * 2022-10-18 2022-11-18 武汉慧联无限科技有限公司 Model configuration method and device, electronic equipment and storage medium
CN115361282B (en) * 2022-10-18 2022-12-23 武汉慧联无限科技有限公司 Model configuration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2023245985A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
US7849171B2 (en) Method and apparatus for monitoring remote devices by creating device objects for the monitored devices
JP4210155B2 (en) Monitoring system, method and computer program for remotely monitoring devices
US7587483B1 (en) System and method for managing computer networks
CN115150226A (en) Intelligent gateway adaptation system based on object model and operation method thereof
US7451175B2 (en) System and method for managing computer networks
JP2003099410A (en) Multiple device management method and system
EP1367768A2 (en) Method and apparatus for providing multiple vendor support to remotely monitored devices
EP1351527A1 (en) Unique repository server in an operations and maintenance center for a telecommunications system
US7519729B2 (en) Method and apparatus for monitoring remote devices through a local monitoring station and communicating with a central station supporting multiple manufacturers
CN101202670B (en) Method and system for processing network management topology
KR100489849B1 (en) Resource management system and resource management method
CN114510464A (en) Management method and management system of high-availability database
WO1999034557A1 (en) Method and system for software version management in a network management system
CN113746676B (en) Network card management method, device, equipment, medium and product based on container cluster
JPH08147257A (en) Automatic generating system for equipment connection definition in data independence type computer system
US9077612B2 (en) Method for managing configuration information of an outsourced part, and method and system for managing an alarm of an outsourced part
CN111124428A (en) Application automatic publishing method based on middleware creating and related device
CN115905271B (en) Virus library updating method and device and multi-engine detection system
JPH06274325A (en) Software revision management system and software revision system using network
JP2000285051A (en) Server for remote maintenance system
CN114327654A (en) USB device management method and system based on cloud platform
CN117234550A (en) Unified updating method and system of virtual machine system
CN115793972A (en) Storage device management method, device, equipment and machine-readable storage medium
JPH09237211A (en) File version number management system
CN116760913A (en) Method and system for issuing k8s cluster protocol conversion platform configuration

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