Automatic method for developing embedded software of PTC (Positive Temperature Coefficient) controller based on Jenkins

By building a Jenkins-based PTC controller embedded software development management system, automatically compiling and testing source code files, the problems of inconvenient management and repetitive work in embedded software development are solved, and development efficiency and resource utilization are improved.

CN120353444APending Publication Date: 2025-07-22XIAN MANHUI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311689389.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-09
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

In embedded software development, source code file management is inconvenient and integration and testing work is cumbersome, resulting in waste of resources and inefficiency.

Method used

The PTC controller embedded software development management system consisting of a host, a slave, Git, HIL cabinet, mailbox, automated compilation scripts and automated test scripts is used to realize automated compilation and testing, and set the on and exit conditions to optimize system operation.

Benefits of technology

It realizes unified and efficient management of source code files, reduces the repetitive work of software integration and integration testing, saves human resources, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353444A_ABST
    Figure CN120353444A_ABST
Patent Text Reader

Abstract

The invention discloses a Jenkins-based PTC (Positive Temperature Coefficient) controller embedded software development automation method, which comprises the following steps of: setting necessary conditions for starting a PTC controller embedded software development management system through the PTC controller embedded software development management system, and when the starting conditions of the PTC controller embedded software development management system are met, sending an instruction by a host so as to start the PTC controller embedded software development management system. The slave responds to the corresponding instruction to connect the other parts in series; meanwhile, necessary conditions for quitting of the PTC controller embedded software development management system are set, and when the host does not detect a new task scheduling instruction or does not have a trigger condition, an execution state is obtained to have an error flag bit, and no task is executed in the PTC controller embedded software development management system, the host stops sending the instruction, and the host stops sending the instruction. The master machine and the slave machine operate independently, and source code files generated in the development of embedded software of the PTC controller can be automatically compiled and tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of embedded software development, relates to Jenkins application technology, and particularly relates to an automated method for embedded software development of a PTC controller based on Jenkins. Background Art

[0002] Embedded software development refers to designing and developing efficient, stable, and reliable software for devices in fields such as smartphones, household appliances, automobiles, medical devices, and industrial control systems, enabling these devices to achieve various functions and connect with the external world. Embedded software development involves multiple technical fields, including embedded system architecture design, programming languages, real-time operating systems, driver development, communication protocols, etc. Developers need to deeply understand the hardware platform and relevant technical standards, and use corresponding tools and technologies for software development and debugging to ensure that the software can operate normally under limited resources and environments. With the miniaturization and intelligentization of modern devices, the application fields of embedded software development are becoming more and more extensive, and the demand for embedded software development continues to grow.

[0003] In embedded software development, a large number of various source code files and intermediate files are generated, which are extremely inconvenient to manage and are accompanied by repetitive work in software integration and software integration testing, consuming the time and energy of developers and causing waste of resources. Therefore, based on our existing products, we propose an automated method for embedded software development of a PTC controller based on Jenkins. Summary of the Invention

[0004] In order to overcome the disadvantages and deficiencies of the prior art, the present invention provides an automated method for embedded software development of a PTC controller based on Jenkins.

[0005] The technical solution adopted by the present invention is that the method includes:

[0006] Step A100, through a PTC controller embedded software development management system composed of a host, a slave, Git, a HIL cabinet, a mailbox, an automated compilation script, and an automated test script, perform automated compilation and automated testing on various source code files generated during the embedded software development of the PTC controller. The source code file compilation and testing module transmits messages sent by the PTC controller embedded software task response module according to the development program signal.

[0007] Step A200, setting the necessary conditions for starting the PTC controller embedded software development and management system. When the operating conditions of the PTC controller embedded software development and management system are met, the host sends an instruction, and the slave responds to the corresponding instruction to connect the remaining components in series. The PTC controller embedded software task response module integrates the source code file compilation test module's source code file compilation test and the developer design requirements integration module integrates the source code file compilation test;

[0008] Step A300, when the developer sends a task execution instruction to the host or inputs a new source code file into Git, the slave is triggered to download the latest source code file from the folder specified by Git, and the latest source code file is compiled using an automated compilation script to produce a final executable file. The PTC controller embedded software instruction integration module integrates the source code file in the PTC controller embedded software task response module according to the developer's design requirements, compiles and tests, and performs response and development management;

[0009] Step A400, when there is a test requirement, the slave executes the instruction, performs the automated test through the HIL cabinet and the automated test script, and sends the automated test report and software to the designated PC via email, compiles the test executable file development management module to extract the source code file developed and managed in the PTC controller embedded software instruction integration module, compiles the test, and writes it into the host control platform;

[0010] Step A500, sets the necessary conditions for the exit of the PTC controller embedded software development and management system. When the host does not detect a new task execution instruction or there is no source code file input in the slave, the execution status is obtained with an error flag, and there is no task being executed in the PTC controller embedded software development and management system, the host stops sending instructions, the master and slave machines run independently, and the source code file compilation and test optimization module calls the source code file compilation and test of the host control platform in real time according to the application information of the information application entrance.

[0011] Furthermore, the PTC controller embedded software development management system consists of a host, a slave, Git, a HIL cabinet, a mailbox, an automated compilation script and an automated test script. The PTC controller embedded software development management system is used for automated compilation of various source code files, automated testing, test reports and automated release of software.

[0012] Furthermore, the necessary conditions for starting the PTC controller embedded software development and management system include: the slave has a new source code file input or the host issues a task execution instruction; each master, slave and component works normally without faults.

[0013] Furthermore, the necessary conditions for the PTC controller embedded software development management system to exit include: no new task execution instructions are input in the host or no new source code files are input in the slave; no tasks are being executed in the system; components in the system malfunction, affecting the normal operation of the system.

[0014] Furthermore, when the PTC controller embedded software development management system is turned on, the PTC controller embedded software development management system checks the status of all system components to ensure that when new task execution instructions or new source code files are input, the PTC controller embedded software development management system operates normally.

[0015] Furthermore, the compilation test executable file development management module is a code set, the host control platform is an artificial intelligence operation set, and the source code file compilation test optimization module is a developer operation interface.

[0016] Furthermore, the code set integrates the source code file compilation test from the source code file data collection in a way that developers regularly access through the cloud, and enables the pre-written log mechanism to write the source code file compilation test to the host control platform; or, the code set integrates the source code file compilation test from the source code file data collection by computer counting and writes the source code file compilation test to the host control platform.

[0017] Furthermore, the code set writes the source code file compilation test to the artificial intelligence operation set according to the characteristic types of the compilation test information or the line keys of the byte lengths.

[0018] The developer operation interface integrates the nodes of the source code file compilation test according to the information application entry and integrally and in real time from the artificial intelligence operation set by using the method of manual counting.

[0019] Beneficial effects:

[0020] The present invention relates to a PTC controller embedded software development management system composed of a host, a slave, Git, a HIL cabinet, a mailbox, an automated compilation script, and an automated test script; necessary conditions for starting the PTC controller embedded software development management system are set. When the starting conditions of the PTC controller embedded software development management system are met, the host issues an instruction, and the slave responds to the corresponding instruction to connect the remaining components in series; at the same time, necessary conditions for exiting the PTC controller embedded software development management system are set. When the host does not detect the input of a new task execution instruction or a new source code file, and there is no task being executed in the PTC controller embedded software development management system, the host stops sending instructions, and the host and the slave operate independently. The present invention can implement unified and efficient management of the basic software source code files developed in a modular manner through multi-person collaboration in the PTC controller embedded software development and the application layer software source code files automatically generated by Matlab / Simulink / Stateflow, realize one-stop automated compilation and automated testing, reduce the repetitive work of software integration and integration testing, and save human resources. Description of the Drawings

[0021] Figure 1 It is a flowchart of the method steps of the present invention;

[0022] Figure 2 It is a composition diagram of the PTC controller embedded software development management system of the present invention. Detailed Embodiment

[0023] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The following further describes the present application in detail with reference to the drawings and specific embodiments.

[0024] As Figure 1 shown, an automated method for PTC controller embedded software development based on Jenkins

[0025] Step 1: A PTC controller embedded software development management system composed of a host, a slave, Git, a HIL cabinet, a mailbox, an automated compilation script, and an automated test script is used to manage the source code files generated during the PTC controller embedded software development process and implement automated compilation and automated testing. The source code file compilation and testing module transmits messages sent by the PTC controller embedded software task response module according to the development program signal.

[0026] Step 2, setting the necessary conditions for starting the PTC controller embedded software development and management system. When the conditions for starting the PTC controller embedded software development and management system are met, the host sends a command, and the slave responds to the corresponding command to connect the remaining components in series. The PTC controller embedded software task response module integrates the source code file compilation test module's source code file compilation test and the developer design requirements integration module integrates the source code file compilation test;

[0027] Step 3: If the developer issues a task execution instruction to the host or inputs a new source code file into Git, the slave is triggered to download the latest source code file from the folder specified by Git, and the latest source code file is compiled using an automated compilation script to produce a final executable file. The PTC controller embedded software instruction integration module integrates the source code file in the PTC controller embedded software task response module according to the developer's design requirements, compiles and tests it, and performs response and development management.

[0028] Step 4. When there is a test requirement, the slave executes the instruction, performs automated testing through the HIL cabinet and automatic test script, and sends the test report and software to the designated PC via email. The compile test executable file development management module extracts the source code file developed and managed in the PTC controller embedded software instruction integration module, compiles the test, and writes it into the host control platform.

[0029] Step five, set the necessary conditions for the exit of the PTC controller embedded software development and management system. When the host does not detect new task execution instruction input or no new source code file input, obtains an error flag in the execution status, and there is no task being executed in the PTC controller embedded software development and management system, the host stops sending instructions, the master and slave machines run independently, and the source code file compilation and test optimization module calls the source code file compilation and test of the host control platform in real time according to the application information of the information application entrance.

[0030] The implementation of the present invention relies on a PTC controller embedded software development management system consisting of a host, a slave, Git, a HIL cabinet, a mailbox, an automatic compilation script and an automatic test script, as shown in the attached Figure 2 As shown, it is possible to realize automated compilation and automated testing, as well as automated test reports and software release.

[0031] When the conditions for starting the PTC controller embedded software development and management system are met, the host sends instructions, and the slave responds to the corresponding instructions to connect the remaining components in series; if the developer sends a task execution instruction to the host or inputs a new source code file into Git, the slave is triggered to download the latest source code file from the folder specified by Git, and the automatic compilation script compiles the latest source code file to produce the final executable file; when there is a test requirement, the slave executes the instruction, performs automated testing through the HIL cabinet and automatic test script, and sends the test report and software to the designated PC via email; when the host does not detect the input of a new task execution instruction or a new source code file, and there is no task being executed in the PTC controller embedded software development and management system, the host stops sending instructions, and the master and slave run independently;

[0032] The implementation of the present invention requires converting the solutions mentioned in the above content into corresponding software programs and corresponding hardware devices, and running and implementing them in various links, and realizing their opening and exiting through the running results of relevant programs and according to the working status of the PTC controller embedded software development and management system.

[0033] One of the embedded software development automation methods of the present invention, when a new source code file is generated and a corresponding output file needs to be output, the master and slave machines are connected in series to execute the corresponding instructions, the environment configuration is implemented through the JenkinsFile script file, and the script is used to schedule the execution of each task and the operation of the automation script of each component, and execute the corresponding commands to complete the corresponding operations.

[0034] The PTC controller embedded software instruction integration module is configured as a source code file data collection set, the compilation test executable file development management module is configured as a code set, the host control platform is configured as an artificial intelligence operation set, and the source code file compilation test optimization module is configured as a developer operation interface. The following is an implementation method after a specific configuration of a PTC controller embedded software development automation system based on Jenkins:

[0035] The source code file data collection set includes a data integration location, a data response module and a source code file data collection development management time point. The source code file compilation test module generates developer design requirements by transmitting parallel format data through a network protocol, and the PTC controller embedded software task response module sends the developer design requirements to the data integration location.

[0036] The data integration location integrates the compilation and testing of source code files according to the design requirements of developers, and sends the compilation and testing of the source code files in an encrypted form to the data response module according to a preset period. The data response module converts the compilation and testing of the source code files into parallel format data and develops and manages it to the time point of data collection and development management of the source code files. The compilation and testing of the source code files include: the characteristic types, characteristic forms, byte lengths, and compliance of the compilation and testing information.

[0037] The code set integrates the compilation and testing of the source code files from the source code file data collection through the cloud by the developer at regular intervals, and enables the write-ahead logging mechanism to write the compilation and testing of the source code files into the artificial intelligence operation set; alternatively, the code set integrates the compilation and testing of the source code files from the source code file data collection by means of computer counting and writes the compilation and testing of the source code files into the artificial intelligence operation set.

[0038] The code set writes the compilation and testing of the source code files into the artificial intelligence operation set according to the characteristic type or byte length of the compilation and testing information acting as the row key.

[0039] The developer operation interface integrates the nodes of the compilation and testing of the source code files according to the information application entry, and integrally integrates the compilation and testing of the source code files from the artificial intelligence operation set in real time by means of manual counting.

[0040] An automated method for embedded software development of a PTC controller based on Jenkins provided by an embodiment of the present invention. The source code file compilation and testing module transmits the message sent by the PTC controller embedded software task response module according to the development program signal. The PTC controller embedded software task response module integrates the compilation and testing of the source code files and integrates, responds to, and develops and manages them with the integration module according to the design requirements of the developer; the compilation and testing executable file development and management module then writes the transmission record in the PTC controller embedded software instruction integration module into the host control platform, and the source code file compilation and testing optimization module realizes the real-time retrieval of the compilation and testing of the source code files; so that the compilation and testing of the source code files tested by the developer can be viewed in real time, facilitating the viewing of data with relatively high requirements for data timeliness, and at the same time improving the working efficiency of the PTC controller embedded software.

