Airborne software updating method based on serial port

26-03-2014 дата публикации
Номер:
CN103677919A
Принадлежит: AVIC No 631 Research Institute
Контакты:
Номер заявки: 67-10-20134384
Дата заявки: 10-12-2013



[1]

The invention belongs to the field of computer software design, and particularly relates to an airborne software updating method based on a serial port. Airborne equipment is connected with a maintenance terminal through the serial port. Firstly, content of software to be updated is uploaded to the airborne equipment by the maintenance terminal through data transmission; then, programming is carried out through FLASH programming instructions of the airborne equipment; finally, software updating of the airborne equipment is completed. The method is easy to implement and avoids the loss of hardware facilitates of the airborne equipment.

[1]



1. A Serial port-based on-board software update method, characterized in that comprises the following steps:

1] select the Serial port of the airborne equipment and maintenance terminal on the established connection;

2] the maintenance terminal input command and the command sent to the airborne equipment, notify the airborne equipment enters the "software update" state;

3] send the maintenance terminal to the information and program address the length information of the software to be updated;

4] an airborne equipment receiving maintenance terminal information and program address sent from the software to be updated the length information, and judges whether the information is legitimate;

If the information is legitimate, the waiting of airborne equipment maintenance terminal sends the content of the software to be updated;

If programming is not legitimate, airborne equipment to provide prompt and termination of the process of updating software;

5] maintenance terminal according to the data transmission protocol of the content of the software to be updated is sent to the airborne equipment;

6] airborne equipment receives the content of the software to be updated, and invokes the FLASH programming instructions, treatment of updating software for programming;

7] the programming results of airborne equipment with the original airborne equipment to be received the content of the updated software to check, after correct check result, software update is complete.

2. Serial port-based on-board software update method according to Claim 1, characterized in that the stated step 5] in, maintenance terminal according to the data transmission protocol of the content of the software to be updated is sent to the airborne equipment; the specific steps are:

5.1] the maintenance terminal software content to be updated into the data format to be transmitted, and in the transmission before the conversion into the data format of the software content to be updated with every 1024 byte check for a frame, and the additional check code after;

5.2] maintenance terminal step 5.1] a is converted in the data format of the software content to be updated in units of frames, frame by frame is sent to the airborne equipment;

5.3] airborne equipment per received after the data of the data format of a frame, their own re-generated check code, and with the received data of each frame is compared to the code; and in response to format feedback to the maintenance terminal, according to the maintenance terminal to determine whether to respond to the state of the update software the frame treats the transmission of the content;

5.4] repeatedly executing step 5.1] to step 5.3], until the maintenance of the terminal software to be updated after the transmission of all the contents.

3. Serial port-based on-board software update method according to Claim 1, characterized in that the stated step 7] in, the programming results of airborne equipment with the original airborne equipment to be received the content of the updated software to check; the specific steps are:

7.1] of the airborne equipment, the received software content to be updated in accordance with the data format of the all written FLASH area of airborne equipment;

7.2] Flash airborne equipment to be written with the data of the area to be updated of the maintenance terminal to check the contents of verbatim section;

If all the same, the software update is complete;

Otherwise prompting update failure, withdraw from the "software update state".

7.3] when the update failure, maintenance terminal will re-startup of the whole software update process.