Nothing Special   »   [go: up one dir, main page]

CN118245030B - Telescopic sensing data acquisition and simulation integrated software design method - Google Patents

Telescopic sensing data acquisition and simulation integrated software design method Download PDF

Info

Publication number
CN118245030B
CN118245030B CN202410634241.5A CN202410634241A CN118245030B CN 118245030 B CN118245030 B CN 118245030B CN 202410634241 A CN202410634241 A CN 202410634241A CN 118245030 B CN118245030 B CN 118245030B
Authority
CN
China
Prior art keywords
sensing
module
simulation
data
data acquisition
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
Application number
CN202410634241.5A
Other languages
Chinese (zh)
Other versions
CN118245030A (en
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.)
Ocean University of China
Original Assignee
Ocean University of China
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 Ocean University of China filed Critical Ocean University of China
Priority to CN202410634241.5A priority Critical patent/CN118245030B/en
Publication of CN118245030A publication Critical patent/CN118245030A/en
Application granted granted Critical
Publication of CN118245030B publication Critical patent/CN118245030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a scalable sensing data acquisition and simulation integrated software design method, which belongs to the technical field of data processing, and comprises a data acquisition, command transparent transmission, sensing data simulation module and a command conversion and data analysis sub-module; all the modules and the sub-modules are mutually matched to jointly realize data acquisition and simulation of the sensing equipment. Besides supporting centralized deployment on the same computer in a traditional mode, the software also supports independent deployment of the sensing data simulation module, the command conversion module and the data analysis module into cloud service for a plurality of data acquisition modules or command transparent transmission modules to be called together, can obviously reduce repeated workload caused by new or changed sensing equipment, can provide simulation environment which is highly consistent with a real scene for the application software of the Internet of things, and is convenient for development and debugging of the application software of the Internet of things.

Description

