CN114785847A - Network control software development and configuration method, terminal and storage medium - Google Patents

Network control software development and configuration method, terminal and storage medium Download PDF

Info

Publication number
CN114785847A
CN114785847A CN202210232274.8A CN202210232274A CN114785847A CN 114785847 A CN114785847 A CN 114785847A CN 202210232274 A CN202210232274 A CN 202210232274A CN 114785847 A CN114785847 A CN 114785847A
Authority
CN
China
Prior art keywords
information
network
application software
variables
application
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.)
Granted
Application number
CN202210232274.8A
Other languages
Chinese (zh)
Other versions
CN114785847B (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.)
CRRC Tangshan Co Ltd
Original Assignee
CRRC Tangshan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Tangshan Co Ltd filed Critical CRRC Tangshan Co Ltd
Priority to CN202210232274.8A priority Critical patent/CN114785847B/en
Publication of CN114785847A publication Critical patent/CN114785847A/en
Application granted granted Critical
Publication of CN114785847B publication Critical patent/CN114785847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/2866Architectures; Arrangements
    • H04L67/30Profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a network control software development configuration method, a terminal and a storage medium. The method comprises the following steps: determining a first network protocol selected by a user from a plurality of network protocols; receiving a first configuration file input by a user; analyzing the first configuration file to obtain ICD information components and variables under the first network protocol; importing the ICD information components and variables into the engineering files of the application software in the embedded development tool; after the logic programming of the application software is completed, the application information of the application software is reloaded from the embedded development tool; based on the result of the reload, a target is created. The invention can be suitable for different network protocols, thereby reducing the complexity of the development process of the network control software.

Description

Network control software development and configuration method, terminal and storage medium
Technical Field
The present invention relates to the field of network control technologies, and in particular, to a method, a terminal, and a storage medium for developing and configuring network control software.
Background
At present, in a development stage of network Control software, different network protocols need to be used for different projects, however, for different network protocols, hardware and network configuration (ICD) contents in the development stage are different, thereby causing a complex configuration process, increasing workload of developers, increasing development time, and consuming human resources.
Disclosure of Invention
The embodiment of the invention provides a network control software development configuration method, a terminal and a storage medium, which are used for solving the problem that the development process of network control software is too complex when different network protocols are aimed at present.
In a first aspect, an embodiment of the present invention provides a method for developing and configuring network control software, which is applied to a terminal, where the terminal presets configuration file templates of multiple network protocols, and the method includes:
determining a first network protocol selected by a user from the plurality of network protocols;
receiving a first configuration file input by a user, wherein the first configuration file is obtained by editing a configuration file template based on the first network protocol;
analyzing the first configuration file to obtain the components and variables of the ICD information under the first network protocol;
importing the ICD information components and variables into an engineering file of application software in an embedded development tool, wherein the ICD information components and variables are used for logic programming of the application software in the embedded development tool, and the application software comprises network control software to be developed;
after the logic programming of the application software is completed, reloading the application information of the application software from the embedded development tool;
based on the result of the reloading, an object is created, wherein the object is used to generate a usable file of the application software after being compiled.
In one possible implementation, the result of the reloading includes application task information, components and variables of the application software;
the target includes: the method comprises the steps of obtaining application task information of the application software, driving and compiling environment information corresponding to a first development platform and communication configuration information, wherein the first development platform is a platform to be deployed by the application software.
In a possible implementation manner, the terminal also presets information of a plurality of development platforms; before reloading the application information of the application software from the embedded development tool, the method further comprises:
a first development platform selected by a user from the plurality of development platforms is determined.
In one possible implementation, the creating a target based on the result of the reloading includes:
establishing a first mapping between a target record and the first development platform, wherein the first mapping is used for generating a driving and compiling environment corresponding to the first development platform;
establishing a second mapping between the components and variables of the application software and the ICD information, the second mapping being used to generate communication configuration information.
In a possible implementation manner, the parsing the first configuration file to obtain components and variables of ICD information under the first network protocol includes:
analyzing the first configuration file to obtain ICD information under the first network protocol, wherein the ICD information comprises: hardware data and network configuration data;
checking whether a first condition and a second condition are both established, wherein the first condition is that the hardware data and the network configuration data are not missing; the second condition is that there are no duplicate entries for the hardware data and the network configuration data;
if yes, reconstructing the hardware data and the network configuration data according to a tree structure, and respectively generating components and variables of the ICD information according to the reconstructed hardware data and the network configuration data;
if not, error reporting processing is carried out.
In a possible implementation manner, after the parsing the first configuration file to obtain components and variables of ICD information under the first network protocol, the method further includes:
checking whether a third condition and a fourth condition are both established, wherein the third condition is that the variable name is not repeated, and the fourth condition is that the variable offset is valid;
if yes, the step of importing the ICD information components and variables into engineering files of application software in an embedded development tool is executed;
if not, error reporting processing is carried out.
In a possible implementation manner, reloading the application information of the application software from the embedded development tool to obtain the application task information, the components, and the variables of the application software includes:
accessing the engineering catalog of the application software, and acquiring all application information under the specified catalog;
and analyzing all the application information to obtain application task information, components and variables of the application software.
In one possible implementation, the determining a first network protocol selected by the user from the plurality of network protocols includes:
displaying an interface, wherein the interface comprises a first control;
responding to the triggering operation of the user on the first control, and displaying the identifiers of the multiple network protocols;
and in response to the selection operation of the user for a first identifier in the identifiers of the plurality of network protocols, determining the network protocol corresponding to the first identifier as the first network protocol.
In a second aspect, an embodiment of the present invention provides a terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method according to the first aspect or any possible implementation manner of the first aspect.
In a third aspect, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method according to the first aspect or any one of the possible implementation manners of the first aspect.
The embodiment of the invention provides a network control software development configuration method, a terminal and a storage medium, wherein a first network protocol selected by a user from a plurality of network protocols is determined; receiving a first configuration file input by a user; analyzing the first configuration file to obtain ICD information components and variables under the first network protocol; importing the ICD information components and variables into engineering files of application software in an embedded development tool; after the logic programming of the application software is completed, reloading the application information of the application software from the embedded development tool; and creating a target based on the reloading result, wherein the target is created according to the reloading result, so that the network control software can be suitable for different network protocols, and the complexity of the software development process is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the embodiments or the prior art description will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings may be obtained according to these drawings without inventive labor.
Fig. 1 is a software architecture diagram of a network control software development configuration method according to an embodiment of the present invention;
FIG. 2 is a diagram of an interface structure of a display module according to an embodiment of the present invention;
fig. 3 is a flowchart of an implementation of a method for developing and configuring network control software according to an embodiment of the present invention;
FIG. 4 is an interface diagram of a display interface provided by an embodiment of the invention;
fig. 5 is a schematic diagram illustrating a parsing flow when parsing a first configuration file according to an embodiment of the present invention;
fig. 6 is a schematic diagram of module invocation during parsing of a first configuration file according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an import flow when importing components and variables according to an embodiment of the present invention;
FIG. 8 is a block diagram of module invocation when importing components and variables according to an embodiment of the present invention;
fig. 9 is a flowchart of an implementation of a method for developing and configuring network control software according to another embodiment of the present invention;
FIG. 10 is a schematic diagram illustrating a reloading process when reloading application information according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of module invocation when reloading application information according to an embodiment of the present invention;
fig. 12 is a schematic application flow diagram of a network control software development and configuration method according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a network control software development and configuration apparatus according to an embodiment of the present invention;
fig. 14 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.
The invention provides a network control software development configuration method, which is applied to a software development stage and used for realizing functions of analyzing and importing configuration files, carrying out data interaction with an embedded development tool, creating targets and the like.
For example, referring to fig. 1, the configuration method may be implemented based on the software module architecture shown in fig. 1, and specifically includes: the system comprises a display module, a business logic module, a tool module and a core library module.
The display module provides a graphical interface applied to the terminal and used for responding to user operation based on the interface provided by the service logic module. The graphical interface can select information such as a hardware platform and/or a configuration file path of application software in a graphical and visual mode, and simultaneously provides a data and log display window for displaying interactive data and prompt information. Referring specifically to fig. 2, the graphical interface mainly includes: the method comprises three parts of a configuration window, a data display window and a log display window, and further comprises the following steps: setting a window and operating buttons.
The configuration operation of the display module is realized by calling an interface of the service logic module, and the display content is acquired by the service logic module and the core library module.
The business logic module provides a unified extensible plug-in mode to integrate functions of configuration analysis, data import, data overload and the like based on the functions and interfaces provided by the core library module, and the corresponding functions are realized by calling the interfaces of the tool module.
Meanwhile, the service logic module provides interface operation and corresponding logic realization, and interacts with the graphical interface program in a notification mode.
The tool module specifically includes: and configuring an analysis tool, a data import tool and a data reload tool, wherein the functions of the corresponding tools are realized by calling the interfaces of the tool modules through the service logic module.
The configuration analysis tool is used for analyzing the first configuration file to obtain components and variables of ICD information under the first network protocol; the data import tool is used for importing the ICD information components and variables into the engineering files of the application software in the embedded development tool; the data reloading tool is used for reloading the application information of the application software from the embedded development tool and creating a target based on the reloading result.
The core library module is used for providing an access interface for the database, and can be divided into five types of interfaces of project management, project configuration, ICD management, embedded development tools and product management according to the managed information.
The project management interface is used for opening and closing the database; the project configuration interface can manage project configuration items according to names, values and other attribute modes, and the values of the project configuration items can be configured in a setting window of the display module; the ICD management interface is used for managing hardware and network configuration information; the embedded development tool interface is used for processing interaction with an embedded development tool project; the product management interface is used for managing the information of each product and creating the corresponding relation between the embedded development tool and the product, namely a product development platform.
It should be noted that fig. 1 is only an example of one possible implementation, and does not limit the software architecture corresponding to the configuration method.
Specifically, the configuration method is applied to the terminal, and the terminal presets configuration file templates of various network protocols. Referring to fig. 3, fig. 3 is a flowchart illustrating an implementation of a method for developing and configuring network control software according to an embodiment of the present invention, where the method may include steps 301 to 306:
in step 301, a first network protocol selected by a user from a plurality of network protocols is determined.
Optionally, determining a first network protocol selected by the user from a plurality of network protocols includes:
displaying an interface, wherein the interface comprises a first control;
responding to the triggering operation of a user on the first control, and displaying the identifiers of the multiple network protocols;
and in response to the selection operation of the user for a first identifier in the identifiers of the plurality of network protocols, determining the network protocol corresponding to the first identifier as the first network protocol.
Illustratively, referring to fig. 4, the display interface includes: the system comprises a configuration window, a data display window and a log display window, wherein the configuration window is divided into a setting window and an operation button. The first control is substantially a click box of a "protocol type" in the setting window, multiple network protocol identifiers are preset in the click box, and a user can select the first network protocol through the click box.
Step 302, a first configuration file input by a user is received, wherein the first configuration file is obtained by editing a configuration file template based on a first network protocol.
That is, after determining the first network protocol, the user needs to use the profile template of the first network protocol to perform adaptive editing to obtain a first profile, and add the installation path of the first profile to the display interface (see fig. 4, which may be added in the setting window of the display interface), and the terminal receives the first profile input by the user for subsequent invocation.
Step 303, analyzing the first configuration file to obtain the components and variables of the ICD information under the first network protocol.
In some embodiments, step 303 may include:
analyzing the first configuration file to obtain ICD information under the first network protocol, wherein the ICD information comprises: hardware data and network configuration data;
checking whether a first condition and a second condition are both established, wherein the first condition is that hardware data and network configuration data are not missing; the second condition is that there are no duplicate items of hardware data and network configuration data;
if yes, reconstructing the hardware data and the network configuration data according to the tree structure, and respectively generating components and variables of ICD information according to the reconstructed hardware data and the network configuration data;
if not, error reporting processing is carried out.
Optionally, after step 303, step 307 is further included:
checking whether a third condition and a fourth condition are both established, wherein the third condition is that the variable names are not repeated, and the fourth condition is that the variable offset is valid;
if yes, executing step 304, and importing the ICD information components and variables into the engineering files of the application software in the embedded development tool;
if not, error reporting processing is carried out.
Exemplarily, referring to fig. 5, an embodiment of the present invention provides a possible parsing procedure for parsing a first configuration file, including:
checking whether the path of the first configuration file is not empty, if so, opening a table file (the table file is the first configuration file essentially), and sequentially checking whether data in the table file is missing and whether repeated items exist in the data in the table file;
and if the path of the first configuration file is empty, or the data in the table file is missing, or the data in the table file has repeated items, performing error reporting processing.
If the data in the table file is not missing and the data in the table file is not repeated, reconstructing the data according to the tree structure and storing the data in a database;
generating components and variables according to the reconstructed data;
checking whether the variable name is not repeated and whether the variable offset is valid;
if the variable name is not repeated and the variable offset is valid, saving the component and the variable to a database;
otherwise, carrying out error reporting processing.
It should be noted that the parsing flow shown in fig. 5 is only one possible implementation and is not specifically limited. In the actual application process, a user can set an analysis flow according to the self requirement.
By carrying out validity check on the data in the first configuration file for four times, the error occurrence rate in the software development process can be effectively reduced, the workload of developers is reduced, and the software development efficiency is improved. Meanwhile, the tree structure is adopted for data reconstruction aiming at data of different network protocols in a unified mode and stored in the database, standardized data management can be achieved, and later maintenance is facilitated.
Taking the MVB data as an example, when the data reconstruction is performed on the MVB data by using a tree structure, tree nodes in the tree structure include a hierarchical structure (ID), a Name (Name), and other user defined information (Properties). The tree node may include child nodes according to actual equipment configuration, each child node may further include a child node, a recursive structure is formed, standardized data management is achieved, and later maintenance is facilitated.
Accordingly, in the execution of step 303, the call relationship between the modules shown in fig. 1 can be referred to in fig. 7.
Step 304, importing the ICD information components and variables into the engineering files of the application software in the embedded development tool, wherein the ICD information components and variables are used for logic programming of the application software in the embedded development tool, and the application software comprises the network control software to be developed.
Illustratively, referring to fig. 7, the present embodiment provides a possible implementation manner of step 304, including:
acquiring components and variables of ICD information, checking whether acquisition is successful, and if so, continuously acquiring the engineering path of the application software; if not, performing error reporting processing;
checking whether the engineering path of the application software is not empty, if so, connecting an embedded development tool, and if not, performing error reporting processing;
checking whether the embedded development tool is successfully connected, if so, opening an application project, and adding components and variables; if not, error reporting processing is carried out.
Likewise, the import flow shown in fig. 7 is only one possible implementation and is not particularly limited. In the actual application process, a user can set an import flow according to the self requirement.
Accordingly, in executing step 304, the call relationship between the modules shown in FIG. 1 can be seen in FIG. 8.
And 305, reloading the application information of the application software from the embedded development tool after the logic programming of the application software is completed.
The application information of the application software is reloaded from the embedded development tool, and the reloading comprises the following steps:
accessing an engineering catalog of application software, and acquiring all application information under a specified catalog;
and analyzing all the application information to obtain application task information, components and variables of the application software.
Optionally, referring to fig. 9, before step 305, step 308 is further included to determine a first development platform selected by the user from a plurality of development platforms, where the terminal presets a plurality of development platform information.
That is, referring to fig. 5, the user may select not only a different network protocol within the setup window of the display interface, but also a different development platform within the display interface (which may be selected in the "product" click box shown in fig. 5). And before data reloading, determining the first development platform so as to perform subsequent reloading and target creation tasks according to the first development platform selected by the user.
By receiving the first platform input by the user on the display interface, the configuration method in the embodiment of the invention is not only suitable for various network protocols, but also suitable for various development platforms, thereby reducing the complexity of software development processes and increasing the portability of network control software among the development platforms.
Based on the result of the reloading, an object is created, wherein the object is used to generate a usable file of the application software after being compiled, step 306.
Optionally, the reloaded result includes application task information, components and variables of the application software;
the objectives include: the system comprises application task information of application software, driving and compiling environment information corresponding to a first development platform and communication configuration information, wherein the first development platform is a platform to be deployed by the application software.
Further optionally, creating a target based on the reloaded result, comprising:
establishing a first mapping between the target record and a first development platform, wherein the first mapping is used for generating a driving and compiling environment corresponding to the first development platform;
a second mapping between the components and variables of the application software and the ICD information is established, the second mapping being used to generate communication configuration information.
It should be noted that the target record herein can be simply understood as an identifier of the target, and essentially establishing the first mapping is to establish a corresponding relationship between the current target and the first development platform, so as to provide a driving and compiling environment suitable for the first development platform when the target compiling task is subsequently executed.
Accordingly, the establishment of the second mapping essentially establishes correspondence between the components and variables of the application software and the components and variables under the first network protocol, so as to ensure that the application software is suitable for different network protocols.
Illustratively, referring to fig. 10, the present embodiment provides a possible implementation of reloading and creating targets, including:
acquiring all application information under a specified directory, and redefining a structure array;
analyzing the physical equipment information, checking whether the physical equipment information is successful, if so, continuing to analyze the physical architecture information, and if not, performing error reporting processing;
checking whether the physical architecture information is successfully analyzed, if so, continuing to analyze the engineering configuration information, and if not, performing error reporting processing;
checking whether the engineering configuration information is successfully analyzed, if so, continuously analyzing the variable information, and if not, performing error reporting processing;
resolving the variable information includes: parsing the organizational variables and parsing the embedded variables.
And after the analysis is successful, storing the result obtained by the analysis into the structure array to obtain application task information, component information and variable information.
And establishing a first mapping and a second mapping according to the application task information, the component information and the variable information.
Accordingly, the calling relationship between the modules shown in fig. 1 can be seen in fig. 11 when the reloading and creation of the target task are performed.
The embodiment of the invention determines a first network protocol selected by a user from a plurality of network protocols; receiving a first configuration file input by a user; analyzing the first configuration file to obtain ICD information components and variables under the first network protocol; importing the ICD information components and variables into engineering files of application software in an embedded development tool; after the logic programming of the application software is completed, reloading the application information of the application software from the embedded development tool; based on the result of the reload, a target is created. The target is created according to the reloading result, so that the developed network control software generated after the target is compiled can be suitable for different network protocols, the complexity of a software development process is reduced, and further, when the target is created, a first mapping can be established according to a first development platform determined by a user, so that the network control software can be suitable for different development platforms, and the transportability of the network control software among the platforms is improved. Meanwhile, the embodiment of the invention also provides a tree data reconstruction method aiming at different network protocols, so that standardized data management is realized, and later maintenance is facilitated.
The following is a description of a specific embodiment. Referring to fig. 12, in this example, the above-described network control software development and configuration method is implemented by a configuration tool in a terminal. The network control software development process is concretely as follows:
a user newly establishes a network control software project in an embedded development tool for developing network control software;
a user selects a first network protocol and a first development platform in a configuration tool, and a first configuration file corresponding to the first network protocol is added to the configuration tool;
the configuration tool analyzes the first configuration file, generates ICD information components and variables, and imports the ICD information components and variables into a network control software project of the embedded development tool;
a user carries out logic programming development on network control software in an embedded development tool;
after the logic programming development is completed, the configuration tool reloads the software information of the network control software, and establishes target mapping according to the software information and the preselected first development platform to create a target. Furthermore, the object is compiled to obtain an update package (i.e. an available file of the network control software), and the update package is downloaded to the network controller, so far, the development of the network control software is completed.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.
Fig. 13 is a schematic structural diagram of a network control software development and configuration apparatus according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and detailed descriptions are as follows:
as shown in fig. 13, the network control software development and configuration device 13 includes: a display module 131, a parsing module 132, an import module 133, a reload module 134, and a creation module 135.
A display module 131 for determining a first network protocol selected by a user from a plurality of network protocols;
in a possible implementation manner, the display module 131 is configured to display an interface, where the interface includes a first control; the display module 131 is further configured to display identifiers of multiple network protocols in response to a user triggering operation on the first control; the display module 131 is further configured to determine, in response to a selection operation of a user for a first identifier of the identifiers of the multiple network protocols, a network protocol corresponding to the first identifier as the first network protocol.
In one possible implementation, the display module 131 is further configured to determine a first development platform selected by the user from a plurality of development platforms.
The display module 131 is further configured to receive a first configuration file input by a user, where the first configuration file is obtained by editing a configuration file template based on a first network protocol;
the parsing module 132 is configured to parse the first configuration file to obtain components and variables of ICD information under the first network protocol;
in a possible implementation manner, the parsing module 132 is configured to parse the first configuration file to obtain ICD information under the first network protocol, where the ICD information includes: hardware data and network configuration data;
the parsing module 132 is further configured to check whether a first condition and a second condition are both satisfied, where the first condition is that there is no missing hardware data and network configuration data; the second condition is that there are no duplicate items of hardware data and network configuration data;
if yes, reconstructing the hardware data and the network configuration data according to the tree structure, and respectively generating components and variables of ICD information according to the reconstructed hardware data and the network configuration data;
if not, error reporting processing is carried out.
In a possible implementation manner, after the first configuration file is parsed to obtain the components and variables of the ICD information under the first network protocol, the parsing module 132 is further configured to check whether a third condition and a fourth condition are both true, where the third condition is that names of the variables are not repeated, and the fourth condition is that a variable offset is valid;
if yes, the step of importing the ICD information components and variables into the engineering files of the application software in the embedded development tool is executed;
if not, error reporting processing is carried out.
The importing module 133 is configured to import components and variables of ICD information into an engineering file of application software in an embedded development tool, where the components and variables of ICD information are used for logic programming of the application software in the embedded development tool, and the application software includes network control software to be developed;
the reloading module 134 is used for reloading the application information of the application software from the embedded development tool after the logic programming of the application software is completed;
in a possible implementation manner, the reload module 134 is configured to access an engineering directory of the application software, and obtain all application information in the specified directory; the reload module 134 is further configured to parse all application information to obtain application task information, components and variables of the application software.
A creating module 135 for creating a target based on the reloaded result, wherein the target is used for generating an available file of the application software after being compiled.
In one possible implementation, the result of the reload includes application task information, components and variables of the application software; the objectives include: the system comprises application task information of the application software, driving and compiling environment information corresponding to a first development platform and communication configuration information, wherein the first development platform is a platform to be deployed by the application software.
In a possible implementation manner, the creating module 135 is configured to create a first mapping between the target record and the first development platform, where the first mapping is used to generate a driving and compiling environment corresponding to the first development platform;
the creation module 135 is further configured to establish a second mapping between the components and variables of the application software and the components and variables of the ICD information, the second mapping being used to generate the communication configuration information.
The display module 131 is used for determining a first network protocol selected by a user from multiple network protocols; the display module 131 is further configured to receive a first configuration file input by a user; the parsing module 132 is configured to parse the first configuration file to obtain components and variables of ICD information under the first network protocol; the importing module 133 is configured to import the ICD information components and variables into the engineering file of the application software in the embedded development tool; the reloading module 134 is used for reloading the application information of the application software from the embedded development tool after the logic programming of the application software is completed; and the creating module 135 is used for creating a target based on the reloading result, and because the target is created according to the reloading result, the network control software can be suitable for different network protocols, thereby reducing the complexity of the software development process.
Fig. 14 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 14, the terminal 14 of this embodiment includes: a processor 140, a memory 141, and a computer program 142 stored in said memory 141 and executable on said processor 140. The processor 140 implements the steps of the above embodiments of the network control software development and configuration method, such as steps 301 to 306 shown in fig. 4, when executing the computer program 142. Alternatively, the processor 140, when executing the computer program 142, implements the functions of the modules/units in the above-mentioned device embodiments, such as the modules/units 131 to 135 shown in fig. 13.
Illustratively, the computer program 142 may be partitioned into one or more modules/units, which are stored in the memory 141 and executed by the processor 140 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 142 in the terminal 14. For example, the computer program 142 may be divided into the modules/units 131 to 135 shown in fig. 13.
The terminal 14 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal 14 may include, but is not limited to, a processor 140, a memory 141. Those skilled in the art will appreciate that fig. 14 is merely an example of a terminal 14 and does not constitute a limitation of terminal 14, and may include more or fewer components than shown, or some components in combination, or different components, e.g., the terminal may also include input output devices, network access devices, buses, etc.
The Processor 140 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 141 may be an internal storage unit of the terminal 14, such as a hard disk or a memory of the terminal 14. The memory 141 may also be an external storage device of the terminal 14, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 14. Further, the memory 141 may also include both an internal storage unit and an external storage device of the terminal 14. The memory 141 is used for storing the computer programs and other programs and data required by the terminal. The memory 141 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the system, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
In the above embodiments, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical function division, and other division manners may exist in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above embodiments of the method for developing and configuring network control software. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.

Claims (10)

1. A network control software development configuration method is applied to a terminal, the terminal presets configuration file templates of a plurality of network protocols, and the method comprises the following steps:
determining a first network protocol selected by a user from the plurality of network protocols;
receiving a first configuration file input by a user, wherein the first configuration file is obtained by editing a configuration file template based on the first network protocol;
analyzing the first configuration file to obtain the components and variables of the ICD information under the first network protocol;
importing the ICD information components and variables into engineering files of application software in an embedded development tool, wherein the ICD information components and variables are used for logic programming of the application software in the embedded development tool, and the application software comprises network control software to be developed;
after the logic programming of the application software is completed, reloading the application information of the application software from the embedded development tool;
based on the result of the reloading, an object is created, wherein the object is used to generate a usable file of the application software after being compiled.
2. The network control software development and configuration method according to claim 1,
the reloaded result comprises application task information, components and variables of the application software;
the target includes: the system comprises application task information of the application software, driving and compiling environment information corresponding to a first development platform and communication configuration information, wherein the first development platform is a platform to be deployed by the application software.
3. The method for developing and configuring network control software according to claim 1, wherein the terminal also presets information of a plurality of development platforms; before reloading the application information of the application software from the embedded development tool, the method further comprises:
a first development platform selected by a user from the plurality of development platforms is determined.
4. The method according to claim 2, wherein the creating a target based on the reloaded result comprises:
establishing a first mapping between a target record and the first development platform, wherein the first mapping is used for generating a driving and compiling environment corresponding to the first development platform;
establishing a second mapping between the components and variables of the application software and the ICD information, the second mapping being used to generate communication configuration information.
5. The network control software development and configuration method according to claim 1,
the analyzing the first configuration file to obtain the components and variables of the ICD information under the first network protocol includes:
analyzing the first configuration file to obtain ICD information under the first network protocol, wherein the ICD information comprises: hardware data and network configuration data;
checking whether a first condition and a second condition are both established, wherein the first condition is that the hardware data and the network configuration data are not missing; the second condition is that there are no duplicate entries for the hardware data and the network configuration data;
if yes, reconstructing the hardware data and the network configuration data according to a tree structure, and respectively generating components and variables of the ICD information according to the reconstructed hardware data and the network configuration data;
if not, error reporting processing is carried out.
6. The method according to claim 5, further comprising, after parsing the first configuration file to obtain the components and variables of the ICD information under the first network protocol:
checking whether a third condition and a fourth condition are both established, wherein the third condition is that the variable name is not repeated, and the fourth condition is that the variable offset is valid;
if yes, the step of importing the ICD information components and variables into the engineering files of the application software in the embedded development tool is executed;
if not, error reporting processing is carried out.
7. The method for developing and configuring network control software according to any one of claims 1 to 6, wherein the step of obtaining application task information, components and variables of the application software by reloading the application information of the application software from the embedded development tool comprises the steps of:
accessing the engineering catalog of the application software, and acquiring all application information under the specified catalog;
and analyzing all the application information to obtain the application task information, the components and the variables of the application software.
8. The method according to any one of claims 1-6, wherein said determining a first network protocol selected by a user from the plurality of network protocols comprises:
displaying an interface, wherein the interface comprises a first control;
responding to the triggering operation of the user on the first control, and displaying the identifiers of the multiple network protocols;
and in response to the selection operation of the user for a first identifier in the identifiers of the plurality of network protocols, determining the network protocol corresponding to the first identifier as the first network protocol.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of the preceding claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202210232274.8A 2022-03-09 2022-03-09 Network control software development configuration method, terminal and storage medium Active CN114785847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210232274.8A CN114785847B (en) 2022-03-09 2022-03-09 Network control software development configuration method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210232274.8A CN114785847B (en) 2022-03-09 2022-03-09 Network control software development configuration method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114785847A true CN114785847A (en) 2022-07-22
CN114785847B CN114785847B (en) 2024-01-12

