Positioning system switching method and device, electronic equipment and storage medium

By automatically switching the positioning system of the mobile terminal and matching the most suitable positioning system according to regional changes, the problem of different positioning accuracy in different regions is solved, and the terminal positioning accuracy and user experience are improved.

CN119165508APending Publication Date: 2024-12-20SHENZHEN XINGUODU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411306129.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The positioning accuracy of mobile terminals in different regions is different, resulting in the need for software customization, and manual switching of positioning systems is cumbersome and prone to errors.

Method used

By determining the changes in the region where the terminal is located, identify the target positioning system collection from the configuration file, and automatically switch the positioning system supported by the terminal to match the system in the target positioning system collection.

Benefits of technology

It realizes high positioning accuracy and seamless service experience of the terminal in different regions, reduces errors and inconvenience caused by manual switching, and improves the flexibility and user experience of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119165508A_ABST
    Figure CN119165508A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a positioning system switching method and device, electronic equipment and a storage medium, and belongs to the technical field of positioning. The method comprises the steps that after it is determined that a region where a terminal is located is changed from a first region to a second region, a target positioning system set matched with the second region is determined from a configuration file, positioning system sets configured according to different preset regions are stored in the configuration file, and the preset regions comprise the first region and the second region; and switching the current positioning system supported by the terminal to the target positioning system in the target positioning system set. According to the embodiment of the invention, the positioning precision of the mobile terminal in different regions can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning technology, and in particular to a positioning system switching method and device, electronic equipment, and storage medium. Background Art

[0002] In the related art, the navigation system carried by the mobile terminal only supports dual positioning systems or three positioning systems, but the positioning accuracy of different positioning systems varies in different regions. For example, the positioning accuracy of devices using GPS and Beidou systems in Europe may not be as good as that of devices using GPS and GLONASS systems. This means that for users in different regions, the software needs to be customized regionally. If the mobile terminal is brought to an area that is not supported by the current positioning system, the software in the device must be redesigned and deployed.

[0003] Therefore, how to ensure the positioning accuracy of mobile terminals in different regions has become an urgent problem to be solved. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a positioning system switching method and device, electronic equipment, and storage medium, aiming to ensure the positioning accuracy of mobile terminals in different regions.

[0005] To achieve the above object, a first aspect of an embodiment of the present application provides a positioning system switching method, the method comprising:

[0006] After determining that the region where the terminal is located changes from the first region to the second region, determining a target positioning system set matching the second region from a configuration file, wherein the configuration file stores positioning system sets configured according to different preset regions, wherein the preset regions include the first region and the second region;

[0007] The current positioning system supported by the terminal is switched to a target positioning system in the target positioning system set.

[0008] In some embodiments, the switching of the current positioning system supported by the terminal to a target positioning system in the target positioning system set includes:

[0009] Determining the number of positioning systems supported by the terminal;

[0010] If the number is not greater than the number of target positioning systems in the target positioning system set, selecting target positioning systems whose number matches the number from the target positioning system set;

[0011] The current positioning system supported by the terminal is switched to the selected target positioning systems whose number matches the number.

[0012] In some embodiments, selecting a number of target positioning systems matching the number from the set of target positioning systems includes:

[0013] According to the priority order of each of the target positioning systems in the target positioning system set, a number of target positioning systems matching the number is selected.

[0014] In some embodiments, determining that the region where the terminal is located changes from the first region to the second region includes:

[0015] Receive time zone change notifications from time zone change broadcasts;

[0016] When the time zone change notification determines that the time zone has changed, determining first time zone information and second time zone information before and after the time zone change;

[0017] If the first time zone information corresponds to a first region, and the second time zone information corresponds to a second region, it is determined that the region where the terminal is located changes from the first region to the second region.

[0018] In some embodiments, determining that the region where the terminal is located changes from the first region to the second region includes:

[0019] Scanning wireless networks to obtain area identification codes in the wireless networks;

[0020] When it is determined that the area identification code has changed, determining the first area identification code and the second area identification code before and after the area identification code has changed;

[0021] If the first region identification code corresponds to a first region and the second region identification code corresponds to a second region, it is determined that the region where the terminal is located is changed from the first region to the second region.

[0022] In some embodiments, the method further comprises:

[0023] receiving an update request for the configuration file;

[0024] The configuration file is updated according to the update request.

[0025] In some embodiments, after switching the current positioning system supported by the terminal to a target positioning system in the target positioning system set, the method further includes:

[0026] The notification message indicating successful switching of the positioning system is displayed on the display interface.

[0027] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a positioning system switching device, comprising:

[0028] a target positioning system determination module, configured to determine, after determining that the region where the terminal is located changes from a first region to a second region, a target positioning system set matching the second region from a configuration file, wherein the configuration file stores positioning system sets configured according to different preset regions, wherein the preset regions include the first region and the second region;

[0029] The positioning system switching module is used to switch the current positioning system supported by the terminal to a target positioning system in the target positioning system set.

[0030] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0031] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0032] The positioning system switching method and device, electronic device and storage medium proposed in the present application first determine that the region where the terminal is located has changed, and then identify the target positioning system set corresponding to the second region through the configuration file. Subsequently, the present application embodiment switches the positioning system currently supported by the terminal to match it with the system in the target positioning system set, ensuring that the terminal can use the most suitable local positioning system in the new region, thereby improving the accuracy and efficiency of positioning. The automatic switching mechanism provides users with a seamless positioning service experience. At the same time, it also helps to reduce the errors and inconveniences that may be caused by manually switching the positioning system. Through the positioning system switching method provided by the embodiment of the present application, the terminal device can more flexibly adapt to the positioning needs of different regions, improve the user experience and system reliability, and ultimately ensure the high positioning accuracy of mobile terminals in different regions. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a flow chart of a positioning system switching method provided in an embodiment of the present application;

[0034] Figure 2 yes Figure 1 Flow chart of step S101 in FIG.

[0035] Figure 3 yes Figure 1 Another flow chart of step S101 in FIG.

[0036] Figure 4 yes Figure 1Flow chart of step S102 in FIG.

[0037] Figure 5 is another flow chart of the positioning system switching method provided in an embodiment of the present application;

[0038] Figure 6 is a structural schematic diagram of a positioning system switching device provided in an embodiment of the present application;

[0039] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0041] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0043] In the related art, for the purpose of controlling cost and power consumption, the navigation system carried by the mobile terminal only supports dual positioning systems or three positioning systems, which are usually composed of a combination of satellite positioning systems such as the Global Positioning System (GPS), the GLONASS (the abbreviation of "Global Satellite Navigation System" in Russian), the Galileo Positioning System and the Beidou Positioning System. However, the positioning accuracy of different positioning systems varies in different regions. For example, the positioning accuracy of devices using the GPS and Beidou systems in Europe may not be as good as that of devices using the GPS and GLONASS systems. This means that for users in different regions, the software needs to be customized regionally. If the mobile terminal is brought to an area where the current positioning system is not supported, the software in the device must be redesigned and deployed.

[0044] Therefore, how to ensure the positioning accuracy of mobile terminals in different regions has become an urgent problem to be solved.

[0045] Based on this, the embodiments of the present application provide a positioning system switching method and device, an electronic device, and a storage medium, which aim to ensure the positioning accuracy of mobile terminals in different regions. The following embodiments are specifically described. First, the positioning system switching method in the embodiments of the present application is described.

[0046] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0047] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0048] Figure 1 is an optional flowchart of the positioning system switching method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S102.

[0049] Step S101, after determining that the region where the terminal is located has changed from the first region to the second region, determine a target positioning system set matching the second region from a configuration file, wherein the configuration file stores positioning system sets configured according to different preset regions, and the preset regions include the first region and the second region.

[0050] Step S102: Switch the current positioning system supported by the terminal to a target positioning system in the target positioning system set.

