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

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

Info

Publication number
CN114785847B
CN114785847B CN202210232274.8A CN202210232274A CN114785847B CN 114785847 B CN114785847 B CN 114785847B CN 202210232274 A CN202210232274 A CN 202210232274A CN 114785847 B CN114785847 B CN 114785847B
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.)
Active
Application number
CN202210232274.8A
Other languages
Chinese (zh)
Other versions
CN114785847A (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

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 components and variables of ICD information under a first network protocol; the components and variables of ICD information are imported into an engineering file 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 reloaded results, a target is created. The invention can be suitable for different network protocols, thereby reducing the complexity of the network control software development process.

Description

Network control software development configuration method, terminal and storage medium
Technical Field
The present invention relates to the field of network control technologies, and in particular, to a network control software development configuration method, a terminal, and a storage medium.
Background
At present, in the development stage of network control software, different network protocols are required to be used for different projects, however, for different network protocols, the hardware and network configuration (Interface Control Document, ICD) contents in the development stage are different, so that the configuration process is complex, the workload of developers is increased, the development time is prolonged, and the problem of human resource consumption is caused.
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 flow of network control software is too complex when aiming at different network protocols at present.
In a first aspect, an embodiment of the present invention provides a method for developing and configuring network control software, which is characterized in that the method is applied to a terminal, the terminal presets a configuration file template of a plurality of 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 edited based on a configuration file template of the first network protocol;
analyzing the first configuration file to obtain components and variables of ICD information under the first network protocol;
importing components and variables of the ICD information into engineering files of application software in an embedded development tool, wherein the components and variables of the ICD information 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;
reloading application information of the application software from the embedded development tool after the logic programming of the application software is completed;
based on the reloaded result, a target is created, wherein the target is used for generating an available file of the application software after being compiled.
In one possible implementation, the reloaded result includes application task information, components, and variables of the application software;
the object includes: the method comprises the steps of 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.
In one possible implementation manner, the terminal also presets information of various 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 the target based on the reloaded result 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;
and establishing a second mapping between components and variables of the application software and components and variables of the ICD information, wherein the second mapping is used for generating 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 met, wherein the first condition is that the hardware data and the network configuration data are not missing; the second condition is that no duplicate items exist 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 network configuration data;
if not, carrying out error reporting processing.
In one 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 met, 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, executing the step of importing the components and the variables of the ICD information into the engineering files of the application software in the embedded development tool;
if not, carrying out error reporting processing.
In one possible implementation manner, reloading the application information of the application software from the embedded development tool to obtain application task information, components and variables of the application software, including:
accessing an engineering catalog of the application software, and acquiring all application information under a designated 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 the 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 identification of various network protocols;
and responding to the selection operation of a first identifier in the identifiers of the plurality of network protocols by a user, and determining the network protocol corresponding to the first identifier as the first network protocol.
In a second aspect, embodiments of the present invention provide a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method as described above in the first aspect or any one of the possible implementations of the first aspect when the computer program is executed.
In a third aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as described above in the first aspect or any one of the possible implementations 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 components and variables of ICD information under a first network protocol; the components and variables of ICD information are imported into an engineering file 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 reloaded result, a target is created, and the target is created according to the reloaded result, so that the network control software can be suitable for different network protocols, and the complexity of a software development flow is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a software architecture diagram of a network control software development configuration method provided in an embodiment of the present invention;
FIG. 2 is an interface structure diagram 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 schematic diagram of a display interface according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an parsing flow when parsing a first configuration file according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a module call when parsing 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 schematic diagram of module invocation when importing components and variables provided by 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 of a reloading process when application information is reloaded according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a module call when application information is reloaded according to an embodiment of the present invention;
fig. 12 is an application flow diagram of a network control software development configuration method according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a network control software development configuration device 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 the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present 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.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be 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 is used for realizing the functions of analyzing and importing configuration files, carrying out data interaction with an embedded development tool, creating targets and the like.
Illustratively, 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 the 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 configuration window, the data display window and the log display window, further, the configuration window comprises: two parts of window and operation button are set.
The configuration operation of the display module is realized by calling an interface of the service logic module, and the display content is obtained by the service logic module and the core library module.
The business logic module provides a unified extensible plug-in mode to integrate functions such as configuration analysis, data import, data reload 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.
And meanwhile, the business logic module provides interface operation and corresponding logic realization and interacts with the graphical interface program in a notification mode.
The tool module specifically comprises: the functions of the corresponding tools are realized by calling interfaces of the tool modules through the service logic modules.
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 importing tool is used for importing components and variables of the ICD information into engineering files of application software in the embedded development tool; the data reloading tool is used for reloading application information of the application software from the embedded development tool and creating a target based on a reloading result.
The core library module is used for providing an access interface to the database, and can be divided into five interfaces of project management, project configuration, ICD management, embedded development tools and product management according to the information managed by the core library module.
The project management interface is used for realizing the opening and closing of 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 the embedded development tool project; the product management interface is used for managing information of each product and creating a corresponding relation between an embedded development tool and the product, namely a development platform, and another embodiment of the invention provides registration and de-registration functions of the product for supporting a plurality of different development platforms, and manages the product through the core library module, namely a user can add and delete related information of the development platform through the core library for selection by the user.
It should be noted that fig. 1 is only an example of one possible implementation, and is not limited to 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:
step 301, determining a first network protocol selected by a user from a plurality of network protocols.
Optionally, determining the 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 identification of various network protocols;
and responding to the selection operation of the user for the first identifier in the identifiers of the plurality of network protocols, and determining the network protocol corresponding to the first identifier as the first network protocol.
Illustratively, referring to FIG. 4, the display interface includes: the configuration window is divided into a setting window and an operation button. The first control here essentially refers to a click box of "protocol type" in the setup window, multiple network protocol identifications are preset in the click box, and the user can select the first network protocol through the click box.
Step 302, receiving a first configuration file input by a user, wherein the first configuration file is edited based on a configuration file template of 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 adaptively edit to obtain the first profile, and add the installation path of the first profile to the display interface (see fig. 4, may be added in the setting window of the display interface), and the terminal receives the first profile input by the user for subsequent call.
Step 303, parsing the first configuration file to obtain components and variables of 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 the first condition and the second condition are both met, wherein the first condition is that the hardware data and the network configuration data are not missing; the second condition is that the hardware data and the network configuration data have no duplicate items;
if yes, reconstructing hardware data and network configuration data according to the tree structure, and respectively generating components and variables of ICD information according to the reconstructed hardware data and network configuration data;
if not, carrying out error reporting processing.
Optionally, after step 303, step 307 is further included:
checking whether a third condition and a fourth condition are both met, 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 components and variables of ICD information into engineering files of application software in the embedded development tool;
if not, carrying out error reporting processing.
Exemplary, referring to fig. 5, an embodiment of the present invention provides a possible parsing flow for parsing a first configuration file, including:
checking whether the path of the first configuration file is not empty, if so, opening the form file (the form file is the first configuration file substantially), and sequentially checking whether the data in the form file is missing and whether the data in the form file has repeated items;
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 form file is not missing and the data in the form 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 or not, and checking whether the variable offset is valid or not;
if the variable names are not repeated and the variable offset is valid, saving the components and the variables to a database;
otherwise, error reporting is carried out.
It should be noted that the parsing flow shown in fig. 5 is only one possible implementation, and is not limited to the specific embodiment. In the actual application process, the user can set the analysis flow according to the self-demand.
By performing four validity checks on the data in the first configuration file, 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 data of different network protocols are reconstructed by uniformly adopting a tree structure and stored in a database, so that standardized data management can be realized, and the later maintenance is convenient.
Taking MVB data as an example, when the MVB data is reconstructed by adopting 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 contain sub-nodes according to the actual equipment configuration, each sub-node may further contain sub-nodes to form a recursive structure, so as to realize standardized data management and facilitate later maintenance.
Accordingly, in performing step 303, the call relationship between the modules shown in fig. 1 may be referred to in fig. 7.
Step 304, components and variables of the ICD information are imported into engineering files of application software in the embedded development tool, wherein the components and variables of the ICD information 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.
By way of example, and with reference to fig. 7, the present embodiment provides a possible implementation of step 304, including:
acquiring components and variables of ICD information, checking whether the acquisition is successful, and if so, continuing to acquire an engineering path of the application software; if not, carrying out error reporting treatment;
checking whether an 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 connection of the embedded development tool is successful or not, if yes, opening an application project, and adding components and variables; if not, carrying out error reporting processing.
Also, the introduction process shown in fig. 7 is only one possible embodiment, and is not particularly limited. In the actual application process, the user can set the importing flow according to the own demand.
Accordingly, in performing step 304, the calling relationship between the modules shown in fig. 1 may be referred to in fig. 8.
Step 305, reloading the application information of the application software from the embedded development tool after the logic programming of the application software is completed.
Reloading application information of the application software from the embedded development tool, including:
accessing an engineering catalog of the application software, and acquiring all application information under the appointed 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, determining a first development platform selected by the user from multiple development platforms, where the terminal presets multiple 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 (may select in the "product" click box shown in fig. 5). Before data reloading, a first development platform is determined so that subsequent tasks of reloading and creating targets can be performed according to the first development platform selected by a user.
By receiving the first platform input by the user at the display interface, the configuration method in the embodiment of the invention can be suitable for various network protocols and various development platforms, thereby reducing the complexity of software development flow and increasing the portability of network control software among the development platforms.
Step 306, 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.
Optionally, the reloaded result includes application task information, components and variables of the application software;
the targets include: 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 the target based on the reloaded result includes:
establishing a first mapping between the 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;
a second mapping between components and variables of the application software and components and variables of the ICD information is established, the second mapping being used to generate communication configuration information.
It should be noted that, the target record herein may be simply understood as the identification of the target, and the substantial establishment of the first mapping is to establish the corresponding relationship between the current target and the first development platform, so as to provide a driving and compiling environment applicable to the first development platform when the target compiling task is executed subsequently.
Correspondingly, the establishment of the second mapping is essentially to establish the corresponding relationship between the components and the variables of the application software and the components and the variables under the first network protocol, so as to ensure that the application software is applicable to different network protocols.
Illustratively, referring to FIG. 10, the present embodiment provides a possible implementation of reloading and creating a target, comprising:
acquiring all application information under a designated 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 analysis of the physical architecture information is successful, if yes, continuing to analyze the engineering configuration information, and if not, performing error reporting processing;
checking whether the analysis engineering configuration information is successful, if so, continuing to analyze the variable information, and if not, performing error reporting processing;
the parsing variable information includes: parsing the organization variables and parsing the embedded variables.
After the analysis is successful, storing the analysis result into the structure body array to obtain the application task information, the component information and the 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 call relationship between the modules shown in fig. 1 can be seen in fig. 11 when the reloading and the 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 components and variables of ICD information under a first network protocol; the components and variables of ICD information are imported into an engineering file 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 reloaded results, a target is created. The target is created according to the reloading result, so that the developed network control software generated after the target compiling can be suitable for different network protocols, the complexity of the software development flow is reduced, and further, when the target is created, the first mapping can be established according to the first development platform determined by the user, so that the network control software can be suitable for different development platforms, and the portability 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, realizes standardized data management and is convenient for later maintenance.
The following is a specific example of implementation. Referring to fig. 12, in this example, the above-described network control software development configuration method is implemented by a configuration tool in the terminal. The network control software development process comprises the following steps:
the user newly builds a network control software project in the embedded development tool for the development of the network control software;
the user selects a first network protocol and a first development platform from the configuration tool, and adds a first configuration file corresponding to the first network protocol into the configuration tool;
the configuration tool analyzes the first configuration file, generates components and variables of ICD information, and introduces the components and variables of the ICD information into a network control software project of the embedded development tool;
the user carries out logic programming development on the network control software in the embedded development tool;
after the logic programming development is completed, the configuration tool reloads the software information of the network control software, and establishes a target mapping according to the software information and the pre-selected first development platform to establish a target. Further, compiling the target to obtain an update package (i.e. an available file of the network control software), and downloading the update package to the network controller, thereby completing the development of the network control software.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The following are device embodiments of the invention, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 13 is a schematic structural diagram of a network control software development configuration device according to an embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown, which is described in detail below:
as shown in fig. 13, the network control software development 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 one possible implementation, 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 respond to a triggering operation of the user on the first control, and display identifiers of multiple network protocols; the display module 131 is further configured to determine, as the first network protocol, a network protocol corresponding to the first identifier in response to a selection operation of the user for the first identifier in the identifiers of the multiple network protocols.
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 edited based on a configuration file template of 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 one possible implementation, 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 the first condition and the second condition are both satisfied, where the first condition is that there is no loss of hardware data and network configuration data; the second condition is that the hardware data and the network configuration data have no duplicate items;
if yes, reconstructing hardware data and network configuration data according to the tree structure, and respectively generating components and variables of ICD information according to the reconstructed hardware data and network configuration data;
if not, carrying out error reporting processing.
In one possible implementation manner, after parsing the first configuration file to obtain the component and the variable of the ICD information under the first network protocol, the parsing module 132 is further configured to check whether the third condition and the fourth condition are both satisfied, where the third condition is that the variable name is not repeated, and the fourth condition is that the variable offset is valid;
if yes, executing the step of importing components and variables of ICD information into engineering files of application software in the embedded development tool;
if not, carrying out error reporting processing.
An importing module 133, configured to import components and variables of the ICD information into an engineering file of the application software in the embedded development tool, where the components and variables of the 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;
a reload module 134, configured to reload application information of the application software from the embedded development tool after the logic programming of the application software is completed;
in one possible implementation, the reload module 134 is configured to access the engineering catalog of the application software and obtain all application information under the designated catalog; 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 creation module 135, configured to create a target based on the reloaded result, where the target is used to generate an available file of the application software after being compiled.
In one possible implementation, the reloaded results include application task information, components, and variables of the application software; the targets include: 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.
In one possible implementation, 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 create a second mapping between components and variables of the application software and components and variables of the ICD information, where the second mapping is used to generate communication configuration information.
The display module 131 is used for determining a first network protocol selected by a user from a plurality of 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; an importing module 133, configured to import components and variables of the ICD information into an engineering file of the application software in the embedded development tool; a reload module 134, configured to reload application information of the application software from the embedded development tool after the logic programming of the application software is completed; the creating module 135 is configured to create a target based on the reloaded result, and because the target is created according to the reloaded result, the network control software can be applied to different network protocols, thereby reducing 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, when executing the computer program 142, implements the steps of the various network control software development configuration method embodiments described above, such as steps 301 through 306 shown in fig. 4. Alternatively, the processor 140, when executing the computer program 142, performs the functions of the modules/units in the above-described apparatus embodiments, such as the functions of the modules/units 131 to 135 shown in fig. 13.
Illustratively, the computer program 142 may be partitioned into one or more modules/units that are stored in the memory 141 and executed by the processor 140 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing particular functions for describing the execution of the computer program 142 in the terminal 14. For example, the computer program 142 may be partitioned into modules/units 131 to 135 shown in fig. 13.
The terminal 14 may be a computing device such as a desktop computer, a notebook computer, a palm top computer, a cloud server, etc. The terminal 14 may include, but is not limited to, a processor 140, a memory 141. It will be appreciated by those skilled in the art that fig. 14 is merely an example of a terminal 14 and is not intended to limit the terminal 14, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the terminal may further include input and output devices, network access devices, buses, etc.
The processor 140 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 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) or the like, which are 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 to store the computer program 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-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 solution. 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 manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by instructing related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of each of the method embodiments for developing and configuring network control software when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium may include content that is subject to appropriate increases and decreases as required by jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is not included as electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (6)

