Positioning request control method and device, electronic equipment, storage medium and chip
By using wireless beacons to determine the motion state of the mobile device and stop sending positioning requests when the preset conditions are met, the problem of difficult control of the frequency of GNSS positioning requests for mobile devices is solved, and the effect of reducing the power consumption of the GNSS positioning chip and extending the battery life of the device is achieved.
Patent Information
- Application Number
- CN202411885568.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, when mobile devices perform GNSS positioning, the frequency of positioning requests is difficult to effectively control, resulting in high power consumption of the GNSS positioning chip, affecting the battery life of the device.
The motion state of the mobile device is determined by acquiring the first wireless beacon around the mobile device during the current scanning period and the second wireless beacon during the calibration scanning period. When the motion state meets the preset conditions, the control device stops sending the positioning request.
When the preset motion state conditions are met, the positioning request is stopped, the power consumption of the GNSS positioning chip is reduced, the battery life of the mobile device is extended, and the overall power consumption of the device is further reduced through the low-power consumption method of wireless beacon scanning.
Smart Images

Figure CN119729723A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of location-based services, and in particular to a method, device, electronic device, storage medium and chip for controlling a positioning request. Background Art
[0002] Geofencing is a location-based service technology that defines a geographic area in the physical world through virtual boundaries. When a mobile device (e.g., a smartphone) enters or leaves the geographic area defined by the geofence, the mobile device triggers a preset operation or notification. Usually, geofencing relies on the Global Navigation Satellite System (GNSS) technology to locate the location of the mobile device. The mobile device sends a positioning request using its own GNSS positioning chip to locate the location of the mobile device. Since the GNSS positioning chip has a high power consumption, in order to reduce the power consumption of the mobile device, it is necessary to control the frequency of the mobile device sending positioning requests. Summary of the invention
[0003] The present disclosure provides a positioning request control method, device, electronic device, storage medium and chip to solve the problems in the related art.
[0004] A first aspect of the present disclosure provides a method for controlling a positioning request, the method comprising:
[0005] Acquire a first wireless beacon around the mobile device in a current scanning cycle, and acquire a second wireless beacon around the mobile device in a calibration scanning cycle; the calibration scanning cycle is the first scanning cycle after the mobile device last switched the motion state, the first wireless beacon includes at least one wireless beacon, the second wireless beacon includes at least one wireless beacon, and different wireless beacons are identification information of different types of wireless devices;
[0006] Determining a motion state of the mobile device according to the first wireless beacon and the second wireless beacon;
[0007] When the motion state meets a preset condition, the mobile device is controlled to stop sending a positioning request.
[0008] In some embodiments, determining the motion state of the mobile device according to the first wireless beacon and the second wireless beacon includes:
[0009] Determining whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon;
[0010] If the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon, it is determined that the motion state of the mobile device is a preset first motion state; the preset first motion state is a state in which the mobile device is within the coverage range of the same wireless beacon in at least two consecutive scanning cycles.
[0011] In some embodiments, the determining whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon comprises:
[0012] Determining a wireless beacon to be compared in the second wireless beacon for wireless beacon consistency comparison according to the signal strength of the wireless beacon and a preset comparison number for wireless beacon comparison;
[0013] Comparing the wireless beacon to be compared with the wireless beacons included in the first wireless beacon;
[0014] If the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon;
[0015] If at least one wireless beacon included in the wireless beacon to be compared does not exist in the first wireless beacon as the same wireless beacon, it is determined that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
[0016] In some embodiments, determining the wireless beacon to be compared in the second wireless beacon for wireless beacon consistency comparison according to the signal strength of the wireless beacon and the preset comparison number for wireless beacon comparison includes:
[0017] Acquire the number of wireless beacons included in the second wireless beacon and the first signal strength of each wireless beacon;
[0018] If the number of beacons is greater than the preset comparison number, selecting the preset comparison number of wireless beacons from the second wireless beacons in descending order of the first signal strengths to determine as the wireless beacons to be compared;
[0019] If the number of beacons is less than or equal to the preset comparison number, all the wireless beacons included in the second wireless beacon are determined as the wireless beacons to be compared.
[0020] In some embodiments, after the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, the method further includes:
[0021] Acquire a second signal strength of a wireless beacon in the first wireless beacons that is the same as the wireless beacon to be compared;
[0022] Comparing the first signal strength of the wireless beacon to be compared with the corresponding second signal strength;
[0023] In a case where the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is less than a preset threshold, performing the step of determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon;
[0024] When the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is greater than or equal to the preset threshold, it is determined that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
[0025] In some embodiments, the method further comprises:
[0026] If the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon, determining that the motion state of the mobile device is a preset second motion state; the preset second motion state is a state in which the mobile device is not within the coverage range of the same wireless beacon in at least two consecutive scanning cycles;
[0027] When the motion state is the preset second motion state, the mobile device is controlled to send the positioning request.
[0028] In some embodiments, when the motion state satisfies a preset condition, controlling the mobile device to stop sending a positioning request includes:
[0029] When the motion state is the preset first motion state, the mobile device is controlled to stop sending the positioning request.
[0030] A second aspect of the present disclosure provides a control device for a positioning request, the device comprising:
[0031] A first acquisition unit is used to acquire a first wireless beacon around the mobile device in a current scanning cycle, and acquire a second wireless beacon around the mobile device in a calibration scanning cycle; the calibration scanning cycle is the first scanning cycle after the mobile device last switched the motion state, the first wireless beacon includes at least one wireless beacon, the second wireless beacon includes at least one wireless beacon, and different wireless beacons are identification information of different types of wireless devices;
[0032] a determining unit, configured to determine a motion state of the mobile device according to the first wireless beacon and the second wireless beacon;
[0033] The control unit is used to control the mobile device to stop sending the positioning request when the motion state meets the preset condition.
[0034] In some embodiments, the determining unit includes:
[0035] A first determination module, configured to determine whether a wireless beacon included in the first wireless beacon is consistent with a wireless beacon included in the second wireless beacon;
[0036] The second determination module is used to determine that the motion state of the mobile device is a preset first motion state when the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon; the preset first motion state is a state in which the mobile device is within the coverage range of the same wireless beacon in at least two consecutive scanning cycles.
[0037] In some embodiments, the first determining module is further configured to:
[0038] Determine a wireless beacon to be compared in the second wireless beacon for wireless beacon consistency comparison according to the signal strength of the wireless beacon and a preset comparison number for wireless beacon comparison;
[0039] Comparing the wireless beacon to be compared with the wireless beacons included in the first wireless beacon;
[0040] When the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon;
[0041] When at least one wireless beacon included in the wireless beacon to be compared does not have the same wireless beacon in the first wireless beacon, it is determined that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
[0042] In some embodiments, the first determining module is further configured to:
[0043] Acquire the number of wireless beacons included in the second wireless beacon and the first signal strength of each wireless beacon;
[0044] When the number of beacons is greater than the preset comparison number, selecting the preset comparison number of wireless beacons from the second wireless beacons in descending order of the first signal strengths as the wireless beacons to be compared;
[0045] When the number of beacons is less than or equal to the preset comparison number, all the wireless beacons included in the second wireless beacon are determined as the wireless beacons to be compared.
[0046] In some embodiments, the apparatus further comprises:
[0047] A second acquisition unit is used to acquire a second signal strength of the wireless beacon that is the same as the wireless beacon to be compared in the first wireless beacon after determining that the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon;
[0048] A comparing unit, configured to compare the first signal strength of the wireless beacon to be compared with the corresponding second signal strength;
[0049] an execution unit, configured to, when a difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is less than a preset threshold, execute the step of determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon;
[0050] The first determination module is further configured to determine that the wireless beacons included in the first wireless beacon are inconsistent with the wireless beacons included in the second wireless beacon when the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is greater than or equal to the preset threshold.
[0051] In some embodiments, the apparatus further comprises:
[0052] The determining unit is further configured to, when the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon, determine that the motion state of the mobile device is a preset second motion state; the preset second motion state is a state in which the mobile device is not within the coverage range of the same wireless beacon in at least two consecutive scanning cycles;
[0053] The control unit is further configured to, when the motion state is the preset second motion state, control the mobile device to send the positioning request.
[0054] In some embodiments, the control unit is further configured to:
[0055] When the motion state is the preset first motion state, the mobile device is controlled to stop sending the positioning request.
[0056] The third aspect embodiment of the present disclosure proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect embodiment of the present disclosure.
[0057] The fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect embodiment of the present disclosure.
[0058] The fifth aspect embodiment of the present disclosure proposes a chip, which includes one or more interfaces and one or more processors; the interface is used to receive signals from a memory of an electronic device and send signals to the processor, the signals include computer instructions stored in the memory, and when the processor executes the computer instructions, the electronic device executes the method described in the first aspect embodiment of the present disclosure.
[0059] In summary, according to the positioning request control method proposed in the present disclosure, when the motion state of the mobile device meets the preset conditions, the mobile device no longer sends a positioning request, but stops sending a positioning request, so that the GNSS positioning chip of the mobile device is in a standby state, which reduces the power consumption of the GNSS positioning chip; and whether the motion state of the mobile device meets the preset conditions is determined based on the first wireless beacon around the mobile device in the current scanning cycle, and the second wireless beacon around the mobile device in the calibration scanning cycle. The power consumption of the mobile device for wireless beacon scanning is much lower than the power consumption of the GNSS positioning chip. This method can further reduce the power consumption of the mobile device. In summary, the present disclosure determines whether the motion state of the mobile device meets the preset conditions based on the wireless beacon, and when the motion state meets the preset conditions, controls the mobile device to stop sending positioning requests. Compared with the prior art, the power consumption of the mobile device is greatly reduced.
[0060] 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
[0061] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0062] Figure 1 A flowchart of a method for controlling a positioning request provided by an embodiment of the present disclosure;
[0063] Figure 2A flowchart of another method for controlling a positioning request provided by an embodiment of the present disclosure;
[0064] Figure 3 A flowchart of another method for controlling a positioning request provided by an embodiment of the present disclosure;
[0065] Figure 4 A flowchart of another method for controlling a positioning request provided by an embodiment of the present disclosure;
[0066] Figure 5 A flowchart of another method for controlling a positioning request provided by an embodiment of the present disclosure;
[0067] Figure 6 A flowchart of another method for controlling a positioning request provided by an embodiment of the present disclosure;
[0068] Figure 7 A flowchart of another method for controlling a positioning request provided by an embodiment of the present disclosure;
[0069] Figure 8 A display diagram of a geographic fence and wireless beacon coverage provided in an embodiment of the present disclosure;
[0070] Fig. 9 A schematic diagram of the structure of a control device for positioning request provided by an embodiment of the present disclosure;
[0071] Fig.10 A schematic diagram of the structure of another control device for positioning request provided by an embodiment of the present disclosure;
[0072] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0073] Fig.12 A schematic diagram of the structure of a chip provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0074] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0075] Geofencing is a location-based service technology that defines a geographic area in the physical world through virtual boundaries. When a mobile device (e.g., a smartphone) enters or leaves the geographic area defined by the geofence, the mobile device triggers a preset operation or notification. Usually, geofencing relies on the Global Navigation Satellite System (GNSS) technology to locate the location of the mobile device. The mobile device sends a positioning request using its own GNSS positioning chip to locate the location of the mobile device. Since the GNSS positioning chip has a high power consumption, in order to reduce the power consumption of the mobile device, it is necessary to control the frequency of the mobile device sending positioning requests.
[0076] Therefore, in order to solve the problems existing in the related art, the present disclosure proposes a method for controlling a positioning request, which obtains a first wireless beacon around a mobile device in a current scanning cycle, and obtains a second wireless beacon around the mobile device in a calibration scanning cycle; the calibration scanning cycle is the first scanning cycle after the mobile device last switched its motion state, the first wireless beacon includes at least one wireless beacon, the second wireless beacon includes at least one wireless beacon, and different wireless beacons are identification information of different types of wireless devices; according to the first wireless beacon and the second wireless beacon, the motion state of the mobile device is determined; when the motion state meets a preset condition, the mobile device is controlled to stop sending a positioning request.
[0077] In this solution, when the motion state of the mobile device meets the preset conditions, the mobile device no longer sends a positioning request, but stops sending positioning requests, so that the GNSS positioning chip of the mobile device is in a standby state, reducing the power consumption of the GNSS positioning chip; and whether the motion state of the mobile device meets the preset conditions is determined based on the first wireless beacon around the mobile device in the current scanning cycle, and the second wireless beacon around the mobile device in the calibration scanning cycle. The power consumption of the mobile device for wireless beacon scanning is much lower than the power consumption of the GNSS positioning chip. This method can further reduce the power consumption of the mobile device. In summary, the present disclosure determines whether the motion state of the mobile device meets the preset conditions based on the wireless beacon, and controls the mobile device to stop sending positioning requests when the motion state meets the preset conditions. Compared with the prior art, the power consumption of the mobile device is greatly reduced.
[0078] The embodiments of the present disclosure are not exhaustive, but are only illustrative of some embodiments, and are not intended to be a specific limitation on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain embodiment can also be implemented as an independent embodiment, and the order of the steps in a certain embodiment can be arbitrarily exchanged. In addition, the optional implementation methods in a certain embodiment can be arbitrarily combined; in addition, the embodiments can be arbitrarily combined, for example, some or all of the steps of different embodiments can be arbitrarily combined, and a certain embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.
[0079] In each embodiment of the present disclosure, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form a new embodiment based on their internal logical relationships.
[0080] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0081] In the embodiments of the present disclosure, unless otherwise specified, elements expressed in the singular form, such as "a", "an", "the", "above", "said", "aforementioned", "this", etc., may mean "one and only one", or "one or more", "at least one", etc. For example, when using articles such as "a", "an", "the" in English in translation, the noun after the article may be understood as a singular expression or a plural expression.
[0082] In some embodiments, terms such as "in response to ...", "in response to determining ...", "in the case of ...", "at the time of ...", "when ...", "if ...", "if ...", etc. can be used interchangeably.
[0083] In some embodiments, terms such as "greater than", "greater than or equal to", "not less than", "more than", "more than or equal to", "not less than", "higher than", "higher than or equal to", "not lower than", and "above" can be replaced with each other, and terms such as "less than", "less than or equal to", "not greater than", "less than", "less than or equal to", "no more than", "lower than", "lower than or equal to", "not higher than", and "below" can be replaced with each other.
[0084] The prefixes such as "first" and "second" in the embodiments of the present disclosure are only for distinguishing different description objects and do not constitute any restrictions on the position, order, priority, quantity or content of the description objects. For the statement of the description objects, please refer to the description in the context of the claims or embodiments, and no unnecessary restrictions should be constituted due to the use of prefixes.
[0085] In the embodiments of the present disclosure, “plurality” refers to two or more.
[0086] In the embodiments of the present disclosure, terms such as "import", "input", and "read in" can be used interchangeably.
[0087] In some embodiments, devices, etc. can be interpreted as physical or virtual, and their names are not limited to the names recorded in the embodiments. Terms such as "device", "equipment", "device", "circuit", "network element", "node", "function", "unit", "section", "system", "network", "chip", "chip system", "entity", and "subject" can be used interchangeably.
[0088] In some embodiments, the term “terminal”, “terminal device”, “user equipment (UE)”, “user terminal”, “mobile station
[0089] The terms "mobile station, MS", "mobile terminal, MT", subscriber station, mobile unit, subscriber unit, wireless unit, remote unit, mobile device, wireless device, wireless communication device, remote device, mobile subscriber station, access terminal, mobile terminal, wireless terminal, remote terminal, handset, user agent, mobile client, client and the like may be used interchangeably.
[0090] Figure 1 This is a flow chart of a method for controlling a positioning request provided by an embodiment of the present disclosure. The method can be applicable to application scenarios such as smart terminals, for example, executed by a terminal with an integrated positioning function or a processor in the terminal, or executed by other devices suitable for controlling positioning requests, and the present disclosure is not limited thereto. Figure 1 As shown, the method for controlling the positioning request includes steps 101-103.
[0091] Step 101, obtaining a first wireless beacon around a mobile device in a current scanning cycle, and obtaining a second wireless beacon around a mobile device in a calibration scanning cycle; the calibration scanning cycle is the first scanning cycle after the mobile device last switched motion states, the first wireless beacon includes at least one wireless beacon, the second wireless beacon includes at least one wireless beacon, and different wireless beacons are identification information of different types of wireless devices.
[0092] Mobile devices refer to portable electronic devices that can perform location positioning and wireless communication, including but not limited to smartphones, tablets, wearable devices, and laptops. Wireless beacons refer to the identification information of wireless signal transmitters. Wireless signal transmitters contain wireless beacons in the wireless signals they transmit. Each wireless signal transmitter has only unique corresponding identification information. Wireless beacons include but are not limited to Bluetooth, WIFI, Cell, Ultra Wide Band (UWB), Radio Frequency Identification (RFID), and Zigbee.
[0093] The wireless beacon scanning module in the mobile device scans the wireless beacons around the mobile device by calling the wireless communication chip in the mobile device for receiving and processing wireless signals. However, it should be clear that this statement is not intended to limit the method of scanning the wireless beacons around the mobile device to the above method, and it can also be achieved by other methods.
[0094] Exemplarily, switching the motion state refers to switching from a preset first motion state to a preset second motion state or from a preset second motion state to a preset first motion state. However, it should be clear that this statement is not intended to limit the switching motion state to only switching between the preset first motion state and the preset second motion state. It can also be switched between other motion states. If the mobile device starts the scanning cycle for the first time to scan the wireless beacon, since there is no switching motion state at the first startup, the first scanning cycle of the first startup scanning cycle is determined as the calibration scanning cycle; wherein, the motion state in the embodiment of the present disclosure includes but is not limited to a preset first motion state and a preset second motion state. The preset first motion state is a state in which the mobile device is within the coverage range of the same wireless beacon in at least two consecutive scanning cycles, and the preset second motion state is a state in which the mobile device is not within the coverage range of the same wireless beacon in at least two consecutive scanning cycles. Since the coverage range of the wireless beacon is limited, when the mobile device is in the preset first motion state, the displacement of the mobile device does not change much. It can be determined that the mobile device only moves within the limited coverage range of the wireless beacon, that is, the mobile device is in a small range of movement state. The small range of movement state means that the mobile device moves or is absolutely stationary in a relatively small area, and its position does not change much. For example, a user walks around the room or shifts slightly in their seat.
[0095] The wireless beacon may contain the regional attribute information of the location of the mobile device. The wireless beacon can be used as a marker of the regional attribute of the location of the mobile device, which helps to determine the attribute area of the mobile device and push the content of the relevant attribute area to the mobile device. For example, suppose a shopping mall contains multiple wireless beacons, the wireless beacon in the clothing area contains the clothing area attribute information, the wireless beacon in the food area contains the food area attribute information, and the wireless beacon in the electronic product area contains the electronic product area attribute information.
[0096] Step 102: Determine the motion state of the mobile device according to the first wireless beacon and the second wireless beacon.
[0097] In the embodiment of the present disclosure, the motion state of the mobile device can be determined according to the first wireless beacon and the second wireless beacon by determining the motion state of the mobile device according to the consistency of the first wireless beacon and the second wireless beacon, wherein the consistency of the first wireless beacon and the second wireless beacon does not mean that the wireless beacons included in the first wireless beacon are exactly the same as the wireless beacons included in the second wireless beacon, but means that before the second wireless beacon selects a preset comparison number of wireless beacons as wireless beacons to be compared in signal strength ranking, as long as the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, it is determined that the first wireless beacon is consistent with the second wireless beacon; if at least one wireless beacon in the wireless beacons to be compared does not have the same wireless beacon in the first wireless beacon, it is determined that the first wireless beacon is inconsistent with the second wireless beacon; wherein the preset comparison number is an arbitrary value, and the embodiment of the present disclosure does not limit the value of the preset comparison number.
[0098] Exemplarily, assume that the first wireless beacon contains 5 wireless beacons, namely a, b, c, d, and e, and the second wireless beacon contains 3 wireless beacons, namely a, c, and f. Among them, in the second wireless beacon, the signal strength of a is the largest, the signal strength of c is the second, and the signal strength of f is the smallest. The preset comparison number is 2, then the wireless beacons to be compared are a and c. Since a and c in the second wireless beacon exist in the first wireless beacon, it is determined that the first wireless beacon is consistent with the second wireless beacon.
[0099] In some embodiments, the difference between the signal strength of the wireless beacon to be compared in the second wireless beacon and the signal strength of the wireless beacon to be compared in the first wireless beacon cannot exceed a preset threshold. If the difference between the signal strength of at least one wireless beacon to be compared in the second wireless beacon and the signal strength of the wireless beacon identical to the wireless beacon to be compared in the first wireless beacon is greater than or equal to the preset threshold, even if the wireless beacons to be compared in the second wireless beacon all have the same wireless beacon in the first wireless beacon, it is determined that the first wireless beacon is inconsistent with the second wireless beacon; only if the wireless beacons to be compared in the second wireless beacon all have the same wireless beacon in the first wireless beacon, and the difference between the signal strength of all the wireless beacons to be compared in the second wireless beacon and the signal strength of the wireless beacon identical to the corresponding wireless beacon to be compared in the first wireless beacon is less than the preset threshold, it is determined that the first wireless beacon is consistent with the second wireless beacon; wherein the preset threshold can be any value, and the embodiment of the present disclosure does not limit the specific value of the preset threshold.
[0100] Exemplarily, assume that the wireless beacons to be compared with the second wireless beacon are a and c, where the signal strength of a in the second wireless beacon is 10, and the signal strength of c in the second wireless beacon is 8. There is a wireless beacon in the first wireless beacon that is the same as the wireless beacon to be compared, where the signal strength of a in the first wireless beacon is 8, and the signal strength of c is 5. The preset threshold is 4. Since 10-8 and 8-5 are both less than 4, it is determined that the first wireless beacon is consistent with the second wireless beacon.
[0101] If the first wireless beacon is consistent with the second wireless beacon, it is determined that the mobile device is in a preset first motion state; if the first wireless beacon is inconsistent with the second wireless beacon, it is determined that the mobile device is in a preset second motion state.
[0102] The mobile device can determine the motion state of the mobile device without using a GNSS positioning chip. The power consumption of the wireless communication chip that scans the wireless beacon is less than that of the GNSS positioning chip, which can reduce the power consumption of the mobile device.
[0103] Step 103: When the motion state meets a preset condition, control the mobile device to stop sending a positioning request.
[0104] Positioning requests include but are not limited to GNSS positioning requests, base station positioning requests and WiFi positioning requests, wherein a GNSS positioning request refers to a positioning request sent by a mobile device to a positioning satellite system for obtaining its own location information. Positioning satellite systems include but are not limited to the Beidou Navigation Satellite System (BDS), the GLONASS (GLONASS), the Global Positioning System (GPS), and the Galileo Satellite Navigation System (GSNS). When the mobile device is in a preset first motion state, the position change of the mobile device is not obvious. At this time, it is not meaningful to obtain the location information of the mobile device by sending a positioning request. By stopping sending positioning requests, the energy consumption of the mobile device can be reduced and the battery life of the mobile device can be extended.
[0105] According to the positioning request control method proposed in the present disclosure, when the motion state of the mobile device meets the preset conditions, the mobile device no longer sends a positioning request, but stops sending a positioning request, so that the GNSS positioning chip of the mobile device is in a standby state, reducing the power consumption of the GNSS positioning chip; and whether the motion state of the mobile device meets the preset conditions is determined based on the first wireless beacon around the mobile device in the current scanning cycle, and the second wireless beacon around the mobile device in the calibration scanning cycle. The power consumption of the mobile device for wireless beacon scanning is much lower than the power consumption of the GNSS positioning chip. This method can further reduce the power consumption of the mobile device. In summary, the present disclosure determines whether the motion state of the mobile device meets the preset conditions based on the wireless beacon, and controls the mobile device to stop sending positioning requests when the motion state meets the preset conditions. Compared with the prior art, the power consumption of the mobile device is greatly reduced.
[0106] In order to better understand how to determine the motion state of the mobile device according to the first wireless beacon and the second wireless beacon, Figure 2 The following further shows a flow chart of a method for controlling a positioning request proposed by the present disclosure. Figure 1 The embodiment shown further explains step 102. Figure 2 The following steps may be included:
[0107] Step 201: Determine whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon.
[0108] In practical applications, due to the high reliance of modern society on electronic products, a large number of electronic products will emit wireless beacons, such as Bluetooth devices, routers, base stations, etc. The first wireless beacon and the second wireless beacon may both contain a large number of wireless beacons. In order to improve the efficiency of determining the consistency between the first wireless beacon and the second wireless beacon, whether a preset number of wireless beacons with high signal strength rankings in the second wireless beacon exist in the first wireless beacon can be used as a criterion for determining the consistency between the first wireless beacon and the second wireless beacon.
[0109] Step 202: If the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon, it is determined that the motion state of the mobile device is a preset first motion state; the preset first motion state is a state in which the mobile device is within the coverage range of the same wireless beacon in at least two consecutive scanning cycles.
[0110] Indoors or in complex urban environments, GNSS signals may be blocked or interfered with, resulting in inaccurate positioning. Wireless beacons are usually more reliable in indoor or complex urban environments. Therefore, comparing wireless beacon sets to determine the motion state of mobile devices can be used as an effective supplementary positioning method to meet the needs of different environments.
[0111] In some embodiments, when performing the determination of whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon, it can be implemented in the following manner but not limited to: Figure 3 As shown, including:
[0112] Step 301: Determine a wireless beacon to be compared in the second wireless beacon for wireless beacon consistency comparison according to the signal strength of the wireless beacon and a preset comparison number for wireless beacon comparison.
[0113] The wireless beacon to be compared refers to at least one wireless beacon selected from the second wireless beacon for consistency comparison with the wireless beacon in the first wireless beacon. In actual applications, the wireless beacons in the second wireless beacon are screened by the signal strength of the wireless beacon and the preset comparison threshold, and the wireless beacons to be compared for consistency comparison of the wireless beacons are screened. This can reduce the number of wireless beacons for consistency comparison between the first wireless beacon and the second wireless beacon, thereby improving the efficiency of wireless beacon comparison.
[0114] Step 302: Compare the wireless beacon to be compared with the wireless beacons included in the first wireless beacon.
[0115] If the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, step 303 is executed; if at least one wireless beacon included in the wireless beacon to be compared does not have the same wireless beacon in the first wireless beacon, step 304 is executed.
[0116] Step 303: Determine whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon.
[0117] Step 304: Determine that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
[0118] Exemplarily, assuming that the second wireless beacon contains two wireless beacons, namely g and h, and the preset comparison number is 3, then g and h are both wireless beacons to be compared, and the first wireless beacon contains four wireless beacons, namely g, i, j, and k. Although the g in the second wireless beacon has the same wireless beacon in the first wireless beacon, the h in the second wireless beacon does not have the same wireless beacon in the first wireless beacon, so at least one wireless beacon contained in the wireless beacon to be compared does not have the same wireless beacon in the first wireless beacon. Therefore, it is determined that the wireless beacons contained in the first wireless beacon are inconsistent with the wireless beacons contained in the second wireless beacon.
[0119] In some embodiments, when determining the wireless beacon to be compared in the second wireless beacon for wireless beacon consistency comparison based on the signal strength of the wireless beacon and the preset comparison number for wireless beacon comparison, it can be implemented in but not limited to the following ways, such as Figure 4 As shown, including:
[0120] Step 401: Acquire the number of wireless beacons included in the second wireless beacon and the first signal strength of each wireless beacon.
[0121] Step 402: compare the beacon quantity with the preset comparison quantity.
[0122] If the number of beacons is greater than the preset comparison number, step 403 is executed; if the number of beacons is less than or equal to the preset comparison number, step 404 is executed.
[0123] Step 403: selecting the preset comparison number of wireless beacons from the second wireless beacons in descending order of the first signal strengths as the wireless beacons to be compared.
[0124] By selecting wireless beacons with high signal strength for comparison, the accuracy of the comparison can be improved. Beacons with high signal strength generally represent more stable and reliable signals, so their consistency comparison results are more reliable.
[0125] Step 404: determine all the wireless beacons included in the second wireless beacon as the wireless beacons to be compared.
[0126] Exemplarily, assuming that the second wireless beacon includes three wireless beacons and the preset comparison quantity is four, the three wireless beacons included in the second wireless beacon are all determined as wireless beacons to be compared.
[0127] Signal strengths of wireless beacons and a preset number of comparisons can help limit the comparison range of wireless beacons and avoid comparing all wireless beacons one by one, which can save computing resources and time, especially when there are a large number of wireless beacons.
[0128] In practical applications, the consistency of wireless beacons includes the consistency of signal strength of wireless beacons. After the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, it is necessary to compare the consistency between the first signal strength of the compared wireless beacon and the second signal strength of the wireless beacon to be compared, so as to determine whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon. The embodiment of the present disclosure also provides the following supplementary solution description. Figure 5 As shown, including:
[0129] Step 501: Obtain a second signal strength of a wireless beacon in the first wireless beacons that is the same as the wireless beacon to be compared.
[0130] Signal strength refers to the strength of a wireless beacon emitted by a wireless signal transmitter when received by a mobile device. Signal strength is often used to measure the quality or strength of a wireless beacon. Higher signal strength generally means better signal quality and stronger signal reception, while lower signal strength may indicate poor signal quality or signal interference. Changes in signal strength may reflect changes in the environment, such as the presence of obstacles, increased signal interference, etc. By comparing signal strengths, these environmental changes can be detected.
[0131] Step 502: Compare the first signal strength of the wireless beacon to be compared with the corresponding second signal strength.
[0132] Exemplarily, assuming that there are two wireless beacons to be compared in the second wireless beacon, namely l and m, and the same wireless beacons, namely l and m, exist in the first wireless beacon. The signal strength of l in the second wireless beacon is compared with the signal strength of l in the first wireless beacon, and the signal strength of m in the second wireless beacon is compared with the signal strength of m in the first wireless beacon.
[0133] The stability of signal strength can be used as an important basis for inferring the status of a mobile device. If the signal strength remains stable, the mobile device may be stationary or moving only within a very small range. Conversely, if the signal strength changes significantly, it may indicate that the mobile device has moved to a new location.
[0134] When the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is less than a preset threshold, step 503 is executed; when the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is greater than or equal to the preset threshold, step 504 is executed.
[0135] Step 503: Execute the determination that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon.
[0136] The preset threshold value may be any value, and the embodiment of the present disclosure does not limit the value range of the preset threshold value.
[0137] Exemplarily, assuming that the first signal strength is 10, the second signal strength is 8, and the preset threshold is 3, it is determined that the wireless beacons included in the first wireless beacon are consistent with the wireless beacons included in the second wireless beacon.
[0138] By setting a reasonable preset threshold, the misjudgment caused by signal fluctuations or random noise of wireless beacons can be reduced, and the accuracy of wireless beacon comparison can be improved.
[0139] Step 504: Determine that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
[0140] Exemplarily, assuming that the first signal strength is 11, the second signal strength is 7, and the preset threshold is 2, it is determined that the wireless beacons included in the first wireless beacon are inconsistent with the wireless beacons included in the second wireless beacon.
[0141] The difference between the first signal strength and the corresponding second signal strength being greater than or equal to the preset threshold generally means that the mobile device moves over a larger range, which helps to determine whether the mobile device has left the original location area.
[0142] In actual applications, the mobile device may be in other motion states besides the preset first motion state. In order to further understand the other motion states of the mobile device, the embodiment of the present disclosure also provides the following supplementary solution description. Figure 6 As shown, including:
[0143] Step 601: If the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon, it is determined that the motion state of the mobile device is a preset second motion state; the preset second motion state is a state in which the mobile device is not within the coverage range of the same wireless beacon in at least two consecutive scanning cycles.
[0144] Due to the limited coverage of wireless beacons, when a mobile device is in the preset second motion state, the displacement of the mobile device changes greatly, that is, the mobile device is in a large-scale mobile state. The large-scale mobile state means that the device has experienced a large position change, which exceeds the signal coverage range of the original wireless beacon or the change in reception conditions, resulting in a large difference in signal strength or loss of signal strength. Some applications may need to adjust their functions according to the motion state of the mobile device. For example, when the mobile device moves over a large range, some background services may be suspended or adjusted to save power.
[0145] Step 602: When the motion state is the preset second motion state, control the mobile device to send the positioning request.
[0146] When a mobile device moves in a large area, the positioning error may increase significantly. By sending a positioning request, you can obtain accurate positioning information of the mobile device and reduce the positioning error.
[0147] As a refinement of step 103, when the motion state satisfies a preset condition, the mobile device is controlled to stop sending the positioning request, which can be implemented in the following manner but not limited to: when the motion state is the preset first motion state, the mobile device is controlled to stop sending the positioning request. Frequent positioning requests will increase the burden on the mobile network, especially in dense user areas. By reducing unnecessary positioning requests, network pressure can be reduced and network efficiency can be improved.
[0148] In order to better understand the entire process of controlling the positioning request, the embodiment of the present disclosure also provides the following supplementary solution description: Figure 7 As shown, including:
[0149] Step 701, initialize the geo-fence function of the mobile device, obtain the initial location information of the mobile device, and store the customized geo-fence area and its boundary conditions in the mobile device.
[0150] The initial location of the mobile device is obtained through the GNSS positioning chip built into the mobile device. According to the predefined geographic fence radius and center point, this area is defined as the trigger condition, the GNSS positioning chip is started, and the movement trajectory of the mobile device is monitored in the background.
[0151] Step 702: dynamically adjust the frequency of sending positioning requests according to the distance between the mobile device and the boundary of the geo-fence.
[0152] When the mobile device is far away from the geo-fence, the frequency of sending positioning requests is reduced to reduce device power consumption; as the mobile device gradually approaches the boundary of the geo-fence, the frequency of sending positioning requests is gradually increased to improve the positioning accuracy of the mobile device and ensure timely response to the triggering events of the geo-fence.
[0153] Step 703, monitoring the motion state of the mobile device; the motion state includes a preset first motion state and a preset second motion state;
[0154] Start the wireless beacon scanning module, scan the wireless beacons around the mobile device, and record the wireless beacons; if the mobile device scans the same wireless beacon in two adjacent scanning cycles and the signal strength is stable, it is determined that the device is in a preset first motion state; if the mobile device does not scan the same wireless beacon in two adjacent scanning cycles, or the difference between the signal strengths of the scanned same wireless beacons is greater than or equal to a preset threshold, it is determined that the mobile device is in a preset second motion state; wherein, the absolute stillness in the preset first motion state can also be determined by whether the acceleration measured by the built-in accelerometer or gyroscope sensor of the mobile device is zero. If it is determined that the acceleration of the mobile device is zero, it is determined that the mobile device is in the preset first motion state.
[0155] When it is determined that the mobile device is in the preset first motion state, it means that the mobile device is active within the coverage of the same wireless beacon. In order to better understand the coverage of the wireless beacon and the coverage of the geographic fence, Figure 8 As shown, Figure 8 A display diagram of a geographic fence and a wireless beacon coverage provided by an embodiment of the present disclosure, in Figure 8 In the present embodiment, since there is still a moving distance between the coverage range of the wireless beacon and the geographic fence, the relevant triggering events of the geographic fence of the mobile device cannot be triggered. Therefore, there is no need to send a positioning request.
[0156] Step 704: When it is determined that the mobile device is in a preset first motion state, control the mobile device to stop sending positioning requests.
[0157] Step 705: When it is determined that the mobile device switches from the preset first motion state to the preset second motion state, the mobile device is resumed from sending a positioning request.
[0158] Corresponding to the above-mentioned location request control method, the present invention also provides a location request control device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0159] Fig. 9A schematic diagram of the structure of a control device 800 for a positioning request provided in an embodiment of the present disclosure, wherein the control device for a positioning request includes:
[0160] The first acquisition unit 81 is used to acquire a first wireless beacon around the mobile device in a current scanning cycle, and acquire a second wireless beacon around the mobile device in a calibration scanning cycle; the calibration scanning cycle is the first scanning cycle after the mobile device last switched the motion state, the first wireless beacon includes at least one wireless beacon, the second wireless beacon includes at least one wireless beacon, and different wireless beacons are identification information of different types of wireless devices;
[0161] A determining unit 82, configured to determine a motion state of the mobile device according to the first wireless beacon and the second wireless beacon;
[0162] The control unit 83 is used to control the mobile device to stop sending the positioning request when the motion state meets the preset condition.
[0163] According to the control device for positioning request proposed in the present disclosure, when the motion state of the mobile device meets the preset conditions, the mobile device no longer sends a positioning request, but stops sending the positioning request, so that the GNSS positioning chip of the mobile device is in a standby state, reducing the power consumption of the GNSS positioning chip; and whether the motion state of the mobile device meets the preset conditions is determined based on the first wireless beacon around the mobile device in the current scanning cycle, and the second wireless beacon around the mobile device in the calibration scanning cycle. The power consumption of the mobile device for wireless beacon scanning is much lower than the power consumption of the GNSS positioning chip. This method can further reduce the power consumption of the mobile device. In summary, the present disclosure determines whether the motion state of the mobile device meets the preset conditions based on the wireless beacon, and when the motion state meets the preset conditions, controls the mobile device to stop sending positioning requests. Compared with the prior art, the power consumption of the mobile device is greatly reduced.
[0164] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig.10 As shown, the determining unit 82 includes:
[0165] A first determination module 821, configured to determine whether a wireless beacon included in the first wireless beacon is consistent with a wireless beacon included in the second wireless beacon;
[0166] The second determination module 822 is used to determine that the motion state of the mobile device is a preset first motion state when the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon; the preset first motion state is a state in which the mobile device is within the coverage range of the same wireless beacon in at least two consecutive scanning cycles.
[0167] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig.10 As shown, the first determining module 821 is further used for:
[0168] Determine a wireless beacon to be compared in the second wireless beacon for wireless beacon consistency comparison according to the signal strength of the wireless beacon and a preset comparison number for wireless beacon comparison;
[0169] Comparing the wireless beacon to be compared with the wireless beacons included in the first wireless beacon;
[0170] When the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon;
[0171] When at least one wireless beacon included in the wireless beacon to be compared does not have the same wireless beacon in the first wireless beacon, it is determined that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
[0172] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig.10 As shown, the first determining module 821 is further used for:
[0173] Acquire the number of wireless beacons included in the second wireless beacon and the first signal strength of each wireless beacon;
[0174] When the number of beacons is greater than the preset comparison number, selecting the preset comparison number of wireless beacons from the second wireless beacons in descending order of the first signal strengths as the wireless beacons to be compared;
[0175] When the number of beacons is less than or equal to the preset comparison number, all the wireless beacons included in the second wireless beacon are determined as the wireless beacons to be compared.
[0176] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig.10 As shown, the device also includes:
[0177] A second acquisition unit 84 is used to acquire a second signal strength of the wireless beacon that is the same as the wireless beacon to be compared in the first wireless beacon after determining that the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon;
[0178] A comparison unit 85, configured to compare the first signal strength of the wireless beacon to be compared with the corresponding second signal strength;
[0179] An execution unit 86, configured to, when a difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is less than a preset threshold, execute the step of determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon;
[0180] The first determination module 821 is also used to determine that the wireless beacons included in the first wireless beacon are inconsistent with the wireless beacons included in the second wireless beacon when the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is greater than or equal to the preset threshold.
[0181] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig.10 As shown, the device also includes:
[0182] The determining unit 82 is further configured to, when the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon, determine that the motion state of the mobile device is a preset second motion state; the preset second motion state is a state in which the mobile device is not within the coverage range of the same wireless beacon in at least two consecutive scanning cycles;
[0183] The control unit 83 is further configured to control the mobile device to send the positioning request when the motion state is the preset second motion state.
[0184] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig.10 As shown, the control unit 83 is also used for:
[0185] When the motion state is the preset first motion state, the mobile device is controlled to stop sending the positioning request.
[0186] Since the device provided in the embodiment of the present disclosure corresponds to the methods provided in the above-mentioned embodiments, the implementation of the method is also applicable to the device provided in the embodiment and will not be described in detail in this embodiment.
[0187] In the embodiments provided in the present application, the methods and devices provided in the embodiments of the present application are introduced. In order to implement the functions in the methods provided in the embodiments of the present application, the electronic device may include a hardware structure and a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. A function of the functions may be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.
[0188] Fig.11 1 is a block diagram of an electronic device 900 for implementing the above-mentioned positioning request control method according to an exemplary embodiment. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0189] Reference Fig.11 , the electronic 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 .
[0190] The processing component 902 generally controls the overall operation of the electronic 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.
[0191] The memory 904 is configured to store various types of data to support operations on the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic 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 static random access memory (SRAM), electrically erasable programmable read-only memory (EEP ROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0192] The power supply component 906 provides power to the various components of the electronic 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 electronic device 900.
[0193] The multimedia component 908 includes a screen that provides an output interface between the electronic 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 electronic 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 rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0194] 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 electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice 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.
[0195] 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.
[0196] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the electronic device 900. For example, the sensor assembly 914 can detect the open / closed state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900, and the sensor assembly 914 can also detect the position change of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic 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.
[0197] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (NewRadio) 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.
[0198] In an exemplary embodiment, the electronic device 900 may 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 methods.
[0199] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the above instructions can be executed by the processor 920 of the electronic device 900 to perform the above method for image processing. For example, the non-transitory computer-readable 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.
[0200] The embodiments of the present disclosure further provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the above embodiments of the present disclosure.
[0201] For electronic devices that may be chips or chip systems, see Fig.12 Schematic diagram of the chip structure shown. Fig.12 The chip shown includes a processor 1001 and an interface 1002. The number of the processor 1001 may be one or more, and the number of the interface 1002 may be multiple.
[0202] Optionally, the chip further includes a memory 1003, and the memory 1003 is used to store necessary computer programs and data.
[0203] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.
[0204] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. 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.
[0205] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0206] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0207] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (control method), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0208] It should be understood that the various parts of the embodiments of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0209] A person of ordinary skill in the art may understand that all or part of the steps of the method for implementing the above-mentioned embodiment may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0210] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0211] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for controlling a positioning request, characterized in that: The method comprises: Acquire a first wireless beacon around the mobile device in a current scanning cycle, and acquire a second wireless beacon around the mobile device in a calibration scanning cycle; the calibration scanning cycle is the first scanning cycle after the mobile device last switched the motion state, the first wireless beacon includes at least one wireless beacon, the second wireless beacon includes at least one wireless beacon, and different wireless beacons are identification information of different types of wireless devices; Determining a motion state of the mobile device according to the first wireless beacon and the second wireless beacon; When the motion state meets a preset condition, the mobile device is controlled to stop sending a positioning request.
2. The method according to claim 1, characterized in that The determining, according to the first wireless beacon and the second wireless beacon, the motion state of the mobile device comprises: Determining whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon; If the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon, it is determined that the motion state of the mobile device is a preset first motion state; the preset first motion state is a state in which the mobile device is within the coverage range of the same wireless beacon in at least two consecutive scanning cycles.
3. The method according to claim 2, characterized in that The determining whether the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon comprises: Determine a wireless beacon to be compared in the second wireless beacon for wireless beacon consistency comparison according to the signal strength of the wireless beacon and a preset comparison number for wireless beacon comparison; Comparing the wireless beacon to be compared with the wireless beacons included in the first wireless beacon; If the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon; If at least one wireless beacon included in the wireless beacon to be compared does not exist in the first wireless beacon as the same wireless beacon, it is determined that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
4. The method according to claim 3, characterized in that: The determining, according to the signal strength of the wireless beacon and the preset comparison number for performing the wireless beacon comparison, the wireless beacon to be compared in the second wireless beacon for performing the wireless beacon consistency comparison comprises: Acquire the number of wireless beacons included in the second wireless beacon and the first signal strength of each wireless beacon; If the number of beacons is greater than the preset comparison number, selecting the preset comparison number of wireless beacons from the second wireless beacons in descending order of the first signal strengths as the wireless beacons to be compared; If the number of beacons is less than or equal to the preset comparison number, all the wireless beacons included in the second wireless beacon are determined as the wireless beacons to be compared.
5. The method according to claim 3, characterized in that: After the wireless beacons to be compared all have the same wireless beacon in the first wireless beacon, the method further includes: Acquire a second signal strength of a wireless beacon in the first wireless beacons that is the same as the wireless beacon to be compared; Comparing the first signal strength of the wireless beacon to be compared with the corresponding second signal strength; In a case where the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is less than a preset threshold, performing the step of determining that the wireless beacon included in the first wireless beacon is consistent with the wireless beacon included in the second wireless beacon; When the difference between the first signal strength of the wireless beacon to be compared and the corresponding second signal strength is greater than or equal to the preset threshold, it is determined that the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon.
6. The method according to any one of claims 2 to 5, characterized in that: The method further comprises: If the wireless beacon included in the first wireless beacon is inconsistent with the wireless beacon included in the second wireless beacon, determining that the motion state of the mobile device is a preset second motion state; the preset second motion state is a state in which the mobile device is not within the coverage range of the same wireless beacon in at least two consecutive scanning cycles; When the motion state is the preset second motion state, the mobile device is controlled to send the positioning request.
7. The method according to claim 2, characterized in that When the motion state satisfies a preset condition, controlling the mobile device to stop sending a positioning request includes: When the motion state is the preset first motion state, the mobile device is controlled to stop sending the positioning request.
8. A control device for positioning request, characterized in that: The device comprises: A first acquisition unit is used to acquire a first wireless beacon around the mobile device in a current scanning cycle, and acquire a second wireless beacon around the mobile device in a calibration scanning cycle; the calibration scanning cycle is the first scanning cycle after the mobile device last switched the motion state, the first wireless beacon includes at least one wireless beacon, the second wireless beacon includes at least one wireless beacon, and different wireless beacons are identification information of different types of wireless devices; a determining unit, configured to determine a motion state of the mobile device according to the first wireless beacon and the second wireless beacon; The control unit is used to control the mobile device to stop sending the positioning request when the motion state meets the preset condition.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.
11. A chip, characterized in that: It comprises one or more interfaces and one or more processors; the interface is used to receive a signal from a memory of an electronic device and send the signal to the processor, the signal includes a computer instruction stored in the memory, and when the processor executes the computer instruction, the electronic device executes the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Wireless sensor network target location method and system used for online estimation of motion states
CN103200518A
Method and system for reducing power consumption of positioning mobile equipment
CN106102005A
Mobile terminal based positioning method and mobile terminal
CN107613552A
Intelligent positioning method, mobile terminal and computer readable storage medium
CN109286891A
Electronic beacon for a localization system
CN109964515A