Telescopic sensing data acquisition and simulation integrated software design method
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a scalable sensing data acquisition and simulation integrated software design method.
Background
In the field of the internet of things, how to acquire sensing data from sensing equipment is the most basic problem, and data acquisition is the basis of all application software of the internet of things. The complete data acquisition behavior comprises two processes of sending instructions and analyzing data, wherein both processes are required to be strictly performed according to the communication protocol of the device. Because the communication protocol used by the sensing equipment has no unified format and standard, in the design of the data acquisition software, the corresponding data acquisition software needs to be developed by combining the communication protocol of each sensing equipment, so that a great deal of repetitive work is caused, and the development efficiency is low. In order to solve the problem, methods such as software component packaging and the like are generally adopted at present for interfaces and protocols, but the methods have fixed software structures, have no scalability, are unfavorable for distributed deployment, are not suitable for large-scale internet of things high-load cloud multiplexing, and are difficult to update and maintain.
On the other hand, in application scenes such as industrial production, the installation of the sensing equipment is closely related to the on-site production process and project period, and the on-site development and debugging time of developers is short. To solve this problem, developers typically use software to simulate the sensing data, and develop and debug the application software of the internet of things on the basis of the sensing data simulation software. The sensing data simulation software is similar to the data acquisition software, and is designed by combining with an actual communication protocol. Therefore, the sensing data simulation software faces the same problems as the data acquisition software. In addition, the currently adopted sensing data simulation software is independent of the sensing data acquisition software, so that the switching process of the application software of the Internet of things is complex when the application software of the Internet of things is switched from a development and test environment to an actual application scene, and sometimes the application software is influenced by the difference between the sensing data acquisition software and the sensing data simulation software, so that the problem occurs after the originally realized functions in the development and the debugging are migrated to the actual scene.
Disclosure of Invention
In view of the above, the invention provides a scalable sensing data acquisition and simulation integrated software design method, which solves the problems of fixed structure, no scalability and inapplicability to large-scale internet of things high-load cloud multiplexing of data acquisition software.
The invention is realized in the following way:
the invention provides a scalable sensing data acquisition and simulation integrated software design method, which consists of software modules, wherein the software modules comprise a data acquisition module, a command transmission module and a sensing data simulation module, the sensing data acquisition and simulation integrated software upper layer interacts with Internet of things application software, and the lower layer acquires data from sensing equipment or an Internet of things gateway, wherein the sensing equipment or the Internet of things gateway comprises the following components:
The data acquisition module comprises a submodule, wherein the submodule comprises a command conversion submodule and a data analysis submodule;
The acquisition task is cooperatively completed by the data acquisition module and the command transparent transmission module;
the sensing data acquisition and simulation integrated software is used for acquiring real sensing data or providing simulation sensing data;
The sensing data simulation module simulates the gateway of the Internet of things and the sensing equipment, and provides two simulation methods of bottom layer interface data simulation and upper layer data simulation and simulation of faults in the using process of the sensing equipment;
The sensing data acquisition and simulation integrated software structure is telescopic, and the software module and the submodule adopt cloud edge cooperative architecture, so that the two deployment modes of centralized deployment and independent deployment are realized.
On the basis of the technical scheme, the design method of the telescopic sensing data acquisition and simulation integrated software can be improved as follows:
The command conversion sub-module converts one acquisition command into one or more data acquisition commands which can be identified by the sensing equipment according to the corresponding relation between the sensing parameters and the sensing equipment to form a data acquisition command group, wherein each command corresponds to one sensing equipment; the command conversion sub-module communicates with other modules via a network.
Further, the data analysis submodule receives original sensing data, analyzes the original sensing data according to a communication protocol, extracts sensing parameter values in the original sensing data, and converts the original sensing data into formatted sensing data identifiable by the application software of the Internet of things according to a data format agreed with the application software of the Internet of things; the data analysis sub-module is communicated with other modules through a network.
Further, the command transparent transmission module is used for establishing connection between the sensing data acquisition and simulation integrated software and the sensing equipment by using an actual communication interface according to a communication protocol of the sensing equipment or the gateway of the internet of things, providing command sending service and data acquisition service which are irrelevant to the communication interface for the data acquisition module, and realizing transparency of the communication interface; the command transparent transmission module is communicated with other modules through a network.
Further, the sensing data acquisition process comprises the following steps:
Step one: the data acquisition module receives an acquisition instruction sent by the application software of the Internet of things;
Step two: the data acquisition module calls the command conversion sub-module to convert an acquisition command into a data acquisition command group and then sends the data acquisition command group to the command transparent transmission module;
step three: after receiving the data acquisition command group, the command transparent transmission module sends each command to a corresponding sensing device or an Internet of things gateway, receives the returned original sensing data and forwards the original sensing data to the data acquisition module;
Step four: the data acquisition module calls the data analysis sub-module to analyze the original sensing data and extract the sensing parameter values contained in the original sensing data;
Step five: and formatting the sensing parameter values to generate formatted sensing data and sending the formatted sensing data to the application software of the Internet of things.
Further, the sensing data acquisition and simulation integrated software is used for acquiring real sensing data and simulation sensing data; the real sensing data acquisition means that in an actual application scene, the data acquisition module acquires real sensing data through the command transparent transmission module; the simulation sensing data acquisition means that in a development or debugging environment, the data acquisition module calls the sensing data simulation module through the command transparent transmission module to simulate sensing equipment or an Internet of things gateway.
Furthermore, the sensing data acquisition and simulation integrated software adopts a cloud-edge cooperative architecture, and the data acquisition module, the command transparent transmission module, the command conversion sub-module, the data analysis sub-module and the sensing data simulation module have two modes of centralized deployment and independent deployment; the centralized deployment means that all modules are merged and deployed on the same device, and the independent deployment means that the software modules and the submodules are deployed on different cloud servers and edge gateway devices; in the independent deployment mode, the interaction relationship between the data acquisition module and the command transparent transmission module comprises four types of one-to-one, one-to-many, many-to-one and many-to-many.
Furthermore, the sensing data simulation module provides two simulation methods of bottom layer interface data simulation and upper layer data simulation;
The bottom layer interface data simulation is to simulate the sensing equipment, the sensing data simulation module interacts with the command transparent transmission module through a virtual communication interface, and simulate command interaction logic, data acquisition behaviors and sensing data formats;
The upper layer data simulation is to simulate the original sensing data, the sensing data simulation module interacts with the command transparent transmission module through a network, receives the data acquisition command group, generates simulated sensing data with the same format as the real sensing data, and returns the simulated sensing data to the command transparent transmission module.
Furthermore, the sensing data simulation module provides simulation of faults in the using process of the sensing equipment, wherein the simulation comprises three faults of disconnection, error code and error reporting; the sensing data simulation module provides a fault configuration function, and particularly sets whether faults are added, what faults are added and the occurrence frequency of the faults in the simulation process.
Compared with the prior art, the scalable sensing data acquisition and simulation integrated software design method has the beneficial effects that:
High flexibility and scalability: the design breaks through the structural limitation of the traditional data acquisition software, realizes the dynamic adjustment and expansion capability of a software architecture, can flexibly increase and decrease functional modules according to the actual requirements of the Internet of things system, adapts to the deployment requirements of different scales, and particularly shows excellent performance and adaptability when facing a large-scale Internet of things high-load cloud multiplexing scene;
Optimizing distributed deployment capabilities: by introducing the design concept of the micro-service architecture, the invention ensures that software can not only run efficiently on a single node, but also be easily deployed in a distributed system, thereby improving the data processing speed and the overall stability of the system, and effectively supporting the efficient running of the application of the Internet of things in a multi-node and multi-region environment;
simplifying the updating and maintaining flow: the integrated design strategy integrates the data acquisition and simulation functions, reduces the dependence complexity among software components, and enables the upgrading and maintenance of the software to be simpler, more convenient and quicker. When the communication protocol is changed or the type of the sensing equipment is newly added, the sensing equipment can respond and adjust more quickly, and the long-term operation and maintenance cost is reduced;
simulation and actual mining seamless switching: the scheme creatively integrates the sensing data acquisition and simulation functions, realizes the smooth transition from the simulation environment to the real environment, greatly simplifies the migration process of the application of the Internet of things in different stages (such as development, test and deployment), avoids the problem of inconsistent functions caused by software switching, and ensures the stability and reliability of the application;
development efficiency and compatibility are improved: by supporting and componentization packaging of various communication protocols, the invention obviously reduces the workload of independently developing data acquisition software aiming at different sensing devices, improves the code multiplexing rate and accelerates the development period of the application software of the Internet of things. Meanwhile, good protocol compatibility ensures that software can be widely applied to diversified application scenes of the Internet of things;
Facilitating rapid deployment and commissioning in the field: in consideration of special requirements of scenes such as industrial production, the integrated software design can complete configuration and debugging of sensing data in a short time, smooth implementation of a system can be ensured even in limited field development time, the project propelling speed is accelerated, and the overall working efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a comparison of two simulation methods of the sensing data simulation module of the present application with actual acquisition;
FIG. 2 is a schematic diagram of an independent deployment embodiment of a scalable sensor data acquisition and simulation integrated software design method according to the present invention;
FIG. 3 is a centralized deployment embodiment of the scalable sensory data acquisition and simulation integrated software design method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Embodiment one:
as shown in fig. 1, in this embodiment, the software module includes a data acquisition module, a command transparent transmission module and a sensing data simulation module, the sensing data acquisition and simulation integrated software upper layer interacts with the internet of things application software, and the lower layer acquires data from the sensing device or the internet of things gateway, wherein:
The data acquisition module comprises a submodule, wherein the submodule comprises a command conversion submodule and a data analysis submodule;
The acquisition task is cooperatively completed by a data acquisition module and a command transparent transmission module;
The sensing data acquisition and simulation integrated software is used for acquiring real sensing data or providing simulation sensing data;
The sensing data simulation module simulates the gateway of the Internet of things and the sensing equipment, and provides two simulation methods of bottom layer interface data simulation and upper layer data simulation and simulation of faults in the using process of the sensing equipment;
The sensing data acquisition and simulation integrated software structure is telescopic, and the software module and the submodule adopt cloud edge cooperative architecture, so that the two deployment modes of centralized deployment and independent deployment are provided.
The telescopic module and the submodule in the integrated sensing data acquisition and simulation software can be adopted, the centralized deployment mode can be adopted, the telescopic module and the submodule are contracted to the same edge node so as to meet the high-frequency data acquisition requirement, the independent deployment mode can be adopted, the telescopic module and the independent deployment mode can be adopted, the sensing data simulation module, the command conversion submodule and the data analysis submodule are deployed into cloud service so as to correspond to the change of the model of sensing equipment, and the multiplexing rate, the expandability and the maintainability of the integrated sensing data acquisition and simulation software are improved. The integrated software is used for providing two basic functions of sensing data acquisition and sensing data simulation by the original software, no other modules or components are needed to be added or used, and all the modules for realizing the two functions are integrated, so that all the modules can be connected in a seamless way.
The sensing data acquisition and simulation integrated software acquisition object comprises sensing equipment and an Internet of things gateway, wherein the sensing equipment is equipment capable of measuring one or more parameters, such as an electricity reference meter, a flowmeter, a temperature control meter, a data acquisition device and the like, the Internet of things gateway is physical equipment, can uniformly manage a plurality of sensors or sensing equipment, converts data from various data sources into a uniform format, and is widely applied to the fields of intelligent home, industrial automation, intelligent cities and the like, and the interaction method is similar to that of the sensing equipment. For purposes of express general terms, "sensing device" is used hereinafter to refer collectively to a sensing device or an internet of things gateway.
In the technical scheme, the command conversion sub-module converts one acquisition command into one or more data acquisition commands which can be identified by the sensing equipment according to the corresponding relation between the sensing parameters and the sensing equipment to form a data acquisition command group, wherein each command corresponds to one sensing equipment; the command conversion sub-module communicates with other modules via a network.
Further, in the above technical scheme, the data analysis submodule receives the original sensing data, analyzes the original sensing data according to the communication protocol, extracts the sensing parameter value therein, and converts the original sensing data into formatted sensing data identifiable by the application software of the internet of things according to the data format agreed with the application software of the internet of things; the data analysis sub-module communicates with other modules via a network.
Further, in the above technical solution, the command transparent module is configured to establish connection between the sensing data acquisition and simulation integrated software and the sensing device by using an actual communication interface according to a communication protocol of the sensing device or the gateway of the internet of things, and provide a command sending service and a data acquisition service unrelated to the communication interface for the data acquisition module, so as to implement transparency of the communication interface; the command transparent module communicates with other modules through a network.
The upper layer of the data acquisition module is interacted with the application software of the Internet of things, and the lower layer of the data acquisition module is interacted with the command transparent transmission module. In the data acquisition process, the data acquisition module firstly receives an acquisition command sent by the application software of the Internet of things, then converts the acquisition command into a data acquisition command aiming at sensing equipment, sends the data acquisition command to the command transparent transmission module, then receives the sensing data returned by the command transparent transmission module, analyzes and formats the sensing data, and finally returns the formatted sensing data to the application software of the Internet of things. Both command conversion and data parsing functions need to be developed in connection with the communication protocol of the device. The technical scheme designs the device into two independent sub-modules, namely a command conversion sub-module and a data analysis sub-module, and the device is communicated with other modules or sub-modules through a network.
In the acquisition instruction sent by the application software of the Internet of things, the sensing parameter number required to be acquired is specified. However, to implement decoupling of the application software of the internet of things and the actual sensing device, the format of the acquisition instruction is usually designed independently of the communication protocol of the sensing device, which results in that the sensing device cannot recognize the acquisition instruction. Therefore, the data acquisition module needs to combine with a communication protocol to convert the data acquisition command into a data acquisition command which can be identified by the sensing equipment after receiving the acquisition command. The command conversion submodule in the data acquisition module is used for realizing the function. The command conversion sub-module converts one acquisition command into one to a plurality of data acquisition commands according to the corresponding relation between the sensing parameters and the sensing equipment to form a data acquisition command group which can be identified by the sensing equipment, wherein each command corresponds to one sensing equipment. The command conversion sub-module communicates with other modules via a network.
The difference in communication protocols results in a large difference in format of the data directly returned by the sensing device, which must be parsed according to the corresponding communication protocol to extract the values of the sensing parameters. The data analysis sub-module is used for receiving the original sensing data, analyzing the original sensing data according to the corresponding communication protocol and extracting the sensing parameter values.
The physical structure and communication parameters of the communication interfaces used by the sensing devices are different, so that the methods for establishing connection with the sensing devices by the upper computer through the communication interfaces are different. The command transparent transmission module is used for realizing communication between the sensing data acquisition and simulation integrated software and the sensing equipment, and the module establishes connection between the sensing data acquisition and simulation integrated software and the sensing equipment by using an actual communication interface according to a communication protocol, so that the difference of a physical communication interface is shielded to an upper data acquisition module, equipment interaction service irrelevant to the communication interface is provided for the data acquisition module, and the transparency of the communication interface is realized. In the above scheme, the command transparent transmission module is designed as an independently deployable module and communicates with other modules or sub-modules through a network for maintainability and expandability.
Further, in the above technical solution, the sensing data acquisition process includes the following steps:
step one: the data acquisition module receives an acquisition instruction sent by application software of the Internet of things;
Step two: the data acquisition module calls the command conversion sub-module to convert the acquisition command into a data acquisition command group and then sends the data acquisition command group to the command transparent transmission module;
Step three: after receiving the data acquisition command group, the command transparent transmission module sends each command to the corresponding sensing equipment or the gateway of the Internet of things, receives returned original sensing data and forwards the original sensing data to the data acquisition module;
Step four: the data acquisition module calls a data analysis sub-module to analyze the original sensing data and extract the sensing parameter values contained in the original sensing data;
Step five: and formatting the sensing parameter values to generate formatted sensing data and sending the formatted sensing data to the application software of the Internet of things.
The scheme designs the sensing data simulation module, and the module can simulate the sensing equipment according to the communication protocol of the sensing equipment and provide simulated sensing data which accords with the equipment communication protocol and has the same real sensing data format. Therefore, the sensing data acquisition and simulation integrated software designed by the scheme supports real sensing data acquisition and simulation sensing data acquisition. The real sensing data acquisition means that in an actual application scene, the data acquisition module acquires real sensing data through a command transparent transmission module; the simulated sensing data acquisition means that in a development or debugging environment, the data acquisition module calls the sensing data simulation module through the command transparent transmission module to acquire simulated sensing data. The simulated sensing data acquisition is the same as the actual sensing data acquisition except that the simulated sensing data acquisition does not interact with the actual sensing equipment.
According to the scheme, the sensing data acquisition and simulation integrated software adopts a cloud-edge cooperative architecture, wherein cloud refers to a cloud server, and edges refer to edge nodes of an upper computer or an industrial personal computer and the like connected with sensing equipment. The data acquisition module, the sensing data simulation module and the command conversion and data analysis sub-module can be deployed in a centralized manner or independently. The centralized deployment means that all modules are merged and deployed on the same edge node, and the independent deployment means that the modules and the submodules are deployed on different cloud servers, edge nodes and other devices. In the independent deployment mode, the command conversion, data analysis sub-module and the sensing data simulation module are deployed on the cloud to provide public command conversion, data analysis and sensing data simulation cloud services for a plurality of users to call simultaneously, so that when the independent deployment mode is used, a plurality of sensing data acquisition and simulation integrated software can multiplex the modules without repeated construction or deployment, and the problems that the existing method is fixed in software structure, unfavorable for distributed deployment, unsuitable for large-scale Internet of things high-load cloud multiplexing, difficult to update and maintain and the like are solved.
Further, in the above technical solution, the sensing data acquisition and simulation integrated software is used for acquiring real sensing data and simulation sensing data; the real sensing data acquisition means that in an actual application scene, the data acquisition module acquires real sensing data through a command transparent transmission module; the simulation sensing data acquisition means that in a development or debugging environment, the data acquisition module calls the sensing data simulation module through the command transmission module to simulate sensing equipment or an Internet of things gateway.
Furthermore, in the technical scheme, the sensing data acquisition and simulation integrated software adopts a cloud-edge cooperative architecture, and the data acquisition module, the command transparent transmission module, the command conversion sub-module, the data analysis sub-module and the sensing data simulation module have two modes of centralized deployment and independent deployment; the centralized deployment means that all modules are combined and deployed on the same equipment, and the independent deployment means that software modules and sub-modules are deployed on different cloud servers and edge gateway equipment; in the independent deployment mode, the interaction relationship between the data acquisition module and the command transparent transmission module comprises four types of one-to-one, one-to-many, many-to-one and many-to-many.
The one-to-one interaction relationship means that one data acquisition module can only interact with one command transparent transmission module, and vice versa; the one-to-many interaction relationship means that one data acquisition module can interact with a plurality of command transparent transmission modules, and the command transparent transmission modules are communicated with the sensing equipment, so that the mode is suitable for a scene with more sensing equipment to be acquired; the many-to-one interaction relationship means that a plurality of data acquisition modules can communicate with the same command transparent transmission module to acquire the data of the same sensing equipment; the multi-to-multi interaction relationship means that one data acquisition module can communicate with a plurality of command transparent transmission modules to acquire sensing data, and meanwhile, one command transparent transmission module can also communicate with a plurality of data acquisition modules to provide sensing data for the data acquisition modules.
Furthermore, in the above technical scheme, the sensing data simulation module provides two simulation methods of bottom layer interface data simulation and upper layer data simulation;
the bottom layer interface data simulation is to simulate the sensing equipment, and the sensing data simulation module interacts with the command transparent transmission module through the virtual communication interface to simulate command interaction logic, data acquisition behaviors and sensing data formats;
the upper layer data simulation is to simulate the original sensing data, the sensing data simulation module interacts with the command transparent transmission module through a network, receives the data acquisition command group, generates the simulated sensing data with the same format as the real sensing data, and returns the simulated sensing data to the command transparent transmission module.
Furthermore, in the technical scheme, the sensing data simulation module provides simulation of faults in the use process of the sensing equipment, wherein the simulation comprises three faults of disconnection, error code and error reporting; the sensing data simulation module provides a fault configuration function, and particularly sets whether faults are added or not, what faults are added in the simulation process and the occurrence frequency of the faults.
The sensing data simulation module provides two simulation methods of bottom layer interface data simulation and upper layer data simulation according to different requirements, and the comparison of the two simulation methods and actual acquisition is shown in fig. 1. The bottom layer interface data simulation method is that the sensing data simulation module is combined with the virtual communication interface to simulate the sensing equipment. In the method, a sensing data simulation module establishes a virtual communication interface with the same type and parameters as the real communication interface used by each sensing device, and provides a simulation method corresponding to the device model, so as to simulate command interaction logic, data acquisition behaviors and a sensing data format. For the integrated software of sensing data acquisition and simulation, the operations of establishing connection, receiving and transmitting data and the like of the virtual communication interface and the actual communication interface are the same. The only difference is that commands sent through the actual communication interface will be received by the actual sensing device, while commands sent through the virtual communication interface will be received by the sensing data emulation module. In the method, the sensing data acquisition and simulation integrated software is completely consistent with the real acquisition except for adjusting communication interface parameters such as serial numbers and the like.
The upper layer data simulation method is that the sensing data simulation module simulates original sensing data returned by the sensing equipment. In the method, the sensing data simulation module can be deployed on the edge node or the cloud server to form upper layer data simulation cloud service, but the simulation service is provided through a network wherever the sensing data simulation module is deployed. When the upper layer data simulation method is adopted, the configuration of sensing data acquisition and simulation integrated software is required to be changed, the data acquisition command group which is sent to the command transparent transmission module in an actual acquisition mode is used as a call parameter to be sent to the upper layer data simulation cloud service, or the command transparent transmission module forwards the data acquisition command group to the upper layer data simulation cloud service. After the upper layer data simulation cloud service receives the data acquisition command group, generating original sensing data according to the model of the sensing equipment, and returning the original sensing data to the sensing data acquisition and simulation integrated software.
The bottom layer interface data simulation method only needs to change the configuration of a communication interface used by the sensing equipment in the sensing data acquisition and simulation integrated software, and the change is small, so that the method can be used for providing simulation sensing data for the sensing data acquisition and simulation integrated software designed by the scheme and also can provide simulation sensing data for other data acquisition software supporting the communication interface of the configurable sensing equipment; while the upper layer data emulation method requires support for changes to command transmission behavior. Although the upper layer data simulation method needs to change the command sending behavior, the method can realize one-place deployment and multiple-place calling by virtue of the independent deployment mode.
The sensing data simulation module not only can simulate the interaction logic, the acquisition behavior and the sensing data of the sensing equipment, but also has the function of simulating common faults of the sensing equipment in use, and mainly comprises three types of disconnection, error code and error reporting. Wherein, disconnection refers to the situation that the sensing equipment cannot normally communicate with the sensing data acquisition and simulation integrated software because of the fault of a communication line in the use process of the sensing equipment; the error code refers to the situation that in the using process of the sensing equipment, due to electromagnetic disturbance in the environment or a communication line or the equipment itself is faulty, a certain or some fragments in the sensing data are wrong; the fault reporting refers to the situation that the sensing equipment detects the fault and returns a fault code, such as unconnected sensors or measurement parameter overscales. The sensing data simulation module supports setting whether to add faults, what faults are added in the simulation process, the occurrence frequency of the faults and the like by changing the configuration file.
Embodiment two:
In a second embodiment of the method for designing integrated software for scalable sensing data collection and simulation provided by the present invention, as shown in fig. 2, an independent deployment embodiment of the method for designing integrated software for scalable sensing data collection and simulation is shown, in this embodiment, the embodiment is a pair of multiple modes in an independent deployment mode, that is, one data collection module can interact with multiple command transparent transmission modules. In the independent deployment mode, the command transparent transmission module is deployed on the edge node, the data acquisition module is deployed on the cloud server, and the command conversion sub-module, the data analysis sub-module and the sensing data simulation module are all independently deployed as cloud services. The data analysis cloud service, the command conversion cloud service and the upper layer data simulation cloud service provide public services outside through a network. In addition, in the edge node 1, the sensor data simulation module performs simulation by adopting a bottom layer interface data simulation method, and corresponds to the bottom layer interface data simulation module in the edge node 1.
In an independent deployment mode, the data acquisition module provides an interface for acquiring sensing data for the application software of the Internet of things, and when the data acquisition module is called, an acquisition instruction is required to be used as a parameter, and a return value is formatted sensing data. The command conversion cloud service can convert the acquisition command into a sensing device data acquisition command, the service call parameter is the acquisition command, and the return value is the converted data acquisition command group. The data analysis cloud service can convert the original sensing data into formatted sensing data, the service calling parameter is the original sensing data, and the return value is the sensing parameter value extracted from the original sensing data. The command transparent transmission module provides a command sending interface for the data acquisition module, the calling parameter is a data acquisition command group, and the return value is the original sensing data returned by each sensing device. The upper layer data simulation cloud service provides simulation service to the outside through the network, the service calling parameter is a data acquisition command, and the return value is simulation sensing data.
In the one-to-many, many-to-many modes of the independent deployment mode, the data acquisition module needs to interact with the command transparent transmission modules to acquire sensing data therefrom, so that in the mode, the data acquisition module comprises a corresponding relation list of sensing parameters and the command transparent transmission modules, and the command transparent transmission module to which the data acquisition command is sent is determined.
The complete acquisition flow is sequentially divided into five processes of command receiving, command conversion, equipment interaction, data analysis and data return, and each process needs different modules and cloud services to be matched with each other so as to complete the appointed task.
Step one: in data acquisition, the application software of the Internet of things firstly generates an acquisition instruction, then calls an acquisition sensing data interface provided by a data acquisition module, and sends the acquisition instruction as a parameter to the data acquisition module; after the data acquisition module receives the acquisition instruction, determining sensing equipment corresponding to the instruction and a data acquisition command required for acquiring the sensing data; specifically, the data acquisition module maintains a sensing parameter corresponding list, the list records sensing equipment and the model thereof corresponding to each sensing parameter, and firstly, the data acquisition module converts an acquisition instruction into a sensing parameter triplet (parameter relative ID, equipment number and equipment model) according to the sensing parameter corresponding list, wherein the parameter relative ID refers to the ID of the parameter in the sensing equipment; because the sensing parameters appointed in the acquisition instruction may need to be acquired from a plurality of sensing devices, one acquisition instruction may be often converted into a plurality of sensing parameter triples to form a sensing parameter triplet list; and then, the data acquisition module calls the command conversion cloud service and sends the sensing parameter triplet list as a parameter to the command conversion cloud service.
Step two: the command conversion cloud service comprises a communication protocol class library, wherein each class in the class library corresponds to a model of sensing equipment; the command conversion cloud service realizes conversion from the acquisition command to the identifiable data acquisition command of the sensing equipment by means of the communication protocol class library; after receiving the sensing parameter triplet list sent by the data acquisition module, the command conversion cloud service determines a communication protocol according to the equipment model, further determines a communication protocol class library to be called, determines specific parameters to be requested according to the relative ID of the parameters, and therefore forms a data acquisition command group for acquiring the specified sensing parameter value from the sensing equipment, and returns the data acquisition command group to the data acquisition module.
Step three: after receiving a data acquisition command group returned by the command conversion cloud service, the data acquisition module calls a command transmission interface provided by the command transmission module, and sends the data acquisition command group and sensing equipment IDs corresponding to the commands to the command transmission module as parameters; the command transparent transmission module records the ID, model, type and parameter information of each connected sensing device; after receiving the data acquisition command, the command transparent transmission module firstly determines the type of a communication interface and communication parameters used by the command according to the ID of the sensing equipment in the command, establishes connection between the edge node and the sensing equipment according to the information, and sends the data acquisition command to the sensing equipment through the connection; after a period of time, the sensing device returns original sensing data, the command transparent sensing module establishes an original sensing data dictionary after receiving the original sensing data, keys of key value pairs in the dictionary are sensing device ids, the values are original sensing data corresponding to the device, and then the original sensing data dictionary is returned to the data acquisition module.
Step four: the data returned by the command transparent transmission module is original sensing data directly returned by the sensing equipment without any processing; the sensing data are packaged according to respective communication protocols, so that the sensing parameter values can be extracted only by analyzing the sensing data in combination with the communication protocols; after receiving the original sensing data returned by the command transparent sensing module, the data acquisition module firstly integrates the data according to the corresponding relation between the parameters and the sensing equipment to form sensing data triples, wherein the format is (parameter number, equipment model, original sensing data), and the sensing data triples from a plurality of sensing equipment are combined together to form a sensing data triples list; then the data acquisition module calls a data analysis cloud service and sends the sensing data triplet list as a parameter to the data analysis cloud service; the data analysis cloud service comprises data analysis classes, each data analysis class corresponds to one sensing equipment model, the data analysis cloud service analyzes the original sensing data by means of the data analysis classes, and extracts sensing parameter values corresponding to parameter numbers in the sensing data triples and returns the sensing parameter values to the data acquisition module.
Step five: after receiving the sensing parameter values returned by the data analysis cloud service, the data acquisition module recombines the sensing parameter values according to the sensing parameter numbers specified in the acquisition instructions, and then generates formatted sensing data identifiable by the application software of the Internet of things according to a format agreed with the application software of the Internet of things, and returns the formatted sensing data to the application software of the Internet of things.
So far, the data acquisition process is completed.
In the independent deployment mode, the plurality of data analysis modules can call the same command conversion cloud service and data analysis cloud service, and the plurality of command transparent transmission modules can also call the same upper layer data simulation cloud service. Because the three functions of command conversion, data analysis and sensing data simulation are realized by combining the communication protocol of the equipment, when a new type of equipment is added or the communication protocol of the equipment is modified in an independent deployment mode, only cloud service is required to be modified, and each data acquisition module or command transparent transmission module is not required to be adjusted, so that the workload brought by the adjustment of the communication protocol can be remarkably reduced. And the deployed command conversion, data analysis and upper layer data simulation cloud service all provide public service to the outside, and can be called by a plurality of data acquisition modules, so that the distributed deployment of the sensing data acquisition and simulation integrated software is facilitated, the cloud multiplexing rate of the designed modules and software is improved, and the workload of software updating and maintenance is reduced.
In the independent deployment mode, one data acquisition module can acquire data from a plurality of command transparent transmission modules, and one command transparent transmission module can also send sensing data to a plurality of data acquisition modules.
In this embodiment, two methods, i.e., bottom layer interface data simulation and upper layer data simulation, are used to provide simulation sensing data, which respectively correspond to the bottom layer interface data simulation module in the edge node 1 and the upper layer data simulation cloud service called by the edge node 2. When the bottom interface data simulation method is used, taking the edge node 1 as an example, a bottom interface data simulation module adds virtual communication interfaces corresponding to each sensing device, and the calling methods, parameters and real communication interfaces of the virtual communication interfaces are completely consistent; the data acquisition command can be sent to the bottom interface data simulation module through the virtual communication interface by changing the communication interface parameter configuration in the command transparent transmission module; the bottom layer interface data simulation module records the model of the sensing equipment corresponding to each virtual communication interface, generates simulated sensing data according to the data acquisition command and the model of the sensing equipment corresponding to the virtual communication interface after receiving the data acquisition command, and returns the simulated sensing data to the command transparent transmission module. When the upper layer data simulation method is used, taking the edge node 2 as an example, the configuration of the command transparent transmission module is required to be changed, the interaction process of the three devices is changed into the process that the command transparent transmission module calls the upper layer data simulation cloud service, and the data acquisition command group and the device model are used as call parameters and transmitted to the upper layer data simulation cloud service. The upper layer data simulation cloud service generates corresponding simulation sensing data according to the parameters, and returns the corresponding simulation sensing data to the command transparent transmission module as a result. Since the simulated sensing data is identical in format to the real sensing data, and follows a communication protocol consistent with the real sensing device, other links are identical to the real acquisition.
Embodiment III:
In the third embodiment of the design method of the scalable sensing data acquisition and simulation integrated software provided by the invention, as shown in fig. 3, in the embodiment, a centralized deployment embodiment of the design method of the scalable sensing data acquisition and simulation integrated software is shown, and in the centralized deployment mode, application software of the internet of things, a data acquisition module, a command transparent transmission module, a command conversion sub-module, a data analysis sub-module and a bottom interface data simulation module are all deployed on the same edge node.
In the centralized deployment mode, the data acquisition module, the command transparent transmission module, the command conversion sub-module, the data analysis sub-module and the bottom layer interface data simulation module only provide interfaces for other modules on the edge node, but not provide public services. Specifically, the data acquisition module provides an interface for acquiring sensing data for the application software of the Internet of things, and when the interface is called, an acquisition instruction is required to be used as a parameter, and a return value is formatted sensing data. The command conversion sub-module provides a command conversion interface for the data acquisition module, the calling parameter is an acquisition instruction, and the return value is a converted data acquisition command group. The data analysis sub-module provides a data analysis interface for the data acquisition module, the calling parameter is the original sensing data, and the return value is the sensing parameter value extracted from the original sensing data. The command transparent transmission module provides a command sending interface for the data acquisition module, the calling parameter is a data acquisition command group, and the return value is the original sensing data returned by each sensing device.
The data acquisition flow in the centralized deployment mode is basically consistent with the independent deployment mode, and the main difference is that the data analysis cloud service, the command conversion cloud service and the sensing data simulation cloud service deployed in the cloud in the independent deployment mode are changed into a data analysis sub-module, a command conversion sub-module and a sensing data simulation module on the edge node in the independent mode.
In the centralized deployment mode, interaction time of each module and each sub-module only occurs in the edge node, so that the interaction time is far lower than that of the independent deployment mode. The centralized deployment mode is suitable for application scenes in which sensing equipment to be acquired is relatively few, the equipment state is relatively stable, the need of newly adding or replacing the sensing equipment is avoided, the acquisition period is particularly short, and the acquisition frequency is extremely high.
In this embodiment, the sensing data simulation module uses a bottom layer interface data simulation method to simulate the sensing device. Specifically, the bottom layer interface data simulation module adds virtual communication interfaces corresponding to each sensing device, and calling methods, parameters and real communication interfaces of the virtual communication interfaces are completely consistent; therefore, the data acquisition command sent to the real sensing equipment can be changed into the data simulation module of the bottom interface through the virtual communication interface only by changing the parameters of the communication interface in the configuration of the sensing equipment, and the data simulation module of the bottom interface generates simulation sensing data according to the equipment type corresponding to the virtual communication interface and returns the simulation sensing data to the command transparent transmission module. In the process, the operation flow and the actual collection of the data collection module, the command transparent transmission module, and the command conversion and data analysis sub-modules are completely consistent.

