Positioning method and electronic equipment
By using satellite elevation angle, azimuth angle, and grid data to select alternative positioning locations in scenarios where satellite signals are blocked, the problem of reduced positioning accuracy caused by satellite signal blockage is solved, and high-precision positioning is achieved in densely populated urban areas with tall buildings.
Patent Information
- Application Number
- CN202411030187.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-29
- Publication Date
- 2024-11-01
AI Technical Summary
In scenarios where satellite signals are blocked, the positioning accuracy of existing GNSS positioning technology is reduced, making it impossible to accurately locate the position of electronic devices.
Multiple candidate locations are determined by the first electronic device. The satellite's elevation and azimuth angles, grid data, and signal parameters are used to select a candidate location with higher positioning accuracy. The initial location is then corrected based on this location information to improve positioning accuracy.
In scenarios where satellite signals are blocked, it can guarantee or even improve positioning accuracy, accurately locating the position of electronic devices, especially in densely populated urban areas with tall buildings.
Smart Images

Figure CN118884491A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 201910810205.9, and the original application date is August 29, 2019. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The embodiments of the present application relate to the field of positioning technology, and in particular to a positioning method and electronic equipment. Background Art
[0003] The global navigation satellite system (GNSS) is a wireless positioning system that uses distance measurement to locate the position of electronic devices. For example, GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS), the satellite based augmentation system (SBAS), and / or the Galileo satellite navigation system (GALILEO).
[0004] The principle of GNSS positioning is as follows: Satellites send broadcast signals in real time. Electronic devices (such as mobile phones) can determine the distance between the electronic device and the satellite (called pseudo-range) based on the broadcast signals. Figure 1 As shown in the figure, the distance between the mobile phone and satellite 1 is d1, the distance between the mobile phone and satellite 2 is d2, the distance between the mobile phone and satellite 3 is d3, and the distance between the mobile phone and satellite 4 is d4. Then, the electronic device can find three spheres with each satellite as the center and the corresponding distance as the radius based on the precise distance between the three satellites and the electronic device. The mobile phone determines the intersection of these three spheres on the surface of the earth as the location of the mobile phone. For example, Figure 2 As shown, the position of the mobile phone is: the intersection of a sphere with satellite 1 as the center and d1 as the radius, a sphere with satellite 2 as the center and d2 as the radius, and a sphere with satellite 3 as the center and d3 as the radius on the surface of the earth.
[0005] From the above description, we can know that the mobile phone can accurately calculate the position of the mobile phone based on the precise distance between multiple satellites and the mobile phone. In other words, the more accurate the pseudo-range measured by the mobile phone based on the broadcast signal, the higher the positioning accuracy of the mobile phone.
[0006] However, in some scenarios (e.g. Figure 3 In the scenario of densely populated urban high-rise buildings shown in the figure, the broadcast signal transmitted by the satellite will be blocked, and the broadcast signal can only be received by the mobile phone after being reflected by the obstruction. For example, the broadcast signals transmitted by satellite 2 and satellite 3 need to be reflected by the high-rise buildings before they can be received by the mobile phone. In this case, the pseudo-range between the satellite and the mobile phone measured by the mobile phone is not the straight-line distance between satellite 2 and the mobile phone, but the distance after the broadcast signal is reflected. The measurement error of the pseudo-range is large, which will seriously affect the positioning accuracy of the mobile phone. For example, Figure 3 As shown, the actual location of the user holding the mobile phone is far away from the positioning location of the mobile phone. Summary of the invention
[0007] The embodiments of the present application provide a positioning method and an electronic device, so that the electronic device can still ensure or even improve the positioning accuracy in a scenario where the signal transmitted by the satellite is easily blocked.
[0008] In a first aspect, an embodiment of the present application provides a positioning method, which can be used by a first electronic device to locate a second electronic device. The second electronic device can receive broadcast signals transmitted by multiple satellites. The method may include: the first electronic device obtains a first position of the second electronic device; then, the first electronic device determines multiple candidate positions with the first position as the center point; the first electronic device selects multiple positioning candidate positions from multiple candidate positions based on the altitude angles and azimuth angles of multiple satellites relative to the multiple candidate positions, the grid data corresponding to the multiple candidate positions, and the signal parameters of the broadcast signals sent by the multiple satellites received by the second electronic device; finally, the first electronic device corrects the first position based on the position information of the multiple positioning candidate positions to output the corrected second position.
[0009] In one implementation, the first position may be determined by positioning of the second electronic device. The grid data corresponding to each candidate position includes position information and a sky occlusion curve. The sky occlusion curve of an candidate position is used to indicate the altitude angle and azimuth angle of multiple obstructions located around the candidate position relative to the candidate position.
[0010] It can be understood that since the grid data corresponding to the candidate position includes a sky occlusion curve, and the sky occlusion curve of an alternative position is used to indicate the altitude angle and azimuth angle of multiple obstructions located around the alternative position relative to the alternative position; therefore, the first electronic device can obtain the situation of satellite signals being blocked at each alternative position, that is, whether the broadcast signal transmitted by the satellite can be received by the second electronic device at the alternative position through straight-line transmission, based on the altitude angle and azimuth angle of multiple satellites relative to multiple alternative positions, the grid data corresponding to multiple alternative positions, and the signal parameters of the broadcast signals sent by multiple satellites received by the second electronic device. The positioning accuracy of multiple positioning alternative positions selected by the first electronic device from multiple alternative positions based on the situation of satellite signals being blocked at each alternative position is higher. Therefore, compared with the first position obtained by the second electronic device, the positioning accuracy of the second position obtained by the first electronic device correcting the first position based on the position information of the multiple positioning alternative positions is higher.
[0011] In summary, through the method of the embodiment of the present application, the electronic device can still ensure or even improve the positioning accuracy in a scenario where the signal transmitted by the satellite is easily blocked.
[0012] In combination with the first aspect, in a possible design, the grid data corresponding to the above-mentioned multiple positioning candidate positions may also include: road signs of the roads where the positioning candidate positions located on the road are located among the multiple positioning candidate positions. The method of the embodiment of the present application may also include: the first electronic device determines that the second electronic device is located on one side of the road centerline of the positioning road according to the road data corresponding to the road signs of the roads where some or all of the positioning candidate positions located on the road are located. Among them, the above-mentioned road data may include at least one of the coordinates of the starting point of the road, the road width information and the road direction information. The above-mentioned positioning road is the road where the second electronic device is located. That is to say, through the method of the embodiment of the present application, the first electronic device can not only improve the positioning accuracy of the second electronic device, but also accurately locate which side of the road the second electronic device is located. In this way, it can avoid the problem that in some scenarios, other users cannot find the user of the second electronic device in time because it is impossible to accurately locate which side of the road the second electronic device is located.
[0013] In combination with the first aspect, in a possible design, the method for the first electronic device to determine that the second electronic device is located on one side of the road centerline of the positioning road according to the road signs of the roads where the above-mentioned partial or all positioning candidate positions are located may specifically include: the first electronic device obtains the road data of the roads where the above-mentioned partial or all positioning candidate positions are located according to the road signs of the roads where the above-mentioned partial or all positioning candidate positions are located; the first electronic device determines the positioning road according to the distribution of the above-mentioned partial or all positioning candidate positions on the target road; wherein the target road is the road where the above-mentioned partial or all positioning candidate positions are located; the first electronic device determines that the second electronic device is located on one side of the road centerline of the positioning road according to the distribution of the above-mentioned partial or all positioning candidate positions on both sides of the road centerline of the positioning road. The above-mentioned road data may include at least one of the coordinates of the road starting point, road width information and road direction information.
[0014] It is understandable that some or all of the above-mentioned candidate positioning positions may be distributed on one or more target roads. Exemplarily, the first electronic device determines the target road with the largest number of candidate positioning positions as the above-mentioned positioning road based on the distribution of some or all of the above-mentioned multiple candidate positioning positions on one or more target roads.
[0015] In combination with the first aspect, in a possible design, the number of candidate positioning positions distributed on one side of the road centerline of the positioning road is greater than the number of candidate positioning positions distributed on the other side of the road centerline. In other words, the first electronic device can determine that the second electronic device is located on the side of the road centerline of the positioning road where the number of candidate positioning positions distributed is greater.
[0016] In combination with the first aspect, in a possible design method, the method for the first electronic device to correct the first position based on the position information of multiple positioning alternative positions to output a corrected second position can specifically include: the first electronic device calculates the vertical projection of the first position on the road edge line on one side of the road center line, and outputs the second position where the vertical projection is located.
[0017] When the first electronic device corrects the first position to obtain the second position, it not only refers to the obstructions around the first position, but also refers to the positioning road of the second electronic device. And the relative position of the second electronic device and the positioning road (that is, which side of the positioning road the second electronic device is located on). Therefore, compared with the first position of the second electronic device, the error between the second position and the actual position of the second electronic device is smaller. Thus, the positioning accuracy of the second electronic device is improved.
[0018] In combination with the first aspect, in a possible design method, the method for the first electronic device to select multiple positioning alternative positions from multiple alternative positions based on the altitude angles and azimuth angles of the multiple satellites relative to the multiple alternative positions, the sky occlusion curves of the multiple alternative positions, and the signal parameters of the broadcast signals sent by the multiple satellites received by the second electronic device can specifically include: the first electronic device selects multiple positioning alternative positions from the multiple alternative positions based on the first visibility and second visibility of the multiple satellites relative to the multiple alternative positions.
[0019] The first visibility of a satellite relative to an alternative location is used to indicate whether the satellite is a line-of-sight satellite or a non-line-of-sight satellite for the alternative location; the first visibility is related to the altitude angle and azimuth angle of a satellite relative to the alternative location, and the sky shielding curve of the alternative location. The second visibility of a satellite relative to an alternative location is used to indicate the probability that the satellite is a line-of-sight satellite for the alternative location. The second visibility is related to the signal parameters of the second electronic device receiving the broadcast signals sent by multiple satellites.
[0020] It can be understood that the first visibility of a satellite relative to an alternative position is related to "the altitude angle and azimuth angle of the satellite relative to the alternative position" and "the sky obstruction curve corresponding to the alternative position". However, "the altitude angle and azimuth angle of a satellite relative to an alternative position" and "the sky obstruction curve corresponding to an alternative position" will not change due to the measurement error of the pseudo-range between the second electronic device and the satellite. Therefore, "the first visibility of a satellite relative to an alternative position" is the actual situation of whether the satellite is a line-of-sight satellite or a non-line-of-sight satellite of the alternative position.
[0021] The signal parameters (such as pseudorange) of the broadcast signal sent by the satellite received by the second electronic device may have measurement errors. Therefore, the "second visibility of the satellite relative to the candidate position" related to the "signal parameters of the broadcast signal sent by the satellite received by the second electronic device" may not reflect the actual situation that the satellite is a line-of-sight satellite for the candidate position.
[0022] To summarize, the first electronic device can select an alternative position with a higher matching degree between the first visibility and the second visibility, that is, multiple positioning alternative positions, from multiple alternative positions based on the first visibility that can reflect the actual situation that a satellite is a line-of-sight satellite or a non-line-of-sight satellite at an alternative position, and the second visibility that cannot reflect the actual situation that a satellite is a line-of-sight satellite at an alternative position.
[0023] In combination with the first aspect, in a possible design method, the above-mentioned multiple positioning candidate positions include: candidate positions whose number of satellites that meet the preset conditions is greater than a preset number threshold. Alternatively, the multiple positioning candidate positions include: M candidate positions among multiple candidate positions. Wherein, M≥2, M is a positive integer. The number of satellites that meet the preset conditions in the M candidate positions is greater than the number of satellites that meet the preset conditions in other candidate positions. The other candidate positions include candidate positions other than the M candidate positions among the multiple candidate positions; wherein the above-mentioned satellites that meet the preset conditions are satellites whose first visibility matches the second visibility.
[0024] In an embodiment of the present application, the first visibility and second visibility of a satellite relative to an alternative position match, which may specifically include: the first visibility indicates that the satellite is a line-of-sight satellite of the alternative position, and the second visibility is greater than or equal to a preset probability threshold; or, the first visibility indicates that the satellite is a non-line-of-sight satellite of the alternative position, and the second visibility is less than the preset probability threshold.
[0025] In combination with the first aspect, in a possible design method, before the first electronic device selects multiple positioning alternative positions from multiple alternative positions based on the first visibility and second visibility of multiple satellites relative to multiple alternative positions, the method of the embodiment of the present application may also include: the first electronic device executes for each satellite and each alternative position: determining the first visibility of a satellite relative to an alternative position based on the altitude angle and azimuth angle of a satellite relative to an alternative position, and grid data corresponding to an alternative position, so as to obtain the first visibility of each satellite relative to each alternative position; the first electronic device executes for each satellite: determining the second visibility of a satellite relative to each alternative position based on signal parameters of a broadcast signal sent by a satellite received by the second electronic device, so as to obtain the second visibility of each satellite relative to each alternative position.
[0026] In combination with the first aspect, in a possible design manner, the first electronic device may determine the first visibility of a satellite relative to an alternative position by referring to the following manner:
[0027] First, the first electronic device obtains a first azimuth and a first altitude. The first azimuth is the azimuth of a satellite relative to an alternative position, and the first altitude is the altitude of a satellite relative to an alternative position. The first electronic device determines a sky occlusion curve of an alternative position based on the position information of an alternative position. The first electronic device obtains a second altitude from a sky occlusion curve of an alternative position based on the first azimuth. The second altitude is the altitude of a first obstruction relative to an alternative position, and the azimuth of the first obstruction relative to an alternative position is the first azimuth.
[0028] If the first elevation angle is greater than the second elevation angle, it means that the broadcast signal transmitted by the satellite can be received by the electronic device located at the candidate position through straight-line transmission; at this time, the first electronic device can determine that the satellite is a line-of-sight satellite at the candidate position. That is, the first visibility of the satellite relative to the candidate position indicates that the satellite is a line-of-sight satellite.
[0029] If the first elevation angle is less than or equal to the second elevation angle, it means that the broadcast signal transmitted by the satellite cannot be received by the electronic device located at the candidate position through straight-line transmission; at this time, the first electronic device can determine that the satellite is a non-line-of-sight satellite at the candidate position. That is, the first visibility of the satellite relative to the candidate position indicates that the satellite is a non-line-of-sight satellite.
[0030] In conjunction with the first aspect, in a possible design, the first electronic device stores a model code of a preset artificial intelligence (AI) model. The preset AI model has a function of determining the second visibility of the satellite relative to any location based on signal parameters of a broadcast signal sent by any satellite received by an electronic device at any location.
[0031] Among them, the first electronic device can determine the second visibility of a satellite relative to an alternative position by referring to the following method: the first electronic device runs the model code of a preset AI model, and takes the signal parameters of the broadcast signal sent by a satellite received by the second electronic device as input, and determines the second visibility of the satellite relative to each alternative position through the preset AI model.
[0032] In combination with the first aspect, in a possible design method, the above-mentioned grid data may be received by the first electronic device from the server. The method of the embodiment of the present application may also include: the first electronic device receives grid data of at least one first grid from the server. The at least one first grid indicates a geographical area where the first position is located, and the area of each first grid is less than a preset area threshold. The grid data of a first grid includes the location information and the sky occlusion curve of the first grid. The first electronic device saves the grid data of the at least one first grid. It can be understood that the grid data corresponding to an alternative position is the grid data of the first grid closest to the alternative position.
[0033] In combination with the first aspect, in a possible design method, the above-mentioned grid data may be obtained by the first electronic device processing the i-th layer of tile map in the N-layer tile map. The method of the example of the present application may also include: the first electronic device obtains the i-th layer of tile map in the N-layer tile map, and the i-th layer of tile map includes multiple map tiles. Wherein, 2≤i≤N, i and N are both positive integers. The first electronic device obtains the grid data of at least one first grid of at least one map tile in the i-th layer of tile map. Wherein, at least one first grid of a map tile is at least one geographical area among multiple geographical areas obtained by dividing the map tile. The area of each first grid is less than a preset area threshold. The grid data of a first grid includes the location information and sky occlusion curve of the first grid. The first electronic device saves the grid data of at least one first grid. It can be understood that the grid data corresponding to an alternative position is the grid data of the first grid closest to the alternative position.
[0034] In conjunction with the first aspect, in a possible design, the i-th layer tile map may include multiple map tiles. The at least one map tile may include: a map tile of a geographical area where the first electronic device is located among multiple map tiles of the i-th layer tile map. The geographical area where the first electronic device is located may correspond to one or more map tiles.
[0035] In conjunction with the first aspect, in a possible design, the at least one first grid is a first grid in a geographical area with dense obstructions. That is, the first electronic device can only obtain and save the first grid in the geographical area with dense obstructions. In this way, the amount of calculation required for the first electronic device to obtain grid data of the first grid can be reduced, and the storage space occupied by the grid data of the first electronic device can also be reduced.
[0036] In conjunction with the first aspect, in a possible design, before the first electronic device selects multiple positioning candidate positions from multiple candidate positions, the method of the embodiment of the present application may further include: the first electronic device obtains grid data corresponding to the multiple candidate positions from the grid data of at least one first grid stored by the first electronic device. The grid data corresponding to the multiple candidate positions is the grid data of the first grid closest to the multiple candidate positions.
[0037] In conjunction with the first aspect, in a possible design, the method for the first electronic device to obtain grid data of at least one first grid may include: the first electronic device performs steps a to b for each map tile in at least one map tile to obtain grid data of at least one first grid in the map tile. Step a: Divide a map tile into K first grids, K ≥ 2, and K is a positive integer. Step b: Obtain grid data of at least one first grid in the K first grids.
[0038] In combination with the first aspect, in a possible design manner, the grid data of the above-mentioned first grid also includes: a road sign of a road where the first grid is located.
[0039] In combination with the first aspect, in a possible design, the grid data of the first grid further includes: road data of the road where the first grid is located. The road data includes at least one of the coordinates of the road starting point, road width information, and road direction information.
[0040] In conjunction with the first aspect, in a possible design, the grid data corresponding to the above-mentioned multiple candidate positions are included in the data of one or more map tiles. The data of the map tiles also includes road data, and the road data includes at least one of the coordinates of the road starting point, road width information, and road direction information.
[0041] In combination with the first aspect, in a possible design, the signal parameters of the broadcast signal include: carrier-to-noise ratio (CN0), pseudorange residual and pseudorange rate.
[0042] The larger the CN0 is, the higher the possibility that a satellite is visible to an electronic device at an alternative location. The smaller the CN0 is, the lower the possibility that a satellite is a line-of-sight satellite at an alternative location. The larger the pseudorange residual is, the lower the possibility that a satellite is a line-of-sight satellite at an alternative location. The smaller the pseudorange residual is, the higher the possibility that a satellite is a line-of-sight satellite at an alternative location. The larger the pseudorange rate is, the lower the possibility that a satellite is a line-of-sight satellite at an alternative location. The smaller the pseudorange rate is, the higher the possibility that a satellite is a line-of-sight satellite at an alternative location.
[0043] In combination with the first aspect, in a possible design manner, the grid data of the first grid may further include: building attribute information. The building attribute information is used to indicate whether the first grid is located inside or outside the building.
[0044] It can be understood that if the building attribute information of the first grid indicates that the first grid is located inside the building; then, the electronic device located in the first grid cannot receive the broadcast signal transmitted by the satellite. Therefore, the electronic device located in the first grid cannot perform GNSS positioning. In other words, the grid data of the first grid will not be used for position calibration to improve positioning accuracy. In summary, the at least one first grid mentioned above can be a first grid located outside the building. In this way, the storage space occupied by redundant grid data on the first electronic device can be reduced.
[0045] In a second aspect, an embodiment of the present application provides an electronic device, which is the above-mentioned first electronic device, and the first electronic device locates the second electronic device. The electronic device may include: a first determination module, a second determination module, a selection module, and a position correction module. Among them, the first determination module is used to obtain the first position of the second electronic device. The second determination module is used to determine multiple candidate positions with the first position determined by the first determination module as the center point. The selection module is used to select multiple positioning candidate positions from multiple candidate positions according to the altitude angles and azimuth angles of multiple satellites relative to the multiple candidate positions determined by the second determination unit, the grid data corresponding to the multiple candidate positions, and the signal parameters of the broadcast signals sent by the multiple satellites received by the second electronic device; wherein the grid data corresponding to each candidate position includes position information and a sky occlusion curve, and the sky occlusion curve of an alternative position is used to indicate the altitude angles and azimuth angles of multiple obstructions located around an alternative position relative to an alternative position. The position correction module is used to correct the first position according to the position information of multiple positioning candidate positions to output the corrected second position. In one implementation, the first position can be determined by the second electronic device through positioning.
[0046] In combination with the second aspect, in a possible design, the grid data corresponding to the above-mentioned multiple candidate positioning positions further include: road signs of the roads where the candidate positioning positions located on the road are located among the multiple candidate positioning positions. The above-mentioned electronic device may also include: a third determination module. The third determination module is used to determine that the second electronic device is located on one side of the road centerline of the positioning road based on the road data corresponding to the road signs of the roads where some or all of the candidate positioning positions located on the road are located. The above-mentioned road data includes at least one of the coordinates of the road starting point, road width information and road direction information. The above-mentioned positioning road is the road where the second electronic device is located.
[0047] In combination with the second aspect, in another possible design, the third determination module is specifically used to: obtain the road data of the roads where the above-mentioned part or all of the candidate locations are located according to the road signs of the roads where the above-mentioned part or all of the candidate locations are located; determine the positioning road according to the distribution of the above-mentioned part or all of the candidate locations on the target road. The target road is the road where the above-mentioned part or all of the candidate locations are located; determine that the second electronic device is located on one side of the road centerline of the positioning road according to the distribution of the above-mentioned part or all of the candidate locations on both sides of the road centerline of the positioning road.
[0048] In combination with the second aspect, in a possible design, the number of candidate positioning positions distributed on one side of the road centerline of the above-mentioned positioning road is greater than the number of candidate positioning positions distributed on the other side of the road centerline.
[0049] In combination with the second aspect, in another possible design method, the above-mentioned position correction module is specifically used to: calculate the vertical projection of the first position on the road edge line on one side of the road center line, and output the second position where the vertical projection is located.
[0050] In conjunction with the second aspect, in a possible design, the selection module is specifically used to: select multiple positioning candidate positions from multiple candidate positions according to the first visibility and the second visibility of the multiple satellites relative to the multiple candidate positions. The detailed description of the first visibility and the second visibility can refer to the description in the first aspect and its possible design, and the embodiments of the present application are not described in detail here.
[0051] In combination with the second aspect, in a possible design, the above-mentioned multiple candidate positioning positions include: candidate positions whose number of satellites that meet the preset conditions is greater than a preset number threshold. Alternatively, the multiple candidate positioning positions include: M candidate positions among the multiple candidate positions, M≥2, M is a positive integer, the number of satellites that meet the preset conditions in the M candidate positions is greater than the number of satellites that meet the preset conditions in other candidate positions, and the other candidate positions include candidate positions other than the M candidate positions among the multiple candidate positions. Among them, the satellite that meets the preset conditions is a satellite whose first visibility matches the second visibility.
[0052] In combination with the second aspect, in a possible design method, the above-mentioned selection module is specifically used to: for each satellite and each alternative position, execute: based on the altitude angle and azimuth angle of a satellite relative to an alternative position, and the grid data corresponding to an alternative position, determine the first visibility of a satellite relative to an alternative position, so as to obtain the first visibility of each satellite relative to each alternative position; for each satellite, execute: based on the signal parameters of the broadcast signal sent by a satellite received by the second electronic device, determine the second visibility of a satellite relative to each alternative position, so as to obtain the second visibility of each satellite relative to each alternative position.
[0053] In combination with the second aspect, in a possible design method, the above-mentioned selection module is used to determine the first visibility of a satellite relative to an alternative position based on the altitude angle and azimuth angle of a satellite relative to an alternative position, and the grid data corresponding to an alternative position, and may include: the above-mentioned selection module is used to obtain a first azimuth angle and a first altitude angle, the first azimuth angle is the azimuth angle of a satellite relative to an alternative position, and the first altitude angle is the altitude angle of a satellite relative to an alternative position; according to the position information of an alternative position, determine the sky occlusion curve of an alternative position; according to the first azimuth angle, obtain a second altitude angle from the sky occlusion curve of an alternative position; wherein the second altitude angle is the altitude angle of a first obstruction relative to an alternative position, and the azimuth angle of the first obstruction relative to an alternative position is the first azimuth angle; if the first altitude angle is greater than the second altitude angle, determining that the first visibility of a satellite relative to an alternative position indicates that the satellite is a line-of-sight satellite; if the first altitude angle is less than or equal to the second altitude angle, determining that the first visibility of a satellite relative to an alternative position indicates that the satellite is a non-line-of-sight satellite.
[0054] In conjunction with the second aspect, in a possible design, the electronic device may further include: a storage module. The storage module stores a model code of a preset AI model. The preset AI model has a function of determining the second visibility of any satellite relative to any location based on signal parameters of a broadcast signal sent by any satellite received by an electronic device at any location.
[0055] The above-mentioned selection module is used to determine the second visibility of a satellite relative to each alternative position based on the signal parameters of the broadcast signal sent by a satellite received by the second electronic device, and includes: a selection module, used to run the model code of a preset AI model, taking the signal parameters of the broadcast signal sent by a satellite received by the second electronic device as input, and determining the second visibility of a satellite relative to each alternative position through the preset AI model.
[0056] In combination with the second aspect, in a possible design, the electronic device further includes: a receiving module and a storage module. The receiving module is used to receive grid data of at least one first grid sent by the server; at least one first grid indicates a geographical area where the first position is located, and the area of each first grid is less than a preset area threshold; the grid data of a first grid includes the location information of a first grid and a sky occlusion curve; the storage module is used to save the grid data of at least one first grid received by the receiving module. Among them, the grid data corresponding to an alternative position is the grid data of the first grid closest to an alternative position.
[0057] In combination with the second aspect, in a possible design method, the electronic device further includes: an acquisition module and a storage module. The acquisition module is used to acquire the i-th layer of tile maps in N layers of tile maps, the i-th layer of tile maps including multiple map tiles; wherein 2≤i≤N, i and N are both positive integers; acquire the grid data of at least one first grid of at least one map tile in the i-th layer of tile maps; wherein at least one first grid of a map tile is at least one geographical area among multiple geographical areas obtained by dividing the map tiles, and the area of each first grid is less than a preset area threshold; the grid data of a first grid includes the location information of a first grid and a sky occlusion curve; the storage module is used to save the grid data of at least one first grid acquired by the acquisition module. wherein the grid data corresponding to an alternative position is the grid data of the first grid closest to an alternative position.
[0058] In combination with the second aspect, in a possible design manner, the at least one first grid is a first grid in a geographical area with dense obstructions.
[0059] In conjunction with the second aspect, in a possible design, the selection module is further used to obtain grid data corresponding to the multiple candidate positions from the grid data of at least one first grid stored in the storage module before selecting multiple positioning candidate positions from the multiple candidate positions. The grid data corresponding to the multiple candidate positions is the grid data of the first grid closest to the multiple candidate positions.
[0060] In combination with the second aspect, in a possible design manner, the grid data of the first grid further includes: a road sign of the road where the first grid is located.
[0061] In a third aspect, an embodiment of the present application provides an electronic device, which is a first electronic device. The first electronic device locates a second electronic device. The electronic device includes: a memory and one or more processors. The memory is coupled to the processor. The memory is used to store a computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the method described in the first aspect and any possible design thereof.
[0062] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to a first electronic device. The first electronic device locates a second electronic device. The chip system includes: one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from a memory of the first electronic device and send the signal to the processor. The signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the first electronic device executes the method described in the first aspect and any possible design thereof.
[0063] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on a first electronic device, the first electronic device executes the method described in the first aspect and any possible design thereof.
[0064] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible design thereof.
[0065] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second and third aspects and any possible design methods provided above, the chip system described in the fourth aspect, the computer storage medium described in the fifth aspect, and the computer program product described in the sixth aspect can be referred to as the beneficial effects in the first aspect and any possible design methods thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A schematic diagram of a communication system corresponding to the GNSS positioning principle of a mobile phone provided in an embodiment of the present application;
[0067] Figure 2 A schematic diagram of the GNSS positioning principle of a mobile phone provided in an embodiment of the present application;
[0068] Figure 3 A schematic diagram of a scenario in which a positioning method is applied according to an embodiment of the present application;
[0069] Figure 4 A schematic diagram of a communication system used in a positioning method provided in an embodiment of the present application;
[0070] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0071] Figure 6An example schematic diagram of an azimuth angle and an altitude angle of a satellite relative to a location of an electronic device provided in an embodiment of the present application;
[0072] Figure 7 An example schematic diagram of representing azimuth and altitude angles in a polar coordinate system provided in an embodiment of the present application;
[0073] Figure 8 A flow chart of a positioning method provided in an embodiment of the present application;
[0074] Fig.9A A schematic diagram of an example of a multi-layer tile map provided in an embodiment of the present application;
[0075] Fig. 9B A schematic diagram of the principle of generating a tile map provided in an embodiment of the present application;
[0076] Fig.10 A schematic diagram of a principle of dividing a map tile into a plurality of first grids provided in an embodiment of the present application;
[0077] Fig.11A A schematic diagram of an example of an azimuth angle and an altitude angle of a building (such as a high-rise building) relative to a first grid provided in an embodiment of the present application;
[0078] Fig. 11B A schematic diagram of an example of a sky occlusion curve provided in an embodiment of the present application;
[0079] Fig. 11C A schematic diagram of a principle for determining first visibility provided in an embodiment of the present application;
[0080] Fig. 12A A schematic diagram of an example of a tile database provided in an embodiment of the present application;
[0081] Fig. 12B A schematic diagram of building distribution in a geographical area provided in an embodiment of the present application;
[0082] Fig. 12C A principle block diagram of a positioning method performed by a mobile phone 410 provided in an embodiment of the present application;
[0083] Fig.13 An example schematic diagram of an alternative region and an alternative position provided in an embodiment of the present application;
[0084] Fig.14 A schematic diagram of another example of an alternative region and an alternative position provided in an embodiment of the present application;
[0085] Fig.15A A schematic diagram of another example of a sky occlusion curve provided in an embodiment of the present application;
[0086] Fig. 15B A schematic diagram of another example of a sky occlusion curve provided in an embodiment of the present application;
[0087] Fig.16A A schematic diagram of scoring a second grid (i.e., candidate positions) provided in an embodiment of the present application;
[0088] Fig. 16B A schematic diagram of scoring a candidate location provided in an embodiment of the present application;
[0089] Fig. 16C A schematic diagram of road distribution in a geographical area provided in an embodiment of the present application;
[0090] Fig.17 A positioning principle block diagram provided in an embodiment of the present application;
[0091] Fig.18 A flowchart of another positioning method provided in an embodiment of the present application;
[0092] Fig.19 A positioning principle block diagram provided in an embodiment of the present application;
[0093] Fig. 20A A principle block diagram of a positioning method performed by a server 400 assisting a wearable device 420 in an embodiment of the present application;
[0094] Fig. 20B A flowchart of another positioning method provided in an embodiment of the present application;
[0095] Fig.21A A flowchart of another positioning method provided in an embodiment of the present application;
[0096] Fig.21B A flowchart of another positioning method provided in an embodiment of the present application;
[0097] Fig. 22 A logic block diagram of a positioning method provided in an embodiment of the present application;
[0098] Fig.23 A schematic diagram of an example of positioning effect of a positioning method provided in an embodiment of the present application;
[0099] Fig.24 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0100] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0101] For ease of understanding, the specific method for performing GNSS positioning on an electronic device is introduced in the embodiments of the present application.
[0102] Satellites can send broadcast signals in real time, including ephemeris and navigation messages. Electronic devices can receive broadcast signals sent by multiple satellites. For example, Figure 1 As shown, the mobile phone can receive broadcast signal 1 sent by satellite 1, receive broadcast signal 2 sent by satellite 2, receive broadcast signal 3 sent by satellite 3, and receive broadcast signal 4 sent by satellite 4.
[0103] Among them, the ephemeris is used to describe the current flight position and speed of the satellite. Electronic equipment can determine the three-dimensional coordinates of a satellite relative to the earth-centered coordinate system (earth centered earth fixed, ECEF) based on the ephemeris of a satellite. For example, Figure 2 As shown, the three-dimensional coordinates of satellite 1 relative to ECEF are (x1, y1, z1), the three-dimensional coordinates of satellite 2 relative to ECEF are (x2, y2, z2), the three-dimensional coordinates of satellite 3 relative to ECEF are (x3, y3, z3), and the three-dimensional coordinates of satellite 4 relative to ECEF are (x4, y4, z4).
[0104] The navigation message is used to describe the operating status parameters of the satellite. An electronic device can calculate the distance between the electronic device and the satellite based on the navigation message of a satellite. A navigation message includes the sending time of the corresponding broadcast signal. The electronic device can determine the time when the electronic device receives the broadcast signal. Specifically, the electronic device can calculate the distance between the electronic device and the satellite using the following formula (1) based on the time when the electronic device receives a broadcast signal, the time when the satellite sends the broadcast signal, and the clock deviation between the electronic device and the satellite.
[0105] d=c*(t r +△tt s ) Formula (1)
[0106] Where c is the speed of light, t r is the time it takes for an electronic device to receive a broadcast signal, t s is the time when the satellite sends the broadcast signal, and △t is the clock deviation between the electronic equipment and the satellite.
[0107] For example, assuming that the transmission time of the above broadcast signal 1 is t s 1 , the time when the mobile phone receives the broadcast signal 1 is t r 1 ; The sending time of broadcast signal 2 is t s 2 , the time when the mobile phone receives broadcast signal 2 is t r 2 ; The sending time of broadcast signal 3 is t s 3 , the time when the mobile phone receives the broadcast signal 3 is t r 3 Then, the mobile phone uses the above formula (1) to calculate the distance between the mobile phone and satellite 1: d1 = c*(t r 1 +△tt s 1 ), the distance between the mobile phone and satellite 2 is d2=c*(t r 2 +△tt s 2 ), the distance between the mobile phone and satellite 3 is d3=c*(t r 3 +△tt s 3 ).
[0108] Subsequently, the electronic device can determine the position of the electronic device by calculating the ECEF three-dimensional coordinates (x, y, z) of the electronic device based on the three-dimensional coordinates of at least three satellites relative to ECEF and the distance between the electronic device and the at least three satellites using the following formula (2).
[0109]
[0110] In formula (2), d1, d2, d3, x1, y1, z1, x2, y2, z2, x3, y3 and z3 are all known quantities. The electronic device can use formula (2) to calculate the ECEF three-dimensional coordinates (x, y, z) of the electronic device to determine the position of the electronic device.
[0111] like Figure 3As shown, in a scene with densely populated high-rise buildings in the city, the broadcast signals emitted by satellites 2 and 3 need to be reflected by the high-rise buildings before they can be received by the mobile phone. Then, the above pseudorange d2 is not the straight-line distance between satellite 2 and the mobile phone, but the distance after the broadcast signal 2 is reflected; the above pseudorange d3 is not the straight-line distance between satellite 3 and the mobile phone, but the distance after the broadcast signal 2 is reflected. In other words, the measurement errors of pseudorange d2 and pseudorange d3 are large. In this way, when the measurement errors of pseudorange d2 and pseudorange d3 are large, the electronic device cannot be accurately positioned, and the positioning accuracy of the electronic device is low. Figure 3 As shown, the actual location of the user holding the mobile phone is far away from the mobile phone positioning location, and the mobile phone positioning accuracy is low, which affects the user experience.
[0112] The present application provides a positioning method that can be applied to an electronic device during GNSS positioning, wherein the method enables the electronic device to maintain or even improve positioning accuracy in a scenario where the signal transmitted by the satellite is easily blocked.
[0113] Please refer to Figure 4 , which shows a schematic diagram of a positioning system used in a positioning method provided in an embodiment of the present application. Figure 4 As shown, the positioning system may include: a server 400 and multiple electronic devices. For example, the multiple electronic devices may include a mobile phone 410 and a wearable device 420.
[0114] Among them, the server 400 is used to store multiple tile data. The multiple tile data can be used to identify whether the satellite is a line-of-sight satellite or a non-line-of-sight satellite. Each electronic device can be positioned by receiving broadcast signals transmitted by multiple satellites to determine the first position of the electronic device. Then, the electronic device can identify the visibility of the satellite (including the first visibility and the second visibility) based on the tile data in the server 400. Among them, the first visibility of the satellite is used to indicate that the satellite is a line-of-sight satellite or a non-line-of-sight satellite for the electronic device. The second visibility of the satellite is used to indicate the probability that the satellite is a line-of-sight satellite for the electronic device. Finally, the electronic device can correct the above-mentioned first position according to the visibility of multiple satellites to improve the positioning accuracy of the electronic device.
[0115] If, for an electronic device, the satellite is blocked by an obstruction, the satellite cannot transmit broadcast signals to the electronic device in a straight line; then, for the electronic device, the satellite is a non-line-of-sight satellite. If, for an electronic device, the satellite is not blocked by an obstruction, the satellite can transmit broadcast signals to the electronic device in a straight line; then, for the electronic device, the satellite is a line-of-sight satellite. For example, Figure 3As shown in the figure, for a mobile phone, satellite 1 is not blocked and can transmit broadcast signals to the mobile phone in a straight line; however, satellites 2 and 3 are blocked by buildings and cannot transmit broadcast signals to the mobile phone in a straight line. Figure 3 For the mobile phone shown, satellite 1 is a line-of-sight satellite, and satellite 2 and satellite 3 are non-line-of-sight satellites.
[0116] It should be noted that different electronic devices may be located in different geographical locations, and the obstructions (such as buildings) in different geographical locations may be different; therefore, the visibility of the same satellite may be different for different electronic devices. Of course, if multiple electronic devices are located in the same geographical location, the visibility of the satellite is the same for these multiple electronic devices. Moreover, for the same electronic device, the visibility of different satellites may be the same or different.
[0117] In the embodiments of the present application, the transmission method of the broadcast signal transmitted from the satellite to the electronic device in a straight line is called line-of-sight transmission (LOS). Figure 3 As shown, the broadcast signal transmitted by satellite 1 is received by the mobile phone through line-of-sight transmission LOS (i.e. straight-line transmission). In the embodiment of the present application, the transmission method of the broadcast signal reflected by the satellite to the electronic device is called: non-light ofsight transmission (NLOS). Figure 3 As shown, the broadcast signals transmitted by satellite 2 and satellite 3 are received by mobile phones through non-line-of-sight transmission NLOS (i.e., reflected transmission).
[0118] The method of the embodiment of the present application can be applied to a first electronic device to locate a second electronic device. The first electronic device and the second electronic device can be the same electronic device. In other words, the method of the embodiment of the present application can be applied to an electronic device to locate the electronic device. Alternatively, the first electronic device and the second electronic device can be different devices. In other words, the method of the embodiment of the present application can be applied to an electronic device to locate other electronic devices.
[0119] For example, the first electronic device may be a mobile phone (eg Figure 4The first electronic device may include a mobile phone 410 shown in FIG. 4 ), a vehicle-mounted device (such as a vehicle-mounted navigator), a tablet computer, a desktop, a laptop, a handheld computer, a wearable device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, etc., which have a GNSS positioning function. Of course, the first electronic device may also be Figure 4 The server 400 is shown. The specific form of the first electronic device is not particularly limited in the present embodiment. The implementation of the present embodiment will be described in detail below in conjunction with the accompanying drawings.
[0120] For example, the second electronic device in the embodiment of the present application can be a mobile phone, a vehicle-mounted device (such as a vehicle-mounted navigator), a tablet computer, a desktop, a laptop, a handheld computer, a wearable device (such as a Figure 4 The second electronic device may include a wearable device 420 shown in the figure), a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or a virtual reality (VR) device, etc., which have a GNSS positioning function. The embodiment of the present application does not impose any special restrictions on the specific form of the second electronic device. The implementation of the embodiment of the present application will be described in detail below in conjunction with the accompanying drawings.
[0121] Please refer to Figure 1 , the above electronic equipment is Figure 4 Taking the mobile phone 410 as an example, a schematic diagram of the hardware structure of the electronic device 500 is shown. Figure 5As shown, the electronic device 500 may include a processor 510, an external memory interface 520, an internal memory 521, a universal serial bus (USB) interface 530, a charging management module 540, a power management module 541, a battery 542, an antenna 1, an antenna 2, a mobile communication module 550, a wireless communication module 560, an audio module 570, a speaker 570A, a receiver 570B, a microphone 570C, an earphone interface 570D, a sensor module 580, a button 590, a motor 591, an indicator 592, a camera 593, a display screen 594, and a subscriber identification module (SIM) card interface 595, etc.
[0122] Among them, the sensor module 580 may include a pressure sensor 580A, a gyroscope sensor 580B, an air pressure sensor 580C, a magnetic sensor 580D, an acceleration sensor 580E, a distance sensor 580F, a proximity light sensor 580G, a fingerprint sensor 580H, a temperature sensor 580J, a touch sensor 580K, an ambient light sensor 580L, a bone conduction sensor 580M, etc.
[0123] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 500. In other embodiments of the present application, the electronic device 500 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0124] The processor 510 may include one or more processing units, for example, the processor 510 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0125] The controller may be the nerve center and command center of the electronic device 500. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0126] The processor 510 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 510 is a cache memory. The memory may store instructions or data that the processor 510 has just used or cyclically used. If the processor 510 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 510, and thus improves the efficiency of the system.
[0127] In some embodiments, the processor 510 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0128] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. The MIPI interface can be used to connect the processor 510 with peripheral devices such as the display screen 594 and the camera 593. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. The USB interface 530 is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a MicroUSB interface, a USB Type C interface, etc. The USB interface 530 can be used to connect a charger to charge the electronic device 500, and can also be used to transmit data between the electronic device 500 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
[0129] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 500. In other embodiments of the present application, the electronic device 500 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0130] The charging management module 540 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 541 is used to connect the battery 542, the charging management module 540 and the processor 510. The power management module 541 receives input from the battery 542 and / or the charging management module 540 to power the processor 510, the internal memory 521, the external memory, the display screen 594, the camera 593, and the wireless communication module 560. The power management module 541 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
[0131] The wireless communication function of the electronic device 500 can be implemented through the antenna 1, the antenna 2, the mobile communication module 550, the wireless communication module 560, the modem processor and the baseband processor.
[0132] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 500 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0133] The mobile communication module 550 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 500. The mobile communication module 550 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 550 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 550 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 550 can be set in the processor 510. In some embodiments, at least some of the functional modules of the mobile communication module 550 can be set in the same device as at least some of the modules of the processor 510. The modulation and demodulation processor may include a modulator and a demodulator.
[0134] The wireless communication module 560 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), GNSS, frequency modulation (FM), nearfield communication (NFC), infrared (IR), etc., which are applied to the electronic device 500. The wireless communication module 560 can be one or more devices integrating at least one communication processing module. The wireless communication module 560 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 510. The wireless communication module 560 can also receive the signal to be sent from the processor 510, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0135] Exemplarily, the GNSS in the embodiments of the present application may include: GPS, GLONASS, BDS, QZSS, SBAS, and / or GALILEO, etc.
[0136] The electronic device 500 implements the display function through a GPU, a display screen 594, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 594 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 510 may include one or more GPUs, which execute program instructions to generate or change display information. The display screen 594 is used to display images, videos, etc. The display screen 594 includes a display panel.
[0137] The electronic device 500 can realize the shooting function through an ISP, a camera 593, a video codec, a GPU, a display screen 594, and an application processor. The ISP is used to process the data fed back by the camera 593. The camera 593 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos.
[0138] NPU is a neural network (NN) computing processor, which can quickly process input information and continuously self-learn by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain. NPU can realize applications such as intelligent cognition of electronic device 500, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0139] The external memory interface 520 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 500. The external memory card communicates with the processor 510 through the external memory interface 520 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0140] The internal memory 521 may be used to store computer executable program codes, which include instructions. The processor 510 executes various functional applications and data processing of the electronic device 500 by running the instructions stored in the internal memory 521 .
[0141] The electronic device 500 can implement audio functions such as music playing and recording through the audio module 570, the speaker 570A, the receiver 570B, the microphone 570C, the headphone jack 570D, and the application processor.
[0142] The audio module 570 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker 570A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 570B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 570C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 570D is used to connect wired headphones. The headphone jack 570D can be a USB interface 530, or it can be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0143] The key 590 includes a power button, a volume button, etc. The key 590 can be a mechanical key. It can also be a touch key. The electronic device 500 can receive key input and generate key signal input related to the user settings and function control of the electronic device 500. The motor 591 can generate a vibration prompt. The motor 591 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 592 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 595 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 595, or pulled out from the SIM card interface 595 to achieve contact and separation with the electronic device 500. The electronic device 500 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 595 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
[0144] Introduction to terms related to the embodiments of this application:
[0145] 1. Pseudorange.
[0146] Pseudorange refers to the distance between an electronic device and a satellite measured by the broadcast signal sent by the satellite when the electronic device performs GNSS positioning. Figure 1 As shown, the pseudo-range between satellite 1 and the mobile phone is d1, and the pseudo-range between satellite 2 and the mobile phone is d2.
[0147] 2. Carrier-to-noise ratio CN0.
[0148] The carrier-to-noise ratio, also known as the signal-to-noise ratio, is commonly used in satellite communication systems. The carrier-to-noise ratio is the signal-to-noise ratio of the broadcast signal transmitted by the satellite. The larger the CN0 of the broadcast signal, the higher the signal quality of the broadcast signal; the smaller the CN0 of the broadcast signal, the lower the signal quality of the broadcast signal.
[0149] It can be understood that if the broadcast signal transmitted by the satellite is received by the electronic device after being reflected (such as one or more reflections), then the broadcast signal will be attenuated, the signal quality of the broadcast signal will be low, and the CN0 of the broadcast signal will be small. Therefore, the CN0 of the above-mentioned broadcast signal can also be used to reflect whether the broadcast signal has been reflected and how many times the broadcast signal has been reflected. For example, the larger the CN0 of a broadcast signal, the fewer times the broadcast signal may be reflected; the smaller the CN0 of a broadcast signal, the more times the broadcast signal may be reflected.
[0150] 3. Pseudorange rate.
[0151] The pseudorange rate refers to the speed at which the pseudorange between the satellite and the electronic device changes. The pseudorange rate can be used to determine the speed at which the pseudorange between the electronic device and the satellite changes.
[0152] 4. Pseudorange residuals.
[0153] The pseudorange residual refers to the difference between the exact distance (i.e., true distance) between the electronic device and the satellite and the pseudorange. The electronic device can determine the exact distance (i.e., true distance) between the electronic device and the satellite based on the true position of the electronic device and the true position of the satellite.
[0154] 5. Satellite altitude angle.
[0155] The satellite altitude angle (i.e., the satellite altitude angle relative to the electronic device's location) refers to the angle between the point where the electronic device is located (i.e., the location) and the local horizontal plane, with the point where the electronic device is located (i.e., the location) as the origin of the geographic coordinate system. Figure 6 As shown in (a), the x-axis of the geographic coordinate system points east (E) along the local latitude, the y-axis points north (N) along the local meridian, and the z-axis points upward along the local geographic vertical. The z-axis, x-axis, and y-axis form a right-handed rectangular coordinate system. Among them, the plane formed by the x-axis and the y-axis is the local horizontal plane, and the plane formed by the y-axis and the z-axis is the local meridian plane. The altitude angle of the satellite is the angle between the line connecting the satellite point and the origin of the geographic coordinate system and the plane formed by the x-axis and the y-axis.
[0156] For example, Figure 6 As shown in (b), the point O where the electronic device is located is taken as the origin of the geographic coordinate system, the x-axis points to the east (E) along the local latitude, the y-axis points to the north (N) along the local meridian, and the z-axis points upward along the local geographic vertical line. Figure 6As shown in (b) in FIG. 1 , the altitude angle of the satellite is the angle α1 between the line OA connecting point A and point O and the plane formed by the x-axis and the y-axis (i.e., the horizontal plane).
[0157] 6. The azimuth of the satellite.
[0158] The azimuth of the satellite (i.e. the azimuth of the satellite relative to the location of the electronic device) refers to the angle between the line connecting the projection point of the satellite point on the horizontal plane and the origin of the geographic coordinate system, with the location of the electronic device (i.e. the location) as the origin of the geographic coordinate system, and the y-axis (i.e. the north (N) direction).
[0159] For example, Figure 6 As shown in (b), the azimuth angle of the satellite is the angle β1 between the line OA' connecting the projection point A' of point A on the horizontal plane and point O and the y-axis.
[0160] It should be noted that in the embodiment of the present application, the polar radius ρ of the projection point of the satellite on the plane where the first polar coordinate system is located is wx Characterize the altitude angle of the satellite (such as α1 above), the polar angle θ of the projection point of the satellite on the plane of the first polar coordinate system wx As the azimuth of the satellite (such as β1 above). Wherein, the first polar coordinate system is based on the point where the electronic device is located (i.e., the position) as the pole (such as Figure 7 O as shown), a ray from the pole to the local meridian pointing to the north (N) direction (as shown Figure 7 Oy) is used as the polar axis and the clockwise direction is used as the positive direction of the polar coordinate system.
[0161] like Figure 7 As shown, the polar angle θ of the satellite's projection point A' on the plane of the first polar coordinate system is wx , is the angle between the projection point A' of the satellite point on the plane of the first polar coordinate system and the line OA' connecting the pole O and the polar axis Oy. The plane of the first polar coordinate system is the local horizontal plane (i.e. Figure 7 The xoy plane shown in Figure 2). Figure 7 As shown, the azimuth angle of the satellite whose projection point is point A' is θ wx .
[0162] For example, Figure 7As shown, the azimuth of the satellite is 0°, indicating that the satellite is in the north (N) direction of the electronic device; the azimuth of the satellite is 45°, indicating that the satellite is in the northeast direction of the electronic device; the azimuth of the satellite is 90°, indicating that the satellite is in the east (E) direction of the electronic device; the azimuth of the satellite is 135°, indicating that the satellite is in the southeast direction of the electronic device; the azimuth of the satellite is 180°, indicating that the satellite is in the south (S) direction of the electronic device; the azimuth of the satellite is 225°, indicating that the satellite is in the southwest direction of the electronic device; the azimuth of the satellite is 270°, indicating that the satellite is in the west (W) direction of the electronic device; the azimuth of the satellite is 315°, indicating that the satellite is in the northwest direction of the electronic device.
[0163] like Figure 7 As shown, the polar radius ρ of the satellite projection point A' on the plane of the first polar coordinate system is wx , is the distance between the projection point A' of the satellite point on the plane of the first polar coordinate system and the pole O, that is, the length of the connecting line OA'. Figure 7 As shown, the altitude angle of the satellite whose projection point is point A' can be characterized by the length of ρ. Specifically, the larger the polar diameter of the satellite's projection point on the plane where the first polar coordinate system is located, the smaller the altitude angle of the satellite; the smaller the polar diameter of the satellite's projection point on the plane where the first polar coordinate system is located, the larger the altitude angle of the satellite.
[0164] For example, Figure 7 The centers of circles a, b, and c shown by the dashed lines are all point O; the radius of circle a is r, the radius of circle b is 2r, and the radius of circle c is 3r. Figure 7 As shown, when the projection point of the satellite in the plane where the first polar coordinate system is located is located on circle c, the polar diameter of the projection point is the largest (the polar diameter is 3r), and the altitude angle of the satellite is the smallest (the altitude angle is zero); when the projection point of the satellite in the plane where the first polar coordinate system is located is located on circle b, the polar diameter of the projection point is 2r, and the altitude angle of the satellite is 30°; when the projection point of the satellite in the plane where the first polar coordinate system is located is located on circle a, the polar diameter of the projection point is r, and the altitude angle of the satellite is 60°; when the projection point of the satellite in the plane where the first polar coordinate system is located is located on the pole O, the polar diameter of the projection point is zero, and the altitude angle of the satellite is 90°.
[0165] In summary, the polar coordinates of the projection point of the satellite on the plane of the first polar coordinate system are (ρ wx ,θ wx ), the first polar coordinate system takes the point where the electronic device is located as the pole. wx is the polar diameter of the satellite's projection point on the plane of the first polar coordinate system, θ wx is the polar angle of the projection point of the satellite on the plane where the first polar coordinate system is located. In the embodiment of the present application, the polar radius ρ of the projection point of the satellite on the plane where the first polar coordinate system is located is used. wxCharacterize the altitude angle of the satellite, the polar angle θ of the projection point of the satellite on the plane of the first polar coordinate system wx as the azimuth of the satellite.
[0166] For ease of understanding, the positioning method provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings. Figure 4 The positioning system shown is implemented. Figure 4 The positioning system shown includes a server 400 , a mobile phone 410 , and a wearable device 420 .
[0167] In case (1), the first electronic device and the second electronic device are both Figure 4 Take the mobile phone 410 as an example. In case (1), the mobile phone 410 executes the positioning method provided in the embodiment of the present application (eg, the following “positioning” process) to position the mobile phone 410 to improve the positioning accuracy of the mobile phone 410.
[0168] In case (2), the first electronic device may be Figure 4 The server 400 or the mobile phone 410 shown, the second electronic device may be Figure 4 The wearable device 420 shown in FIG. 2 can be Figure 4 The server 400 or mobile phone 410 shown executes the positioning method provided in the embodiment of the present application (eg, the following “positioning” process) to assist the wearable device 420 in positioning and improve the positioning accuracy of the wearable device 420 .
[0169] For example, Figure 8 As shown, the method of the embodiment of the present application may include: (1) a "data processing" process; (2) a "positioning" process.
[0170] (1) “Data processing” process.
[0171] The "data processing" process is used to generate multiple tile data. Specifically, in any of the above cases (1) and (2), if Figure 8 or Fig. 20B As shown, the “data processing” process may include S801 - S803 .
[0172] S801. The server 400 obtains the i-th layer of tile maps in N layers of tile maps.
[0173] The above N-layer tile map is a tile pyramid model (such as Fig.9A The tile pyramid model is a multi-resolution hierarchical model. Fig.9AAs shown in the figure, the top layer of the tile pyramid model is the 0th layer tile map, and the bottom layer is the N-1th layer tile map. From the top layer to the bottom layer of the tile pyramid model, the resolution of the tile map becomes higher and higher, but the geographical range represented by each layer of the tile map remains unchanged. Where N ≥ 2, N is a positive integer.
[0174] Specifically, the method for the server 400 to obtain the N-layer tile map may include: first, determining the zoom level N of the tile map; obtaining the 0th layer map image (the 0th layer map image has the highest zoom level and the largest map scale); dividing the 0th layer map image from left to right and from top to bottom into map tiles of the same size to form the 0th layer map tile (also called the 0th layer map tile matrix); based on the 0th layer map image, generating the 1st layer map image according to the method of synthesizing every 2*2 pixels into one pixel; dividing the 1st layer map image into map tiles of the same size to form the 1st layer map tile (also called the 1st layer map tile matrix); ...; based on the N-2th layer map image, generating the N-1th layer map image according to the method of synthesizing every 2*2 pixels into one pixel; dividing the N-1th layer map image into map tiles of the same size to form the N-1th layer map tile (also called the N-1th layer map tile matrix). In this way, the server 400 can obtain the N-layer tile map.
[0175] It should be noted that the map image in the embodiment of the present application (such as the map image of layer 0) is a vector map, which is a map drawn based on vector data. Each layer of the N-layer tile map is a map composed of at least one map tile. Fig. 9B As shown, in an embodiment of the present application, the layer 0 tile map may include map tile 910 of the Eastern Hemisphere and map tile 920 of the Western Hemisphere; the layer 1 tile map may include map tile 911, map tile 912, map tile 913 and map tile 914, as well as map tile 921, map tile 922, map tile 923 and map tile 924.
[0176] It can be understood that the higher the level of the tile map, the more map tiles it constitutes the world map, and the more detailed the map displayed by the tile map of this level. Therefore, the larger N is, the more detailed the map displayed by the tile map of the Nth level.
[0177] For example, let i=15. Fig. 9BIn the segmentation method shown, the server 400 obtains the size of each map tile in the 15th layer of the world map, which is p*p. The unit of p is meter (m). Among them, the value of p is about 600m. For example, p=611m, that is, the size of each map tile is 611m*611m. For another example, p=600m, that is, the size of each map tile is 600m*600m.
[0178] S802. The server 400 obtains grid data of at least one first grid of at least one map tile in the i-th layer tile map.
[0179] S802 may specifically include S802a and S802b. S802a: The server 400 divides each map tile in at least one map tile in the i-th layer tile map into K first grids, K≥2, and K is a positive integer. S802b: The server 400 obtains grid data of at least one first grid in the K first grids.
[0180] It is understandable that a server can be set up for different geographical areas. A server in a geographical area is used to generate and save multiple tile data of the geographical area. Among them, the above-mentioned geographical area can be a geographical area divided according to different dimensions. For example, the earth can be divided into two geographical areas along the equator, such as the Southern Hemisphere and the Northern Hemisphere. For another example, the earth can be divided into two geographical areas along the longitude of 20° west longitude and 160° east longitude, such as the Eastern Hemisphere and the Western Hemisphere. For another example, the earth can be divided into a plurality of geographical areas of equal area according to fixed longitude and latitude intervals. For another example, the earth can be divided into a plurality of geographical areas according to administrative areas (such as provinces of a country or a country, etc.), and each administrative area corresponds to a geographical area. Of course, the division method of the geographical area includes but does not show the above-mentioned division method, and other division methods can refer to the division method of the geographical area in the conventional technology, and the embodiments of the present application are not repeated here.
[0181] The i-th layer tile map may include multiple map tiles. The at least one map tile may include: a map tile of the geographical area where the server 400 is located among the multiple map tiles of the i-th layer tile map. The geographical area where the server 400 is located may correspond to one or more map tiles. For example, the at least one map tile may include: a map tile of the province where the server 400 is located among the multiple map tiles of the i-th layer tile map.
[0182] It is understandable that when an electronic device is positioned in an area with dense urban buildings, the problem of inaccurate positioning may occur because the broadcast signal transmitted by the satellite cannot be received by the electronic device through straight-line transmission. When an electronic device is positioned in a relatively open area such as the sea, grassland or flat land, the possibility of the broadcast signal transmitted by the satellite being blocked is low, which will not affect the positioning accuracy. It can be seen that for the above-mentioned relatively open areas, the server 400 does not need to obtain and save the corresponding grid data. In this way, the storage space occupied by the grid data on the server 400 can be reduced.
[0183] In some embodiments, the at least one first network may be a first grid in a geographical area with dense obstructions among the K first networks. That is, the server 400 may only obtain and save the first grid in a geographical area with dense obstructions. In this way, the amount of calculation required by the server 400 to obtain grid data of the first grid may be reduced, and the storage space occupied by the grid data on the server 400 may also be reduced.
[0184] For example, the first grid may be a square with a side length of L. Fig.10 As shown, the map tile 1000 may be a map tile in the i-th layer tile map. The server 400 may Fig.10 The map tile 1000 shown is evenly divided into 25 (ie, K=25) first grids, each of which is a square with an L shape.
[0185] It can be understood that the larger K is, the smaller L is; the more the number of first grids obtained by the server 400 by dividing the map tiles is, the larger the amount of grid data obtained by the server 400 is. In the embodiment of the present application, the size of K and L can be determined by the electronic device (such as Figure 4 The higher the positioning accuracy of the electronic device, the larger K is and the smaller L is; the lower the positioning accuracy of the electronic device, the smaller K is and the larger L is.
[0186] For example, in the above example, the size of the map tile in the i-th layer tile map is 600m*600m. Taking L=3m as an example, the server 400 can divide the map tile into 40,000 (ie, K=40,000) first grids, each of which is a square with a side length of 3m.
[0187] In the embodiment of the present application, the grid data of the first grid may further include: (I) location information of the first grid; and (II) a sky occlusion curve of the first grid.
[0188] (I) Location information of the first grid.
[0189] The location information of the first grid may be the longitude and latitude coordinates of the first point in the first grid. The first point of a first grid may be the center point of the first grid, the point in the upper left corner, the point in the upper right corner, the point in the lower left corner, the point in the lower right corner, or any point on the first grid, which is not limited in the embodiment of the present application.
[0190] (II) Sky occlusion curve of the first grid.
[0191] The sky occlusion curve of the first grid includes: the altitude angle and azimuth angle of the outer contour of the occluder located around the first point, that is, the altitude angle and azimuth angle of multiple points on the outer contour of the occluder located around the first point of the first grid relative to the first point. The occluder around the first point can be various buildings or plants, etc.
[0192] It should be noted that, for the sake of ease of description, in the embodiments of the present application, multiple points on the outer contour of an obstruction (such as a building) are referred to as multiple points of the obstruction, and one point on the outer contour of an obstruction (such as a building) is referred to as one point of the obstruction.
[0193] The altitude angle of a point of an obstruction around the first point (referred to as the third point) refers to the angle between the line connecting the third point and the origin of the geographic coordinate system and the local horizontal plane, with the first point as the origin of the geographic coordinate system. For a detailed description of the geographic coordinate system, reference may be made to the relevant contents in the above embodiments, and the embodiments of this application will not be repeated here.
[0194] For example, Fig.11A As shown, with the first point O as the origin of the geographic coordinate system, the x-axis points east (E) along the local latitude, the y-axis points north (N) along the local meridian, and the z-axis points upward along the local geographic vertical. Fig.11A As shown, the altitude angle of the third point B of the obstruction (such as a high-rise building) is the angle α2 between the line OB connecting the third point B of the high-rise building and point O and the plane (ie, the horizontal plane) formed by the x-axis and the y-axis.
[0195] The azimuth of a point of an obstruction around the first point (referred to as the third point) refers to the angle between the line connecting the vertical projection point of the third point on the horizontal plane and the origin of the geographic coordinate system and the y-axis (i.e., the north (N) direction), with the first point as the origin of the geographic coordinate system. Fig.11A As shown, the azimuth angle of the third point B of the obstruction (such as a high-rise building) is the angle β2 between the line OB′ connecting the vertical projection point B′ of the third point B on the horizontal plane and the point O and the y-axis.
[0196] It should be noted that in the embodiment of the present application, the polar diameter ρ of the vertical projection point of the third point of the obstruction on the plane where the second polar coordinate system is located is zdCharacterize the altitude angle of the obstruction (such as α2 above), and take the polar angle θ of the vertical projection point of the third point of the obstruction on the plane where the second polar coordinate system is located zd As the azimuth of the obstruction (such as the above β2). The above second polar coordinate system is a polar coordinate system with the first point as the pole, the ray from the pole to the north (N) direction of the local meridian as the polar axis, and the clockwise direction as the positive direction.
[0197] The polar diameter of the vertical projection point of the third point of the occluder on the plane where the second polar coordinate system is located represents the altitude angle of the occluder, and the polar angle of the vertical projection point of the third point of the occluder on the plane where the second polar coordinate system is located is used as the specific method and principle of the azimuth angle of the occluder. The polar coordinate (ρ wx ,θ wx ) wx As the satellite's azimuth, the polar radius ρ wx The specific method and principle of characterizing the altitude angle of the satellite will not be described in detail in the embodiments of the present application.
[0198] The server 400 can determine the polar coordinates (ρ ) of the multiple points of each obstruction located around the first point according to the altitude angle and azimuth angle of the multiple points of the obstruction in the polar coordinate system with the first point as the pole. zd ,θ zd ). Among them, ρ zd Characterizes the height angle of a point (such as the third point) of the occluder, θ zd Then, the server 400 can connect the polar coordinates of multiple points of the obstruction around the first point in the polar coordinate system to draw the sky obstruction curve of the first point, that is, the sky obstruction curve of the first grid corresponding to the first point.
[0199] For example, the first point O of a first grid is located at Fig. 11B In the middle of the road shown in (a), there are many obstructions (such as tall buildings) around the first point O. Fig. 11B As shown in (b), Fig. 11B The polar coordinates of a point D of the high-rise building shown in (a) in the polar coordinate system with the first point O as the pole are D(ρ wx D ,θ wx D ), the polar coordinates of a point E of the high-rise building in the polar coordinate system with the first point O as the pole are E(ρ wx E ,θ wx E ). Server 400 can be Fig. 11B Draw the sky occlusion curve S of the first point O in the polar coordinate system shown in (b) in FIG.
[0200] Among them, since the larger the polar diameter of the projection point of any point of the occluder (such as the third point) on the plane where the second polar coordinate system is located, the smaller the altitude angle of the third point of the occluder; the smaller the polar diameter of the vertical projection point of the third point of the occluder on the plane where the second polar coordinate system is located, the larger the altitude angle of the third point of the occluder; therefore, Fig. 11B The elevation angle of the highest point of the high-rise building E shown in (b) is smaller than the elevation angle of the highest point of the high-rise building D.
[0201] It can be understood that there may be obstructions at each azimuth of the first point of each first grid. Under the premise that the azimuth of the satellite is the same as the azimuth of any point (such as the third point) of an obstruction of the first point, if the altitude angle of the satellite is less than the altitude angle of the third point of the obstruction, then the electronic device located at the first point cannot receive the broadcast signal transmitted in a straight line by the satellite. In other words, the satellite is a non-line-of-sight satellite for the electronic device. If the altitude angle of the satellite is greater than the altitude angle of the third point of the obstruction, then the electronic device located at the first point can receive the broadcast signal transmitted in a straight line by the satellite. In other words, the satellite is a line-of-sight satellite for the electronic device.
[0202] For example, Fig. 11C As shown, the azimuth angle of a point B of the tall building, the azimuth angle of satellite A and the azimuth angle of satellite C are all β, the elevation angle of point B of the tall building is α2, the elevation angle of satellite A is α1, and the elevation angle of satellite C is α3. Among them, the azimuth angle of point B of the tall building, the azimuth angle of satellite A and the azimuth angle of satellite C are the same, that is, point B of the tall building, satellite A and satellite C are at the same azimuth of the first point O. Then, since the elevation angle α1 of satellite A is smaller than the elevation angle α2 of point B of the tall building; therefore, the broadcast signal transmitted by satellite A cannot be received by the electronic device located at the first point O through straight-line transmission due to the obstruction of the tall building, and satellite A is a non-line-of-sight satellite at the first point O. Since the elevation angle α3 of satellite C is larger than the elevation angle α2 of point B of the tall building; therefore, the broadcast signal transmitted by satellite C will not be obstructed by the tall building, and satellite C is a line-of-sight satellite at the first point O. If the broadcast signal transmitted by satellite C is not obstructed by other obstructions, it can be received by the electronic device located at the first point O through straight-line transmission.
[0203] From the above description, it can be seen that if the polar coordinates of the satellite in the polar coordinate system with the first point as the pole are located within the sky occlusion curve of the first point (such as Fig. 11B If the satellite is located outside the sky obstruction curve S shown in the figure, it means that the satellite is a line-of-sight satellite located at the first point. The broadcast signal emitted by the satellite will not be obstructed and can be received by the electronic device located at the first point through straight-line transmission. If the polar coordinates of the satellite in the polar coordinate system with the first point as the pole are located outside the sky obstruction curve of the first point (such as Fig. 11BIf the satellite is a gray area outside the sky blocking curve S shown in FIG. 1 , it means that the satellite is a non-line-of-sight satellite of the first grid. The broadcast signal transmitted by the satellite will be blocked and cannot be received by the electronic device at the first point through straight-line transmission.
[0204] To summarize, a sky obstruction curve of a first grid can be used to determine whether a satellite is a line-of-sight satellite or a non-line-of-sight satellite of the first grid, that is, to determine whether the broadcast signal transmitted by the satellite will be obstructed and whether it can be received by an electronic device located at the first point through straight-line transmission.
[0205] S803. The server 400 stores grid data of the at least one first grid.
[0206] The server 400 may store the grid data of at least one first grid of each of the at least one map tile. Fig. 12A Tile database 1200 is shown.
[0207] For example, Fig. 12A As shown, the tile database 1200 stores grid data of at least one first grid of map tile 1, grid data of at least one first grid of map tile 2, and grid data of at least one first grid of map tile 3. Taking map tile 1 as an example, Fig. 12A As shown, at least one grid data of the map tile 1 may include: grid data of the first grid 1, grid data of the first grid 2, grid data of the first grid 3, and grid data of the first grid 4. Taking the first grid 1 as an example, Fig. 12A As shown, the grid data of the first grid 1 may include: a sky occlusion curve and position information of the first grid 1 .
[0208] As time goes by, the obstructions (such as buildings) around the first point of the first grid may change. Therefore, the sky obstruction curve of the first grid may change. Based on this, the server 400 may periodically execute S801-S803 to obtain the latest grid data.
[0209] In some embodiments, the grid information of the first grid may further include: (III) building attribute information of the first grid (also referred to as grid attribute information). Fig. 12A As shown, the grid data of the first grid 1 may also include grid attribute information (also called building attribute information).
[0210] Among them, the building attribute information of the first grid is used to indicate whether the first grid (such as the first point of the first grid) is located inside the building or outside the building. Exemplarily, the server 400 can determine whether the first point is located inside or outside the building based on the location information (such as longitude and latitude coordinates) of the first point of the first grid and the 3D building data of each building around the first point. Specifically, the 3D building data may include the location outline coordinates and height information of the building. The location outline coordinates of a building include the longitude and latitude coordinates of each point on the outer contour of the building, and the height information is used to indicate the height of each point on the outer contour of the building compared to the horizontal plane. The server 400 can compare the longitude and latitude coordinates of the first point of the first grid with the location outline coordinates of each building around the first point to determine whether the first point is located inside or outside the building.
[0211] For example, if the building attribute information of the first grid is the first identification information, it means that the first grid is located inside the building; if the building attribute information of the first grid is the second identification information, it means that the first grid is located outside the building. For example, the first identification information may be "1" and the second identification information may be "0"; or the first identification information may be "01" and the second identification information may be "00", etc.
[0212] It can be understood that if the building attribute information of the first grid indicates that the first grid is located inside the building; then, the electronic device located in the first grid cannot receive the broadcast signal transmitted by the satellite. Therefore, the electronic device located in the first grid cannot perform GNSS positioning. In other words, the grid data of the first grid will not be used for position calibration to improve positioning accuracy. In summary, the server 400 may not save the grid data of the first grid (i.e., the first grid located outside the building) whose building attribute information is the second identification information. In this way, the storage space occupied by the grid data on the server 400 can be reduced.
[0213] It can be known from the above description that before executing S802, the server 400 may execute S800a. S800a: The server 400 obtains 3D building data corresponding to at least one map tile. The 3D building data corresponding to a map tile may include: 3D building data of multiple buildings in the map tile. The 3D building data may include the location outline coordinates and height information of the building.
[0214] Exemplarily, the 3D building data of the above building may be data in kml format. For example, the following shows 3D building data of a building based on kml format.
[0215]
[0216]
[0217] The "ID">1367376<" in the above 3D building data is the identification (ID) of the building. The ID of the building is used to uniquely identify the building. <coordinates>Includes: the latitude, longitude and height of multiple points on the outer contour of the building. The height of a point on the outer contour of the building is the height of the point relative to the horizontal plane. For example, the above <coordinates>The "121.470016124,31.22345601100005,9.45" in the figure indicates that the longitude of a point on the building is "121.470016124°", the latitude is "31.22345601100005°", and the height of the point relative to the horizontal plane is 9.45 meters.
[0218] It should be noted that in the embodiment of the present application, a latitude greater than 0 can be used to represent the north latitude, and a latitude less than 0 can be used to represent the south latitude. That is, when the latitude of a point is a positive value, the latitude represents the north latitude, and when the latitude of a point is a negative value, the latitude represents the south latitude. For example, in the above kml format 3D building data, the latitude of each point is the north latitude.
[0219] In the embodiment of the present application, the longitude within (0°, 180°) indicates the east longitude; the longitude within (-180°, 0°) indicates the west longitude. Alternatively, the longitude within (0°, 180°) indicates the east longitude; the longitude within (180°, 360°) indicates the west longitude. For example, in the above kml format 3D building data, the longitude of each point is the east longitude.
[0220] It can be understood that, based on the 3D building data corresponding to a map tile, a building distribution diagram can be drawn that can mark the outline of the above building according to the relative positions of each building in the geographical area corresponding to the map tile. Fig. 12B As shown, it is a schematic diagram of building distribution with outlines of various buildings in a geographical area corresponding to a map tile marked.
[0221] (2) "Positioning" process.
[0222] Among them, the "positioning" process is used to locate the electronic device. Through this "positioning" process, the positioning accuracy of the electronic device can be improved.
[0223] In the first case, the first electronic device and the second electronic device are the same electronic device. The electronic device may be a device with a large storage space and a strong computing power. For example, the electronic device may be Figure 4 In this case, the first electronic device (such as the mobile phone 410) can obtain grid data of at least one first grid of at least one map tile from the server 400, and save the obtained data; then, the first electronic device corrects the first position obtained by positioning the first electronic device according to the obtained data to improve the positioning accuracy of the electronic device.
[0224] For example, in the present embodiment, the first electronic device and the second electronic device are both Figure 4 Taking the mobile phone 410 shown as an example, the "positioning" process in the above-mentioned case (1) is explained.
[0225] like Figure 8 As shown, in case (1), before executing the "positioning" process, Figure 8 As shown, the method of the embodiment of the present application may further include S804-S805. That is, the above-mentioned "data processing" process may further include S804-S805.
[0226] S804 . The mobile phone 410 obtains, from the server 400 , grid data of at least one first grid of at least one map tile in the i-th layer tile map.
[0227] In one implementation, the mobile phone 410 may actively send a grid data request to the server 400 to request to obtain the above grid data from the server 400; in response to receiving the grid data request, the server 400 may send the above grid data to the mobile phone 410. For example, a data download client corresponding to the above server 400 may be installed in the mobile phone 410. The mobile phone 410 may send the above grid data request to the server 400 in response to the user's operation in the client (i.e., the operation for triggering the mobile phone 410 to obtain the above grid data).
[0228] In another implementation, the server 400 may actively send the above-mentioned grid data to the mobile phone 410; the mobile phone 410 may receive the grid data sent by the server 400. For example, the mobile phone 410 may be installed with a client corresponding to the above-mentioned server 400. The mobile phone 410 may receive the grid data sent by the server 400 through the client.
[0229] S805. The mobile phone 410 saves the grid data of at least one first grid of the at least one map tile.
[0230] The mobile phone 410 may store grid data of at least one first grid of the map tile for each map tile in the at least one map tile.
[0231] Optionally, in order to reduce the load of the mobile phone 410 and reduce the occupation of the storage space of the mobile phone 410 by the grid data, the mobile phone 410 may obtain the grid data of at least one first grid of the map tile corresponding to the preset geographical area from the server 400.
[0232] The preset geographical area may be a geographical area covered by a circle with the current location of the mobile phone 410 as the center and a preset distance as the radius. For example, the preset distance may be 10 kilometers (km), 100 km, 1*10 km, 2*10 km, 3*10 km, 4*10 km, 5*10 km, 6*10 km, 7*10 km, 8*10 km, 9*10 km, 10*10 km 3 km、2*10 3 km or 10*10 3 km or any other distance. Alternatively, the preset geographical area may be a geographical area where the mobile phone 410 is frequently active within a preset time. For example, the preset time may be any time length such as 1 month, 2 months, 6 months or 1 year.
[0233] For example, please refer to Fig. 12C , which shows a principle block diagram of the positioning method executed by the mobile phone 410 in the above-mentioned situation (1).
[0234] In case (1), the above-mentioned "data processing" process may include Fig. 12C The following process is shown: the server 400 stores a tile database 401 (such as Fig. 12A The tile database 1200 shown in FIG. 1 is a block diagram of a tile database 1200 in FIG. 1 . For example, the server 400 may execute S801-S803 to store the tile database in the server 400. Furthermore, the server 400 may provide a data download service 402 for an electronic device (such as a mobile phone 410). The mobile phone 410 includes a data download client 411. The mobile phone 410 may execute S804 to download tile data (i.e., the grid data of the at least one first grid) from the server 400. The mobile phone 410 may also store the tile data in a memory 414.
[0235] In case (1), the above "positioning" process may include Fig. 12C The following process is shown: the satellite receiver 416 of the mobile phone 410 can receive broadcast signals transmitted by multiple satellites, and the processor 415 can perform S1201 according to the signal parameters of the broadcast signals transmitted by the multiple satellites to determine the first position of the mobile phone 410. Finally, the processor 415 can correct the first position according to the local tile data 412, the first position and the signal parameters of the multiple broadcast signals through the positioning algorithm 413, and obtain and output the corrected position.
[0236] It should be noted that Fig. 12C The positioning principle block diagram shown only provides a simple principle example of positioning by mobile phone 410 by way of example, and does not constitute a specific limitation on the positioning method provided in the embodiment of the present application.
[0237] For example, Figure 8 As shown, in case (1), the above-mentioned "positioning" process may specifically include S1201-S1205.
[0238] S1201, positioning the mobile phone 410 to obtain the first position of the mobile phone 410.
[0239] The mobile phone 410 may perform GNSS positioning to obtain the first position of the mobile phone 410. GNSS may include: one or more of GPS, GLONASS, BDS, QZSS, SBAS and GALILEO. For example, the mobile phone 410 determining the first position of the mobile phone 410 may include: the mobile phone 410 obtains the latitude and longitude coordinates of the first position.
[0240] It should be noted that the method for the mobile phone 410 to perform GNSS positioning to determine the first position can refer to the specific method for electronic devices to perform GNSS positioning in conventional technologies, and Figure 1 and Figure 2 The relevant description of the embodiments of the present application will not be repeated here.
[0241] S1202. The mobile phone 410 determines a plurality of candidate locations with the first location as a center point.
[0242] Exemplarily, the method in which the mobile phone 410 determines a plurality of candidate locations with the first location as the center point may include S1202a-S1202b.
[0243] S1202a. The mobile phone 410 determines a candidate area with the first position as the center point.
[0244] Exemplarily, the mobile phone 410 may determine the candidate area on the map based on the first position as the center point and according to a preset search distance.
[0245] For example, the mobile phone 410 can determine a square area with a side length of 2 times the preset search distance R on the map with the first position as the center point, and the square area is the candidate area. Fig.13 As shown in (a) or (b), the mobile phone 410 can determine the candidate area 1300 with the first position as the center point. Fig.13 The candidate region 1300 shown in (a) is a square region with a side length of 2R.
[0246] For another example, the mobile phone 410 may determine a circular area on the map with the first position as the center (i.e., the center point) and the preset search distance R as the radius as the candidate area. Fig.14 As shown in (a), the mobile phone 410 can determine a candidate area 1400 with a preset search distance R as a radius with the first position as the center of the circle.
[0247] S1202b: The mobile phone 410 determines a plurality of candidate locations in the candidate area.
[0248] The mobile phone 410 may determine a plurality of candidate locations in the candidate area, and obtain the latitude and longitude coordinates of the plurality of candidate locations.
[0249] In one implementation, the mobile phone 410 may divide the candidate area into K second grids, where K≥2 and K is a positive integer; then, the mobile phone 410 may determine the second point of each second grid in the K second grids as a candidate position.
[0250] The second point of a second grid may be the center point of the second grid. Fig.13 As shown in (b), an alternative position in a second grid may be the center point (ie, the second point) of the second grid.
[0251] Alternatively, the second point of a second grid may be the point at the upper left corner, the point at the upper right corner, the point at the lower left corner, the point at the lower right corner, or any point on the first grid, which is not limited in this embodiment of the present application. Fig.14 As shown in (b), a candidate position in the second grid may be a point at the lower right corner of the second grid (ie, the second point).
[0252] In another implementation, the mobile phone 410 may randomly determine multiple points from the candidate area as candidate locations, and obtain the latitude and longitude coordinates of the multiple candidate locations.
[0253] In an embodiment of the present application, the mobile phone 410 can select multiple positioning alternative positions from multiple alternative positions based on the altitude angles and azimuth angles of multiple satellites relative to the alternative positions, the grid data corresponding to the multiple alternative positions, and the signal parameters of the broadcast signals sent by the multiple satellites received by the mobile phone 410. Among them, the grid data corresponding to each alternative position includes position information and a sky occlusion curve. The sky occlusion curve of an alternative position is used to indicate the altitude angles and azimuth angles of multiple obstructions located around an alternative position relative to the alternative position. Specifically, the mobile phone 410 can execute S1203-S1204 to select multiple positioning alternative positions from multiple alternative positions.
[0254] S1203, mobile phone 410 determines the first visibility and the second visibility of the multiple satellites relative to the multiple alternative positions based on the altitude angles and azimuth angles of the multiple satellites relative to the multiple alternative positions, the grid data corresponding to the multiple alternative positions, and the signal parameters of the broadcast signals sent by the multiple satellites received by mobile phone 410.
[0255] The plurality of satellites are satellites whose broadcast signals can be received by the mobile phone 410. The first visibility of a satellite relative to an alternative location is used to indicate whether the satellite is a line-of-sight satellite or a non-line-of-sight satellite for the alternative location. The second visibility of a satellite relative to an alternative location is used to indicate the probability that the satellite is a line-of-sight satellite for the alternative location.
[0256] First, the embodiment of the present application takes the example of the mobile phone 410 determining the first visibility of a satellite relative to an alternative position, and explains the method for the mobile phone 410 to determine the first visibility of multiple satellites relative to multiple alternative positions in S1203. Among them, the mobile phone 410 can execute "determine the first visibility of the satellite relative to the alternative position according to the altitude angle and azimuth angle of a satellite relative to the alternative position, and the grid data corresponding to the alternative position" for each satellite and each alternative position to obtain the first visibility of each satellite relative to each alternative position.
[0257] Exemplarily, the mobile phone 410 takes the method of the embodiment of the present application as an example of determining the first visibility of satellite a relative to the candidate position a according to the altitude angle and azimuth angle of satellite a relative to the candidate position a and the sky shielding curve of the candidate position a. Satellite a is any one of the above-mentioned multiple satellites. The candidate position a is any one of the above-mentioned multiple candidate positions. The mobile phone 410 can execute S(1)-S(6) to determine the first visibility of satellite a relative to the candidate position a.
[0258] S(1): The mobile phone 410 obtains a first azimuth angle and a first altitude angle. The first azimuth angle is the azimuth angle of satellite a relative to candidate position a. The first altitude angle is the altitude angle of satellite a relative to candidate position a.
[0259] It should be noted that the method for mobile phone 410 to calculate the altitude angle of satellite a relative to alternative position a can refer to the method for the electronic device to calculate the altitude angle of the satellite relative to the location of the electronic device (i.e. the altitude angle of the above-mentioned satellite) in the above-mentioned embodiment, and the embodiments of the present application will not be repeated here.
[0260] Similarly, the method for mobile phone 410 to calculate the azimuth angle of satellite a relative to alternative position a can refer to the method for the electronic device to calculate the azimuth angle of the satellite relative to the location of the electronic device (i.e. the azimuth angle of the above-mentioned satellite) in the above-mentioned embodiment, which will not be described in detail in the embodiments of the present application.
[0261] S(2): The mobile phone 410 determines the first grid corresponding to the alternative location a from the at least one first grid based on the location information of the alternative location a (such as the longitude and latitude coordinates) and the location information of the at least one first grid (such as the longitude and latitude coordinates), and obtains the grid data of the first grid corresponding to the alternative location a (i.e., the grid data corresponding to the alternative location a).
[0262] First, the mobile phone 410 can compare the longitude and latitude coordinates of the candidate position a with the longitude and latitude coordinates of the at least one first grid. Then, the mobile phone 410 can determine the first grid whose longitude and latitude coordinates are closest to the longitude and latitude coordinates of the candidate position in the at least one first grid as the first grid corresponding to the candidate position a. Finally, the mobile phone 410 can obtain the grid data of the first grid corresponding to the candidate position a (i.e., the grid data corresponding to the candidate position a). The grid data corresponding to the candidate position a may include: location information and a sky occlusion curve.
[0263] S(3): The mobile phone 410 obtains a second altitude angle from the sky occlusion curve of the candidate position a according to the first azimuth angle, wherein the second altitude angle is the altitude angle of the first occluder relative to the candidate position, and the azimuth angle of the first occluder relative to the candidate position is the first azimuth angle.
[0264] It can be seen from the above embodiment that: the sky occlusion curve of a first grid includes: the altitude angles and azimuth angles of multiple points of multiple obstructions located around the first grid relative to the first point. Then, the sky occlusion curve of the alternative position a can include: the altitude angles and azimuth angles of multiple points of multiple obstructions located around the first grid where the alternative position a is located relative to the first point. It can be understood that the mobile phone 410 can determine the first obstruction (or a point on the first obstruction) with an azimuth of the first azimuth from the sky occlusion curve of the alternative position a; then, the mobile phone 410 can determine the altitude angle (i.e., the second altitude angle) of the first obstruction relative to an alternative position from the sky occlusion curve of the alternative position a.
[0265] S(4): The mobile phone 410 determines whether the first altitude angle is greater than the second altitude angle.
[0266] Specifically, if the first altitude angle is greater than the second altitude angle, the mobile phone 410 executes S(5); if the first altitude angle is less than or equal to the second altitude angle, the mobile phone 410 executes S(6).
[0267] S(5): The mobile phone 410 determines that satellite a is a visible satellite for the candidate location a. That is, the first visibility of satellite a relative to the candidate location a indicates that satellite a is a visible satellite for the candidate location a.
[0268] S(6): The mobile phone 410 determines that satellite a is a non-line-of-sight satellite for the candidate location a. That is, the first visibility of satellite a relative to the candidate location a indicates that satellite a is a non-line-of-sight satellite for the candidate location a.
[0269] For example, in the embodiment of the present application, the first grid corresponding to the candidate position a is the first grid I, and the mobile phone 410 determines the first visibility of the satellite a relative to the candidate position a as an example, and S(1)-S(6) are described in detail:
[0270] First, the mobile phone 410 executes S(1) to obtain the azimuth (such as azimuth 1, i.e., the first azimuth) and altitude (such as altitude 1, i.e., the first altitude) of the satellite a relative to the candidate position a. Then, the mobile phone 410 executes S(2) to determine that the first grid where the candidate position a is located is the first grid I. Secondly, the mobile phone 410 executes S(3) to determine the obstruction (i.e., the first obstruction) whose azimuth relative to the first grid I is azimuth 1, and obtain the altitude (such as altitude 2, i.e., the second altitude) of the first obstruction relative to the first grid I. Finally, the mobile phone 410 executes S(4) to compare the sizes of altitude 2 and altitude 1.
[0271] If the altitude angle 1 of satellite a relative to candidate position a is greater than the altitude angle 2 of the first obstruction relative to the first grid I, it indicates that satellite a is a line-of-sight satellite of the candidate position a. That is, the first visibility of satellite a relative to the candidate position a indicates that satellite a is a line-of-sight satellite of the candidate position a. The broadcast signal transmitted by the satellite a will not be blocked and can be received by the electronic device located at the candidate position a through straight-line transmission.
[0272] If the altitude angle 1 of satellite a relative to the candidate position a is less than or equal to the altitude angle 2 of the first obstruction relative to the first grid I, it means that satellite a is a non-line-of-sight satellite of the candidate position a. That is, the first visibility of satellite a relative to the candidate position a indicates that satellite a is a non-line-of-sight satellite of the candidate position a. The broadcast signal transmitted by the satellite a is blocked and cannot be received by the electronic device located at the candidate position a through straight-line transmission.
[0273] It can be seen from the above embodiments that the altitude angle and azimuth angle of a satellite relative to a position can be expressed by polar coordinates in a polar coordinate system with the position as the pole and the north direction as the magnitude axis. In other words, the altitude angle of the above satellite a relative to the candidate position a can be expressed by the polar coordinates of the satellite a in the polar coordinate system a with the candidate position a as the pole and the north direction as the magnitude axis. Specifically, the polar diameter ρ of the projection point of the satellite a on the plane where the polar coordinate system a is located can be expressed by wx Characterizes the altitude angle of satellite a relative to the candidate position a, with the polar angle θ of the projection point of satellite a on the plane where the polar coordinate system a is located wx as the azimuth of satellite a relative to candidate position a.
[0274] In some embodiments, the mobile phone 410 can determine the polar coordinates (ρ wx a ,θ wx a ), whether it is located within the sky occlusion curve I of the above-mentioned first grid I, determines whether the satellite a is a line-of-sight satellite or a non-line-of-sight satellite of the alternative position a, that is, determines the first visibility of the satellite a relative to the alternative position a.
[0275] Specifically, if the polar coordinates of satellite a (ρ wx a ,θ wx a ) is within the sky occlusion curve I (e.g. Fig.15A If the sky blocking curve I shown in FIG. 1 is a white area surrounded by the city), it means that satellite a is a line-of-sight satellite of candidate position a. The broadcast signal transmitted by satellite a will not be blocked and can be received by the electronic device located at candidate position a through straight-line transmission.
[0276] If the polar coordinates of satellite a (ρ wx a ,θ wx a ) is outside the sky occlusion curve I (e.g. Fig.15A If the satellite a is a non-line-of-sight satellite at the candidate position a, the broadcast signal transmitted by the satellite a is blocked and cannot be received by the electronic device at the candidate position a through straight-line transmission.
[0277] For example, Fig.15A As shown in , since the polar coordinates of satellites G03, G22, E09, G32, E19, E21, C14, G10, and E01 are outside the sky occlusion curve I, these satellites are line-of-sight satellites at candidate position a, as shown in Table 1. Fig.15A As shown, since the polar coordinates of satellite G01, satellite G11, satellite E04, satellite G18, satellite G14 and satellite G31 are located within the sky occlusion curve I; therefore, as shown in Table 1, these satellites are non-line-of-sight satellites at alternative position a.
[0278] Table 1
[0279]
[0280]
[0281] Fig.15A In the figure, black circles are used to represent non-line-of-sight satellites of the first visibility indication relative to the candidate position a, and white circles are used to represent line-of-sight satellites of the first visibility indication relative to the candidate position a.
[0282] The satellites G03, G22, G32, G10, G01, G11, G14, G31 and G18 belong to the same satellite system. The satellites E09, E19, E21, E01 and E04 belong to the same satellite system. The satellite C14 is a satellite of another satellite system.
[0283] It can be understood that since the position of a satellite relative to the earth is unchanged, and the coordinate position of an alternative position on the earth is also unchanged within a certain period of time; therefore, within a certain period of time, the "elevation angle and azimuth angle of a satellite relative to an alternative position" are fixed. Moreover, within a certain period of time, the "sky occlusion curve corresponding to an alternative position" is also fixed. It can be seen that the "elevation angle and azimuth angle of a satellite relative to an alternative position" and the "sky occlusion curve corresponding to an alternative position" will not change due to the measurement error of the pseudorange between the mobile phone 410 and the satellite.
[0284] Furthermore, since the first visibility of a satellite relative to an alternative position is determined based on "the altitude angle and azimuth angle of the satellite relative to the alternative position" and "the sky shielding curve corresponding to the alternative position", it can be concluded that the "first visibility of a satellite relative to an alternative position" calculated by mobile phone 410 is the actual situation of whether the satellite is a line-of-sight satellite or a non-line-of-sight satellite of the alternative position.
[0285] Secondly, the embodiment of the present application takes the example of the mobile phone 410 determining the second visibility of a satellite relative to a candidate position to explain the method of the mobile phone 410 determining the second visibility of multiple satellites relative to multiple candidate positions in S1203. Among them, the mobile phone 410 can perform "determining the second visibility of multiple satellites relative to an alternative position according to the signal parameters of the broadcast signals sent by the mobile phone 410 and received by the mobile phone 410" for each satellite and each alternative position to obtain the second visibility of each satellite relative to each alternative position.
[0286] In the embodiment of the present application, the second visibility may be referred to as predicted visibility. The second visibility of a satellite relative to a candidate position is used to indicate the probability that the satellite is a line-of-sight satellite of the candidate position.
[0287] Exemplarily, the above-mentioned signal parameters may include at least one of CN0, pseudorange residual and pseudorange rate. It can be seen from the description of CN0 in the above embodiment that: the larger the CN0 of a broadcast signal, the fewer times the broadcast signal may be reflected; the smaller the CN0 of a broadcast signal, the more times the broadcast signal may be reflected. If a broadcast signal transmitted by a satellite is received by an electronic device through reflected transmission, it means that the satellite is a non-line-of-sight satellite at the location of the electronic device. It can be concluded that: the larger the CN0 of a broadcast signal transmitted by a satellite, the higher the probability that the satellite is a non-line-of-sight satellite at the location of the electronic device, and the lower the probability that the satellite is a line-of-sight satellite at the location of the electronic device; the smaller the CN0 of a broadcast signal transmitted by a satellite, the higher the probability that the satellite is a line-of-sight satellite at the location of the electronic device, and the lower the probability that the satellite is a non-line-of-sight satellite at the location of the electronic device.
[0288] The pseudorange residual refers to the difference between the precise distance (i.e., the true distance) between the electronic device and the satellite and the pseudorange. Among them, the more times the broadcast signal emitted by the satellite is reflected, the larger the pseudorange. The larger the pseudorange, the larger the pseudorange residual between the electronic device and the satellite. Combined with the above description, it can be concluded that: the larger the pseudorange residual between the electronic device and the satellite, the higher the probability that the satellite is a non-line-of-sight satellite at the location of the electronic device, and the lower the probability that the satellite is a line-of-sight satellite at the location of the electronic device; the smaller the pseudorange residual between the electronic device and the satellite, the higher the probability that the satellite is a line-of-sight satellite at the location of the electronic device, and the lower the probability that the satellite is a non-line-of-sight satellite at the location of the electronic device.
[0289] The pseudorange rate refers to the speed of change of the pseudorange between the electronic device and the satellite. The larger the pseudorange rate, the greater the change of the pseudorange, the higher the probability that the satellite is a non-line-of-sight satellite at the location of the electronic device, and the lower the probability that the satellite is a line-of-sight satellite at the location of the electronic device.
[0290] In summary, CN0, pseudorange rate, and pseudorange residual all affect the visibility of satellites relative to the location of the electronic device.
[0291] Exemplarily, the method of the embodiment of the present application is illustrated by taking the example of the mobile phone 410 determining the second visibility of the satellite a relative to the alternative position a according to the signal parameters of the broadcast signal sent by the satellite a received by the mobile phone 410.
[0292] First, the mobile phone 410 obtains the signal parameters (including CN0, pseudorange residual and pseudorange rate) of the electronic device receiving the broadcast signal transmitted by the satellite at the candidate position a. For example, please refer to Table 2, which shows the signal parameters of the electronic device receiving the broadcast signal transmitted by the satellite at the candidate position a. Fig.15A Or an example schematic table of signal parameters of broadcast signals of multiple satellites shown in Table 1.
[0293] Table 2
[0294] satellite Pseudorange Pseudorange rate CN0 Satellite C14 25460640.4 547.284059 16 Satellite E01 26171185.33 -299.652085 18 Satellite E04 23551635.63 164.1656862 17 Satellite E09 25580824.59 -175.703446 38 Satellite E19 26271989.21 487.1018532 12 Satellite E21 26777369.35 129.8596962 15 Satellite G01 21243876.97 -104.743798 35 Satellite G03 23429238.77 -412.131468 30 Satellite G10 23521690.24 619.2646425 25 Satellite G11 21566968.91 305.4507994 34 Satellite G14 21025061.07 399.96051 31 Satellite G18 20556599.03 330.3643939 19 Satellite G22 21945800.04 -292.945262 25 Satellite G31 20765697.11 -156.34733 23 Satellite G32 21905732.79 566.4123715 31
[0295] Finally, the mobile phone 410 uses the above signal parameters as input and determines the second visibility of the above multiple satellites relative to the alternative position a through a preset AI model.
[0296] The model code of the preset AI model may be stored in the mobile phone 410. The mobile phone 410 may run the model code of the preset AI model, take the above signal parameters as input, and determine the second visibility of multiple satellites relative to the candidate position a through the preset AI model.
[0297] The preset AI model may be an AI model obtained by the server 400 or other servers using a large number of training samples and trained with a large number of samples. The preset AI model has the ability to determine the second visibility of the satellite relative to the location of the electronic device based on "the signal parameters of the broadcast signal transmitted by the satellite received by the electronic device". The training samples include: the signal parameters of the broadcast signal transmitted by the satellite received by the electronic device as training samples.
[0298] Exemplarily, the preset AI model may be obtained by adopting a deep learning algorithm and training with a large number of samples. Alternatively, the preset AI model may be obtained by adopting a classification algorithm and training with a large number of samples. For example, the classification algorithm may include any one of a support vector machine (SVM) model, a maximum entropy model, a fast text classification algorithm (fasttext) model, a convolutional neural network (CNN) model, an n-gram model, or a recurrent neural network (RNN) model.
[0299] In the embodiment of the present application, the second visibility indication of a satellite relative to the alternative position a indicates the probability that the satellite is a line-of-sight satellite of the alternative position a. If the probability that a satellite is a line-of-sight satellite of the alternative position a (i.e., the probability of the second visibility indication) is greater than or equal to a preset probability threshold, it indicates that the satellite is a line-of-sight satellite of the alternative position a. If the probability that a satellite is a line-of-sight satellite of the alternative position a is less than the preset probability threshold, it indicates that the satellite is a non-line-of-sight satellite of the alternative position a. For example, the preset probability threshold may be any value such as 90%, 95%, 96%, or 85%.
[0300] For example, assuming that the above preset probability threshold is 90%. As shown in Table 3, the probability that satellite G03, satellite G22, satellite E09, satellite G32, satellite G10, satellite G01, satellite G11, satellite E04, satellite G18, satellite G14, and satellite G31 are line-of-sight satellites for candidate position a is greater than or equal to the preset probability threshold. The probability that satellite E19, satellite E21, satellite C14, and satellite E01 are line-of-sight satellites for candidate position a is less than the preset probability threshold. Combined with Table 3, as Fig. 15B As shown, the black circles represent the non-line-of-sight satellites at the candidate location a, and the white circles represent the line-of-sight satellites at the candidate location a.
[0301] Table 3
[0302]
[0303] It is understandable that there may be measurement errors in the signal parameters (such as pseudorange) of the broadcast signal sent by the satellite received by the mobile phone 410. Therefore, the "second visibility of the satellite relative to the candidate position" determined based on the "signal parameters of the broadcast signal sent by the satellite received by the mobile phone 410" may not reflect the actual situation that the satellite is a line-of-sight satellite for the candidate position.
[0304] S1204. Mobile phone 410 selects multiple positioning candidate positions from the multiple candidate positions according to the first visibility and the second visibility of the multiple satellites relative to the multiple candidate positions.
[0305] In one implementation, the plurality of candidate positioning positions may include candidate positions for which the number of satellites meeting a preset condition is greater than a preset number threshold. The satellites meeting the preset condition are satellites for which the first visibility matches the second visibility.
[0306] In an embodiment of the present application, the first visibility and second visibility of a satellite relative to an alternative position match, which may specifically include: the first visibility indicates that the satellite is a line-of-sight satellite of the alternative position, and the second visibility is greater than or equal to a preset probability threshold; or, the first visibility indicates that the satellite is a non-line-of-sight satellite of the alternative position, and the second visibility is less than the preset probability threshold.
[0307] For example, assuming that the plurality of satellites are 6 satellites (including satellite 1 to satellite 10), the preset probability threshold is 90%. The plurality of candidate positions include: candidate position 1, candidate position 2, candidate position 3 and candidate position 4. Please refer to Table 4, which shows an example table of first visibility and second visibility of satellite 1 to satellite 10 relative to candidate position 1 to candidate position 3.
[0308] Table 4
[0309]
[0310] As shown in Table 4, the first visibility of satellite 1 relative to alternative position 1 indicates that satellite 1 is a line-of-sight satellite for alternative position 1; the second visibility indicates that the probability that satellite 1 is a line-of-sight satellite for alternative position 1 is 95%, and 95% is greater than 90% (i.e., the preset probability threshold). Therefore, the first visibility of satellite 1 relative to alternative position 1 matches the second visibility. As shown in Table 4, the first visibility of satellite 2 relative to alternative position 1 indicates that satellite 2 is a non-line-of-sight satellite for alternative position 1; the second visibility indicates that the probability that satellite 1 is a line-of-sight satellite for alternative position 1 is 55%, and 55% is less than 90% (i.e., the preset probability threshold). Therefore, the first visibility of satellite 2 relative to alternative position 1 matches the second visibility.
[0311] Similarly, it can be concluded from Table 4 that the first visibility and the second visibility of satellite 3 relative to candidate position 1 do not match; the first visibility and the second visibility of satellite 4 relative to candidate position 1 match; the first visibility and the second visibility of satellite 5 relative to candidate position 1 match; the first visibility and the second visibility of satellite 6 relative to candidate position 1 match. It can be concluded that for candidate position 1, the number of satellites that meet the preset conditions is 5.
[0312] Similarly, it can be concluded from Table 4 that: for alternative position 2, the number of satellites that meet the preset conditions is 4; for alternative position 3, the number of satellites that meet the preset conditions is 2; for alternative position 4, the number of satellites that meet the preset conditions is 3.
[0313] Assume that the preset number threshold is 3. Then, for the candidate positions 1 and 2 shown in Table 4, the number of satellites that meet the preset conditions is greater than the preset data threshold. Therefore, the candidate positions 1 and 2 shown in Table 4 are positioning candidate positions.
[0314] In another implementation, the plurality of candidate locations include: M candidate locations among the plurality of candidate locations, M≥2, and M is a positive integer. The number of satellites that meet the preset conditions in the M candidate locations is greater than the number of satellites that meet the preset conditions in other candidate locations. The other candidate locations include candidate locations other than the M candidate locations among the plurality of candidate locations.
[0315] For example, in combination with the example shown in Table 4, it is assumed that N=3. The above-mentioned candidate location 1, candidate location 2, candidate location 3 and candidate location 4. The above-mentioned multiple positioning candidate locations may include candidate location 1, candidate location 2 and candidate location 4. Among them, the number of satellites of the preset conditions of candidate location 1, candidate location 2 and candidate location 4 is greater than the number of satellites of the preset condition of candidate location 2.
[0316] In another implementation, for each candidate location, the number of satellites that meet the preset conditions (i.e., satellites that match the first visibility and the second visibility) can be used to determine the score of the candidate location. That is, the mobile phone 410 can count the number of satellites that match the first visibility and the second visibility relative to each candidate location, and determine the score of the corresponding candidate location based on the counted number. Then, the mobile phone 410 can select multiple positioning candidate locations from the multiple candidate locations based on the score of each candidate location.
[0317] For example, take the above-mentioned candidate position a as an example. Comparing Table 1 and Table 3, it can be seen that: relative to the candidate position a, the first visibility and the second visibility of satellite G03 do not match, the first visibility and the second visibility of satellite G22 do not match, the first visibility and the second visibility of satellite E09 do not match, the first visibility and the second visibility of satellite G32 do not match, the first visibility and the second visibility of satellite E19 match, the first visibility and the second visibility of satellite E21 match, the first visibility and the second visibility of satellite C14 match, the first visibility and the second visibility of satellite G10 do not match, the first visibility and the second visibility of satellite E01 do not match, the first visibility and the second visibility of satellite G01 match, the first visibility and the second visibility of satellite G11 match, the first visibility and the second visibility of satellite E04 match, the first visibility and the second visibility of satellite G18 match, the first visibility and the second visibility of satellite G14 match, and the first visibility and the second visibility of satellite G31 match. With respect to the candidate position a, the number of satellites for which the first visibility and the second visibility match is 9.
[0318] The number of candidates counted for a candidate position is proportional to the score of the candidate position, that is, the higher the number of candidates counted for a candidate position, the higher the score of the candidate position; the lower the number of candidates counted for a candidate position, the lower the score of the candidate position.
[0319] Exemplarily, the value interval of the score of each candidate position may be [0, T]. For example, T=10. After the mobile phone 410 obtains the number of satellites matching the first visibility and the second visibility relative to a candidate position, it may calculate the ratio of the number obtained by counting and the total number of the plurality of satellites; then, the product of the ratio and T is calculated. The product calculated by the mobile phone 410 is the score of the candidate position.
[0320] Exemplarily, the mobile phone 410 may select a candidate position with a score greater than a preset score threshold from multiple candidate positions as the positioning candidate position. The preset score threshold is less than T. Taking T=10 as an example, the preset score threshold may be 8, 9, 7 or 6.
[0321] For example, T=10, that is, the range of the score of the candidate position can be [0, 10], and the above preset score threshold is equal to 6. Assume that the user is located at Fig. 11B Point O shown in (a) above. Fig.16A The candidate location 1600 shown is the candidate area determined by the mobile phone 410 in S1202a. Fig.16A The candidate area shown includes a plurality of second grids, each second grid corresponding to a candidate position. Fig.16A The fill color of each second grid is used to represent the score of the candidate position corresponding to the second grid. The darker the fill color of the second grid, the higher the score of the candidate position corresponding to the second grid; the whiter the fill color of the second grid, the lower the score of the candidate position corresponding to the second grid.
[0322] Mobile 410 from Fig.16A Among the multiple candidate positions shown, the candidate position with a score greater than a preset score threshold (such as 6) is selected as the positioning candidate position, and the Fig. 16B The schematic diagram of the positioning alternative position is shown in FIG. Fig. 16B As shown, the second grid filled with color (non-white) in the candidate position 1600 corresponds to the positioning candidate position. Fig. 16B The scores of the positioning candidates shown are all greater than 6.
[0323] It can be understood that, relative to an alternative location, the greater the number of satellites that match the first visibility and the second visibility (i.e., the higher the score of the alternative location), the higher the positioning accuracy of the alternative location. Therefore, in the embodiment of the present application, the mobile phone 410 corrects the above-mentioned first position according to the position information (such as longitude and latitude coordinates) of the alternative locations with higher scores (i.e., multiple positioning alternative locations), which can improve the positioning accuracy of the mobile phone 410.
[0324] S1205. The mobile phone 410 corrects the first position according to the multiple candidate positioning positions to output a corrected second position.
[0325] Exemplarily, the mobile phone 410 may use the following formula (3):
[0326]
[0327] Determine the latitude and longitude coordinates (x, y) of the second location of the mobile phone 410. i ,y i ) is the latitude and longitude coordinates of the i-th candidate positioning position among the above multiple candidate positioning positions (such as n candidate positioning positions). i is the score of the i-th positioning candidate.
[0328] In some embodiments, after the mobile phone 410 determines the above-mentioned second position, the second position can be used as the final positioning position of the mobile phone 410. It can be understood that since the second position is determined with reference to the first visibility and second visibility of multiple satellites to the mobile phone 410; therefore, the possibility of low positioning accuracy of the mobile phone 410 caused by the large pseudo-range measurement error caused by the inability of the broadcast signal transmitted by the satellite to be received by the mobile phone 410 through straight-line transmission can be reduced. Compared with the first position obtained by positioning the mobile phone 410, the positioning accuracy of the above-mentioned second position is higher. In other words, through the method of the embodiment of the present application, the positioning accuracy of the mobile phone 410 can still be guaranteed or even improved in the scenario where the signal transmitted by the satellite is easily blocked.
[0329] In some vehicle-mounted positioning solutions, the first position obtained by positioning the electronic device can be corrected based on the road. For example, the first position obtained by positioning the mobile phone 410 can be corrected to the center line of the road closest to the first position. However, this solution is only applicable to positioning error correction in high-speed motion scenarios; it is not applicable to low-speed scenarios (such as scenarios where users walk) and stationary scenarios (such as scenarios where users take a taxi). Moreover, the above solution cannot accurately identify which side of the road the electronic device is located on.
[0330] In view of the above problems, the method of the embodiment of the present application can improve the GNSS positioning accuracy while accurately locating which side of the road the electronic device (such as mobile phone 410) is located on, so as to improve the user experience. Specifically, the grid data of the first grid can also include: a road sign of the road where the first grid is located.
[0331] Exemplarily, in the embodiment of the present application, the grid data of the first grid may further include: (IV) road attribute information of the first grid. Fig. 12A As shown, the grid data of the first grid 1 may also include road attribute information.
[0332] The road attribute information of the first grid may include: road indication information. The road indication is used to indicate whether the first grid (such as the first point of the first grid) is on the road or outside the road.
[0333] If the road indication information of a first grid indicates that the first grid is on a road, then the road attribute information of the first grid may also include: road data of the road where the first grid is located. The road data may include road identification, road starting point coordinates, road width information, road direction information, etc. The road data of a road may be composed of a set of longitude and latitude coordinates of points.
[0334] The grid data corresponding to the above-mentioned multiple candidate positions are included in the data of one or more map tiles. The data of the map tile may include not only the building data of the building in the map tile, but also the road data of the road in the map tile.
[0335] From the above description, it can be known that the server 400 may execute S800b before executing S802. S800b: The server 400 obtains road data of a road in at least one map tile. Then, the server 400 may execute S802 to obtain road attribute information of at least one first grid (ie, multiple locations) from the road data obtained by executing S800b.
[0336] The road data of a road in a map tile may include: the road data of the road in the map tile. The road data of a road may include: the road identification (also called road number), the coordinates of the road starting point, the road width information and the road direction information of the road.
[0337] Exemplarily, the road data of the above road may be data in kml format. For example, the following shows a road data based on kml format.
[0338]
[0339]
[0340] Among them, "ID">72520< in the above road data is the road number, also known as the road ID. The road ID is used to uniquely identify the road. "WIDTH">20.0< in the above road data indicates that the width of the road is 20 meters. <coordinates>Includes: the longitude and latitude coordinates of multiple points on the road (such as the starting point of the road). <coordinates>The "121.46006087300009,31.194542826000017" in the figure indicates that the longitude of a point on the road is "121.46006087300009°" and the latitude is "31.194542826000017°". Of course, the above road data also includes other data of the above road (such as the maximum driving speed, etc.), which will not be introduced one by one in the embodiments of the present application.
[0341] From the description of longitude and latitude in the above embodiment, it can be seen that latitude greater than 0 indicates north latitude, latitude less than 0 indicates south latitude; longitude within (0°, 180°) indicates east longitude. For example, in the above kml format road data, the longitude of each point is east longitude, and the latitude is north latitude.
[0342] It can be understood that, based on the road data of a road in a map tile, a road distribution diagram can be drawn according to the relative positions of each road in the geographical area corresponding to the map tile to mark the above roads. For example, assuming that the geographical area corresponding to a map tile A is Fig. 16C The geographical area A shown in (a) is shown in FIG. Fig. 16C As shown in (a) in FIG. 1 , it is a road distribution diagram with the outlines of each road in the geographical area A marked. Fig. 16C The black lines shown in (a) in FIG. 4 indicate the roads in the geographical area A. The server 400 executes S800b for the geographical area A corresponding to the map tile A, and can obtain Fig. 16C The road data of the road marked by the black line shown in (a) (including road signs and road line coordinates of multiple roads, etc.) is the road data corresponding to the map tile.
[0343] Optionally, before S802, the server 400 can filter out roads with low positioning accuracy from the roads in the geographical area corresponding to each map tile. Among them, the electronic device located on the road with low positioning accuracy has a low possibility of receiving the broadcast signal transmitted by the satellite through straight-line transmission. In other words, the positioning accuracy of the first position obtained by positioning the electronic device located on the road with low positioning accuracy is low. Therefore, when the electronic device (such as mobile phone 410) is located on the above-mentioned road with low positioning accuracy, the method of the embodiment of the present application can be executed to effectively improve the positioning accuracy of the electronic device.
[0344] Illustratively, after S800b, the server 400 may execute S800c-S800d to obtain the road data of the above-mentioned road with low positioning accuracy.
[0345] S800c: The server 400 selects a road that meets a preset selection condition from the roads in the geographic area A corresponding to the map tile A; the server 400 removes the curved sections in the roads that meet the preset selection condition, and determines one or more first roads. The roads that meet the preset selection condition may include: the road length of the road is greater than a preset length threshold; the road is a trunk road, not a secondary road. For example, the server 400 selects a road that meets the preset selection condition. Fig. 16C Execute S800c on the roads in the geographic area A shown in (a) of FIG. 1 , and you can get Fig. 16C The first road marked by the black line in (b) is obtained Fig. 16C The road data of the first road indicated by the black line shown in (b) in FIG.
[0346] S800d: The server 400 segments the one or more first roads according to preset length intervals to obtain multiple second roads; the server 400 selects a second road that meets the preset road conditions from the multiple second roads. The second road that meets the preset road conditions is the low positioning accuracy road. The server 400 can obtain road data for each low positioning accuracy road.
[0347] Exemplarily, the second road satisfying the preset road conditions may include: a second road having buildings (such as high-rise buildings) on both sides of the road, and a ratio of the maximum height of the buildings on both sides to the road width is greater than a preset ratio threshold.
[0348] It can be understood that if there are buildings on both sides of a road, then the possibility of electronic devices located on the road receiving the broadcast signal emitted by the satellite through straight-line transmission is low, and the positioning accuracy of the first position obtained by the electronic devices located on the road with low positioning accuracy is low.
[0349] For example, the preset ratio threshold may be 100%, 80% or 90%, etc. Taking the preset ratio threshold as 100% as an example, if the ratio of the maximum height of buildings on both sides of a road to the road width of the road is greater than 100%, then the possibility of an electronic device located on the road receiving a broadcast signal transmitted by a satellite through straight-line transmission is low, and the positioning accuracy of the first position obtained by positioning the electronic device located on the low positioning accuracy road is low.
[0350] For example, the preset length interval may be 100m, 80m, 120m or 110m, etc. Taking the preset length interval of 100m as an example, the server 400 may Fig. 16C Each first road marked by the white lines shown in (b) is divided into a plurality of second roads with a road length less than or equal to 100 m. Fig. 16C The plurality of second roads marked by the white boxes shown in (c) are all second roads that meet the above-mentioned preset road conditions. Fig. 16C Each white box shown in (c) is used to identify a second road that meets the preset road condition.
[0351] In summary, the possibility of an electronic device located on a second road (i.e., a road with low positioning accuracy) that meets the preset road conditions to receive a broadcast signal transmitted by a satellite through straight-line transmission is low. In other words, the positioning accuracy of the first position obtained by positioning an electronic device located on a second road (i.e., a road with low positioning accuracy) that meets the preset road conditions is low. Therefore, when an electronic device (such as mobile phone 410) is located on the road with low positioning accuracy, executing the method of the embodiment of the present application can effectively improve the positioning accuracy of the electronic device.
[0352] It should be emphasized that the road attribute information of the first grid included in the grid data of the above-mentioned first grid is for the above-mentioned low positioning accuracy road (i.e., the second road that meets the preset road conditions). Specifically, the road attribute information of a first grid includes: road indication information. The road indication information is used to indicate whether the first grid is on a second road. If the road indication information of the first grid indicates that the first grid is on a second road; then, the road attribute information of the first grid may also include: road data of the second road where the first grid is located. The road data of the second road may include road identification, road starting point coordinates, road width information, road direction information, etc.
[0353] In order to accurately locate whether the mobile phone 410 is located on the road and on which side of the road it is located, the mobile phone 410 can determine that the mobile phone 410 is located on one side of the road centerline of the positioning road according to the road data corresponding to the road signs of the roads where the positioning candidate positions are located among the multiple positioning candidate positions. The positioning road is the road where the mobile phone 410 is located.
[0354] like Fig.18 As shown, in Figure 8 After S1204 shown, the method of the embodiment of the present application may further include S1701-S1703. Fig.18 As shown, Figure 8 The S1205 shown can be replaced by S1801.
[0355] S1701. The mobile phone 410 obtains road data of the roads where some or all of the candidate positioning positions are located according to the road signs of the roads where some or all of the candidate positioning positions are located.
[0356] It is understandable that some of the multiple candidate positioning positions may be located on the road, while another part of the candidate positioning positions may be located outside the road. Of course, all of the multiple candidate positioning positions may be located on the road, or all of the candidate positioning positions may be located outside the road.
[0357] It should be noted that in the embodiment of the present application, when the mobile phone 410 is located on which side of the road centerline of the positioning road, it can use the road data corresponding to the road signs of some or all of the above-mentioned positioning alternative positions on the road.
[0358] In the embodiment of the present application, the mobile phone 410 can first determine which candidate locations are located on the road, and then obtain the road data of the target road where some or all of the candidate locations (i.e., some or all of the candidate locations) are located. For example, the mobile phone 410 can execute S(a)-S(c) to obtain the road data of the target road.
[0359] S(a): The mobile phone 410 determines the road attribute information of the candidate positioning location based on the location information (such as longitude and latitude coordinates) of the candidate positioning location and the location information (such as longitude and latitude coordinates) of the at least one first grid.
[0360] The mobile phone 410 may search for a first grid whose longitude and latitude coordinates are closest to the longitude and latitude coordinates of the candidate location from the at least one first grid. The mobile phone 410 may determine the road attribute information of the first grid as the road attribute information corresponding to the candidate location.
[0361] S(b): The mobile phone 410 determines whether the candidate positioning position is located on the road according to the road attribute information corresponding to the candidate positioning position.
[0362] The road attribute information includes road indication information. The road indication is used to indicate whether the first grid (such as the first point of the first grid) is on the road or outside the road. Specifically, the mobile phone 410 can determine whether the candidate location is on the road according to the road indication information in the road attribute information corresponding to the candidate location.
[0363] Specifically, if the road indication information indicates that the candidate location is located on a road, then the road attribute information corresponding to the candidate location also includes road data of the corresponding road, and the mobile phone 410 can execute S(c). If the road indication information indicates that the candidate location is located outside the road, then the road attribute information corresponding to the candidate location does not include road data.
[0364] S(c): the mobile phone 410 obtains the road data of the target road where each of the above-mentioned partial or all positioning candidate positions is located.
[0365] For example, mobile phone 410 targets Fig. 16B After executing S(a)-S(b) for some or all of the candidate locations shown, the road data of the target road where the above-mentioned some or all of the candidate locations are located can be obtained. Fig.17 As shown, the mobile phone 410 can determine that the target road 1 and the target road 2 are the roads where some or all of the above-mentioned candidate locations are located.
[0366] S1702: The mobile phone 410 determines a positioning road according to the distribution of some or all of the positioning candidate positions on the target road. The positioning road is the road where the mobile phone 410 is located.
[0367] For example, the mobile phone 410 may determine the target road with more candidate positioning positions among the target roads as the positioning road. Fig.17 The target road 1 shown is the positioning road of the mobile phone 410 .
[0368] S1703. The mobile phone 410 determines that the mobile phone 410 is located on one side of the center line of the positioning road according to the distribution of some or all of the candidate positioning positions on both sides of the center line of the positioning road.
[0369] The number of candidate locations distributed on one side of the road centerline of the positioning road is greater than the number of candidate locations distributed on the other side of the road centerline. Fig.17 As shown, the number of candidate positioning positions distributed on one side (such as side a) of the road centerline of the target road 1 (i.e., the positioning road) is greater than the number of candidate positioning positions distributed on the other side (such as side b) of the road centerline. Mobile phone 410 can determine that mobile phone 410 is located at Fig.17 One side of the road centerline of the target road 1 is shown (eg, side a).
[0370] Through the method of the embodiment of the present application, the mobile phone 410 can not only improve the positioning accuracy of the mobile phone 410, but also accurately locate which side of the road the mobile phone 410 is located on. In this way, it is possible to avoid the problem in some scenarios that other users cannot find the user of the mobile phone 410 in time due to the inability to accurately locate which side of the road the mobile phone 410 is located on. For example, in the Didi taxi scenario, if the mobile phone of the taxi customer is located on the east side of a north-south road, and the positioning of the mobile phone of the taxi customer shows that the mobile phone is located on the west side of the road; then, it is difficult for the Didi driver to pick up the taxi customer on time based on the positioning. Through the method of the embodiment of the present application, it is possible to determine which side of the road the mobile phone of the taxi customer is located on, which can improve the user experience of the taxi customer.
[0371] S1801. The mobile phone 410 calculates a vertical projection of a first position on a road edge line on one side of a road center line of the above-mentioned positioned road, and outputs a second position where the vertical projection is located.
[0372] For example, combined with Fig.17 ,like Fig.19 As shown, the mobile phone 410 can calculate the vertical projection of the first position on the road edge line on one side of the road center line of the target road 1 (ie, the positioning road), and output the second position where the vertical projection is located. Fig.19 The second position shown may be obtained by correcting the first position.
[0373] In the embodiment of the present application, the mobile phone 410 accurately locates which side of the road the mobile phone 410 is located on, and can also correct the first position of the mobile phone 410 according to the relative position of the mobile phone 410 and the road where the mobile phone 410 is located (that is, the mobile phone 410 is located on the first side of the positioning road) to obtain the second position. The determination of the second position not only refers to the obstructions (such as buildings) around the first position, but also refers to the positioning road of the mobile phone 410, and the relative position of the mobile phone 410 and the positioning road (that is, the mobile phone 410 is located on one side of the positioning road). Therefore, compared with the first position of the mobile phone 410, the error between the second position and the actual position of the mobile phone 410 is small. In other words, the positioning accuracy of the mobile phone 410 can be improved by the method of the embodiment of the present application.
[0374] In the second case, the second electronic device may be a device with a small storage space and a weak computing power. Figure 4 The wearable device 420 is shown. The first electronic device can be a server 400 or a mobile phone 410 or other device with a large storage space and strong computing power.
[0375] In this case, the second electronic device (such as the wearable device 420) does not need to obtain and save the grid data of at least one first grid of the at least one map tile from the server 400. The wearable device 420 can report the first position obtained by positioning the wearable device 420 and the signal parameters of the broadcast signal received by the wearable device 420 to the server 400 or the mobile phone 410. The server 400 or the mobile phone 410 corrects the first position of the wearable device 420 based on the information reported by the wearable device 420 to improve the positioning accuracy of the electronic device.
[0376] In an implementation of the second situation, the embodiment of the present application takes the server 400 as the first electronic device and the wearable device 420 as the second electronic device as an example to illustrate the method of the embodiment of the present application.
[0377] Please refer to Fig. 20A , which shows a principle example block diagram of an implementation of the above-mentioned situation (2), in which the server 400 executes the positioning method to assist the wearable device 420 in positioning.
[0378] In one implementation of the second situation, the above-mentioned "data processing" process may include: Fig. 20A The following process is shown: the server 400 stores a tile database 401 (such as Fig. 12A For example, the server 400 may execute S801-S803 to store the tile database in the server 400.
[0379] In one implementation of the second situation, the above-mentioned "positioning" process may include: Fig. 20A The following process is shown: the satellite receiver 424 of the wearable device 420 can receive broadcast signals transmitted by multiple satellites. First, the processor 423 can execute the instructions in the computer program code stored in the memory 422, and execute S1201 according to the signal parameters of the broadcast signals transmitted by multiple satellites to determine the first position of the mobile phone 410. The processor 423 can also send the above-mentioned first position and the signal parameters of multiple broadcast signals to the server 400 through the online positioning client 421. Then, the server 400 can provide the wearable device 420 with an online positioning service 404 through the positioning algorithm 403. Specifically, the server 400 can correct the above-mentioned first position through the positioning algorithm 413 according to the local tile data 412, the first position and the signal parameters of multiple broadcast signals, and obtain and output the corrected position (such as the second position). Finally, the server 400 can indicate the corrected position to the wearable device 420 through the online positioning service 404.
[0380] It should be noted that Fig. 20A The positioning principle block diagram shown only provides a simple principle example of the server 400 assisting the wearable device 420 in positioning by way of example, and does not constitute a specific limitation on the positioning method provided in the embodiment of the present application.
[0381] For example, Fig. 20B As shown, in case (2), the above-mentioned "positioning" process may specifically include S2001-S2011.
[0382] S2001: Position the wearable device 420 to obtain a first position of the wearable device 420.
[0383] S2002 : The wearable device 420 indicates a first location of the wearable device 420 to the server 400 .
[0384] S2003. The server 400 obtains the first position indicated by the wearable device 420.
[0385] S2004. The server 400 determines a plurality of candidate locations with the first location as a center point.
[0386] S2005. The wearable device 420 sends signal parameters of the broadcast signals sent by multiple satellites to the server 400.
[0387] S2006 . The server 400 receives signal parameters of broadcast signals from multiple satellites sent by the wearable device 420 .
[0388] S2007. The server 400 determines the first visibility and the second visibility of the multiple satellites relative to the multiple alternative locations based on the altitude angles and azimuth angles of the multiple satellites relative to the multiple alternative locations, the grid data corresponding to the multiple alternative locations, and the signal parameters of the broadcast signals sent by the multiple satellites received by the mobile phone 410.
[0389] S2008. The server 400 selects a plurality of candidate positioning positions from the plurality of candidate positions according to the first visibility and the second visibility of the plurality of satellites relative to the plurality of candidate positions.
[0390] S2009. The server 400 corrects the first position according to a plurality of candidate positioning positions to output a corrected second position.
[0391] S2010. The server 400 indicates the second location to the wearable device 420.
[0392] S2011. The wearable device 420 obtains the second location indicated by the server 400 and outputs the second location.
[0393] It should be noted that S2001 can refer to the detailed description of S1201 in the above embodiment, S2004 can refer to the detailed description of S1202, S2007 can refer to the detailed description of S1203, S2008 can refer to the detailed description of S1204, and S2009 can refer to the detailed description of S1205, which will not be described in detail in the present embodiment. In addition, the technical effects brought about by the server 400 and the wearable device 420 executing S2001-S2011 can also refer to the technical effects brought about by the mobile phone 410 executing the positioning method in the above embodiment, which will not be described in detail in the present embodiment.
[0394] In the embodiment of the present application, it is considered that the storage space of the wearable device 420 may be smaller and the computing power may be weaker than that of the mobile phone 410. Tile data (i.e., the grid data of the at least one first grid mentioned above) may not be saved in the wearable device 420, and there is no need to execute S2004 and S2007-S2009 for positioning. Instead, the server 400 executes S2004 and S2007-S2009 to assist the wearable device 420 in positioning. In this way, even if the storage space and computing power of the wearable device 420 are limited, the positioning accuracy of the wearable device 420 can be improved by the method of the embodiment of the present application.
[0395] In order to accurately locate whether the wearable device 420 is located on the road and on which side of the road it is located. Fig.21A As shown, in Fig. 20B After S2008 shown, the method of the embodiment of the present application may further include S2101-S2104, and the above S2009 may be replaced by S2104.
[0396] S2101. The server 400 obtains road data of the roads where some or all of the candidate positioning positions among the multiple candidate positioning positions and the candidate positioning positions on the road are located according to the road signs of the roads where some or all of the candidate positioning positions are located.
[0397] S2102: The server 400 determines a positioning road according to the distribution of some or all of the positioning candidate positions on the target road. The positioning road is the road where the wearable device 420 is located. The target road is the road where some or all of the positioning candidate positions are located.
[0398] S2103. The server 400 determines that the wearable device 420 is located on one side of the center line of the positioning road according to the distribution of some or all of the candidate positioning positions on both sides of the center line of the positioning road.
[0399] S2104. The server 400 calculates a vertical projection of the first position or the second position on a road edge line on one side of the road center line of the above-mentioned positioning road, and outputs the second position where the vertical projection is located.
[0400] Among them, S2101 can refer to the detailed description of S1701 in the above embodiment, S2102 can refer to the detailed description of S1702 in the above embodiment, S2103 can refer to the detailed description of S1703 in the above embodiment, and S2104 can refer to the detailed description of S1801 in the above embodiment, and the embodiments of this application are not repeated here.
[0401] In another implementation of the second situation, the first electronic device may be a mobile phone 410, and the second electronic device may be a wearable device 420. Fig.21B As shown, the server 400 can execute S801-S803 to save the tile database in the server 400. The mobile phone 410 can execute S804 and S805 to obtain the grid data of at least one first grid of at least one map tile. Then, the mobile phone 410 can replace Fig.21A The server 400 and the wearable device 420 shown may execute S2001-S2009 and S2101-S2104.
[0402] In an embodiment of the present application, for devices with smaller storage space and weaker computing power (such as wearable device 420), a server 400 or a mobile phone 410 or other devices with larger storage space and stronger computing power can assist the wearable device 420 in positioning, thereby improving the positioning accuracy of the wearable device 420.
[0403] Please refer to Fig. 22 , which shows a simplified flow chart of a positioning method provided by an embodiment of the present application. Fig. 22 As shown, the "data processing" process in the embodiment of the present application may include the following steps:
[0404] First, the first electronic device may obtain a 3D building model (Building Model) 2211 and road data (Road Data) 2212. Then, the first electronic device may perform road selection 2213 to select a low positioning accuracy road from the roads corresponding to the road data 2212. Finally, the first electronic device may perform tile data generation 2214 to obtain tile data (i.e., grid data of multiple first grids of each map tile in the i-th layer tile map).
[0405] Among them, the method of obtaining the 3D building model 2211 can refer to S800a and the related descriptions in the above embodiments, which will not be repeated here. The detailed description of the method of obtaining the road data 2212 can refer to S800b and the related descriptions in the above embodiments, which will not be repeated here. The detailed description of executing road selection 2213 can refer to S800c and S800d, as well as the related descriptions in the above embodiments, which will not be repeated here. The detailed description of 2214 can refer to S802 and the related descriptions in the above embodiments, which will not be repeated here.
[0406] like Fig. 22 As shown, before the "positioning" process, the first electronic device can obtain signal parameters 2200 of multiple broadcast signals received by the second electronic device. Fig. 22 As shown, the "positioning" process of the embodiment of the present application may include the following steps:
[0407] First, the first electronic device can determine the first position 2201 of the second electronic device, which is obtained by positioning the second electronic device. Then, the first electronic device can determine multiple candidate positions based on the first position 2201 (i.e., execute 2202). Specifically, the first electronic device can determine the candidate area based on the first position 2201, and then determine multiple candidate positions from the candidate area (i.e., execute 2202). Secondly, the first electronic device can determine the annotated visibility of multiple candidate positions based on the tile data in 2214, and the altitude angles and azimuths of multiple satellites relative to multiple candidate positions (i.e., execute 2203). The first electronic device can also determine the predicted visibility of multiple candidate positions based on the signal parameters of the broadcast signal in 2200 (i.e., execute 2204). The first electronic device can also score the candidate positions based on the predicted visibility and annotated visibility of each candidate position (i.e., execute 2205). Among them, the first electronic device can select multiple positioning candidate positions from multiple candidate positions based on the scoring of the candidate positions. The first electronic device may also obtain the road data of the target road where each candidate positioning position is located; determine the positioning road according to the distribution of the multiple candidate positioning positions on the target road; and then determine that the second electronic device is located on the first side of the positioning road according to the distribution of the multiple candidate positioning positions on both sides of the positioning road (i.e., perform road both sides identification 2206). Finally, the first electronic device may correct the above first position according to the positioning road (i.e., perform correction of first position 2207).
[0408] The detailed description of determining the first position 2201 can refer to S1201 or S2001; the detailed description of 2202 can refer to S1202, S1202a, S1202b or S2004; the detailed description of 2203 and 2204 can refer to S1203 or S2007. Specifically, the detailed description of 2203 can refer to the above S(1)-S(6). The detailed description of 2205 can refer to S1204 or S2008; the detailed description of 2206 can refer to S1701-S1703, and the detailed description of 2207 can refer to S1801. The embodiments of the present application are not described in detail here.
[0409] Please refer to Fig.23 , which shows a schematic diagram of the positioning route of an electronic device (such as a mobile phone) before and after executing the method of an embodiment of the present application in a scenario (such as a car-mounted scenario) where the electronic device (such as a mobile phone) is moving at high speed on a road.
[0410] in, Fig.23 The positioning route 1 shown includes multiple first positions obtained by positioning in the above-mentioned high-speed motion scene before the mobile phone executes the method of the embodiment of the present application. Fig.23 As shown, the positioning route 1 includes a plurality of first positions that are far from the road. Fig.23 The corrected route 2 shown includes multiple second positions obtained by correcting multiple first positions of route 1 after the mobile phone executes the method of the embodiment of the present application. Fig.23 As shown, the plurality of second positions included in the positioning route 2 have been corrected to the road; and different second positions are corrected to different sides of the road.
[0411] It can be seen from the above test scenario that: through the method of the embodiment of the present application, not only the positioning accuracy of the electronic device can be improved, but also the side of the road on which the electronic device is located can be accurately located.
[0412] It is understandable that, in order to realize the above-mentioned functions, the above-mentioned first electronic device (such as mobile phone 410 or server 400) includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0413] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device (i.e., the first electronic device, such as mobile phone 410 or server 400) according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0414] In the case of an integrated unit, Fig.24 A possible structural diagram of the electronic device involved in the above embodiment is shown. The electronic device 2400 includes: a first determination module 2401 , a second determination module 2402 , a selection module 2403 and a position correction module 2404 .
[0415] Among them, the first determination module 2401 is used to support the electronic device to execute S1201, S2003 in the above method embodiment, and / or other processes for the technology described herein. The second determination module 2402 is used to support the electronic device to execute S1202, S1202a-S1202b, S2004 in the above method embodiment, and / or other processes for the technology described herein. The selection module 2403 is used to support the electronic device to execute S1203-S1204, S(1)-S(6), S2007, S2008 in the above method embodiment, and / or other processes for the technology described herein. The position correction module 2404 is used to support the electronic device to execute S1205, S1801, S2009, S2104 in the above method embodiment, and / or other processes for the technology described herein.
[0416] Furthermore, the electronic device 2400 may further include: a third determination module, wherein the third determination module is used to support the electronic device to execute S1701-S1703, S(a)-S(c), S2101-S2103 in the above method embodiment, and / or other processes for the technology described herein.
[0417] Furthermore, the electronic device 2400 may further include: a receiving module and a storage module. The receiving module is used to support the electronic device to execute S804 in the above method embodiment and / or other processes for the technology described herein. The storage module is used to support the electronic device to execute S805 in the above method embodiment and / or other processes for the technology described herein.
[0418] Furthermore, the electronic device 2400 may further include: an acquisition module and a storage module. The acquisition module is used to support the electronic device to execute S801 and S802 in the above method embodiment, and / or other processes for the technology described herein. The storage module is used to support the electronic device to execute S803 in the above method embodiment, and / or other processes for the technology described herein.
[0419] In the case of adopting an integrated unit, the above-mentioned first determination module 2401, the second determination module 2402, the selection module 2403, the position correction module 2404, the third determination module and the acquisition module can be integrated in a processing module for implementation. The processing module can be a processor or a controller, for example, it can be a CPU, a general processor, a DSP, an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a field programmable gate array (FieldProgrammable GateArray, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, for example, including a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The above-mentioned receiving module can be a communication module of an electronic device (such as a mobile phone 410), such as an RF circuit, a WiFi module or a Bluetooth module.
[0420] For example, when the above processing module is Figure 5 The processor 510 shown in FIG. Figure 5 The internal memory 520 shown in the figure, the communication module is Figure 5 When the wireless communication module 560 is shown, the electronic device provided by the present application can be Figure 5 The electronic device 500 (such as a mobile phone) shown in the figure. The wireless communication module 560 may include not only a radio frequency circuit, but also a WiFi module and a Bluetooth module. The communication modules such as the radio frequency circuit, the WiFi module and the Bluetooth module may be collectively referred to as a communication interface. The processor, the communication interface and the memory may be coupled together via a bus.
[0421] The embodiment of the present application also provides a chip system, which is applied to the above-mentioned first electronic device. The first electronic device locates the second electronic device. The chip system includes: one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from the memory of the first electronic device and send the signal to the processor. The signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the first electronic device executes the method described in the above-mentioned method embodiment.
[0422] An embodiment of the present application further provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on a first electronic device, the first electronic device executes the method described in the above method embodiment.
[0423] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method described in the above method embodiment.
[0424] Among them, the electronic device, chip system, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0425] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0426] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0427] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0428] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0429] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0430] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.< / coordinates> < / coordinates> < / coordinates> < / coordinates>
Claims
1. A positioning method, characterized in that: The method comprises: Get first position; Based on the first position, determining a plurality of candidate positions; One or more positioning candidate positions are selected from the multiple candidate positions according to the altitude angles and azimuth angles of multiple satellites relative to the multiple candidate positions, the grid data corresponding to the multiple candidate positions, and the signal parameters of the broadcast signals of the multiple satellites; wherein the grid data corresponding to each of the candidate positions includes position information and a sky occlusion curve, and the sky occlusion curve of an alternative position is used to indicate the altitude angle and azimuth angle of an obstruction located around the one candidate position relative to the one candidate position; The first position is corrected according to the position information of the one or more candidate positioning positions to output a second position.
2. The method according to claim 1, characterized in that The grid data corresponding to the one or more candidate positioning positions also includes: road identification of the roads where the candidate positioning positions located on the road are located in the one or more candidate positioning positions; the method also includes: According to the road data corresponding to the road signs of the roads where some or all of the candidate positioning positions on the road are located, it is determined that the first position is located on one side of the road centerline of the positioning road; wherein the road data includes at least one of the road starting point coordinates, road width information and road direction information, and the positioning road is the road where the first position is located.
3. The method according to claim 2, characterized in that The determining that the first position is located on one side of a road centerline of the positioning road according to the road marks of the roads where some or all of the positioning candidate positions on the road are located comprises: Acquire road data of the roads where the partial or all of the candidate positioning positions are located according to the road signs of the roads where the partial or all of the candidate positioning positions are located; Determine the positioning road according to the distribution of some or all of the candidate positioning positions on the target road; wherein the target road is the road where some or all of the candidate positioning positions are located; According to the distribution of some or all of the candidate positioning positions on both sides of the road center line of the positioning road, it is determined that the first position is located on one side of the road center line of the positioning road.
4. The method according to claim 3, characterized in that The number of candidate positioning positions distributed on one side of the road center line of the positioning road is greater than the number of candidate positioning positions distributed on the other side of the road center line.
5. The method according to any one of claims 2 to 4, characterized in that: The step of correcting the first position according to the position information of the one or more candidate positioning positions to output a second position includes: The vertical projection of the first position on the road edge line on one side of the road center line is calculated, and the second position where the vertical projection is located is output.
6. The method according to claim 5, characterized in that The selecting one or more positioning candidate positions from the multiple candidate positions according to the altitude angles and azimuth angles of the multiple satellites relative to the multiple candidate positions, the sky shielding curves of the multiple candidate positions, and the signal parameters of the broadcast signals received from the multiple satellites comprises: Selecting the one or more candidate positioning locations from the plurality of candidate locations based on first visibility and second visibility of the plurality of satellites relative to the plurality of candidate locations; Among them, the first visibility of a satellite relative to an alternative location is used to indicate whether the satellite is a line-of-sight satellite or a non-line-of-sight satellite of the alternative location, and the first visibility is related to the altitude angle and azimuth angle of the satellite relative to the alternative location, and the sky occlusion curve of the alternative location; the second visibility of the satellite relative to the alternative location is used to indicate the probability that the satellite is a line-of-sight satellite of the alternative location, and the second visibility is related to the signal parameters of the broadcast signals of the multiple satellites.
7. The method according to claim 6, characterized in that The one or more candidate locations for positioning include: candidate locations where the number of satellites that meet a preset condition is greater than a preset number threshold; or, The multiple candidate positioning positions include: M candidate positions among the multiple candidate positions, M≥2, M is a positive integer, the number of satellites that meet the preset conditions in the M candidate positions is greater than the number of satellites that meet the preset conditions in other candidate positions, and the other candidate positions include candidate positions other than the M candidate positions among the multiple candidate positions; The satellite satisfying the preset condition is a satellite whose first visibility matches the second visibility.
8. The method according to claim 7, characterized in that Before selecting the one or more candidate positioning positions from the multiple candidate positions according to the first visibility and the second visibility of the multiple satellites relative to the multiple candidate positions, the method further includes: For each satellite and each candidate position, the following steps are performed: determining a first visibility of the satellite relative to the candidate position according to an altitude angle and an azimuth angle of the satellite relative to the candidate position and grid data corresponding to the candidate position, so as to obtain a first visibility of each satellite relative to each candidate position; For each satellite, the following steps are performed: determining, according to a signal parameter of a broadcast signal of the one satellite, a second visibility of the one satellite relative to each candidate position, so as to obtain a second visibility of each satellite relative to each candidate position.
9. The method according to claim 8, characterized in that The determining, based on the altitude angle and azimuth angle of the satellite relative to the candidate position and the grid data corresponding to the candidate position, the first visibility of the satellite relative to the candidate position includes: Acquire a first azimuth angle and a first altitude angle, wherein the first azimuth angle is the azimuth angle of the satellite relative to the one candidate position, and the first altitude angle is the altitude angle of the satellite relative to the one candidate position; Determining a sky occlusion curve of the one candidate position according to the position information of the one candidate position; According to the first azimuth angle, a second altitude angle is obtained from the sky occlusion curve of the one candidate position; wherein the second altitude angle is the altitude angle of the first occluder relative to the one candidate position, and the azimuth angle of the first occluder relative to the one candidate position is the first azimuth angle; If the first altitude angle is greater than the second altitude angle, determining that a first visibility indication of the one satellite relative to the one candidate position is that the one satellite is a line-of-sight satellite; If the first altitude angle is less than or equal to the second altitude angle, determining that the first visibility of the one satellite relative to the one candidate position indicates that the one satellite is a non-line-of-sight satellite.
10. The method according to claim 9, characterized in that The determining, according to the signal parameter of the satellite broadcast signal, the second visibility of the satellite relative to each candidate position comprises: Run the model code of the preset AI model, take the signal parameters of the satellite broadcast signal as input, and determine the second visibility of the satellite relative to each of the alternative positions through the preset AI model; wherein the preset AI model has the function of determining the second visibility of any satellite relative to any position based on the signal parameters of the satellite broadcast signal located at any position.
11. The method according to claim 1, characterized in that: The method further comprises: Receive grid data of at least one first grid sent by a server; the at least one first grid indicates a geographical area where the first position is located, and the area of each first grid is less than a preset area threshold; the grid data of a first grid includes location information and a sky occlusion curve of the first grid; Saving grid data of the at least one first grid; The grid data corresponding to the one candidate position is the grid data of the first grid closest to the one candidate position.
12. The method according to claim 1, characterized in that The method further comprises: Obtaining an i-th layer of tile maps in N-layer tile maps, wherein the i-th layer of tile maps includes a plurality of map tiles; wherein 2≤i≤N, i and N are both positive integers; Obtaining grid data of at least one first grid of at least one map tile in the i-th layer tile map; wherein the at least one first grid of a map tile is at least one geographical area among a plurality of geographical areas obtained by segmenting the map tile, and an area of each first grid is less than a preset area threshold; the grid data of a first grid includes position information and a sky occlusion curve of the first grid; Saving grid data of the at least one first grid; The grid data corresponding to the one candidate position is the grid data of the first grid closest to the one candidate position.
13. The method according to claim 11, characterized in that The at least one first grid is a first grid of a geographical area where obstructions are dense.
14. The method according to claim 11, characterized in that The grid data of the first grid further includes: a road identifier of the road where the first grid is located.
15. The method according to claim 1, characterized in that The grid data corresponding to the multiple candidate positions are included in the data of one or more map tiles, and the data of the map tiles also include road data, and the road data includes at least one of the coordinates of the road starting point, road width information and road direction information.
16. An electronic device, characterized in that: The electronic device comprises: A first determination module, used to obtain a first position; a second determining module, configured to determine a plurality of candidate positions based on the first position determined by the first determining module; A selection module, configured to select one or more positioning candidate positions from the multiple candidate positions according to the altitude angles and azimuth angles of the multiple satellites relative to the multiple candidate positions determined by the second determination module, the grid data corresponding to the multiple candidate positions, and the signal parameters of the broadcast signals of the multiple satellites; wherein the grid data corresponding to each of the candidate positions includes position information and a sky occlusion curve, and the sky occlusion curve of an alternative position is used to indicate the altitude angle and azimuth angle of an obstruction located around the one candidate position relative to the one candidate position; A position correction module is used to correct the first position according to the position information of the one or more candidate positioning positions selected by the selection module to output a second position.
17. The electronic device according to claim 16, characterized in that: The grid data corresponding to the one or more candidate positioning positions also includes: road signs of the roads where the candidate positioning positions located on the road are located; the electronic device also includes: a third determination module; The third determination module is used to determine that the first position is located on one side of the road centerline of the positioning road based on the road data corresponding to the road signs of the roads where some or all of the positioning candidate positions on the road are located; wherein the road data includes at least one of the road starting point coordinates, road width information and road direction information, and the positioning road is the road where the first position is located.
18. The electronic device according to claim 17, characterized in that: The position correction module is specifically used for: The vertical projection of the first position on the road edge line on one side of the road center line is calculated, and the second position where the vertical projection is located is output.
19. The electronic device according to any one of claims 16 to 18, characterized in that: The selection module is specifically used for: Selecting the one or more candidate positioning locations from the plurality of candidate locations based on first visibility and second visibility of the plurality of satellites relative to the plurality of candidate locations; Among them, the first visibility of a satellite relative to an alternative location is used to indicate whether the satellite is a line-of-sight satellite or a non-line-of-sight satellite of the alternative location, and the first visibility is related to the altitude angle and azimuth angle of the satellite relative to the alternative location, and the sky occlusion curve of the alternative location; the second visibility of the satellite relative to the alternative location is used to indicate the probability that the satellite is a line-of-sight satellite of the alternative location, and the second visibility is related to the signal parameters of the broadcast signals of the multiple satellites.
20. The electronic device according to claim 19, characterized in that: The selection module is specifically used for: For each satellite and each candidate position, the following steps are performed: determining a first visibility of the satellite relative to the candidate position according to an altitude angle and an azimuth angle of the satellite relative to the candidate position and grid data corresponding to the candidate position, so as to obtain a first visibility of each satellite relative to each candidate position; For each satellite, the following steps are performed: determining, according to a signal parameter of a broadcast signal of the one satellite, a second visibility of the one satellite relative to each candidate position, so as to obtain a second visibility of each satellite relative to each candidate position.
21. The electronic device according to claim 16, characterized in that: The electronic device further comprises: a receiving module and a storage module; wherein the receiving module is used to receive grid data of at least one first grid sent by a server; the at least one first grid indicates a geographical area where the first position is located, and the area of each first grid is less than a preset area threshold; the storage module is used to store the grid data of the at least one first grid received by the receiving module; or, The electronic device further comprises: an acquisition module and a storage module; wherein the acquisition module is used to acquire an i-th layer of tile maps in N-layer tile maps, wherein the i-th layer of tile maps comprises a plurality of map tiles; wherein 2≤i≤N, i and N are both positive integers; and grid data of at least one first grid of at least one map tile in the i-th layer of tile maps are acquired; wherein at least one first grid of a map tile is at least one geographical area among a plurality of geographical areas obtained by dividing the map tile, and an area of each first grid is less than a preset area threshold; and the storage module is used to store the grid data of the at least one first grid acquired by the acquisition module; The grid data corresponding to the candidate position is the grid data of the first grid closest to the candidate position; the grid data of the first grid includes the position information and the sky occlusion curve of the first grid.
22. The electronic device according to claim 21, characterized in that: The selection module is further configured to obtain grid data corresponding to the multiple candidate positions from the grid data of the at least one first grid stored in the storage module before selecting the one or more positioning candidate positions from the multiple candidate positions; The grid data corresponding to the multiple candidate positions is the grid data of the first grid closest to the multiple candidate positions.
23. An electronic device, characterized in that: The electronic device comprises: a memory and one or more processors; the memory is coupled to the processor, the memory is used to store computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-15.
24. A chip system, characterized in that: The chip system includes: one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected via lines; the interface circuit is used to receive a signal from a memory and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the method described in any one of claims 1 to 15 is implemented.
25. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 15.
26. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 15.
