CN112540744A - Method for constructing embedded software system of industrial automation instrument - Google Patents

Method for constructing embedded software system of industrial automation instrument Download PDF

Info

Publication number
CN112540744A
CN112540744A CN202011419232.2A CN202011419232A CN112540744A CN 112540744 A CN112540744 A CN 112540744A CN 202011419232 A CN202011419232 A CN 202011419232A CN 112540744 A CN112540744 A CN 112540744A
Authority
CN
China
Prior art keywords
software
library
test
constructing
industrial automation
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
CN202011419232.2A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202011419232.2A priority Critical patent/CN112540744A/en
Publication of CN112540744A publication Critical patent/CN112540744A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Abstract

The invention discloses a method for constructing an embedded software system of an industrial automation instrument, which comprises the following steps: s1, constructing a software library, S2, judging user requirements, S3, writing user requirements, S4, integrating basic function codes, S5, testing functions, S6, testing black and white boxes, S7, testing system embedding, S8, ending development and storing, when the invention is used, the basic function code integrating module is used for integrating the similar basic functions in the past project with the new requirements, thereby quickening the embedding time of the software system, improving the working efficiency, and the system is prevented from generating problems through repeated tests such as a function test, a black and white box test, a system embedding test and the like, and the problems of the prior system during the embedded test are stored through the test category library, the problems are recorded, when carrying out secondary development, can in time avoid, and realize automatic SQl through jeepplus and compile, it is comparatively quick to integrate system data, makes things convenient for staff's use, improves work efficiency.

Description