[0051] Steps S101 to S102 shown in the embodiment of the present application first determine that the region where the terminal is located has changed, and then identify the target positioning system set corresponding to the second region through the configuration file. Subsequently, the embodiment of the present application switches the positioning system currently supported by the terminal to match it with the system in the target positioning system set, ensuring that the terminal can use the most suitable local positioning system in the new region, thereby improving the accuracy and efficiency of positioning. This automatic switching mechanism provides users with a seamless positioning service experience. At the same time, it also helps to reduce errors and inconveniences that may be caused by manually switching positioning systems. Through the positioning system switching method provided by the embodiment of the present application, the terminal device can more flexibly adapt to the positioning needs of different regions, improve the user experience and system reliability, and ultimately ensure the high positioning accuracy of mobile terminals in different regions.

[0052] In step S101 of some embodiments, the terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a point of sale (POS) machine, etc., but is not limited thereto. The area where the mobile terminal is currently located is the current region information, which may be a continent, a country, or a province. In the embodiment of the present application, the method for determining that the region where the terminal is located changes from the first region to the second region may refer to steps S201 to S203, or steps S301 to S303.

[0053] See also Figure 2 In some embodiments, step S101 may include but is not limited to steps S201 to S203:

[0054] Step S201, receiving a time zone change notification from a time zone change broadcast.

[0055] Step S202, when the time zone change notification determines that the time zone has changed, determining the first time zone information and the second time zone information before and after the time zone change.

[0056] Step S203: If the first time zone information corresponds to the first region, and the second time zone information corresponds to the second region, it is determined that the region where the terminal is located is changed from the first region to the second region.

[0057] In step S201 of some embodiments, the time zone change broadcast may be a broadcast action constant (Intent.ACTION_TIMEZONE_CHANGED) in the Android system, and the terminal may receive the time zone change notification issued by the system by registering a broadcast receiver (BroadcastReceiver).

[0058] In step S202 of some embodiments, the first time zone information is the time zone information of the terminal before the time zone changes, and the second time zone information is the time zone information of the terminal after the time zone changes. The data attached to the broadcast, such as the new time zone ID, can be obtained through the Interent object. The current TimeZone object can be obtained using TimeZone.getDefault(), which contains detailed information about the current time zone, including the ID of the time zone, whether to use daylight saving time, etc. It should be noted that if the time zone change notification determines that the time zone has not changed, this step and subsequent steps are not required.

[0059] In step S203 of some embodiments, the region corresponding to the time zone information can be obtained by querying according to the preset time zone region mapping relationship. Specifically, the region corresponding to the first time zone information is the first region, and the region corresponding to the second time zone information is the second region, and the first region is different from the second region. Exemplarily, for example, if the first region corresponding to the first time zone information is Shanghai, China, and the second region corresponding to the second time zone information is Paris, France, it can be determined that the terminal has moved from Shanghai, China to Paris, France.

[0060] Steps S201 to S203 shown in the embodiment of the present application, by real-time acquisition of the time zone change notification of the time zone change broadcast, after receiving the time zone change notification, the specific regional information before and after the time zone change can be determined through the time zone information, and then combined with the preset time zone region mapping relationship, the regional information corresponding to the mobile terminal in different time zones can be quickly and accurately determined, ensuring the dynamic update of the time zone and regional information, and being able to adjust and adapt to the local time setting in time, thereby improving the accuracy of the system's time zone judgment and positioning.

[0061] See also Figure 3 In some other embodiments, step S101 may also include but is not limited to steps S301 to S303:

[0062] Step S301, scanning wireless networks to obtain area identification codes in the wireless networks.

[0063] Step S302: When it is determined that the area identification code has changed, the first area identification code and the second area identification code before and after the area identification code has changed are determined.

[0064] Step S303: if the first region identification code corresponds to the first region and the second region identification code corresponds to the second region, it is determined that the region where the terminal is located is changed from the first region to the second region.