Family

ID=82422923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210232274.8A Active CN114785847B (en) 2022-03-09 2022-03-09 Network control software development configuration method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114785847B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123540A (en) * 2007-08-21 2008-02-13 广东志成冠军集团有限公司 A monitoring method and system based on heterogeneous network
WO2017148287A1 (en) * 2016-03-02 2017-09-08 中兴通讯股份有限公司 Embedded software development method, apparatus and platform, and storage medium
CN107948200A (en) * 2017-12-29 2018-04-20 广州天高软件科技有限公司 A kind of configurable network interface protocols adaptation engine based on source template
CN108040040A (en) * 2017-11-30 2018-05-15 北京锐安科技有限公司 A kind of automation analysis method and device of application protocol message
CN109669680A (en) * 2017-10-16 2019-04-23 阿里巴巴集团控股有限公司 The development process method, apparatus and electronic equipment of Web page module
KR20190044981A (en) * 2017-10-23 2019-05-02 한국전력공사 Electric power software development platform
CN111427685A (en) * 2020-03-23 2020-07-17 中国人民解放军国防科技大学 Space-based network intelligent satellite development system and method based on task requirements
CN111782261A (en) * 2020-06-29 2020-10-16 百度在线网络技术(北京)有限公司 Software configuration method and device, electronic equipment and storage medium
CN114143201A (en) * 2021-11-12 2022-03-04 杭州极简物控科技有限公司 Power distribution network fusion terminal equipment control method based on low code technology

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123540A (en) * 2007-08-21 2008-02-13 广东志成冠军集团有限公司 A monitoring method and system based on heterogeneous network
WO2017148287A1 (en) * 2016-03-02 2017-09-08 中兴通讯股份有限公司 Embedded software development method, apparatus and platform, and storage medium
CN109669680A (en) * 2017-10-16 2019-04-23 阿里巴巴集团控股有限公司 The development process method, apparatus and electronic equipment of Web page module
KR20190044981A (en) * 2017-10-23 2019-05-02 한국전력공사 Electric power software development platform
CN108040040A (en) * 2017-11-30 2018-05-15 北京锐安科技有限公司 A kind of automation analysis method and device of application protocol message
CN107948200A (en) * 2017-12-29 2018-04-20 广州天高软件科技有限公司 A kind of configurable network interface protocols adaptation engine based on source template
CN111427685A (en) * 2020-03-23 2020-07-17 中国人民解放军国防科技大学 Space-based network intelligent satellite development system and method based on task requirements
CN111782261A (en) * 2020-06-29 2020-10-16 百度在线网络技术(北京)有限公司 Software configuration method and device, electronic equipment and storage medium
CN114143201A (en) * 2021-11-12 2022-03-04 杭州极简物控科技有限公司 Power distribution network fusion terminal equipment control method based on low code technology

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JHONNYK: "什么是ICD文件", 《HTTPS://WWW.CNBLOGS.COM/DUSHIKANG/P/8295628.HTML》 *
刘璇;: "基于Linux的司机控制屏控制软件的开发", 科技创新导报, no. 31 *
易水寒: "ICD配置文件的详细介绍和配置内容的详细概述", 《HTTPS://WWW.ELECFANS.COM/D/688681.HTML》 *
黄布毅, 刘国梅, 郑安平, 陈晓雷: "嵌入式家庭网络中央控制器的开发", 郑州轻工业学院学报(自然科学版), no. 02 *