Method for constructing embedded software system of industrial automation instrument
Technical Field
The invention relates to the technical field of industrial automation instruments and meters, in particular to a method for constructing an embedded software system of an industrial automation instrument and meter.
Background
An industrial automation instrument is an instrument for detecting, displaying, recording or controlling process parameters in an industrial production process, and is also called an instrument for detecting, displaying, recording or controlling the process parameters by the industrial instrument or a process detection control instrument. The detection of the process production process is a basic means for understanding and controlling the industrial production, and the smooth production process can be ensured only by accurately knowing the overall view of the process at any moment and controlling the process, and qualified products can be produced with high productivity and small consumption. If the analyzer is subdivided, the analyzer is further divided into an industrial electric conductivity concentration analyzer, an intelligent trace oxygen analyzer, an intelligent infrared gas analyzer and the like. With social progress and scientific and technological development, industrial automation instruments and meters develop towards the trends of digitalization, intellectualization, networking, miniaturization, high performance, high reliability, high stability and optical-mechanical-electrical integration, and higher requirements are put forward on software systems.
The construction of the software system of the existing industrial automation instrument and meter is from zero, a software engineer carries out embedded software coding on a hardware structure according to the functions of the instrument and meter, and actually, a large number of reusable code segments exist in a program written by the software engineer, including various common microcontroller and driver modules of external equipment, the codes are all finished along with the end of one-time product development, are only used once, are not well accumulated and managed, and some basic work must be coded bit by the developer during each development process, this is simple for the skilled engineer, but when rapid development is required, these complex basic functions can be completely avoided, the complicated basic functions occupy a large amount of time in the development process, and therefore, a method for constructing an embedded software system of the industrial automation instrument is provided.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a method for constructing an embedded software system of an industrial automation instrument.
(II) technical scheme
In order to achieve the purpose, the invention provides the following technical scheme: a method for constructing an embedded software system of an industrial automation instrument comprises the following steps:
s1, constructing a software library:
s2, judging user requirements;
s3, compiling user requirements;
s4, integrating basic function codes;
s5, testing functions;
s6, testing by a black and white box;
s7, testing system embedding;
and S8, storing problems after development is finished.
Preferably, the software library comprises a software function name library, a software access interface library, a software storage address library and a software basic information library, wherein the software function name library is used for storing each software function name and searching external keys, the software access interface library is used for storing a software code access interface, the software storage address library is used for storing a software network storage address, and the software basic information library is used for storing basic software information, online date, development completion period, main customers for development and specific software money.
Preferably, the software in the network address of the software stored in the software storage address library is heptataurus cloud, and the software effect screenshot is displayed in the software access interface library by pulling the historical temporary storage interface in the github on line.
Preferably, in the basic code integration, a software jar package stored in the seven-cow cloud is pulled through a network address in a software address library by taking Redis as a middle key, the software library is connected through jeeplus to generate an SQL statement, and the deployment development environment is filled through Meven.
Preferably, the test category library comprises a basic function test problem classification library, a project black and white box test problem classification library and a system embedding test problem classification library, wherein the basic function test problem classification library is used for storing problems occurring when a basic code runs, the black and white box test problem classification library is used for storing problems occurring in black and white box data test, and the system embedding test problem classification library is used for storing problems occurring in system embedding test.
Preferably, in the functional test, whether the test function is available is run through the basic code, and the log with problems is automatically stored in the basic functional test problem classification library.
Preferably, in the black and white box test, the detection function and the coding problem are tested through an interface test and a software structure, and the detection log is stored in the black and white box test problem classification library in a classification mode.
Preferably, in the system embedding test, a virtual operation environment is erected through a virtual machine, test hardware is accessed, a test environment is deployed, system embedding problems are detected, and operation problems are stored in a system embedding test problem classification library.
(III) advantageous effects
Compared with the prior art, the invention provides a method for constructing an embedded software system of an industrial automation instrument, which has the following beneficial effects:
in the use of the invention, through the basic function code integration module, the similar basic functions in the past project are integrated with new requirements, the software system embedding time is shortened, the working efficiency is improved, the system is prevented from generating problems through repeated tests such as function test, black and white box test, system embedding test and the like, the problems of the past system during embedded test are stored through the test category library, the problems are recorded, the problems can be timely avoided during secondary development, automatic SQl compiling is realized through jeepplus, the system data integration is rapid, the use of workers is facilitated, and the working efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
Referring to fig. 1, the present invention provides a technical solution: a method for constructing an embedded software system of an industrial automation instrument comprises the following steps:
s1, constructing a software library:
s2, judging user requirements;
s3, compiling user requirements;
s4, integrating basic function codes;
s5, testing functions;
s6, testing by a black and white box;
s7, testing system embedding;
and S8, storing problems after development is finished.
In this embodiment, specifically: the software library comprises a software function name library, a software access interface library, a software storage address library and a software basic information library, wherein the software function name library is used for storing each software function name and searching external keys; the software library only uses the MySQL database, and adopts partial local storage connection to avoid data loss, the MySQL is a relational database management system, the relational database stores data in different tables instead of putting all data in a large library, so that the speed is increased and the flexibility is improved, the SQL language used by the MySQL is the most common standardized language for accessing the database, the MySQL software adopts a double-authorization policy, and the MySQL software is small in size, high in speed and low in total ownership cost.
In this embodiment, specifically: software in a network address of software stored in the software storage address library is heptataurus cloud, and a historical temporary storage interface in github is pulled on line in the software access interface library to display a software effect screenshot.
In this embodiment, specifically: in basic code integration, a software jar package stored in a seven-cow cloud is pulled through a network address in a software address library by taking Redis as a middle key, a software library is connected through jeeplus to generate an SQL statement, and a deployment development environment is filled through Meven; the seven-cattle cloud is a leading enterprise-level public cloud service provider, aims to create a scenarized PaaS service with data as a core, and is characterized in that object storage is added into the seven-cattle cloud around a rich media scene, CDN acceleration, data general processing and content anti-spam service are integrated, a distributed storage architecture is firstly created by the seven-cattle cloud object storage service, high availability and high reliability are achieved, horizontal expansion to EB-level storage capacity is supported, storage efficiency is high, EC low-cost storage is the core of the seven-cattle cloud service, and the seven-cattle cloud is low in cost and easy to expand. The method adopts erasure code technology to process files, reduces the storage redundancy from the traditional 3 copy to 1.14 copy, saves 62 percent of unit storage cost, simultaneously improves the hardware fault tolerance, shortens the data repair time from the traditional 15 hours to 30 minutes, has faster storage effect when storing software addresses and jar packages, is convenient for developers to use, simultaneously utilizes Maven as an object model, can manage the construction of projects through a small segment of description information, and provides a high-level project management tool besides the program construction capability.
In this embodiment, specifically: the test category library comprises a basic function test problem classification library, a project black and white box test problem classification library and a system embedding test problem classification library, wherein the basic function test problem classification library is used for storing problems appearing when a basic code runs, the black and white box test problem classification library is used for storing problems appearing in black and white box data test, and the system embedding test problem classification library is used for storing problems appearing in system embedding test.
In this embodiment, specifically: in the function test, whether the test function is available is operated through the basic code, and the log with problems is automatically stored into the basic function test problem classification library.
In this embodiment, specifically: in the black and white box test, the test function and the coding problem are tested through an interface test and a software structure, and the test logs are classified and stored in a black and white box test problem classification library; black box test, which is to detect whether each function can be used normally through test; in the test, the program is treated as a black box which cannot be opened, and in the case of completely not considering the internal structure and internal characteristics of the program, a test is performed at the program interface, which only checks whether the program functions are normally used according to the requirements specification and whether the program can properly receive input data to generate correct output information. The black box test is mainly used for testing a software interface and a software function without considering an internal logic structure by focusing on an external structure of a program, and is called a function test, a data driving test or a function test based on a requirement specification. The test focuses on the functional requirements of the test software, the black box test is to receive the test output result from the interface of the software, and has the characteristic of acceptance test. There are virtually an infinite number of test cases, one would not only test all legitimate inputs, but also those that are not legitimate but possible. In this way, complete testing is impossible, so that targeted testing is performed, and the software testing is ensured to be organized, step-by-step and planned by formulating testing cases to guide the implementation of the testing. The black box test behavior must be quantified to really ensure the software quality, and the test case is one of the methods for specifically quantifying the test behavior. The design method of the black box test case comprises an equivalence class division method, a boundary value analysis method, an error estimation method, a causal graph method, a decision table driving method, an orthogonal test design method, a function graph method, a scene method and the like, white box test is also called structural test, transparent box test, logic driving test or code-based test, white box test is a test case design method, a box refers to tested software, a white box refers to a box which is visible and can clearly see the inside of the box and how the inside of the box operates, the white box method comprehensively knows the logic structure inside the program and tests all logic paths, the white box method is an exhaustive path test, when the scheme is used, a tester must check the internal structure of the program, test data are obtained by checking the logic of the program, the number of independent paths penetrating through the program is astronomical number, and the test method of the white box test has a code check method, Static structure analysis, static quality measurement, logical overlay, basic path testing, domain testing, symbolic testing, path overlay, and program variation, and the overlay standards of the white-box testing are logical overlay, cyclic overlay, and basic path testing. The logic coverage comprises statement coverage, judgment coverage, condition coverage, judgment/condition coverage, condition combination coverage and path coverage, the error finding capability of the six coverage standards changes from weak to strong, and the test effect is good.
In this embodiment, specifically: in the system embedding test, a virtual operation environment is erected through a virtual machine, test hardware is accessed, a test environment is deployed, system embedding problems are detected, and operation problems are stored in a system embedding test problem classification library; the virtual machine refers to a complete computer system which has complete hardware system functions and runs in a completely isolated environment through software simulation, and the work which can be completed in a physical computer can be realized in the virtual machine. When creating virtual machines in a computer, partial hard disk and memory capacity of a physical machine are required to be used as the hard disk and memory capacity of the virtual machine, each virtual machine is provided with an independent CMOS, a hard disk and an operating system, the virtual machine can be operated as a physical machine, the virtual machine technology is one of virtualization technologies, the virtualization technology is used for converting things from one form to another form, the most common virtualization technology is virtualization of a memory in an operating system, a memory space required by a user during actual operation is possibly far larger than the memory size of a physical machine, and by using the virtualization technology of the memory, the user can virtualize a part of a hard disk into the memory, the system is transparent to users, and the system is subjected to embedded test by accessing the hardware interface in a virtual machine mode, so that the working efficiency is improved, and the phenomenon of system embedding errors is avoided.
In summary, the working principle and working process of the method for constructing the embedded software system of the industrial automation instrument and meter are that when the method is used, firstly, in the use of the method, the basic function code integration module is used for integrating the similar basic functions in the past project with the new requirements, the software system embedding time is shortened, the working efficiency is improved, in addition, the repeated tests such as the function test, the black and white box test, the system embedding test and the like are carried out, the system problem is avoided, in addition, the past system problem is stored through the test category library, the system data is integrated, the use of workers is facilitated, and the working efficiency is improved.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (8)

