CN111046021B - Internet of things type distribution transformer terminal application development platform - Google Patents
Internet of things type distribution transformer terminal application development platform Download PDFInfo
- Publication number
- CN111046021B CN111046021B CN201911208251.8A CN201911208251A CN111046021B CN 111046021 B CN111046021 B CN 111046021B CN 201911208251 A CN201911208251 A CN 201911208251A CN 111046021 B CN111046021 B CN 111046021B
- Authority
- CN
- China
- Prior art keywords
- module
- application development
- configuration
- database
- internet
- 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.)
- Active
Links
- 238000011161 development Methods 0.000 title claims abstract description 79
- 238000004891 communication Methods 0.000 claims abstract description 21
- 230000006870 function Effects 0.000 claims abstract description 18
- 230000003993 interaction Effects 0.000 claims abstract description 11
- 238000000034 method Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 6
- 230000011664 signaling Effects 0.000 claims description 4
- 230000033228 biological regulation Effects 0.000 claims description 3
- 238000013461 design Methods 0.000 claims description 3
- 101100129590 Schizosaccharomyces pombe (strain 972 / ATCC 24843) mcp5 gene Proteins 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 101100446506 Mus musculus Fgf3 gene Proteins 0.000 description 1
- 101100348848 Mus musculus Notch4 gene Proteins 0.000 description 1
- 101100317378 Mus musculus Wnt3 gene Proteins 0.000 description 1
- 101100258315 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) crc-1 gene Proteins 0.000 description 1
- 101100258328 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) crc-2 gene Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/81—Indexing, e.g. XML tags; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The invention relates to an application development platform of an internet of things type distribution transformer terminal, which belongs to the field of ubiquitous power internet of things and comprises an application development module, a plug-and-play module, a database module and a communication management module; the application development module is used for carrying out application development by calling the data in the database module through the communication management module according to the function requirements; the plug-and-play module is used for calling and analyzing the configuration file from a configuration storage area in the application development module, generating configuration information required by application development and transferring the configuration information to the database module; the database module dynamically allocates memory according to the configuration information and constructs a real-time library required by application development; the communication management module is used for completing data interaction between the application development module and the database module, realizing the data retrieval in the database module by the application development module, and solving the problems of manual configuration, large workload, low efficiency and easy error of the database required by the existing application development.
Description
Technical Field
The invention relates to an application development platform of an internet of things type distribution transformer terminal, and belongs to the field of ubiquitous electric power internet of things.
Background
The ubiquitous power internet of things is a deep fusion of the traditional industrial technology and the internet of things, is applied to a novel power network form generated in the power distribution field, realizes comprehensive perception, data fusion and intelligent application of a power distribution network through comprehensive interconnection, intercommunication and interoperation among power distribution network equipment, and meets the lean management requirements of the power distribution network.
Hardware standardization and software APP gradually become a development trend of the distribution transformer terminal under the ubiquitous power Internet of things, the original distribution transformer terminal is a centralized function development mode based on the non-Internet of things environment, namely all functions are integrated in the same function area uniformly, the coupling performance among the independent functions of the APP is strong, the whole body is pulled to move, the database required by the normal operation of the APP needs to be configured in advance, manual configuration is needed, namely configuration files are manually required to be retrieved from a configuration storage area, and are transferred to the database after corresponding conversion, so that the configuration of the database required by application development is realized, the workload of manual operation and maintenance is high, errors are easy to occur, and the large-scale development and application of the intelligent distribution transformer terminal under the ubiquitous power Internet of things are restricted.
Disclosure of Invention
The invention aims to provide an application development platform of an Internet of things type distribution transformer terminal, which aims to solve the problems that a database required by the existing application development adopts manual configuration, is large in workload and low in efficiency and is easy to make mistakes.
The invention adopts the following technical scheme: the invention provides an application development platform of an internet of things type distribution transformer terminal, which comprises an application development module, a plug-and-play module, a database module and a communication management module; the application development module is provided with a configuration storage area, and configuration files required by application development are stored in the configuration storage area;
the application development module is used for invoking data in the database module through the communication management module according to the function requirements to perform application development;
the plug-and-play module is used for retrieving and analyzing the configuration file from the configuration storage area, generating configuration information required by application development, and transferring the configuration information to the database module;
the database module is used for dynamically distributing memory according to the configuration information and constructing a real-time library required by application development;
the communication management module is used for completing data interaction between the application development module and the database module, and the application development module is used for realizing the data retrieval in the database module.
According to the invention, the plug-and-play module is arranged in the application development platform, the configuration file called from the configuration storage area is analyzed into the configuration information required by application development, and the database module dynamically allocates the memory according to the configuration information to construct the real-time library required by application development, so that the automatic construction of the database is realized, the artificial participation is avoided, the efficiency and the accuracy of the database construction process required in the application development process are effectively improved, and the intellectualization and informatization level of the ubiquitous power internet of things distribution area is improved.
Further, the configuration file includes information point types, information point numbers and information point specific attributes required by application development, and the information point types are classified into remote signaling, remote sensing, remote control and remote regulation data.
Further, the specific information point attribute comprises an internal ID number, a real-time state value and Chinese and English description information.
Furthermore, in order to improve the data transmission efficiency, the plug-and-play module invokes the configuration file in a manner of sharing the memory.
Furthermore, in order to perfect the application development process, a history library area and a function processing area are also arranged in the application development module; the history storage area is used for storing history data, recorded system log files and running state information generated in the running process of the application; the function processing area is used for completing the design and development of the functional logic of the application.
Further, in order to improve flexibility of the database, the plug-and-play module is further configured to periodically detect the configuration file in the configuration storage area, and if a new generation or a change of the configuration file is detected, forward the newly generated or changed configuration file.
Furthermore, in order to adapt to the demands of the ubiquitous Internet of things, data sharing among different applications is realized, and the communication management module is also used for connecting other applications through an external bus to realize data interaction among different applications.
Furthermore, in order to provide a specific communication mode, the communication management module adopts an MQTT communication protocol.
Further, the configuration file is an XML format file.
Drawings
FIG. 1 is a schematic diagram of an application development platform in an embodiment of a distribution transformer terminal application development platform of the invention;
fig. 2 is a schematic diagram of a history database area storage file in an embodiment of the application development platform of the distribution transformer terminal of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the particular embodiments described herein are illustrative only and are not intended to limit the invention, i.e., the embodiments described are merely some, but not all, of the embodiments of the invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The features and capabilities of the present invention are described in further detail below in connection with the examples.
Configuration transformer terminal application development platform embodiment:
as shown in fig. 1, the application development platform of the internet of things type distribution transformer terminal of the present invention mainly includes 4 modules: the system comprises an application development module, a plug-and-play module, a database module and a communication management module. The application development module is provided with a configuration storage area, and configuration files required by application development are stored in the configuration storage area; the application development module is used for invoking data in the database module through the communication management module according to the function requirements to perform application development; the plug-and-play module is used for calling and analyzing the configuration file from the configuration storage area, generating configuration information required by application development, and transferring the configuration information to the database module; the database module is used for dynamically distributing memory according to the configuration information and constructing a real-time library required by application development; and the communication management module is used for completing data interaction between the application development module and the database module and realizing the data retrieval in the database module by the application development module. Through the common operation of the four modules, the application development work of the Internet of things type distribution transformer terminal is realized.
Specifically, the specific functions and running processes of the four modules in the application development process are as follows:
three areas are partially within the application development module: a history database area, a configuration storage area and a logic function processing area.
The configuration storage area stores configuration files, a configuration file model of the application development module is shown in table 1, and the configuration file model is divided into three levels of structures: A. the information point types contained in the module application are classified into different types of remote signaling, remote sensing, remote control, remote regulation and the like; B. the number of information points of a real-time library is required to be established in a database module; C. the information point specific attribute of the real-time library needs to be established in the database and the module, and the information point specific attribute comprises information such as an internal ID number, a real-time state value, chinese and English description and the like. The application development module is internally provided with a history database for storing history data generated in the running process of an Application (APP), and the storage format is an XML file, as shown in figure 2; the application development module is internally provided with a logic function processing area to complete the function realization of the Application (APP).
TABLE 1
The plug-and-play module reads the configuration file of the application development module after the platform operates, analyzes the information of the configuration file, and then transfers the configuration information to the database module, and the database module performs corresponding real-time library modeling according to different information attributes.
After the plug-and-play module runs on the platform, after an xml configuration file path is defined in advance in a program, a fileopen library function in the following C++ language is called, the configuration file is opened, then all information in the configuration file is read through the library function of fscan in a while loop, character string information attributes s in the file are transferred to g_YC [ num1] and g_YX [ num2] character string arrays, wherein num1 and num2 are telemetry and remote signaling number information in the configuration file, g_YC and g_YX belong to global variables in a memory and are equal to a part of a real-time library, and the process is equivalent to transferring information content in the xml configuration file into the real-time memory, and a subsequent module can directly use information stored in the global arrays of g_YC and g_YX.
Storage PATH of- # define XML_F_PATH "/localchs/common/filename"// define XML file and file name
char_g_yc; pointer to define global variables
char*g_YX;
FILE fp=fopen (xml_f_path, "r"); opening configuration file under corresponding XML_F_PATH PATH in/read-only mode
While (fscan (fp, "%s%s\n", & g_yc [ num1], & g_yx [ num2 ]) |=eof)// loop reads the information of each line in the xml file until the end of the file
In this embodiment, the plug-and-play module actively reads the configuration file of the application development module in a shared memory manner after the platform operates. As other embodiments, the configuration file may be read in a calling manner.
In this embodiment, the database module adopts a distributed Redis database, the modeling mode adopts a KEY-VALUE mode, the KEY VALUE contains information such as an APP public address, an information sequence number, an internal point map and the like, and VALUE is divided into a bit integer type, a floating point type and a character string type according to different data types, wherein the KEY-VALUE structure design is shown in table 2.
TABLE 2
Sequence number | Measuring point number | Using public addresses | Device public address | Interior point mapping | Station name | value |
1 | 16385 | 0 | 1 | 401 | crc1 | int |
2 | 16386 | 0 | 1 | 402 | crc2 | int |
3 | 16387 | 0 | 1 | 403 | crc3 | int |
4 | 16388 | 0 | 1 | 404 | crc4 | int |
5 | 16385 | 1 | 0 | 405 | Ua | float |
6 | 16386 | 1 | 0 | 406 | Ub | float |
7 | 16387 | 1 | 0 | 407 | Uc | float |
In the running process of the platform, the communication management module is responsible for data interaction between the application development module and the distributed Redis database module, the type of a data interaction protocol is MQTT, the adopted message format is Json format, and the interaction content is real-time data generated by the application development module.
As a further improvement to the embodiment, in the embodiment, the plug-and-play module periodically monitors the change of the configuration file in the running process of the platform and informs the distributed Redis database module of the change in time through the state quantity, and the distributed Redis database module can dynamically increase or decrease the managed real-time library part.
As a further improvement to the embodiment, in order to fully meet the functional requirements in the ubiquitous Internet of things, the MQTT communication management module is responsible for carrying out data interaction between two APP (application) in a mode of an MQTT message bus, and the real-time interaction of data is realized by adopting a general topic publishing and subscribing mode of the Internet of things.
The above description is only a preferred embodiment of the present invention, and the patent protection scope of the present invention is defined by the claims, and all equivalent structural changes made by the specification and the drawings of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. The application development platform of the internet of things type distribution transformer terminal is characterized by comprising an application development module, a plug-and-play module, a database module and a communication management module; the application development module is provided with a configuration storage area, and configuration files required by application development are stored in the configuration storage area; the configuration file model of the application development module is divided into three-level structures, and comprises information point types, the number of the information points and specific information point attributes required by application development, wherein the information point types comprise remote signaling, remote sensing, remote control and remote regulation data;
the application development module is used for invoking data in the database module through the communication management module according to the function requirements to perform application development;
the plug-and-play module is used for calling and analyzing the configuration file from the configuration storage area after a configuration file path is defined in advance in a program after the platform operates, transferring information content in the configuration file to a real-time memory, generating configuration information required by application development, and transferring the configuration information to the database module;
the database module is used for dynamically distributing memory according to the configuration information and constructing a real-time library required by application development;
the communication management module is used for completing data interaction between the application development module and the database module, and the application development module is used for realizing the data retrieval in the database module.
2. The internet of things type distribution transformer terminal application development platform according to claim 1, wherein the specific information point attribute comprises an internal ID number, a real-time status value and Chinese and English description information.
3. The platform of claim 1, wherein the plug-and-play module retrieves the configuration file by sharing a memory.
4. The internet of things type distribution transformer terminal application development platform according to claim 1, wherein a history library area and a function processing area are further arranged in the application development module; the history storage area is used for storing history data, recorded system log files and running state information generated in the running process of the application; the function processing area is used for completing the design and development of the functional logic of the application.
5. The platform of claim 3, wherein the plug-and-play module is further configured to periodically detect a configuration file in the configuration storage area, and if a newly generated or changed configuration file is detected, forward the newly generated or changed configuration file.
6. The platform of claim 1, wherein the communication management module is further configured to connect other applications through an external bus, so as to implement data interaction between the different applications.
7. The internet of things type distribution transformer terminal application development platform according to claim 6, wherein the communication management module adopts an MQTT communication protocol.
8. The internet of things type distribution transformer terminal application development platform according to any one of claims 1 to 7, wherein the configuration file is an XML format file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911208251.8A CN111046021B (en) | 2019-11-30 | 2019-11-30 | Internet of things type distribution transformer terminal application development platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911208251.8A CN111046021B (en) | 2019-11-30 | 2019-11-30 | Internet of things type distribution transformer terminal application development platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111046021A CN111046021A (en) | 2020-04-21 |
CN111046021B true CN111046021B (en) | 2023-11-10 |
Family
ID=70234290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911208251.8A Active CN111046021B (en) | 2019-11-30 | 2019-11-30 | Internet of things type distribution transformer terminal application development platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111046021B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683125B (en) * | 2020-05-26 | 2023-10-31 | 国电南瑞南京控制系统有限公司 | Novel fusion terminal marketing and distribution information sharing method and system based on MQTT protocol |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8028044B1 (en) * | 2006-02-10 | 2011-09-27 | Netapp, Inc. | Flexible storage planning |
CN102902536A (en) * | 2012-09-14 | 2013-01-30 | 杭州泛和科技有限公司 | Computer system of Internet of things |
CN104391690A (en) * | 2014-11-04 | 2015-03-04 | 中国石油天然气股份有限公司 | Application development system and method |
KR20160089747A (en) * | 2015-01-20 | 2016-07-28 | 주식회사 크레스프리 | System and method of providing embedded software development environment for IoT device |
CN106406836A (en) * | 2015-07-31 | 2017-02-15 | 中国电力科学研究院 | Power system analysis-oriented software platform and running and distributed development methods thereof |
CN108809972A (en) * | 2018-06-01 | 2018-11-13 | 南京邮电大学 | A kind of Internet of Things Comprehensive Experiment and application development platform and framework based on the ecosystem of increasing income |
CN109683882A (en) * | 2018-12-11 | 2019-04-26 | 兰州大学 | NB-IOT terminal software development approach under visible environment based on mobile terminal |
CN109885293A (en) * | 2019-02-27 | 2019-06-14 | 重庆电子工程职业学院 | The method, apparatus and server that Internet of Things application and development automatically creates |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10255067B2 (en) * | 2016-11-22 | 2019-04-09 | Sap Se | Development of internet of things (IoT) applications |
-
2019
- 2019-11-30 CN CN201911208251.8A patent/CN111046021B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8028044B1 (en) * | 2006-02-10 | 2011-09-27 | Netapp, Inc. | Flexible storage planning |
CN102902536A (en) * | 2012-09-14 | 2013-01-30 | 杭州泛和科技有限公司 | Computer system of Internet of things |
CN104391690A (en) * | 2014-11-04 | 2015-03-04 | 中国石油天然气股份有限公司 | Application development system and method |
KR20160089747A (en) * | 2015-01-20 | 2016-07-28 | 주식회사 크레스프리 | System and method of providing embedded software development environment for IoT device |
CN106406836A (en) * | 2015-07-31 | 2017-02-15 | 中国电力科学研究院 | Power system analysis-oriented software platform and running and distributed development methods thereof |
CN108809972A (en) * | 2018-06-01 | 2018-11-13 | 南京邮电大学 | A kind of Internet of Things Comprehensive Experiment and application development platform and framework based on the ecosystem of increasing income |
CN109683882A (en) * | 2018-12-11 | 2019-04-26 | 兰州大学 | NB-IOT terminal software development approach under visible environment based on mobile terminal |
CN109885293A (en) * | 2019-02-27 | 2019-06-14 | 重庆电子工程职业学院 | The method, apparatus and server that Internet of Things application and development automatically creates |
Non-Patent Citations (3)
Title |
---|
ThingStore: A Platform for Internet-of-Things Application Development and Deployment;K Akpinar etc.;《OSLO》;第162-173页 * |
电力物联网应用软件开发;陈鹏;《中国优秀硕士学位论文全文数据库(工程科技Ⅱ辑)》;第C042-224页 * |
面向企业的私有物联网云平台设计与实现;阮晓军;《中国优秀硕士学位论文全文数据库(信息科技辑)》;第I136-171页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111046021A (en) | 2020-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10691682B2 (en) | Storing and processing JSON documents in a SQL database table | |
CN103338135B (en) | A kind of method for real-time monitoring of cluster storage capacity | |
CN101841515B (en) | Target variable protocol data unit codec code automatic generation implementation method | |
CN109768970A (en) | It is a kind of based on configurable puppy parc generation method | |
CN111061715A (en) | Web and Kafka-based distributed data integration system and method | |
CN105760534A (en) | User-defined serializable data structure, hadoop cluster, server and application method thereof | |
CN105407024A (en) | Heterogeneous data intercommunication method and apparatus based on publishing and subscription communication mechanism | |
CN105337968A (en) | Cross platform communication protocol code conversion method and system | |
CN111459489A (en) | Automatic service packaging method, system and application of dynamic library | |
CN103078920A (en) | Online information verification system based on international electrotechnical commission (IEC) 61968 enterprise service bus (ESB) | |
CN101877002A (en) | Memory database distributed type access method and system based on unified interface | |
CN113467972A (en) | Communication interface construction method, communication interface construction device, computer equipment and storage medium | |
CN111046021B (en) | Internet of things type distribution transformer terminal application development platform | |
CN103399735A (en) | Method for developing intermediate layer of remote function call interface | |
CN112286628A (en) | System for unifying nanotube Kubernetes heterogeneous applications and operation method | |
CN105468793A (en) | Automated management method for simulation model data | |
CN105824944A (en) | XML (X Extensible Markup Language) configuration data maintenance method and system based on scripting language | |
CN102662772A (en) | Method for realizing data communication between different languages in multi-language development system | |
CN102999329B (en) | The Active Directory interface exploitation method of configuration is mapped based on extend markup language | |
CN107239601B (en) | Flexible configuration method of power distribution terminal based on configuration technology | |
CN103561113B (en) | The generation method and device of Web Service interface | |
CN106502842B (en) | Data reconstruction method and system | |
CN115202663A (en) | Data processing method, device and storage medium | |
JP2012528367A (en) | Method and associated system for adapting data in a data transmission system | |
CN116414436A (en) | Compatible unified development platform development method, device, medium and equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |