Encoding method, device, storage medium and electronic equipment for unmanned aerial vehicle position information
By encoding the UAV's location information, the problem of high-precision UAV location information failing to be transmitted via BeiDou short message in areas without mobile network coverage was solved, achieving effective information transmission and improving system reliability.
Patent Information
- Application Number
- CN202610384924.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-26
- Publication Date
- 2026-07-14
Smart Images

Figure CN122395540A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of unmanned aerial vehicle (UAV) communication, and more specifically, to a method, apparatus, storage medium, and electronic device for encoding UAV location information. Background Technology
[0002] Remote Identification (RemoteID) systems represent a significant technological advancement in drone regulation in recent years. They aim to enable real-time tracking and identification of drones operating in airspace, thereby enhancing air traffic safety and order. This system relies on a communication link between the drone and a ground-based receiving base station. By periodically broadcasting the drone's identity and location information, regulatory agencies can monitor drone activity.
[0003] Most existing technologies rely on 4G / 5G mobile networks or BeiDou-3 short message satellite communication to transmit remote identification information for drones. While directly transmitting the absolute latitude and longitude coordinates of drones is feasible when mobile network coverage is good, the sheer volume of this data means that each communication consumes a significant amount of data bandwidth, thus increasing operator charges. This additional cost becomes unbearable, especially for large-scale, long-term, and high-frequency drone monitoring missions.
[0004] More challenging is the fact that in areas lacking mobile network support, such as offshore areas, mountainous regions, and deserts, BeiDou short message satellite communication has become the primary means of communication between drones and ground stations. While the BeiDou system provides crucial support for remote drone identification, it imposes strict limitations on the length and frequency of individual messages. Specifically, the length of a single BeiDou short message is limited, while the high-precision location information of drones, such as latitude and longitude coordinates, occupies a significant amount of data. When drones frequently update their location information and attempt to send it via BeiDou short messages, the raw, uncompressed coordinate data can easily exceed the maximum length of a single message, leading to transmission failure. This prevents information from reaching the receiving base station and monitoring center in a timely manner, severely impacting the functionality and reliability of the drone remote identification system.
[0005] There is currently no effective solution to the problem that when transmitting high-precision location information of UAVs via BeiDou short messages in areas without mobile network coverage, the message length can easily exceed the upper limit of a single message, leading to transmission failure. Summary of the Invention
[0006] The main objective of this application is to provide a method, apparatus, storage medium, and electronic device for encoding UAV location information, in order to solve the problem in related technologies where, when transmitting high-precision UAV location information via BeiDou short messages in areas without mobile network coverage, the message length easily exceeds the upper limit of a single message, leading to message transmission failure.
[0007] To achieve the above objectives, according to one aspect of this application, a method for encoding UAV location information is provided. The method includes: receiving the UAV's latitude and longitude coordinates transmitted by the UAV; determining whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station's monitoring area, wherein the coordinate range is calculated based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area; if the UAV's latitude and longitude coordinates are within the coordinate range, obtaining the current coordinate precision factor; and encoding the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's encoded coordinates.
[0008] Furthermore, before determining whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station's monitoring area, the above method also includes: determining the base station's longitude and latitude coordinates based on the base station's latitude and longitude coordinates; calculating the upper and lower latitude limits of the base station's monitoring area based on the base station's latitude coordinates, monitoring radius, and Earth's radius; calculating the upper and lower longitude limits of the base station's monitoring area based on the base station's longitude coordinates, monitoring radius, and Earth's radius; and determining the coordinate range of the base station's monitoring area based on the upper and lower latitude limits and the upper and lower longitude limits of the base station's monitoring area.
[0009] Furthermore, the upper and lower limits of the latitude of the base station monitoring area are calculated based on the base station's latitude coordinates, monitoring radius, and Earth's radius. This includes: calculating the Earth's equatorial circumference based on the Earth's radius, and calculating a first intermediate variable based on the monitoring radius, the Earth's equatorial circumference, and the circumferential angle. The first intermediate variable is used to quantify the angular displacement range corresponding to the change in the UAV's latitude coordinates within the base station monitoring area; summing the first intermediate variable and the base station's latitude coordinates to obtain the arithmetic value of the upper latitude limit; subtracting the first intermediate variable and the base station's latitude coordinates to obtain the arithmetic value of the lower latitude limit; and adjusting the arithmetic values of the upper and lower latitude limits based on the actual value of Earth's latitude to obtain the upper and lower limits of the latitude of the base station monitoring area.
[0010] Furthermore, the upper and lower limits of longitude of the base station monitoring area are calculated based on the base station's longitude coordinates, monitoring radius, and Earth's radius. This includes: determining the latitude length of the base station's location based on the Earth's radius and the base station's latitude coordinates; when the latitude length is less than or equal to the monitoring radius, determining the arithmetic values of the upper and lower limits of longitude of the base station monitoring area based on preset angle values; when the latitude length is greater than the monitoring radius, calculating a second intermediate variable based on the latitude length, monitoring radius, and circumference angle, and calculating the arithmetic values of the upper and lower limits of longitude of the base station monitoring area based on the second intermediate variable and the base station's longitude coordinates, wherein the second intermediate variable is used to quantify the angular displacement range corresponding to the change in the longitude coordinates of the UAV within the base station monitoring area; and adjusting the arithmetic values of the upper and lower limits of longitude based on the actual value of Earth's longitude to obtain the upper and lower limits of longitude of the base station monitoring area.
[0011] Further, the UAV's latitude and longitude coordinates are encoded based on the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's coded coordinates. This includes: calculating a first difference between a first coordinate component value and a second coordinate component value, where the first coordinate component value is the coordinate component value corresponding to the UAV's latitude and longitude coordinates in the target direction, and the second coordinate component value is the coordinate component value corresponding to the base station's latitude and longitude coordinates in the target direction, where the target direction is either longitude or latitude; for the target direction, calculating a second difference between the upper limit and lower limit of the coordinate component value in the coordinate range; calculating a third intermediate variable based on the first difference, the second difference, and the coordinate precision factor, where the third intermediate variable represents the UAV's coordinate component value relative to the base station's monitoring area in the target direction; if the first coordinate component value is greater than or equal to the second coordinate component value, determining the UAV's coordinate component value corresponding to the target direction based on the third intermediate variable; if the first coordinate component value is less than the second coordinate component value, determining the UAV's coordinate component value corresponding to the target direction based on the coordinate precision factor and the absolute value of the third intermediate variable; and determining the UAV's coded coordinates based on the UAV's coordinate component values corresponding to the longitude and latitude directions.
[0012] Furthermore, after encoding the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's coded coordinates, the above method also includes: sending the UAV's coded coordinates and base station information to the target terminal, wherein the base station information includes at least: the coordinate range of the base station's monitoring area, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area; obtaining the current coordinate precision factor; and decoding the UAV's coded coordinates based on the Earth's radius, the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor, so that the target terminal can determine the UAV's latitude and longitude coordinates.
[0013] Furthermore, the UAV's coded coordinates are decoded based on the Earth's radius, base station latitude and longitude coordinates, coordinate range, and coordinate precision factor to enable the target terminal to determine the UAV's latitude and longitude coordinates. This includes: calculating a third difference between the upper and lower limits of the coordinate component values within the coordinate range for the target direction, where the target direction belongs to either longitude or latitude; when the third coordinate component value is greater than or equal to a fourth intermediate variable, calculating a first compression ratio of the UAV's coded coordinates based on the difference between the fourth intermediate variable and the third coordinate component value, and the fourth intermediate variable; and calculating the latitude and longitude coordinate components of the UAV in the target direction based on the first compression ratio, the third difference, and the fourth coordinate component value. The third coordinate component value is the coordinate component value of the UAV's coded coordinates in the target direction, the fourth coordinate component value is the coordinate component value of the base station's latitude and longitude coordinates in the target direction, and the fourth intermediate variable is a preset constant multiplied by itself N times, where N is equal to the coordinate precision factor. When the third coordinate component value is less than the fourth intermediate variable, the second compression ratio of the UAV's coded coordinates is calculated based on the fourth intermediate variable and the third coordinate component value. The latitude and longitude coordinate components of the UAV in the target direction are calculated based on the second compression ratio, the third difference, and the fourth coordinate component value. The latitude and longitude coordinates of the UAV are determined based on the latitude and longitude coordinate components of the UAV in the longitude direction and the latitude and longitude coordinate components of the UAV in the latitude direction.
[0014] To achieve the above objectives, according to another aspect of this application, an encoding device for UAV location information is provided. The device includes: a judgment unit, configured to receive the UAV's latitude and longitude coordinates transmitted by the UAV, and determine whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station monitoring area, wherein the coordinate range is calculated based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station monitoring area; a first acquisition unit, configured to acquire the current coordinate precision factor if the UAV's latitude and longitude coordinates are within the coordinate range; and an encoding unit, configured to encode the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's encoded coordinates.
[0015] Furthermore, the aforementioned apparatus further includes: a first determining unit, used to determine the base station longitude coordinates and base station latitude coordinates based on the base station longitude coordinates before determining whether the UAV's longitude and latitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station monitoring area; a first calculating unit, used to calculate the upper and lower latitude limits of the base station monitoring area based on the base station latitude coordinates, the monitoring radius, and the Earth's radius; a second calculating unit, used to calculate the upper and lower longitude limits of the base station monitoring area based on the base station's longitude coordinates, the monitoring radius, and the Earth's radius; and a second determining unit, used to determine the coordinate range of the base station monitoring area based on the upper and lower latitude limits of the base station monitoring area and the upper and lower longitude limits of the base station monitoring area.
[0016] Furthermore, the first calculation unit includes: a first calculation subunit, used to calculate the Earth's equatorial circumference based on the Earth's radius, and to calculate a first intermediate variable based on the monitoring radius, the Earth's equatorial circumference, and the circumferential angle, wherein the first intermediate variable is used to quantify the angular displacement range corresponding to the change in the latitude coordinates of the UAV within the base station monitoring area; a second calculation subunit, used to sum the first intermediate variable and the base station latitude coordinates to obtain the upper latitude arithmetic value; a third calculation subunit, used to subtract the first intermediate variable and the base station latitude coordinates to obtain the lower latitude arithmetic value; and a first adjustment subunit, used to adjust the upper latitude arithmetic value and the lower latitude arithmetic value respectively based on the actual value of the Earth's latitude to obtain the upper latitude and lower latitude limits of the base station monitoring area.
[0017] Furthermore, the second calculation unit includes: a first determining subunit, used to determine the latitude length of the base station location based on the Earth's radius and the base station's latitude coordinates; a second determining subunit, used to determine the upper and lower longitude arithmetic values of the base station monitoring area based on preset angle values when the latitude length is less than or equal to the monitoring radius; a fourth calculation subunit, used to calculate a second intermediate variable based on the latitude length, monitoring radius, and circumference angle when the latitude length is greater than the monitoring radius, and to calculate the upper and lower longitude arithmetic values of the base station monitoring area based on the second intermediate variable and the base station's longitude coordinates, wherein the second intermediate variable is used to quantify the angular displacement range corresponding to the change in the longitude coordinates of the UAV within the base station monitoring area; and a second adjusting subunit, used to adjust the upper and lower longitude arithmetic values based on the actual value of the Earth's longitude to obtain the upper and lower longitude limits of the base station monitoring area.
[0018] Further, the encoding unit includes: a fifth calculation subunit, used to calculate a first difference between a first coordinate component value and a second coordinate component value, wherein the first coordinate component value is the coordinate component value corresponding to the latitude and longitude coordinates of the UAV in the target direction, and the second coordinate component value is the coordinate component value corresponding to the latitude and longitude coordinates of the base station in the target direction, and the target direction belongs to either the longitude direction or the latitude direction; a sixth calculation subunit, used to calculate a second difference between the upper limit and the lower limit of the coordinate component values in the coordinate range for the target direction, and to calculate a third intermediate variable based on the first difference, the second difference, and the coordinate precision factor, wherein the third intermediate variable table The system includes five sub-units: a first sub-unit and a second sub-unit. The first sub-unit determines the coordinate component values of the UAV relative to the base station monitoring area in the target direction. The second sub-unit determines the coordinate component values of the UAV in the target direction based on a third intermediate variable when the first coordinate component value is greater than or equal to the second coordinate component value. The third sub-unit determines the coordinate component values of the UAV in the target direction based on a coordinate precision factor and the absolute value of the third intermediate variable when the first coordinate component value is less than the second coordinate component value. The fourth sub-unit determines the coordinate component values of the UAV in the target direction based on a coordinate precision factor and the absolute value of the third intermediate variable when the first coordinate component value is less than the second coordinate component value. The fifth sub-unit determines the UAV's coded coordinates based on the coordinate component values of the UAV in the longitude direction and the coordinate component values of the UAV in the latitude direction.
[0019] Furthermore, the aforementioned apparatus includes: a receiving unit for transmitting UAV coded coordinates and base station information to a target terminal, wherein the base station information includes at least: the coordinate range of the base station monitoring area, the base station latitude and longitude coordinates, and the monitoring radius of the base station monitoring area; a second acquisition unit for acquiring the current coordinate precision factor; and a decoding unit for decoding the UAV coded coordinates based on the Earth's radius, the base station latitude and longitude coordinates, the coordinate range, and the coordinate precision factor, so that the target terminal can determine the UAV's latitude and longitude coordinates.
[0020] Further, the decoding unit includes: a seventh calculation subunit, used to calculate a third difference between the upper limit and lower limit of the coordinate component values in the coordinate range for the target direction, wherein the target direction belongs to either the longitude or latitude direction; and an eighth calculation subunit, used to calculate a first compression ratio of the UAV coded coordinates based on the difference between the fourth intermediate variable and the third coordinate component value, and the fourth intermediate variable, when the third coordinate component value is greater than or equal to the fourth intermediate variable; and to calculate the longitude and latitude coordinate components of the UAV in the target direction based on the first compression ratio, the third difference, and the fourth coordinate component value, wherein the third coordinate component value is the UAV coded coordinate in the target direction. The coordinate component values are as follows: the fourth coordinate component value is the coordinate component value of the base station's latitude and longitude coordinates in the target direction; the fourth intermediate variable is a preset constant multiplied by itself N times, where N is equal to the coordinate precision factor; the ninth calculation subunit is used to calculate the second compression ratio of the UAV's encoded coordinates based on the fourth intermediate variable and the third coordinate component value when the third coordinate component value is less than the fourth intermediate variable, and to calculate the latitude and longitude coordinate components of the UAV in the target direction based on the second compression ratio, the third difference, and the fourth coordinate component value; the sixth determination subunit is used to determine the latitude and longitude coordinates of the UAV based on the latitude and longitude coordinate components of the UAV in the longitude direction and the latitude and longitude coordinate components of the UAV in the latitude direction.
[0021] To achieve the above objectives, according to one aspect of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the above-described methods for encoding UAV location information, and when executed by a processor, implements the steps of the UAV location information encoding methods in various embodiments of this application.
[0022] To achieve the above objectives, according to one aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including stored computer instructions, wherein, when the computer instructions are executed by a processor, the encoding method for any of the above-mentioned UAV location information is implemented.
[0023] To achieve the above objectives, according to one aspect of this application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement any of the above-described methods for encoding UAV location information.
[0024] This application employs the following steps: receiving the latitude and longitude coordinates of a UAV sent by the UAV; determining whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station's monitoring area, wherein the coordinate range is calculated based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area; if the UAV's latitude and longitude coordinates are within the coordinate range, obtaining the current coordinate precision factor; and encoding the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's coded coordinates. This solves the problem in related technologies where, when transmitting high-precision UAV location information via BeiDou short messages in areas without mobile network coverage, the message length easily exceeds the upper limit of a single message, leading to message transmission failure.
[0025] Based on the latitude and longitude coordinates, coordinate range, and coordinate precision factor of the base station, the latitude and longitude coordinates of the UAV are encoded by implementing a specific encoding algorithm. This yields the coded coordinates of the UAV, achieving the technical effect of converting the original location information into a simplified coded form. This enables the UAV location information to be successfully transmitted in a restricted communication environment, realizing the effective use of restricted channels such as BeiDou short messages, and further improving the communication reliability of the UAV remote identification system. Attached Figure Description
[0026] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0027] Figure 1 This is a flowchart of the encoding method for UAV location information provided in Embodiment 1 of this application;
[0028] Figure 2 This is a schematic diagram of the base station monitoring area of an optional receiving base station provided according to Embodiment 1 of this application;
[0029] Figure 3 This is a schematic diagram of an optional process for decoding the coded coordinates of a UAV via a target terminal, according to Embodiment 1 of this application.
[0030] Figure 4 This is a schematic diagram of an optional process for encoding the latitude and longitude coordinates of a UAV according to Embodiment 1 of this application;
[0031] Figure 5 This is a schematic diagram of an optional process for decoding UAV coded coordinates according to Embodiment 1 of this application;
[0032] Figure 6 This is a schematic diagram of an encoding device for UAV location information according to Embodiment 2 of this application;
[0033] Figure 7 This is a schematic diagram of an electronic device for encoding UAV location information according to Embodiment 5 of this application. Detailed Implementation
[0034] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0035] It should be noted that the user information (including but not limited to user device information, user personal information, collected data, used data, generated data, processed data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, processed information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant laws and standards of the relevant regions, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, it needs to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information only after receiving consent from the aforementioned user or organization.
[0036] It should be noted that this application provides users with a corresponding entry point for choosing to agree to or reject the automated decision-making results; if the user chooses to reject, the process will proceed to the expert decision-making process.
[0037] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0038] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0039] Example 1
[0040] The present invention will now be described in conjunction with preferred implementation steps. Figure 1 This is a flowchart of the encoding method for UAV location information provided in Embodiment 1 of this application, as shown below. Figure 1 As shown, the method includes the following steps:
[0041] Step S101: Receive the latitude and longitude coordinates of the UAV sent by the UAV, and determine whether the latitude and longitude coordinates of the UAV are within the coordinate range based on the latitude and longitude coordinates of the UAV and the coordinate range of the base station monitoring area. The coordinate range is calculated based on the Earth's radius, the latitude and longitude coordinates of the base station, and the monitoring radius of the base station monitoring area.
[0042] In this first embodiment, the receiving base station in the UAV remote identification system can be the entity executing the encoding method for UAV location information. The base station receives the raw location data sent by the UAV, including its latitude and longitude coordinates, and then performs encoding and compression operations on these coordinates. By converting the absolute latitude and longitude coordinates of the UAV's location into local grid coordinates relative to the base station's location, the amount of data occupied by location information in the message is significantly reduced. This operation, based on a regional coordinate precision factor, uses a specific mathematical formula to quantize the location coordinates, converting them into shorter binary codes, reducing traffic consumption when communicating via 4G / 5G networks or BeiDou short message satellite communication, thereby reducing communication costs.
[0043] In this first embodiment, to compress the drone's location information, it is necessary to receive the latitude and longitude coordinate data transmitted by the drone. Then, based on a preset coordinate range, it is assessed whether these coordinates fall within the monitoring area of the base station. The coordinate range is specifically calculated using the Earth's radius, the base station's own latitude and longitude coordinates, and a specific radius of the base station's monitoring area. This process ensures that only drone location information within the effective monitoring range of the base station is further processed and encoded for compressed transmission.
[0044] By receiving the latitude and longitude coordinates sent by the drone and comparing them with the coordinate range of the base station's monitoring area, it is possible to determine whether the drone's coordinates are within the effective monitoring range of the base station. This achieves the technical effect of quickly filtering effective drone location information. At the same time, by calculating the coordinate range based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area, the base station can accurately define its monitoring boundary, realizing effective management and preliminary processing of drone location information, and further achieving the technical effect of improving data processing efficiency.
[0045] Step S102: If the latitude and longitude coordinates of the UAV are within the coordinate range, obtain the current coordinate precision factor.
[0046] In this first embodiment, once the receiving base station confirms that the latitude and longitude coordinates transmitted by the UAV are within the coordinate range of its monitoring area, the next step is to determine the coordinate precision factor. This factor represents the quantization precision of the UAV's position information within the base station's monitoring radius; its specific value corresponds to the number of binary bits and is used in subsequent coordinate transformation and encoding processes. The selection of the coordinate precision factor directly affects the data length after encoding and the precision after decoding the UAV's position information, and is one of the key parameters in the encoding method.
[0047] After confirming that the drone's coordinates fall within the base station's monitoring range, the latitude and longitude coordinates of the drone can be accurately quantified by obtaining the current coordinate precision factor. This achieves the technical effect of reducing data redundancy. At the same time, by using the coordinate precision factor, the coordinate information can be compressed while maintaining a certain level of accuracy, resulting in a significant reduction in data volume and further optimizing the utilization of communication link resources.
[0048] Step S103: Encode the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's coded coordinates.
[0049] In this first embodiment, after the receiving base station acquires the latitude and longitude coordinates of the UAV, it first confirms that these coordinates fall within the coordinate range of its monitored area. Then, it acquires the coordinate precision factor set by the user (or base station staff). This factor is a key parameter in the encoding process, defining the quantization level of the location information. Next, the base station uses its own latitude and longitude coordinates, the coordinate range of the monitored area, and the selected coordinate precision factor to quantize and encode the UAV's latitude and longitude coordinates, converting them into UAV coded coordinates. This coded coordinate uses a simpler binary form, significantly reducing data volume. Finally, the encoded UAV coordinate data is sent to the target terminal for further processing or storage.
[0050] The role of encoding is to reduce the amount of communication data and improve communication efficiency, especially in environments with limited bandwidth or high communication costs, such as BeiDou short message communication. By converting absolute coordinates into relative local coordinates, it effectively reduces the traffic consumption and cost during information transmission, while overcoming the limitations of length-limited channels.
[0051] In summary, the UAV location information encoding method provided in Embodiment 1 of this application receives the UAV's latitude and longitude coordinates sent by the UAV, determines whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station's monitoring area. The coordinate range is calculated based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area. If the UAV's latitude and longitude coordinates are within the coordinate range, the current coordinate precision factor is obtained. The UAV's latitude and longitude coordinates are encoded based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's encoded coordinates. This solves the problem in related technologies where, when transmitting high-precision UAV location information via BeiDou short messages in areas without mobile network coverage, the message length easily exceeds the upper limit of a single message, leading to message transmission failure.
[0052] Based on the latitude and longitude coordinates, coordinate range, and coordinate precision factor of the base station, the latitude and longitude coordinates of the UAV are encoded by implementing a specific encoding algorithm. This yields the coded coordinates of the UAV, achieving the technical effect of converting the original location information into a simplified coded form. This enables the UAV location information to be successfully transmitted in a restricted communication environment, realizing the effective use of restricted channels such as BeiDou short messages, and further improving the communication reliability of the UAV remote identification system.
[0053] Optionally, in the encoding method for UAV location information provided in Embodiment 1 of this application, before determining whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station monitoring area, the method further includes: determining the base station's longitude and latitude coordinates based on the base station's latitude and longitude coordinates; calculating the upper and lower latitude limits of the base station monitoring area based on the base station's latitude coordinates, monitoring radius, and Earth radius; calculating the upper and lower longitude limits of the base station monitoring area based on the base station's longitude coordinates, monitoring radius, and Earth radius; and determining the coordinate range of the base station monitoring area based on the upper and lower latitude limits and the upper and lower longitude limits of the base station monitoring area.
[0054] In this first embodiment, the aim is to accurately define the effective geographical monitoring range of the receiving base station in the UAV remote identification system, so as to achieve efficient compression and transmission of UAV location information. First, by analyzing the latitude and longitude coordinates of the receiving base station, and based on the base station's latitude coordinates, preset monitoring radius parameters, and the average radius of the Earth, the upper and lower latitude limits of the base station's monitoring area are estimated using a geographical coordinate calculation formula. This calculation process takes into account the curvature of the Earth, ensuring the accuracy of the latitude range, and obtaining appropriate boundary definitions even near the poles.
[0055] Next, using the longitude coordinates of the base station as the center, and combining the same monitoring radius and Earth radius, the upper and lower longitude limits of the base station's monitoring area are calculated. Since the length of longitude lines varies at different latitudes, this step requires additional consideration of the influence of the base station's latitude on the longitude range. By introducing the calculation of the Earth's latitude line length, the boundaries of the longitude range are corrected, ensuring that even in high-latitude regions, the longitude range of the monitoring area can be accurately determined.
[0056] Subsequently, by integrating the calculated upper and lower latitude limits, upper and lower longitude limits, the complete coordinate range of the base station's monitoring area was finally constructed. This range clearly defines the geographic spatial boundary through which the receiving base station can effectively receive and process UAV location information, providing necessary geographic parameters for subsequent UAV location information encoding and compression, and ensuring the applicability and accuracy of the compression algorithm.
[0057] Figure 2 This is a schematic diagram of the base station monitoring area of an optional receiving base station provided according to Embodiment 1 of this application. For example... Figure 2 As shown, Figure 2 The center location represents the latitude and longitude coordinates of the receiving base station. Here, LATO represents the latitude coordinates, LATR represents the longitude coordinates, LATL represents the upper latitude limit of the base station's monitoring area, LONR represents the upper longitude limit, LONL represents the lower longitude limit, and 5km represents half the side length of the base station's monitoring area. The area enclosed by (LONL, LATR), (LONR, LATR), (LONR, LATL), and (LONL, LATL) determines the base station's monitoring area.
[0058] Through the above steps, the technical effect of accurately delineating the geographical area monitored by the receiving base station is achieved, providing a prerequisite for the compression and transmission of UAV location information. Specifically, the precise coordinate range ensures that the encoding algorithm can operate efficiently within the monitoring range of the base station, without including invalid or long-distance UAV data in the compression process. This process is crucial for optimizing message length, overcoming the communication limitations of BeiDou's short message service, and saving data traffic costs in environments with high communication costs, thereby improving the reliability and economy of the UAV remote identification system at the technical level.
[0059] Optionally, in the encoding method for UAV location information provided in Embodiment 1 of this application, calculating the upper and lower latitude limits of the base station monitoring area based on the base station latitude coordinates, monitoring radius, and Earth radius includes: calculating the Earth's equatorial circumference based on the Earth's radius, and calculating a first intermediate variable based on the monitoring radius, the Earth's equatorial circumference, and the circumferential angle, wherein the first intermediate variable is used to quantify the angular displacement range corresponding to the change in the UAV's latitude coordinates within the base station monitoring area; summing the first intermediate variable and the base station latitude coordinates to obtain the arithmetic value of the upper latitude limit; subtracting the first intermediate variable and the base station latitude coordinates to obtain the arithmetic value of the lower latitude limit; and adjusting the arithmetic values of the upper and lower latitude limits according to the actual value of the Earth's latitude to obtain the upper and lower latitude limits of the base station monitoring area.
[0060] In this first embodiment, to define the geographical coordinate range within the monitoring area of the UAV remote identification system's receiving base station, the primary focus is on calculating the Earth's equatorial circumference, providing a dimensional reference for subsequent geographical coordinate transformations. Next, based on the monitoring radius, the obtained Earth's equatorial circumference, and the fundamental principles of circumferential angles, we calculate the first intermediate variable. This variable essentially reflects the angular displacement range corresponding to changes in the UAV's latitude coordinates within the base station's monitoring area.
[0061] Subsequently, mathematical operations, including addition and subtraction, were performed between the first intermediate variable and the latitude coordinates of the receiving base station to obtain the arithmetic values of the upper and lower latitude limits of the base station's monitoring area. These arithmetic values visually represent the theoretical northernmost and southernmost latitude positions that the drone can potentially reach within the base station's monitoring range.
[0062] Finally, considering the true geographical distribution characteristics of latitude on Earth, especially the special value rules of latitude coordinates at the North and South Poles, the arithmetic values of the calculated upper and lower latitude limits were reasonably adjusted to ensure that they conform to the standard requirements of true latitude coordinates on Earth, thereby obtaining the actual effective latitude coordinate boundaries of the base station monitoring area.
[0063] For example, the process of calculating the upper and lower latitude limits of the base station monitoring area can be shown in Formulas 1 to 4.
[0064] (1)
[0065] (2)
[0066] (3)
[0067] (4)
[0068] in, Indicates the monitoring radius of the base station. This represents the Earth's radius (valued at 6371 km). This represents the first intermediate variable mentioned above. Represents the latitude coordinates of the base station. This represents the arithmetic value indicating the upper limit of latitude of the base station's monitoring area. This represents the arithmetic value indicating the lower limit of the latitude of the base station monitoring area. This indicates the upper limit of latitude of the base station monitoring area. This indicates the lower latitude limit of the base station's monitoring area.
[0069] The above steps determine the upper and lower latitude limits of the base station's monitoring area, thus defining the effective monitoring range of the drone. This definition considers not only the actual physical size of the monitoring range but also the Earth's geometric characteristics, ensuring the rationality and accuracy of the coordinate boundaries. These steps provide the necessary upper and lower geographical coordinate parameters for subsequent drone location information compression algorithms. By reducing the amount of location information data, the length of a single message is significantly reduced, preventing information transmission failures due to data overload and improving the overall performance and stability of the drone remote identification system.
[0070] Optionally, in the encoding method for UAV location information provided in Embodiment 1 of this application, calculating the upper and lower limits of longitude of the base station monitoring area based on the base station's longitude coordinates, monitoring radius, and Earth's radius includes: determining the latitude length of the base station's location based on the Earth's radius and the base station's latitude coordinates; when the latitude length is less than or equal to the monitoring radius, determining the arithmetic values of the upper and lower limits of longitude of the base station monitoring area based on preset angle values; when the latitude length is greater than the monitoring radius, calculating a second intermediate variable based on the latitude length, monitoring radius, and circumference angle, and calculating the arithmetic values of the upper and lower limits of longitude of the base station monitoring area based on the second intermediate variable and the base station's longitude coordinates, wherein the second intermediate variable is used to quantify the angular displacement range corresponding to the change in the UAV's longitude coordinates within the base station monitoring area; and adjusting the arithmetic values of the upper and lower limits of longitude based on the actual value of Earth's longitude to obtain the upper and lower limits of longitude of the base station monitoring area.
[0071] In this first embodiment, the aim is to accurately define the effective monitoring longitude range of the receiving base station in the UAV remote identification system, so as to achieve efficient compression and transmission of the UAV's longitude location information. First, based on the data of the Earth's radius and the specific latitude coordinates of the base station, the length of the latitude of the base station's location is calculated using geographical principles.
[0072] Then, based on the comparison between the calculated latitude length and the predetermined monitoring radius, the system determines the calculation path for the longitude range of the monitoring area. If the latitude length of the base station location is less than or equal to the monitoring radius, it means that at that latitude, the lateral movement range of the drone is less restricted by the monitoring radius. In this case, the system will directly use preset angle values to roughly estimate the upper and lower longitude limits of the base station monitoring area. This simplification helps to quickly delineate the longitude range, especially in low-latitude regions where the error is negligible.
[0073] Secondly, when the latitude length of the base station location exceeds the monitoring radius, it is necessary to quantify the angular displacement range corresponding to the change in the longitude coordinates of the UAV within the base station's monitoring area. This involves calculating a second intermediate variable based on the latitude length, monitoring radius, and circumferential angle. The purpose is to ensure that even under varying geographical conditions, accurate values of the longitude range of the base station's monitoring area can still be obtained, thus providing a solid data foundation for the compression and transmission of UAV location information. Next, based on the second intermediate variable and the base station's longitude coordinates, the upper and lower arithmetic values of the longitude limit for the base station's monitoring area are calculated.
[0074] Finally, the calculated arithmetic values for the upper and lower longitude limits are adjusted to ensure they conform to the true range of Earth's longitude, i.e., [-180°, 180°]. Direct mathematical calculations can sometimes exceed actual geographical boundaries, such as in polar regions or special geographical locations crossing the International Date Line. Using these values directly without adjustment could lead to incorrect coordinate range settings. The adjusted values, representing the actual upper and lower longitude limits of the base station's monitored area, provide an accurate geographical reference for the subsequent encoding and compression of UAV location information.
[0075] For example, the process of calculating the upper and lower latitude limits of the base station monitoring area can be shown in Formulas 5 to 9.
[0076] (5)
[0077] (6)
[0078] (7)
[0079] (8)
[0080] (9)
[0081] in, Indicates the monitoring radius of the base station. This represents the Earth's radius (valued at 6371 km). This indicates the latitude of the location of the base station. This represents the second intermediate variable mentioned above. Indicates the longitude coordinates of the base station. This represents the arithmetic value indicating the upper limit of longitude of the area monitored by the base station. This represents the arithmetic value of the lower limit of longitude of the area monitored by the base station. Indicates the upper limit of longitude of the base station monitoring area. This indicates the lower limit of the longitude of the area monitored by the base station.
[0082] Through the above steps, the technical effect of accurately delineating the longitude range of the monitoring area of the receiving base station is achieved. Specifically, based on the Earth's radius, the latitude coordinates of the base station, and its monitoring radius, the longitude range of the base station's monitoring area is dynamically calculated and adjusted. This ensures that even in complex geographical environments, the system can accurately quantify the angular displacement range of the UAV's lateral movement, providing accurate longitude boundary parameters for the compressed processing of the UAV's position information.
[0083] Optionally, in the encoding method for UAV location information provided in Embodiment 1 of this application, the UAV's latitude and longitude coordinates are encoded based on the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's encoded coordinates. This includes: calculating a first difference between a first coordinate component value and a second coordinate component value, wherein the first coordinate component value is the coordinate component value corresponding to the UAV's latitude and longitude coordinates in the target direction, and the second coordinate component value is the coordinate component value corresponding to the base station's latitude and longitude coordinates in the target direction, where the target direction belongs to either the longitude or latitude direction; and for the target direction, calculating a second difference between the upper limit and the lower limit of the coordinate component value within the coordinate range. A third intermediate variable is calculated based on the first difference, the second difference, and the coordinate precision factor. The third intermediate variable represents the coordinate component value of the UAV relative to the base station monitoring area in the target direction. If the first coordinate component value is greater than or equal to the second coordinate component value, the coordinate component value of the UAV in the target direction is determined based on the third intermediate variable. If the first coordinate component value is less than the second coordinate component value, the coordinate component value of the UAV in the target direction is determined based on the coordinate precision factor and the absolute value of the third intermediate variable. The UAV's coded coordinates are determined based on the coordinate component values of the UAV in the longitude direction and the coordinate component values of the UAV in the latitude direction.
[0084] In this first embodiment, to efficiently compress and transmit the latitude and longitude coordinates of the UAV and ensure lossless encoding and decoding in restricted communication environments, especially in BeiDou short message communication, the difference between the component values of the latitude and longitude coordinates of the UAV and the receiving base station in a specific direction is first calculated. The goal of this calculation is to quantify the relative position of the UAV with respect to the base station. By comparing the component values of the UAV coordinates and the base station coordinates, the first difference is obtained. This value directly reflects the offset of the UAV in its direction, whether in longitude or latitude.
[0085] Then, the effective range of UAV coordinate changes is analyzed based on the coordinate range of the base station monitoring area. The second difference between the upper and lower limits of the coordinate component values is calculated, which essentially represents a precise quantification of the width of the base station monitoring area in the target direction. This step provides the necessary range parameters for the relative quantification of the UAV coordinates relative to the base station monitoring area, ensuring the accuracy and rationality of subsequent coding. Next, based on the first difference, the second difference, and the coordinate precision factor, a third intermediate variable is calculated. This variable expresses the specific proportion by which the UAV deviates from the base station monitoring area in the target direction.
[0086] Finally, based on the relative magnitudes of the coordinate component values between the UAV and the base station, and the third intermediate variable, the final quantized coordinate component value of the UAV in the target direction is determined. When the first coordinate component value of the UAV is not lower than the second coordinate component value of the base station, the third intermediate variable is directly mapped to the quantized coordinate component value of the UAV; conversely, when the first coordinate component value is lower than the second coordinate component value, the quantized coordinate component value of the UAV is adjusted and determined by combining the coordinate precision factor with the absolute value of the third intermediate variable to adapt to the changes in the UAV's position relative to the base station in different scenarios. Through the above two steps, the quantized coordinate component values of the UAV in the longitude and latitude directions are determined respectively. Combining the coordinate component values in these two directions, the UAV's coded coordinates are finally determined.
[0087] For example, the calculation process of UAV coded coordinates can be shown in Equations 10 and 11.
[0088] (10)
[0089] (11)
[0090] Where (X, Y) represents the coded coordinates of the UAV, and the values of X and Y range from [0, 0, 1 ... ], ( , ) represents the latitude and longitude coordinates of the UAV, ( , () represents the latitude and longitude coordinates of the base station, and i represents the area coordinate precision factor, indicating the monitoring radius of the base station. The number of binary bits, for example, i with a value of 6 indicates that the precision of the region coordinates is 1000. , This represents the longitude coordinates of the UAV, specifically the first coordinate component value when the target direction falls within the longitude direction. This represents the latitudinal coordinates of the UAV, specifically the first coordinate component value when the target direction belongs to the latitudinal direction. This represents the longitude coordinates of the receiving base station, specifically the second coordinate component value when the target direction falls within the longitude direction. This represents the latitude coordinates of the receiving base station, specifically the second coordinate component value when the target direction belongs to the latitude direction. This represents the first difference when the target direction belongs to the longitude direction. This represents the first difference when the target direction belongs to the latitude direction. This represents the second difference when the target direction belongs to the longitude direction. This represents the second difference when the target direction belongs to the latitude direction. The third intermediate variable indicates when the target direction belongs to the longitude direction. The third intermediate variable represents the direction of the target when it belongs to the latitude direction. This represents the floor function.
[0091] Through the above steps, the technical effect of efficiently compressing the latitude and longitude coordinates of a UAV into coded coordinates is achieved. Specifically, by introducing the concept of range limitation of the base station monitoring area and coordinate precision factor, and combining the relative position information of the UAV and the base station, the precise quantification and encoding of the UAV coordinate information is realized. The generated UAV coded coordinates can significantly reduce the data storage and transmission requirements while ensuring accurate transmission of position information. This coordinate compression algorithm based on relative position effectively overcomes the problem of low communication efficiency caused by the redundancy of absolute coordinate data, and is especially suitable for environments with limited bandwidth or high communication costs, such as remote areas relying on BeiDou short message communication. By quantifying the UAV position information, not only is data traffic consumption reduced, but the communication efficiency and economy of limited channels are also improved, providing technical support for the widespread application of UAV remote identification systems.
[0092] Optionally, in the method for encoding UAV location information provided in Embodiment 1 of this application, after encoding the UAV's latitude and longitude coordinates according to the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's coded coordinates, the method further includes: sending the UAV's coded coordinates and base station information to the target terminal, wherein the base station information includes at least: the coordinate range of the base station's monitoring area, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area; obtaining the current coordinate precision factor; and decoding the UAV's coded coordinates according to the Earth's radius, the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor, so that the target terminal can determine the UAV's latitude and longitude coordinates.
[0093] In this first embodiment, after the receiving base station in the UAV remote identification system generates the UAV coded coordinates, it can send the UAV coded coordinates and other base station information to the target terminal. The target terminal then decodes the UAV coded coordinates, enabling staff to control or manage the UAV based on these coordinates. The target terminal can be the UAV management system within the UAV remote identification system, responsible for receiving and parsing the UAV coded coordinates transmitted via the communication link to recover the UAV's original latitude and longitude coordinates.
[0094] Figure 3 This is a schematic diagram illustrating an optional process for decoding UAV coded coordinates via a target terminal, according to Embodiment 1 of this application. Figure 3 As shown, firstly, the UAV management system receives data packets transmitted by the receiving base station, containing the UAV's coded coordinates and base station information. The base station information at least covers the coordinate range of the base station's monitoring area, the base station's own latitude and longitude coordinates, and its monitoring radius. This information collectively constitutes the necessary parameters for the decoding algorithm to run, enabling the UAV management system to perform reverse calculations based on this, converting the UAV's coded coordinates back to its original latitude and longitude coordinates, thus achieving real-time monitoring of the UAV's accurate location.
[0095] Next, the current coordinate precision factor is obtained. The coordinate precision factor is essentially a quantization parameter that characterizes the resolution of the decoded UAV position information; that is, the smallest discernible unit of the UAV coordinates mapped onto the Earth's surface. The coordinate precision factor is typically set based on communication link bandwidth limitations, communication cost considerations, and the actual needs of UAV monitoring. For example, in high-density flight areas, higher precision may be required to accurately distinguish the positions of adjacent aircraft. The timing and method of obtaining the coordinate precision factor depend on the system design; it may be loaded as a preset parameter during system initialization, or it may be dynamically adjusted based on the real-time communication environment and the number of UAVs.
[0096] Finally, based on the Earth's radius, the base station's latitude and longitude coordinates, the coordinate range of the monitored area, and a preset coordinate precision factor, the UAV management system executes a decoding algorithm to convert the received UAV coded coordinates back to their original latitude and longitude coordinates. The decoding process first uses the base station's latitude and longitude coordinates and the Earth's radius to calculate the longitude and latitude boundaries of the monitored area. Then, based on the UAV coded coordinates and the coordinate precision factor, the location information contained in the coded coordinates is analyzed in reverse. By mapping the coded coordinates back to their actual location within the monitored area's coordinate range, the UAV's precise latitude and longitude coordinates are finally recovered. This decoding strategy ensures that the location information retains the necessary accuracy after compressed transmission, maintaining the functional integrity of the UAV remote identification system.
[0097] By acquiring the current coordinate precision factor and decoding the UAV's coded coordinates based on the Earth's radius, base station latitude and longitude coordinates, the coordinate range of the base station's monitoring area, and the coordinate precision factor, the UAV management system can adjust the position precision during the decoding process according to actual needs and communication conditions. This achieves accurate restoration of the UAV's position information, further optimizing the utilization of communication resources and ensuring the integrity and accuracy of position data transmission without sacrificing system functionality. In particular, when using BeiDou short message communication in areas without mobile network coverage, it overcomes the transmission obstacles caused by message length limitations, ensuring the stable operation and wide applicability of the UAV remote identification system.
[0098] Optionally, in the encoding method for UAV location information provided in Embodiment 1 of this application, the UAV encoded coordinates are decoded based on the Earth's radius, base station latitude and longitude coordinates, coordinate range, and coordinate precision factor to enable the target terminal to determine the UAV's latitude and longitude coordinates. This includes: calculating a third difference between the upper limit and lower limit of the coordinate component values in the coordinate range for the target direction, wherein the target direction belongs to either the longitude or latitude direction; when the third coordinate component value is greater than or equal to a fourth intermediate variable, calculating a first compression ratio of the UAV encoded coordinates based on the difference between the fourth intermediate variable and the third coordinate component value, and the fourth intermediate variable; and calculating the UAV's location on the target based on the first compression ratio, the third difference, and the fourth coordinate component value. The latitude and longitude coordinate components corresponding to the direction are as follows: the third coordinate component value is the coordinate component value of the UAV's coded coordinates in the target direction; the fourth coordinate component value is the coordinate component value of the base station's latitude and longitude coordinates in the target direction; the fourth intermediate variable is a preset constant multiplied by itself N times, where N is equal to the coordinate precision factor; when the third coordinate component value is less than the fourth intermediate variable, the second compression ratio of the UAV's coded coordinates is calculated based on the fourth intermediate variable and the third coordinate component value; the latitude and longitude coordinate components of the UAV in the target direction are calculated based on the second compression ratio, the third difference, and the fourth coordinate component value; the latitude and longitude coordinates of the UAV are determined based on the latitude and longitude coordinate components of the UAV in the longitude direction and the latitude and longitude coordinate components of the UAV in the latitude direction.
[0099] In this first embodiment, in order to adapt to the BeiDou short message length limit while maintaining the necessary accuracy of the UAV position information, the difference between the maximum and minimum coordinate component values within the coordinate range is first calculated for a specific target direction, whether it is longitude or latitude. This difference, or the third difference, represents the range of change of the UAV position in the target direction.
[0100] Then, based on the comparison between the specific coordinate component values of the UAV's coded coordinates in the target direction (i.e., the third coordinate component value) and a preset fourth intermediate variable, the calculation method for the compression ratio is dynamically determined. When the third coordinate component value reaches or exceeds the threshold of the fourth intermediate variable, the first compression ratio is calculated by considering the difference between the two and the fourth intermediate variable itself. This ratio reflects the degree to which the UAV coordinates are extended in the target direction during decoding. Subsequently, using the first compression ratio, the third difference, and the coordinate component values of the base station in the same direction (i.e., the fourth coordinate component value), a series of mathematical operations are performed to obtain the precise latitude and longitude coordinate components of the UAV in that direction.
[0101] Conversely, if the third coordinate component value does not reach the fourth intermediate variable, the second compression ratio is determined by the relationship between the third coordinate component value and the fourth intermediate variable. Similarly, using the second compression ratio, the third difference, and the fourth coordinate component value, the decoding of the latitude and longitude coordinate components of the UAV in the target direction is completed.
[0102] Finally, the coordinate components obtained from the decoding in the longitude and latitude directions are combined to establish the precise latitude and longitude coordinates of the UAV. The entire decoding process aims to ensure that the UAV's position information can be accurately and losslessly restored under limited communication conditions through dynamically matched compression ratios, while also taking into account communication efficiency and cost control.
[0103] For example, the process of decoding the UAV's coded coordinates based on the Earth's radius, the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's latitude and longitude coordinates can be shown in Formulas 12 and 13.
[0104] (12)
[0105] (13)
[0106] Where (X, Y) represent the coded coordinates of the UAV, , ) represents the decoded latitude and longitude coordinates of the UAV. , () represents the latitude and longitude coordinates of the base station, and i represents the coordinate precision factor, indicating the monitoring radius of the base station. The number of binary bits, for example, i with a value of 6 indicates that the precision of the region coordinates is 1000. , This represents the third difference between the upper and lower limits of the coordinate component values when the target direction belongs to the longitude direction. This represents the third difference between the upper and lower limits of the coordinate component values when the target direction belongs to the latitude direction. This represents the longitude coordinates of the receiving base station, specifically the fourth coordinate component value when the target direction is in the longitude direction. X represents the third coordinate component value of the UAV's coded coordinates when the target direction is in the longitude direction, and Y represents the third coordinate component value of the UAV's coded coordinates when the target direction is in the latitude direction. This represents the longitude coordinates of the receiving base station, specifically the fourth coordinate component value when the target direction falls within the longitude direction. This represents the latitude coordinates of the receiving base station, specifically the fourth coordinate component value when the target direction is in the latitude direction. This represents the fourth intermediate variable mentioned above. This indicates the first compression ratio when the target direction belongs to the longitude direction. This indicates the first compression ratio when the target direction belongs to the latitude direction. This indicates the second compression ratio when the target direction belongs to the longitude direction. This indicates the second compression ratio when the target direction belongs to the latitude direction.
[0107] Through the above steps, the technical effect of efficiently and accurately transmitting UAV location information in the short BeiDou message with limited length is achieved. Specifically, the decoding algorithm intelligently adjusts the compression ratio, which not only solves the problem of message transmission failure caused by excessive coordinate data volume, but also preserves the original accuracy of the UAV's position, ensuring the system's monitoring capabilities and communication efficiency. Furthermore, the flexibility of this decoding method means that it can effectively adapt to different communication conditions in different application scenarios, such as densely populated urban flight zones or remote uninhabited areas, enabling UAV identification and location tracking, thereby supporting the widespread application and deployment of UAV remote identification systems globally.
[0108] Optionally, in this first embodiment, Figure 4 This is a schematic diagram illustrating an optional process for encoding the latitude and longitude coordinates of a UAV according to Embodiment 1 of this application. Figure 4 As shown, firstly, the coordinate range of the base station's monitoring area is calculated. This range is determined by the center location of the base station and its monitoring radius, specifically involving the determination of the upper and lower limits in both latitude and longitude directions. Through formula derivation and the application of the Earth's geometric model, the geographical boundary within the base station's monitoring area where UAV location information can be effectively transmitted is calculated.
[0109] Then, the system receives real-time latitude and longitude coordinate data reported by the UAV. At this stage, the UAV's location information exists in the form of absolute geographic coordinates, i.e., standard longitude and latitude values. Further processing is required to adapt to the transmission needs of different communication links, especially the short message communication of BeiDou-3 with its limited length. The system verifies the validity of the input UAV coordinates, determining whether they are within the coordinate range of the base station's monitoring area, avoiding unnecessary processing of invalid or distant UAV coordinate data. If the UAV coordinates are indeed within the monitoring area, the system proceeds to the next stage, obtaining the coordinate precision factor i. The coordinate precision factor i is a key parameter determining the resolution of the compression result. A larger value results in more accurate decoded location information, but also increases the data volume. Conversely, a smaller i value means more efficient data compression, but may sacrifice some location accuracy. Therefore, the selection of i can be flexibly set according to communication costs, channel conditions, and UAV monitoring accuracy requirements. If the UAV coordinates are outside the base station's monitoring area, the UAV coordinates are determined to be invalid data, and the process ends.
[0110] Finally, based on the coordinate precision factor and the latitude and longitude coordinate range of the base station monitoring area, a specific coordinate encoding algorithm is executed to convert the absolute geographic coordinates of the UAV into a coded coordinate form suitable for transmission. This encoding process is implemented through mathematical operations, mapping absolute coordinates to relative grid coordinates, thereby greatly reducing the transmission volume of coordinate data. The encoded UAV coordinates will be compressed to the minimum necessary number of bits for efficient transmission via 4G / 5G networks or BeiDou-3 short message communication links, while ensuring that the decoded coordinate information accurately reflects the actual position of the UAV, completing the efficient encoding and transmission process of location information.
[0111] Through the above steps, the system achieves the technical effect of significantly compressing data volume, reducing communication costs, and adapting to different communication conditions, such as bandwidth-limited or high-cost communication links, while ensuring the accuracy of UAV location information. This results in the efficient and economical operation of the UAV remote identification system. This flowchart clearly demonstrates the complete technical path from basic data reception and validity verification to parameter setting and data compression processing.
[0112] Optionally, in this first embodiment, Figure 5 This is a schematic diagram illustrating an optional process for decoding UAV coded coordinates according to Embodiment 1 of this application. Figure 5 As shown, firstly, the system receives the coded coordinates of the UAV sent by the base station. These coordinates are generated by transforming the UAV's geographical location into simplified values within the base station's monitoring area using the aforementioned encoding algorithm. Compared to the original latitude and longitude coordinates, the coded coordinates significantly reduce the amount of data, enabling successful transmission through limited communication channels, such as BeiDou-3 short message services. Next, the coordinate precision factor can be determined using the information sent by the base station, or a preset coordinate precision factor can be determined based on the UAV management system.
[0113] Next, the coordinate range of the base station's monitoring area is calculated, or the coordinate range of the base station's monitoring area transmitted by the base station is received. The purpose is to determine the geographical boundaries of the drone's possible activities, namely the upper and lower limits of latitude and longitude. Through this calculation, the system can construct an area centered on the base station, covering its monitoring range. Secondly, based on the calculated coordinate range and coordinate precision factor, the coded coordinates of the drone are decoded. This is the crucial step in converting the coded coordinates back to the original geographical coordinates. The decoding process fully utilizes factors such as the Earth's radius, the base station's latitude and longitude coordinates, the upper and lower limits of the monitoring area's latitude and longitude, and the preset coordinate precision factor. By reversing the mathematical algorithms used during encoding, the actual position of the drone within the monitoring area is reconstructed.
[0114] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0115] Example 2
[0116] This application also provides a drone location information encoding device in Embodiment 2. It should be noted that the drone location information encoding device in Embodiment 2 can be used to execute the drone location information encoding method provided in Embodiment 1. The drone location information encoding device provided in Embodiment 2 is described below.
[0117] Figure 6 This is a schematic diagram of an encoding device for UAV location information according to Embodiment 2 of this application. Figure 6 As shown, the device includes: a judgment unit 601, a first acquisition unit 602, and an encoding unit 603.
[0118] Specifically, the judgment unit 601 is used to receive the latitude and longitude coordinates of the UAV sent by the UAV, and to determine whether the latitude and longitude coordinates of the UAV are within the coordinate range based on the latitude and longitude coordinates of the UAV and the coordinate range of the base station monitoring area. The coordinate range is calculated based on the Earth's radius, the latitude and longitude coordinates of the base station and the monitoring radius of the base station monitoring area.
[0119] The first acquisition unit 602 is used to acquire the current coordinate precision factor when the latitude and longitude coordinates of the UAV are within the coordinate range.
[0120] The encoding unit 603 is used to encode the latitude and longitude coordinates of the UAV based on the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's coded coordinates.
[0121] The encoding device for UAV location information provided in Embodiment 2 of this application receives the latitude and longitude coordinates of the UAV sent by the UAV through the judgment unit 601, and determines whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station monitoring area. The coordinate range is calculated based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station monitoring area. If the UAV's latitude and longitude coordinates are within the coordinate range, the first acquisition unit 602 acquires the current coordinate precision factor. The encoding unit 603 encodes the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's encoded coordinates. This solves the problem in related technologies where, when transmitting high-precision UAV location information via BeiDou short messages in areas without mobile network coverage, the message length easily exceeds the upper limit of a single message, leading to message transmission failure.
[0122] Based on the latitude and longitude coordinates, coordinate range, and coordinate precision factor of the base station, the latitude and longitude coordinates of the UAV are encoded by implementing a specific encoding algorithm. This yields the coded coordinates of the UAV, achieving the technical effect of converting the original location information into a simplified coded form. This enables the UAV location information to be successfully transmitted in a restricted communication environment, realizing the effective use of restricted channels such as BeiDou short messages, and further improving the communication reliability of the UAV remote identification system.
[0123] Optionally, in the encoding device for UAV location information provided in Embodiment 2 of this application, the device further includes: a first determining unit, used to determine the longitude coordinates and latitude coordinates of the base station based on the longitude coordinates of the base station before determining whether the longitude coordinates of the UAV are within the coordinate range based on the latitude and longitude coordinates of the UAV and the coordinate range of the base station monitoring area; a first calculating unit, used to calculate the upper and lower latitude limits of the base station monitoring area based on the latitude coordinates of the base station, the monitoring radius, and the Earth's radius; a second calculating unit, used to calculate the upper and lower longitude limits of the base station monitoring area based on the longitude coordinates of the base station, the monitoring radius, and the Earth's radius; and a second determining unit, used to determine the coordinate range of the base station monitoring area based on the upper and lower latitude limits of the base station monitoring area and the upper and lower longitude limits of the base station monitoring area.
[0124] Optionally, in the encoding device for UAV location information provided in Embodiment 2 of this application, the first calculation unit includes: a first calculation subunit, used to calculate the Earth's equatorial circumference based on the Earth's radius, and to calculate a first intermediate variable based on the monitoring radius, the Earth's equatorial circumference, and the circumferential angle, wherein the first intermediate variable is used to quantify the angular displacement range corresponding to the change in the latitude coordinates of the UAV within the base station monitoring area; a second calculation subunit, used to perform a summation operation on the first intermediate variable and the base station latitude coordinates to obtain an upper latitude arithmetic value; a third calculation subunit, used to perform a difference operation on the first intermediate variable and the base station latitude coordinates to obtain a lower latitude arithmetic value; and a first adjustment subunit, used to adjust the upper latitude arithmetic value and the lower latitude arithmetic value respectively based on the actual value of the Earth's latitude to obtain the upper latitude and lower latitude limits of the base station monitoring area.
[0125] Optionally, in the encoding device for UAV location information provided in Embodiment 2 of this application, the second calculation unit includes: a first determining subunit, used to determine the latitude length of the base station location based on the Earth's radius and the base station's latitude coordinates; a second determining subunit, used to determine the upper and lower longitude arithmetic values of the base station monitoring area based on a preset angle value when the latitude length is less than or equal to the monitoring radius; a fourth calculation subunit, used to calculate a second intermediate variable based on the latitude length, the monitoring radius, and the circumference angle when the latitude length is greater than the monitoring radius, and to calculate the upper and lower longitude arithmetic values of the base station monitoring area based on the second intermediate variable and the base station's longitude coordinates, wherein the second intermediate variable is used to quantify the angular displacement range corresponding to the change in the UAV's longitude coordinates within the base station monitoring area; and a second adjusting subunit, used to adjust the upper and lower longitude arithmetic values based on the actual value of the Earth's longitude to obtain the upper and lower longitude limits of the base station monitoring area.
[0126] Optionally, in the encoding device for UAV location information provided in Embodiment 2 of this application, the encoding unit 603 includes: a fifth calculation subunit, used to calculate a first difference between a first coordinate component value and a second coordinate component value, wherein the first coordinate component value is the coordinate component value corresponding to the UAV's latitude and longitude coordinates in the target direction, and the second coordinate component value is the coordinate component value corresponding to the base station's latitude and longitude coordinates in the target direction, and the target direction belongs to either the longitude direction or the latitude direction; a sixth calculation subunit, used to calculate a second difference between the upper limit and the lower limit of the coordinate component values in the coordinate range for the target direction, and to calculate a third difference based on the first difference, the second difference, and the coordinate precision factor. The system comprises the following sub-units: a third intermediate variable representing the coordinate component value of the UAV relative to the base station monitoring area in the target direction; a third determining sub-unit, used to determine the coordinate component value of the UAV in the target direction based on the third intermediate variable when the first coordinate component value is greater than or equal to the second coordinate component value; a fourth determining sub-unit, used to determine the coordinate component value of the UAV in the target direction based on the coordinate precision factor and the absolute value of the third intermediate variable when the first coordinate component value is less than the second coordinate component value; and a fifth determining sub-unit, used to determine the UAV's coded coordinates based on the coordinate component values of the UAV in the longitude direction and the coordinate component values of the UAV in the latitude direction.
[0127] Optionally, in the encoding device for UAV location information provided in Embodiment 2 of this application, the device further includes: a receiving unit, used to receive UAV coded coordinates and base station information sent by a base station, wherein the base station information includes at least: the coordinate range of the base station monitoring area, the base station latitude and longitude coordinates, and the monitoring radius of the base station monitoring area; a second acquisition unit, used to acquire the current coordinate precision factor; and a decoding unit, used to decode the UAV coded coordinates based on the Earth radius, the base station latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV latitude and longitude coordinates.
[0128] Optionally, in the encoding device for UAV location information provided in Embodiment 2 of this application, the decoding unit includes: a seventh calculation subunit, used to calculate a third difference between the upper limit and the lower limit of the coordinate component values in the coordinate range for a target direction, wherein the target direction belongs to either the longitude direction or the latitude direction; an eighth calculation subunit, used to calculate a first compression ratio of the UAV encoded coordinates based on the difference between the fourth intermediate variable and the third coordinate component value, and the fourth intermediate variable, when the third coordinate component value is greater than or equal to a fourth intermediate variable, and to calculate the longitude and latitude coordinate components of the UAV in the target direction based on the first compression ratio, the third difference, and the fourth coordinate component value, wherein the third coordinate component value is The system comprises: a UAV coded coordinate component value in the target direction; a fourth coordinate component value, which is the base station's latitude and longitude coordinate component value in the target direction; and a fourth intermediate variable, which is a preset constant multiplied by itself N times, where N is equal to the coordinate precision factor; a ninth calculation subunit, used to calculate the second compression ratio of the UAV coded coordinates based on the fourth intermediate variable and the third coordinate component value when the third coordinate component value is less than the fourth intermediate variable, and to calculate the latitude and longitude coordinate components of the UAV in the target direction based on the second compression ratio, the third difference, and the fourth coordinate component value; and a sixth determination subunit, used to determine the UAV's latitude and longitude coordinates based on the latitude and longitude coordinate components of the UAV in the longitude direction and the latitude and longitude coordinate components of the UAV in the latitude direction.
[0129] The aforementioned encoding device for UAV location information includes a processor and a memory. The aforementioned judgment unit 601, first acquisition unit 602, and encoding unit 603 are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0130] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can improve the success rate of transmitting high-precision UAV location information via BeiDou short message service in areas without mobile network coverage.
[0131] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0132] Embodiment 3 of the present invention provides a computer-readable storage medium storing a program thereon, which, when executed by a processor, implements a method for encoding and decoding UAV location information.
[0133] Embodiment 4 of the present invention provides a processor for running a program, wherein the program executes a method for encoding UAV location information and a method for decoding UAV location information during runtime.
[0134] Figure 7 This is a schematic diagram of an electronic device for encoding UAV location information according to Embodiment 5 of this application. Figure 7 As shown, Embodiment 5 of the present invention provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: receiving the latitude and longitude coordinates of the UAV sent by the UAV; determining whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station monitoring area, wherein the coordinate range is calculated based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station monitoring area; if the UAV's latitude and longitude coordinates are within the coordinate range, obtaining the current coordinate precision factor; and encoding the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's coded coordinates.
[0135] When the processor executes the program, it also performs the following steps: Before determining whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station's monitoring area, the above method further includes: determining the base station's longitude and latitude coordinates based on the base station's latitude and longitude coordinates; calculating the upper and lower latitude limits of the base station's monitoring area based on the base station's latitude coordinates, monitoring radius, and Earth's radius; calculating the upper and lower longitude limits of the base station's monitoring area based on the base station's longitude coordinates, monitoring radius, and Earth's radius; and determining the coordinate range of the base station's monitoring area based on the upper and lower latitude limits of the base station's monitoring area and the upper and lower longitude limits of the base station's monitoring area.
[0136] When the processor executes the program, it also performs the following steps: calculating the upper and lower latitude limits of the base station monitoring area based on the base station's latitude coordinates, monitoring radius, and Earth's radius, including: calculating the Earth's equatorial circumference based on the Earth's radius, and calculating a first intermediate variable based on the monitoring radius, the Earth's equatorial circumference, and the circumferential angle, wherein the first intermediate variable is used to quantify the angular displacement range corresponding to the change in the UAV's latitude coordinates within the base station monitoring area; summing the first intermediate variable and the base station's latitude coordinates to obtain the arithmetic value of the upper latitude limit; subtracting the first intermediate variable and the base station's latitude coordinates to obtain the arithmetic value of the lower latitude limit; and adjusting the arithmetic values of the upper and lower latitude limits according to the actual value of Earth's latitude to obtain the upper and lower latitude limits of the base station monitoring area.
[0137] When the processor executes the program, it also performs the following steps: calculating the upper and lower limits of longitude of the base station monitoring area based on the base station's longitude coordinates, monitoring radius, and Earth's radius, including: determining the latitude length of the base station's location based on the Earth's radius and the base station's latitude coordinates; when the latitude length is less than or equal to the monitoring radius, determining the arithmetic values of the upper and lower limits of longitude of the base station monitoring area based on preset angle values; when the latitude length is greater than the monitoring radius, calculating a second intermediate variable based on the latitude length, monitoring radius, and circumference angle, and calculating the arithmetic values of the upper and lower limits of longitude of the base station monitoring area based on the second intermediate variable and the base station's longitude coordinates, wherein the second intermediate variable is used to quantify the angular displacement range corresponding to the change in the longitude coordinates of the UAV within the base station monitoring area; adjusting the arithmetic values of the upper and lower limits of longitude based on the actual value of Earth's longitude to obtain the upper and lower limits of longitude of the base station monitoring area.
[0138] The processor, when executing the program, also performs the following steps: encoding the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's coded coordinates, including: calculating a first difference between the first coordinate component value and the second coordinate component value, wherein the first coordinate component value is the coordinate component value corresponding to the UAV's latitude and longitude coordinates in the target direction, and the second coordinate component value is the coordinate component value corresponding to the base station's latitude and longitude coordinates in the target direction, and the target direction belongs to either the longitude direction or the latitude direction; for the target direction, calculating a second difference between the upper limit and the lower limit of the coordinate component value in the coordinate range, and based on the first difference... The third intermediate variable is calculated using the second difference and the coordinate precision factor. This third intermediate variable represents the coordinate component value of the UAV relative to the base station's monitoring area in the target direction. If the first coordinate component value is greater than or equal to the second coordinate component value, the coordinate component value of the UAV in the target direction is determined based on the third intermediate variable. If the first coordinate component value is less than the second coordinate component value, the coordinate component value of the UAV in the target direction is determined based on the absolute value of the coordinate precision factor and the third intermediate variable. Finally, the UAV's coded coordinates are determined based on the coordinate component values of the UAV in the longitude direction and the coordinate component values of the UAV in the latitude direction.
[0139] When the processor executes the program, it also performs the following steps: After encoding the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor to obtain the UAV's coded coordinates, the method further includes: sending the UAV's coded coordinates and base station information to the target terminal, wherein the base station information includes at least: the coordinate range of the base station's monitoring area, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area; obtaining the current coordinate precision factor; and decoding the UAV's coded coordinates based on the Earth's radius, the base station's latitude and longitude coordinates, coordinate range, and coordinate precision factor so that the target terminal can determine the UAV's latitude and longitude coordinates.
[0140] The processor, when executing the program, also performs the following steps: decoding the UAV's coded coordinates based on the Earth's radius, base station latitude and longitude coordinates, coordinate range, and coordinate precision factor, so that the target terminal can determine the UAV's latitude and longitude coordinates. This includes: calculating a third difference between the upper and lower limits of the coordinate component values within the coordinate range, for the target direction, where the target direction belongs to either longitude or latitude; when the third coordinate component value is greater than or equal to a fourth intermediate variable, calculating a first compression ratio of the UAV's coded coordinates based on the difference between the fourth intermediate variable and the third coordinate component value, and the fourth intermediate variable; and calculating the UAV's latitude and longitude corresponding to the target direction based on the first compression ratio, the third difference, and the fourth coordinate component value. The coordinate components are defined as follows: the third coordinate component is the UAV's coded coordinate in the target direction; the fourth coordinate component is the base station's latitude and longitude coordinate in the target direction; and the fourth intermediate variable is a preset constant multiplied by itself N times, where N is equal to the coordinate precision factor. When the third coordinate component value is less than the fourth intermediate variable, the second compression ratio of the UAV's coded coordinate is calculated based on the fourth intermediate variable and the third coordinate component value. The latitude and longitude coordinate components of the UAV in the target direction are calculated based on the second compression ratio, the third difference, and the fourth coordinate component value. The latitude and longitude coordinates of the UAV are determined based on the latitude and longitude coordinate components of the UAV in the longitude direction and the latitude and longitude coordinate components of the UAV in the latitude direction.
[0141] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0142] This application also provides a computer program product, which, when executed on a data processing device, is adapted to perform the steps of an encoding method for initializing UAV location information as described above. This application also provides a computer program product, which, when executed on a data processing device, is adapted to perform the steps of a decoding method for initializing UAV location information as described above.
[0143] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0144] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0145] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0146] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0147] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0148] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0149] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0150] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0151] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0152] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for encoding the location information of a UAV, characterized in that, include: The system receives the latitude and longitude coordinates of a drone sent by the drone, and determines whether the drone's latitude and longitude coordinates are within the coordinate range of the base station's monitoring area based on the drone's latitude and longitude coordinates and the coordinate range of the base station's monitoring area. The coordinate range is calculated based on the Earth's radius, the base station's latitude and longitude coordinates, and the monitoring radius of the base station's monitoring area. If the latitude and longitude coordinates of the UAV are within the specified coordinate range, obtain the current coordinate precision factor. The latitude and longitude coordinates of the UAV are encoded based on the latitude and longitude coordinates of the base station, the coordinate range, and the coordinate precision factor to obtain the UAV coded coordinates.
2. The method according to claim 1, characterized in that, Before determining whether the UAV's latitude and longitude coordinates are within the coordinate range based on the UAV's latitude and longitude coordinates and the coordinate range of the base station monitoring area, the method further includes: The longitude and latitude coordinates of the base station are determined based on the base station's latitude and longitude coordinates; Calculate the upper and lower latitude limits of the base station monitoring area based on the base station's latitude coordinates, the monitoring radius, and the Earth's radius; The upper and lower limits of the longitude of the base station monitoring area are calculated based on the base station's longitude coordinates, the monitoring radius, and the Earth's radius. The coordinate range of the base station monitoring area is determined based on the upper and lower latitude limits of the base station monitoring area and the upper and lower longitude limits of the base station monitoring area.
3. The method according to claim 2, characterized in that, The upper and lower latitude limits of the base station monitoring area are calculated based on the base station's latitude coordinates, the monitoring radius, and the Earth's radius, including: The Earth's equatorial circumference is calculated based on the Earth's radius, and a first intermediate variable is calculated based on the monitoring radius, the Earth's equatorial circumference, and the circumferential angle. The first intermediate variable is used to quantify the angular displacement range corresponding to the change in the latitude coordinates of the UAV within the base station monitoring area. The first intermediate variable and the latitude coordinates of the base station are summed to obtain the upper limit arithmetic value of the latitude. The difference between the first intermediate variable and the latitude coordinates of the base station is calculated to obtain the lower limit arithmetic value of the latitude. Based on the actual value of Earth's latitude, the arithmetic values of the upper and lower latitude limits are adjusted to obtain the upper and lower latitude limits of the base station monitoring area.
4. The method according to claim 2, characterized in that, Calculate the upper and lower limits of the longitude of the base station monitoring area based on the base station's longitude coordinates, the monitoring radius, and the Earth's radius, including: The length of the latitude of the location of the base station is determined based on the Earth's radius and the base station's latitude coordinates; When the length of the latitude is less than or equal to the monitoring radius, the upper and lower arithmetic values of the longitude of the base station monitoring area are determined based on preset angle values. When the length of the parallel is greater than the monitoring radius, a second intermediate variable is calculated based on the length of the parallel, the monitoring radius and the circumference angle, and the upper and lower arithmetic values of the longitude of the base station monitoring area are calculated based on the second intermediate variable and the longitude coordinates of the base station. The second intermediate variable is used to quantify the angular displacement range corresponding to the change of the longitude coordinates of the UAV within the base station monitoring area. Based on the actual value of Earth's longitude, the arithmetic values of the upper and lower longitude limits are adjusted to obtain the upper and lower longitude limits of the monitoring area of the base station.
5. The method according to claim 1, characterized in that, The latitude and longitude coordinates of the UAV are encoded based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's coded coordinates, including: Calculate the first difference between the first coordinate component value and the second coordinate component value, wherein the first coordinate component value is the coordinate component value corresponding to the latitude and longitude coordinates of the UAV in the target direction, and the second coordinate component value is the coordinate component value corresponding to the latitude and longitude coordinates of the base station in the target direction, and the target direction belongs to either the longitude direction or the latitude direction; For the target direction, a second difference is calculated between the upper limit and the lower limit of the coordinate component values in the coordinate range. A third intermediate variable is calculated based on the first difference, the second difference, and the coordinate precision factor. The third intermediate variable represents the coordinate component values of the UAV relative to the base station monitoring area in the target direction. If the first coordinate component value is greater than or equal to the second coordinate component value, the coordinate component value of the UAV in the target direction is determined based on the third intermediate variable. If the first coordinate component value is less than the second coordinate component value, the coordinate component value of the UAV in the target direction is determined based on the coordinate precision factor and the absolute value of the third intermediate variable. The UAV's coded coordinates are determined based on the coordinate component values of the UAV in the longitude direction and the coordinate component values of the UAV in the latitude direction.
6. The method according to claim 1, characterized in that, After encoding the UAV's latitude and longitude coordinates based on the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor to obtain the UAV's coded coordinates, the method further includes: The coded coordinates of the UAV and the base station information are sent to the target terminal, wherein the base station information includes at least: the coordinate range of the base station monitoring area, the latitude and longitude coordinates of the base station, and the monitoring radius of the base station monitoring area; Get the current coordinate precision factor; The coded coordinates of the UAV are decoded based on the Earth's radius, the latitude and longitude coordinates of the base station, the coordinate range, and the coordinate precision factor, so that the target terminal can determine the latitude and longitude coordinates of the UAV.
7. The method according to claim 6, characterized in that, Decoding the UAV's coded coordinates based on the Earth's radius, the base station's latitude and longitude coordinates, the coordinate range, and the coordinate precision factor, so that the target terminal can determine the UAV's latitude and longitude coordinates, includes: For the target direction, calculate the third difference between the upper limit and the lower limit of the coordinate component values in the coordinate range, wherein the target direction belongs to either the longitude direction or the latitude direction; When the third coordinate component value is greater than or equal to the fourth intermediate variable, the first compression ratio of the UAV coded coordinates is calculated based on the difference between the fourth intermediate variable and the third coordinate component value, and the fourth intermediate variable. The latitude and longitude coordinate components of the UAV in the target direction are calculated based on the first compression ratio, the third difference, and the fourth coordinate component value. The third coordinate component value is the coordinate component value of the UAV coded coordinates in the target direction, and the fourth coordinate component value is the coordinate component value of the base station latitude and longitude coordinates in the target direction. The fourth intermediate variable is a preset constant multiplied by itself N times, and the value of N is equal to the coordinate precision factor. When the value of the third coordinate component is less than the value of the fourth intermediate variable, the second compression ratio of the UAV coded coordinates is calculated based on the fourth intermediate variable and the value of the third coordinate component. The latitude and longitude coordinate components of the UAV in the target direction are calculated based on the second compression ratio, the third difference and the value of the fourth coordinate component. The latitude and longitude coordinates of the UAV are determined based on the latitude and longitude coordinate components corresponding to the UAV in the longitude direction and the latitude and longitude coordinate components corresponding to the UAV in the latitude direction.
8. An encoding device for UAV location information, characterized in that, include: The judgment unit is used to receive the latitude and longitude coordinates of the UAV sent by the UAV, and to determine whether the latitude and longitude coordinates of the UAV are within the coordinate range based on the latitude and longitude coordinates of the UAV and the coordinate range of the base station monitoring area. The coordinate range is calculated based on the Earth's radius, the latitude and longitude coordinates of the base station and the monitoring radius of the base station monitoring area. The first acquisition unit is used to acquire the current coordinate precision factor when the latitude and longitude coordinates of the UAV are within the coordinate range; The encoding unit is used to encode the latitude and longitude coordinates of the UAV based on the latitude and longitude coordinates of the base station, the coordinate range, and the coordinate precision factor to obtain the UAV coded coordinates.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes stored computer instructions, wherein, when the computer instructions are executed by a processor, the encoding method for UAV location information according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the encoding method for UAV location information according to any one of claims 1 to 7.