Claims (6)

1. The utility model provides a scalable sensing data gathers and emulation integration software design method, comprises the software module, the software module includes data acquisition module, command pass through module and sensing data emulation module, sensing data gathers and emulation integration software upper strata and thing networking application software interaction, and the lower floor gathers data from sensing equipment or thing networking gateway, its characterized in that:
The data acquisition module comprises a submodule, wherein the submodule comprises a command conversion submodule and a data analysis submodule;
The acquisition task is cooperatively completed by the data acquisition module and the command transparent transmission module;
the sensing data acquisition and simulation integrated software is used for acquiring real sensing data or providing simulation sensing data;
The sensing data simulation module simulates the gateway of the Internet of things and the sensing equipment, and provides two simulation methods of bottom layer interface data simulation and upper layer data simulation and simulation of faults in the using process of the sensing equipment;
the sensing data acquisition and simulation integrated software structure is telescopic, and the software module and the submodule adopt cloud edge cooperative architecture, so that two deployment modes of centralized deployment and independent deployment are provided;
The command transparent transmission module is used for establishing connection between the sensing data acquisition and simulation integrated software and the sensing equipment by using an actual communication interface according to a communication protocol of the sensing equipment or the gateway of the Internet of things, providing command sending service and data acquisition service which are irrelevant to the communication interface for the data acquisition module, and realizing the transparency of the communication interface; the command transparent transmission module is communicated with other modules through a network;
the sensing data acquisition process comprises the following steps:
Step one: the data acquisition module receives an acquisition instruction sent by the application software of the Internet of things;
Step two: the data acquisition module calls the command conversion sub-module to convert an acquisition command into a data acquisition command group and then sends the data acquisition command group to the command transparent transmission module;
step three: after receiving the data acquisition command group, the command transparent transmission module sends each command to a corresponding sensing device or an Internet of things gateway, receives the returned original sensing data and forwards the original sensing data to the data acquisition module;
Step four: the data acquisition module calls the data analysis sub-module to analyze the original sensing data and extract the sensing parameter values contained in the original sensing data;
step five: formatting the sensing parameter values to generate formatted sensing data and sending the formatted sensing data to the application software of the Internet of things;
The sensing data acquisition and simulation integrated software adopts a cloud edge cooperative architecture, and the data acquisition module, the command transparent transmission module, the command conversion sub-module, the data analysis sub-module and the sensing data simulation module have two modes of centralized deployment and independent deployment; the centralized deployment means that all modules are merged and deployed on the same device, and the independent deployment means that the software modules and the submodules are deployed on different cloud servers and edge gateway devices; in the independent deployment mode, the interaction relationship between the data acquisition module and the command transparent transmission module comprises four types of one-to-one, one-to-many, many-to-one and many-to-many.
2. The method for designing the scalable sensing data acquisition and simulation integrated software according to claim 1, wherein the command conversion sub-module converts an acquisition command into one or more data acquisition commands identifiable by sensing devices according to the corresponding relation between the sensing parameters and the sensing devices to form a data acquisition command group, wherein each command corresponds to one sensing device; the command conversion sub-module communicates with other modules via a network.
3. The method for designing the scalable sensing data acquisition and simulation integrated software according to claim 2, wherein the data analysis submodule receives original sensing data, analyzes the original sensing data according to a communication protocol, extracts sensing parameter values in the original sensing data, and converts the original sensing data into formatted sensing data identifiable by the application software of the internet of things according to a data format agreed with the application software of the internet of things; the data analysis sub-module is communicated with other modules through a network.
4. The method for designing scalable sensing data acquisition and simulation integration software according to claim 3, wherein the sensing data acquisition and simulation integration software is used for acquiring real sensing data and simulation sensing data; the real sensing data acquisition means that in an actual application scene, the data acquisition module acquires real sensing data through the command transparent transmission module; the simulation sensing data acquisition means that in a development or debugging environment, the data acquisition module calls the sensing data simulation module through the command transparent transmission module to simulate sensing equipment or an Internet of things gateway.
5. The scalable sensing data acquisition and simulation integrated software design method according to claim 4, wherein the sensing data simulation module provides two simulation methods, namely bottom layer interface data simulation and upper layer data simulation;
The bottom layer interface data simulation is to simulate the sensing equipment, the sensing data simulation module interacts with the command transparent transmission module through a virtual communication interface, and simulate command interaction logic, data acquisition behaviors and sensing data formats;
The upper layer data simulation is to simulate the original sensing data, the sensing data simulation module interacts with the command transparent transmission module through a network, receives the data acquisition command group, generates simulated sensing data with the same format as the real sensing data, and returns the simulated sensing data to the command transparent transmission module.
6. The method for designing the scalable sensing data acquisition and simulation integrated software according to claim 5, wherein the sensing data simulation module provides simulation of faults in the use process of the sensing equipment, and the simulation comprises three faults of disconnection, error code and error reporting; the sensing data simulation module provides a fault configuration function, and particularly sets whether faults are added, what faults are added and the occurrence frequency of the faults in the simulation process.
CN202410634241.5A 2024-05-22 2024-05-22 Telescopic sensing data acquisition and simulation integrated software design method Active CN118245030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410634241.5A CN118245030B (en) 2024-05-22 2024-05-22 Telescopic sensing data acquisition and simulation integrated software design method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410634241.5A CN118245030B (en) 2024-05-22 2024-05-22 Telescopic sensing data acquisition and simulation integrated software design method