Also Published As

Publication number Publication date
CN114785847B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN107273286B (en) Scene automatic test platform and method for task application
CN113065656B (en) Rule engine configuration method and device, server and readable storage medium
US10481884B2 (en) Systems and methods for dynamically replacing code objects for code pushdown
CN107632827B (en) Method and device for generating installation package of application
CN110147225A (en) A kind of code generating method, device and computer equipment, storage medium
CN111026670B (en) Test case generation method, test case generation device and storage medium
CN108958843A (en) Plug-in unit construction method, system, equipment and medium based on lightweight script
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN111695827A (en) Business process management method and device, electronic equipment and storage medium
CN112799659A (en) Method, device and terminal for automatically generating data interface without programming
CN116257438A (en) Updating method of interface test case and related equipment
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
CN111159301A (en) Data creating method, device, equipment and storage medium based on intelligent contract
CN117539459B (en) API interface configuration method, system and equipment
CN113688134A (en) Visual variable management method, system and equipment based on multidimensional data
CN112947907A (en) Method for creating code branch
CN116483707A (en) Test method, test device, test apparatus, test program, and test program
CN114785847B (en) Network control software development configuration method, terminal and storage medium
CN113495723B (en) Method, device and storage medium for calling functional component
CN110895460A (en) Jenkins-based robot system integration method and device and terminal equipment
CN113031964B (en) Big data application management method, device, equipment and storage medium
CN112418796B (en) Sub-process task node activation method and device, electronic equipment and storage medium
CN114968817A (en) Method, device, equipment and storage medium for evaluating code change influence range
CN114756224A (en) Activity execution method and device
CN113835708A (en) Internet of things communication protocol processing method, electronic equipment and storage medium

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