1. A method for constructing an embedded software system of an industrial automation instrument is characterized by comprising the following steps:
s1, constructing a software library:
s2, judging user requirements;
s3, compiling user requirements;
s4, integrating basic function codes;
s5, testing functions;
s6, testing by a black and white box;
s7, testing system embedding;
and S8, storing problems after development is finished.
2. The method for constructing the embedded software system of the industrial automation instrument and meter according to claim 1, characterized in that: the software library comprises a software function name library, a software access interface library, a software storage address library and a software basic information library, wherein the software function name library is used for storing each software function name and searching external keys, the software access interface library is used for storing a software code access interface, the software storage address library is used for storing a software network storage address, and the software basic information library is used for storing basic software information, online date, development completion period, main development client and specific software money.
3. The method for constructing the embedded software system of the industrial automation instrument and meter according to claim 2, characterized in that: software in the network address of the software stored in the software storage address library is heptataurus cloud, and a software effect screenshot is displayed in the software access interface library by pulling a historical temporary storage interface in github on line.
4. The method for constructing the embedded software system of the industrial automation instrument and meter according to claim 3, characterized in that: in the basic code integration, a software jar package stored in the seven-cow cloud is pulled through a network address in a software address library by taking Redis as a middle key, a software library is connected through jeeplus to generate an SQL statement, and a deployment development environment is filled through Meven.
5. The method for constructing the embedded software system of the industrial automation instrument and meter according to claim 1, characterized in that: the test category library comprises a basic function test problem classification library, a project black and white box test problem classification library and a system embedding test problem classification library, wherein the basic function test problem classification library is used for storing problems appearing when a basic code runs, the black and white box test problem classification library is used for storing problems appearing in black and white box data test, and the system embedding test problem classification library is used for storing problems appearing when the system is embedded for testing.
6. The method for constructing the embedded software system of the industrial automation instrument and meter as claimed in claim 5, characterized in that: in the function test, whether the test function is available is operated through the basic code, and the log with problems is automatically stored into the basic function test problem classification library.
7. The method for constructing the embedded software system of the industrial automation instrument and meter as claimed in claim 6, characterized in that: in the black and white box test, the detection function and the coding problem are tested through an interface test and a software structure, and the detection logs are stored into a black and white box test problem classification library in a classification mode.
8. The method for constructing the embedded software system of the industrial automation instrument and meter according to claim 7, characterized in that: in the system embedding test, a virtual operation environment is erected through a virtual machine, test hardware is accessed, the test environment is deployed, the system embedding problem is detected, and the problem occurring in operation is stored in a system embedding test problem classification library.
CN202011419232.2A 2020-12-06 2020-12-06 Method for constructing embedded software system of industrial automation instrument Pending CN112540744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011419232.2A CN112540744A (en) 2020-12-06 2020-12-06 Method for constructing embedded software system of industrial automation instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011419232.2A CN112540744A (en) 2020-12-06 2020-12-06 Method for constructing embedded software system of industrial automation instrument

