CN114500658A - Data transmission method and device and data transmission method and device of aircraft - Google Patents

Data transmission method and device and data transmission method and device of aircraft Download PDF

Info

Publication number
CN114500658A
CN114500658A CN202111619971.0A CN202111619971A CN114500658A CN 114500658 A CN114500658 A CN 114500658A CN 202111619971 A CN202111619971 A CN 202111619971A CN 114500658 A CN114500658 A CN 114500658A
Authority
CN
China
Prior art keywords
data
data units
transmission
units
data unit
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
CN202111619971.0A
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.)
Guangzhou Xaircraft Technology Co Ltd
Original Assignee
Guangzhou Xaircraft 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 Guangzhou Xaircraft Technology Co Ltd filed Critical Guangzhou Xaircraft Technology Co Ltd
Priority to CN202111619971.0A priority Critical patent/CN114500658A/en
Publication of CN114500658A publication Critical patent/CN114500658A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/18502Airborne stations
    • H04B7/18506Communications with or from aircraft, i.e. aeronautical mobile service
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of data transmission, in particular to a data transmission method and a data transmission device, a data transmission method and a data transmission device of an aircraft, the aircraft, a computer-readable storage medium and electronic equipment, and solves the problem of low data transmission efficiency. According to the data transmission method, firstly, storage information corresponding to M data units generated based on data to be transmitted is determined, the storage information comprises position information of the data units in a cache space, and then N data units are transmitted based on the storage information corresponding to A data units in the cache space and the transmission states corresponding to the A data units. The data units on the designated storage positions in the cache space can be directly transmitted according to the storage information, so that the data units needing to be transmitted are prevented from being determined by moving a large number of data units in the cache space, and the high-efficiency transmission of the data units is ensured.

Description

