CN114500506A - Airborne avionics equipment data loading method and system and electronic equipment - Google Patents

Airborne avionics equipment data loading method and system and electronic equipment Download PDF

Info

Publication number
CN114500506A
CN114500506A CN202210073701.2A CN202210073701A CN114500506A CN 114500506 A CN114500506 A CN 114500506A CN 202210073701 A CN202210073701 A CN 202210073701A CN 114500506 A CN114500506 A CN 114500506A
Authority
CN
China
Prior art keywords
file
target
loader
transmission
target file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210073701.2A
Other languages
Chinese (zh)
Inventor
刘太兵
肖玉
黄继爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Jiuzhou ATC Technology Co Ltd
Original Assignee
Sichuan Jiuzhou ATC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Jiuzhou ATC Technology Co Ltd filed Critical Sichuan Jiuzhou ATC Technology Co Ltd
Priority to CN202210073701.2A priority Critical patent/CN114500506A/en
Publication of CN114500506A publication Critical patent/CN114500506A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technical field of airborne avionics equipment, and discloses a data loading method of airborne avionics equipment, which is used for transmitting a target file and comprises the following steps: s100, inquiring online and adding target equipment needing file transmission; s200, initiating a transmission request to the target equipment, and after receiving the information that the target equipment agrees to transmit the target file, transmitting the target file to be transmitted in a multi-thread way between the target equipment and the loader. The invention also discloses a data loading system of the airborne avionics equipment, the electronic equipment and a storage medium. The invention is compatible with Rev1.0 and Rev2.0 in the TFTP protocol, and designs the automatic error correction function of file transmission on the basis of the protocol standard, thereby further improving the reliability of file transmission.

Description