[0065] In step S301 of some embodiments, the mobile terminal scans and acquires available wireless network signals in its surroundings through a built-in Wi-Fi module or other wireless network interface. The regional identification code may be a country code in the wireless network signal, for example, the WLAN country code for China is "CN". Wireless network signals typically include broadcast information of multiple Wi-Fi access points or other wireless network devices, such as a service set identifier (SSID), a basic service set identifier, i.e., a device's MAC address (BSSID), and accompanying signal strength and country code (Country Code) information. Through continuous scanning, the mobile terminal can dynamically acquire and update the surrounding wireless network environment information.

[0066] In step S302 of some embodiments, the region identification code before the change is the first region identification code, and the region identification code after the change is the second region identification code. If the region identification code has not changed, it means that the region where the mobile terminal is located has not changed, and this step and subsequent steps are not required.

[0067] In step S303 of some embodiments, by querying the mapping relationship between the preset country code and the regional information, the specific regional information is extracted according to the regional identification code. The above mapping relationship can be stored in the mobile terminal, including the corresponding relationship between the country code and the specific region, country or region. For example, if the mobile terminal is originally connected to a network with a regional identification code marked as "CN" and then switches to a network with a regional identification code marked as "US", it can be determined that the first regional identification code is "CN" and the second regional identification code is "US". The query can know that the first region is China and the second region is the United States, and finally it can be determined that the mobile terminal has moved from China to the United States.

[0068] Steps S301 to S303 shown in the embodiment of the present application obtain surrounding wireless network signals, then filter out information containing country codes, and accurately determine the current region information of the mobile terminal through a preset mapping relationship between the country code and the region information. The country code information included in the existing wireless network broadcast is utilized to achieve the function of quickly determining the region where the mobile terminal is located without relying on a complex positioning system, ensuring that the location information can be dynamically updated when the network environment changes, thereby improving the accuracy of the mobile terminal's regional judgment.

[0069] In some embodiments, after determining that the region of the mobile terminal has changed to the second region, a target positioning system set matching the second region is obtained from the configuration file, and the target positioning system set may include: a global positioning system (GPS), a GLONASS positioning system (GLONASS), a Galileo positioning system, and a Beidou positioning system, but is not limited thereto. The configuration file may pre-store the correspondence between different regions and the preferred positioning system set, as shown in Table 1:

[0070] area Optimal positioning system collection Asia / Shanghai Beidou positioning system, GPS, GLONASS Europe / London GPS,Galileo positioning system,GLONASS America / New York GPS, GLONASS, Galileo positioning system

[0071] Table 1

[0072] Exemplarily, when the second region is determined to be Shanghai, the positioning system set corresponding to Shanghai is "Beidou Positioning System, GPS, GLONASS", and this positioning system set is the target positioning system set.

[0073] In step 102 of some embodiments, see Figure 4 In some embodiments, step S102 may include but is not limited to steps S401 to S403:

[0074] Step S401: determine the number of positioning systems supported by the terminal.

[0075] Step S402: If the number is not greater than the number of target positioning systems in the target positioning system set, target positioning systems whose number matches the number are selected from the target positioning system set.

[0076] Step S403: Switch the current positioning system supported by the terminal to the selected target positioning systems of the number matching the number.

[0077] In step S401 of some embodiments, taking a point of sale (POS) terminal as an example, a POS terminal can usually support two or three positioning systems.

[0078] In step S402 of some embodiments, each positioning system in the target positioning system set is a target positioning system. In some embodiments, if the number is greater than the number of target positioning systems in the target positioning system set, all target positioning systems in the target positioning system set are selected.

[0079] Regarding the selection method of the target positioning system, it can be a random selection, or it can be selected according to the priority order of each target positioning system in the target positioning system set, and the target positioning system of the number matching the number is selected. Taking Table 1 as an example, the target positioning system set is determined to be "Beidou positioning system, GPS, GLONASS", and the order of the systems is arranged according to the priority, that is, the highest priority positioning system is Beidou positioning system, and the lowest priority positioning system is GLONASS. Then it is further determined that the number of positioning systems supported by the terminal is 2, and the Beidou positioning system and GPS are selected according to the priority order of the target positioning system.

[0080] In step S403 of some embodiments, it is necessary to update the configuration file according to the target positioning system and reset the positioning system chip of the mobile terminal to achieve the switching of the positioning system.

