CN114189534A - Design method of device interaction software simulation program in Internet of things system - Google Patents

Design method of device interaction software simulation program in Internet of things system Download PDF

Info

Publication number
CN114189534A
CN114189534A CN202111255922.3A CN202111255922A CN114189534A CN 114189534 A CN114189534 A CN 114189534A CN 202111255922 A CN202111255922 A CN 202111255922A CN 114189534 A CN114189534 A CN 114189534A
Authority
CN
China
Prior art keywords
data
software
simulation program
interaction
device interaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111255922.3A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111255922.3A priority Critical patent/CN114189534A/en
Publication of CN114189534A publication Critical patent/CN114189534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a design method of a device interaction software simulation program in an Internet of things system, and belongs to the technical field of Internet of things. The close coupling of the upper software system with the device interaction software and the underlying smart device increases the economic and time costs of debugging the upper software system. The device interaction software simulation program can simulate the interaction function and process of real device interaction software and an upper layer software system, and comprises five functional modules: the device comprises a communication interaction module, a configuration file management module, a data simulation module, a data display module and a log module. The method can simulate the interaction process of real equipment interaction software and an upper software system, so that the upper software system is debugged without depending on the equipment interaction software and the bottom intelligent equipment, the time cost and the economic cost for debugging the upper software system are reduced, and the building and debugging efficiency of the Internet of things system is improved.

Description