Airborne avionics equipment data loading method and system and electronic equipment
Technical Field
The invention relates to the technical field of airborne avionics equipment, in particular to a data loading method and system of airborne avionics equipment and electronic equipment.
Background
With the starting and development of the industry of large domestic aircrafts, domestic airborne avionics equipment is also in production. Unlike the avionics industry which is already mature abroad, the home-made airborne avionics equipment as an emerging industry inevitably faces the requirements of frequent data import and export in the processes of design, production and debugging, such as software upgrading, configuration file modification, running log viewing and the like at any time due to debugging and modification of faults.
All airborne avionics Using Ethernet as a Data import and export Interface must comply with the requirements of the Standards documents ARINC615A-3-2007(Software Data Loader Using Ethernet Interface) and ARINC665-3-2005(Loadable Software Standards). These two standards are a set of more complex rule logics for data organization and transmission, and to implement these rule logics, a set of tools for data transmission is required, and the hardware of the tools is any device capable of supporting software operation and supporting ethernet interface, such as a common Personal Computer (PC).
The software of the tool is a data loading software, such as a mainstream data loading software EasyLoad, and at present, the data loading software has the following defects:
the software operation is not humanized: the communication port needs to be manually set every time, if the port is occupied, repeated attempts are needed, and meanwhile, when the target file is selected, the target file and the process file need to be placed under the same path, so that the use cost is increased;
the file transmission is unstable: the TFTP protocol for file transmission has no fault-tolerant capability, and transmission is easy to fail in an unstable network environment;
the software architecture falls behind: files can only be transmitted in sequence, and multithreading parallel transmission is not supported.
Disclosure of Invention
The invention provides a data loading method and system for airborne avionic equipment and electronic equipment, and solves the problems.
The invention is realized by the following technical scheme:
a data loading method for airborne avionic equipment transmits a target file, and comprises the following steps:
s100, inquiring online and adding target equipment needing file transmission;
s200, initiating a transmission request to the target equipment, and after receiving the information that the target equipment agrees to transmit the target file, transmitting at least one target file needing to be transmitted in a multi-thread manner between the target equipment and a loader.
As an optimization, the method of the present invention,
in step S100, the specific steps of querying the target device online include:
s110, scanning and acquiring all network cards on the loader;
s120, broadcasting a request data packet with a query command to each network card in sequence;
s130, waiting for return information of the target equipment with a response data packet;
s140, judging whether the response data packet is received, and if not, jumping to S150; if yes, the corresponding network card is the network card connected with the target equipment, the loader analyzes the content of the response data packet, adds the target equipment allowing target file transmission into a target list, and skips to S160;
s150, judging whether the time is out, and if not, jumping to S120;
and S160, ending.
As an optimization, the transport protocol between the loader and the target device is a TFTP protocol, and communication protocols rev1.0 and rev2.0 are compatible to the TFTP protocol to extend a transport channel.
As an optimization, the method of the present invention,
the transmission of the target file comprises: uploading the target file to a target device and downloading the target file from the target device to a loader by the loader, selecting the target file by the loader when uploading the target file to the target device by using the loader, creating a map of a map container, and mapping a path of a file with the same file name as the target file with a file name of the target file
As optimization, the specific process of mapping the path of the file with the same file name as the target file with the file name of the target file is as follows:
establishing a map container, wherein the map container uses a file name without a path as a key and uses a path of a file as a value;
when the target file is selected by using the file dialog box, the file name without the path and the path of the file are stored in the key and the value of the map container respectively for mapping. When the loader uploads the target file to the target device, a port bound with number 0 is selected, then an unused port is allocated as a transmission port, and the transmission port is informed to the target device through a port option of the TFTP protocol.
As an optimization, the method of the present invention,
the specific steps of using the TFTP protocol to be compatible with the Rev1.0 protocol and the Rev2.0 protocol to extend a transmission channel for file transmission comprise:
s210, the TFTP client judges whether the transmission protocol uses a Rev2.0 protocol, if so, the step jumps to S211, and if not, the step jumps to S213;
s211, setting an expansion option of the transmission request, and packaging the transmission request according to a Rev2.0 protocol;
s212, sending the transmission request by using a Rev2.0 protocol;
s213, using default configuration and packing the transmission request according to the Rev1.0 protocol;
s214, transmitting a transmission request to a TFTP server by using a Rev1.0 protocol;
s215, the TFTP server judges whether the transmission request has an expansion option, if so, the expansion option is analyzed, and a Rev2.0 protocol is used; if not, using default configuration and using Rev1.0 protocol;
and S216, starting to transmit the file.
As an optimization, in step 200, initiating a transmission request to the target device, and after receiving information that the target device agrees to perform target file transmission, multithread-based transmission of at least one target file to be transmitted between the target device and the loader specifically includes:
the loader uploads a target file to the target device:
s220, the loader reads and analyzes the LUI file transmitted from the target equipment;
s221, the loader judges whether to allow uploading of the target file, if so, the step goes to S222, and if not, the step goes to S225;
s222, automatically generating LUH files by the loader, and sending LUH files to the target device;
s223, the loader transmits a plurality of target files to the target device in a multithreading mode, and meanwhile the target device sends LUS files to the loader periodically;
s224, the loader analyzes the LUS file and judges whether uploading is finished according to an analysis result; if not, jumping to S223, if yes, jumping to S225;
s225, exiting;
downloading an object file from an object device to a loader:
s230, the loader reads and analyzes the LU0 file transmitted from the target device;
s231, judging whether the target file is allowed to be downloaded, if so, jumping to S232, and otherwise, jumping to S237;
s232, the target device sends an LNL file to a loader, and the LNL file comprises a downloadable file list;
s233, the loader receives and analyzes the LNL file to obtain a downloadable file list of the target device;
s234, the loader selects a target file list to be downloaded according to the downloadable file list, automatically generates an LNA file for the target file list to be downloaded and sends the LNA file to the target device;
s235, the target device reads a target file stored in the target device according to a target file list needing to be downloaded, and transmits the read target file to a loader in a multi-thread mode, and meanwhile, the target device periodically sends an LNS file to the loader;
s236, the loader analyzes the LNS file and judges whether uploading is finished according to an analysis result; if not, jumping to S235, and if so, jumping to S237;
and S237, exiting.
As an optimization, when multi-thread transmission is performed, the transmission process of each individual target file has an automatic error correction process, which specifically includes:
the specific process of uploading a single target file to the target device by the loader is as follows:
s2231, the loader judges whether the transmission of the target file is finished through the LNS file fed back by the target device, if so, judges that the uploading process of the target file is correct, and quits the uploading of the single target file; otherwise, jumping to S2232;
s2232, the loader outputs an upload data message of one frame of the target file;
s2233, the target device receives the response of the uploaded data message;
s2235, checking the serial number of the response;
s2236, the target device judges whether the serial number of the response is equal to the serial number of the uploaded data message, if so, the serial number of the uploaded data message is subjected to incremental operation, then the incremental serial number information of the uploaded data message is fed back to the loader, and then S2231 is skipped; otherwise, go to S32237;
s2237, judging whether the sequence number of the response is equal to the sequence number of the uploaded data message of the previous frame, if so, keeping the sequence number of the uploaded data message of the frame unchanged, then feeding back the sequence number information of the uploaded data message of the frame to the loader, and then jumping to S2231; otherwise, judging that the uploading process of the target file is wrong, and quitting the uploading of the single target file;
downloading a single target file from a target device to a loader:
s2351, the loader judges whether the transmission of the target file is finished through the LNS file fed back by the target device, if so, judges that the downloading process of the target file is correct, and quits the downloading of the single target file; otherwise, jumping to S2352;
s2352, the loader receives a frame of download data message of the target file;
s2353, checking whether the sequence number of the download data message and the sequence number of the download data message of the previous frame are in an increasing relationship, if so, replying the sequence number of the download data message received by the frame, and then jumping to S2355, otherwise, jumping to S2354;
s2354, the loader judges whether the sequence number of the download data message of the frame is equal to the sequence number of the download data message of the previous frame, if so, the loader replies the sequence number of the download data message received by the frame to the target equipment, and then jumps to S2355, otherwise, the loader judges that the downloading process of the target file is wrong and quits the downloading of the single target file;
s2355, taking the received sequence number of the download data message of the frame as the sequence number of the download data message of the previous frame, storing the sequence number in a buffer, and then jumping to S2351.
The invention also discloses a data loading system of the airborne avionics equipment, which comprises a file transmission module and a data loading module, wherein the file transmission module is used for transmitting the target file, and the data loading system further comprises:
the query module: the target equipment is used for online inquiry and adding the target equipment needing file transmission;
a multithreading transmission module: the method is used for multithread transmission of the target file to be transmitted.
And as optimization, the system further comprises a port binding module, wherein the port binding module is used for selecting a port with the number 0 to be bound when the loader uploads the target file to the target device, then allocating an unused port as a transmission port, and informing the transmission port to the target device through a port option of the TFTP protocol.
The invention also discloses an electronic device, comprising: comprising a memory and a processor; the processor is used for reading the program in the memory and executing the steps of the data loading method of the airborne avionics equipment.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the invention is compatible with Rev1.0 and Rev2.0 in the TFTP protocol, and designs the automatic error correction function of single target file transmission on the basis of the protocol standard, thereby further improving the reliability of file transmission;
2. the network cards of all the devices are scanned when the target device is searched, instead of only using the default network card, so that the searching failure in a multi-network-card environment is avoided;
3. according to the invention, each target file is mapped with a respective path instead of using a uniform path, so that the uploaded target file and the uploaded process file are prevented from being put under the same path, and the use cost is reduced;
4. the method automatically generates the temporary data (ARINC615A-3-2007 standard) required by the interaction process, reduces the cost of manually generating the temporary data, and avoids errors caused by manual introduction to the maximum extent;
5. the method supports the multithread transmission of the data of the airborne avionic equipment, and accelerates the transmission speed of the data of the airborne avionic equipment.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and that for those skilled in the art, other related drawings can be obtained from these drawings without inventive effort. In the drawings:
FIG. 1 is a flow chart of an on-line device lookup in a data loading method for an airborne avionics device according to the present invention;
FIG. 2 is a flow chart of TFTP protocol compatibility Rev1.0/Rev2.0 in the data loading method for airborne avionics equipment according to the present invention;
FIG. 3 is a flowchart illustrating an error correction algorithm for a transmission process of outputting (uploading) a single file according to the data loading method of an airborne avionics device;
FIG. 4 is a flowchart of an error correction algorithm for the transmission process of an input (download) single file of the data loading method of an airborne avionics device according to the present invention;
FIG. 5 is a flowchart illustrating a TFTP server creating multiple threads according to the data loading method of the airborne avionics device;
FIG. 6 is a software main interface design diagram of a data loading system of an airborne avionics device according to the present invention;
FIG. 7 is a flowchart illustrating a whole process of uploading all files of a data loading method for an airborne avionics device according to the present invention;
fig. 8 is a flowchart of an overall process of downloading all files of a data loading method for an airborne avionics device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Example 1
A data loading method for airborne avionic equipment transmits a target file, and comprises the following steps:
s100, inquiring online and adding target equipment needing file transmission;
s200, initiating a transmission request to the target equipment, and after receiving the information that the target equipment agrees to transmit the target file, transmitting at least one target file needing to be transmitted in a multi-thread manner between the target equipment and a loader.
In this embodiment, as shown in fig. 1, a flowchart of querying a target device online is provided, which includes the specific steps of:
in step S100, the specific steps of querying the target device online include:
s110, scanning and acquiring all network cards on the loader;
generally, a plurality of network cards are installed on a computer, and only 1 target device of a transmitted document is provided, so that the problem can be solved by scanning all the network cards of a loader in order to omit the manual observation of which network card the target device is connected to transmit.
S120, broadcasting a request data packet with a query command to each network card in sequence;
s130, waiting for return information of the target equipment with a response data packet;
s140, judging whether the response data packet is received or not, and if not, jumping to S150; if yes, the corresponding network card is the network card connected with the target equipment, the loader analyzes the content of the response data packet, adds the target equipment allowing target file transmission into a target list, and skips to S160;
s150, judging whether the time is out, and if not, jumping to S120;
and S160, ending.
In this embodiment, the transmission protocol between the loader and the target device is a TFTP protocol, and a communication protocol rev1.0 protocol and a rev2.0 protocol are compatible to the TFTP protocol to extend a transmission channel.
In the present embodiment, the first and second electrodes are,
the transmission of the target file comprises: uploading the target file to a target device and downloading the target file from the target device to a loader by the loader, selecting the target file by the loader when the target file is uploaded to the target device by using the loader, creating a map of a map container, and mapping a path of the file with the same file name as the target file with the file name of the target file.
An example of a mapping container is shown in Table 1
TABLE 1 File mapping map Container
Figure BDA0003483058640000061
Figure BDA0003483058640000071
At present, in the field of airborne avionics equipment, files are concentrated under a directory in advance during conventional operation, but the files are not required to be concentrated under a directory in advance through the operation of the method and the device, so that the operation is more convenient.
In this embodiment, when the loader uploads the target file to the target device, the port bound to number 0 is selected, an unused port is then allocated as a transport port, and the transport port is notified to the target device through the port option of the TFTP protocol.
In this embodiment, as shown in fig. 2, the specific step of using the TFTP protocol compatible with the rev1.0 protocol and the rev2.0 protocol to extend a transmission channel for file transmission includes:
s210, the TFTP client judges whether the transmission protocol uses a Rev2.0 protocol, if so, the step jumps to S211, and if not, the step jumps to S213;
s211, setting an expansion option of the transmission request, and packaging the transmission request according to a Rev2.0 protocol;
s212, sending the transmission request by using a Rev2.0 protocol;
s213, using default configuration and packing the transmission request according to the Rev1.0 protocol;
s214, transmitting a transmission request to a TFTP server by using a Rev1.0 protocol;
s215, the TFTP server judges whether the transmission request has an expansion option, if so, the expansion option is analyzed, and a Rev2.0 protocol is used; if not, using default configuration and using Rev1.0 protocol;
and S216, starting to transmit the file.
After the communication protocol is unified, the communication between the loader and the target device is transmitted from the TFTP client to the TFTP server. Here, it should be noted that the loader and the target device each include a TFTP client and a TFTP server corresponding to each other.
The loader transfers the file to the TFTP server of the target device by calling the TFTP client of the loader, and the target device also transfers the file to the TFTP server of the loader by calling the TFTP client of the target device.
In this embodiment, in step 200, initiating a transmission request to the target device, and after receiving information that the target device agrees to perform target file transmission, multi-threaded transmitting at least one target file to be transmitted between the target device and the loader specifically includes:
the loader uploads a target file to the target device:
s220, the loader reads and analyzes the LUI file transmitted from the target equipment;
s221, the loader judges whether to allow uploading of the target file, if so, the step goes to S222, and if not, the step goes to S225; s222, automatically generating LUH files by the loader, and sending LUH files to the target device; the LUH file contains information such as the name and size of the target file.
S223, the loader multithreading (or sequentially) transmitting a plurality of target files to the target device, and at the same time, the target device periodically sending LUS files to the loader;
s224, the loader analyzes the LUS file and judges whether uploading is finished according to an analysis result; if not, jumping to S223, if yes, jumping to S225;
s225, exiting;
downloading an object file from an object device to a loader:
s230, the loader reads and analyzes the LU0 file transmitted from the target device;
s231, judging whether the target file is allowed to be downloaded, if so, jumping to S232, and otherwise, jumping to S237;
s232, the target device sends an LNL file to a loader, and the LNL file comprises a downloadable file list;
s233, the loader receives and analyzes the LNL file to obtain a downloadable file list of the target device;
s234, the loader selects a target file list to be downloaded according to the downloadable file list, automatically generates an LNA file for the target file list to be downloaded and sends the LNA file to the target device;
s235, the target device reads a target file stored in the target device according to a target file list required to be downloaded, and multithreading (or sequential) transmission of the read target file to a loader is carried out, and meanwhile, the target device periodically sends an LNS file to the loader;
s236, the loader analyzes the LNS file and judges whether uploading is finished according to an analysis result; if not, jumping to S235, and if so, jumping to S237;
and S237, exiting.
In this embodiment, when performing multi-thread transmission, the transmission process of each individual target file has an automatic error correction process, as shown in fig. 3 and 4, which are flowcharts of an error correction algorithm in a transmission process of outputting a single target file and an error correction algorithm in a transmission process of inputting a file, respectively, and specifically include:
the specific process of uploading a single target file to the target equipment by the loader comprises the following steps:
s2231, the loader judges whether the transmission of the target file is finished through the LNS file fed back by the target device, if so, judges that the uploading process of the target file is correct, and quits the uploading of the single target file; otherwise, jumping to S2232;
s2232, the loader outputs an upload data message of one frame of the target file;
s2233, the target device receives the response of the uploaded data message;
s2235, checking the serial number of the response;
s2236, the target device judges whether the serial number of the response is equal to the serial number of the uploaded data message, if so, the serial number of the uploaded data message is subjected to incremental operation, then the incremental serial number information of the uploaded data message is fed back to the loader, and then S2231 is skipped; otherwise, go to S32237;
s2237, judging whether the sequence number of the response is equal to the sequence number of the uploaded data message of the previous frame, if so, keeping the sequence number of the uploaded data message of the frame unchanged, then feeding back the sequence number information of the uploaded data message of the frame to the loader, and then jumping to S2231; otherwise, judging that the uploading process of the target file is wrong, and quitting the uploading of the single target file;
downloading a single target file from a target device to a loader:
s2351, the loader judges whether the transmission of the target file is finished through the LNS file fed back by the target device, if so, judges that the downloading process of the target file is correct, and quits the downloading of the single target file; otherwise, jumping to S2352;
s2352, the loader receives a frame of download data message of the target file;
s2353, checking whether the sequence number of the download data message and the sequence number of the download data message of the previous frame are in an increasing relationship, if so, replying the sequence number of the download data message received by the frame, and then jumping to S2355, otherwise, jumping to S2354;
s2354, the loader judges whether the sequence number of the download data message of the frame is equal to the sequence number of the download data message of the previous frame, if so, the loader replies the sequence number of the download data message received by the frame to the target equipment, and then jumps to S2355, otherwise, the loader judges that the downloading process of the target file is wrong and quits the downloading of the single target file;
s2355, taking the received sequence number of the download data message of the frame as the sequence number of the download data message of the previous frame, storing the sequence number in a buffer, and then jumping to S2351.
Whether the file is transmitted or not is judged, and it can be known from the LUS or LNS file returned by the target device that the file information includes an "Operation Status Code" field (16 bits), where the value of this field is 0x0003 to indicate that the transmission is successful, (0x0001 to indicate that the transmission is started, 0x0002 to indicate that the transmission is in the process, and 0x1 to indicate that the transmission is terminated, which represents the reason for termination), which is a conventional Operation of those skilled in the art, and is not described herein again.
Example 2
The invention also discloses a data loading system of the airborne avionics equipment, which comprises a file transmission module and a data loading module, wherein the file transmission module is used for transmitting the target file, and the data loading system further comprises:
the query module: the target equipment is used for online inquiry and adding the target equipment needing file transmission;
and a multithread transmission module: the method is used for transmitting all process files needing to be transmitted in a multi-thread mode in the transmission process, the process files are generated as required, the generated files are stored in a system temporary folder, the files are automatically deleted after one-time transmission operation is finished, and unnecessary operation of a user is reduced. The formats of the process files are specified by ARINC615A-3-2007 and ARINC665-3-2005 standards, which are not described in detail herein.
The software interface of the data loading system of the airborne avionic device is shown in fig. 6, the software interface of the data loading system of the airborne avionic device is designed to focus on a target task, the upper part is a necessary public information area and supports a key to search for a target, the lower part is provided with 2 tab pages according to the target task, one is used for importing (uploading), and the other is used for exporting (downloading). The whole process of uploading the object file is shown in fig. 7, and the whole process of downloading the object file is shown in fig. 8.
The process of one-touch object finding is shown in fig. 1.
In this embodiment, the apparatus further includes a port binding module, where the port binding module is configured to select a port with a binding number 0 when the loader uploads the target file to the target device, allocate an unused port as a transport port, and notify the transport port to the target device through a port option of the TFTP protocol.
Example 3
The invention also discloses an electronic device, comprising: comprising a memory and a processor; the processor is used for reading the program in the memory and executing the steps of the data loading method of the airborne avionics equipment.
Example 4
The invention also discloses a computer readable storage medium storing a computer program executable by an electronic device, which when run on the electronic device causes the electronic device to perform the steps of an onboard avionics data loading method.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A data loading method for airborne avionic equipment is used for transmitting a target file, and is characterized by comprising the following steps:
s100, inquiring online and adding target equipment needing file transmission;
s200, initiating a transmission request to the target equipment, and after receiving the information that the target equipment agrees to transmit the target file, transmitting at least one target file needing to be transmitted in a multi-thread manner between the target equipment and a loader.
2. The data loading method for the airborne avionics device according to claim 1, wherein in step S100, the specific step of querying the target device on line comprises:
s110, scanning and acquiring all network cards on the loader;
s120, broadcasting a request data packet with a query command to each network card in sequence;
s130, waiting for return information of the target equipment with a response data packet;
s140, judging whether the response data packet is received or not, and if not, jumping to S150; if yes, the corresponding network card is the network card connected with the target equipment, the loader analyzes the content of the response data packet, adds the target equipment allowing target file transmission into a target list, and skips to S160;
s150, judging whether the time is out, and if not, jumping to S120;
and S160, ending.
3. The method according to claim 2, wherein the transmission protocol between the loader and the target device is TFTP protocol, and the communication protocols rev1.0 and rev2.0 are compatible with the TFTP protocol to extend the transmission channel.
4. The method for loading the data of the airborne avionics equipment according to claim 2, wherein the transmission of the target file comprises: uploading the target file to a target device and downloading the target file from the target device to a loader by the loader, selecting the target file by the loader when the target file is uploaded to the target device by using the loader, creating a map of a map container, and mapping a path of the file with the same file name as the target file with the file name of the target file.
5. The data loading method for the airborne avionics equipment according to claim 4, wherein the specific process of mapping the path of the file with the same file name as the target file with the file name of the target file comprises the following steps:
establishing a map container, wherein the map container uses a file name without a path as a key and uses a path of a file as a value;
when the target file is selected by using the file dialog box, the file name without the path and the path of the file are stored in the key and the value of the map container respectively for mapping.
6. The method according to claim 3, wherein the step of using the TFTP protocol compatible with Rev1.0 protocol and Rev2.0 protocol to extend a transmission channel for file transmission comprises:
s210, the TFTP client judges whether the transmission protocol uses a Rev2.0 protocol, if so, the step jumps to S211, and if not, the step jumps to S213;
s211, setting an expansion option of the transmission request, and packaging the transmission request according to a Rev2.0 protocol;
s212, sending the transmission request by using a Rev2.0 protocol;
s213, using default configuration and packing the transmission request according to the Rev1.0 protocol;
s214, transmitting a transmission request to a TFTP server by using a Rev1.0 protocol;
s215, the TFTP server judges whether the transmission request has an expansion option, if so, the expansion option is analyzed, and a Rev2.0 protocol is used; if not, using default configuration and using Rev1.0 protocol;
and S216, starting to transmit the file.
7. The method according to claim 6, wherein, in step 200, initiating a transfer request to the target device, and after receiving information that the target device approves target file transfer, multi-threaded transferring at least one target file to be transferred between the target device and the loader specifically comprises:
the loader uploads a target file to the target device:
s220, the loader reads and analyzes the LUI file transmitted from the target equipment;
s221, the loader judges whether to allow uploading of the target file, if so, the step goes to S222, and if not, the step goes to S225;
s222, automatically generating LUH files by the loader, and sending LUH files to the target device;
s223, the loader transmits a plurality of target files to the target device in a multithreading mode, and meanwhile the target device sends LUS files to the loader periodically;
s224, the loader analyzes the LUS file and judges whether uploading is finished according to an analysis result; if not, jumping to S223, if yes, jumping to S225;
s225, exiting;
downloading an object file from an object device to a loader:
s230, the loader reads and analyzes the LU0 file transmitted from the target device;
s231, judging whether the target file is allowed to be downloaded, if so, jumping to S232, and otherwise, jumping to S237;
s232, the target device sends an LNL file to a loader, and the LNL file comprises a downloadable file list;
s233, the loader receives and analyzes the LNL file to obtain a downloadable file list of the target device;
s234, the loader selects a target file list to be downloaded according to the downloadable file list, automatically generates an LNA file for the target file list to be downloaded and sends the LNA file to the target device;
s235, the target device reads a target file stored in the target device according to a target file list needing to be downloaded, and transmits the read target file to a loader in a multi-thread mode, and meanwhile, the target device periodically sends an LNS file to the loader;
s236, the loader analyzes the LNS file and judges whether uploading is finished according to an analysis result; if not, jumping to S235, and if so, jumping to S237;
and S237, exiting.
8. The method for loading data on an airborne avionics device according to claim 7, wherein during multi-thread transmission, the transmission process of each individual target file has an automatic error correction process, and specifically comprises:
the specific process of uploading a single target file to the target device by the loader is as follows:
s2231, the loader judges whether the transmission of the target file is finished through the LNS file fed back by the target device, if so, judges that the uploading process of the target file is correct, and quits the uploading of the single target file; otherwise, jumping to S2232;
s2232, the loader outputs an upload data message of one frame of the target file;
s2233, the target device receives the response of the uploaded data message;
s2235, checking the serial number of the response;
s2236, the target device judges whether the serial number of the response is equal to the serial number of the upload data message, if so, the serial number of the upload data message is subjected to incremental operation, then the incremental serial number information of the upload data message is fed back to the loader, and then the process jumps to S2231; otherwise, go to S32237;
s32237, determining whether the sequence number of the response is equal to the sequence number of the upload data packet of the previous frame, if so, keeping the sequence number of the upload data packet of the frame unchanged, then feeding back the sequence number information of the upload data packet of the frame to the loader, and then jumping to S2231; otherwise, judging that the uploading process of the target file is wrong, and quitting the uploading of the target file;
downloading an object file from an object device to a loader:
s2351, the loader judges whether the transmission of the target file is finished through the LNS file fed back by the target equipment, if so, judges that the downloading process of the target file is correct, and exits; otherwise, jumping to S2352;
s2352, the loader receives a frame of download data message of the target file;
s2353, checking whether the sequence number of the download data message and the sequence number of the download data message of the previous frame are in an increasing relationship, if so, replying the sequence number of the download data message received by the frame, and then jumping to S2355, otherwise, jumping to S2354;
s2354, the loader judges whether the sequence number of the download data message of the frame is equal to the sequence number of the download data message of the previous frame, if so, the loader replies the sequence number of the download data message received by the frame to the target equipment, and then skips to S2355, otherwise, the loader judges that the downloading process of the target file is wrong and quits the downloading of the target file;
s2355, taking the received sequence number of the download data message of the frame as the sequence number of the download data message of the previous frame, storing the sequence number in a buffer, and then jumping to S2351.
9. The utility model provides an airborne avionics equipment data loading system, includes file transmission module for transmit the target file, its characterized in that still includes:
the query module: the target equipment is used for online inquiry and adding the target equipment needing file transmission;
a multithreading transmission module: the method is used for multithread transmission of the target file to be transmitted.
10. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which program, when run on the electronic device, causes the electronic device to carry out the steps of the method according to any one of claims 1-8.
CN202210073701.2A 2022-01-21 2022-01-21 Airborne avionics equipment data loading method and system and electronic equipment Pending CN114500506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210073701.2A CN114500506A (en) 2022-01-21 2022-01-21 Airborne avionics equipment data loading method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210073701.2A CN114500506A (en) 2022-01-21 2022-01-21 Airborne avionics equipment data loading method and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN114500506A true CN114500506A (en) 2022-05-13