Publications (1)

Publication Number Publication Date
CN112540744A true CN112540744A (en) 2021-03-23

Family

ID=75016299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011419232.2A Pending CN112540744A (en) 2020-12-06 2020-12-06 Method for constructing embedded software system of industrial automation instrument

Country Status (1)

Country Link
CN (1) CN112540744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114374A (en) * 2022-06-27 2022-09-27 腾讯科技(深圳)有限公司 Transaction execution method and device, computing equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1485740A (en) * 2002-09-23 2004-03-31 上海贝尔有限公司 General purpose testing arrangement for embedded module and subsystem based on host machine platform
CN1963749A (en) * 2006-11-24 2007-05-16 重庆大学 Method for constructing embedded software system of industrial automation instrument
CN106354642A (en) * 2016-08-29 2017-01-25 中国航空工业集团公司西安飞机设计研究所 Onboard central maintenance system software testing method and its system
CN107992411A (en) * 2017-11-22 2018-05-04 中国航空工业集团公司西安飞机设计研究所 A kind of method for building task management system software virtual testing environment
CN111813647A (en) * 2019-04-10 2020-10-23 中国电力科学研究院有限公司 Method and system for verifying data analysis function of main equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1485740A (en) * 2002-09-23 2004-03-31 上海贝尔有限公司 General purpose testing arrangement for embedded module and subsystem based on host machine platform
CN1963749A (en) * 2006-11-24 2007-05-16 重庆大学 Method for constructing embedded software system of industrial automation instrument
CN106354642A (en) * 2016-08-29 2017-01-25 中国航空工业集团公司西安飞机设计研究所 Onboard central maintenance system software testing method and its system
CN107992411A (en) * 2017-11-22 2018-05-04 中国航空工业集团公司西安飞机设计研究所 A kind of method for building task management system software virtual testing environment
CN111813647A (en) * 2019-04-10 2020-10-23 中国电力科学研究院有限公司 Method and system for verifying data analysis function of main equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄奇 等: "一种面向工业自动化仪表的嵌入式软件系统构建方法研究", 2007’仪表,自动化及先进集成技术大会, pages 399 - 403 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114374A (en) * 2022-06-27 2022-09-27 腾讯科技(深圳)有限公司 Transaction execution method and device, computing equipment and storage medium