[0081] Steps S401 to S403 shown in the embodiment of the present application detect the number of positioning systems supported by the terminal and match them with the preset target positioning system set. This process ensures that the terminal device can select the most suitable positioning system according to the current capabilities and needs. Compared with the solution of directly setting the positioning navigation system chip supporting the whole system in the terminal, the solution of this embodiment can enable the terminal to use chips supporting a smaller number of systems, while ensuring that the terminal can use a positioning system with higher accuracy, reducing a certain amount of power consumption, thereby extending the use time of the mobile terminal. This dynamic selection mechanism improves the accuracy and reliability of positioning, thereby providing a better user experience.

[0082] See also Figure 5 In some embodiments, the positioning system switching method provided in the embodiment of the present application may also include but is not limited to steps S501 to S502:

[0083] Step S501: receiving an update request for a configuration file.

[0084] Step S502: Update the configuration file according to the update request.

[0085] In step S501 of some embodiments, when there is a new region or a customer requires a specific system to be used in a certain time zone, the terminal will receive an update request for the configuration file sent by the remote server. It should be noted that in addition to updating the configuration file of the specific terminal through the remote server, the above update requirements can also be updated by pushing a new software version.

[0086] In step S502 of some embodiments, the update process may require authorization by the terminal user to ensure that only authorized updates can be applied. In some cases, the update requires restarting the terminal device or related services to make the new configuration effective. In some embodiments, in order to ensure the stability of the system, the update process may include a rollback mechanism to restore to the previous configuration when the update fails or causes problems.

[0087] According to the steps S501 to S502 shown in the embodiment of the present application, remote management and dynamic update of the terminal device configuration file are realized. This mechanism enables the device to respond to environmental changes or customer needs in a timely manner, adapt to new usage scenarios or optimize performance by automatically updating the configuration file. The update process is automatically performed in the background without interfering with user operations, while reducing the need for manual intervention and software repackaging, optimizing resource utilization, saving costs and time, and thus improving user experience.

[0088] In some embodiments, after step S102, the positioning system switching method provided in the embodiments of the present application includes but is not limited to: displaying a notification message of successful positioning system switching on the display interface.

[0089] Specifically, when the positioning system needs to switch or completes the switch, a related event will be triggered and the event will be captured by the user interface module and used to generate a notification message. This message will be presented on the screen of the mobile terminal in an intuitive way, such as through a pop-up window or status bar prompt. The content may include the currently activated navigation system, the time of switching, and any information that affects the user's operation. The user can interact with the notification message, such as clicking, to obtain more system status details, such as signal strength and positioning accuracy. In order to meet the needs of different users, the user interface module also allows users to choose whether to receive such notifications and the display form of the notification in the settings. In addition, the notification message will automatically adapt to the corresponding language version according to the language setting of the mobile terminal to ensure that all users can understand its content. In the back end, the system of the mobile terminal will record the detailed information of the switching event in the log for future maintenance and problem diagnosis. Such a design not only improves the user experience, but also enhances the reliability and ease of use of the system.

[0090] See also Figure 6 The embodiment of the present application further provides a positioning system switching device, which can implement the above positioning system switching method, and the device includes:

[0091] a target positioning system determination module, configured to determine a target positioning system set matching the second region from a configuration file after determining that the region where the terminal is located changes from a first region to a second region, wherein the configuration file stores positioning system sets configured according to different preset regions, and the preset regions include the first region and the second region;

[0092] The positioning system switching module is used to switch the current positioning system supported by the terminal to a target positioning system in the target positioning system set.

[0093] The specific implementation of the positioning system switching device is basically the same as the specific implementation of the positioning system switching method described above, and will not be repeated here.

[0094] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above positioning system switching method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0095] See also Figure 7 , Figure 7 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0096] The processor 701 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0097] The memory 702 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 702, and the processor 701 calls and executes the positioning system switching method of the embodiment of the present application;

[0098] Input / output interface 703, used to implement information input and output;

[0099] Communication interface 704, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);