Family

ID=81473360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210073701.2A Pending CN114500506A (en) 2022-01-21 2022-01-21 Airborne avionics equipment data loading method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN114500506A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001268093A (en) * 2000-03-21 2001-09-28 Anritsu Corp Data transmitter
CN102821057A (en) * 2011-06-09 2012-12-12 腾讯科技(深圳)有限公司 File sending method, device and system
CN104010023A (en) * 2013-02-26 2014-08-27 霍尼韦尔国际公司 Trivial file transfer protocol (TFTP) accelerated file retry option
CN109359099A (en) * 2018-08-21 2019-02-19 中国平安人寿保险股份有限公司 Distributed document method for uploading, device, computer equipment and storage medium
CN112286591A (en) * 2020-10-28 2021-01-29 中国航空工业集团公司西安航空计算技术研究所 Data loading method based on airborne network server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001268093A (en) * 2000-03-21 2001-09-28 Anritsu Corp Data transmitter
CN102821057A (en) * 2011-06-09 2012-12-12 腾讯科技(深圳)有限公司 File sending method, device and system
CN104010023A (en) * 2013-02-26 2014-08-27 霍尼韦尔国际公司 Trivial file transfer protocol (TFTP) accelerated file retry option
CN109359099A (en) * 2018-08-21 2019-02-19 中国平安人寿保险股份有限公司 Distributed document method for uploading, device, computer equipment and storage medium
CN112286591A (en) * 2020-10-28 2021-01-29 中国航空工业集团公司西安航空计算技术研究所 Data loading method based on airborne network server

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
唐明哲: "民机机载文件服务系统原型设计与实现", 《中国优秀硕士学位论文 信息科技辑》, vol. 2018, no. 07 *
王羽;洪沛;闫乐;张英;: "基于FC的航电数据加载服务系统的设计研究", 航空电子技术, no. 04, pages 2 - 3 *
胡靖宇;仲施平;薛楠;张成;: "基于FC网络的ARINC615A数据加卸载软件的设计与实现", 信息通信, no. 01 *
逯计划;: "一种基于FC网络的数据加卸载方法研究", 信息通信, no. 02 *

