Batch data loading method and device, loading equipment and storage medium
By building and updating a collection of target hardware and its parent hardware in the avionic network, efficient update of network configurations in the avionic network is achieved, solving the problems of inefficient update efficiency and unavailability of virtual links in the prior art.
Patent Information
- Application Number
- CN202510282758.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-06-24
AI Technical Summary
In avionics networks, the network configuration of all switches and end systems needs to be updated when software is updated. The existing methods are inefficient and the intermediate switches are updated, which will cause all virtual links to fail to work.
By confirming the target batch file, a first set of multiple target hardware and a second set of its parent hardware is constructed, and data loading operations are performed on the target hardware in the first set in parallel, while updating the first set based on the second set to achieve loading from the child hardware to the parent hardware.
It realizes efficient update of the network configuration of the avionics network, avoiding the problem that the virtual link cannot work when the intermediate target hardware is updated, and improving the update efficiency.
Smart Images

Figure CN120200908A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of avionics technology, and in particular, to a method and device for batch data loading, a loading device, and a storage medium. Background Art
[0002] Some current avionics networks, such as but not limited to avionics networks using AFDX (Avionics Full Duplex Switched Ethernet) technology, provide virtual links for transmitting messages between end systems. The avionics network includes end systems and switches. The switches are usually used to forward messages, control network traffic and jitter, and their behaviors are controlled by network configurations.
[0003] In practice, there are a large number of end systems and switches in the avionics network. When a certain version of avionics software is updated, the network configurations of all switches and end systems need to be updated. If the network configurations are loaded and updated one by one through a loading device, the efficiency is low. In addition, when a certain switch in the middle is updating the network configuration, all virtual links passing through this switch will not work. Summary of the Invention
[0004] The embodiments of the present application provide a method and device for batch data loading, a loading device, and a storage medium to efficiently update the network configuration of an avionics network.
[0005] In a first aspect, the embodiments of the present application provide a method for batch data loading, including: confirming a target batch file, where the target batch file indicates multiple target hardware in the avionics network and the respective parent hardware of the multiple target hardware; constructing a first set and a second set based on the target batch file; where the first set includes at least part of the multiple target hardware, and the second set includes the parent hardware of the at least part of the target hardware; performing a data loading operation on each target hardware in the first set in parallel, and updating the first set based on the second set to achieve loading in the direction from sub-hardware to parent hardware.
[0006] In an implementation manner, the confirming the target batch file includes: obtaining multiple batch files, where each of the multiple batch files indicates multiple target hardware in the avionics network and the respective parent hardware of the multiple target hardware; where the multiple target hardware indicated by the multiple batch files are different; and confirming the target batch file from the multiple batch files.
[0007] Further, the confirmation of the target batch file from the multiple batch files includes: displaying the part numbers of the multiple batch files; and in response to the obtained target part number, confirming the batch file corresponding to the target part number as the target batch file.
[0008] In one implementation, the multiple target hardware includes a first hardware; the building of the first set includes: generating the first set based on the first hardware.
[0009] Further, the multiple target hardware further includes a second hardware, the second hardware is configured as a target hardware with sub-hardware, and the first hardware is configured as the remaining target hardware among the multiple target hardware.
[0010] In one implementation, the target batch file includes software information of software that can be loaded by each of the multiple target hardware; the parallel execution of data loading operations on each target hardware in the first set includes: based on the software information, parallelly executing data loading operations on each target hardware in the first set.
[0011] In one implementation, the updating of the first set based on the second set includes: in response to confirming that there is a target parent hardware included in the avionics network in the second set, and all sub-hardware of the target parent hardware have completed data loading, removing the target parent hardware from the second set and adding it to the first set.
[0012] Further, before confirming that there is a target parent hardware included in the avionics network in the second set, it further includes: confirming that at least part of the target hardware in the first set has completed data loading.
[0013] Further, after confirming that at least part of the target hardware in the first set has completed data loading, it further includes: removing the at least part of the target hardware from the first set; the method for confirming that all sub-hardware of the target parent hardware have completed data loading includes: if all sub-hardware of the target parent hardware have been removed from the first set, then confirming that all sub-hardware of the target parent hardware have completed data loading.
[0014] In one implementation, after removing the target parent hardware from the second set and adding it to the first set, it further includes: confirming the parent hardware of the target parent hardware based on the target batch file and adding the parent hardware of the target parent hardware to the second set.
[0015] Second aspect, an embodiment of the present application provides a batch data loading device, including: a confirmation unit configured to confirm a target batch file, the target batch file indicating multiple target hardware in an avionics network and respective parent hardware of the multiple target hardware; a construction unit configured to construct a first set and a second set based on the target batch file; wherein the first set includes at least some of the multiple target hardware, and the second set includes the parent hardware of the at least some target hardware; an execution unit configured to perform a data loading operation on each target hardware in the first set in parallel, and update the first set based on the second set to achieve loading in a direction from a child hardware to a parent hardware.
[0016] Third aspect, an embodiment of the present application provides a loading device, the loading device includes a memory and a processor, a computer program is stored in the memory, and when the processor executes the computer program, the batch data loading method described in any implementation manner in the first aspect is implemented.
[0017] Fourth aspect, an embodiment of the present application provides a computer-readable storage medium, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the batch data loading method described in any implementation manner in the first aspect is implemented.
[0018] Fifth aspect, an embodiment of the present application provides a computer program product, including a computer program / instructions, and when the computer program / instructions are executed by a processor, the batch data loading method described in any implementation manner in the first aspect is implemented.
[0019] The batch data loading solution provided by the embodiments of the present application can, based on a target batch file indicating multiple target hardware in an avionics network and respective parent hardware of the multiple target hardware, construct a first set including at least some of the multiple target hardware and a second set including the parent hardware of the at least some target hardware, and then perform a data loading operation on each target hardware in the first set in parallel, and update the first set based on the second set to achieve loading in a direction from a child hardware to a parent hardware. Thus, both parallel loading can be achieved and the loading order can be controlled, and the loading order can be guided to start from an object downstream of the link and gradually load upstream to avoid that when a certain target hardware updates the network configuration, all virtual links passing through the target hardware will not work, thereby achieving efficient update of the network configuration of the avionics network. Description of the Drawings
[0020] The technical solutions and other beneficial effects of the present application will become obvious by describing the specific implementation manners of the present application in detail in conjunction with the drawings.
[0021] Figure 1 It is an exemplary structural schematic diagram of an avionics dual-redundancy network;
[0022] Figure 2 It is a flowchart of an ARINC615A loading operation;
[0023] Figure 3 It is a flowchart of a manual guidance data loading method;
[0024] Figure 4 It is a flowchart of a method for guiding data loading using an ARINC665 batch file;
[0025] Figure 5 It is a flowchart of a batch data loading method provided by an embodiment of the present application;
[0026] Figure 6 It is a schematic diagram of an update process for updating a first set based on a second set in an embodiment of the present application;
[0027] Figure 7 It is a structural schematic diagram of a batch data loading device provided by an embodiment of the present application. Detailed implementation manners
[0028] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0029] In the description of the present application, it should be noted that unless otherwise clearly defined and limited, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after without special explanation.
[0030] As mentioned above, there are a large number of end systems and switches in the avionics network. When a certain version of avionics software is updated, the network configurations of all switches and end systems need to be updated.
[0031] Taking the avionics network implemented based on AFDX technology as an example. Currently, AFDX often adopts a dual-redundancy network design to improve reliability, Figure 1 It is an exemplary structural schematic diagram of an avionics dual-redundancy network. Among them, Figure 1The thickened connection lines represent Network A in the avionics dual-redundant network, and the unthickened connection lines represent Network B in the avionics dual-redundant network. As Figure 1 shown, the avionics dual-redundant network communicates with the loading device and includes nine switches (i.e., switches 101, 102, 103, 104, 105, 106, 107, 108, 109) and four end systems (i.e., end systems 111, 112, 113, 114). It should be understood that the avionics dual-redundant network in reality usually includes more switches and end systems.
[0032] For the avionics dual-redundant network as Figure 1 shown, when a certain version of the avionics software is updated, the network configurations of all switches and end systems in the avionics dual-redundant network need to be updated. If the network configurations are loaded and updated one by one through the loading device, the efficiency is relatively low. Moreover, when a certain switch in the avionics dual-redundant network is loading the network configuration, all virtual links passing through this switch will not work. As Figure 1 in switch 102, when switch 102 is updating the network configuration, all virtual links passing through switch 102 will not work.
[0033] It should be noted that the software that can be loaded by the switch and the end system usually includes header files, data files, and support files. This software usually includes one header file. The header file includes a first field for recording the name of the data file, a second field for recording the software part number, and a third field for recording the target hardware to which the software belongs. For the header file of any loadable software, based on the first field in this header file, it can be known which data files this software includes; based on the second field in this header file, it can be known the part number of this software; based on the third field in this header file, it can be known which target hardware this software belongs to. In an example, the third field can specifically be used to record the identifier (ID) and location of the target hardware to which the software belongs, and the field name of the third field can be "THW_ID_POS", and "THW_ID_POS" can be used to represent the identifier and location of the target hardware. It should be understood that the identifier and location of the target hardware can be used to uniquely indicate this target hardware.
[0034] The update of the network configuration of the avionics network can be achieved by two data loading methods: manual boot data loading and using an ARINC665 batch file to boot data loading. Among them, both of these two data loading methods perform an ARINC615A loading operation on the target hardware in the avionics network.
[0035] Both ARINC615A and ARINC665 are important standard specifications in the field of avionics technology. ARINC615A is a standard protocol developed by the Aeronautical Radio, Incorporated (ARINC) for data loading and status monitoring of avionics equipment. It is mainly used to achieve efficient and reliable loading of software and data for various avionics equipment on an aircraft, as well as remote monitoring and management of equipment status. ARINC665 is a standard specification for the physical architecture of avionics equipment. It defines requirements for aspects such as the physical layout, mechanical interface, and electrical interface of avionics equipment, providing a unified standard for the design, installation, and integration of avionics equipment.
[0036] Next, first in combination with Figure 2 , the execution process of the ARINC615A loading operation will be introduced. Among them, Figure 2 is a flowchart of the ARINC615A loading operation.
[0037] As Figure 2 shown, the ARINC615A loading operation involves the interaction process between the loading device and the target hardware in the avionics network, including an initialization step, a status file transfer step, a list transfer step, and a data file transfer step.
[0038] It should be noted that in the ARINC615A protocol, LUI can represent the communication status initialization file, and <THW_ID_POS>.LUI can represent the communication status initialization file of the target hardware corresponding to THW_ID_POS; LUS can represent the status file, and <THW_ID_POS>.LUS can represent the status file of the target hardware corresponding to THW_ID_POS; LUR can represent the file list, and <THW_ID_POS>.LUR can represent the file list uploaded to the target hardware corresponding to THW_ID_POS.
[0039] Specifically, as Figure 2 shown, the initialization step can be used to confirm whether the handshake is accepted. For example, in the initialization step, the loading device can send a read request for <THW_ID_POS>.LUI to the target hardware, and after obtaining <THW_ID_POS>.LUI transmitted by the target hardware, analyze <THW_ID_POS>.LUI to confirm whether the loading request is accepted.
[0040] The status file transfer step can be used to periodically confirm the transfer status. For example, in the status file transfer step, when the loading request is accepted, the target hardware can request the loading device to write <THW_ID_POS>.LUS, and after receiving the confirmation (ACK) from the loading device, transmit <THW_ID_POS>.LUS to the loading device.
[0041] The list transfer step can be used to transfer a list of header files to the target hardware, and the list of header files includes the header files of the software that can be loaded onto the target hardware. In practice, by reading the THW_ID_POS field in the header file of the loadable software, the loading device can know which target hardware the loadable software belongs to, so as to generate a list of header files of the target hardware, that is, Figure 2 the <THW_ID_POS>.LUR shown in
[0042] In the list transfer step, the loading device can request the target hardware to write the <THW_ID_POS>.LUR, and after obtaining the confirmation (ACK) from the target hardware, transfer the <THW_ID_POS>.LUR to the target hardware.
[0043] As described above in conjunction with Figure 2 a brief introduction to the execution process of the ARINC615A loading operation is given. Since the ARINC615A loading operation is a well-known technology in the art, it will not be elaborated here.
[0044] Next, in conjunction with Figure 3 a method for manually guiding data loading will be introduced. Among them, Figure 3 is a flowchart of a method for manually guiding data loading.
[0045] As Figure 3 shown, the method for manually guiding data loading includes the following steps:
[0046] The maintenance personnel of the avionics network start the "manual data loading" process;
[0047] The loading device reads and parses all header files from the memory;
[0048] The loading device obtains the THW_ID_POS from all header files;
[0049] The loading device knows all the target hardware for which data loading can be currently executed through the THW_ID_POS and displays all the target hardware to the maintenance personnel;
[0050] The maintenance staff selects a target hardware;
[0051] The loading device obtains the THW_ID_POS corresponding to the selected target hardware;
[0052] The loading device parses and obtains all header files in the memory that meet the condition: the THW_ID_POS in the header file is the same as the THW_ID_POS corresponding to the selected target hardware;
[0053] The loading device respectively obtains the part numbers of all software from all header files that meet this condition;
[0054] The loading device displays the obtained part numbers of all software to the maintenance staff;
[0055] The maintenance staff selects one or more software part numbers;
[0056] The loading device, according to the selection of the maintenance staff, obtains the THW_ID_POS and the header file names and part numbers of all software selected by the maintenance staff (such as the header file name (1) and software part number (1) shown in Figure 3 ,..., the header file name (Y) and software part number (Y)), as the input for the ARINC615A loading operation, so as to perform the ARINC615A loading operation on the target hardware corresponding to this THW_ID_POS.
[0057] The method of manually guiding data loading described above can only manually obtain the THW_ID_POS and header file name of one target hardware as the input for the ARINC615A loading operation. One operation of manually guiding data loading cannot achieve parallel execution of the ARINC615A data loading operation on multiple target hardwares, thus unable to achieve efficient update of the network configuration of the avionics network.
[0058] Next, in combination with Figure 4 , the execution process of a method of using an ARINC665 batch file to guide data loading is introduced. Among them, Figure 4 is a flowchart of a method of using an ARINC665 batch file to guide data loading.
[0059] As Figure 4 shown, the method of using an ARINC665 batch file to guide data loading includes the following steps:
[0060] The maintenance staff starts the "guide data loading" process;
[0061] The loading device reads and parses all batch files in the memory;
[0062] The loading device obtains the part numbers of all batch files and displays them to the maintenance personnel;
[0063] The maintenance personnel select a part number of a batch file;
[0064] The loading device finds the selected batch file;
[0065] The loading device parses the selected batch file and respectively obtains the THW_ID_POS, header file name, and software part number for different target hardware. For example, it can obtain THW_ID_POS(1), ……, THW_ID_POS(X) as shown in Figure 4 The header file name and software part number of the software that can be loaded by the target hardware corresponding to THW_ID_POS(1) (such as header file name (1.1), software part number (1.1), ……, header file name (1.Y), software part number (1.Y)), and the header file name and software part number of the software that can be loaded by the target hardware corresponding to THW_ID_POS(X) (such as header file name (X.1), software part number (X.1), ……, header file name (X.Y), software part number (X.Y)). After that, the loading device can use the obtained THW_ID_POS, header file name, and software part number for different target hardware as the input for parallel execution of the ARINC615A loading operation.
[0066] The method of using the ARINC665 batch file to guide data loading described in the previous text can respectively obtain the THW_ID_POS, header file name, and software part number for different target hardware, and can guide different target hardware to parallelly execute the ARINC615A loading operation, but it cannot control the loading order and cannot avoid the problem that when a certain switch is loading the network configuration, all virtual links passing through this switch will stop working.
[0067] In order to avoid the problem that when a certain switch is loading the network configuration, all virtual links passing through this switch will not work, and to achieve efficient update of the avionics network configuration, the embodiment of the present application provides a batch data loading method that can not only achieve parallel loading but also control the loading order.
[0068] The batch data loading method provided by the embodiment of the present application includes a preprocessing step. This preprocessing step can include a first sub-step, a second sub-step, and a third sub-step.
[0069] In the first sub-step, for any target hardware in the avionics network, the upstream hardware directly connected to this target hardware is identified as the parent hardware of this target hardware. Additionally, if there is downstream hardware directly connected to this target hardware, then this downstream hardware is identified as the sub-hardware of this target hardware. Figure 1Taking the avionics dual-redundant network shown as an example, for switch 109, the upstream hardware directly connected to switch 109 is switch 107, and the downstream hardware directly connected is end system 114. Switch 107 can be identified as the parent hardware of switch 109, and end system 114 can be identified as the child hardware of switch 109. Additionally, for switch 101, the upstream hardware directly connected to switch 101 is the loading device, and the downstream hardware directly connected includes switches 102 and 103. The loading device can be identified as the parent hardware of switch 101, and switches 102 and 103 can be identified as the child hardware of switch 101.
[0070] In the second sub-step, design the batch file structure. This batch file structure includes a fourth field and a fifth field. The fourth field is used to record the target hardware, and the fifth field is used to record the parent hardware of the target hardware. Further, this batch file structure can also include at least one of a sixth field, a seventh field, an eighth field, a ninth field, and a tenth field, etc. Among them, the sixth field can be used to record the character length of the fifth field. The seventh field can be used to record whether the target hardware indicated by the fourth field has child hardware. The eighth field can be used to record the part number of the software that the target hardware indicated by the fourth field can load. The ninth field can be used to record the header file name of this software. The tenth field can be used to record the batch file cyclic redundancy check code.
[0071] As an example, the fourth field is specifically used to record the identification and location of the target hardware, and the field name can be "THW_ID_POS". The fifth field is specifically used to record the identification and location of the parent hardware of the target hardware, and the field name can be "Parent THW_ID_POS". Additionally, the field name of the sixth field can be "Parent THW_ID_POSLength". The field name of the seventh field can be "Child Flag". The field name of the eighth field can be "LoadPN". The field name of the ninth field can be "Header File Name". The field name of the tenth field can be "BatchFile CRC".
[0072] Further, the fourth field to the ninth field can have the same field length. For example, this same field length can be 16 bits or 17 bits, etc. It should be understood that this same field length can be set according to actual requirements. Additionally, the fourth field, the fifth field, the eighth field, and the ninth field can be variable-length fields. Taking the field length of the fourth field, the fifth field, the eighth field, and the ninth field as 16 bits as an example, if using this variable-length field, one or more 16-bit words can be used. Moreover, since the designed batch file is relatively large, the field length of the tenth field can be designed to be larger, such as designed to be 32 bits or a larger value.
[0073] In one implementation, the newly designed batch file structure may be as shown in Table 1.
[0074] Table 1: Example of batch file structure
[0075]
[0076] Among them, Table 1 shows an exemplary batch file structure. The "***" in the batch file structure represents other content. In one example, the batch file structure can be an improvement on the existing ARINC665 batch file structure, and the other content can include the content in the existing ARINC665 batch file structure. Since the other content has a low correlation with the execution process of the batch data loading method provided in the embodiment of the present application, it will not be introduced here.
[0077] After the first sub-step and the second sub-step as described above are completed, the third sub-step can be executed.
[0078] Specifically, in the third sub-step, one or more batch files can be generated based on the designed batch file structure and the network structure of the avionics network to be updated with network configuration. For any batch file among the multiple batch files, the fourth field in the batch file, such as the THW_ID_POS field, records multiple target hardware in the avionics network; the fifth field, such as the Parent THW_ID_POS field, records the parent hardware of each of the multiple target hardware. Further, when the batch file also includes the seventh field, such as the Child Flag field, the Child Flag field records whether the multiple target hardware has child hardware. As an implementation, when the parent hardware of a certain target hardware among the multiple target hardware is a loading device, the field value of the Parent THW_ID_POS field associated with the target hardware can be configured as a first value. The first value is used to characterize the loading device. In an example, the first value can be, for example, 0x0000. In addition, if the target hardware has child hardware, the field value of the Child Flag field associated with the target hardware can be configured as a second value, otherwise it can be configured as a third value. The second value is used to indicate that there is a sub-hardware, and the third value is used to indicate that there is no sub-hardware. In an example, the second value may be 0x0001, and the third value may be 0x0000.
[0079] Generally speaking, any one of the above-mentioned multiple batch files indicates multiple target hardware in the avionics network and the respective parent hardware of the multiple target hardware. In addition, the multiple target hardware is different from each target hardware recorded in the fourth field of the remaining batch files. In practice, in order to avoid repeated data updates for the same target hardware, the multiple target hardware is usually made completely different from each target hardware recorded in the fourth field of the remaining batch files.
[0080] The preprocessing steps included in the batch data loading method provided by the embodiments of the present application were introduced above. After the preprocessing steps are executed, the batch data loading method as shown in Figure 5 can be executed. Among them, Figure 5 is a flowchart of a batch data loading method provided by the embodiments of the present application. The batch data loading method can be executed by a loading device. The batch data loading method includes the following steps:
[0081] S501: Confirm the target batch file, where the target batch file indicates multiple target hardware in the avionics network and the respective parent hardware of the multiple target hardware;
[0082] S503: Based on the target batch file, construct a first set and a second set; among them, the first set includes at least some of the multiple target hardware, and the second set includes the parent hardware of the at least some target hardware;
[0083] S505: Parallelly execute data loading operations on each target hardware in the first set, and update the first set based on the second set to achieve loading in the direction from sub-hardware to parent hardware.
[0084] In this embodiment, the target batch file can not only indicate multiple target hardware in the avionics network, but also indicate the respective parent hardware of the multiple target hardware. Based on the target batch file, a first set including at least some of the multiple target hardware and a second set including the parent hardware of the at least some target hardware can be constructed. Then, data loading operations can be parallelly executed on each target hardware in the first set, and the first set can be updated based on the second set to achieve loading in the direction from sub-hardware to parent hardware. Thus, both parallel loading and control of the loading order can be achieved. The solution provided by this embodiment can guide the loading order to start from the downstream object of the link and gradually load upstream to avoid that when updating the network configuration of a certain target hardware in the middle, all virtual links passing through the target hardware will not work, thereby achieving efficient update of the network configuration of the avionics network.
[0085] Next, specific descriptions of steps S501, S503, and S505 will be given.
[0086] In step S501, when a batch file is pre-generated for the avionics network, the batch file can be confirmed as the target batch file. When multiple batch files are pre-generated for the avionics network, the target batch file can be confirmed from the multiple batch files. Among them, the multiple batch files all indicate multiple target hardware in the avionics network and the respective parent hardware of the multiple target hardware. In addition, the multiple target hardware indicated by the multiple batch files are different.
[0087] Furthermore, when confirming the target batch file from the multiple batch files, different implementation methods can be adopted.
[0088] For example, according to a preset batch file selection policy, a batch file can be selected from the multiple batch files as the target batch file.
[0089] For another example, the part numbers of the multiple batch files can be displayed, and in response to the obtained target part number, the batch file corresponding to the target part number can be confirmed as the target batch file. Specifically, the part numbers of the multiple batch files can be displayed to the maintenance personnel of the avionics network for the maintenance personnel to select. After that, the part number of the batch file selected by the maintenance personnel can be used as the target part number, and the batch file corresponding to the target part number can be confirmed as the target batch file. This implementation method can better meet the maintenance needs of users for the avionics network and improve the user experience.
[0090] In step S503, in response to the multiple target hardware indicated by the target batch file including the first hardware, a first set can be generated based on the first hardware, and a second set can be generated based on the parent hardware of the first hardware. It should be noted that there is no upstream and downstream relationship between any two first hardware, so that parallel data loading can be performed on each first hardware, thereby improving the loading efficiency.
[0091] Furthermore, the multiple target hardware indicated by the target batch file further includes second hardware, the second hardware is configured as the target hardware with sub-hardware, and the first hardware is configured as the remaining target hardware among the multiple target hardware. In fact, the first hardware is the target hardware among the multiple target hardware that does not have sub-hardware. When the target batch file includes the aforementioned Child Flag field, based on the Child Flag field, it can be known which target hardware among the multiple target hardware is the first hardware and which target hardware is the second hardware.
[0092] Taking the avionics network as the avionics dual-redundancy network as shown in Figure 1 as an example, assuming that the multiple target hardware indicated by the target batch file includes Figure 1All switches and end systems shown in. The first hardware included in the multiple target hardwares is end systems 111, 112, 113, 114 and switch 104. The first set constructed includes end systems 111, 112, 113, 114 and switch 104. The second set constructed includes switches 102, 103, 105, 106, 108, 109.
[0093] In step S505, in response to the target batch file including software information of software that can be loaded by each of the multiple target hardwares indicated thereby, based on the software information, a data loading operation can be performed in parallel on each target hardware in the first set. Wherein, the software information includes a software part number and a header file name. It should be noted that the data loading operation performed in step S505 can include an ARINC615A loading operation. Regarding the execution process of the ARINC615A loading operation, reference can be made to the relevant descriptions in the foregoing text, and details will not be repeated here.
[0094] In addition, when updating the first set based on the second set, in response to confirming that there is a target parent hardware included in the avionics network in the second set and all child hardwares of the target parent hardware have completed data loading, the target parent hardware can be removed from the second set and added to the first set, so that the target parent hardware participates in parallel loading, realizing loading in the direction from child hardware to parent hardware.
[0095] Furthermore, in order to enable the target parent hardware for which all child hardwares have completed data loading to be timely added to the first set to participate in parallel loading, thereby improving the loading efficiency, when updating the first set based on the second set, the update process as shown in Figure 6 can be executed. Wherein, Figure 6 is a schematic diagram of the update process for updating the first set based on the second set in an embodiment of the present application.
[0096] As shown in Figure 6 , the update process includes:
[0097] Step S601: Confirm that at least part of the target hardwares in the first set have completed data loading;
[0098] Step S603: In response to confirming that there is a target parent hardware included in the avionics network in the second set and all child hardwares of the target parent hardware have completed data loading, remove the target parent hardware from the second set and add it to the first set.
[0099] Further, it is confirmed that at least some of the target hardware in the first set has completed data loading, including: confirming that any one of the target hardware in the first set has completed data loading. After confirming that any one of the target hardware in the first set has completed data loading, in response to confirming that there is target parent hardware included in the avionics network in the second set and all the child hardware of the target parent hardware has completed data loading, the target parent hardware is removed from the second set and added to the first set, which can further enable the target parent hardware whose all child hardware has completed data loading to be timely added to the first set to participate in parallel loading, thereby further improving the loading efficiency.
[0100] It should be noted that there are various methods for confirming that all the child hardware of the target parent hardware has completed data loading. For example, the loading status of the target hardware in the first set can be recorded. If the recorded loading status of all the child hardware is loading completed, it is confirmed that all the child hardware has completed data loading.
[0101] For another example, after confirming that at least some of the target hardware in the first set has completed data loading, the at least some of the target hardware can be removed from the first set. In this way, the first set no longer contains the target hardware that has completed data loading. Based on this, the method for confirming that all the child hardware of the target parent hardware has completed data loading can include: if all the child hardware of the target parent hardware has been removed from the first set, it is confirmed that all the child hardware of the target parent hardware has completed data loading. By adopting this confirmation method, the confirmation result that all the child hardware of the target parent hardware has completed data loading can be obtained quickly, which helps to improve the loading efficiency.
[0102] In one implementation, after removing the target parent hardware from the second set and adding it to the first set, it further includes: confirming the parent hardware of the target parent hardware based on the target batch file and adding the parent hardware of the target parent hardware to the second set. It should be understood that when the parent hardware of the target parent hardware is a certain target hardware in the avionics network, when all the child hardware of this parent hardware has completed data loading, this parent hardware will be moved from the second set to the first set to participate in parallel loading.
[0103] In one implementation, when any one of the target hardware in the first set has completed data loading, if it is confirmed that all the target hardware in the first set has completed data loading and there is no parent hardware included in the avionics network in the second set, it is confirmed that the loading is completed.
[0104] According to the description in the foregoing, the batch data loading method provided by the embodiments of the present application can not only achieve parallel loading but also control the loading order, and can guide the loading order to start from the downstream object of the link and gradually load upstream to the upstream object, avoiding that when a certain target hardware updates the network configuration, all the virtual links passing through this target hardware will not work, thereby realizing efficient update of the network configuration of the avionics network.
[0105] Figure 7 It is a schematic structural diagram of a batch data loading device provided by an embodiment of the present application. This device can be applied to a loading device. The device includes:
[0106] A confirmation unit 701, configured to confirm a target batch file, where the target batch file indicates multiple target hardware in an avionics network and the respective parent hardware of the multiple target hardware;
[0107] A construction unit 702, configured to construct a first set and a second set based on the target batch file; wherein, the first set includes at least some of the multiple target hardware, and the second set includes the parent hardware of the at least some target hardware;
[0108] An execution unit 703, configured to perform a data loading operation on each target hardware in the first set in parallel, and update the first set based on the second set to achieve loading in the direction from sub-hardware to parent hardware.
[0109] In one implementation manner, the confirmation unit 701 may be further configured to: obtain multiple batch files, where the multiple batch files all indicate multiple target hardware in an avionics network and the respective parent hardware of the multiple target hardware; wherein, the multiple target hardware indicated by the multiple batch files are different; confirm the target batch file from the multiple batch files.
[0110] In one implementation manner, the confirmation unit 701 may be further configured to: display the part numbers of the multiple batch files; in response to the obtained target part number, confirm the batch file corresponding to the target part number as the target batch file.
[0111] In one implementation manner, the multiple target hardware indicated by the target batch file includes a first hardware; the construction unit 702 may be further configured to: generate a first set based on the first hardware.
[0112] In one implementation manner, the multiple target hardware indicated by the target batch file further includes a second hardware, the second hardware is configured as a target hardware with sub-hardware, and the first hardware is configured as the remaining target hardware among the multiple target hardware.
[0113] In one implementation manner, the target batch file includes software information of software that can be loaded by each of the multiple target hardware; the execution unit 703 may be further configured to: perform a data loading operation on each target hardware in the first set in parallel based on the software information.
[0114] In one embodiment, the execution unit 703 may be further configured to: in response to confirming that there is a target parent hardware included in the avionics network in the second set, and all sub-hardware of the target parent hardware have completed data loading, remove the target parent hardware from the second set and add it to the first set.
[0115] In one embodiment, the execution unit 703 may be further configured to: before confirming that there is a target parent hardware included in the avionics network in the second set, confirm that at least some of the target hardware in the first set has completed data loading.
[0116] In one embodiment, the execution unit 703 may be further configured to: after confirming that at least some of the target hardware in the first set has completed data loading, remove the at least some of the target hardware from the first set; the method for confirming that all sub-hardware of the target parent hardware have completed data loading includes: if all sub-hardware of the target parent hardware have been removed from the first set, confirm that all sub-hardware of the target parent hardware have completed data loading.
[0117] In one embodiment, the execution unit 703 may be further configured to: after removing the target parent hardware from the second set and adding it to the first set, confirm the parent hardware of the target parent hardware based on the target batch file and add the parent hardware of the target parent hardware to the second set.
[0118] It should be noted that other aspects and implementation details of the batch data loading device provided in the embodiments of the present application are the same as or similar to those described in the previous batch data loading method, and will not be elaborated here.
[0119] In one embodiment, the embodiments of the present application provide a loading device, which includes a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the Figure 5 batch data loading method as described is implemented.
[0120] In one embodiment, the embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the Figure 5 batch data loading method as described is implemented.
[0121] In one embodiment, the embodiments of the present application provide a computer program product, including a computer program / instructions. When the computer program / instructions are executed by a processor, the Figure 5 batch data loading method as described is implemented.
[0122] As described above, it is only a partial implementation manner of the embodiments of the present application and does not impose any formal restrictions on the application. The protection scope of the embodiments of the present application is not limited thereto. Any simple modifications, equivalent changes, and decorations that can be easily thought of by those skilled in the art within the technical scope disclosed in the embodiments of the present application should be covered within the protection scope of the embodiments of the present application.
Claims
1. A batch data loading method, characterized in that: include: confirming a target batch file, wherein the target batch file indicates a plurality of target hardware in the avionics network and respective parent hardware of the plurality of target hardware; Based on the target batch file, construct a first set and a second set; wherein the first set includes at least part of the target hardware among the multiple target hardware, and the second set includes the parent hardware of the at least part of the target hardware; The data loading operation is performed in parallel on each target hardware in the first set, and the first set is updated based on the second set to implement loading in a direction from the child hardware to the parent hardware.
2. The batch data loading method according to claim 1, characterized in that: The target confirmation batch file includes: Acquire a plurality of batch processing files, each of which indicates a plurality of target hardware in the avionics network and respective parent hardware of the plurality of target hardware; wherein the plurality of target hardware indicated by the plurality of batch processing files are different; The target batch file is identified from among the plurality of batch files.
3. The batch data loading method according to claim 2, characterized in that: The step of confirming the target batch file from the plurality of batch files comprises: Displaying the file numbers of the plurality of batch files; In response to the acquired target part number, it is confirmed that the batch processing file corresponding to the target part number is the target batch processing file.
4. The batch data loading method according to claim 1, characterized in that: The plurality of target hardware include first hardware; and the constructing the first set includes: The first set is generated based on the first hardware.
5. The batch data loading method according to claim 4, characterized in that: The plurality of target hardware further includes second hardware configured as target hardware having sub-hardware, and the first hardware is configured as the remaining target hardware of the plurality of target hardware.
6. The batch data loading method according to claim 1, characterized in that: The target batch file includes software information of software that can be loaded by each of the plurality of target hardwares; The performing data loading operations on the target hardware in the first set in parallel includes: Based on the software information, a data loading operation is performed in parallel on each target hardware in the first set.
7. The batch data loading method according to claim 1, characterized in that: The updating of the first set based on the second set includes: In response to confirming that the target parent hardware included in the avionics network exists in the second set and all child hardware of the target parent hardware completes data loading, the target parent hardware is removed from the second set and added to the first set.
8. The batch data loading method according to claim 7, characterized in that: Before confirming that the second set contains target parent hardware included in the avionics network, the method further includes: Confirm that at least part of the target hardware in the first set has completed data loading.
9. The batch data loading method according to claim 8, characterized in that: After confirming that at least part of the target hardware in the first set has completed data loading, the method further includes: removing the at least a portion of the target hardware from the first set; The method for confirming that all child hardware of the target parent hardware have completed data loading includes: If all the child hardware of the target parent hardware are removed from the first set, it is confirmed that all the child hardware of the target parent hardware have completed data loading.
10. The batch data loading method according to any one of claims 7 to 9, characterized in that: After removing the target parent hardware from the second set and adding it to the first set, the method further includes: The parent hardware of the target parent hardware is confirmed based on the target batch file, and the parent hardware of the target parent hardware is added to the second set.
11. A batch data loading device, characterized in that: include: A confirmation unit configured to confirm a target batch file, wherein the target batch file indicates a plurality of target hardware in the avionics network and respective parent hardware of the plurality of target hardware; A construction unit is configured to construct a first set and a second set based on the target batch file; wherein the first set includes at least part of the target hardware among the plurality of target hardware, and the second set includes parent hardware of the at least part of the target hardware; The execution unit is configured to perform data loading operations on each target hardware in the first set in parallel, and update the first set based on the second set to achieve loading in a direction from the child hardware to the parent hardware.
12. A loading device, characterized in that: The loading device includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the batch data loading method according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the batch data loading method according to any one of claims 1 to 10 is implemented.