Program upgrading method based on 1553B
By configuring the 1553B-based burning tool software, using the 1553B data bus for online program burning and software upgrades, the traditional burning methods are solved, and a fast, real-time and accurate burning process is achieved.
Patent Information
- Application Number
- CN202311071650.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-24
- Publication Date
- 2025-02-25
AI Technical Summary
The traditional 1553B bus protocol program burning method requires special burning tools and manual intervention, and the steps are cumbersome, inefficient and error-prone.
By configuring the 1553B-based burning tool software, using the 1553B data bus for online program burning and software upgrade, the data frame is directly sent to the remote terminal device, the data legitimacy is judged through the CRC check bit, and the wrong data is automatically resent.
The burning process is simplified, fast and real-time burning operations are achieved, the burning efficiency is improved, the demand for manual operations is reduced, the risk of human error is reduced, and the accuracy and completeness of burning is ensured.
Smart Images

Figure CN119512585A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of information transmission, and in particular to a program upgrading method based on 1553B. Background Art
[0002] 1553b bus protocol is a kind of information transmission bus standard specially formulated for aircraft equipment, that is, the protocol for transmission between equipment. With the modernization of my country's national defense and the upgrading of weapon systems, the aerospace field has flourished. my country has developed its own bus interface protocol based on its own situation and with reference to the US standard.
[0003] The 1553B bus network consists of terminals or subsystems and bus transmission media. Terminals or subsystems can be independent components. The 1553B bus system adopts a command / response transmission operation mode. When the bus controller issues a command, the terminal or subsystem will respond.
[0004] Traditional burning methods usually require the use of special burning tools or disassembly equipment for burning, which is cumbersome, inefficient, and prone to errors. In addition, traditional burning methods usually require manual intervention, and human negligence or operational errors may cause burning errors. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a program upgrade method based on 1553B, aiming to solve the technical problems existing in the prior art identified in the background technology.
[0006] The embodiment of the present invention is implemented as follows: a program upgrade method based on 1553B, the method comprising:
[0007] S1. Configure the burning tool software based on 1553B;
[0008] S2. Convert the data to a hexadecimal data file by converting the target recorderDSP.bin file to be burned;
[0009] S3. Divide the data file into arrays of fixed length 64 bytes in sequence until the end of the file;
[0010] S4. Each time, a 64-Byte array data is assembled into a data frame from the bus controller to the remote terminal sub-device, and the data frame is sent to the corresponding remote terminal sub-device;
[0011] S5. Turn on the monitoring mode and monitor the remote terminal sub-device to return the correct signal. The remote terminal sub-device determines the legitimacy of the data through the CRC check bit of the data frame;
[0012] S6. Start monitoring the next frame of data and save the 64-Byte valid data in the legal frame to the corresponding storage flash, otherwise discard the data;
[0013] S7. Based on the frame returned by the RT device, the bus controller determines whether to resend the current data or the next set of data;
[0014] S8. Repeat S4 to S7, cycle through these operations until the array ends, and send an end command to complete data downloading.
[0015] S9.The RT device enters the program burning process and the RT device program burning is completed.
[0016] As a further solution of the present invention, the configuration is based on the burning configuration software of 1553B, specifically including:
[0017] RT remote address configuration, set the address of the RT device to be burned;
[0018] Enter the upgrade mode and send specific data to the fixed RT device via 1553B to make the RT device enter the preparation for burning the program;
[0019] Erase memory. Send specific data to a fixed RT device via 1553B to erase the program in the existing registers of the RT device.
[0020] As a further solution of the present invention, the legality of the data is judged, and if it is legal, a correct response frame is sent, otherwise a retransmission response frame is sent.
[0021] The beneficial effects of the embodiments of the present invention are:
[0022] This solution directly uses the 1553B data bus of the equipment to perform online program burning and software upgrades on the terminals or subsystems in each 1553B data bus, which can simplify the burning process, does not require additional burning equipment or disassembly equipment, and can achieve fast and real-time burning operations, saving burning time, improving burning efficiency, reducing the need for manual operation, reducing the risk of human error, ensuring the accuracy and completeness of burning, avoiding burning errors caused by human negligence or operational errors, and improving system reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of the software flow of the burning tool provided by the embodiment of the present invention;
[0024] Figure 2 A schematic diagram of data reception of a terminal or subsystem (RT) provided in an embodiment of the present invention;
[0025] Figure 3This is a diagram of the 1553B message data format provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0027] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.
[0028] Software Development Environment
[0029]
[0030] Hardware test environment:
[0031] Serial number Tool Name Remark 1 Laptop hardware 2 MIL-STD-1553B Simulation Test Chart hardware 3 Coupler and matching resistor hardware 4 Type of terminal or subsystem (RT) hardware
[0032] like Figures 1 to 3 As shown, a program upgrade method based on 1553B, the method comprising:
[0033] S1. Configure the burning tool software based on 1553B;
[0034] S2. Convert the data to a hexadecimal data file by converting the target recorderDSP.bin file to be burned;
[0035] S3. Divide the data file into arrays of fixed length 64 bytes in sequence until the end of the file;
[0036] S4. Each time, a 64-Byte array data is assembled into a data frame from the bus controller to the remote terminal sub-device, and the data frame is sent to the corresponding remote terminal sub-device;
[0037] S5. Turn on the monitoring mode and monitor the remote terminal sub-device to return the correct signal. The remote terminal sub-device determines the legitimacy of the data through the CRC check bit of the data frame;
[0038] S6. Start monitoring the next frame of data and save the 64-Byte valid data in the legal frame to the corresponding storage flash, otherwise discard the data;
[0039] S7. Based on the frame returned by the RT device, the bus controller determines whether to resend the current data or the next set of data;
[0040] S8. Repeat S4 to S7, cycle through these operations until the array ends, and send an end command to complete data downloading.
[0041] S9.The RT device enters the program burning process and the RT device program burning is completed.
[0042] Burning tool software. It is specially developed to convert the target file recorderDSP.bin to be burned into hexadecimal data, and assemble these hexadecimal data into data frames from the bus controller (BC) to the remote terminal sub-device (RT) in sequence according to the 1553B protocol. Send the data frame to the corresponding remote terminal sub-device (RT). Start the monitoring (RT) mode, and monitor (RT) to return the correct signal. The next frame of data is in sequence.
[0043] The remote terminal sub-device (RT) determines the legitimacy of the data through the check bit of the data frame and sends a response frame. It starts to monitor (BC) the next frame of data and saves the legal frame data to the corresponding storage flash.
[0044] Boot file is responsible for guiding the erasure of DSP partition, burning DSP data in flash, and completing DSP program upgrade.
[0045] In an embodiment of the present invention, the configuration is based on the burning configuration software of 1553B, specifically including:
[0046] RT remote address configuration, set the address of the RT device to be burned;
[0047] Enter the upgrade mode and send specific data to the fixed RT device via 1553B to make the RT device enter the preparation for burning the program;
[0048] Erase memory. Send specific data to a fixed RT device via 1553B to erase the program in the existing registers of the RT device.
[0049] In the embodiment of the present invention, the legality of the data is judged, and if it is legal, a correct response frame is sent, otherwise a retransmission response frame is sent.
[0050] The 1553B operation unit is double word, hex format,
[0051] The 1553B message frame structure is as follows:
[0052] Command word Data Word ... Data Word
[0053] The data word structure is as follows:
[0054] ID length CMD Data... CRC
[0055] ID: frame sequence number, occupies 1 byte.
[0056] Length: total number of bytes in the data frame, including the number of bytes of all data words, occupying 1 byte.
[0057] CMD: Operation code, occupies 1 byte.
[0058]
[0059] CRC: Data frame check CRC code, all data word bytes CRC code, occupies 2 bytes.
[0060] It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are displayed sequentially as indicated by arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows.
[0061] Unless otherwise specified herein, there is no strict order restriction for the execution of these steps, and these steps may be executed in other orders. Moreover, at least a portion of the steps in each embodiment may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be performed in sequence, but may be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0062] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0063] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0064] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0065] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A program upgrade method based on 1553B, characterized in that: The method comprises: S1. Configure the burning tool software based on 1553B; S2. Convert the data to a hexadecimal data file by converting the target recorderDSP.bin file to be burned; S3. Divide the data file into arrays of fixed length 64 bytes in sequence until the end of the file; S4. Each time, a 64-Byte array data is assembled into a data frame from the bus controller to the remote terminal sub-device, and the data frame is sent to the corresponding remote terminal sub-device; S5. Turn on the monitoring mode and monitor the remote terminal sub-device to return the correct signal. The remote terminal sub-device determines the legitimacy of the data through the CRC check bit of the data frame; S6. Start monitoring the next frame of data and save the 64-Byte valid data in the legal frame to the corresponding storage flash, otherwise discard the data; S7. Based on the frame returned by the RT device, the bus controller determines whether to resend the current data or the next set of data; S8. Repeat S4 to S7, cycle through these operations until the array ends, and send an end command to complete data downloading. S9.The RT device enters the program burning process and the RT device program burning is completed.
2. The method according to claim 1, characterized in that The configuration is based on the 1553B burning configuration software, specifically including: RT remote address configuration, set the address of the RT device to be burned; Enter the upgrade mode and send specific data to the fixed RT device via 1553B to make the RT device enter the preparation for burning the program; Erase memory. Send specific data to a fixed RT device via 1553B to erase the program in the existing registers of the RT device.
3. The method according to claim 1, characterized in that The legality of the data is determined, and if it is legal, a correct response frame is sent, otherwise a retransmission response frame is sent.
4. The method according to claim 1, characterized in that: The operation unit of the burning tool software is double word, hex format.