Design method of device interaction software simulation program in Internet of things system
Technical Field
The invention relates to the technical field of Internet of things, in particular to a design method of a device interaction software simulation program in an Internet of things system.
Background
The technology of the internet of things can break a data island, improve the management efficiency of data and provide great convenience for life and work. But currently, the upper software system is tightly coupled to the underlying smart device. For a specific relevant scene and problem, the type of the intelligent device connected with the upper layer software system is fixed, and the data acquisition code between the upper layer software system and the intelligent device is also fixed and bound. The system implementation of such tight coupling makes the debugging of the upper layer software system extremely dependent on the device interaction software and the underlying intelligent device. This results in that testing and debugging for the upper layer software system must be performed in a given application scenario, which increases the time cost and economic cost of upper layer software system debugging, which brings difficulties to the development and deployment of the internet of things system.
Disclosure of Invention
In order to solve the problems, the invention provides a design method of a device interaction software simulation program in an internet of things system.
The technical scheme of the invention is as follows:
according to the design method of the device interaction software simulation program in the Internet of things system, the device interaction software can acquire the sensing data of the intelligent device. The device interaction software simulation program can simulate the interaction function and process of real device interaction software and an upper layer software system, and comprises five functional modules: the device comprises a communication interaction module, a configuration file management module, a data simulation module, a data display module and a log module.
The communication interaction module is the basis of the communication interaction between the device interaction software simulation program and the upper layer software system. The communication protocol used by the device interaction software simulation program and the upper layer software system is consistent with the communication protocol used by the real device interaction software and the upper layer software system.
Specifically, the upper software system sends a data acquisition command of the intelligent device to the device interaction software simulation program, and when the device interaction software simulation program receives the data acquisition command, the device interaction software simulation program reads the simulation data from the data source and returns the data according to a communication protocol used by the real device interaction software and the upper software system.
The configuration file management module separates easily-changed interactive configuration information and the like from the program source codes, and stores the interactive configuration information and the like by using the configuration files, so that the expansibility and the flexibility of the program are improved. The configuration files of the equipment interaction software simulation program comprise a data acquisition configuration file, a software interaction configuration file and a data source configuration file.
Specifically, the data collection configuration file is a core configuration file of the device interaction software simulation program, and records and stores the intelligent device to be processed by the device interaction software simulation program and the detailed information of the intelligent device.
Specifically, the software interaction configuration file stores information such as an IP address and a port number used when the device interaction software emulation program interacts with the upper layer software system.
Specifically, the data source configuration file stores data source information of the sensing parameters in the program, and each time when the program runs, if the modification of the data source needs to be stored, the data source modified this time is automatically written into the file by the program, and the data source information is read from the file when the software runs next time.
The data simulation module takes the sensing parameters as units and modifies the data source used by each sensing parameter, thereby regulating the simulation data. The data simulation module provides various types of simulation data for selection and has the functions of simulation data configuration and data source configuration storage.
The data display module displays the following three contents:
(1) the detailed information of the data acquisition configuration file comprises information such as an intelligent device ID, an intelligent device name, an intelligent device model, used communication interface parameters, all sensing parameters planned to be acquired by the intelligent device and the like. The name, unit, and analog data in the data source for each sensing parameter may also be viewed.
(2) Commands from the upper software system and simulated sensor data for the current acquisition cycle.
(3) The data sources used for simulating the sensing data and the detailed configuration parameter information of each data source.
Preferably, the interface can not only display contents, but also set data sources used by the sensing parameters to be a straight data source, a sine wave data source, a triangular wave data source, a square wave data source, a pulse wave data source, a history file data source and a null data source. The sensor can be configured by a single sensing parameter or a plurality of sensing parameters simultaneously.
The log module stores information in the program running process in the form of log files.
The device interaction software simulation software can solve the problem of difficult test verification of an upper-layer software system caused by tight coupling of software and hardware equipment, and the system can be widely applied to the fields of intelligent industry, intelligent home and the like and provides test verification service for solutions of the Internet of things. By means of the software, debugging and testing of an upper-layer software system do not depend on real equipment interaction software and bottom-layer intelligent equipment, time for overall construction of a solution of the Internet of things is saved, labor cost and resource cost are reduced, and correctness, reliability and robustness of the upper-layer software system and the equipment interaction software can be verified.
Drawings
Fig. 1 is a general structural view of the present invention.
FIG. 2 is a main interface of the device interaction software simulation program of the present invention.
Fig. 3 is a detailed information interface of the apparatus of the present invention.
FIG. 4 is a single device parameter data source configuration interface of the present invention.
FIG. 5 is a configuration interface for all device parameter data sources according to the present invention.
Detailed Description
The invention is described in further detail below with reference to the following figures and detailed description:
as shown in fig. 1, the device interaction software simulation program in the internet of things system of the present invention includes five functional modules: the device comprises a communication interaction module, a configuration file management module, a data simulation module, a data display module and a log module. The device interaction software simulation program can simulate the functions and processes of the interaction between the real device interaction software and the upper-layer software system.
1. Communication interaction module
The communication interaction module is the basis of interaction between the device interaction software simulation program and the upper-layer software system. And after the equipment interaction software simulation program is started and initialized, waiting for the upper layer software system to send a data acquisition command of the intelligent equipment. The workflow is explained below.
The device interaction software simulation program starts a data acquisition cycle each time a data acquisition command sent by an upper software system is received, and each acquisition cycle can be divided into three links, which are described as follows:
step 1: and the equipment interaction software simulation program receives a command sent by the upper layer software system to obtain a parameter list needing to return data.
Step 2: the simulation data, which is typically actual numerical values represented as floating point numbers, is generated based on the data source and associated configuration items selected by the data source configuration file.
And step 3: and the equipment interaction software simulation program sends the parameter values to the upper layer software system according to the agreed protocol.
At this point, data acquisition for one cycle is completed.
2. Configuration management module
The configuration files managed by the configuration management module comprise a data acquisition configuration file, a software interaction configuration file and a data source configuration file. These 3 profiles will be explained separately below.
1) Data acquisition configuration file
The data acquisition configuration file is a core configuration file of the equipment interaction software simulation program, and records and stores the intelligent equipment to be processed by the equipment interaction software simulation program and the sensing parameter information required to be acquired by each intelligent equipment. When the device interaction software simulation program is initialized, the content of the data acquisition configuration file is read, the storage information stored in the data acquisition configuration file is acquired, and the initialization is completed.
2) Software interaction profile
When the interactive information needs to be modified, only the corresponding content in the configuration file needs to be modified, and the source code of the program does not need to be changed, so that the expandability and the flexibility of the program are improved.
3) Data source configuration file
When the device interactive software simulation program is initialized, a data source configuration file is read, the file is used for configuring and storing data source information of sensing parameters in the program, when the program is operated to finish each time, if the storage and modification are determined, the data source modified this time is automatically written into the file by the program, and the data source information is read from the file when the software is operated next time. The data source configuration file comprises names and global ID information used for describing parameters, and the selected data source information comprises: the data processing method comprises the following steps of configuring information of a linear data source, configuring information of a pulse wave data source, configuring information of a square wave data source, configuring information of sine wave data, configuring information of a triangular wave data source, configuring information of a file data source and configuring information of a null data source. The file data source is locally stored analog sensing data.
3. Data simulation module
The simulation data configuration function of the data simulation module is realized by carrying out custom configuration on single or multiple sensing parameters. The user can self-define the data sources such as various different linear data, sine wave data, square wave data, pulse wave data and the like for the sensing parameters, and can also directly read the sensing data from the data source file storing the sensing data of the intelligent equipment.
The data source configuration and storage function of the data simulation module is realized through a data source configuration file. When the program is started for the first time, the data source configuration file is empty, and the initial default data sources of all the sensing parameters in the program are unified into a straight line data source. When a user modifies and stores data sources used by certain sensing parameters, the data source configuration file stores modification information, so that the data source configuration storage function is realized. The next time the program is initialized, the sensing parameters are configured using the data source in the configuration file.
4. Data display module
The data display module is a software interface of the equipment interaction software simulation program and is divided into a main interface, an equipment detailed interface and a data source configuration interface.
Specifically, the main interface of the device interaction software simulation program is shown in fig. 2. The upper part of the main interface is a data list. Each row of the data list may display the ID of the smart device, the device name, the device model, the interface name, the detailed parameters of the interface, the detailed information skip button, the status information, and the return simulation data of the first 10 sensing parameters of the smart device. If the sensing parameters of one intelligent device are too much, the main interface can not display all the sensing parameter data, and the detail skip button can be clicked to skip to the detailed information interface of the device, so that all the sensing parameter information can be checked. The command receiving area below the main interface may display the received commands in reverse chronological order.
The device detailed information interface is shown in fig. 3. The device detailed information interface takes certain intelligent device as a display unit, and can display various information of the intelligent device in detail, including device name, device model, interface name and interface parameters; the serial number of the sensor, the name of the sensor and the numerical value of the intelligent device can also be displayed.
Clicking the "configure current device data source" button in fig. 3 presents a single device parameter data source configuration interface, as shown in fig. 4, where the data source of the sensing parameters of the current device may be configured. In fig. 4, taking the high-precision digital power meter WT310 device as an example, the left side of the interface may display the global ID, the relative ID, the parameter name and the data source of the corresponding sensing parameter, and when one sensing parameter is selected on the left side, the content on the right side is changed accordingly and the data source configuration information of the sensing parameter is filled. The right-side "parameter selection input box" can input the global ID of the sensing parameter to be modified currently, and the input rule can be viewed by hovering a mouse over the right-side exclamation mark, and the specific contents are as follows:
1) single or multiple sensing parameter selections may use commas in english "," separated ". Such as "1, 3, 4".
2) The range selection may use a '-' English dash. If sensing parameters with global IDs 1 to 5 are selected, the "1-5" may be filled, and if sensing parameters with global IDs 5 and all subsequent sensing parameters may be filled with the "5-".
3) The two modes can be combined for use, and English commas are used for separation. Such as: "1, 3-10, 15-" indicates that all of the sensing parameters with IDs of 1,3 to 10,15 and thereafter are selected.
4) For illegal global ID content, the program will have a corresponding error prompt.
Preferably, a "data source drop-down box" may select a data source for a selected parameter in the parameter selection; the "data source detailed configuration panel" may load a corresponding configuration panel according to different data source selections, where specific data source information may be configured. After the modification is completed, the 'save modification' button can be clicked to save. If the situation that the data source interfaces cannot be synchronously updated occurs when a plurality of data source interfaces are opened simultaneously, a refresh button can be clicked to synchronously display. After the saving is completed, the user can click an exit button or close the interface at the upper right corner.
Preferably, the "detailed configuration of data Source" panel in the data Source configuration interface can input customized configuration information, where a user can customize a certain data Source. The detailed panel of data sources includes "straight line function configuration", "sine wave function configuration", "triangular wave function configuration", "square wave function configuration", "pulse wave function configuration", "file data configuration", and "null data configuration".
Clicking on the "configure all device data sources" button in FIG. 3 presents an all device parameter data sources configuration interface, as shown in FIG. 5, where the data sources for all sensing parameters of all smart devices can be configured.
5. Log module
The log module stores process information of the device interaction software simulation program during operation and locally stores an operation log. The running log is divided by date, and when the program runs abnormally, a tester can debug by means of the log.
The above description is not intended to limit the present invention, and the present invention is not limited to the above examples, and variations, modifications, additions and substitutions which may be made by those skilled in the art within the spirit of the present invention are within the scope of the present invention.

Claims (10)

1. A design method of a device interaction software simulation program in an Internet of things system is disclosed, wherein the device interaction software can acquire sensing data of intelligent devices; the device interaction software simulation program can simulate the functions and processes of the real device interaction software communicating with an upper layer software system through a uniform interface, and comprises five functional modules: the device comprises a communication interaction module, a configuration file management module, a data simulation module, a data display module and a log module.
2. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the device interaction software simulation program is communicated with the upper layer software system, and acquires and executes related commands of the upper layer software system.
3. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the communication interaction module is the basis of the communication interaction between the device interaction software simulation program and the upper layer software system, and the used communication protocol is consistent with the communication protocol used when the real device interaction software is communicated with the upper layer software system.
4. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the configuration file module separates the configuration information which is easy to change from the program source code, and stores the configuration information by using the configuration file, thereby improving the expansibility and flexibility of the program.
5. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the configuration files of the equipment interaction software simulation program comprise a data acquisition configuration file, a software interaction configuration file and a data source configuration file.
6. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the data acquisition configuration file records and stores detailed information of the intelligent equipment processed by the equipment interaction software simulation program; the software interaction configuration file stores necessary information for interaction with an upper-layer software system; the data source configuration file stores data source information of sensing parameters in the device interaction software simulation program.
7. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the data simulation module can directly read the sensing data from the data source for storing the sensing data and can generate virtual sensing data according to the requirement.
8. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the data simulation module can modify the data source by taking the sensing parameter as a unit, so as to adjust the simulated sensing data.
9. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the data display module displays detailed information of a data acquisition configuration file, commands from an upper-layer software system, simulation data of the current acquisition period simulation of the intelligent equipment, data sources used by all sensing parameters and detailed configuration parameter information of each data source through a software interface.
10. The method for designing the device interaction software simulation program in the internet of things system according to claim 1, wherein the method comprises the following steps: the log module stores information in the program running process in the form of a log file, so that a user can check the running state of the program.
CN202111255922.3A 2021-10-27 2021-10-27 Design method of device interaction software simulation program in Internet of things system Pending CN114189534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111255922.3A CN114189534A (en) 2021-10-27 2021-10-27 Design method of device interaction software simulation program in Internet of things system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111255922.3A CN114189534A (en) 2021-10-27 2021-10-27 Design method of device interaction software simulation program in Internet of things system

Publications (1)

Publication Number Publication Date
CN114189534A true CN114189534A (en) 2022-03-15

Family

ID=80601599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111255922.3A Pending CN114189534A (en) 2021-10-27 2021-10-27 Design method of device interaction software simulation program in Internet of things system

Country Status (1)

Country Link
CN (1) CN114189534A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577439A (en) * 2015-12-24 2016-05-11 江苏飞尚安全监测咨询有限公司 Simulation method based on sensing device
CN106027319A (en) * 2016-07-22 2016-10-12 中国科学院计算技术研究所 Simulation IOT resource service system and method
US20170364612A1 (en) * 2016-06-15 2017-12-21 International Business Machines Corporation Simulation of internet of things environment
US20190068455A1 (en) * 2017-08-31 2019-02-28 Artis Consulting, L.P. System and Method for IoT Device Signal Simulation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577439A (en) * 2015-12-24 2016-05-11 江苏飞尚安全监测咨询有限公司 Simulation method based on sensing device
US20170364612A1 (en) * 2016-06-15 2017-12-21 International Business Machines Corporation Simulation of internet of things environment
CN106027319A (en) * 2016-07-22 2016-10-12 中国科学院计算技术研究所 Simulation IOT resource service system and method
US20190068455A1 (en) * 2017-08-31 2019-02-28 Artis Consulting, L.P. System and Method for IoT Device Signal Simulation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
赵亮、彭海龙、张静: "卫星应用系统产品归档子系统的研究与实现", 《微计算机信息》 *
陈光、车兆东,郭忠文: "智能采集设备仿真系统设计与实现", 《现代电子技术》 *

Similar Documents

Publication Publication Date Title
CN110795219B (en) Resource scheduling method and system suitable for multiple computing frameworks
US7908020B2 (en) Architecture for control systems
CN104778124B (en) A kind of software application automated testing method
CN101833498B (en) Automatic detection system of embedded type system based on testing script technique
EP2169541B1 (en) Method, system and graphical user interface for configuring a simulator to simulate a plurality of devices
CN107368408A (en) A kind of software fault towards interface injects automated testing method
JP2008170998A (en) System and method for turbine control simulation
CN112270149B (en) Verification platform automatic integration method and system, electronic equipment and storage medium
US7926024B2 (en) Method and apparatus for managing complex processes
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN108647141A (en) Automatic test approach, device, computer-readable medium and electronic equipment
CN104007957A (en) Graphical user interface editor that displays live data during editing
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN106201803A (en) A kind of general automation based on tested object model test system and method
CN111176984A (en) Signal-oriented automatic test implementation method
CN109933521A (en) Automated testing method, device, computer equipment and storage medium based on BDD
CN114757135B (en) Programmable logic device verification method and system based on demand drive verification
CN113505054B (en) Network data static test system and test method for unmanned aerial vehicle control station
CN106291329A (en) A kind of have the automatic test system detecting and joining the distant function of a terminal three
CN108959094A (en) A kind of definition and methods for using them of the test program based on data structure
CN103092156A (en) Device replaceable automatic test system and method
CN113705143A (en) Automatic simulation system and automatic simulation method
CN114189534A (en) Design method of device interaction software simulation program in Internet of things system
CN103744757B (en) DF file verification method based on ARINC661

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220315

RJ01 Rejection of invention patent application after publication