CN115529312A - Information release OpenAPI conversion system and method for multi-terminal heterogeneous system - Google Patents

Information release OpenAPI conversion system and method for multi-terminal heterogeneous system Download PDF

Info

Publication number
CN115529312A
CN115529312A CN202211131370.XA CN202211131370A CN115529312A CN 115529312 A CN115529312 A CN 115529312A CN 202211131370 A CN202211131370 A CN 202211131370A CN 115529312 A CN115529312 A CN 115529312A
Authority
CN
China
Prior art keywords
information
terminal
unit
module
openapi
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
CN202211131370.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 CN202211131370.XA priority Critical patent/CN115529312A/en
Publication of CN115529312A publication Critical patent/CN115529312A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/10Protocols in which an application is distributed across nodes in the network
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an information release OpenAPI conversion system and method for a multi-terminal heterogeneous system, which comprises the following steps: the OpenAPI service unit is interacted with the upper application platform; the resource management unit is used for managing the release information of the system; the adaptation unit is used for managing multiple terminals in the multi-terminal heterogeneous system; the information issuing unit and the adaptation unit interact with an upper application platform through an OpenAPI service unit; the information issuing unit interacts with the resource management unit and interacts with the adaptation unit to realize issuing of multi-terminal information; the system and the method can obviously reduce the adaptation difficulty, improve the adaptation efficiency and obviously reduce the development cost of an upper application platform.

Description