Publications (2)

Publication Number Publication Date
CN118245030A CN118245030A (en) 2024-06-25
CN118245030B true CN118245030B (en) 2024-08-02

Family

ID=91551180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410634241.5A Active CN118245030B (en) 2024-05-22 2024-05-22 Telescopic sensing data acquisition and simulation integrated software design method

Country Status (1)

Country Link
CN (1) CN118245030B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189534A (en) * 2021-10-27 2022-03-15 中国海洋大学 Design method of device interaction software simulation program in Internet of things system
CN114415630A (en) * 2021-12-30 2022-04-29 中国航空工业集团公司西安飞机设计研究所 Comprehensive test platform and method for airplane management system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101182215B1 (en) * 2011-03-11 2012-09-12 국방과학연구소 Network simulator and method for simulating network
CN104601665B (en) * 2014-12-22 2017-11-03 西安电子科技大学 A kind of system and method that high in the clouds real-time simulation is carried out to Internet of Things awareness apparatus
CN111194539A (en) * 2017-12-29 2020-05-22 西门子股份公司 Method, apparatus and computer-readable storage medium for providing cloud platform virtual resources
CN113051031B (en) * 2021-03-22 2024-02-09 中国人民解放军32801部队 Container cluster deployment method of visual artificial intelligence system simulation platform
CN114189453A (en) * 2021-11-09 2022-03-15 青岛华智信息科技有限公司 Design method of virtual-real hybrid simulation software system of intelligent sensing equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189534A (en) * 2021-10-27 2022-03-15 中国海洋大学 Design method of device interaction software simulation program in Internet of things system
CN114415630A (en) * 2021-12-30 2022-04-29 中国航空工业集团公司西安飞机设计研究所 Comprehensive test platform and method for airplane management system