Similar Documents

Publication Publication Date Title
CN101167071B (en) Methods and devices for synchronizing modifiable documents with multiple clients
CN106445665B (en) A kind of system file method for down loading and download tool applied to Android system
CN102637214B (en) Method and system for synchronizing general data among database services
EP3734933A1 (en) Resource acquisition method, resource return method, server and storage medium
CN112769802B (en) Access verification method and device based on server, electronic equipment and storage medium
JP2001175681A (en) Database system, method for generating replica of database, and computer-readable recording medium with recorded program for replica generation of database
CN114091409A (en) Method, system, equipment and storage medium for distributed asynchronous Excel analysis
CN110825330A (en) Cloud printing method, printing cloud box, system and storage medium based on file fragmentation
CN112035405A (en) Document transcoding method and device, scheduling server and storage medium
CN113051102A (en) File backup method, device, system, storage medium and computer equipment
CN114500506A (en) Airborne avionics equipment data loading method and system and electronic equipment
CN111488483B (en) Method, device, terminal and non-transitory computer readable storage medium for updating a library
CN111752941B (en) Data storage and access method and device, server and storage medium
CN112969198A (en) Data transmission method, terminal and storage medium
CN112328325A (en) Execution method and device of model file, terminal equipment and storage medium
CN110221790B (en) Universal printing method and apparatus, analyzer, and storage medium
CN112965912B (en) Interface test case generation method and device and electronic equipment
CN115344620A (en) Method for realizing data on-demand synchronization after front-end and back-end separation by user-defined data pool
CN115098451A (en) Data transmission method based on file
US7444430B2 (en) Terminal apparatus and control method thereof
CN115080085A (en) Method and system for solving EOL calibration in OEM
CN110730168B (en) Communication control method and device and server equipment
CN111339100B (en) Data checking method and device
CN110430279B (en) File downloading control method and device
CN113518107A (en) File transmission method, computing device and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination