Method for loading application program in embedded system
Obtain terminal device identity information through the console, and automatically load applications and configuration files in embedded systems, solving the problems of application loading complexity and configuration errors in embedded systems, improving loading efficiency and correctness, and achieving low loading Automatic loading solution for cost, high reliability and stability.
Patent Information
- Application Number
- CN202411098384.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-12-03
AI Technical Summary
In embedded systems, the operation of the execution unit and terminal device applications is complicated when loading and running, and the parameter configuration is prone to errors, resulting in low loading efficiency and correctness.
Obtain the identity information of the terminal device through the console, automatically notify the execution unit and the terminal device to load the corresponding application and configuration files, and use the Ethernet protocol to automatically replace and load the application and configuration files to ensure the correct application run.
It improves the automatic loading efficiency and correctness of execution units and terminal device applications, reduces the risk of operation complexity and configuration errors, and has the characteristics of low cost, high reliability and good stability.
Smart Images

Figure CN119065738A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of communication technology and storage technology, and in particular relates to a method for loading an application program in an embedded system. Background Art
[0002] The embedded system includes multiple consoles, multiple execution units and multiple terminal devices. Each execution unit includes multiple different applications, and each terminal device also includes multiple different applications. The execution unit selects to load and run the corresponding application according to the different identity information of the terminal device, and the terminal device selects to load and run the corresponding application according to the different identity information of itself. In order to ensure the correct loading of the application of the execution unit and the terminal device, it is usually necessary to manually change the name of the execution unit application target code and the terminal device application target code corresponding to the terminal device identity information to a pre-set name after knowing the identity information of the terminal device in advance, and manually replace the various configuration files required by the application. After the execution unit and the terminal device are powered on, the application target code with the pre-set name and the replaced configuration file will be automatically loaded and run. This method of manually modifying the application target code and configuration file is not only complicated to operate, but also requires the operator to have certain professional skills, and it is also possible to mismatch or miss certain parameters, which brings many inconveniences to the loading and running of the execution unit and terminal device applications. Summary of the invention
[0003] 1. Technical issues to be resolved
[0004] The present invention provides a method for loading an application program in an embedded system, which solves the problem of "complex operation and error-prone parameter configuration during the loading and running of application programs in execution units and terminal devices", and improves the efficiency and correctness of automatic loading of application programs by execution units and terminal devices.
[0005] (II) Technical solution
[0006] In order to solve the above technical problems, the present invention provides a method for loading an application program in an embedded system, which is implemented based on N1 consoles, N2 execution units and N3 terminal devices; wherein any one console can control the operation of M1 execution units, and any one execution unit can control the operation of M2 terminal devices; N1≧1, N2≧1, N3≧1, N2≧M1≧1, N3≧M2≧1, each execution unit contains M different application programs and program configuration files, each terminal device contains M different application programs and program configuration files, N3≧M≧1; the terminal devices have a total of M different identity information, which is distinguished by different hardware signals, and the application programs of terminal devices with different identity information are also different; a certain application program in the execution unit can only match the terminal device with the same identity information to perform corresponding control work;
[0007] After the console, execution unit and terminal device are powered on, the console sends a permission application message to a certain execution unit via Ethernet to determine whether the execution unit is controlled by another console; if the current execution unit is not controlled by a certain console, the current execution unit feedbacks to the console that the application for control permission is successful, and sends the identity information of the terminal device controlled by it to this console via Ethernet; the console sends application loading selection information to the execution unit via Ethernet based on the identity information of the terminal device, and notifies the execution unit to load the corresponding application; if the current execution unit is already controlled by a certain console, the current execution unit feedbacks to the console that the application for control permission fails, and the console sends permission application messages to other execution units via Ethernet to apply for the control permission of the execution unit;
[0008] The console sends parameter configuration selection information to all terminal devices controlled by the execution unit through Ethernet according to the terminal device identity information fed back by the controlled execution unit, and notifies the terminal devices to set parameter information and select to load application programs.
[0009] Preferably, each of the execution units contains M different applications and program configuration files; if the execution unit receives the loading application selection information sent by the console via Ethernet, the execution unit copies the application configuration file required by the execution unit to the corresponding path according to the application selection information, replacing the original configuration file information content.
[0010] Preferably, after the execution unit obtains the application selection information for loading and completes the replacement operation of the application configuration file, the execution unit loads the application configuration script information corresponding to the application selection information.
[0011] Preferably, the content of the application configuration script information includes: application path, communication interface type and configuration information, parameter information required by the application, and instruction code for loading and running the application.
[0012] Preferably, each terminal device includes M different applications and program configuration files; if the terminal device receives parameter configuration selection information sent by the console via Ethernet, the terminal device copies the application configuration file required by the terminal device to the corresponding path according to the parameter configuration selection information, replacing the original configuration file information content.
[0013] Preferably, after the terminal device obtains the parameter configuration selection information and completes the replacement operation of the application configuration file, the terminal device loads the application configuration script information corresponding to the parameter configuration selection information.
[0014] Preferably, the content of the application configuration script information includes: application path, communication interface type and configuration information, parameter information required by the application, and loading and running the application.
[0015] Preferably, the console can notify the execution unit and the terminal device to automatically load and run the corresponding application program and configuration file information by acquiring the terminal device identity information.
[0016] The invention also provides an application of the method in the field of communication technology.
[0017] The invention also provides an application of the method in the field of storage technology.
[0018] (III) Beneficial effects
[0019] The advantages of the present invention compared with the prior art are:
[0020] 1. This method can obtain the identity information of the terminal device through the console, and the console notifies the execution unit and the terminal device to automatically load and run the corresponding application and configuration file information, which greatly improves the efficiency and correctness of the execution unit and the terminal device to automatically load the application;
[0021] 2. This method has the characteristics of low cost, high reliability and stability, and easy implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of the connection between the console, the execution unit and the terminal device of the present invention;
[0023] Figure 2 It is an overall flow chart of the method of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0025] The present invention proposes a method for loading an application program in an embedded system. When a console, an execution unit and a terminal device are powered on, there is no need to manually modify the target code names of the execution unit and the terminal device application programs and replace the configuration file contents. The console can notify the execution unit and the terminal device to automatically load and run the corresponding application program and configuration file information based on the identity information of the terminal device obtained.
[0026] Only by adopting the solution of the present invention can the problem of "complex operation and error-prone parameter configuration when loading and running the execution unit and terminal device application" be perfectly solved. The present invention can realize the automatic loading of the execution unit and terminal device application and configuration file, and improve the reliability of loading the execution unit and terminal device application.
[0027] like Figure 1 , Figure 2 As shown, the present invention proposes a method for loading an application program in an embedded system, which is implemented based on a console, an execution unit and a terminal device in the embedded system, and the steps are as follows:
[0028] S1: The execution unit feeds back the identity information of the terminal device to the console via Ethernet, and the console notifies the execution unit to load the corresponding application according to the identity information of the terminal device;
[0029] The embedded system is composed of N1 (N1≧1) consoles, N2 (N2≧1) execution units and N3 (N3≧1) terminal devices. Any console can control the operation of M1 (N2≧M1≧1) execution units, and any execution unit can control the operation of M2 (N3≧M2≧1) terminal devices. Each execution unit contains M (N3≧M≧1) different applications and program configuration files, and each terminal device contains M different applications and program configuration files.
[0030] There are M different identity information of the terminal devices, which are distinguished by different hardware signals, and the applications of the terminal devices with different identity information are also different. A certain application in the execution unit can only match the terminal device with the same identity information to perform corresponding control work.
[0031] Among them, after the console, execution unit and terminal device are powered on, the console sends a permission application message to a certain execution unit through Ethernet to determine whether the execution unit is controlled by another console; if the current execution unit is not controlled by a certain console, the current execution unit feedbacks to the console that the application for control permission is successful, and sends the identity information of the terminal device controlled by it to this console through Ethernet; the console sends loading application selection information to the execution unit through Ethernet based on the identity information of the terminal device, and notifies the execution unit to load the corresponding application; if the current execution unit is already controlled by a certain console, the current execution unit feedbacks to the console that the application for control permission fails, and the console sends permission application messages to other execution units through Ethernet to apply for control permission of the execution unit.
[0032] Each execution unit includes M different applications and program configuration files. If the execution unit receives the application selection information sent by the console via Ethernet, the execution unit copies the application configuration file required by the execution unit to the corresponding path according to the application selection information, replacing the original configuration file information content.
[0033] After the execution unit obtains the application selection information for loading and completes the replacement operation of the application configuration file, the execution unit loads the application configuration script information corresponding to the application selection information. The script information content includes: application path, communication interface type and configuration information, parameter information required by the application, and loading and running the application.
[0034] S2: The console sends parameter configuration selection information to the terminal device via Ethernet. The terminal device configures its own parameters and loads the corresponding application according to the information sent by the console.
[0035] The console sends parameter configuration selection information to all terminal devices controlled by the execution unit through Ethernet according to the terminal device identity information fed back by the execution unit controlled by the console, and notifies the terminal devices to set parameter information and select to load application programs.
[0036] Each terminal device includes M different application programs and program configuration files. If the terminal device receives parameter configuration selection information sent by the console via Ethernet, the terminal device copies the application configuration file required by the terminal device to the corresponding path according to the parameter configuration selection information, replacing the original configuration file information content.
[0037] After the terminal device obtains the parameter configuration selection information and completes the replacement operation of the application configuration file, the terminal device loads the application configuration script information corresponding to the parameter configuration selection information. The script information content includes: application path, communication interface type and configuration information, parameter information required by the application, and loading and running the application.
[0038] It can be seen that in the embedded system composed of N1 consoles, N2 execution units and N3 terminal devices, the console can notify the execution unit and the terminal device to automatically load and run the corresponding application and configuration file information by obtaining the identity information of the terminal device.
[0039] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for loading an application program in an embedded system, It is characterized in that This method is based on N 1 consoles, N 2 execution units and N 3 terminal devices; any console can control M 1 Each execution unit can control M 2 N terminal devices work; 1 ≧1, N 2 ≧1, N 3 ≧1, N 2 ≧M 1 ≧1, N 3 ≧M 2 ≧1, each execution unit contains M different applications and program configuration files, each terminal device contains M different applications and program configuration files, N 3 ≧M≧1; the terminal device has M different identity information, which are distinguished by different hardware signals, and the application programs of terminal devices with different identity information are also different; a certain application program in the execution unit can only match the terminal device with the same identity information to perform corresponding control work; After the console, execution unit and terminal device are powered on, the console sends a permission application message to a certain execution unit via Ethernet to determine whether the execution unit is controlled by another console; if the current execution unit is not controlled by a certain console, the current execution unit feedbacks to the console that the application for control permission is successful, and sends the identity information of the terminal device controlled by it to this console via Ethernet; the console sends application loading selection information to the execution unit via Ethernet based on the identity information of the terminal device, and notifies the execution unit to load the corresponding application; if the current execution unit is already controlled by a certain console, the current execution unit feedbacks to the console that the application for control permission fails, and the console sends permission application messages to other execution units via Ethernet to apply for the control permission of the execution unit; The console sends parameter configuration selection information to all terminal devices controlled by the execution unit through Ethernet according to the terminal device identity information fed back by the controlled execution unit, and notifies the terminal devices to set parameter information and select to load application programs.
2. The method according to claim 1, It is characterized in that Each of the execution units contains M different applications and program configuration files; if the execution unit receives the loading application selection information sent by the console via Ethernet, the execution unit copies the application configuration file required by the execution unit to the corresponding path according to the application selection information, replacing the original configuration file information content.
3. The method according to claim 2, It is characterized in that After the execution unit obtains the application selection information for loading and completes the replacement operation of the application configuration file, the execution unit loads the application configuration script information corresponding to the application selection information.
4. The method according to claim 3, It is characterized in that The content of the application configuration script information includes: application path, communication interface type and configuration information, parameter information required by the application, and instruction code for loading and running the application.
5. The method according to claim 3, It is characterized in that Each terminal device contains M different applications and program configuration files; if the terminal device receives parameter configuration selection information sent by the console via Ethernet, the terminal device copies the application configuration file required by the terminal device to the corresponding path according to the parameter configuration selection information, replacing the original configuration file information content.
6. The method according to claim 5, It is characterized in that After the terminal device obtains the parameter configuration selection information and completes the replacement operation of the application configuration file, the terminal device loads the application configuration script information corresponding to the parameter configuration selection information.
7. The method according to claim 6, It is characterized in that The content of the application configuration script information includes: application path, communication interface type and configuration information, parameter information required by the application, and loading and running the application.
8. The method according to claim 2, It is characterized in that The console can notify the execution unit and the terminal device to automatically load and run the corresponding application program and configuration file information by obtaining the terminal device identity information.
9. Application of the method according to any one of claims 1 to 8 in the field of communication technology.
10. Application of the method according to any one of claims 1 to 8 in the field of storage technology.
