Positioning method and device, electronic equipment and storage medium
By setting a frequency band selection switch in the mobile phone, the L5 band is automatically switched or disabled according to the area density feedback from the cloud server, the problem of high power consumption and poor battery life of dual-mode mobile phones is solved, and the user experience and battery life are improved.
Patent Information
- Application Number
- CN202310871246.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-14
- Publication Date
- 2025-01-14
AI Technical Summary
After the anti-interference and accuracy of mobile phones with existing dual-mode positioning functions have large power consumption and poor battery life. They cannot turn off the L5 band when unnecessary, resulting in poor user experience.
By setting a band selection switch in the terminal device, sending current location information to the cloud server, and automatically switching or deactivating the L5 band according to the target results of the feedback of the area density to save power.
It improves the battery life of terminal devices, improves the user experience, saves power consumption by automatically switching frequency bands, and adapts to positioning needs in different locations.
Smart Images

Figure CN119310591A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of satellite navigation systems, and in particular to a positioning method and device, an electronic device and a storage medium. Background Art
[0002] The Global Navigation Satellite System (GNSS) is a very important function on terminal devices such as mobile phones, and is also one of the most frequently used functions in people's daily lives.
[0003] Currently, the positioning functions on mobile phones include single-mode that only supports the L1 band and dual-mode that supports both the L1 band and the L5 band. The L1 band and the L5 band refer to different bands of the carrier of the navigation satellite signal. Among them, the performance of the dual-mode is better than that of the single-mode in terms of anti-interference and positioning accuracy.
[0004] However, with the improvement of anti-interference and accuracy, mobile phones with dual-mode positioning functions have high power consumption and poor battery life, and are unable to turn off the L5 frequency band when unnecessary, resulting in a poor user experience. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a positioning method and device, an electronic device and a storage medium, which can save power consumption of terminal equipment, improve the endurance of terminal equipment, and enhance the user experience.
[0006] According to a first aspect of an embodiment of the present disclosure, a positioning method is provided, which is applied to a terminal device and at least includes:
[0007] When the frequency band selection switch of the terminal device is turned on, sending the current location information to a cloud server with which the terminal device has established a communication connection;
[0008] Receiving a target result fed back by the cloud server based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0009] When the target result meets the preset conditions, the configuration file of the target frequency band is rewritten so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device.
[0010] In some embodiments, the target result includes a target density value or a target score; and when the target result satisfies a preset condition, rewriting a configuration file of the target frequency band so that the terminal device can deactivate the target frequency band includes:
[0011] When the target density value is less than a preset density threshold, or the target score is greater than a preset score, the configuration file of the target frequency band is rewritten so that the terminal device can deactivate the target frequency band.
[0012] In some embodiments, the method further comprises:
[0013] When the target density value is greater than or equal to the preset density threshold, or the target score is less than or equal to the preset score, the configuration file of the target frequency band is updated so that the terminal device can transmit and receive the target frequency band.
[0014] In some embodiments, the method further comprises:
[0015] In response to the highest authority request, turning on the mandatory use switch so that the terminal device can transmit and receive the target frequency band; or,
[0016] In response to the highest authority request, the forced use switch is turned off so that the terminal device can deactivate the target frequency band.
[0017] In some embodiments, the method further comprises:
[0018] When the positioning module of the terminal device is in working state and receives a request for automatic switching of frequency bands, the frequency band selection switch is turned on.
[0019] According to a second aspect of an embodiment of the present disclosure, a positioning method is provided, which is applied to a cloud server and at least includes:
[0020] Receiving current location information sent by a terminal device that has established a communication connection with the cloud server;
[0021] Based on the current location information, determining a target result corresponding to the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0022] The target result is sent to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result.
[0023] In some embodiments, determining a target result corresponding to the current location information based on the current location information includes:
[0024] Determine a target area corresponding to the current position information based on a pre-trained region segmentation model and the current position information;
[0025] Based on the target area, the target result corresponding to the target area is determined.
[0026] In some embodiments, the determining the target area corresponding to the current location information based on the pre-trained region segmentation model and the current location information includes:
[0027] Determine the trajectory information of the terminal device within a time period from a current time point corresponding to the current location information to a preset time point;
[0028] Based on the trajectory information, determining center position information corresponding to the trajectory information;
[0029] The center position information and the preset radius are input into the region segmentation model to obtain the target region.
[0030] In some embodiments, determining the center position information corresponding to the trajectory information based on the trajectory information includes:
[0031] Based on the trajectory information and a preset area, determining a region range corresponding to the trajectory information;
[0032] Based on the area range, the center position information of the area range is determined.
[0033] According to a third aspect of an embodiment of the present disclosure, a positioning device is provided, which is applied to a terminal device and at least includes:
[0034] A first sending module, configured to send current location information to a cloud server with which a communication connection is established with the terminal device when the frequency band selection switch of the terminal device is turned on;
[0035] A first receiving module is configured to receive a target result fed back by the cloud server based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0036] The processing module is configured to rewrite the configuration file of the target frequency band when the target result meets the preset conditions, so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device.
[0037] According to a fourth aspect of an embodiment of the present disclosure, a positioning device is provided, which is applied to a cloud server and at least includes:
[0038] A second receiving module is configured to receive current location information sent by a terminal device that has established a communication connection with the cloud server;
[0039] A determination module configured to determine a target result corresponding to the current location information based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0040] The second sending module is configured to send the target result to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result.
[0041] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising at least:
[0042] processor;
[0043] a memory for storing processor-executable instructions;
[0044] The processor is configured to execute the positioning method as described in the first aspect; or, is configured to execute the positioning method as described in the second aspect.
[0045] According to the sixth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to execute the positioning method as described in the first aspect; or, when instructions in the storage medium are executed by a processor of a cloud server, the cloud server is enabled to execute the positioning method as described in the second aspect.
[0046] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0047] A positioning method provided by an embodiment of the present disclosure is applied to a terminal device and may include: when the frequency band selection switch of the terminal device is in the on state, sending current location information to a cloud server with which a communication connection is established with the terminal device; receiving a target result fed back by the cloud server based on the current location information; the target result is used to characterize the regional density corresponding to the current location information; when the target result meets a preset condition, rewriting the configuration file of the target frequency band so that the terminal device can deactivate the target frequency band; the target frequency band is a frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device. That is to say, when the frequency band selection switch of the terminal device is in the on state, the target result corresponding to the current location information of the terminal device can be fed back through the cloud server with which a communication connection is established with the terminal device, so as to control the terminal device to automatically switch different frequency bands simultaneously supported by the terminal device when it is in different positions. In this way, when the target result fed back to the terminal device by the cloud server meets the preset condition, the terminal device can deactivate the target frequency band matching the current location information, thereby saving the power consumption of the terminal device, improving the endurance of the terminal device, and improving the user experience.
[0048] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0050] Figure 1 It is a schematic diagram showing a traditional positioning method according to an exemplary embodiment.
[0051] Figure 2 A schematic diagram of a positioning method according to an exemplary embodiment Figure 1 .
[0052] Figure 3 The figure is a schematic diagram of a frequency band selection switch and a forced use switch in a positioning method according to an exemplary embodiment.
[0053] Figure 4 A schematic diagram of a positioning method according to an exemplary embodiment Figure 2 .
[0054] Figure 5 It is a schematic diagram of a region segmentation model in a positioning method according to an exemplary embodiment.
[0055] Figure 6 The figure is a flow chart of a positioning method according to an exemplary embodiment.
[0056] Figure 7 A structural frame of a positioning device according to an exemplary embodiment is shown Figure 1 .
[0057] Figure 8 A structural frame of a positioning device according to an exemplary embodiment is shown Figure 2 .
[0058] Fig. 9 The diagram is a schematic structural diagram of a terminal device according to an exemplary embodiment.
[0059] Fig.10 The diagram is a schematic diagram of the structure of a cloud server according to an exemplary embodiment. DETAILED DESCRIPTION
[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0061] The technical solutions provided by various embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.
[0062] In the related technology, terminal devices such as mobile phones generally support satellite positioning functions. Positioning satellites broadcast navigation message information in a certain sequence, and the positioning module inside the mobile phone receives the navigation message broadcast by the satellite and decodes and calculates it in an agreed manner to obtain the latitude and longitude data of the current location of the mobile phone. The frequency bands of the navigation message broadcast by the positioning satellite are currently mainly divided into L1 band and L5 band; L1 band is a low-power navigation band, which is sufficient for satellite positioning and navigation scenarios under general circumstances. The navigation signal under this band is susceptible to interference, so the positioning point drift will occur in areas with high-rise buildings in the city, that is, inaccurate positioning; L5 band is a high-power navigation band, which has better anti-interference, which makes it still have better positioning accuracy even in extreme situations such as high-rise buildings and overpasses. The positioning module equipped with only L1 band in the mobile phone is called single-mode, and the positioning module equipped with both L1 band and L5 band is called dual-mode.
[0063] Although some mobile phones are equipped with both L1 and L5 band positioning modules, in fact, there is no need to use the L5 band in some cases. Take the suburbs as an example. In the open field environment, the L1 band can actually achieve very good positioning accuracy. Even if the L5 band is used, the positioning accuracy may only increase by about 0.1 meters, but the power consumption is several times higher than that of using only the L1 band, resulting in high power consumption and poor battery life of the mobile phone.
[0064] Currently, if Figure 1 As shown in the figure, there are operations that limit the L5 frequency band on smartphones, such as the super power saving mode, in which the positioning function of the mobile phone is limited (the L1 frequency band and the L5 frequency band are both invalid); and the smart power saving mode, which directly disables the L5 frequency band when the mobile phone can send and receive the L5 frequency band. When the user manually turns on this mode, the L5 frequency band function will be actively disabled in order to save power. However, when the user needs to use the L5 frequency band, the smart power saving mode must be turned off, resulting in a poor user experience.
[0065] Based on this, an embodiment of the present disclosure provides a positioning method, which is applied to a terminal device. Figure 2 A schematic diagram of a positioning method according to an exemplary embodiment Figure 1 ,like Figure 2 As shown, the positioning method provided by the embodiment of the present disclosure includes at least the following steps:
[0066] Step 110: When the frequency band selection switch of the terminal device is turned on, the current location information is sent to a cloud server that has established a communication connection with the terminal device;
[0067] Step 120: receiving a target result fed back by the cloud server based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0068] Step 130: When the target result meets the preset conditions, rewrite the configuration file of the target frequency band so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device.
[0069] In the embodiments of the present disclosure, the above-mentioned terminal devices may include: mobile phones, tablet computers, smart watches, digital cameras, head mounted display devices (Head Mounted Display, HMD), etc., which are not limited in the embodiments of the present disclosure.
[0070] In step 110, the frequency band selection switch may be a button of the intelligent satellite frequency band selection function set in the terminal device. After turning on the frequency band selection switch, the system of the terminal device may automatically select to transmit or disable a frequency band supported by the terminal device to save the positioning power consumption of the terminal device; after turning off the frequency band selection switch, all frequency bands supported by the terminal device are transmitted and received by default.
[0071] Exemplarily, the terminal device may be a dual-mode mobile phone supporting L1 and L5 bands. After turning on the above-mentioned band selection switch, the mobile phone system can intelligently transmit and receive or disable the L5 band to save mobile phone positioning power consumption. If it is turned off, it is assumed that the mobile phone can transmit and receive the L5 band.
[0072] The above cloud server is a simple, efficient, safe, reliable, and elastic computing service with scalable processing power. Its management method is simpler and more efficient than that of a physical server, and it can support large amounts of data computing. The above cloud server establishes a communication connection with the above terminal device to send the big data computing that cannot be supported by the terminal device to the cloud server for computing, so as to save resources and improve efficiency.
[0073] The above-mentioned current location information may be the longitude and latitude data corresponding to the location of the above-mentioned terminal device at the current moment.
[0074] It is understandable that the terminal device has a positioning function, and the positioning service, as a basic service of the terminal device system, runs automatically with the startup of the terminal device. The positioning module inside the terminal device receives the navigation message broadcast by the satellite and decodes and calculates it in an agreed manner, thereby obtaining the latitude and longitude data corresponding to the current location of the terminal device.
[0075] Among them, the logic of using this positioning function by third-party applications (for example, navigation applications, trading applications, etc.) is to obtain the agent of the positioning service (Location Manager Service, LMS) through the Location Manager (LM) in the terminal device, and then call the system interface (System Application Programming Interface, System-API) provided by the service to initiate positioning, and obtain the current location information of the terminal device through the callback function, initiate the positioning process, and the bottom layer feeds back the current location information to the upper layer through callback.
[0076] Here, the callback function is the necessary path for the bottom layer location information in the terminal device to be reported to the upper layer to the application; for example, the callback function may be handleReportLocation() or reportLocation().
[0077] In the disclosed embodiment, after the callback function in the terminal device obtains the current location information reported by the bottom layer of the terminal device, the current location information can be synchronized to the above-mentioned cloud server in real time, so as to analyze the current location information of the terminal device through the cloud server.
[0078] In one embodiment of the present disclosure, Figure 3 As shown, the positioning method may further include: when the positioning module of the terminal device is in working state and receives a request for automatic switching of frequency bands, turning on the frequency band selection switch. In this way, when the terminal device is capable of positioning navigation and needs to be able to automatically switch frequency bands, the frequency band selection switch of the terminal device can be turned on, thereby saving the positioning power consumption of the terminal device and improving the endurance of the terminal device.
[0079] Here, the above-mentioned positioning module may include but is not limited to a global positioning system (GPS) module, a GLONASS (GLONASS) satellite navigation system (GALILEO) module, and a Beidou Navigation Satellite System (BDS) module.
[0080] In step 120, the target result may be a result calculated and analyzed by the cloud server based on the current location information.
[0081] Among them, the above-mentioned target result can be used to characterize the regional density of the location of the above-mentioned terminal device at the current moment; that is, the target result can be used to characterize the building conditions in the surrounding area of the location of the above-mentioned terminal device at the current moment.
[0082] For example, in the surrounding area (for example, the area is 100 square meters) of the current location of the terminal device, there are 8 buildings with a height of more than 30 meters and 3 buildings with a height of less than 30 meters. At this time, the density of the area can be expressed as the ratio between the number of buildings with a height of more than 30 meters and the area of the surrounding area. The above target result can be 8 / 100=0.08.
[0083] It can be understood that the above-mentioned target result can be calculated in the above-mentioned cloud server, and then fed back to the above-mentioned terminal device by the above-mentioned cloud server, so that the terminal device can switch different frequency bands supported by the terminal device at the same time based on the target result to switch different positioning modes.
[0084] In step 130, when the target result is a target density value, the target result satisfies the preset condition that the target density value is less than the preset density threshold; when the target result is a target score, the target result satisfies the preset condition that the target score is greater than the preset score; and so on.
[0085] The above-mentioned target frequency band may include but is not limited to the L5 frequency band; wherein, the L5 frequency band refers to the band of the carrier of the navigation satellite signal, and the carrier center frequency corresponding to the L5 frequency band is 1176.45 MHz. The L5 frequency band is the third type of civil GPS signal, which is beneficial to the "cycle slip detection", ionospheric delay error correction and integer ambiguity determination in the GPS measurement process, and improves the civil positioning accuracy from 5 meters to 30 centimeters.
[0086] Here, the frequency bands supported by the terminal device at the same time may include at least L1 and L5. Among them, L1 also refers to the carrier wave band of the navigation satellite signal. The carrier center frequency corresponding to L1 is 1575.42 MHz. The radio waves in this frequency propagate in a straight line in the ionosphere and are less affected by noise, which meets the requirements of navigation satellite signals.
[0087] In the embodiment of the present disclosure, the configuration file may be a file corresponding to the target frequency band that can be configured by the positioning module of the terminal device; for example, the configuration file may be MNL-Config.xml.
[0088] It can be understood that when the received target result meets the preset conditions, the above configuration file can be rewritten to send a corresponding command to the positioning module of the terminal device so that the terminal device can deactivate the above target frequency band.
[0089] In one embodiment of the present disclosure, Figure 3 As shown, the positioning method may also include:
[0090] In response to the highest authority request, turning on the mandatory use switch so that the terminal device can transmit and receive the target frequency band; or,
[0091] In response to the highest authority request, the forced use switch is turned off so that the terminal device can deactivate the target frequency band.
[0092] In this way, the highest authority forced use switch function can be customized by the user, making up for the defect in the related technology that the target frequency band is disabled due to turning on the power saving mode, so that the terminal device can send, receive or disable the target frequency band more flexibly, thereby improving the user experience.
[0093] Here, the above-mentioned forced use switch can be a button with the highest setting authority and an independent custom frequency band set in the above-mentioned terminal device. After turning on the forced use switch, even if the terminal device is in power saving mode or a mode that can automatically switch frequency bands, the user can force the target frequency band to be sent or received or disabled; that is, when the above-mentioned forced use switch is in the turned-on state, the terminal device can send or receive the target frequency band; when the above-mentioned forced use switch is in the turned-off state, the terminal device can disable the target frequency band.
[0094] A positioning method provided by an embodiment of the present disclosure is applied to a terminal device and may include: when the frequency band selection switch of the terminal device is in the on state, sending current location information to a cloud server with which a communication connection is established with the terminal device; receiving a target result fed back by the cloud server based on the current location information; the target result is used to characterize the regional density corresponding to the current location information; when the target result meets a preset condition, rewriting the configuration file of the target frequency band so that the terminal device can deactivate the target frequency band; the target frequency band is a frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device. That is to say, when the frequency band selection switch of the terminal device is in the on state, the target result corresponding to the current location information of the terminal device can be fed back through the cloud server with which a communication connection is established with the terminal device, so as to control the terminal device to automatically switch different frequency bands simultaneously supported by the terminal device when it is in different positions. In this way, when the target result fed back to the terminal device by the cloud server meets the preset condition, the terminal device can deactivate the target frequency band matching the current location information, thereby saving the power consumption of the terminal device, improving the endurance of the terminal device, and improving the user experience.
[0095] In one embodiment of the present disclosure, the target result includes a target density value or a target score; in step 130, when the target result satisfies a preset condition, the configuration file of the target frequency band is rewritten so that the terminal device can deactivate the target frequency band. The specific process may include:
[0096] When the target density value is less than a preset density threshold, or the target score is greater than a preset score, the configuration file of the target frequency band is rewritten so that the terminal device can deactivate the target frequency band.
[0097] In this way, by comparing the target density value with the preset density threshold or the target score with the preset score, it can be determined whether to rewrite the configuration file of the target frequency band when the preset conditions are met, so that the terminal device can deactivate the target frequency band, thereby enabling the terminal device to automatically switch between different frequency bands supported simultaneously when the terminal device is in different positions, thereby saving power consumption of the terminal device, improving the battery life of the terminal device, and enhancing the user experience.
[0098] Among them, the above-mentioned target density value can be the density value of the relevant area corresponding to the above-mentioned current location information calculated by the above-mentioned cloud server; the above-mentioned preset density threshold can be the regional density threshold obtained in advance by the above-mentioned terminal device based on a large number of sample experiments.
[0099] It can be understood that the above-mentioned target density value is less than the above-mentioned preset density threshold, or the above-mentioned target score is greater than the above-mentioned preset score, which can both indicate that the location area where the above-mentioned terminal device is located at the current moment is in an open state (for example, suburbs); at this time, the terminal device can achieve good positioning accuracy by transmitting and receiving the L1 frequency band, and there is no need to transmit and receive the target frequency band, namely the L5 frequency band, to increase the power consumption of the terminal device. Therefore, it is necessary for the terminal device to be able to deactivate the target frequency band to save the power consumption of the terminal device and improve the battery life of the terminal device.
[0100] In the disclosed embodiment, the target score may be a score assigned by the cloud server based on the area density corresponding to the current location information; the preset score may be a score threshold value corresponding to the area density obtained in advance by the terminal device based on a large number of sample experiments.
[0101] It can be understood that if the above-mentioned target score is greater than the above-mentioned preset score, it can be indicated that the location area where the above-mentioned terminal device is located at the current moment is in an open state (for example, the suburbs); at this time, the terminal device can achieve good positioning accuracy by transmitting and receiving the L1 frequency band, and there is no need to transmit and receive the target frequency band, namely the L5 frequency band to increase the power consumption of the terminal device. Therefore, it is necessary for the terminal device to be able to deactivate the target frequency band to save the power consumption of the terminal device and improve the battery life of the terminal device.
[0102] It should be noted that the above target density value is positively correlated with the regional density, while the above target score is negatively correlated with the regional density.
[0103] In some embodiments, the positioning method may further include:
[0104] When the target density value is greater than or equal to the preset density threshold, or the target score is less than or equal to the preset score, the configuration file of the target frequency band is updated so that the terminal device can transmit and receive the target frequency band.
[0105] In this way, by comparing the target density value with the preset density threshold or the target score with the preset score, it can be determined whether to update the configuration file of the target frequency band when the preset conditions are not met, so that the terminal device can send and receive the target frequency band, thereby saving the power consumption of the terminal device, improving the battery life of the terminal device, and improving the user experience.
[0106] It can be understood that the above-mentioned target density value greater than or equal to the above-mentioned preset density threshold can be indicated that the location area where the above-mentioned terminal device is located at the current moment is in a densely surrounded state (for example, an urban area); at this time, the positioning module of the terminal device is easily affected by the surrounding buildings, and the positioning navigation signal is interfered, so it is necessary for the terminal device to be able to send and receive the target frequency band to improve the positioning accuracy of the terminal device.
[0107] For example, the preset score of the above-mentioned terminal device is 60 points. When the target score calculated by the above-mentioned cloud server based on the current location information of the terminal device is 70 points, it means that the terminal device can deactivate the L5 frequency band; when the target score calculated by the above-mentioned cloud server based on the current location information of the terminal device is 50 points, it means that the terminal device can transmit and receive the L5 frequency band.
[0108] Figure 4 A schematic diagram of a positioning method according to an exemplary embodiment Figure 2 ,like Figure 4 As shown, the positioning method provided in the embodiment of the present disclosure, applied to a cloud server, may at least include the following steps:
[0109] Step 210: receiving current location information sent by a terminal device that has established a communication connection with the cloud server;
[0110] Step 220: Based on the current location information, determine a target result corresponding to the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0111] Step 230: Send the target result to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result.
[0112] In step 210, the current location information may be based on the longitude and latitude data corresponding to the current location of the terminal device obtained by the positioning module of the terminal device by receiving the navigation message broadcast by the satellite and decoding and calculating it in an agreed manner.
[0113] In the embodiment of the present disclosure, the current location information may be synchronized to the cloud server in real time through a callback function in the terminal device.
[0114] In step 220, the target result may be calculated in the cloud server based on the current location information.
[0115] In an embodiment of the present disclosure, determining a target result corresponding to the current position information based on the current position information may include: determining a target area corresponding to the current position information based on a pre-trained area segmentation model and the current position information; determining a target density value corresponding to the target area based on the target area; or, determining a target density value corresponding to the target area based on the target area, and determining a target score based on the target density value.
[0116] In step 230, the target frequency band may be a frequency band with the lowest center frequency among at least two frequency bands simultaneously supported by the terminal device; for example, the target frequency band may be an L5 frequency band.
[0117] It is understandable that the cloud server can transmit the target result back to the terminal device so that the terminal device can determine whether the terminal device transmits or disables the target frequency band based on the target result. That is, if the target result meets the preset conditions, the configuration file of the target frequency band can be rewritten so that the terminal device can disable the target frequency band; if the target result does not meet the preset conditions, the configuration file of the target frequency band can be updated so that the terminal device can transmit or receive the target frequency band.
[0118] A positioning method provided by an embodiment of the present disclosure is applied to a cloud server and may include: receiving current location information sent by a terminal device that has established a communication connection with the cloud server; determining a target result corresponding to the current location information based on the current location information; the target result is used to characterize the regional density corresponding to the current location information; and sending the target result to the terminal device so that the terminal device can deactivate the target frequency band based on the target result. In other words, the target result corresponding to the current location information can be determined by receiving the current location information sent by the terminal device, and the target result can be sent to the terminal device to control the terminal device to automatically switch different frequency bands supported by the terminal device at the same time when the terminal device is in different positions. In this way, the cloud server of the embodiment of the present disclosure feeds back the target result determined based on the current location information to the terminal device, so that the terminal device can deactivate the target frequency band matching the current location information, thereby saving the power consumption of the terminal device, improving the endurance of the terminal device, and improving the user experience.
[0119] In one embodiment of the present disclosure, the specific process of determining the target result corresponding to the current location information based on the current location information in step 220 may include:
[0120] Determine a target area corresponding to the current position information based on a pre-trained region segmentation model and the current position information;
[0121] Based on the target area, the target result corresponding to the target area is determined.
[0122] In this way, the target area corresponding to the current location information can be determined through the pre-trained area segmentation model and the current location information, and then the corresponding target result can be calculated based on the target area, thereby improving the accuracy of the target result, so that subsequent terminal devices can send, receive or deactivate the target frequency band based on the target result, thereby improving the user experience.
[0123] The region segmentation model may include a map model pre-stored in the cloud server, or a 3D map model in a third-party application (eg, a navigation application). The target region may be a region determined with the current location information as the center.
[0124] It can be understood that when the above-mentioned target result is a target density value, the target density value can be obtained based on the ratio of the number of buildings exceeding a preset height in the above-mentioned target area to the area of the target area; when the above-mentioned target result is a target score, the above-mentioned cloud server can score based on the target density value to obtain the target score.
[0125] In some embodiments, determining the target area corresponding to the current location information based on the pre-trained region segmentation model and the current location information may include:
[0126] Determine the trajectory information of the terminal device within a time period from a current time point corresponding to the current location information to a preset time point;
[0127] Based on the trajectory information, determining center position information corresponding to the trajectory information;
[0128] The center position information and the preset radius are input into the region segmentation model to obtain the target region.
[0129] In this way, the center position information corresponding to the trajectory information can be determined by the trajectory information of the terminal device in the time period from the current time point to the preset time point, so as to determine the target area in the area segmentation model, so that the subsequent target results can be calculated more accurately.
[0130] Among them, the above-mentioned preset time point can be a pre-set time point; the above-mentioned trajectory information can be the trajectory information formed by the change of the position of the above-mentioned terminal device in the time period from the current time point to the preset time point.
[0131] In the disclosed embodiment, the central location information may be the location information corresponding to the center point of the minimum area range determined by the cloud server based on each positioning point in the trajectory information. The preset radius may be a radius threshold value that can reflect the density of the area obtained by the cloud server in advance based on a large number of sample experiments.
[0132] Here, if the position of the terminal device does not change during the period from the current time point to the preset time point, the trajectory information of the terminal device is the current position information, and the current position information can be directly used as the central position information.
[0133] It should be noted that the target area may be a circular area determined based on the center position information and a preset radius, or a square area determined based on the center position information and a preset side length, and the embodiment of the present disclosure does not limit this.
[0134] In one embodiment of the present disclosure, determining the center position information corresponding to the trajectory information based on the trajectory information may include:
[0135] Based on the trajectory information and a preset area, determining a region range corresponding to the trajectory information;
[0136] Based on the area range, the center position information of the area range is determined.
[0137] In this way, the area range corresponding to the trajectory information can be determined by the trajectory information and the preset area, so as to determine the central position information of the area range, thereby being able to more accurately determine the target area corresponding to the terminal device.
[0138] Among them, the above-mentioned preset area can be the minimum area determined by the above-mentioned cloud server according to the trajectory information of the above-mentioned terminal device; the above-mentioned area range can be the minimum area range that can surround all positioning points in the above-mentioned trajectory information.
[0139] Here, the positioning point of the terminal device whose position changes during the period from the current time point to the preset time point is enclosed in the above-mentioned area by a preset area to calculate the central position information within the area; at this time, the central position information may be the above-mentioned current position information, or it may be the position information corresponding to other time points.
[0140] For example, Figure 5 As shown, the above-mentioned cloud server determines the above-mentioned target result based on the current location information of the terminal device by using a scanning method based on a preset radius. According to the trajectory information corresponding to the current location information, the 3D map model of the third-party application is loaded, and the preset radius R is used as a reference. The high-rise building model in the circular target area currently located within the preset radius R is scanned clockwise in one circle, and mapped into two-dimensional points on the plane. By calculating the distribution of the final two-dimensional points, it is divided into different regional densities such as densely surrounded or open, so as to calculate the target result of the target area. When the density of the area is densely surrounded, the cloud server can send the target result to the terminal device, and determine in the terminal device that the preset conditions are not met to transmit and receive the L5 frequency band; when the density of the area is open, the cloud server can also send the target result to the terminal device, and determine in the terminal device that the preset conditions are met to deactivate the L5 frequency band, that is, only transmit and receive the L1 frequency band.
[0141] Figure 6The following is a flow chart of a positioning method provided by an embodiment of the present disclosure. Figure 6 As shown, the positioning method provided in the embodiment of the present disclosure is only an example and not a limitation, and is intended to facilitate those skilled in the art to better understand the technical solution of the present disclosure. Figure 6 The positioning method provided in the embodiment of the present disclosure is applied to a terminal device and a cloud server, and may specifically include the following steps:
[0142] Step 601: When the frequency band selection switch of the terminal device is turned on, the terminal device sends current location information to the cloud server;
[0143] Step 602: The cloud server determines the trajectory information of the terminal device within a time period from the current time point corresponding to the current location information to a preset time point;
[0144] Step 603: The cloud server determines the area range corresponding to the trajectory information based on the trajectory information and the preset area;
[0145] Step 604: The cloud server determines the center location information of the area range based on the area range;
[0146] Step 605: The cloud server inputs the center location information and the preset radius into a pre-trained region segmentation model to obtain a target region corresponding to the current location information;
[0147] Step 606: The cloud server determines a target result corresponding to the target area based on the target area;
[0148] Step 607: The cloud server sends the target result to the terminal device; the target result includes a target density value or a target score;
[0149] Step 608: When the target density value is less than a preset density threshold, or the target score is greater than a preset score, the terminal device rewrites the configuration file of the target frequency band so that the terminal device can deactivate the target frequency band;
[0150] Step 609: When the target density value is greater than or equal to the preset density threshold, or the target score is less than or equal to the preset score, the terminal device updates the configuration file of the target frequency band so that the terminal device can send and receive the target frequency band.
[0151] It should be noted that step 608 and step 609 are two parallel situations in the embodiment of the present disclosure; that is, after step 607, step 608 or step 609 can be executed.
[0152] The positioning method provided by the embodiment of the present disclosure can send the current location information of the terminal device to the cloud server that has established a communication connection with the terminal device when the frequency band selection switch of the terminal device is in the on state. The cloud server determines the target result corresponding to the current location information based on the current location information, and feeds back the target result to the terminal device to control the terminal device to automatically switch between different frequency bands supported by the terminal device at the same time when the terminal device is in different positions. In this way, in the embodiment of the present disclosure, when the target result fed back to the terminal device by the cloud server meets the preset conditions, the terminal device can deactivate the target frequency band that matches the current location information, thereby saving the power consumption of the terminal device, improving the endurance of the terminal device, and improving the user experience.
[0153] Figure 7 A structural frame of a positioning device provided in an embodiment of the present disclosure Figure 1 . See Figure 7 The positioning device 700 provided in the embodiment of the present disclosure is applied to a terminal device and may include: a first sending module 710 , a first receiving module 720 and a processing module 730 .
[0154] The first sending module 710 is configured to send the current location information to the cloud server with which the terminal device has established a communication connection when the frequency band selection switch of the terminal device is turned on;
[0155] The first receiving module 720 is configured to receive a target result fed back by the cloud server based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0156] The processing module 730 is configured to rewrite the configuration file of the target frequency band when the target result meets the preset conditions, so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device.
[0157] The positioning device provided in the embodiment of the present disclosure sends the current location information to the cloud server with which the terminal device has established a communication connection when the frequency band selection switch of the terminal device is turned on; receives the target result fed back by the cloud server based on the current location information; the target result is used to characterize the regional density corresponding to the current location information; when the target result meets the preset conditions, the configuration file of the target frequency band is rewritten so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device. That is to say, when the frequency band selection switch of the terminal device is turned on, the target result corresponding to the current location information of the terminal device can be fed back through the cloud server with which the terminal device has established a communication connection, so as to control the terminal device to automatically switch different frequency bands simultaneously supported by the terminal device when it is in different positions. In this way, when the target result fed back to the terminal device by the cloud server meets the preset conditions in the embodiment of the present disclosure, the terminal device can deactivate the target frequency band matching the current location information, thereby saving the power consumption of the terminal device, improving the endurance of the terminal device, and improving the user experience.
[0158] for Figure 7 In the technical solution shown, in one possible implementation, the target result includes a target density value or a target score; the processing module 730 can be specifically configured as: when the target density value is less than a preset density threshold, or when the target score is greater than a preset score, rewrite the configuration file of the target frequency band so that the terminal device can deactivate the target frequency band.
[0159] for Figure 7 In the technical solution shown, in a possible implementation method, the processing module 730 can also be configured to: when the target density value is greater than or equal to the preset density threshold, or when the target score is less than or equal to the preset score, update the configuration file of the target frequency band so that the terminal device can send and receive the target frequency band.
[0160] for Figure 7 In the technical solution shown, in a possible implementation, the processing module 730 can also be configured to: in response to the highest authority request, turn on the forced use switch so that the terminal device can send and receive the target frequency band; or, in response to the highest authority request, turn off the forced use switch so that the terminal device can deactivate the target frequency band.
[0161] for Figure 7In a possible implementation of the technical solution shown, the processing module 730 may also be configured to: turn on the frequency band selection switch when the positioning module of the terminal device is in a working state and receives a request for automatic switching of frequency bands.
[0162] Figure 8 A structural frame of a positioning device provided in an embodiment of the present disclosure Figure 2 . See Figure 8 The positioning device 800 provided in the embodiment of the present disclosure is applied to a cloud server and may include: a second receiving module 810, a determining module 820 and a second sending module 830.
[0163] The second receiving module 810 is configured to receive current location information sent by a terminal device that has established a communication connection with the cloud server;
[0164] The determination module 820 is configured to determine a target result corresponding to the current location information based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information;
[0165] The second sending module 830 is configured to send the target result to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result.
[0166] The positioning device provided in the embodiment of the present disclosure receives the current location information sent by the terminal device that has established a communication connection with the cloud server; based on the current location information, determines the target result corresponding to the current location information; the target result is used to characterize the regional density corresponding to the current location information; sends the target result to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result. In other words, by receiving the current location information sent by the terminal device, the target result corresponding to the current location information can be determined, and the target result can be sent to the terminal device to control the terminal device to automatically switch different frequency bands supported by the terminal device at the same time when the terminal device is in different positions. In this way, the cloud server of the embodiment of the present disclosure feeds back the target result determined based on the current location information to the terminal device, so that the terminal device can deactivate the target frequency band matching the current location information, thereby saving the power consumption of the terminal device, improving the endurance of the terminal device, and improving the user experience.
[0167] for Figure 8 In the technical solution shown, in a possible implementation method, the determination module 820 can be specifically configured as: based on a pre-trained region segmentation model and the current position information, determining the target region corresponding to the current position information; based on the target region, determining the target result corresponding to the target region.
[0168] for Figure 8 In the technical solution shown, in a possible implementation method, the determination module 820 can also be configured to: determine the trajectory information of the terminal device within the time period from the current time point corresponding to the current position information to a preset time point; based on the trajectory information, determine the center position information corresponding to the trajectory information; input the center position information and the preset radius into the area segmentation model to obtain the target area.
[0169] for Figure 8 In the technical solution shown, in a possible implementation, the determination module 820 can also be configured to: determine the area range corresponding to the trajectory information based on the trajectory information and a preset area; and determine the center position information of the area range based on the area range.
[0170] It should be noted that Figure 7 and Figure 8 The specific manner in which each module of the positioning device in the illustrated embodiment performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.
[0171] In the disclosed embodiment, the positioning method may also be executed by an electronic device, which may be the terminal device, or the cloud server that has established a communication connection with the terminal device, and so on.
[0172] Fig. 9 9 is a schematic diagram of a terminal device according to an exemplary embodiment. For example, the terminal device 900 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device, etc.
[0173] Reference Fig. 9 The terminal device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0174] The processing component 902 generally controls the overall operation of the terminal device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0175] The memory 904 is configured to store various types of data to support operations on the terminal device 900. Examples of such data include instructions for any application or method operating on the terminal device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.
[0176] The power supply component 906 provides power to various components of the terminal device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 900.
[0177] The multimedia component 908 includes a screen that provides an output interface between the terminal device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the terminal device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0178] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the terminal device 900 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0179] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0180] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the terminal device 900. For example, the sensor assembly 914 can detect the open / closed state of the terminal device 900, the relative positioning of the components, such as the display and keypad of the terminal device 900, and the sensor assembly 914 can also detect the position change of the terminal device 900 or a component of the terminal device 900, the presence or absence of contact between the user and the terminal device 900, the orientation or acceleration / deceleration of the terminal device 900, and the temperature change of the terminal device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0181] The communication component 916 is configured to facilitate wired or wireless communication between the terminal device 900 and other devices. The terminal device 900 can access a wireless network based on a communication standard, such as WiFi, 3G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0182] In an exemplary embodiment, the terminal device 900 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0183] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of a terminal device 900 to complete the above method. For example, the storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0184] A storage medium, when the instructions in the storage medium are executed by the processor of a terminal device, enables the terminal device to execute a positioning method, the method comprising: when the frequency band selection switch of the terminal device is in the on state, sending current location information to a cloud server with which the terminal device has established a communication connection; receiving a target result fed back by the cloud server based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information; when the target result meets a preset condition, rewriting the configuration file of the target frequency band so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device. That is to say, when the frequency band selection switch of the terminal device is in the on state, the target result corresponding to the current location information of the terminal device can be fed back through the cloud server with which the terminal device has established a communication connection, so as to control the terminal device to automatically switch between different frequency bands simultaneously supported by the terminal device when it is in different positions. In this way, when the target result fed back to the terminal device by the cloud server meets the preset conditions, the terminal device can deactivate the target frequency band matching the current location information, thereby saving power consumption of the terminal device, improving the battery life of the terminal device, and improving the user experience.
[0185] Fig.10 FIG. 1 is a schematic diagram of a cloud server structure according to an exemplary embodiment. Fig.10 , the cloud server 1000 includes a processing component 1022, which further includes one or more processors, and a memory resource represented by a memory 1032 for storing instructions, such as applications, that can be executed by the processing component 1022. The application stored in the memory 1032 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1022 is configured to execute instructions to perform the above-mentioned information processing method.
[0186] The cloud server 1000 may also include a power supply component 1026 configured to perform power management of the cloud server 1000, a wired or wireless network interface 1050 configured to connect the cloud server 1000 to a network, and an input / output (I / O) interface 1058. The cloud server 1000 may operate based on an operating system stored in the memory 1032, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0187] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 1032 including instructions, and the above instructions can be executed by the processing component 1022 of the cloud server 1000 to complete the above method. For example, the storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0188] A storage medium, when the instructions in the storage medium are executed by the processing component of a cloud server, enables the cloud server to execute a positioning method, the method comprising: receiving current location information sent by a terminal device that has established a communication connection with the cloud server; determining a target result corresponding to the current location information based on the current location information; the target result is used to characterize the regional density corresponding to the current location information; sending the target result to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result. In other words, the target result corresponding to the current location information can be determined by receiving the current location information sent by the terminal device, and the target result can be sent to the terminal device to control the terminal device to automatically switch different frequency bands supported by the terminal device at the same time when the terminal device is in different positions. In this way, the cloud server of the embodiment of the present disclosure feeds back the target result determined based on the current location information to the terminal device, so that the terminal device can deactivate the target frequency band matching the current location information, thereby saving the power consumption of the terminal device, improving the endurance of the terminal device, and improving the user experience.
[0189] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0190] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0191] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A positioning method, characterized in that: Applied to a terminal device, the method comprises: When the frequency band selection switch of the terminal device is turned on, sending the current location information to a cloud server with which the terminal device has established a communication connection; Receiving a target result fed back by the cloud server based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information; When the target result meets the preset conditions, the configuration file of the target frequency band is rewritten so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device.
2. The method according to claim 1, characterized in that The target result includes a target density value or a target score; and when the target result satisfies a preset condition, rewriting a configuration file of the target frequency band so that the terminal device can deactivate the target frequency band, including: When the target density value is less than a preset density threshold, or the target score is greater than a preset score, the configuration file of the target frequency band is rewritten so that the terminal device can deactivate the target frequency band.
3. The method according to claim 2, characterized in that The method further comprises: When the target density value is greater than or equal to the preset density threshold, or the target score is less than or equal to the preset score, the configuration file of the target frequency band is updated so that the terminal device can transmit and receive the target frequency band.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to the highest authority request, turning on the mandatory use switch so that the terminal device can transmit and receive the target frequency band; or, In response to the highest authority request, the forced use switch is turned off so that the terminal device can deactivate the target frequency band.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the positioning module of the terminal device is in working state and receives a request for automatic switching of frequency bands, the frequency band selection switch is turned on.
6. A positioning method, characterized in that: Applied to a cloud server, the method comprises: Receiving current location information sent by a terminal device that has established a communication connection with the cloud server; Based on the current location information, determining a target result corresponding to the current location information; the target result is used to characterize the density of the area corresponding to the current location information; The target result is sent to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result.
7. The method according to claim 6, characterized in that The determining, based on the current location information, a target result corresponding to the current location information includes: Determine a target area corresponding to the current position information based on a pre-trained region segmentation model and the current position information; Based on the target area, the target result corresponding to the target area is determined.
8. The method according to claim 7, characterized in that The determining of the target area corresponding to the current position information based on the pre-trained area segmentation model and the current position information includes: Determine the trajectory information of the terminal device within a time period from a current time point corresponding to the current location information to a preset time point; Based on the trajectory information, determining center position information corresponding to the trajectory information; The center position information and the preset radius are input into the region segmentation model to obtain the target region.
9. The method according to claim 8, characterized in that The determining, based on the trajectory information, center position information corresponding to the trajectory information includes: Based on the trajectory information and a preset area, determining a region range corresponding to the trajectory information; Based on the area range, the center position information of the area range is determined.
10. A positioning device, characterized in that: Applied to terminal equipment, including: A first sending module, configured to send current location information to a cloud server with which a communication connection is established with the terminal device when the frequency band selection switch of the terminal device is turned on; A first receiving module is configured to receive a target result fed back by the cloud server based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information; The processing module is configured to rewrite the configuration file of the target frequency band when the target result meets the preset conditions, so that the terminal device can deactivate the target frequency band; the target frequency band is the frequency band with the lowest center frequency of at least two frequency bands simultaneously supported by the terminal device.
11. A positioning device, characterized in that: Applied to cloud servers, including: A second receiving module is configured to receive current location information sent by a terminal device that has established a communication connection with the cloud server; A determination module configured to determine a target result corresponding to the current location information based on the current location information; the target result is used to characterize the density of the area corresponding to the current location information; The second sending module is configured to send the target result to the terminal device, so that the terminal device can deactivate the target frequency band based on the target result.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the positioning method according to any one of claims 1 to 5; or, is configured to execute the positioning method according to any one of claims 6 to 9.
13. A storage medium, characterized in that: When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device is enabled to execute the positioning method as described in any one of claims 1 to 5; or, when the instructions in the storage medium are executed by the processor of the cloud server, the cloud server is enabled to execute the positioning method as described in any one of claims 6 to 9.