1. The network control software development configuration method is characterized by being applied to a terminal, wherein the terminal presets configuration file templates of various 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 edited based on a configuration file template of the first network protocol;
analyzing the first configuration file to obtain components and variables of ICD information under the first network protocol, wherein the components and variables comprise: 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 met, wherein the first condition is that the hardware data and the network configuration data are not missing; the second condition is that no duplicate items exist 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 network configuration data; if not, carrying out error reporting treatment; checking whether a third condition and a fourth condition are both met, 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 the step of importing the components and the variables of the ICD information into engineering files of application software in an embedded development tool; if not, carrying out error reporting treatment;
importing components and variables of the ICD information into engineering files of application software in an embedded development tool, wherein the components and variables of the ICD information 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;
reloading application information of the application software from the embedded development tool after the logic programming of the application software is completed;
creating a target based on the reloaded result, comprising: establishing a first mapping between a 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; establishing a second mapping between components and variables of the application software and components and variables of the ICD information, wherein the second mapping is used for generating communication configuration information; the target is used for generating an available file of the application software after being compiled; the reloaded result comprises application task information, components and variables of the application software; the object includes: application task information of the application software, driving and compiling environment information corresponding to the first development platform and communication configuration information; the first development platform is a platform to be deployed by the application software.
2. The network control software development configuration method according to claim 1, wherein the terminal further 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.
3. The network control software development configuration method according to any one of claims 1-2, wherein reloading application information of the application software from the embedded development tool to obtain application task information, components and variables of the application software, comprises:
accessing an engineering catalog of the application software, and acquiring all application information under a designated catalog;
and analyzing all the application information to obtain application task information, components and variables of the application software.
4. The network control software development configuration method according to any one of claims 1-2, wherein the determining a first network protocol selected by a 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 identification of various network protocols;
and responding to the selection operation of a first identifier in the identifiers of the plurality of network protocols by a user, and determining the network protocol corresponding to the first identifier as the first network protocol.
5. 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 4 when the computer program is executed.
6. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any of the preceding claims 1 to 4.
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 CN114785847A (en) 2022-07-22
CN114785847B true 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 (5)

* Cited by examiner, † Cited by third party
Title
ICD配置文件的详细介绍和配置内容的详细概述;易水寒;《https://www.elecfans.com/d/688681.html》;全文 *
什么是ICD文件;JhonnyK;《https://www.cnblogs.com/dushikang/p/8295628.html》;全文 *
基于Linux的司机控制屏控制软件的开发;刘璇;;科技创新导报(第31期);全文 *
嵌入式家庭网络中央控制器的开发;黄布毅, 刘国梅, 郑安平, 陈晓雷;郑州轻工业学院学报(自然科学版)(第02期);全文 *
金伟正.《嵌入式Linux 系统开发与应用》.电子工业出版社,2011,全文. *

Also Published As

Publication number Publication date
CN114785847A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN113065656B (en) Rule engine configuration method and device, server and readable storage medium
US9811325B2 (en) Systems and methods for dynamically replacing code objects for code pushdown
CN107632827B (en) Method and device for generating installation package of application
CN111026670B (en) Test case generation method, test case generation device and storage medium
CN113238740B (en) Code generation method, code generation device, storage medium and electronic device
CN112017007A (en) User behavior data processing method and device, computer equipment and storage medium
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
CN116974581B (en) Code generation method, device, electronic equipment and storage medium
CN112947907B (en) Method for creating code branches
CN114785847B (en) Network control software development configuration method, terminal and storage medium
CN112667631B (en) Automatic editing method, device, equipment and storage medium for business field
CN112418796B (en) Sub-process task node activation method and device, electronic equipment and storage medium
CN114564286A (en) Rule engine warning method and rule engine warning system
CN114546410A (en) Code optimization method based on design mode and related equipment
CN110309062B (en) Use case generation method, device, electronic equipment and storage medium
CN112363700A (en) Cooperative creation method and device of intelligent contract, computer equipment and storage medium
CN113495723A (en) Method and device for calling functional component and storage medium
CN107506299B (en) Code analysis method and terminal equipment
CN111352811B (en) User behavior data acquisition method, device, equipment and medium
CN116860362B (en) Plug-in transaction management method and device applied to flow programming engine
CN113176943A (en) Multi-environment consistency deployment method and device
CN118113629A (en) Equipment configuration method and device
CN117407279A (en) Software component map generation method and related equipment thereof
CN114170006A (en) Information data acquisition method, device, equipment and medium based on state machine
CN112000341A (en) Application implementation method and device

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