Data transmission method and device and data transmission method and device of aircraft
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method and a data transmission apparatus, a data transmission method and an apparatus for an aircraft, a computer-readable storage medium, and an electronic device.
Background
Currently, an acknowledgment retransmission mechanism is generally adopted to ensure the reliability of data transmission. The confirmation retransmission mechanism is that a receiver returns a confirmation receiving message to a sender aiming at received data, the sender confirms that the data is successfully transmitted according to the confirmation receiving message returned by the receiver, and if the sender does not receive the confirmation receiving message returned by the receiver within a period of time, the data is retransmitted. However, in the case of a weak network, data transmission is slow, and a large amount of network occupation is caused by continuous retransmission of data by the acknowledgement retransmission mechanism, so that a large amount of data is accumulated in the operation space of the device, and normal operation of the device is affected.
Disclosure of Invention
In view of this, embodiments of the present application provide a data transmission method and a data transmission apparatus, a data transmission method and an apparatus for an aircraft, a computer-readable storage medium, and an electronic device, which solve the problem of low data transmission efficiency.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a data transmission device including a cache space, and the data transmission method includes: determining storage information corresponding to M data units generated based on data to be transmitted, wherein the storage information corresponding to the data units comprises position information of the data units in a cache space, and the M data units are data units stored in the cache space at one time; and transmitting N data units based on the storage information corresponding to the A data units in the cache space and the transmission states corresponding to the A data units, wherein A is more than or equal to N and is more than or equal to M, and the transmission states corresponding to the data units are used for representing whether the data units are successfully transmitted.
With reference to the first aspect of the present application, in some embodiments, the storage information corresponding to the data unit further includes transmission time information corresponding to the data unit, where the transmission time information is used to represent a time point when the data unit is stored in the buffer space or a time point when the data unit is last transmitted; based on the storage information corresponding to each of the a data units in the cache space and the transmission state corresponding to each of the a data units, transmitting the N data units, including: traversing A data units in the cache space; judging whether the transmission state corresponding to the data unit is successful or not aiming at each data unit; if yes, recording the traversal result corresponding to the data unit as follows: no transmission is performed at this time; if not, determining a traversal result corresponding to the data unit based on the current time information, the transmission time information corresponding to the data unit and a preset time threshold; and transmitting the N data units according to the respective traversal results corresponding to the A data units.
With reference to the first aspect of the present application, in some embodiments, traversing a data units in a cache space includes: determining the data volume of A data units in the cache space; determining a traversal time interval based on the data volume of the A data units stored in the cache space; traversing A data units in the cache space based on the traversal time interval.
With reference to the first aspect of the present application, in some embodiments, determining a traversal result corresponding to a data unit based on current time information, transmission time information corresponding to the data unit, and a preset time threshold includes: acquiring current time information; determining a transmission time interval corresponding to the data unit based on the transmission time information corresponding to the data unit and the current time information; judging whether the transmission time interval corresponding to the data unit meets a preset time threshold value or not; if yes, determining that the traversal result corresponding to the data unit is as follows: the current transmission is to be carried out; if not, determining that the traversal result corresponding to the data unit is as follows: this time no transmission.
With reference to the first aspect of the present application, in some embodiments, after transmitting N data units based on the storage information corresponding to each of the a data units in the cache space and the transmission state corresponding to each of the a data units, the method further includes: and for each data unit in the N data units, marking the data unit as deleted based on the confirmation receiving message corresponding to the data unit and the storage information corresponding to the data unit respectively so as to realize logic deletion.
With reference to the first aspect of the present application, in some embodiments, before determining storage information corresponding to each of M data units generated based on data to be transmitted, the method further includes: acquiring the capacity of a preset cache space; and setting the number of preset logic positions in the cache space based on the capacity of the cache space, wherein one preset logic position is used for caching one data unit.
With reference to the first aspect of the present application, in some embodiments, the cache space includes P preset logic locations, and one preset logic location is used for caching one data unit; determining respective corresponding storage information of M data units generated based on data to be transmitted, including: judging whether P preset logic positions cache data units or not aiming at each data unit in the M data units; if not, determining the preset logic position of one uncached data unit in the P preset logic positions; and caching the data unit in the preset logic position, and generating storage information corresponding to the data unit, wherein the storage information comprises position information which is the position information of the preset logic position.
With reference to the first aspect of the present application, in some embodiments, after determining whether the data units are all cached in the P preset logical locations, the method further includes: if the data units are cached in the P preset logic positions, caching the data units in one preset logic position of the P preset logic positions so as to cover the cached data units in the one preset logic position.
With reference to the first aspect of the present application, in some embodiments, determining storage information corresponding to each of M data units generated based on data to be transmitted includes: and storing the M data units generated based on the data to be transmitted in a cache space through a file pointer to generate respective corresponding storage information of the M data units, wherein the storage information comprises the frame number of the data units, and the frame number of the data units is used for representing the position information of the data units in the cache space.
With reference to the first aspect of the present application, in some embodiments, transmitting N data units based on storage information corresponding to each of a data units in a cache space and a transmission state corresponding to each of the a data units includes: determining N data units based on the storage information corresponding to the A data units in the cache space and the transmission states corresponding to the A data units; and transmitting the N data units based on the storage information corresponding to the N data units and the data unit size information of the N data units.
In combination with the first aspect of the present application, in some embodiments, the data to be transmitted includes: unmanned aerial vehicle workload report data and/or unmanned aerial vehicle exception report data.
In a second aspect, an embodiment of the present application provides a data transmission method for an aircraft, including: collecting data to be transmitted in the operation process of the aircraft; and uploading the data to be transmitted to the server based on the data transmission method mentioned in the first aspect.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, including: the determining module is configured to determine storage information corresponding to M data units generated based on data to be transmitted, wherein the storage information corresponding to the data units comprises position information of the data units in the cache space, and the M data units are data units stored in the cache space at one time; and the transmission module is configured to transmit N data units based on the storage information corresponding to the A data units in the cache space and the transmission states corresponding to the A data units, wherein A is more than or equal to N and is more than or equal to M, and the transmission states corresponding to the data units are used for representing whether the data units are successfully transmitted.
In a fourth aspect, an embodiment of the present application provides a data transmission device for an aircraft, including: the data acquisition module is configured to collect data to be transmitted in the operation process of the aircraft; a data transmission module configured to upload data to be transmitted to a server based on the data transmission method of the aircraft mentioned in the second aspect.
In a fifth aspect, an embodiment of the present application provides an aircraft, including: the data acquisition device is configured to acquire data to be transmitted and send the data to be transmitted to the data transmission device; and the data transmission device is configured to receive data to be transmitted and transmit the data by using the data transmission method mentioned in the first aspect.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions that, when executed by a processor of an electronic device, enable the electronic device to execute the data transmission method mentioned in the first aspect.
In a seventh aspect, an embodiment of the present application provides an electronic device, including: a processor; a memory for storing computer executable instructions; a processor for executing computer executable instructions to implement the data transmission method mentioned in the first aspect.
In the data transmission method provided in the embodiment of the present application, first, storage information corresponding to M data units generated based on data to be transmitted is determined, where the storage information includes location information of the data units in a cache space, then, based on the storage information corresponding to each of A data units in the buffer space and the transmission state corresponding to each of A data units, transmitting N data units, that is, the number of data units stored in the buffer space at a time is M, a number of data units may be data units stored in the buffer space a number of times, N number of data units may be data units transmitted at a time, the data units on the designated storage positions in the cache space can be directly transmitted according to the storage information, so that the data units needing to be transmitted are prevented from being determined by moving a large number of data units in the cache space, and the high-efficiency transmission of the data units is ensured.
Drawings
Fig. 1 is a schematic view of an application scenario of a data transmission method according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of a data transmission method according to another embodiment of the present application.
Fig. 4 is a schematic flow chart of a data transmission method according to another embodiment of the present application.
Fig. 5 is a schematic flow chart of a data transmission method according to another embodiment of the present application.
Fig. 6a is a schematic flow chart illustrating a data transmission method according to another embodiment of the present application.
Fig. 6b is a schematic flowchart illustrating a data transmission method according to another embodiment of the present application.
Fig. 7 is a schematic flowchart of a data transmission method according to another embodiment of the present application.
Fig. 8 is a schematic flow chart of a data transmission method according to another embodiment of the present application.
Fig. 9 is a schematic flowchart of a data transmission method according to another embodiment of the present application.
Fig. 10 is a schematic flow chart illustrating a data transmission method for an aircraft according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 13 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 14 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 15 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 16 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 17 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 18 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 19 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 20 is a schematic structural diagram of a data transmission device according to another embodiment of the present application.
Fig. 21 is a schematic structural diagram of a data transmission device of an aircraft according to an embodiment of the present application.
Fig. 22 is a schematic structural diagram of an aircraft according to an embodiment of the present application.
Fig. 23 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Exemplary scenarios
Fig. 1 is a schematic view of an application scenario of a data transmission method according to an embodiment of the present application. The scenario shown in fig. 1 includes a data uploading module 110 and a data obtaining module 120 communicatively connected to the data uploading module 110. Specifically, the data uploading module 110 is configured to determine storage information corresponding to M data units generated based on the data to be transmitted, where the storage information corresponding to the data units includes location information of the data units in the cache space, and the M data units are data units stored in the cache space at one time; and transmitting N data units based on the storage information corresponding to the A data units in the cache space and the transmission states corresponding to the A data units, wherein A is more than or equal to N and is more than or equal to M, and the transmission states corresponding to the data units are used for representing whether the data units are successfully transmitted. The data obtaining module 120 is configured to obtain data to be transmitted, generate M data units, and send the M data units to the data uploading module 110, so that the data uploading module 110 executes the above operations.
Exemplary method
Fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application. Specifically, the data transmission method provided by the embodiment of the present application is applied to a data transmission device including a buffer space. As shown in fig. 2, the data transmission method includes the following steps.
Step 210, determining respective corresponding storage information of the M data units generated based on the data to be transmitted.
Specifically, the storage information corresponding to the data unit includes location information of the data unit in the buffer space. The M data units are data units stored in the buffer space at one time. The data to be transmitted may be acquired by the data acquisition device. The data acquisition device can be a camera, a radar and other devices with data acquisition functions. The data to be transmitted that generates the M data units may be a set of data collected by the data acquisition device. For example, the data to be transmitted may be a set of images acquired by the data acquisition device in 2 seconds. The data to be transmitted is packed to generate M data units, and each data unit may be generated by packing a part of data in the data to be transmitted. That is, each data unit may be a data packet and corresponding packet information. The packet information may include size information of the data packet.
Specifically, the M data units are stored in the designated positions in the cache space, and the storage information corresponding to the M data units can be obtained. The storage information includes location information of a specified location of the data unit in the buffer space.
In an embodiment of the application, the data to be transmitted can be unmanned aerial vehicle workload report data and also can be unmanned aerial vehicle abnormal report data, and the content of the data to be transmitted is not specifically limited.
Step 220, transmitting N data units based on the storage information corresponding to each of the a data units in the buffer space and the transmission status corresponding to each of the a data units.
Specifically, A is larger than or equal to N and larger than or equal to M, and the transmission state corresponding to the data unit is used for representing whether the data unit is successfully transmitted or not. The a data units may be all data units in the buffer space. The N data units may be data units transmitted at one time. Because whether the data unit is transmitted or not needs to refer to the transmission state of the data unit, if the transmission state of the data unit is successful, the data unit does not need to be transmitted, and therefore, A is larger than or equal to N. The M data units are data units stored in the buffer space at one time. The initial transmission state of the M data units stored in the buffer space is not successful, so that all the M data units are transmitted, namely N is more than or equal to M.
According to the data transmission method provided by the embodiment of the application, the data units on the designated storage positions in the cache space can be directly transmitted according to the storage information, the data units needing to be transmitted are prevented from being determined by moving a large number of data units in the cache space, and efficient transmission of the data units is guaranteed.
In an embodiment of the present application, determining storage information corresponding to each of the M data units generated based on the data to be transmitted may be that the M data units generated based on the data to be transmitted are stored in a cache space through a file pointer, so as to generate the storage information corresponding to each of the M data units.
In an embodiment of the present application, the storage information may include a frame number of the data unit. The frame number of the data unit is used to represent the location information of the data unit in the buffer space. In an embodiment of the present application, the storage information may include a serial number of the data unit. The sequence number of the data unit is used for representing the position information of the data unit in the buffer space.
Specifically, a pointer variable is used in the programming language to point to a file, and this pointer is called a file pointer. The file pointer can be used for carrying out various operations on the file pointed by the file pointer. Therefore, the M data units generated based on the data to be transmitted can be stored in the cache space through the file pointer to generate respective corresponding storage information of the M data units, so that the data units in the cache space can be conveniently transmitted through the file pointer subsequently, and the efficient transmission of the data units is ensured.
Fig. 3 is a schematic flow chart of a data transmission method according to another embodiment of the present application. The embodiment shown in fig. 3 of the present application is extended based on the embodiment shown in fig. 2 of the present application, and the differences between the embodiment shown in fig. 3 and the embodiment shown in fig. 2 are emphasized below, and the descriptions of the same parts are omitted.
As shown in fig. 3, in the embodiment of the present application, the step of transmitting N data units based on the storage information corresponding to each of the a data units in the cache space and the transmission status corresponding to each of the a data units includes the following steps.
Step 310, traverse a data units in the buffer space.
In step 320, for each data unit, it is determined whether the transmission status corresponding to the data unit is successful.
Specifically, the storage information corresponding to the data unit further includes transmission time information corresponding to the data unit, where the transmission time information is used to represent a time point when the data unit is stored in the buffer space or a time point when the data unit is last transmitted. The transmission time information may be a point in time when the data unit is stored in the buffer space, if the data unit is not transmitted after being stored in the buffer space. If the data unit is transmitted after being stored in the buffer space, the transmission time information may be a time point when the data unit was last transmitted.
For each data unit, determining whether the transmission status corresponding to the data unit is successful, if so, performing step 330, and if not, performing step 340.
Step 330, recording the traversal result corresponding to the data unit as: this time no transmission.
Step 340, determining a traversal result corresponding to the data unit based on the current time information, the transmission time information corresponding to the data unit, and a preset time threshold.
By aiming at each data unit, whether the transmission state corresponding to the data unit is successful or not is judged, and if the transmission state corresponding to the data unit is successful, the data unit does not need to be transmitted again, so that the traversal result can be that the data unit is not transmitted at this time. If the transmission state corresponding to the data unit is not successful, it indicates that the data unit needs to be transmitted again, but whether the data unit is transmitted this time or transmitted again next time, and the determination needs to be performed based on the current time information, the transmission time information corresponding to the data unit, and the preset time threshold.
And 350, transmitting the N data units according to the respective traversal results corresponding to the A data units.
By traversing the a data units in the cache space, the transmission state corresponding to the data unit is judged for each data unit, so that the traversal result of each data unit can be obtained, and the traversal result can be the transmission or not, so that the traversal result can be determined to be the N data units of the transmission.
And the N data units are determined in a traversal mode, so that the method is simple and high in efficiency.
Fig. 4 is a schematic flow chart of a data transmission method according to another embodiment of the present application. The embodiment shown in fig. 4 of the present application is extended based on the embodiment shown in fig. 3 of the present application, and the differences between the embodiment shown in fig. 4 and the embodiment shown in fig. 3 are emphasized below, and the descriptions of the same parts are omitted.
As shown in fig. 4, in the embodiment of the present application, the step of traversing a data units in the cache space includes the following steps.
In step 410, the data size of a data units in the buffer space is determined.
Specifically, the data amount of the a data units may be the size of the storage space occupied by the a data units in the buffer space. Since the sizes of the storage space occupied by each data unit in the buffer space are not different, the data amount of a data units in the buffer space can also be represented by the number of the data units.
Step 420, determining a traversal time interval based on the data amount of the a data units stored in the cache space.
Specifically, under the weak network condition, if the data unit which is not successfully transmitted last time is continuously retransmitted, a large amount of networks are occupied, so that a large amount of data is accumulated in the operation space of the device, and the normal operation of the device is affected. Therefore, under the condition of a weak network, the traversal time interval can be reduced, so that the transmission frequency of the data unit is reduced, a sufficient operation space is reserved for the equipment, and the normal operation of the equipment is ensured. If the data volume of the a data units in the cache space is large, it indicates that a large number of data units are accumulated in the cache space, and indicates that the transmission speed is slow, that is, if the data volume in the cache space is large, it indicates that the network condition is not good, and the network condition belongs to a weak network condition. Therefore, the traversal time interval can be determined according to the data amount of a data units stored in the buffer space.
Specifically, the traversal time interval and the data amount of a data units stored in the buffer space may be in a forward variation relationship. The positive variation relationship may be a linear positive correlation relationship. Specifically, the traversal time interval can be calculated by the following formula (1).
T=T0+K*A (1)
Specifically, T in equation (1) represents the traversal time interval, T0Representing the initial traversal time interval, K representing the dynamic coefficient, and a being the number of data elements of the buffer space. Initial traversal time interval T0The setting may be based on the speed at which the data units are stored in the buffer space. For example, the speed of storing the data unit in the buffer space is 0.5 second/one on average, and the initial traversal time interval T can be set0And the time is less than 0.5 second, so that the data unit newly stored in the buffer space and the data unit which is not successfully transmitted in the buffer space can be transmitted in time. The dynamic coefficient K may be selected according to the maximum number of data units that can be accommodated in the cache space or the traffic volume of the device, which is not specifically limited in this application.
Step 430, traversing a data units in the buffer space based on the traversal time interval.
The traversal time interval is determined according to the data quantity of the A data units stored in the cache space, and then the A data units in the cache space are traversed based on the traversal time interval, so that the equipment can still normally operate under the weak network condition.
Fig. 5 is a schematic flow chart of a data transmission method according to another embodiment of the present application. The embodiment shown in fig. 5 of the present application is extended on the basis of the embodiment shown in fig. 3 of the present application, and the differences between the embodiment shown in fig. 5 and the embodiment shown in fig. 3 are emphasized below, and the descriptions of the same parts are omitted.
As shown in fig. 5, in the embodiment of the present application, the step of determining the traversal result corresponding to the data unit based on the current time information, the transmission time information corresponding to the data unit, and the preset time threshold includes the following steps.
Step 510, obtaining current time information.
In particular, the current time information may be a point in time to traverse to the data unit.
Step 520, determining a transmission time interval corresponding to the data unit based on the transmission time information corresponding to the data unit and the current time information.
Specifically, the transmission time interval corresponding to the data unit may be a difference value between the current time information and the transmission time information. For example, if the current time information is 20 minutes 12 seconds at 1 st/h 3/h 2021, and the transmission time information is 20 minutes 10 seconds at 1 st/h 3/h 12/h 2021, the transmission time interval is 2 seconds.
In step 530, it is determined whether the transmission time interval corresponding to the data unit meets a predetermined time threshold.
Specifically, the preset time threshold may be selected according to actual conditions. And judging whether the transmission time interval corresponding to the data unit meets a preset time threshold, if so, executing step 540, and if not, executing step 550.
Step 540, determining that the traversal result corresponding to the data unit is: this time waiting for transmission.
Step 550, determining the traversal result corresponding to the data unit as: this time no transmission.
Specifically, the transmission time interval corresponding to the data unit meets the preset time threshold, which may indicate that the transmission time interval corresponding to the data unit is longer, and the data unit may be retransmitted this time. The transmission time interval corresponding to the data unit does not meet the preset time threshold, which may indicate that the transmission time interval corresponding to the data unit is shorter, and the data unit is not transmitted at this time in order to avoid too frequent repeated transmission.
Whether the transmission is carried out or not is judged according to the transmission time interval and the preset time threshold, so that too frequent repeated transmission is avoided, occupation of a network is reduced, and normal operation of equipment under the condition of a weak network is ensured.
Fig. 6a is a schematic flow chart illustrating a data transmission method according to another embodiment of the present application. The embodiment shown in fig. 6a of the present application is extended based on the embodiment shown in fig. 2 of the present application, and the differences between the embodiment shown in fig. 6a and the embodiment shown in fig. 2 are emphasized below, and the descriptions of the same parts are omitted.
As shown in fig. 6a, in the embodiment of the present application, after the step of transmitting N data units based on the storage information corresponding to each of the a data units in the buffer space and the transmission status corresponding to each of the a data units, the following steps are further included.
Step 610, for each data unit of the N data units, marking the data unit as deleted based on the acknowledgement receipt message corresponding to the data unit and the respective corresponding storage information of the data unit, so as to implement logical deletion.
Specifically, after the N data units are transmitted, a receiver receiving the N data units may feed back information according to the receiving condition. If the data unit is successfully received by the receiver, the receiver returns a receiving confirmation message corresponding to the data unit, and after the data transmission device receives the receiving confirmation message corresponding to the data unit, the data unit can be directly found according to the storage information corresponding to the data unit, and then the data unit is marked to be deleted, so that the logical deletion is realized.
Specifically, the storage structure of the cache space may be a linked list storage structure or a sequential storage structure. For example, the storage structure of the buffer space is a linked list storage structure, and after receiving the acknowledgment receipt message corresponding to the data unit, the data transmission apparatus may mark the location information of the data unit as deleted, thereby changing the link index. For example, the storage structure of the cache space is a sequential storage structure, and the location information of the data unit may be marked as deleted. For example, if the header flag is 0 and the tail flag is 10, and if the storage location of the data unit in the buffer space is the location of the header flag, the data transmission apparatus can add 1 to the header flag after receiving the acknowledgment receipt message corresponding to the data unit, so as to implement logical deletion of the data unit. If the storage location of the data unit in the buffer space is at the location of the tail flag, the data transmission apparatus may reduce the tail flag by 1 after receiving the acknowledgment receipt message corresponding to the data unit, so as to implement logical deletion of the data unit. For sequential storage structures, a circular queue format may be used, with head and tail pointers cycling through the range of data stored.
Through the logic deletion, the persistent storage of the data unit is realized, the data unit which is failed in transmission can still be accurately confirmed after the equipment is started and restarted, and the complete uploading of the data is ensured.
Fig. 6b is a schematic flowchart illustrating a data transmission method according to another embodiment of the present application. As shown in fig. 6b, in practical applications, the data obtaining apparatus 1200 obtains data to be transmitted, generates M data units, and then sends the M data units to the data transmission apparatus 1100. The data transmission device 1100 receives the M data units, stores the M data units in the buffer space, and generates storage information. The data transmission apparatus 1100 transmits N data units to the receiving side 1300 based on the storage information corresponding to each of the a data units in the buffer space and the transmission status corresponding to each of the a data units. After receiving the acknowledgment message corresponding to the data unit sent by the receiver 1300, the data transmission apparatus 1100 may directly find the data unit according to the storage information corresponding to the data unit, and then mark the data unit as deleted, so as to implement logical deletion.
Fig. 7 is a schematic flowchart of a data transmission method according to another embodiment of the present application. The embodiment shown in fig. 7 of the present application is extended based on the embodiment shown in fig. 2 of the present application, and the differences between the embodiment shown in fig. 7 and the embodiment shown in fig. 2 are emphasized below, and the descriptions of the same parts are omitted.
As shown in fig. 7, in the embodiment of the present application, before the step of determining the storage information corresponding to each of the M data units generated based on the data to be transmitted, the following steps are further included.
Step 710, obtaining the preset capacity of the buffer space.
Specifically, the capacity of the cache space may be set according to the size of the device storage space, and the present application is not limited specifically.
And 720, setting the number of preset logic positions in the buffer space based on the capacity of the buffer space.
Specifically, one predetermined logical location is used to cache one data unit. The size of each data unit is not different much, so the capacity of the preset logic position can be set according to the size information of the data unit, and then the number of the preset logic positions in the cache space is determined according to the capacity of the cache space. For example, the size of one data unit is generally 3K, and in order to ensure that the preset logical position can accommodate each data unit, the size of the capacity of the preset logical position may be set to be 5K. For example, if the capacity of the buffer space is 500K, the number of the preset logical positions in the buffer space is (500K/5K), that is, 100.
By acquiring the preset capacity of the cache space and setting the number of preset logic positions in the cache space based on the capacity of the cache space, the phenomenon that the cache space occupies a large amount of storage space of the equipment and even occupies the whole storage space of the equipment due to the fact that too many data units are stored in the cache space is prevented, and the influence on the operation of the equipment is avoided.
Fig. 8 is a schematic flow chart of a data transmission method according to another embodiment of the present application. The embodiment shown in fig. 8 of the present application is extended based on the embodiment shown in fig. 2 of the present application, and the differences between the embodiment shown in fig. 8 and the embodiment shown in fig. 2 are emphasized below, and the descriptions of the same parts are omitted.
As shown in fig. 8, in the embodiment of the present application, the step of determining the storage information corresponding to each of the M data units generated based on the data to be transmitted includes the following steps.
Step 810, for each data unit of the M data units, determining whether the P preset logic positions have all cached data units.
Specifically, the buffer space includes P preset logic locations, and one preset logic location is used for buffering one data unit. And for each data unit in the M data units, determining whether the P preset logic positions all buffer the data unit, and if the P preset logic positions do not all buffer the data unit, executing step 820 and step 830. If there are data units buffered in all of the P predetermined logical locations, go to step 840.
In step 820, a predetermined logical position of an uncached data unit in the P predetermined logical positions is determined.
Step 830, caching the data unit in the preset logic location, and generating storage information corresponding to the data unit.
Specifically, the location information included in the storage information may be location information of a preset logical location.
Step 840, caching the data unit in one of the P preset logic locations to cover the cached data unit in the one preset logic location.
Specifically, if the P preset logic positions are not all cached with the data unit, it is indicated that there is an empty preset logic position in the P preset logic positions in the cache space, and the empty preset logic position can be used for storing the data unit.
Specifically, if the data units are cached in the P preset logic positions, it is indicated that all the P preset logic positions in the cache space store the data units, that is, the cache space is full of storage, and therefore, the data units can be cached in one preset logic position of the P preset logic positions to cover the data units cached in the one preset logic position. In an embodiment, a preset logical position corresponding to a data unit with the earliest storage time may be selected in the buffer space, and then the data unit to be currently stored is overwritten on the data unit with the earliest storage time.
The data unit is stored in a covering mode, so that the problem of caching of the data unit under the condition that the cache space is full is solved.
Fig. 9 is a schematic flowchart of a data transmission method according to another embodiment of the present application. The embodiment shown in fig. 9 of the present application is extended based on the embodiment shown in fig. 2 of the present application, and the differences between the embodiment shown in fig. 9 and the embodiment shown in fig. 2 are emphasized below, and the descriptions of the same parts are omitted.
As shown in fig. 9, in the embodiment of the present application, the step of transmitting N data units based on the storage information corresponding to each of the a data units in the buffer space and the transmission status corresponding to each of the a data units includes the following steps.
Step 910, determining N data units based on the storage information corresponding to each of the a data units in the buffer space and the transmission status corresponding to each of the a data units.
Step 920, transmitting the N data units based on the storage information corresponding to the N data units and the data unit size information of the N data units.
Specifically, each data unit is stored in a preset logic position of the buffer space. The capacity of each preset logical location is fixed, and the size of each data unit is not exactly the same. For example, the size capacity of each preset logical position is 5K. The size of the data unit may be 3K or 4K. When the data unit is transmitted, the data unit can be taken out from the preset logic position according to the size of the data unit, so that the data unit can be transmitted accurately and quickly.
Fig. 10 is a schematic flow chart illustrating a data transmission method for an aircraft according to an embodiment of the present application. Specifically, the data transmission method of the aircraft provided by the embodiment of the application is applied to the aircraft. As shown in fig. 10, the data transmission method of the aircraft includes the following steps.
Step 1010, collecting data to be transmitted during the operation of the aircraft.
Specifically, the data to be transmitted may be workload report data, generation report, production record, abnormal report data, flight speed, flight altitude, and the like of the aircraft.
Step 1020, the data to be transmitted is uploaded to the server based on the data transmission method.
For example, the data of the workload report data, the generation report, the production record, the abnormal report data and the like of the aircraft are important data about production and the aircraft, the production record is hooked with the production statistics, the statistics are not accurate, and economic loss can be caused. For example, inaccurate or no data calculation of the aircraft workload may not be able to estimate the work result, and may not allow some people who pay for other people to receive a corresponding economic return. The abnormal report is hooked with the state of the equipment, and if data is lost, the current problems of the equipment cannot be judged, so that accidents are easy to occur. Such as runaway fryers during aircraft operations. Therefore, it is important to completely upload the data to be transmitted to the server.
For example, the real-time performance of the aircraft for data transmission is highly demanding and the operating environment is complex, resulting in a weak grid situation. In the case of a weak network, to ensure the communication of the key functions, for log data with a lower priority relative to production service communication, maintaining fixed frequency to send data always occupies network resources, resulting in abnormal operation of equipment. Such as aircraft shut down, runaway bombs, etc. If the frequency is simply set to be low, data can not be sent as soon as possible, because a large amount of data can be accumulated in the weak network and the equipment always generates new data to be transmitted, the data can never be completely uploaded, and a large amount of equipment capacity space can be occupied due to the accumulation of the data. The data to be transmitted is transmitted based on the data transmission method, whether the data is transmitted or not can be judged according to the transmission time interval and the preset time threshold, so that too frequent repeated transmission is avoided, occupation of a network is reduced, and normal operation of equipment under the condition of a weak network is guaranteed.
Method embodiments of the present application are described in detail above with reference to fig. 1 to 10, and apparatus embodiments of the present application are described in detail below with reference to fig. 11 to 18. It is to be understood that the description of the method embodiments corresponds to the description of the apparatus embodiments, and therefore reference may be made to the preceding method embodiments for parts not described in detail.
Exemplary devices
Fig. 11 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 11, the data transmission apparatus 1100 according to the embodiment of the present application includes: an acknowledgement module 1110 and a transmission module 1120.
Specifically, the determining module 1110 is configured to determine storage information corresponding to M data units generated based on the data to be transmitted, where the storage information corresponding to the data units includes location information of the data units in the cache space, and the M data units are data units stored in the cache space at a time. The transmission module 1120 is configured to transmit N data units based on the storage information corresponding to each of the a data units and the transmission status corresponding to each of the a data units in the buffer space, where a is greater than or equal to N and greater than or equal to M, and the transmission status corresponding to the data unit is used to represent whether the data unit is successfully transmitted.
Fig. 12 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 12 is extended based on the embodiment shown in fig. 11, and the differences between the embodiment shown in fig. 12 and the embodiment shown in fig. 11 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 12, in the embodiment of the present application, the transmission module 1120 includes: a traversal unit 1121, a transmission state judgment unit 1122, a first traversal result determination unit 1123, a second traversal result determination unit 1124, and a transmission unit 1125.
Specifically, the storage information corresponding to the data unit further includes transmission time information corresponding to the data unit, where the transmission time information is used to represent a time point when the data unit is stored in the buffer space or a time point when the data unit is last transmitted. The traversal unit 1121 is configured to traverse a data units in the buffer space. The transmission status determining unit 1122 is configured to determine, for each data unit, whether the transmission status corresponding to the data unit is a transmission success. The first traversal result determining unit 1123 is configured to, if yes, record the traversal result corresponding to the data unit as: this time no transmission. The second traversal result determining unit 1124 is configured to, if not, determine a traversal result corresponding to the data unit based on the current time information, the transmission time information corresponding to the data unit, and a preset time threshold. The transmission unit 1125 is configured to transmit N data units according to the traversal result corresponding to each of the a data units.
Fig. 13 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 13 is extended based on the embodiment shown in fig. 12, and the differences between the embodiment shown in fig. 13 and the embodiment shown in fig. 12 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 13, in the embodiment of the present application, the traversal unit 1121 includes: a data amount determination subunit 1310, a traversal time interval determination subunit 1320, and a traversal subunit 1330.
Specifically, the data amount determining subunit 1310 is configured to determine the data amount of a data units in the buffer space. The traversal time interval determination subunit 1320 is configured to determine a traversal time interval based on the amount of data of the a data units stored in the buffer space. The traversal sub-unit 1330 is configured to traverse a data units in the cache space based on the traversal time interval.
Fig. 14 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 14 is extended based on the embodiment shown in fig. 12, and the differences between the embodiment shown in fig. 14 and the embodiment shown in fig. 12 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 14, in the embodiment of the present application, the second traversal result determining unit 1124 includes: a current time determination sub-unit 1410, a transmission time interval determination sub-unit 1420, a threshold judgment sub-unit 1430, a data to be transmitted determination sub-unit 1440, and a data not to be transmitted determination sub-unit 1450.
Specifically, the current time determination subunit 1410 is configured to acquire current time information. The transmission time interval determination subunit 1420 is configured to determine a transmission time interval corresponding to the data unit based on the transmission time information corresponding to the data unit and the current time information. The threshold determining subunit 1430 is configured to determine whether the transmission time interval corresponding to the data unit meets a preset time threshold. The data to be transmitted determines that the sub-unit 1440 is configured, and if yes, it is determined that the traversal result corresponding to the data unit is: this time waiting for transmission. The non-transmission data determination subunit 1450 is configured to, if not, determine that the traversal result corresponding to the data unit is: this time no transmission.
Fig. 15 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 15 is extended based on the embodiment shown in fig. 11, and the differences between the embodiment shown in fig. 15 and the embodiment shown in fig. 11 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 15, in the embodiment of the present application, the data transmission apparatus 1100 further includes: a logical delete module 1130.
Specifically, the logical deletion module 1130 is configured to, for each data unit of the N data units, mark the data unit as deleted based on the acknowledgment receipt message corresponding to the data unit and the storage information corresponding to each data unit, so as to implement logical deletion.
Fig. 16 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 16 is extended based on the embodiment shown in fig. 11, and the differences between the embodiment shown in fig. 16 and the embodiment shown in fig. 11 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 16, in the embodiment of the present application, the data transmission apparatus 1100 further includes: a buffer space capacity determination module 1140 and a preset logical position number determination module 1150.
Specifically, the buffer space capacity determination module 1140 is configured to obtain a preset capacity of the buffer space. The number of preset logical positions determining module 1150 is configured to set the number of preset logical positions in the buffer space based on the capacity of the buffer space, wherein one preset logical position is used for buffering one data unit.
Fig. 17 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 17 is extended based on the embodiment shown in fig. 11, and the differences between the embodiment shown in fig. 17 and the embodiment shown in fig. 11 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 17, in the embodiment of the present application, the confirmation module 1110 includes: logical position determination unit 1111, uncached logical position determination unit 1112, and storage unit 1113.
Specifically, the buffer space includes P preset logic locations, and one preset logic location is used for buffering one data unit. The logical position determining unit 1111 is configured to determine whether P preset logical positions all buffer data units for each data unit of the M data units. The uncached logical location determining unit 1112 is configured to, if not, determine a preset logical location of one uncached data unit of the P preset logical locations. The storage unit 1113 is configured to cache the data unit in the preset logical position, and generate storage information corresponding to the data unit, where the storage information includes position information of the preset logical position.
Fig. 18 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 18 is extended based on the embodiment shown in fig. 17, and the differences between the embodiment shown in fig. 18 and the embodiment shown in fig. 17 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 18, in the embodiment of the present application, the confirmation module 1110 further includes: the memory cells 1114 are overwritten.
Specifically, the overlay storage unit 1114 is configured to, if the data unit is cached in all of the P preset logic locations, cache the data unit in one of the P preset logic locations, so as to overlay the cached data unit in the one preset logic location.
Fig. 19 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 19 is extended based on the embodiment shown in fig. 11, and the differences between the embodiment shown in fig. 19 and the embodiment shown in fig. 11 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 19, in the embodiment of the present application, the confirmation module 1110 includes: a pointer storage unit 1115.
Specifically, the pointer storage unit 1115 is configured to store, by using a file pointer, M data units generated based on data to be transmitted in a buffer space, so as to generate storage information corresponding to each of the M data units, where the storage information includes a frame number of the data unit, and the frame number of the data unit is used to represent location information of the data unit in the buffer space.
Fig. 20 is a schematic structural diagram of a data transmission device according to another embodiment of the present application. The embodiment shown in fig. 20 is extended based on the embodiment shown in fig. 11, and the differences between the embodiment shown in fig. 20 and the embodiment shown in fig. 11 will be emphasized below, and the descriptions of the same parts will not be repeated.
As shown in fig. 20, in the embodiment of the present application, the transmission module 1120 includes: a data unit determination unit 1126 and a data unit transmission unit 1127.
Specifically, the data unit determining unit 1126 is configured to determine N data units based on the storage information corresponding to each of the a data units in the buffer space and the transmission status corresponding to each of the a data units. The data unit transmission unit 1127 is configured to transmit the N data units based on the storage information corresponding to each of the N data units and the data unit size information of each of the N data units.
Fig. 21 is a schematic structural diagram of a data transmission device of an aircraft according to an embodiment of the present application. As shown in fig. 21, in the embodiment of the present application, the data transmission device 2100 of the aircraft includes: a data acquisition module 2110 and a data transmission module 2120.
In particular, the data acquisition module 2110 is configured to collect data to be transmitted during operation of the aircraft. The data transmission module 2120 is configured to upload data to be transmitted to a server based on the data transmission method of the aircraft.
Fig. 22 is a schematic structural diagram of an aircraft according to an embodiment of the present application. As shown in fig. 22, in the present embodiment, aircraft 2200 includes: data acquisition device 2210 and data transmission device 2220.
Specifically, the data collection device 2210 is configured to collect data to be transmitted and send the data to be transmitted to the data transmission device. The data transmission device 2220 is configured to receive data to be transmitted, and perform data transmission by using the data transmission method described above.
Exemplary electronic device
Fig. 23 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 23, the electronic device 2300 includes: one or more processors 2301 and memory 2302; and computer program instructions stored in the memory 2302, which, when executed by the processor 2301, cause the processor 2301 to perform the data transmission method of any one of the embodiments as described above.
The processor 2301 may be a Central Processing Unit (CPU) or other form of processing unit having data transmission capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 2302 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 2301 to implement the steps in the data transmission methods of the various embodiments of the present application above and/or other desired functions.
In one example, electronic device 2300 can further include: an input device 2303 and an output device 2304, which are interconnected by a bus system and/or other form of connection mechanism (not shown in fig. 23).
The input device 2303 may also include, for example, a keyboard, a mouse, a microphone, and the like.
The output device 2304 can output various kinds of information to the outside. The output devices 2304 can include, for example, a display, speakers, a printer, and a communication network and its connected remote output devices, among others.
Of course, for simplicity, only some of the components of the electronic device 2300 relevant to the present application are shown in fig. 23, omitting components such as a bus, input devices/output interfaces, and the like. In addition, electronic device 2300 can include any other suitable components depending on the particular application.
Exemplary computer readable storage Medium
In addition to the above-described methods and apparatuses, embodiments of the present application may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps of the data transmission method of any of the above-described embodiments.
The computer program product may include program code for carrying out operations for embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the data transmission method according to various embodiments of the present application described in the "exemplary methods" section above in this specification.
A computer-readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory ((RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (17)

1. A data transmission method is applied to a data transmission device comprising a buffer space, and the method comprises the following steps:
determining storage information corresponding to M data units generated based on data to be transmitted, wherein the storage information corresponding to the data units comprises position information of the data units in a cache space, and the M data units are data units stored in the cache space at one time;
and transmitting N data units based on the storage information corresponding to the A data units in the cache space and the transmission states corresponding to the A data units, wherein A is more than or equal to N and is more than or equal to M, and the transmission states corresponding to the data units are used for representing whether the data units are successfully transmitted.
2. The data transmission method according to claim 1, wherein the storage information corresponding to the data unit further includes transmission time information corresponding to the data unit, and the transmission time information is used to represent a time point when the data unit is stored in the buffer space or a time point when the data unit is last transmitted;
the transmitting N data units based on the storage information corresponding to each of the a data units in the cache space and the transmission status corresponding to each of the a data units includes:
traversing the A data units in the cache space;
for each data unit, judging whether the transmission state corresponding to the data unit is successful;
if yes, recording the traversal result corresponding to the data unit as follows: the transmission is not carried out at this time;
if not, determining a traversal result corresponding to the data unit based on the current time information, the transmission time information corresponding to the data unit and a preset time threshold;
and transmitting the N data units according to the respective traversal results corresponding to the A data units.
3. The data transmission method of claim 2, wherein said traversing said a data elements in said buffer space comprises:
determining the data quantity of the A data units in the cache space;
determining a traversal time interval based on the data amount of the A data units stored in the cache space;
traversing the A data units in the cache space based on the traversal time interval.
4. The data transmission method according to claim 2, wherein the determining the traversal result corresponding to the data unit based on the current time information, the transmission time information corresponding to the data unit, and a preset time threshold comprises:
acquiring the current time information;
determining a transmission time interval corresponding to the data unit based on the transmission time information corresponding to the data unit and the current time information;
judging whether the transmission time interval corresponding to the data unit meets the preset time threshold value or not;
if yes, determining that the traversal result corresponding to the data unit is as follows: the current transmission is to be carried out;
if not, determining that the traversal result corresponding to the data unit is as follows: this time no transmission.
5. The data transmission method according to any one of claims 1 to 4, wherein after transmitting N data units based on the storage information corresponding to each of the A data units in the buffer space and the transmission status corresponding to each of the A data units, the method further includes:
for each of the data units in the N data units,
and marking the data unit as deleted based on the confirmation receiving message corresponding to the data unit and the storage information corresponding to the data unit respectively so as to realize logic deletion.
6. The data transmission method according to any one of claims 1 to 4, wherein before determining the storage information corresponding to each of the M data units generated based on the data to be transmitted, the method further comprises:
acquiring the preset capacity of the cache space;
and setting the number of preset logic positions in the cache space based on the capacity of the cache space, wherein one preset logic position is used for caching one data unit.
7. The data transmission method according to any one of claims 1 to 4, wherein the buffer space includes P preset logical positions, and one preset logical position is used for buffering one data unit; the determining of the respective corresponding storage information of the M data units generated based on the data to be transmitted includes:
for each of the M data units,
judging whether the data units are cached in the P preset logic positions or not;
if not, determining that one of the P preset logic positions does not cache the preset logic position of the data unit;
caching the data unit in the preset logic position, and generating storage information corresponding to the data unit, wherein the storage information comprises the position information of the preset logic position.
8. The data transmission method according to claim 7, wherein after determining whether the data units are buffered in the P preset logical positions, the method further comprises:
if the data unit is cached in all the P preset logic positions, caching the data unit in one preset logic position in the P preset logic positions so as to cover the cached data unit in the preset logic position.
9. The data transmission method according to any one of claims 1 to 4, wherein the determining the storage information corresponding to each of the M data units generated based on the data to be transmitted includes:
and storing the M data units generated based on the data to be transmitted in the cache space through a file pointer so as to generate storage information corresponding to the M data units respectively, wherein the storage information comprises the frame number of the data unit, and the frame number of the data unit is used for representing the position information of the data unit in the cache space.
10. The data transmission method according to any one of claims 1 to 4, wherein the transmitting N data units based on the storage information corresponding to each of the A data units in the buffer space and the transmission status corresponding to each of the A data units comprises:
determining the N data units based on the storage information corresponding to the A data units in the cache space and the transmission states corresponding to the A data units;
and transmitting the N data units based on the storage information corresponding to the N data units and the data unit size information of the N data units.
11. The data transmission method according to any one of claims 1 to 4, wherein the data to be transmitted includes: unmanned aerial vehicle workload report data and/or unmanned aerial vehicle exception report data.
12. A method of data transmission for an aircraft, comprising:
collecting data to be transmitted in the operation process of the aircraft;
uploading the data to be transmitted to a server based on the data transmission method of any one of claims 1 to 11.
13. A data transmission apparatus, comprising:
the device comprises a determining module, a storage module and a processing module, wherein the determining module is configured to determine storage information corresponding to M data units generated based on data to be transmitted, the storage information corresponding to the data units comprises position information of the data units in a cache space, and the M data units are data units stored in the cache space at one time;
and the transmission module is configured to transmit N data units based on the storage information corresponding to the A data units in the cache space and the transmission states corresponding to the A data units, wherein A is more than or equal to N and is more than or equal to M, and the transmission states corresponding to the data units are used for representing whether the data units are successfully transmitted or not.
14. A data transmission device for an aircraft, comprising:
the data acquisition module is configured to collect data to be transmitted in the operation process of the aircraft;
a data transmission module configured to upload the data to be transmitted to a server based on the data transmission method for an aircraft according to claim 12.
15. An aircraft, characterized in that it comprises:
the data acquisition device is configured to acquire data to be transmitted and send the data to be transmitted to the data transmission device;
the data transmission device is configured to receive the data to be transmitted and transmit the data by using the data transmission method according to any one of claims 1 to 11.
16. A computer-readable storage medium, characterized in that the storage medium stores instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the data transmission method of any of the preceding claims 1 to 11.
17. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing computer executable instructions;
the processor, configured to execute the computer-executable instructions to implement the data transmission method of any one of claims 1 to 11.
CN202111619971.0A 2021-12-27 2021-12-27 Data transmission method and device and data transmission method and device of aircraft Pending CN114500658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111619971.0A CN114500658A (en) 2021-12-27 2021-12-27 Data transmission method and device and data transmission method and device of aircraft

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111619971.0A CN114500658A (en) 2021-12-27 2021-12-27 Data transmission method and device and data transmission method and device of aircraft

Publications (1)

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

Family

ID=81497068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111619971.0A Pending CN114500658A (en) 2021-12-27 2021-12-27 Data transmission method and device and data transmission method and device of aircraft

Country Status (1)

Country Link
CN (1) CN114500658A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530067A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Data operation method and device
CN110649994A (en) * 2019-09-27 2020-01-03 北京奇艺世纪科技有限公司 Data transmission control method, related device and storage medium
CN111818582A (en) * 2020-06-28 2020-10-23 南京智鹤电子科技有限公司 Data transmission method and device and electronic equipment
CN112532752A (en) * 2021-02-09 2021-03-19 北京声智科技有限公司 Data uploading method and device, electronic equipment and computer readable storage medium
CN113556485A (en) * 2021-07-23 2021-10-26 上海商汤智能科技有限公司 Video generation method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530067A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Data operation method and device
CN110649994A (en) * 2019-09-27 2020-01-03 北京奇艺世纪科技有限公司 Data transmission control method, related device and storage medium
CN111818582A (en) * 2020-06-28 2020-10-23 南京智鹤电子科技有限公司 Data transmission method and device and electronic equipment
CN112532752A (en) * 2021-02-09 2021-03-19 北京声智科技有限公司 Data uploading method and device, electronic equipment and computer readable storage medium
CN113556485A (en) * 2021-07-23 2021-10-26 上海商汤智能科技有限公司 Video generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20230011387A1 (en) Data processing method and nvme storage device
CN108599904B (en) Data transmission method and device
US10291482B2 (en) ECU for transmitting large data in HiL test environment, system including the same and method thereof
CN111683252B (en) Server and output system and method of video compression image
CN111510395A (en) Service message reporting method, device, equipment and medium
CN106921665B (en) Message processing method and network equipment
CN115174490B (en) Data transmission method and network application terminal
CN112433920A (en) Buried point data reporting method, device, equipment and medium
CN112261142B (en) RDMA network data retransmission method, device and FPGA
CN114567674B (en) Data processing method, device, computer equipment and readable storage medium
CN111726379B (en) Communication method and device
CN104052676A (en) Transmitting channel and data processing method thereof
CN115102807A (en) Method, device, server, client and storage medium for data transmission of internet of things gateway
CN106709053A (en) Data slice management method and system
CN114500658A (en) Data transmission method and device and data transmission method and device of aircraft
US11194504B2 (en) Information processing device and data management method of information processing device
US20160085683A1 (en) Data receiving device and data receiving method
CN115442317B (en) Message processing method, device, system, equipment and medium
CN114302140B (en) Pre-frame-loss method, system, equipment and computer readable storage medium
CN109284257B (en) Log writing method and device, electronic equipment and storage medium
CN113485176B (en) Vehicle data acquisition, caching and retransmission method and remote monitoring terminal
CN104378442B (en) A kind of Trace file dumping methods for reducing resource contention
CN115333917A (en) CDN anomaly detection method and device
US9882751B2 (en) Communication system, communication controller, communication control method, and medium
CN112533004B (en) Program information publishing method, system, computer equipment and 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