Similar Documents

Publication Publication Date Title
US9027002B2 (en) Method of converting source code and source code conversion program
CN110309071B (en) Test code generation method and module, and test method and system
US6941546B2 (en) Method and apparatus for testing a software component using an abstraction matrix
US8875110B2 (en) Code inspection executing system for performing a code inspection of ABAP source codes
US20140325486A1 (en) Techniques for testing software
US20120116561A1 (en) Program testing apparatus, method of testing a program, and program testing program
CN105701006B (en) Method and system for the variation-tracking in program debugging
US9417991B2 (en) Translation verification testing
Sarhan et al. A survey of challenges in spectrum-based software fault localization
CN107844424A (en) Model-based testing system and method
CN109614324A (en) A kind of method for generating test case and device
Li et al. Classification of software defect detected by black-box testing: An empirical study
CN111722839A (en) Code generation method and device, electronic equipment and storage medium
US10713237B2 (en) Automatically correcting invalid scripts in web applications
CN105912460A (en) Software test method and system based on QTP
CN109918296A (en) Automatic software test method and device
CN108984393A (en) A kind of unit testing code automatic generation method and device
CN111209206A (en) Automatic test method and system for software product
US10830818B2 (en) Ensuring completeness of interface signal checking in functional verification
CN103164335B (en) The method and system of inspection unit test mass
CN112540744A (en) Method for constructing embedded software system of industrial automation instrument
CN101894072B (en) Method for detecting abnormal termination during model detection
US20130318499A1 (en) Test script generation
CN1983280A (en) Method and system for realizing action on model
CN110286882B (en) Foreground system design and verification method based on model detection

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