Information release OpenAPI conversion system and method for multi-terminal heterogeneous system
Technical Field
The invention belongs to the technical field of intelligent community management, and particularly relates to an information publishing OpenAPI conversion system and method for a multi-terminal heterogeneous system.
Background
The intelligent community is a means of comprehensively utilizing new-generation information technologies such as the Internet of things, cloud computing, big data, artificial intelligence, an information intelligent terminal and a 5G network; administrative management, property service, community home furnishing and the like are used as contents; related software and hardware system applications are integrated by means of the intelligent community comprehensive management platform, and community single-point intelligent resources are upgraded to form an integrally intelligent novel community form.
The intelligent community comprehensive management platform performs automatic control and integrated management on all weak electronic systems and Internet of things equipment in a community, wherein a multimedia information publishing system is one of modes for showing culture and image of the intelligent community and is widely applied to the community, information publishing screens such as a community gate, an intersection, an elevator room, a property center, a public activity center and an intelligent lamp pole are visible everywhere, and due to the fact that installation positions and publishing requirements are different, terminal types, publishing system architectures and manufacturer management are certainly differentiated and diversified to coexist, and the difficulty of integration of the intelligent community comprehensive management platform is increased.
For the intelligent community comprehensive management platform, due to the fact that the information issuing system is various in terminal type, different in system structure, complex in configuration management, multiple in equipment type, complex in information and more complex in corresponding management, the information issuing system adaptive to the complex information management is long in development period and large in workload, development efficiency of an application layer is greatly reduced, and development cost is increased. Meanwhile, due to the close coupling of the intelligent community comprehensive management platform and each information release system, the expansion of the terminal equipment and the information release system under the intelligent community comprehensive management platform is more difficult.
Disclosure of Invention
Therefore, aiming at least one of the above defects or improvement requirements of the prior art, the invention provides an information release OpenAPI conversion system and method for a multi-terminal heterogeneous system, and aims to reduce the adaptation difficulty of the multi-terminal heterogeneous information release system and improve the adaptation efficiency, provide a uniform data interaction mode for an upper application platform in an OpenAPI form, decouple the upper application platform and each information release system, reduce the development cost of the upper application platform, and facilitate the expansion of a terminal device and the information release system.
The invention discloses an information issuing OpenAPI conversion system for a multi-terminal heterogeneous system, which is characterized by comprising the following steps:
the OpenAPI service unit is interacted with the upper application platform;
the resource management unit is used for managing the release information of the system;
an adaptation unit, configured to manage multiple terminals in the multi-terminal heterogeneous system;
the information release unit and the adaptation unit interact with the upper application platform through the OpenAPI service unit;
the information issuing unit interacts with the resource management unit and interacts with the adaptation unit to realize the issuing of the multi-terminal information;
and the configuration management unit is interacted with the adaptation unit, manages the information of the multiple terminals to generate a configuration file, analyzes the configuration file and realizes the management of merging the interface library of the multiple terminals into the adaptation unit.
Further, the system further includes a security and credit management unit interacting with the OpenAPI service unit and the adaptation unit, and configured to manage operation information of information distribution of the multiple terminals.
Further, the information issuing unit comprises an information sending module and an information sending feedback module;
the information publishing module is used for managing the publishing of the published information and judging the terminal online state corresponding to the information to be published and the available state of the published information;
the information sending feedback module is used for managing the issuing progress of the issuing information.
Furthermore, the adapter unit comprises an adapter management module and an interface library module interacting with the adapter management module;
the interface library module is used for managing data interaction service with the multiple terminals.
Furthermore, the resource management unit comprises a material management module, a program management module and a storage module which is interacted with the material management module and the program management module;
the material management module is used for managing the content information of the release information;
the program management module is used for managing the display information of the release information.
The invention also discloses a conversion method of the information release OpenAPI conversion system facing the multi-terminal heterogeneous system, which is characterized by comprising the following steps:
connection of multi-terminal information:
the adaptation unit operates and analyzes and acquires the connected multi-terminal information, establishes communication connection,
the multi-terminal information is sent to an upper application platform through an OpenAPI service unit,
updating the multi-terminal information within a set time, and if the multi-terminal information is updated, sending the updated multi-terminal information to an upper application platform through the OpenAPI service unit;
information release:
the upper application platform updates the multi-terminal information;
and executing the interactive updating of the resource management unit and the information publishing unit, and managing the resource management unit and the information publishing unit to execute the publishing of the publishing information according to the updated information.
Further, the method for updating the multi-terminal information comprises the following steps:
the equipment context management module caches the multi-terminal information; and comparing the running state and the real-time attribute value of the new terminal equipment with the data in the cache, and updating the cache value if the running state and the real-time attribute value of the new terminal equipment are changed.
Further, the execution of the release information further comprises the following steps:
the information issuing unit verifies whether the issued information is available,
and sending a corresponding instruction to the device context management module, judging whether the corresponding terminal is on-line, if so, executing, and if not, sending the instruction to the adaptation unit to update the interface library of the multiple terminals.
Further, the OpenAPI service unit includes an API interface management module.
Further, the API interface management module and the upper application platform communicate based on an MQTT protocol and a JSON data format.
In general, compared with the prior art, the above technical solution of the present invention can achieve the following beneficial effects:
(1) The invention provides an information release application system for a smart community management platform, which solves the problem of information release management under the application of a multi-heterogeneous system, introduces the interface management of OpenAPI, generates corresponding configuration files of manufacturer information, equipment information, attribute information and an interface library of the heterogeneous release system or equipment by arranging a configuration module in the information release system management, configures an analysis module, loads and analyzes the configuration files, instantiates the configuration information obtained by analysis into an object structure variable, and can reduce the adaptation difficulty of the multi-terminal heterogeneous information release system and improve the adaptation efficiency;
(2) Aiming at an information release application system of an intelligent community management platform, an API (application programming interface) interface management module is utilized to manage resources such as programs and channels of the information release system, in this way, a uniform data interaction mode is provided for an upper application system in an OpenAPI form, the upper application platform and each information release system are decoupled, and the development cost of the upper application platform is reduced;
(3) The invention further sets a management form of an interface library module for adapting manufacturer interfaces, each manufacturer corresponds to an independent interface library, the interface library is used for providing data interaction service with a bottom manufacturer platform or equipment, and at least comprises establishing connection with the corresponding manufacturer equipment or platform, regularly checking the connection state and reconnecting with the manufacturer equipment or platform, the interface library module is also used for acquiring the state and attribute value of the equipment and modifying the attribute value of the equipment, and in addition, the interface library module is also used for converting a program to be released into a program form matched with the manufacturer to be released to the manufacturer equipment, so that the information release system and the terminal equipment thereof are easier to expand.
Drawings
Fig. 1 is a schematic diagram of a module composition structure of an information publishing OpenAPI conversion system for a multi-terminal heterogeneous system according to an implementation of the present invention;
fig. 2 is a schematic diagram of a specific implementation of an information publishing OpenAPI conversion system for a multi-terminal heterogeneous system according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a connection vendor apparatus and an apparatus context management method according to an embodiment of the present invention.
Fig. 4 is a schematic flowchart of interface invocation in the 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.
To achieve the above object, according to an aspect of the present invention, as shown in fig. 1 to 2, an information publishing OpenAPI conversion system for a multi-terminal heterogeneous system is provided, which includes an OpenAPI service unit, a resource management unit, an information publishing unit, an adaptation unit, a configuration management unit, and a security and credit management unit. The OpenAPI service unit comprises an API interface management module;
the API management module is used for acquiring a subscription theme of the upper application platform and feeding back a terminal equipment state related to the subscription theme of the upper application platform to the upper application platform;
and is used for receiving the device control command, the resource management command and the information issuing command of the upper application platform,
the received downlink command is sent to a corresponding management unit at the bottom layer, namely an information publishing unit, an adaptation unit, a resource management unit and an API (application program interface) management module based on a subscription publishing mode, wherein in the preferred embodiment, the API management module is communicated with an upper application platform based on an MQTT (message queuing transport) protocol and a JSON (java server open) data format;
the resource management unit comprises a material management module, a program management module and a storage module;
the material management module is used for managing basic information of the material, acquiring a material file uploaded by a user from a network and storing the material file in a destination directory, and on the other hand, modifying and deleting the information of the material and acquiring detailed information of a material list;
the program management module is used for managing basic information of programs, managing the association relationship between the programs and the materials, wherein each program can associate a plurality of materials, and each material corresponds to a program material association relationship;
preferably, the resource management unit further includes a channel management module, where the channel management module is configured to manage basic information of channels, and in addition, the channel management module is further configured to manage an association relationship between channels and programs, where each channel may be associated with a plurality of programs, and each program corresponds to a channel program association relationship, and on the other hand, the channel management module is further configured to add, modify, delete, and acquire a channel information list and a channel program association information list to the channel information and the association information of the channel programs;
the storage module comprises a data storage function and is also used for real-time data access operation, the storage content at least comprises a terminal list, a material list, a program list and an association relation between the material and the program, preferably, the storage content of the storage module further comprises a channel list and an association relation between the channel and the program, and in the preferred embodiment, the data storage function of the storage module is realized on the basis of a database.
The information issuing unit comprises an information sending module and an information sending feedback module;
the information publishing module is used for managing program publishing, judging whether materials contained in the program to be published are available and whether the equipment to be published is online, preferably, the information publishing module is also used for channel publishing, judging whether the program and the materials contained in the channel to be published are available and judging whether the equipment to be published is online;
the information publishing feedback module is used for acquiring the publishing progress of the published channel or program and feeding back the publishing progress to the application layer system through the API interface management module;
preferably, the information issuing unit further comprises a schedule management module, which is used for interacting with the information issuing module, and the schedule management module is used for pushing program playing information to the adaptation management module according to the preset playing mode and playing time of each program in the channel;
the adaptation unit comprises an adaptation management module and an interface library module;
the adaptive management module is used for managing the interface libraries of all manufacturers, loading the interface libraries according to the effective states of the interface libraries configured in the configuration module, and also used for operating and managing the interface library module, including starting and closing the manufacturer docking libraries, providing error recovery to the docking library module and restarting the docking library;
the interface library module is used for adapting manufacturer interfaces, each manufacturer corresponds to an independent interface library, the interface library is used for providing data interaction service with a bottom manufacturer platform or equipment, and at least comprises the steps of establishing connection with the corresponding manufacturer equipment or platform, regularly checking the connection state and reconnecting with the manufacturer equipment or platform, the interface library module is also used for acquiring the state and attribute value of the equipment and modifying the attribute value of the equipment, and in addition, the interface library module is also used for converting a program to be issued into a program form matched with the manufacturer and issuing the program form to the manufacturer equipment;
the configuration management unit comprises a configuration module and a configuration analysis module; interacting with the information sending module and the equipment context management module;
the configuration module is used for abstracting a related object model according to manufacturer information, equipment information, attribute information and the like of equipment in the heterogeneous issuing system and generating a corresponding configuration file, wherein the object model of the equipment comprises attributes, services and events;
the configuration analysis module is used for loading and analyzing the configuration file, instantiating the configuration information obtained by analysis into an object structure variable, namely, in the management of an upper application system, the newly-added management terminal equipment can be smoothly accessed into an interface library managed by the adaptation management module;
the security and credit management unit comprises a device context management unit and a message retransmission module;
the device context management module is used for maintaining the running state and the attribute value of the terminal device, and reporting the changed device state and the attribute value to a subscribed application layer management system through the API (application program interface) interface management module when the terminal device state and the attribute value are changed;
the message retransmission module is used for storing the failed message sent from the API management module to the application layer management system and pushing the message again when the application layer management system is on-line again, preferably, the message retransmission module can set the expiration time and delete the stored message after the expiration time;
to achieve the object, according to another aspect of the present invention, there is provided an information publishing OpenAPI conversion method for a multi-terminal heterogeneous system, as shown in fig. 3 to 4, including the following steps:
s1, loading configuration file analysis configuration information, initializing a corresponding manufacturer interface library, and establishing communication connection with manufacturer equipment or a platform;
s2, acquiring initial running states and initial values of attributes of all terminal equipment according to the configured terminal equipment information, feeding the initial running states and the initial values back to the equipment context management module for caching, and sending the initial running states and the initial values to a subscribed third-party application layer management system through an API (application program interface) module;
s3, starting a manufacturer connection state detection timer and a timer for time-sharing acquisition of the state and attribute value of the terminal equipment;
s4, waiting for a timer task;
s5, acquiring running states and real-time attribute values of all terminal equipment in the timer, and feeding the running states and the real-time attribute values back to the equipment context management module;
s6, the device context management module compares the running state and the real-time attribute value of the new terminal device with the data in the cache, if the running state and the real-time attribute value of the new terminal device are changed, the cache value is updated, and the updated cache value is sent to a subscribed third-party application layer management system through the API module;
s7, detecting the connection state of each manufacturer in the timer, and if the connection state is off-line, re-establishing connection with a manufacturer platform or equipment;
on the other hand, the OpenAPI conversion method further includes a method for managing resources, editing programs, publishing programs, and modifying device attribute values by the application layer management system, and specifically includes the following steps:
s1: subscribing to the supported services;
s2: receiving subscribed message push;
s3: executing the command issued by the application layer management system;
s4: if the command issued by the application layer management system is resource management and program editing, executing step S7;
s5: if the command issued by the application layer management system is to modify the device attribute, executing step S8;
s6: if the instruction issued by the application layer management system is program issue, executing step S9;
s7: the resource management module executes the instruction and performs corresponding operation on the resource and the program;
s8: the device context management module acquires a corresponding device attribute real-time value, and if the device attribute real-time value is inconsistent with the instruction value, the device context management module issues the device attribute real-time value to a corresponding interface library for execution according to manufacturer and device information in the instruction;
s9: the information issuing module detects whether the channels, programs and materials are available according to the stored channel information, program information and material information, manages and detects whether the equipment is online according to the equipment context, and issues the information to a corresponding interface library for execution according to the manufacturer and equipment information in the instruction if the information is available.
Specifically, the configuration module is configured to generate a configuration file corresponding to vendor information, device information, attribute information, and an interface library of the heterogeneous distribution system or the device. The manufacturer configuration information comprises a unique code of a manufacturer, a manufacturer name and a manufacturer description; the configuration information of the interface library comprises a matched unique manufacturer code, a dll name of the interface library, a class name of the interface library and the connection information of a manufacturer platform or equipment; the attribute information comprises an attribute unique code, an attribute name, a unique code of the equipment, a code of the attribute in a manufacturer, a data type of the attribute and a read-write mode of the attribute; the equipment configuration information comprises an equipment unique code, an equipment name, a code of the equipment in an original manufacturer and an object model of the equipment; the object model of the equipment comprises attributes, services and events; the configuration analysis module is used for loading and analyzing the configuration file and instantiating the configuration information obtained by analysis into the object structure variable;
the OpenAPI service unit comprises an API interface management module; the API interface management module is communicated with an upper application platform based on an MQTT protocol and a JSON data format, a subscription and release mode based on a specific theme is adopted for communication messages, and the theme comprises manufacturer codes, equipment codes and interface names;
the resource management unit comprises a material management module, a program management module and a storage module;
the material management module is used for managing the basic information of the material, the basic information of the material at least comprises a material name, a material type, a local storage path of the material, information description of the material, the uploading time of the material, the byte number occupied by the material, the playing time length of the material and the last updating time of the material, the material type comprises pictures, characters, videos, audios and the like, and the material management module is used for acquiring a material file uploaded by a user from a network and storing the material file into a destination directory;
the program management module is used for managing the basic information of the program, the basic information of the program at least comprises a program name, a program type, program related information description, program creation time, byte number occupied by the program, the whole width of a program canvas, the whole height of the program canvas and the last updating time of the program, wherein the byte number occupied by the program is formed by accumulating byte numbers occupied by all materials contained in the program, each program corresponds to a unique program identifier, in addition, the program management module is also used for managing the association relationship between the program and the materials, each program can be associated with a plurality of materials, each material corresponds to a program material association relationship, the association relationship at least comprises the unique identifier of the program, the unique identifier of the material, the related information description of the material, the initial pixel point coordinates of the material in a program window, the width and height values of the material, the name of the material and the specific content of the material, and on the other hand, the program management module is also used for adding, modifying and deleting and acquiring a program information list and a program information list of the related information of the program materials;
the resource management unit further comprises a channel management module, the channel management module is used for managing basic information of channels, the basic information of the channels at least comprises channel names, channel types, information description of the channels, creation time of the channels, last updating time of the channels, and unique channel identifiers corresponding to each channel, in addition, the channel management module is also used for managing the association relationship between the channels and the programs, each channel can be associated with a plurality of programs, each program corresponds to a channel program association relationship, the association relationship at least comprises the unique identifier of the channel, the unique identifier of the program, the description of the relevant information, the effective period starting time of the associated program, the effective period ending time of the associated program, the program playing mode of the associated program, the playing starting time of the associated program, and the playing ending time of the associated program, on the other hand, the channel management module is also used for adding, modifying, deleting and acquiring channel information lists and channel program association information lists;
the storage module comprises a data storage function and is also used for real-time access operation of data, the storage content at least comprises a terminal list, a material list, a program list and an incidence relation between the material and the program, the storage content of the storage module also comprises a channel list and an incidence relation between the channel and the program, and the data storage function of the storage module is realized based on a database.
The information issuing unit also comprises a schedule management module, and the schedule management module is used for pushing program playing information to the adaptation management module according to the preset playing mode and playing time of each program in the channel;
the adaptation unit comprises an adaptation management module and an interface library module;
the adaptive management module is used for managing the interface libraries of all manufacturers, loading the interface libraries according to the effective states of the interface libraries configured in the configuration module, and also used for operating and managing the interface library module, including starting and closing the manufacturer docking libraries, providing error recovery to the docking library module and restarting the docking library;
the interface library module is used for adapting manufacturer interfaces, each manufacturer corresponds to an independent interface library, the interface library is used for providing data interaction service with a bottom manufacturer platform or equipment, and at least comprises the steps of establishing connection with the corresponding manufacturer equipment or platform, regularly checking the connection state and reconnecting with the manufacturer equipment or platform, the interface library module is also used for acquiring the state and attribute value of the equipment and modifying the attribute value of the equipment, and in addition, the interface library module is also used for converting a program to be issued into a program form matched with the manufacturer and issuing the program form to the manufacturer equipment;
the device context management module is used for maintaining the running state and the attribute value of the terminal device, and reporting the changed device state and the attribute value to a subscribed application layer management system through the API (application program interface) interface management module when the terminal device state and the attribute value are changed;
the message retransmission module is used for storing the failed message sent from the API management module to the application layer management system, and pushing the message again when the application layer management system is on-line again, the message retransmission module can set the expiration time, and deletes the stored message after expiration;
in one embodiment, the vendor definition includes a unique code of the vendor, a short name of the vendor, an English abbreviation of the vendor, a full name of the vendor; the device type definition configuration comprises a device type unique code, a device type name and English abbreviations; the attribute definition of the equipment comprises an attribute name, an attribute unique identifier KEY, the data type of the attribute, attribute numerical description and the read-write mode of the attribute; the interface service definition comprises a service name, a service unique identifier KEY, input data and output data contained in the service, wherein the input data and the output data comprise a data name, a data unique identifier KEY, a data type and a data description; the interface event definition comprises an event name, an event unique identifier KEY and output data of the event, wherein the output data comprises a data name, a data unique identifier KEY, a data type and a data description.
Table 1 interface service table
Figure BDA0003850417350000091
Figure BDA0003850417350000101
Table 2 event definition table
Figure BDA0003850417350000102
Wherein, the structure that the data type in the interface service table is struct is defined additionally, for example, as shown in the following table 3:
table 3 other definitions of data structures in interface services table
Figure BDA0003850417350000111
In one embodiment, the configuration information of the interface library comprises an interface library name, a code of a manufacturer to which the interface library belongs, an interface library dll name, an interface library class name, connection information of a manufacturer platform or equipment, and adapter description; the device configuration information includes a device unique code, a device name, a network address of the device, a vendor code to which the device belongs, a device type code, a code of the device in the vendor, and a device location, as shown in tables 4 and 5 below.
Table 4 interface library configuration table
Figure BDA0003850417350000112
Table 5 device configuration table
Figure BDA0003850417350000121
Referring to fig. 3, an embodiment of the OpenAPI conversion method for information distribution for a multi-terminal heterogeneous system includes the following steps:
s101, loading a configuration file to analyze configuration information;
s102, initializing a corresponding manufacturer interface library, and establishing communication connection with manufacturer equipment or a platform;
s103, according to the configured terminal device information, obtaining initial running states and initial values of attributes of all terminal devices, feeding the initial running states and the initial values back to the device context management module for caching, and publishing the initial running states and the initial values to a subscribed application layer management system through an API (application programming interface) module, wherein a topic subscribed by the application layer management system comprises manufacturer codes, device codes and event names, and is as follows: V001/D0001_1/event/Screen StatusReport, the API interface module issues the same theme and carries the attribute value to be reported, which is as follows:
Figure BDA0003850417350000122
s104, starting a manufacturer connection state detection timer and a time-sharing terminal equipment state and attribute value acquisition timer;
s105, waiting for a timer task;
s106, acquiring the running states and real-time attribute values of all terminal equipment in the timer, and feeding the running states and the real-time attribute values back to the equipment context management module;
s107, the context management module compares the running state and real-time attribute value of the new terminal equipment with the data in the cache, if the data are changed, the cache value is updated and is sent to the subscribed application layer management system through the API module,
s108, detecting the connection state of each manufacturer in the timer, and if the connection state is off-line, re-establishing connection with a manufacturer platform or equipment;
on the other hand, referring to fig. 4, the OpenAPI conversion method for information distribution for a multi-terminal heterogeneous system provided in the embodiment further includes a method for managing resources, editing programs, distributing programs, and modifying device attribute values by an application layer management system, which specifically includes the following steps:
s201: and subscribing the supported services, including resource management, program editing, program publishing and equipment attribute value modification, wherein the subscription theme comprises manufacturer codes and service names, and is as follows: V001/service/SendProgramm;
s202: receiving the subscribed message push, the message body contains parameters corresponding to the service, for example, the message body format with the theme of V001/service/SendProgram is as follows:
Figure BDA0003850417350000131
s203: executing an instruction issued by an application layer management system, if the instruction is resource management and program editing, executing step 204, if the instruction is equipment attribute modification, executing step 205, and if the instruction is program issuing, executing step 206;
s204: adding, modifying and deleting the resources or programs;
s205: the device context management module acquires a corresponding device attribute real-time value, and if the device attribute real-time value is inconsistent with the instruction value, the device context management module issues the device attribute real-time value to a corresponding interface library for execution according to manufacturer and device information in the instruction;
s206: the information issuing module detects whether the channels, programs and materials are available according to the stored channel information, program information and material information, manages and detects whether the equipment is online according to the context of the equipment, and issues the information to a corresponding interface library for execution according to the information of manufacturers and equipment in the instruction if the information is available;
in summary, the OpenAPI conversion system and method for information publishing in a multi-terminal heterogeneous system according to the present invention decouple each upper application platform of a smart community from an information publishing platform of the multi-terminal heterogeneous system, and through subscription, each type of terminal device context of the heterogeneous system is managed and reported in a unified manner, thereby maintaining real-time performance and consistency of upper application platform data; the OpenAPI form provides a unified device management, resource management and information release interface for the upper application platform, so that the adaptation difficulty of the multi-terminal heterogeneous information release system can be effectively reduced, the development efficiency of the upper system is improved, and the pain points of the upper system which are difficult to maintain and expand are improved; meanwhile, the adaptation layer is in modular design with the database, each manufacturer corresponds to an independent interface database, and the adaptation layer is configured as required and flexible in expansion.
The description is given for the sake of illustration only, and it is to be understood that various modifications and additions may be made or substituted in a similar manner by those skilled in the art without departing from the scope of the present invention as defined in the appended claims.

