Method for controlling a positioning chip and electronic device
A method for controlling a positioning chip includes: receiving a positioning request sent by an application; obtaining information of the application, and determining a working mode of the positioning chip based on the information of the application; and controlling resources for the positioning chip based on the working mode. The method may be implemented in an electronic device.
1 . A method for controlling a positioning chip, performed by an electronic device, comprising:
receiving a positioning request sent by an application;
obtaining information of the application, and determining a working mode of the positioning chip based on the information of the application;
controlling satellite channel resources for the positioning chip based on the working mode; and
providing a positioning result for the application using controlled satellite channel resources;
wherein, determining a working mode of the positioning chip based on the information of the application comprises:
obtaining a requirement on the positioning accuracy of the application; and
determining the working mode based on the requirement;
wherein determining the working mode based on the requirement comprises:
determining the working mode of the positioning chip to be a second working mode, in response to determining that the requirement indicating that the positioning accuracy corresponding to the application being less than a first positioning accuracy threshold and greater than a second positioning accuracy threshold,
wherein the second working mode comprises a second satellite constellation configuration mode, the second satellite constellation configuration mode comprises at least three satellite constellations and a single frequency mode, the second positioning accuracy threshold is less than the first positioning accuracy threshold, and a number of the at least three satellite constellations is less than a total number of satellite constellations.
2 . The method of claim 1 , wherein, determining the working mode based on the requirement comprises:
determining the working mode of the positioning chip to be a first working mode, in response to determining that the requirement indicating that the positioning accuracy corresponding to the application being greater than a first positioning accuracy threshold,
wherein the first working mode comprises a first satellite constellation configuration mode, and the first satellite constellation configuration mode comprises a full satellite constellation and a multi-frequency mode.
3 . The method of claim 1 , wherein, determining the working mode based on the requirement comprises:
determining the working mode of the positioning chip to be a third working mode, in response to determining that the positioning accuracy corresponding to the application being less than a second positioning accuracy threshold and greater than a third positioning accuracy threshold,
wherein the third working mode comprises a third satellite constellation configuration mode, the third satellite constellation configuration mode comprises double satellite constellations and a single frequency mode, and the third positioning accuracy threshold is less than the second positioning accuracy threshold.
4 . The method of claim 1 , wherein, determining the working mode based on the requirement comprises:
determining the working mode of the positioning chip to be a fourth working mode, in response to determining that the positioning accuracy corresponding to the application being less than a third positioning accuracy threshold,
wherein the fourth working mode comprises a fourth satellite constellation configuration mode, and the fourth satellite constellation configuration mode comprises single satellite constellation and a single frequency mode.
5 . The method of claim 1 , wherein, determining a requirement indicating the positioning chip based on the information of the application comprises:
obtaining a requirement on the positioning accuracy of the application by a neural network model.
6 . The method of claim 1 , wherein, obtaining a requirement on the positioning accuracy of the application comprises:
obtaining a type of the application, wherein the application is a map-type application; and
obtaining a requirement on the positioning accuracy of the application based on the type.
7 . The method of claim 1 , wherein, controlling the satellite channel resources for the positioning chip based on the working mode comprises:
controlling a working state of at least one satellite constellation and a working state of at least one frequency in the satellite channel resources for the positioning chip based on the working mode.
8 . An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory is stored with instructions executable by the at least one processor, and the processor is configured to:
receive a positioning request sent by an application;
obtain information of the application, and determine a working mode of a positioning chip based on the information of the application;
control satellite channel resources for the positioning chip based on the working mode; and
provide a positioning result for the application using controlled satellite channel resources;
wherein the processor is configured to:
obtain a requirement on the positioning accuracy of the application; and
determine the working mode based on the requirement;
wherein when determines the working mode based on the requirement, the processor is configured to:
determine the working mode of the positioning chip to be a second working mode, in response to determining that the requirement indicating that the positioning accuracy corresponding to the application being less than a first positioning accuracy threshold and greater than a second positioning accuracy threshold,
wherein the second working mode comprises a second satellite constellation configuration mode, the second satellite constellation configuration mode comprises at least three satellite constellations and a single frequency mode, the second positioning accuracy threshold is less than the first positioning accuracy threshold, and a number of the at least three satellite constellations is less than a total number of satellite constellations.
9 . The electronic device of claim 8 , wherein the processor is configured to:
determine the working mode of the positioning chip to be a first working mode, in response to determining that the requirement indicating that the positioning accuracy corresponding to the application being greater than a first positioning accuracy threshold,
wherein the first working mode comprises a first satellite constellation configuration mode, and the first satellite constellation configuration mode comprises a full satellite constellation and a multi-frequency mode.
10 . The electronic device of claim 8 , wherein the processor is configured to:
determine the working mode of the positioning chip to be a third working mode, in response to determining that the positioning accuracy corresponding to the application being less than a second positioning accuracy threshold and greater than a third positioning accuracy threshold,
wherein the third working mode comprises a third satellite constellation configuration mode, the third satellite constellation configuration mode comprises double satellite constellations and a single frequency mode, and the third positioning accuracy threshold is less than the second positioning accuracy threshold.
11 . The electronic device of claim 8 , wherein the processor is configured to:
determine the working mode of the positioning chip to be a fourth working mode, in response to determining that the positioning accuracy corresponding to the application being less than a third positioning accuracy threshold,
wherein the fourth working mode comprises a fourth satellite constellation configuration mode, and the fourth satellite constellation configuration mode comprises single satellite constellation and a single frequency mode.
12 . The electronic device of claim 8 , wherein the processor is configured to:
obtain a requirement on the positioning accuracy of the application by a neural network model.
13 . The electronic device of claim 8 , wherein the processor is configured to:
obtain a type of the application, wherein the application is a map-type application; and
obtain a requirement on the positioning accuracy of the application based on the type.
14 . The electronic device of claim 8 , wherein the processor is configured to:
control a working state of at least one satellite constellation and a working state of at least one frequency in the satellite channel resources for the positioning chip based on the working mode.
15 . A non-transitory computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions being configured to cause a processor in an electronic device to perform a method for controlling a positioning chip, wherein the method comprising:
receiving a positioning request sent by an application;
obtaining information of the application, and determining a working mode of the positioning chip based on the information of the application;
controlling satellite channel resources for the positioning chip based on the working mode; and
wherein, determining a working mode of the positioning chip based on the information of the application comprises:
obtaining a requirement on the positioning accuracy of the application; and
determining the working mode based on the requirement;
wherein determining the working mode based on the requirement comprises:
determining the working mode of the positioning chip to be a second working mode, in response to determining that the requirement indicating that the positioning accuracy corresponding to the application being less than a first positioning accuracy threshold and greater than a second positioning accuracy threshold,
wherein the second working mode comprises a second satellite constellation configuration mode, the second satellite constellation configuration mode comprises at least three satellite constellations and a single frequency mode, the second positioning accuracy threshold is less than the first positioning accuracy threshold, and a number of the at least three satellite constellations is less than a total number of satellite constellations.