Device for realizing application program loading of embedded system

By automatically reading and saving the card slot address encoding information in the main processor and microcontroller in the embedded system, the problem of complex operation and easy parameter configuration in the embedded system is solved, and automatic loading is achieved Applications, improve replacement efficiency and flexibility, and reduce operational complexity and cost.

CN119065740APending Publication Date: 2024-12-03TIANJIN JINHANG COMP TECH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411098771.9
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

Technical Problem

In embedded systems, the operation of replacing the main processor board is complicated and the parameter configuration is prone to errors, resulting in inconvenient replacement process.

Method used

Design a device to automatically read and save the slot address encoding information of the board card through the main processor and the microcontroller after powering on the slot position. The main processor sends query commands through the serial port, and the microcontroller feedbacks the slot address encoding information, and the main processing The machine automatically loads and replaces the application's configuration files and executable code based on this information.

Benefits of technology

It realizes automatic detection and configuration of slot number information, and automatically modify parameter script configuration files, which improves the efficiency and flexibility of replacing the main processor board, reduces operational complexity, and is low in cost and high reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065740A_ABST
    Figure CN119065740A_ABST
Patent Text Reader

Abstract

The invention relates to a device for loading an application program in an embedded system, and belongs to the technical field of communication and storage. When any main processor board card in the embedded system breaks down, other normal main processor board cards are installed in the fault slot of the computer case, manual parameter modification operation is not needed, and dynamic modification of parameters in the main processor board card in the slot and loading of application programs in the board card can be automatically and rapidly achieved. According to the device for loading the application program in the embedded system, the problems that the operation of replacing the main processor board card is complex and parameter configuration is prone to errors are perfectly solved, and rapid self-adaptive dynamic modification of the parameters of the main processor board card in a computer case of the embedded system and automatic loading of the application program are achieved; and the reliability of replacing the main processor board card in the computer case is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of communication technology and storage technology, and in particular relates to a device for implementing an embedded system to load an application program. Background Art

[0002] The embedded system contains N (N≧2) main processor boards. Except for different configuration parameter settings, the functions, performance and resources of the hardware modules contained in each main processor board are exactly the same. In order to save costs, the system is not equipped with extra main processor boards as spare parts, so that each main processor board can back up each other. When a main processor board fails, another normal main processor board needs to be inserted into the faulty slot of the embedded system computer chassis. In order to ensure that the board on the slot is replaced and the functions of the original board are realized, it is usually necessary to manually modify all parameter configuration files and application target codes in the board. This manual modification of parameters and target codes is not only complicated to operate, but also requires the operator to have certain professional skills. In addition, it is possible to mismatch or miss certain parameters, which brings many inconveniences to the replacement of the main processor board. Summary of the invention

[0003] 1. Technical issues to be resolved

[0004] The invention provides a device for realizing loading application programs in an embedded system, and solves the problems of "complex operation of replacing a main processor board and error-prone parameter configuration" in the embedded system.

[0005] (II) Technical solution

[0006] In order to solve the above technical problems, the present invention provides a device for implementing application loading in an embedded system, comprising a main processor and a single-chip microcomputer arranged on a main processor board; wherein, in an embedded system composed of N pieces of the main processor boards, each main processor board is installed in its own slot, a fixed application is loaded and run on a fixed slot number, and any main processor board is inserted into any dedicated slot;

[0007] After the main processor board is powered on, the address coding information of the current board slot is read and saved by the single-chip microcomputer of the main processor board. The main processor of the main processor board sends a slot information query command to the single-chip microcomputer through the serial port;

[0008] After receiving the slot information query command sent by the main processor through the serial port, the single-chip microcomputer on the main processor board immediately feeds back the address coding information of the board slot to the main processor through the serial port;

[0009] The file types, quantities and contents contained in each main processor board are exactly the same, and all contain executable codes of all applications and different configuration files required by all applications; if the main processor receives the board slot address coding information fed back by the single-chip microcomputer within a specified number of times, then the executable code information of the application corresponding to the board slot address coding information and the configuration file information required by the application are obtained according to the board slot address coding information; the main processor copies the configuration file required by the application loaded in this slot to the corresponding path, replacing the original configuration file information content;