[0100] A bus 705 that transmits information between the various components of the device (e.g., the processor 701, the memory 702, the input / output interface 703, and the communication interface 704);

[0101] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .

[0102] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned positioning system switching method is implemented.

[0103] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0104] The positioning system switching method, positioning system switching device, electronic device and storage medium provided in the embodiment of the present application first determine that the region where the terminal is located has changed, and then identify the target positioning system set corresponding to the second region through the configuration file. Subsequently, the embodiment of the present application switches the positioning system currently supported by the terminal to match it with the system in the target positioning system set, ensuring that the terminal can use the most suitable local positioning system in the new region, thereby improving the accuracy and efficiency of positioning. The automatic switching mechanism provides users with a seamless positioning service experience. At the same time, it also helps to reduce errors and inconveniences that may be caused by manually switching the positioning system. Through the positioning system switching method provided in the embodiment of the present application, the terminal device can more flexibly adapt to the positioning needs of different regions, improve the user experience and system reliability, and ultimately ensure the high positioning accuracy of mobile terminals in different regions.

[0105] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0106] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0107] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0108] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0109] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0110] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0111] 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 above 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 system, 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.

[0112] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] 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.

[0114] 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 computer-readable storage medium. Based on this understanding, the technical solution 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, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0115] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims

1. A positioning system switching method, characterized in that: include: After determining that the region where the terminal is located changes from the first region to the second region, determining a target positioning system set matching the second region from a configuration file, wherein the configuration file stores positioning system sets configured according to different preset regions, wherein the preset regions include the first region and the second region; The current positioning system supported by the terminal is switched to a target positioning system in the target positioning system set.

2. The positioning system switching method according to claim 1, characterized in that: The switching the current positioning system supported by the terminal to the target positioning system in the target positioning system set includes: Determining the number of positioning systems supported by the terminal; If the number is not greater than the number of target positioning systems in the target positioning system set, selecting target positioning systems whose number matches the number from the target positioning system set; The current positioning system supported by the terminal is switched to the selected target positioning systems whose number matches the number.

3. The positioning system switching method according to claim 2, characterized in that: The step of selecting a number of target positioning systems matching the number from the target positioning system set includes: According to the priority order of each of the target positioning systems in the target positioning system set, a number of target positioning systems matching the number is selected.

4. The positioning system switching method according to claim 1, characterized in that: The determining that the region where the terminal is located changes from the first region to the second region includes: Receive time zone change notifications from time zone change broadcasts; When the time zone change notification determines that the time zone has changed, determining first time zone information and second time zone information before and after the time zone change; If the first time zone information corresponds to a first region, and the second time zone information corresponds to a second region, it is determined that the region where the terminal is located changes from the first region to the second region.

5. The positioning system switching method according to claim 1, characterized in that: The determining that the region where the terminal is located changes from the first region to the second region includes: Scanning wireless networks to obtain area identification codes in the wireless networks; When it is determined that the area identification code has changed, determining the first area identification code and the second area identification code before and after the area identification code has changed; If the first region identification code corresponds to a first region and the second region identification code corresponds to a second region, it is determined that the region where the terminal is located is changed from the first region to the second region.

6. The positioning system switching method according to any one of claims 1 to 5, characterized in that: The method further comprises: receiving an update request for the configuration file; The configuration file is updated according to the update request.

7. The positioning system switching method according to any one of claims 1 to 5, characterized in that: After switching the current positioning system supported by the terminal to a target positioning system in the target positioning system set, the method further includes: The notification message indicating successful switching of the positioning system is displayed on the display interface.

8. A positioning system switching device, characterized in that: include: a target positioning system determination module, configured to determine, after determining that the region where the terminal is located changes from a first region to a second region, a target positioning system set matching the second region from a configuration file, wherein the configuration file stores positioning system sets configured according to different preset regions, wherein the preset regions include the first region and the second region; The positioning system switching module is used to switch the current positioning system supported by the terminal to a target positioning system in the target positioning system set.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the positioning system switching method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the positioning system switching method according to any one of claims 1 to 7 is implemented.