A grid encoding and encoding conversion method for GNSS differential augmentation service
By generating and converting the grid codes for GNSS differential augmentation services, global interoperability issues are resolved, location privacy protection and seamless conversion of coding types are achieved, and transparent use and sharing of GNSS differential augmentation services are supported.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NAT AUTOMOBILE UNIV SPACE-TIME TECH (ANQING) CO LTD
- Filing Date
- 2022-11-21
- Publication Date
- 2026-06-16
Smart Images

Figure CN115792983B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of global satellite navigation and positioning system technology, and in particular to a grid coding and coding conversion method and storage medium for GNSS differential enhancement services. Background Technology
[0002] Currently, the most commonly used Global Navigation Satellite System (GNSS) differential augmentation service models and systems include PPP (Precise Point Positioning), RTK (Real-Time Kinematic), Network RTK (N-RTK), PPP-AR, and PPP-RTK models. Different GNSS differential augmentation service models and systems all employ methods to eliminate or correct multiple errors either holistically or individually within different spatial ranges.
[0003] However, for GNSS differential augmentation service models and systems that can be used, shared, and served globally, there is no unified global grid coding, which makes it impossible to support transparent use among publishers and users of GNSS differential augmentation services. Summary of the Invention
[0004] This invention provides a grid encoding and encoding conversion method for GNSS differential augmentation services, giving a unified encoding method for GNSS differential augmentation service grids, as well as conversion methods between encodings, so as to enable transparent use by publishers and users of GNSS differential augmentation services.
[0005] This invention provides a grid coding method for GNSS differential enhancement services, comprising: acquiring the location information of a target point; generating the eastern and western hemisphere information of the target point based on the location information; setting the number of grid layer iterations; and acquiring the grid location information of each layer as relative location information based on the location information and the number of grid layer iterations.
[0006] Determine the encoding type of the target point;
[0007] According to the encoding type, the first version number data is set to a first preset value; according to the Eastern and Western Hemisphere information, the parameter values of the first Eastern and Western Hemisphere data are set.
[0008] According to the encoding type, the number of grid level iterations is converted into corresponding encoded data and used as the parameter value of the first level data; the relative position information is converted into corresponding encoded data and used as the parameter value of the first relative position data.
[0009] The first version number data, the first eastern and western hemisphere data, the first level data, and the first relative position data are used as the grid code for the target point.
[0010] As a preferred embodiment, the grid coding method for GNSS differential augmentation services of the present invention sets the grid code for the target point based on the target point's location information, including version number data, Eastern and Western Hemisphere data, grid level iteration count, and relative position data. This grid code contains global spatial grid location information. GNSS augmentation service providers can set different grid level iteration counts and select different grid levels according to the specific augmentation service accuracy range. GNSS augmentation service users can directly use the grid code to obtain the specified differential service content from the GNSS augmentation service provider. By using global grid coding for interaction between GNSS augmentation service users and providers, the previous method of relying on precise location GGA is blocked, thus protecting the location privacy of GNSS augmentation service users.
[0011] As a preferred embodiment, the relative position information of the grid at each level is obtained based on the location information and the number of grid level iterations, specifically as follows:
[0012] Based on the location information and the number of grid level iterations, the position number of the target point in each grid at each level is obtained as relative position information; wherein, one level corresponds to one position number; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
[0013] As a preferred embodiment, the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids of each level have their own location numbers. Based on the target point location information and the set number of grid level iterations, the location number of the target point in each level of the grid is obtained. The GNSS augmentation service provider can set different number of grid level iterations for specific augmentation service accuracy ranges and select different levels of grids. The GNSS augmentation service user can directly use the grid encoding to obtain the specified differential service content from the GNSS augmentation service provider.
[0014] As a preferred embodiment, based on the encoding type, the number of grid level iterations is converted into corresponding encoded data and used as parameter values for the first level data; the relative position information is also converted into corresponding encoded data and used as parameter values for the first relative position data. Specifically:
[0015] If the encoding type is binary encoding;
[0016] The number of grid level iterations is converted into binary data and used as the parameter value of the first level data. Each position code of the relative position information is sequentially converted into binary data and used as the parameter value of the first relative position data.
[0017] If the encoding type is text encoding;
[0018] The number of iterations of the grid hierarchy is converted into ASCII data and used as the parameter value of the first Eastern and Western Hemisphere data. Each position code of the grid relative position information is sequentially converted into ASCII data and used as the parameter value of the first relative position data.
[0019] As a preferred embodiment, the grid coding method for GNSS differential enhancement services of the present invention provides binary coding and text coding. Each position encoding of the grid level iteration number and relative position information is converted into corresponding binary data or ASCII data. The position information is represented by binary data or ASCII data. The GNSS enhancement service provider can set different grid level iteration numbers and select different grid levels according to the specific enhancement service accuracy range. The GNSS enhancement service user can directly use grid codes of different coding types to obtain the specified differential service content from the GNSS enhancement service provider.
[0020] As a preferred embodiment, based on the encoding type, the first version number data is set to a first preset value; based on the Eastern and Western Hemisphere information, the parameter values of the first Eastern and Western Hemisphere data are set, specifically as follows:
[0021] Based on the location information of the target point, determine whether the target point is in the Eastern or Western Hemisphere as the Eastern or Western Hemisphere information;
[0022] If the encoding type is binary encoding;
[0023] Set the first version number to 0;
[0024] If the Eastern and Western Hemisphere information is the Eastern Hemisphere, then set the parameter value of the first Eastern and Western Hemisphere data to 0;
[0025] If the information about the eastern and western hemispheres is the western hemisphere, then set the parameter value of the first eastern and western hemisphere data to 1;
[0026] If the encoding type is text encoding;
[0027] Set the first version number data to S;
[0028] If the information about the Eastern and Western Hemispheres is the Eastern Hemisphere, then the parameter value of the first Eastern and Western Hemispheres data is set to E;
[0029] If the information about the eastern and western hemispheres is the western hemisphere, then the parameter value of the first eastern and western hemisphere data is set to W.
[0030] As a preferred embodiment, according to the encoding type, the parameter values of the first version number data and the first eastern and western hemisphere data are set to preset values corresponding to the encoding type. The first version number data or the first eastern and western hemisphere data is encoded with one byte or one character, and the location information is represented with binary data or ASCII data. The encoding steps are simple, so that the encoding of different encoding types can be converted.
[0031] Accordingly, in order to achieve the conversion between codes, embodiments of the present invention provide a grid code conversion method for GNSS differential enhancement services, including:
[0032] The location information of the target point is encoded using a grid coding method for GNSS differential enhancement service as described in this embodiment to obtain the first grid code;
[0033] Obtain the encoded value of the first grid; the encoded value includes: first version number data, first eastern and western hemisphere data, first level data, and first relative position data;
[0034] Determine the conversion encoding type of the first grid encoding;
[0035] According to the data mapping table and the conversion encoding type, the first version number data is converted into corresponding encoded data as the second version number data, and the first Eastern and Western Hemisphere data is converted into corresponding encoded data as the second Eastern and Western Hemisphere data; wherein, the data mapping table includes the correspondence between version number data of different encoding types and the correspondence between Eastern and Western Hemisphere data of different encoding types;
[0036] According to the conversion encoding type, the first level data is converted into corresponding encoded data as the second level data through numerical conversion, and the first relative position data is converted into corresponding encoded data as the second relative position data.
[0037] The second version number data, the second eastern and western hemisphere data, the second level data, and the second relative position data are used as the first grid code after conversion.
[0038] As a preferred embodiment, the grid coding conversion method for GNSS differential enhancement services of the present invention sets version number data, eastern and western hemisphere data, hierarchical data, and relative position data in the grid coding, which includes spatial grid position information worldwide. Using a data mapping table, the first version number data and the first eastern and western hemisphere data of the first grid code are converted into corresponding coded data. Through numerical conversion, the hierarchical data and relative position data are directly converted into corresponding coded data, completing the coding conversion of version number data, eastern and western hemisphere data, hierarchical data, and relative position data. When the GNSS enhancement service provider provides the specified differential service content, the GNSS enhancement service user can use the grid coding conversion method to convert the differential service content into an applicable coding type, providing convenience for transparent use by both the publisher and user of the GNSS differential enhancement service.
[0039] As a preferred embodiment, based on the data mapping table and the conversion encoding type, the first version number data is converted into corresponding encoded data to serve as the second version number data, and the first Eastern and Western Hemisphere data is converted into corresponding encoded data to serve as the second Eastern and Western Hemisphere data. Specifically:
[0040] Determine the encoding type of the first grid;
[0041] If the encoding type of the first grid is binary encoding, the conversion encoding type is text encoding;
[0042] According to the data mapping table, the first version number data is converted into the corresponding ASCII character data and used as the second version number data, and the first Eastern and Western Hemisphere data is converted into the corresponding ASCII character data and used as the second Eastern and Western Hemisphere data.
[0043] If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding;
[0044] According to the data mapping table, the first version number data is converted into the corresponding binary byte data as the second version number data, and the first Eastern and Western Hemisphere data is converted into the corresponding binary byte data as the second Eastern and Western Hemisphere data.
[0045] As a preferred embodiment, the grid encoding conversion method for GNSS differential enhancement services of the present invention provides a data mapping table for converting the first version number data and the first eastern and western hemisphere data of the first grid encoding into corresponding ASCII character data or binary byte data when converting from binary encoding to text encoding or from text encoding to binary encoding. The data mapping table includes the correspondence between version number data of different encoding types and the correspondence between eastern and western hemisphere data of different encoding types. After completing the encoding conversion of the version number data and the eastern and western hemisphere data, when the GNSS enhancement service provider provides the specified differential service content, the GNSS enhancement service user can use the grid encoding conversion method to convert the differential service content into an applicable text encoding or binary encoding type, facilitating transparent use by both the publisher and user of the GNSS differential enhancement service.
[0046] As a preferred embodiment, according to the conversion encoding type, the first-level data is converted into corresponding encoded data as the second-level data through numerical conversion, and the first relative position data is converted into corresponding encoded data as the second relative position data, specifically as follows:
[0047] Determine the encoding type of the first grid;
[0048] If the encoding type of the first grid is binary encoding, the conversion encoding type is text encoding;
[0049] The first-level data is converted into ASCII characters as the second-level data, and the first relative position data is converted into ASCII characters as the second relative position data.
[0050] If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding;
[0051] The first-level data is converted into binary values as the second-level data, and the first relative position data is converted into binary values as the second relative position data.
[0052] As a preferred embodiment, the grid encoding conversion method for GNSS differential enhancement services of the present invention provides encoded data that directly converts hierarchical data and relative position data into corresponding ASCII character data or binary byte data through numerical conversion when converting from binary encoding to text encoding or from text encoding to binary encoding. This completes the encoding conversion of hierarchical data and relative position data. When the GNSS enhancement service provider provides the specified differential service content, the GNSS enhancement service user can use the grid encoding conversion method to convert the differential service content into an applicable text encoding or binary encoding type, facilitating transparent use by both the publisher and user of the GNSS differential enhancement service.
[0053] As a preferred embodiment, the first-level data is converted into ASCII characters to serve as the second-level data, and the first relative position data is converted into ASCII characters to serve as the second relative position data. Specifically:
[0054] Convert the binary values of the first-level data to ASCII values to serve as the second-level data;
[0055] Convert the binary value of each position number of the first relative position data into the corresponding ASCII value to obtain several ASCII values as the second relative position data;
[0056] The first level data includes the number of grid levels; the first relative position data includes the position number of each grid at each level, with one position number corresponding to one level; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
[0057] As a preferred embodiment, when converting from binary encoding to text encoding, the binary values of the first-level data are directly converted into ASCII values as the second-level data; the binary values of each position number of the first relative position data are converted into corresponding ASCII values, resulting in several ASCII values as the second relative position data; this completes the encoding conversion of the hierarchical data and relative position data from binary encoding to text encoding. When the GNSS enhancement service provider provides the specified differential service content, the GNSS enhancement service user can use the grid encoding conversion method to convert the differential service content into a suitable text encoding type, providing convenience for transparent use by both the publisher and user of the GNSS differential enhancement service.
[0058] As a preferred embodiment, the first-level data is converted into binary values to serve as the second-level data, and the first relative position data is converted into binary values to serve as the second relative position data, specifically as follows:
[0059] Convert the ASCII values of the first-level data into binary values to serve as the second-level data;
[0060] Convert the ASCII value of each position number of the first relative position data into the corresponding binary value to obtain several binary values as the second relative position data;
[0061] The first level data includes the number of grid levels; the first relative position data includes the position number of each grid at each level, with one position number corresponding to one level; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
[0062] As a preferred embodiment, when converting from text-based encoding to binary encoding, the ASCII values of the first-level data are directly converted into binary values as the second-level data; the ASCII values of each position number of the first relative position data are converted into corresponding binary values to obtain several binary values as the second relative position data; the encoding conversion of the hierarchical data and relative position data from text-based encoding to binary encoding is completed. When the GNSS enhancement service provider provides the specified differential service content, the GNSS enhancement service user can use the grid encoding conversion method to convert the differential service content into an applicable binary encoding type, providing convenience for transparent use by both the publisher and user of GNSS differential enhancement services.
[0063] Accordingly, the present invention also provides a computer-readable storage medium comprising a stored computer program; wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform a grid coding method for GNSS differential enhancement service as described in the present invention or a grid coding conversion method for GNSS differential enhancement service as described in the present invention. Attached Figure Description
[0064] Figure 1 This is a flowchart illustrating an embodiment of the grid coding method for GNSS differential enhancement services provided by the present invention;
[0065] Figure 2 This is a binary encoding schematic diagram of an embodiment of the grid coding method for GNSS differential enhancement service provided by the present invention;
[0066] Figure 3 This is a text-based encoding schematic diagram of an embodiment of the grid encoding method for GNSS differential enhancement services provided by the present invention;
[0067] Figure 4 This is a flowchart illustrating an embodiment of the grid coding conversion method for GNSS differential enhancement services provided by the present invention. Detailed Implementation
[0068] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0069] Example 1
[0070] Please refer to Figure 1 The grid coding method for GNSS differential enhancement service provided in this embodiment of the invention includes steps S101-S103:
[0071] Step S101: Obtain the location information of the target point; generate the eastern and western hemisphere information of the target point based on the location information; set the number of grid layer iterations; obtain the grid location information of each layer as relative location information based on the location information and the number of grid layer iterations.
[0072] In this embodiment, the relative position information of the grid at each level is obtained based on the location information and the number of grid level iterations, specifically as follows:
[0073] Based on the location information and the number of grid level iterations, the position number of the target point in each grid at each level is obtained as relative position information; wherein, one level corresponds to one position number; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
[0074] In this embodiment, the global spatial range is divided into two hemispheres: the eastern hemisphere, which includes longitudes from 0°E to 180°E and latitudes from 90°S to 90°N; and the western hemisphere, which includes longitudes from 0°W to 180°W and latitudes from 90°S to 90°N. Based on the target point's location information, if it is determined that the target point is in the eastern or western hemisphere, the eastern or western hemisphere information for the target point is generated.
[0075] The eastern and western hemispheres are divided into 8 grids of the first level, each with a 2×2 average. Each grid of the previous level is then divided into 8 grids of the next level, and so on. The four grids obtained after each 2×2 division are numbered clockwise as 0, 1, 2, and 3.
[0076] In this embodiment, the relative position information of the grid at each level is obtained based on the location information and the number of grid level iterations, specifically as follows:
[0077] Based on the location information, the position number of each grid level is obtained. For example, the grid level iteration number is set to 13. If the target point is determined to be in the Eastern Hemisphere, the first level divides the Eastern Hemisphere into 4 grids on an equal basis. The position numbers of each grid are 0, 1, 2, and 3, respectively, counting clockwise. The position number of the grid in the 4 grids of the first level in the Eastern Hemisphere is obtained as the grid relative position information of the first level. If the position number of the grid in the first level is 0, the second level divides the 0 grid in the first level into 4 grids on an equal basis. The position numbers of each grid are 0, 1, 2, and 3, respectively, counting clockwise. The position number of the grid in the 4 grids of the second level is obtained as the grid relative position information of the second level, and so on, until the grid relative position information of the 13th level is obtained.
[0078] Step S102: Determine the encoding type of the target point;
[0079] According to the encoding type, the first version number data is set to a first preset value; according to the Eastern and Western Hemisphere information, the parameter values of the first Eastern and Western Hemisphere data are set.
[0080] According to the encoding type, the number of grid level iterations is converted into corresponding encoded data and used as the parameter value of the first level data. The relative position information is also converted into corresponding encoded data and used as the parameter value of the first relative position data.
[0081] In this embodiment, according to the encoding type, the number of grid level iterations is converted into corresponding encoded data and used as parameter values for the first level data; the relative position information is converted into corresponding encoded data and used as parameter values for the first relative position data. Specifically:
[0082] If the encoding type is binary encoding;
[0083] The number of grid level iterations is converted into binary data and used as the parameter value of the first level data. Each position code of the relative position information is sequentially converted into binary data and used as the parameter value of the first relative position data.
[0084] If the encoding type is text encoding;
[0085] The number of iterations of the grid hierarchy is converted into ASCII data and used as the parameter value of the first Eastern and Western Hemisphere data. Each position code of the grid relative position information is sequentially converted into ASCII data and used as the parameter value of the first relative position data.
[0086] In this embodiment, the first version number data is set to a first preset value according to the encoding type; the parameter values of the first eastern and western hemisphere data are set according to the eastern and western hemisphere information, specifically as follows:
[0087] Based on the location information of the target point, determine whether the target point is in the Eastern or Western Hemisphere as the Eastern or Western Hemisphere information;
[0088] If the encoding type is binary encoding;
[0089] Set the first version number to 0;
[0090] If the Eastern and Western Hemisphere information is the Eastern Hemisphere, then set the parameter value of the first Eastern and Western Hemisphere data to 0;
[0091] If the information about the eastern and western hemispheres is the western hemisphere, then set the parameter value of the first eastern and western hemisphere data to 1;
[0092] If the encoding type is text encoding;
[0093] Set the first version number data to S;
[0094] If the information about the Eastern and Western Hemispheres is the Eastern Hemisphere, then the parameter value of the first Eastern and Western Hemispheres data is set to E;
[0095] If the information about the eastern and western hemispheres is the western hemisphere, then the parameter value of the first eastern and western hemisphere data is set to W.
[0096] In this embodiment, the number of grid level iterations is set to 13;
[0097] Please refer to Figure 2 If the encoding type is binary encoding, the encoding size is 32 bits, represented by 0-31, corresponding to a 32-bit integer type in small segment mode. The 32 bits are divided into 4 groups from high to low: 1 bit for the first version number data, 1 bit for the first hemisphere data, 2 bits for the first level data, and 26 bits for the first relative position data of 13 levels.
[0098] The first bit is set to the version number data, which is 0 by default; the second bit is set to the information of the eastern and western hemispheres, with 0 for the western hemisphere and 1 for the eastern hemisphere; the third to sixth bits are set to the grid level number, which is the binary value 1101 (binary) of 13 (decimal); the relative position information of the 13 grid levels is represented by 13 two-bit binary numbers. For example, the relative position information of the grid is 0, 1, 2 or 3, which is represented by 00, 01, 10 or 11 two-bit binary numbers respectively; the seventh to 32nd bits are set to the position information of the 13 grid levels respectively.
[0099] Please refer to Figure 3 If the encoding type is text encoding, the encoding is represented by 16 ASCII characters. The string is divided into 1 character for the first version number data, 1 character for the first hemisphere data, 1 character for the first level data, and 13 characters for the first relative position data of 13 levels.
[0100] The first character is set to the information of the Western and Eastern Hemispheres, with W for the Western Hemisphere and E for the Eastern Hemisphere; the second character is set to the version number data, which defaults to S; the third character is set to the grid level number, which is 13 (decimal) ASCII characters S; the relative position information of the 13 grid levels is represented by 13 1-digit ASCII characters, for example, the relative position information of the grid is 0, 1, 2 or 3, which is represented by 1 ASCII character '0', '1', '2' or '3' respectively; the fourth to sixteenth characters are set to the position information of the 13 grid levels respectively.
[0101] Step S103: Use the first version number data, the first eastern and western hemisphere data, the first level data, and the first relative position data as the grid code of the target point.
[0102] Implementing the embodiments of the present invention has the following effects:
[0103] The grid coding method for GNSS differential augmentation services of this invention sets the grid code for the target point based on its location information, including version number data, Eastern and Western Hemisphere data, grid level iteration count, and relative position data. This grid code contains global spatial grid location information. GNSS augmentation service providers can set different grid level iteration counts and select different grid levels within a specific augmentation service accuracy range. GNSS augmentation service users can directly use the grid code to obtain specific differential service content from the GNSS augmentation service provider. By using global grid coding for interaction between GNSS augmentation service users and providers, the previous method of relying on precise location GGA is eliminated, thus protecting the location privacy of GNSS augmentation service users.
[0104] Example 2
[0105] Please refer to Figure 4 The present invention provides a grid coding conversion method for GNSS differential enhancement services, comprising steps S201-S204:
[0106] Step S201: Encode the location information of the target point using a grid coding method for GNSS differential enhancement service as described in the embodiment to obtain a first grid code; obtain the coding value of the first grid code; the coding value includes: first version number data, first eastern and western hemisphere data, first level data and first relative position data;
[0107] Step S202: Determine the conversion encoding type of the first grid encoding;
[0108] According to the data mapping table and the conversion encoding type, the first version number data is converted into corresponding encoded data as the second version number data, and the first Eastern and Western Hemisphere data is converted into corresponding encoded data as the second Eastern and Western Hemisphere data; wherein, the data mapping table includes the correspondence between version number data of different encoding types and the correspondence between Eastern and Western Hemisphere data of different encoding types.
[0109] In this embodiment, the first grid code is obtained, wherein the number of grid level iterations of the first grid code is 13;
[0110] If the encoding type is binary encoding, the encoding size is 32 bits, represented by 0-31, corresponding to a 32-bit integer type in small segment mode. The 32 bits are divided into 4 groups from high to low: 1 bit for the first version number data, 1 bit for the first hemisphere data, 2 bits for the first level data, and 26 bits for the first relative position data of 13 levels.
[0111] If the encoding type is text encoding, the encoding is represented by 16 ASCII characters. The string is divided into the first version number data of 1 character, the first hemisphere data of 1 character, the first level data of 1 character, and the first relative position data of 13 levels of 13 characters from left to right.
[0112] In this embodiment, according to the data mapping table and the conversion encoding type, the first version number data is converted into corresponding encoded data as the second version number data, and the first Eastern and Western Hemisphere data is converted into corresponding encoded data as the second Eastern and Western Hemisphere data. Specifically:
[0113] Determine the encoding type of the first grid;
[0114] If the encoding type of the first grid is binary encoding, the conversion encoding type is text encoding;
[0115] According to the data mapping table, the first version number data is converted into the corresponding ASCII character data and used as the second version number data, and the first Eastern and Western Hemisphere data is converted into the corresponding ASCII character data and used as the second Eastern and Western Hemisphere data.
[0116] If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding;
[0117] According to the data mapping table, the first version number data is converted into the corresponding binary byte data as the second version number data, and the first Eastern and Western Hemisphere data is converted into the corresponding binary byte data as the second Eastern and Western Hemisphere data.
[0118] In this embodiment, if the encoding type of the first grid encoding is binary encoding, the conversion encoding type is text encoding;
[0119] Based on the data mapping table, determine whether the first version number data of the first bit is 0. If it is, convert the corresponding 'S' character; otherwise, the conversion fails.
[0120] Determine the first hemisphere data of the second bit. If the first hemisphere data is 0, convert the corresponding character 'W'. If the first hemisphere data is 1, convert the corresponding character 'E'.
[0121] If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding;
[0122] According to the data mapping table, if the first character's data in the first hemisphere is the character 'W', then convert the corresponding binary value to 0; if the first character's data in the first hemisphere is the character 'E', then convert the corresponding binary value to 1.
[0123] Determine if the first version number data of the second character is the character 'S'. If it is, convert the corresponding binary value to 0. Otherwise, the conversion fails.
[0124] Step S203: According to the conversion encoding type, the first level data is converted into corresponding encoded data as the second level data through numerical conversion, and the first relative position data is converted into corresponding encoded data as the second relative position data.
[0125] In this embodiment, according to the conversion encoding type, the first-level data is converted into corresponding encoded data as the second-level data through numerical conversion, and the first relative position data is converted into corresponding encoded data as the second relative position data. Specifically:
[0126] Determine the encoding type of the first grid;
[0127] If the encoding type of the first grid is binary encoding, the conversion encoding type is text encoding;
[0128] The first-level data is converted into ASCII characters as the second-level data, and the first relative position data is converted into ASCII characters as the second relative position data.
[0129] If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding;
[0130] The first-level data is converted into binary values as the second-level data, and the first relative position data is converted into binary values as the second relative position data.
[0131] In this embodiment, the first-level data is converted into ASCII characters as the second-level data, and the first relative position data is converted into ASCII characters as the second relative position data, specifically as follows:
[0132] Convert the binary values of the first-level data to ASCII values to serve as the second-level data;
[0133] Convert the binary value of each position number of the first relative position data into the corresponding ASCII value to obtain several ASCII values as the second relative position data;
[0134] The first level data includes the number of grid levels; the first relative position data includes the position number of each grid at each level, with one position number corresponding to one level; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
[0135] In this embodiment, the first-level data is converted into binary values as the second-level data, and the first relative position data is converted into binary values as the second relative position data, specifically as follows:
[0136] Convert the ASCII values of the first-level data into binary values to serve as the second-level data;
[0137] Convert the ASCII value of each position number of the first relative position data into the corresponding binary value to obtain several binary values as the second relative position data;
[0138] The first level data includes the number of grid levels; the first relative position data includes the position number of each grid at each level, with one position number corresponding to one level; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
[0139] In this embodiment, if the encoding type of the first grid encoding is binary encoding, the conversion encoding type is text encoding;
[0140] The first-level data 1101 (binary) of the 3rd to 6th bits is converted into the corresponding ASCII character S (ASCII character);
[0141] The 7th to 32nd bits of the encoding consist of 13 two-bit binary numbers, representing the relative position information of the grid at 13 levels. Each two-bit binary number is then converted into the corresponding ASCII character.
[0142] If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding;
[0143] The first-level data S (ASCII character) of the third character is converted to the corresponding binary value 1101 (binary);
[0144] The 4th to 16th characters of the encoding are each composed of 13 ASCII characters, representing the relative position information of the grid at 13 levels. Each ASCII character is converted into its corresponding binary value in turn.
[0145] Step S204: Use the second version number data, the second eastern and western hemisphere data, the second level data, and the second relative position data as the first grid code after conversion.
[0146] Implementing the embodiments of the present invention has the following effects:
[0147] The grid coding conversion method for GNSS differential enhancement services of the present invention includes grid coding data such as version number data, eastern and western hemisphere data, hierarchical data, and relative position data, encompassing global spatial grid location information. Using a data mapping table, the first version number data and first eastern and western hemisphere data of the first grid code are converted into corresponding coded data. Through numerical conversion, the hierarchical data and relative position data are directly converted into corresponding coded data, completing the encoding conversion of version number data, eastern and western hemisphere data, hierarchical data, and relative position data. When a GNSS enhancement service provider offers specified differential service content, GNSS enhancement service users can use the grid coding conversion method to convert the differential service content into an applicable coding type, facilitating transparent use by both publishers and users of GNSS differential enhancement services.
[0148] Example 3
[0149] Accordingly, the present invention also provides a computer-readable storage medium comprising a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the grid coding conversion method for GNSS differential enhancement service and the grid coding conversion method for GNSS differential enhancement service as described in any of the above embodiments.
[0150] For example, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.
[0151] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0152] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0153] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created based on the use of the mobile terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart memory card (SMC), secure digital card (SD), flash memory card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0154] Wherein, if the modules / units integrated into the terminal device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0155] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A grid coding method for GNSS differential enhancement services, characterized in that, include: Obtain the location information of the target point, and generate the eastern and western hemisphere information of the target point based on the location information; Set the number of grid level iterations; Based on the location information and the number of grid level iterations, the grid location information of each level is obtained as relative location information; Determine the encoding type of the target point; According to the encoding type, the first version number data is set to a first preset value; Based on the information about the eastern and western hemispheres, set the parameter values for the first eastern and western hemisphere data; According to the encoding type, the number of grid level iterations is converted into corresponding encoded data and used as the parameter value of the first level data; the relative position information is converted into corresponding encoded data and used as the parameter value of the first relative position data. The first version number data, the first eastern and western hemisphere data, the first level data, and the first relative position data are used as the grid code for the target point.
2. The grid coding method for GNSS differential enhancement services as described in claim 1, characterized in that, The step of obtaining the relative position information of the grid at each level based on the position information and the number of grid level iterations specifically involves: Based on the location information and the number of grid level iterations, the position number of the target point in each grid at each level is obtained as relative position information; wherein, one level corresponds to one position number; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
3. The grid coding method for GNSS differential enhancement services as described in claim 2, characterized in that, The step of converting the grid level iteration count into corresponding encoded data according to the encoding type, and using it as the parameter value of the first level data, and converting the relative position information into corresponding encoded data, and using it as the parameter value of the first relative position data, specifically involves: If the encoding type is binary encoding; The number of grid level iterations is converted into binary data and used as the parameter value of the first level data. Each position code of the relative position information is sequentially converted into binary data and used as the parameter value of the first relative position data. If the encoding type is text encoding; The number of iterations of the grid hierarchy is converted into ASCII data and used as the parameter value of the first Eastern and Western Hemisphere data. Each position code of the grid relative position information is sequentially converted into ASCII data and used as the parameter value of the first relative position data.
4. The grid coding method for GNSS differential enhancement services as described in claim 1, characterized in that, The first version number data is set to a first preset value according to the encoding type; the parameter values of the first eastern and western hemisphere data are set according to the eastern and western hemisphere information, specifically as follows: Based on the location information of the target point, determine whether the target point is in the Eastern or Western Hemisphere as the Eastern or Western Hemisphere information; If the encoding type is binary encoding; Set the first version number to 0; If the Eastern and Western Hemisphere information is the Eastern Hemisphere, then set the parameter value of the first Eastern and Western Hemisphere data to 0; If the information about the eastern and western hemispheres is the western hemisphere, then set the parameter value of the first eastern and western hemisphere data to 1; If the encoding type is text encoding; Set the first version number data to S; If the information about the Eastern and Western Hemispheres is the Eastern Hemisphere, then the parameter value of the first Eastern and Western Hemispheres data is set to E; If the information about the eastern and western hemispheres is the western hemisphere, then the parameter value of the first eastern and western hemisphere data is set to W.
5. A grid coding conversion method for GNSS differential enhancement services, characterized in that, include: The location information of the target point is encoded using a grid coding method for GNSS differential enhancement service as described in any one of claims 1 to 4 to obtain a first grid code; Obtain the encoded value of the first grid; the encoded value includes: first version number data, first eastern and western hemisphere data, first level data, and first relative position data; Determine the conversion encoding type of the first grid encoding; According to the data mapping table and the conversion encoding type, the first version number data is converted into corresponding encoded data as the second version number data, and the first Eastern and Western Hemisphere data is converted into corresponding encoded data as the second Eastern and Western Hemisphere data; wherein, the data mapping table includes the correspondence between version number data of different encoding types and the correspondence between Eastern and Western Hemisphere data of different encoding types; According to the conversion encoding type, the first level data is converted into corresponding encoded data as the second level data through numerical conversion, and the first relative position data is converted into corresponding encoded data as the second relative position data. The second version number data, the second eastern and western hemisphere data, the second level data, and the second relative position data are used as the first grid code after conversion.
6. The grid coding conversion method for GNSS differential enhancement services as described in claim 5, characterized in that, The step of converting the first version number data into corresponding encoded data as the second version number data, and converting the first Eastern and Western Hemisphere data into corresponding encoded data as the second Eastern and Western Hemisphere data, based on the data mapping table and the conversion encoding type, specifically involves: Determine the encoding type of the first grid; If the encoding type of the first grid is binary encoding, the conversion encoding type is text encoding; According to the data mapping table, the first version number data is converted into the corresponding ASCII character data and used as the second version number data, and the first Eastern and Western Hemisphere data is converted into the corresponding ASCII character data and used as the second Eastern and Western Hemisphere data. If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding; According to the data mapping table, the first version number data is converted into the corresponding binary byte data as the second version number data, and the first Eastern and Western Hemisphere data is converted into the corresponding binary byte data as the second Eastern and Western Hemisphere data.
7. A grid coding conversion method for GNSS differential enhancement services as described in claim 5, characterized in that, The step of converting the first-level data into corresponding coded data as the second-level data through numerical conversion according to the conversion encoding type, and converting the first relative position data into corresponding coded data as the second relative position data, specifically involves: Determine the encoding type of the first grid; If the encoding type of the first grid is binary encoding, the conversion encoding type is text encoding; The first-level data is converted into ASCII characters to serve as the second-level data, and the first relative position data is converted into ASCII characters to serve as the second relative position data. If the encoding type of the first grid is text encoding, the conversion encoding type is binary encoding; The first-level data is converted into binary values as the second-level data, and the first relative position data is converted into binary values as the second relative position data.
8. The grid coding conversion method for GNSS differential enhancement services as described in claim 7, characterized in that, The step of converting the first-level data into ASCII characters as the second-level data, and converting the first relative position data into ASCII characters as the second relative position data, specifically involves: Convert the binary values of the first-level data to ASCII values to serve as the second-level data; Convert the binary value of each position number of the first relative position data into the corresponding ASCII value to obtain several ASCII values as the second relative position data; The first level data includes the number of grid levels; the first relative position data includes the position number of each grid at each level, with one position number corresponding to one level; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
9. A grid coding conversion method for GNSS differential enhancement services as described in claim 7, characterized in that, The step of converting the first-level data into binary values as the second-level data, and converting the first relative position data into binary values as the second relative position data, specifically involves: Convert the ASCII values of the first-level data to binary values to serve as the second-level data; The ASCII values of each position number of the first relative position data are converted into corresponding binary values to obtain several binary values as the second relative position data. The first level data includes the number of grid levels; the first relative position data includes the position number of each grid at each level, with one position number corresponding to one level; the region of each level is divided into several grids on average, and the region of the next level is any grid of the previous level; all grids in each level have their own position numbers, and grids at the same position in each level have the same position number.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program; wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform a grid coding method for a GNSS differential enhancement service as described in any one of claims 1 to 4, or a grid coding conversion method for a GNSS differential enhancement service as described in any one of claims 5 to 9.