[0010] After the main processor obtains its own slot information and completes the replacement operation of the configuration file information content required by the application, it mainly loads the application configuration script information corresponding to this slot; the script information content includes: application path, communication interface type and configuration information, parameter information required by the application, and instruction code for loading and running the application.

[0011] Preferably, the main processor comprises:

[0012] A first data sending module, used for sending a slot information query command to the single-chip microcomputer through a serial port;

[0013] A first data receiving module, connected to the first data sending module, for receiving address coding information of a board slot sent by the single-chip microcomputer through a serial port;

[0014] The first data processing module is connected to the first data receiving module and is used to set various configuration parameter information required for loading the application program in the slot according to the address coding information of the board slot, and then load and run the corresponding application program.

[0015] Preferably, the single chip microcomputer comprises:

[0016] A second data sending module, used for sending address coding information of the board slot to the main processor via the serial port;

[0017] The second data receiving module is connected to the first data sending module and is used for receiving the slot information query command sent by the main processor through the serial port.

[0018] Preferably, the main processor of the main processor board sends a slot information query command to the single-chip microcomputer according to a fixed cycle and number of transmissions.

[0019] Preferably, if the main processor does not receive the board slot address coding information fed back by the single-chip microcomputer within a specified number of times, the main processor gives a prompt of "slot identification failure".

[0020] The present invention also provides an embedded system, which includes N main processor boards, each of which has exactly the same hardware resource configuration, and each of which runs only one embedded application program. The main processor boards back up each other, and each of which includes the device.

[0021] Preferably, by inserting any main processor board into a fixed slot, the application corresponding to the slot can be loaded and run.

[0022] The invention also provides a working method of the device.

[0023] The invention also provides a working method of the system.

[0024] (III) Beneficial effects

[0025] The advantages of the present invention compared with the prior art are:

[0026] 1. The device can automatically detect the slot number information of the main processor board, and automatically and quickly modify the parameter script configuration file of the main processor board according to the slot number information, and select to load the corresponding target code, which greatly improves the efficiency and flexibility of replacing the main processor board;

[0027] 2. The device has the characteristics of low cost, high reliability and stability, and easy implementation. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic diagram of a multi-master processor board;

[0029] Figure 2 It is one of the structural schematic diagrams of the embedded system application loading device of the present invention;

[0030] Figure 3 This is the second structural schematic diagram of the embedded system application loading device of the present invention;

[0031] Figure 4 It is the overall flow chart of the device operation of the present invention. DETAILED DESCRIPTION

[0032] 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.

[0033] like Figure 1 , Figure 2 As shown, this embodiment provides a device for implementing an embedded system to load an application program, including a main processor arranged on a main processor board, and the main processor includes:

[0034] The first data sending module 11 is used to send a slot information query command to the single-chip microcomputer through the serial port;

[0035] A first data receiving module 12, connected to the first data sending module 11, for receiving address coding information of a board slot sent by the single-chip microcomputer through a serial port;

[0036] The first data processing module 13 is connected to the first data receiving module 12, and is used to set various configuration parameter information required for loading the application program in the slot according to the address coding information of the board slot, and then load and run the corresponding application program.

[0037] like Figure 3 As shown, this embodiment provides a device for implementing embedded system loading application program, which also includes a single chip microcomputer arranged on a main processor board, and the single chip microcomputer includes:

[0038] The second data sending module 21 is used to send the address coding information of the board slot to the main processor through the serial port;

[0039] The second data receiving module 22 is connected to the first data sending module 21 and is used for receiving the slot information query command sent by the main processor through the serial port.

[0040] After receiving the slot information query command sent by the main processor through the serial port, the single-chip microcomputer on the main processor board immediately feeds back the address coding information of the board slot to the main processor through the serial port.

[0041] Among them, in the embedded system composed of N (N≧2) main processor boards, each main processor board can back up each other; by inserting any main processor board into a fixed slot, the application corresponding to the slot can be automatically loaded and run.

[0042] The computer case of the embedded system includes N (N≧2) main processor boards, the hardware resource configuration of each main processor board is completely the same, and only one embedded application program runs in each main processor board.

[0043] Among them, in the embedded system composed of N (N≧2) main processor boards, each main processor board is installed in its own slot, and a fixed application is loaded and run on a fixed slot number. When any main processor board is inserted into any dedicated slot, the system automatically loads the corresponding application according to the slot number after power-on.