[0041] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", "connect", "fix" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood through specific situations.

[0042] Although embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that various equivalent changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An automated method for embedded software development of a PTC controller based on Jenkins, characterized in that , the method comprises: Step A100, through a PTC controller embedded software development management system consisting of a host, a slave, Git, a HIL cabinet, a mailbox, an automated compilation script and an automated test script, various source code files generated during the development of the PTC controller embedded software are automatically compiled and automatically tested, and the source code file compilation and testing module transmits the message sent by the PTC controller embedded software task response module according to the development program signal; Step A200, setting the necessary conditions for starting the PTC controller embedded software development and management system. When the operating conditions of the PTC controller embedded software development and management system are met, the host sends an instruction, and the slave responds to the corresponding instruction to connect the remaining components in series. The PTC controller embedded software task response module integrates the source code file compilation test module's source code file compilation test and the developer design requirements integration module integrates the source code file compilation test; Step A300, when the developer sends a task execution instruction to the host or inputs a new source code file into Git, the slave is triggered to download the latest source code file from the folder specified by Git, and the latest source code file is compiled using an automated compilation script to produce a final executable file. The PTC controller embedded software instruction integration module integrates the source code file in the PTC controller embedded software task response module according to the developer's design requirements, compiles and tests, and performs response and development management; Step A400, when there is a test requirement, the slave executes the instruction, performs the automated test through the HIL cabinet and the automated test script, and sends the automated test report and software to the designated PC via email, compiles the test executable file development management module to extract the source code file developed and managed in the PTC controller embedded software instruction integration module, compiles the test, and writes it into the host control platform; Step A500, sets the necessary conditions for the exit of the PTC controller embedded software development and management system. When the host does not detect a new task execution instruction or there is no source code file input in the slave, the execution status is obtained with an error flag, and there is no task being executed in the PTC controller embedded software development and management system, the host stops sending instructions, the master and slave machines run independently, and the source code file compilation and test optimization module calls the source code file compilation and test of the host control platform in real time according to the application information of the information application entrance.

2. The automated software development method for the PTC controller embedded system based on Jenkins according to claim 1, wherein The PTC controller embedded software development management system consists of a host, a slave, Git, HIL cabinet, mailbox, automated compilation scripts and automated test scripts. The PTC controller embedded software development management system is used for automated compilation of various source code files, automated testing, test reports and automated release of software.

3. The automated software development method for PTC controller embedded based on Jenkins according to claim 1, wherein, The necessary conditions for starting the PTC controller embedded software development management system include: the slave has a new source code file input or the host issues a task execution instruction; all master and slave machines and components work normally without any faults.

4. The automated software development method for PTC controller embedded based on Jenkins according to claim 1, wherein The necessary conditions for the exit of the PTC controller embedded software development management system include: no new task execution instructions are input in the host or no new source code files are input in the slave; no tasks are being executed in the system; components in the system have faults, affecting the normal operation of the system.

5. The automated software development method for the PTC controller embedded system based on Jenkins as claimed in claim 1, wherein, When the PTC controller embedded software development management system is turned on, the PTC controller embedded software development management system checks the status of all system components to ensure that the PTC controller embedded software development management system operates normally when new task execution instructions or new source code files are input.

6. The automated software development method for a PTC controller embedded system based on Jenkins according to claim 1, wherein The compilation test executable file development management module is a code set, the host control platform is an artificial intelligence operation set, and the source code file compilation test optimization module is a developer operation interface.

7. The automated software development method for the PTC controller embedded system based on Jenkins according to claim 6, characterized in that, The code set integrates the source code file compilation test from the source code file data collection through the method of developers accessing the cloud at regular intervals, and enables the pre-written log mechanism to write the source code file compilation test into the host control platform; or, the code set integrates the source code file compilation test from the source code file data collection by computer counting and writes the source code file compilation test into the host control platform.

8. The automated software development method for the PTC controller embedded system based on Jenkins according to claim 6, characterized in that, The code set writes the source code file compilation test into the artificial intelligence operation set according to the characteristic types of the compilation test information or the line keys of the byte lengths. The developer operation interface integrates the nodes of the source code file compilation test according to the information application entry, and uses the method of manual counting to integrate the source code file compilation test from the artificial intelligence operation set in real time.