Also Published As

Publication number Publication date
CN118245030A (en) 2024-06-25

Similar Documents

Publication Publication Date Title
CN105006017B (en) Three-dimensional scenic emulation mode is generated based on Unity dynamic techniques
CN105045970B (en) Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic
CN101826018B (en) Interactive development system and method for interface of network element management system
CN112925646A (en) Electric power data edge calculation system and calculation method
CN114422010B (en) Protocol testing method of satellite communication simulation platform based on network virtualization
CN104484166A (en) Graphical modeling device and method for automatic testing system
Comer et al. Toward disaggregating the SDN control plane
CN103595550A (en) Network-topology displaying method for EOC device
CN102135889B (en) Method for rapidly constructing embedded system communication way
CN103078920A (en) Online information verification system based on international electrotechnical commission (IEC) 61968 enterprise service bus (ESB)
CN113572815A (en) Communication technology method, system and medium for crossing heterogeneous platforms
CN110018392A (en) A kind of test macro of electrical power distribution automatization system main website
CN106027674A (en) Technology architecture of "Internet & smart manufacturing"
GB2415806A (en) A dynamic software integration architecture
CN118245030B (en) Telescopic sensing data acquisition and simulation integrated software design method
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
TWI651667B (en) Interface system of virtual and physical integrated network with resources topology
CN115333787A (en) Automatic safety testing method, system and storage medium for 5G industrial control network system
CN118068727B (en) Digital twin software and hardware access integrated system
CN112286073A (en) Communication interface device and method for closed-loop simulation of power system
CN111506357A (en) Automatic dynamic library loading method, system and application
CN114004050B (en) Blueprint configuration tool software for Rapidio network topology design
CN107563075A (en) A kind of module and its design method for realizing CosiMate networks and the DDS network interconnections
CN106557601A (en) A kind of transmission line of electricity emulation mode
CN111600756A (en) Communication interface device, system and method for control system in-loop real-time simulation experiment

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