Claims (10)

1. An information release OpenAPI conversion system facing a multi-terminal heterogeneous system is characterized by comprising:
the OpenAPI service unit is interacted with the upper application platform;
the resource management unit is used for managing the release information of the system;
the adaptation unit is used for managing multiple terminals in the multi-terminal heterogeneous system;
the information release unit and the adaptation unit interact with the upper application platform through the OpenAPI service unit;
the information issuing unit interacts with the resource management unit and interacts with the adaptation unit to realize the issuing of the multi-terminal information;
and the configuration management unit is interacted with the adaptation unit, manages the information of the multiple terminals to generate a configuration file, analyzes the configuration file and realizes the management that the interface libraries of the multiple terminals are merged into the adaptation unit.
2. The OpenAPI conversion system for information distribution to a multi-terminal heterogeneous system according to claim 1, further comprising a security and credit management unit interacting with the OpenAPI service unit and the adaptation unit, and configured to manage operation information of information distribution to the multi-terminal.
3. The OpenAPI conversion system for information release for a multi-terminal heterogeneous system according to claim 1 or 2, wherein the information release unit includes an information sending module, and an information sending feedback module;
the information issuing module is used for managing the issuing of the issued information and judging the online state of the terminal corresponding to the information to be issued and the available state of the issued information;
the information sending feedback module is used for managing the issuing progress of the issuing information.
4. The OpenAPI conversion system for information distribution for a multi-terminal heterogeneous system according to claim 3, wherein the adaptation unit includes an adapter management module and an interface library module interacting therewith;
the interface library module is used for managing data interaction service with the multiple terminals.
5. The OpenAPI conversion system for information distribution for a multi-terminal heterogeneous system according to claim 4, wherein the resource management unit includes a material management module, a program management module, and a storage module interacting with the material management module and the program management module;
the material management module is used for managing the content information of the release information;
the program management module is used for managing the display information of the release information.
6. A conversion method of the OpenAPI conversion system for information distribution to a multi-terminal heterogeneous system according to any one of claims 1 to 5, comprising the steps of:
connection of multi-terminal information:
the adaptation unit operates and analyzes and acquires the connected multi-terminal information, establishes communication connection,
the multi-terminal information is sent to an upper application platform through an OpenAPI service unit,
updating the multi-terminal information within a set time, and if the multi-terminal information is updated, sending the updated multi-terminal information to an upper application platform through the OpenAPI service unit;
information release:
the upper application platform updates the multi-terminal information;
and executing interactive updating of the resource management unit and the information publishing unit, and managing the resource management unit and the information publishing unit to publish the publishing information according to the updated information.
7. The conversion method as claimed in claim 6, wherein the updating method of the multi-terminal information is:
the equipment context management module caches the multi-terminal information; and comparing the running state and the real-time attribute value of the new terminal equipment with the data in the cache, and updating the cache value if the data are changed.
8. The translation method according to claim 7, wherein said step of issuing information is preceded by the steps of:
the information issuing unit verifies whether the issued information is available,
and sending a corresponding instruction to the device context management module, judging whether the corresponding terminal is on line, if so, executing, and if not, sending the instruction to the adaptation unit to update the interface library of the multiple terminals.
9. The translation method according to claim 8, wherein said OpenAPI service unit comprises an API interface management module.
10. The translation method according to claim 9, wherein said API interface management module communicates with said upper layer application platform based on MQTT protocol and JSON data format.
CN202211131370.XA 2022-09-16 2022-09-16 Information release OpenAPI conversion system and method for multi-terminal heterogeneous system Pending CN115529312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211131370.XA CN115529312A (en) 2022-09-16 2022-09-16 Information release OpenAPI conversion system and method for multi-terminal heterogeneous system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211131370.XA CN115529312A (en) 2022-09-16 2022-09-16 Information release OpenAPI conversion system and method for multi-terminal heterogeneous system

Publications (1)

Publication Number Publication Date
CN115529312A true CN115529312A (en) 2022-12-27

Family

ID=84697922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211131370.XA Pending CN115529312A (en) 2022-09-16 2022-09-16 Information release OpenAPI conversion system and method for multi-terminal heterogeneous system

Country Status (1)

Country Link
CN (1) CN115529312A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123842A (en) * 2017-12-22 2018-06-05 武汉虹信技术服务有限责任公司 A kind of adaption system and method that can access more plant equipments based on KNX agreements
CN108989293A (en) * 2018-06-27 2018-12-11 武汉虹信技术服务有限责任公司 A kind of intelligent building management platform adaption system and adaptation method
CN109347950A (en) * 2018-10-17 2019-02-15 南京邮电大学 A kind of Internet of Things intelligence s ervice system and its implementation based on Kaa Project
CN112764795A (en) * 2021-01-21 2021-05-07 奇秦科技(北京)股份有限公司 Service-oriented cross-platform and cross-terminal information publishing system and method
WO2021213293A1 (en) * 2020-04-24 2021-10-28 西北工业大学 Ubiquitous operating system oriented toward group intelligence perception

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123842A (en) * 2017-12-22 2018-06-05 武汉虹信技术服务有限责任公司 A kind of adaption system and method that can access more plant equipments based on KNX agreements
CN108989293A (en) * 2018-06-27 2018-12-11 武汉虹信技术服务有限责任公司 A kind of intelligent building management platform adaption system and adaptation method
CN109347950A (en) * 2018-10-17 2019-02-15 南京邮电大学 A kind of Internet of Things intelligence s ervice system and its implementation based on Kaa Project
WO2021213293A1 (en) * 2020-04-24 2021-10-28 西北工业大学 Ubiquitous operating system oriented toward group intelligence perception
CN112764795A (en) * 2021-01-21 2021-05-07 奇秦科技(北京)股份有限公司 Service-oriented cross-platform and cross-terminal information publishing system and method

Similar Documents

Publication Publication Date Title
Grimm et al. System support for pervasive applications
US8082414B2 (en) Method and system for centralized memory management in wireless terminal devices
CN111324571B (en) Container cluster management method, device and system
US20040194059A1 (en) Method to deploy software using an open service gateway initiative (OSGi) framework
US20080256225A1 (en) Osgi-Based Dynamic Service Management Method for Context-Aware Systems
US20060080592A1 (en) System for management of interactions between users and software applications in a web environment
CN1967485B (en) Method and system for realizing J2EE application
US20130191526A1 (en) Open plug-in management platform and plug-in management method implemented on browser
EP1934822A4 (en) Interfaces for a productivity suite application and a hosted user interface
EP2003854B1 (en) Server for communicating with multi-mode devices using multi-mode applications
CN105094922A (en) Application installation-free operation control method and device
US20080141285A1 (en) Open home network framework and method for operating the same
EP1775913A1 (en) Method for controlling multimedia middleware apparatus using metadata
CN101499010B (en) Method for using desktop application programs on mobile phone
KR102426381B1 (en) Api request processing system
CN111984270A (en) Application deployment method and system
CN108399331A (en) Application process trial method and system
CN101677284A (en) Hardware component generation method and device capable of downloading reconstructive hardware bodies
CN113204368B (en) Application processing method, server and storage medium
JPH11312079A (en) Method for controlling portable information processor
CN101221498A (en) System and method for managing service modules
Muñoz et al. Building a software factory for pervasive systems development
CN115529312A (en) Information release OpenAPI conversion system and method for multi-terminal heterogeneous system
EP2003843B1 (en) Device for communicating in multiple modes using multi-mode applications
CN108334374A (en) The method and apparatus of component dynamic load and execution

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