[0044] After the main processor board is powered on, the address coding information of the current board slot is read and saved by the single-chip microcomputer of the main processor board. The main processor of the main processor board sends a slot information query command to the single-chip microcomputer through the serial port.

[0045] Among them, the main processor of the main processor board sends a slot information query command to the microcontroller according to a fixed cycle and number of times; if the main processor does not receive the board slot address coding information fed back by the microcontroller within the specified number of times, the main processor gives a prompt of "slot identification failed".

[0046] Among them, the file type, quantity and content contained in each main processor board are exactly the same, and all contain executable codes of all applications and different configuration files required by all applications; if the main processor receives the board slot address coding information fed back by the single-chip microcomputer within a specified number of times, the main processor board can obtain the executable code information of the application corresponding to the board slot address coding information and the configuration file information required by the application according to the board slot address coding information; the main processor copies the configuration file required by the application loaded in this slot to the corresponding path, replacing the original configuration file information content.

[0047] Among them, after the main processor board obtains its own slot information and completes the replacement operation of the configuration file information content required by the application, the main processor board loads the application configuration script information corresponding to this slot; the script information content includes: application path, communication interface type and configuration information, parameter information required by the application, and instruction code for loading and running the application.

[0048] 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 device for implementing an embedded system to load an application, characterized in that: It includes a main processor and a single-chip microcomputer arranged on a main processor board; wherein, in an embedded system composed of N pieces of the main processor boards, each main processor board is installed in its own slot, a fixed application program is loaded and run on a fixed slot number, and any main processor board is inserted into any dedicated slot; After the main processor board is powered on, the address coding information of the current board slot is read and saved by the single-chip microcomputer of the main processor board. The main processor of the main processor board sends a slot information query command to the single-chip microcomputer through the serial port; After receiving the slot information query command sent by the main processor through the serial port, the single-chip microcomputer on the main processor board immediately feeds back the address coding information of the board slot to the main processor through the serial port; The file types, quantities and contents contained in each main processor board are exactly the same, and all contain executable codes of all applications and different configuration files required by all applications; if the main processor receives the board slot address coding information fed back by the single-chip microcomputer within a specified number of times, then the executable code information of the application corresponding to the board slot address coding information and the configuration file information required by the application are obtained according to the board slot address coding information; the main processor copies the configuration file required by the application loaded in this slot to the corresponding path, replacing the original configuration file information content; After the main processor obtains its own slot information and completes the replacement operation of the configuration file information content required by the application, it mainly loads the application configuration script information corresponding to this slot; the script information content includes: application path, communication interface type and configuration information, parameter information required by the application, and instruction code for loading and running the application.

2. The device according to claim 1, characterized in that The main processor comprises: A first data sending module, used for sending a slot information query command to the single-chip microcomputer through a serial port; A first data receiving module, connected to the first data sending module, for receiving address coding information of a board slot sent by the single-chip microcomputer through a serial port; The first data processing module is connected to the first data receiving module and is used to set various configuration parameter information required for loading the application program in the slot according to the address coding information of the board slot, and then load and run the corresponding application program.

3. The device according to claim 2, characterized in that The single chip microcomputer comprises: A second data sending module, used for sending address coding information of the board slot to the main processor via the serial port; The second data receiving module is connected to the first data sending module and is used for receiving the slot information query command sent by the main processor through the serial port.

4. The device according to claim 1, characterized in that The main processor of the main processor board sends a slot information query command to the single-chip microcomputer according to a fixed cycle and number of times.

5. The device according to claim 1, characterized in that If the main processor does not receive the board slot address coding information fed back by the microcontroller within the specified number of times, the main processor will give a prompt of "slot identification failed".

6. The device according to claim 1, characterized in that N is greater than or equal to 2.

7. An embedded system, characterized in that: The embedded system includes N main processor boards, each of which has exactly the same hardware resource configuration, and each of which runs only one embedded application program. The main processor boards back up each other, and each of which includes a device as described in any one of claims 1 to 6.

8. The system according to claim 7, characterized in that By inserting any main processor board into a fixed slot, you can load and run the application corresponding to the slot.

9. A method for operating the device according to any one of claims 1 to 6.

10. A method of operating the system according to claim 7 or 8.