A method for collecting information of multi-processor system
By building an information collection system in a multi-processor system, using node management and data interaction modules to control the information collection module to collect in each clock cycle, integrating and displaying information, the space occupation and problem of information collection in multi-processor embedded systems are solved. Convenience issues enable efficient information collection and system decoupling.
Patent Information
- Application Number
- CN202011426734.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-12-09
AI Technical Summary
When collecting information from existing multi-processor embedded systems, the commonly used methods cannot fully meet the needs of specific situations. In particular, they occupy a large space and are inconvenient to use, and cannot effectively collect system information. For example, multi-processor embedded systems for radar signal processing system.
A multi-processor system information collection method is adopted, including a node management module, an information collection module, a data storage module and a data interaction module. Power-on self-test is performed by setting the initial system clock cycle, and the information collection module is controlled to collect information in each clock cycle. , and store the collected information in the data storage module, and display it through the interface after integration. It uses multi-processor correlation to indirectly collect information from unresponsive processors, and supports customized collection items and working modes.
It achieves information collection without occupying too many system resources, and is decoupled from the work of the multi-processor embedded system itself, solving the problem of information collection and having good engineering application prospects.
Smart Images

Figure CN112667459B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-processor embedded systems, and more specifically, to a multi-processor system information collection method. Background Art
[0002] When a multi-processor embedded system is working, in order to ensure the normal operation of the system, it is necessary to collect the system's software operation information and hardware operation information. Common collection methods include adding sensors and external information collection devices. The former method can only collect part of the system information and is relatively limited in use. The latter requires external devices to take up space, which is inconvenient to use or space does not allow. None of the above methods can fully meet the information collection of multi-processor embedded systems in specific situations, such as radar signal processing multi-processor embedded systems. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-processor system information collection method, which does not need to occupy too many system resources and is decoupled from the multi-processor embedded system itself, thereby solving the problem of multi-processor embedded system information collection.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] The present invention provides a multi-processor system information collection method, comprising the following steps:
[0006] Build a multi-processor information collection system, the system includes: a node management module, an information collection module, a data storage module, a data interaction module and an information display module;
[0007] After the multi-processor information collection system is powered on, the node management module sets the initial system clock cycle, the information collection module creates an information collection table, performs a power-on self-test on the system according to the information collection table, and after the self-test is completed, sends the self-test result to the data storage module through the data interaction module, and the node management module publishes the working mode to the information collection module through the data interaction module according to the self-test result;
[0008] The node management module controls the information collection module to collect information during the system operation process in each system clock cycle;
[0009] When the information collection module completes the information collection of the system, the collected information is sent to the data storage module through the data interaction module;
[0010] The collected information is stored in the data storage module and sent to the node management module by the data interaction module;
[0011] The node management module integrates the collected information, and the information display module displays the integrated information on the screen through the interface.
[0012] In a specific example, the power-on self-test is a power-on self-test collection item set in an information collection table. During the operation of the system, the information collection module performs corresponding information collection work at a fixed position of a system clock cycle according to the content in the information collection table;
[0013] The node management module reads the collected information in the data storage module through the data interaction module and sends data control instructions to the data storage module;
[0014] The data storage module is used to convert the storage type of the collected information, select a storage area according to the storage type of the collected information, and complete the control operation of the collected information in the storage area according to the data control instruction;
[0015] The data interaction module is used to send collection instructions from the node management module to the information collection module, read the information in the data storage module, and upload the collected information integrated by the node management module to the information display module.
[0016] In a specific example, the system clock cycle is a fixed cycle of the information collection module. When the node management module does not switch the working state, the information collection module performs information collection at a fixed position in each clock cycle. The system clock cycle is in the order of millimeters.
[0017] In a specific example, the default information collection items of the information collection table during system operation are temperature sensor parameters, voltage sensor parameters, power consumption parameters, timer parameters, memory device status, interface device status, optical fiber device status, synchronizer device status and fast input and output device status. Based on the default information collection items, custom information collection items can be generated by the information collection module when creating the information collection table.
[0018] In a specific example, there are two working modes: a first priority working mode and a second priority working mode, wherein:
[0019] When the node management module reads the power-on self-test information stored in the data storage module, a parameter abnormality occurs, and the node management module publishes a first priority working mode to the information acquisition module through the data interaction module. In this mode, the information acquisition module has priority to work after the system clock cycle arrives; when the node management module reads the power-on self-test information stored in the data storage module, the parameters are normal, and the node management module publishes a second priority working mode to the information acquisition module. In this mode, the information acquisition module works last after the system clock cycle arrives.
[0020] In a specific example, in each system clock cycle, the node management module sends a collection instruction to the information collection module through the data interaction module. The information collection module responds to the collection instruction in the next system clock cycle and switches the working state of the information collection module. During the information collection process, the information collection module collects information for each processor itself according to the information collection table. When the fast input and output devices in the default collection items or the user-defined input and output devices do not respond for multiple system clock cycles, the information collection module fails to collect the input and output device information of each processor itself. At this time, the information collection module uses the multi-processor association method to indirectly collect the input and output device information of the unresponsive processor.
[0021] In a specific example, the working states of the information collection module are divided into: standby, polling and parallel working, wherein:
[0022] In the standby working state, the information collection module switches to standby in the next system clock cycle and does not collect information;
[0023] In the polling working state, the information collection module switches to polling work in the next system clock cycle. According to the order required by the node management module, starting from the system clock cycle taking effect, information is collected from one processor in each system clock cycle until the working state is switched or the polling is completed and then switched to standby;
[0024] In the parallel working state, the information collection module switches to parallel working in the next clock cycle, and collects information from all processors simultaneously starting from the system clock cycle taking effect. This process will last for several system clock cycles until the working state is switched or it switches to standby after the information collection is completed.
[0025] In a specific example, the multi-processor association is achieved when the information acquisition module fails to collect information from a certain processor, and other processors use the data interaction module to access the processor where information acquisition has failed. The accessed processor will send the collected information to the accessing processor or the accessing processor will fill in the collected information by itself according to the timeout of receiving the collected information. Finally, the accessing processor sends the data to the information acquisition module through the data interaction module.
[0026] In a specific example, the data storage type is divided into a bit field type and a heap type, wherein:
[0027] The bit field type converts the information collected by the information collection module into the form of bits, and each collected information occupies 1 bit of the data length;
[0028] The heap type stores the information collected by the information collection module in the data storage module in sequence.
[0029] In a specific example, the storage area is divided into a cache area and a hard disk area, wherein:
[0030] The cache area has a small storage space and a fast read and write speed, and is used to store bit field type data;
[0031] The hard disk area has a larger storage space and a slower read and write speed, and is used to store heap type data.
[0032] In a specific example, the data control instruction includes clearing the collected information and updating the collected information, wherein:
[0033] Clearing the collected information means clearing the historical collected information in the data storage module, where the historical collected information is the collected information sent by the information collection module in multiple system clock cycles before the current system clock cycle;
[0034] The updated collected information is the current collected information in the updated data storage module, and the current collected information is the collected information sent by the information collection module within this system clock cycle.
[0035] In a specific example, the process of integrating the collected information is as follows: normal parameter items in the collected information, such as temperature parameters, voltage parameters, and power consumption parameters, are uploaded to the information display module through the data interaction module, and other parameters are not uploaded by default;
[0036] For the abnormal parameter items in the collected information, the same parameter items in multiple processors are integrated into one item, and the ID of the processor with the abnormal parameter in the collected information is retained.
[0037] The beneficial effects of the present invention are as follows:
[0038] The present invention creatively proposes a multi-processor system information collection method, which does not need to occupy too many system resources and is decoupled from the multi-processor embedded system itself, and can solve the problem of multi-processor embedded system information collection.
[0039] The method of the present invention does not require hardware modification or plug-in addition to existing equipment during specific implementation, and has good engineering application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A flow chart of a multi-processor system information collection method according to an embodiment of the present invention is shown.
[0042] Figure 2 A schematic structural diagram of a multi-processor information acquisition system according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0043] To make the technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0044] An embodiment of the present invention provides a multi-processor system information collection method, such as Figure 1 As shown, the following steps are included:
[0045] Build a multi-processor information collection system, such as Figure 2 As shown, the system includes: a node management module, an information collection module, a data storage module, a data interaction module and an information display module;
[0046] After the multi-processor information collection system is powered on, the node management module sets the initial system clock cycle, the information collection module creates an information collection table, performs a power-on self-test on the system according to the information collection table, and after the self-test is completed, sends the self-test result to the data storage module through the data interaction module, and the node management module publishes the working mode to the information collection module through the data interaction module according to the self-test result;
[0047] The node management module controls the information collection module to collect information during the system operation process in each system clock cycle;
[0048] When the information collection module completes the information collection of the system, the collected information is sent to the data storage module through the data interaction module;
[0049] The collected information is stored in the data storage module and sent to the node management module by the data interaction module;
[0050] The node management module integrates the collected information, and the information display module displays the integrated information on the screen through the interface.
[0051] In a specific example, the power-on self-test is a power-on self-test collection item set in an information collection table. During the operation of the system, the information collection module performs corresponding information collection work at a fixed position of the system clock cycle according to the content in the information collection table;
[0052] The node management module reads the collected information in the data storage module through the data interaction module and sends data control instructions to the data storage module;
[0053] The data storage module is used to convert the storage type of the collected information, select a storage area according to the storage type of the collected information, and complete the control operation of the collected information in the storage area according to the data control instruction;
[0054] The data interaction module is used to send collection instructions from the node management module to the information collection module, read the information in the data storage module, and upload the collected information integrated by the node management module to the information display module.
[0055] In a specific embodiment, the system clock cycle is a fixed cycle of the information collection module. When the node management module does not switch the working state, the information collection module performs information collection at a fixed position in each clock cycle. The system clock cycle is in the order of millimeters.
[0056] In a specific embodiment, the default information collection items of the information collection table during system operation are temperature sensor parameters, voltage sensor parameters, power consumption parameters, timer parameters, memory device status, interface device status, optical fiber device status, synchronizer device status and fast input and output device status. Based on the default information collection items, custom information collection items can be generated by the information collection module when creating the information collection table.
[0057] In a specific embodiment, there are two working modes: a first priority working mode and a second priority working mode, wherein:
[0058] When the node management module reads the power-on self-test information stored in the data storage module, a parameter abnormality occurs, and the node management module publishes a first priority working mode to the information acquisition module through the data interaction module. In this mode, the information acquisition module has priority to work after the system clock cycle arrives; when the node management module reads the power-on self-test information stored in the data storage module, the parameters are normal, and the node management module publishes a second priority working mode to the information acquisition module. In this mode, the information acquisition module works last after the system clock cycle arrives.
[0059] In a specific embodiment, in each system clock cycle, the node management module sends a collection instruction to the information collection module through the data interaction module. The information collection module responds to the collection instruction in the next system clock cycle and switches the working state of the information collection module. During the information collection process, the information collection module collects information for each processor itself according to the information collection table. When the fast input and output devices in the default collection items or the user-defined input and output devices do not respond for multiple system clock cycles, the information collection module fails to collect the input and output device information of each processor itself. At this time, the information collection module uses the multi-processor association method to indirectly collect the input and output device information of the unresponsive processor.
[0060] In a specific embodiment, the working states of the information collection module are divided into: standby, polling and parallel working, wherein:
[0061] In the standby working state, the information collection module switches to standby in the next system clock cycle and does not collect information;
[0062] In the polling working state, the information collection module switches to polling work in the next system clock cycle. According to the order required by the node management module, starting from the system clock cycle taking effect, information is collected from one processor in each system clock cycle until the working state is switched or the polling is completed and then switched to standby;
[0063] In the parallel working state, the information collection module switches to parallel working in the next clock cycle, and collects information from all processors simultaneously starting from the system clock cycle taking effect. This process will last for several system clock cycles until the working state is switched or it switches to standby after the information collection is completed.
[0064] In a specific embodiment, the multi-processor association is achieved when the information acquisition module fails to collect information from a certain processor, and other processors use the data interaction module to access the processor where information acquisition has failed. The accessed processor will send the collected information to the accessing processor or the accessing processor will fill in the collected information by itself according to the timeout of receiving the collected information. Finally, the accessing processor sends the data to the information acquisition module through the data interaction module.
[0065] In a specific embodiment, the data storage type is divided into a bit field type and a heap type, wherein:
[0066] The bit field type converts the information collected by the information collection module into the form of bits. Each collected information occupies 1 bit of the data length. This type retains the key data in the collected information, reducing the data storage space and transmission time;
[0067] The heap type stores the information collected by the information collection module in sequence in the data storage module. This type retains all the data of the collected information, taking up a large storage space and transmission time.
[0068] In a specific embodiment, the storage area is divided into a cache area and a hard disk area, wherein:
[0069] The cache area has a small storage space and a fast read and write speed, and is used to store bit field type data;
[0070] The hard disk area has a larger storage space and a slower read and write speed, and is used to store heap type data.
[0071] In a specific embodiment, the data control instruction includes clearing the collected information and updating the collected information, wherein:
[0072] Clearing the collected information means clearing the historical collected information in the data storage module, where the historical collected information is the collected information sent by the information collection module in multiple system clock cycles before the current system clock cycle;
[0073] The updated collected information is the current collected information in the updated data storage module, and the current collected information is the collected information sent by the information collection module within this system clock cycle.
[0074] In a specific embodiment, the process of integrating the collected information is as follows: normal parameter items in the collected information, such as temperature parameters, voltage parameters, and power consumption parameters, are uploaded to the information display module through the data interaction module, and other parameters are not uploaded by default;
[0075] For the abnormal parameter items in the collected information, the same parameter items in multiple processors are integrated into one item, and the ID of the processor with the abnormal parameter in the collected information is retained.
[0076] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.
Claims
1. A multi-processor system information collection method, characterized in that: The following steps are involved: Build a multi-processor information collection system, the system includes: a node management module, an information collection module, a data storage module, a data interaction module and an information display module; After the multi-processor information collection system is powered on, the node management module sets the initial system clock cycle, the information collection module creates an information collection table, performs a power-on self-test on the system according to the information collection table, and after the self-test is completed, sends the self-test result to the data storage module through the data interaction module, and the node management module publishes the working mode to the information collection module through the data interaction module according to the self-test result; The node management module controls the information collection module to collect information during the system operation process in each system clock cycle; When the information collection module completes the information collection of the system, the collected information is sent to the data storage module through the data interaction module; The collected information is stored in the data storage module and sent to the node management module by the data interaction module; The node management module integrates the collected information, and the information display module displays the integrated information on the screen through the interface; There are two working modes: a first priority working mode and a second priority working mode, wherein: When the node management module reads the power-on self-test information stored in the data storage module, if a parameter abnormality occurs, the node management module releases a first priority working mode to the information acquisition module through the data interaction module, in which the information acquisition module works first after the system clock cycle arrives; when the node management module reads the power-on self-test information stored in the data storage module, if the parameter is normal, the node management module releases a second priority working mode to the information acquisition module, in which the information acquisition module works last after the system clock cycle arrives; In each system clock cycle, the node management module sends a collection instruction to the information collection module through the data interaction module. The information collection module responds to the collection instruction in the next system clock cycle and switches the working state of the information collection module. During the information collection process, the information collection module collects information from each processor itself according to the information collection table. When the fast input and output devices in the default collection items or the user-defined input and output devices do not respond for multiple system clock cycles, the information collection module fails to collect the input and output device information of each processor itself. At this time, the information collection module uses the multi-processor association method to indirectly collect the input and output device information of the unresponsive processor.
2. The method according to claim 1, characterized in that The power-on self-test is a power-on self-test collection item set in the information collection table. During the operation of the system, the information collection module performs corresponding information collection work at a fixed position of the system clock cycle according to the content in the information collection table; The node management module reads the collected information in the data storage module through the data interaction module and sends data control instructions to the data storage module; The data storage module is used to convert the storage type of the collected information, select a storage area according to the storage type of the collected information, and complete the control operation of the collected information in the storage area according to the data control instruction; The data interaction module is used to send collection instructions from the node management module to the information collection module, read the information in the data storage module, and upload the collected information integrated by the node management module to the information display module.
3. The method according to claim 2, characterized in that The system clock cycle is a fixed cycle of the information collection module. When the node management module does not switch the working state, the information collection module performs information collection at a fixed position in each clock cycle. The system clock cycle is in the order of millimeters.
4. The method according to claim 3, characterized in that The default information collection items of the information collection table during system operation are temperature sensor parameters, voltage sensor parameters, power consumption parameters, timer parameters, memory device status, interface device status, optical fiber device status, synchronizer device status and fast input and output device status. Based on the default information collection items, custom information collection items can be generated through the information collection module when creating the information collection table.
5. The method according to claim 1, characterized in that The working states of the information collection module are divided into: standby, polling and parallel working, among which, In the standby working state, the information collection module switches to standby in the next system clock cycle and does not collect information; In the polling working state, the information collection module switches to polling work in the next system clock cycle. According to the order required by the node management module, starting from the system clock cycle taking effect, information is collected from one processor in each system clock cycle until the working state is switched or the polling is completed and then switched to standby; In the parallel working state, the information collection module switches to parallel working in the next clock cycle, and collects information from all processors simultaneously starting from the system clock cycle taking effect. This process will last for several system clock cycles until the working state is switched or it switches to standby after the information collection is completed.
6. The method according to claim 1, characterized in that The multi-processor association is achieved when the information acquisition module fails to collect information for a certain processor, and other processors use the data interaction module to access the processor where information acquisition has failed. The accessed processor will send the collected information to the accessing processor or the accessing processor will fill in the collected information by itself according to the timeout of receiving the collected information. Finally, the accessing processor sends the data to the information acquisition module through the data interaction module.
7. The method according to claim 2, characterized in that Data storage types are divided into bit field type and heap type, among which, The bit field type converts the information collected by the information collection module into the form of bits, and each collected information occupies 1 bit of the data length; The heap type stores the information collected by the information collection module in the data storage module in sequence.
8. The method according to claim 7, characterized in that The storage area is divided into a cache area and a hard disk area, wherein: The cache area has a small storage space and a fast read and write speed, and is used to store bit field type data; The hard disk area has a larger storage space and a slower read and write speed, and is used to store heap type data.
9. The method according to claim 2, characterized in that: The data control instructions include clearing collected information and updating collected information, wherein: Clearing the collected information means clearing the historical collected information in the data storage module, where the historical collected information is the collected information sent by the information collection module in multiple system clock cycles before the current system clock cycle; The updated collected information is the current collected information in the updated data storage module, and the current collected information is the collected information sent by the information collection module within this system clock cycle.
10. The method according to claim 1, characterized in that The process of integrating the collected information is as follows: normal parameter items in the collected information, such as temperature parameters, voltage parameters, and power consumption parameters, are uploaded to the information display module through the data interaction module, and other parameters are not uploaded by default; For the abnormal parameter items in the collected information, the same parameter items in multiple processors are integrated into one item, and the ID of the processor with the abnormal parameter in the collected information is retained.
