Electronic device with gravity sensor assisted positioning

By using gravity sensors in indoor positioning tags to decide whether to transmit wireless signals and adjust the transmission frequency, the problems of insufficient positioning accuracy and high power consumption in the existing technology are solved, and more efficient indoor positioning and network management are achieved.

CN114295131BActive Publication Date: 2024-10-08QUANTA COMPUTER INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011169383.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-07
Filing Date
2020-10-28
Publication Date
2024-10-08
Estimated Expiration
2040-10-28

AI Technical Summary

Technical Problem

Existing indoor positioning systems have deficiencies in improving positioning accuracy and saving power, and are difficult to effectively reduce network traffic congestion.

Method used

Introducing a gravity sensor into the indoor positioning tag determines whether to transmit wireless signals based on the magnitude of acceleration, direction of acceleration, and duration of acceleration changes, and dynamically adjusts the transmission interval frequency of wireless signals to optimize signal transmission and power usage.

Benefits of technology

It improves indoor positioning accuracy, saves radio resources and battery power, and reduces the risk of network traffic congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114295131B_ABST
    Figure CN114295131B_ABST
Patent Text Reader

Abstract

An electronic device includes an indoor positioning tag and an indoor locator. The indoor positioning tag includes a gravity sensor. The indoor positioning tag determines whether to start transmitting a wireless signal and dynamically adjusts the transmission interval frequency of the wireless signal according to the acceleration magnitude, acceleration direction, and duration of acceleration change detected by the gravity sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an electronic device, in particular to an electronic device with gravity sensor auxiliary positioning. Background Art

[0002] In the application of indoor positioning, the indoor positioning wireless tag continuously transmits the wireless signal through its own wireless signal transmitter, and the indoor positioning wireless receiver receives it. The indoor positioning wireless receiver transmits the data contained in the received wireless signal back to the back-end positioning engine server to calculate the position. Generally speaking, the above-mentioned indoor positioning system usually only focuses on completing two things, namely signal acquisition and algorithm calculation.

[0003] However, different algorithms have their own advantages and disadvantages, blind spots and unavoidable limitations, and it is difficult to be perfect. Therefore, how to add systematic auxiliary functions to indoor positioning systems to enhance positioning services has become an important issue. Summary of the invention

[0004] An electronic device according to an embodiment of the present invention includes an indoor positioning tag and an indoor locator. The indoor positioning tag includes a gravity sensor. The indoor positioning tag determines whether to start transmitting a wireless signal and dynamically adjusts the transmission interval frequency of the wireless signal based on the acceleration magnitude, acceleration direction, and duration of acceleration change detected by the gravity sensor. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 FIG. 4 is a schematic diagram of an indoor positioning system according to an embodiment of the present invention.

[0006] Figure 2A For the embodiment of the present invention Figure 1 Flowchart of an indoor positioning tag determining whether to transmit a wireless signal.

[0007] Figure 2B For the embodiment of the present invention Figure 1 Flowchart of an indoor positioning tag determining whether to transmit a wireless signal.

[0008] Figure 3 For the embodiment of the present invention Figure 1 Flowchart of an indoor positioning tag dynamically adjusting the transmission interval frequency of wireless signals.

[0009] Explanation of symbols

[0010] 100: Electronic devices

[0011] 102,102-2: Indoor positioning tag

[0012] 104,104-n: Indoor locator

[0013] 106: Positioning Engine Server

[0014] 110: Gravity sensor

[0015] 112: Wireless signal transmitter

[0016] S200, S202, S204, S206: Steps

[0017] S210, S212, S214, S216: Steps

[0018] ΔA,Δa: threshold

[0019] Δt: Second period

[0020] Δtw: first period

[0021] S300, S302, S304, S306, S308: Steps

[0022] S310, S312, S314, S316: Steps

[0023] fi: preset interval frequency DETAILED DESCRIPTION

[0024] The present invention is described with reference to the accompanying drawings, in which the same reference numerals throughout the drawings indicate similar or identical elements. The above drawings are not depicted according to the actual scale, and they only provide an explanation of the present invention. Some embodiments of the invention are described below as references for illustrated exemplary applications. This means that many specific details, relationships and methods are described to provide a complete understanding of this invention. In any case, those skilled in the art will recognize that this invention can still be implemented without one or more specific details or in other ways. For other examples, well-known structures or operations are not listed in detail to avoid confusion with the present invention. The present invention is not limited to the order of the actions or events described, such as some actions may occur in different orders or simultaneously with other actions or events. In addition, not all described actions or events need to be performed in the same method as the existing invention.

[0025] Figure 1 FIG. 1 is a schematic diagram of an indoor positioning system 100 according to an embodiment of the present invention. Figure 1As shown, the indoor positioning system 100 includes a plurality of indoor positioning tags 102, 102-2, a plurality of indoor locators 104, ..., 104-n, and a positioning engine server 106. In some embodiments, the indoor positioning tags 102, 102-2 can be set on a user device, for example, they can be built into a smart mobile device worn by the user, or in an identification card. As the user moves, the indoor positioning tags 102, 102-2 continue to periodically transmit wireless signals to the indoor locators 102, 102-2 set at different locations under certain specific conditions. Each indoor positioning tag 102, 102-2, taking the indoor positioning tag 102 as an example, has a gravity sensor 110 and a wireless signal transmitter 112. In some embodiments, the wireless signal transmitter 112 is used to periodically transmit Bluetooth beacons under certain specific conditions. In some embodiments, the indoor positioning tag 102 determines whether to start transmitting wireless signals and dynamically adjusts the transmission interval frequency of the wireless signals according to the acceleration magnitude, acceleration direction, and duration of acceleration change of the user detected by the gravity sensor 110. The wireless signal (such as a Bluetooth beacon) carries the information of the acceleration magnitude, acceleration direction, and duration of acceleration change of the user (the indoor positioning tag 102 of the smart mobile device).

[0026] In some embodiments, the indoor locators 104, ..., 104-n can be set at different locations indoors (for example, in corridors, corners of aisles, stairs, or rooms). In general, each indoor locator 104, ..., 104-n has an array antenna for receiving wireless signals emitted by indoor positioning tags 102, 102-2. Taking the indoor locator 104 as an example, the indoor locator 104 receives wireless signals from indoor positioning tags 102, 102-2, and determines whether the indoor positioning tags 102, 102-2 are stationary or moving based on the acceleration magnitude, acceleration direction, and duration of acceleration change contained in the wireless signal. In some embodiments, the indoor locator 104 further calculates the arrival angle of each indoor positioning tag 102, 102-2 based on the receiving strength and receiving phase of the received wireless signal, and transmits the arrival angle information to the positioning engine server. The positioning engine system 106 calculates and determines the position of each indoor positioning tag 102, 102-2 according to the received arrival angle information, and finally completes the positioning of the indoor positioning tags 102, 102-2.

[0027] The indoor positioning tag 102 of the electronic device 100 of the present invention can be Figure 2A Steps S200 to S206 and Figure 2BSteps S210 to S216 of the present invention can alleviate network traffic congestion. The indoor positioning tag 102 of the electronic device 100 of the present invention can be Figure 3 Steps S300 to S316 dynamically adjust the transmission interval frequency.

[0028] Figure 2A For the embodiment of the present invention Figure 1 Flow chart of the indoor positioning tag 102 determining whether to transmit a wireless signal. Figure 2A As shown, the indoor positioning tag 102 is preset in the initial state not to transmit a wireless signal containing information about its own acceleration magnitude, acceleration direction, and duration of acceleration change to the indoor locator 104 (step S200). Next, in step S202, the indoor positioning tag 102 determines whether to transmit a start wireless signal based on whether the acceleration magnitude detected by its own gravity sensor 110 is greater than a threshold value ΔA. For example, when the acceleration magnitude is greater than the threshold value ΔA (i.e., "yes" in step S202), the indoor positioning tag 102 starts to transmit a wireless signal to the indoor locator 104 (step S204). When the acceleration magnitude is less than or equal to the threshold value ΔA (i.e., "no" in step S202), the indoor positioning tag 102 still does not transmit a wireless signal to the indoor locator 104 (i.e., returns to step S200).

[0029] Next, the indoor positioning tag 102 determines whether it remains stationary within a first period Δtw based on the acceleration information provided by the gravity sensor 110, and decides whether to transmit the wireless signal again based on the above judgment result. For example, when the indoor positioning tag 102 remains stationary within the first period Δtw (i.e., "Yes" in step S206), the indoor positioning tag 102 stops transmitting the wireless signal (returns to step S200) to save the battery power consumption of the indoor positioning tag 102. When the indoor positioning tag 102 does not remain stationary within the first period Δtw (i.e., "No" in step S206), the indoor positioning tag 102 continues to transmit the wireless signal (returns to step S204). In some embodiments, the indoor positioning tag 102 executes Figure 2A The flowchart to decide when to send a report (even trigger report) is called the general mode.

[0030] In a specific embodiment, the determination of whether the acceleration magnitude is stationary can be set within an acceptable range of variation. For example, if the acceleration magnitude changes within 5%, it can be considered stationary.

[0031] Figure 2B For the embodiment of the present invention Figure 1 Flowchart of indoor positioning tags determining whether to transmit wireless signals. Figure 2BAs shown, the indoor positioning tag 102 is preset not to transmit a wireless signal containing information about its own acceleration magnitude, acceleration direction, and duration of acceleration change to the indoor locator 104 in the initial state (step S210). Next, in step S212, the indoor positioning tag 102 determines whether to transmit a start wireless signal based on the acceleration magnitude, acceleration direction, and duration of acceleration change detected by its own gravity sensor 110. For example, when the acceleration direction remains the same, and the acceleration magnitude is greater than a threshold value Δa, and the duration of the acceleration magnitude greater than the threshold value Δa reaches a second period Δt (i.e., "yes" in step S212), the indoor positioning tag 102 starts transmitting a wireless signal to the indoor locator 104 (step S214). When the acceleration direction does not remain consistent, or the acceleration magnitude is less than or equal to the threshold Δa, or the duration of the acceleration magnitude being greater than the threshold Δa does not reach the second period Δt (i.e., "No" in step S212), the indoor positioning tag 102 does not transmit a wireless signal to the indoor locator 104 (return to step S210).

[0032] Next, the indoor positioning tag 102 determines whether it remains stationary within the first time period Δtw based on the acceleration information provided by the gravity sensor 110, and decides whether to transmit wireless signals based on the above judgment result. For example, when the indoor positioning tag 102 remains stationary within the first time period Δtw (that is, "Yes" in step S216), the indoor positioning tag 102 stops transmitting wireless signals (returns to step S210) to save battery power consumption of the indoor positioning tag 102. When the indoor positioning tag 102 does not remain stationary within the first time period Δtw (that is, "No" in step S216), the indoor positioning tag 102 continues to transmit wireless signals (returns to step S214). In some embodiments, the indoor positioning tag 102 executes Figure 2B The flow chart to decide when to send a report (even trigger report) is called the map fence application mode.

[0033] In some embodiments, Figure 1 The indoor positioning tag 102 can simultaneously execute Figure 2A The general pattern and Figure 2B The map fence application mode is used to send wireless signals to the indoor locator 104 more frequently. In other words, when the indoor positioning tag 102 detects that its acceleration information reaches one of the conditions of step S202 or step S212, it will start to transmit wireless signals to the indoor locator 104. The indoor positioning tag 102 also executes Figure 2A The general pattern and Figure 2B The operation mode of the map fence application mode can be called the hybrid application mode.

[0034] Figure 1After the indoor positioning tag 102 starts to send wireless signals to the indoor locator 104, the indoor positioning tag 102 can dynamically adjust the transmission interval frequency of the wireless signal according to the acceleration magnitude, acceleration direction, and duration of acceleration change detected by the gravity sensor 110. Figure 3 For the embodiment of the present invention Figure 1 Flowchart of an indoor positioning tag dynamically adjusting the transmission interval frequency of a wireless signal. In some embodiments, the indoor positioning tag 102 sends a wireless signal to the indoor locator 104 at a preset interval frequency (fi) (step S300). Next, the indoor positioning tag 102 determines whether the magnitude of acceleration from the gravity sensor 110 (within an observation period) increases linearly and the direction of acceleration remains the same (step S302). When the indoor positioning tag 102 determines that the magnitude of acceleration increases linearly and the direction of acceleration remains the same (i.e., "yes" in step S302), the indoor positioning tag 102 significantly increases the transmission interval frequency (step S304), for example, by increasing the transmission interval frequency from the preset interval frequency f. i Increase to a first frequency (fi+2*Δf). Wherein, Δf is the gradient increase value of the transmission interval frequency. In other words, when the condition of step S302 is met, it means that the user (indoor positioning tag 102) moves faster and faster in the spatial coordinates, so the indoor positioning tag 102 must correspondingly increase the transmission interval frequency to accurately calculate the positioning. When the indoor positioning tag 102 determines that the acceleration size is not increasing linearly, or the acceleration direction is inconsistent, the indoor positioning tag 102 executes the subsequent step S306 (that is, "No" in step S302).

[0035] Afterwards, the indoor positioning tag 102 determines whether the acceleration magnitude from the gravity sensor 110 (within an observation period) increases linearly and the acceleration direction is inconsistent (step S306). When the indoor positioning tag 102 determines that the acceleration magnitude increases linearly and the acceleration direction is inconsistent (i.e., "yes" in step S306), the indoor positioning tag 102 slightly increases the transmission interval frequency (step S308), for example, by increasing the transmission interval frequency from the preset interval frequency f to the preset interval frequency f. i Increase to a second frequency (fi+Δf). In some embodiments, the first frequency (fi+2*Δf) in step S304 is greater than the second frequency (fi+Δf) in step S308. In other words, when the condition of step S306 is met, it means that the user (indoor positioning tag 102) moves irregularly in the spatial coordinates, so the indoor positioning tag 102 can correspondingly increase the transmission interval frequency slightly. When the indoor positioning tag 102 determines that the acceleration size is not increasing linearly, or the acceleration direction remains the same, the indoor positioning tag 102 executes the subsequent step S310 (i.e., "No" in step S306).

[0036] Next, the indoor positioning tag 102 determines whether the acceleration from the gravity sensor 110 decreases linearly and the acceleration direction remains the same (step S310). When the indoor positioning tag 102 determines that the acceleration decreases linearly and the acceleration direction remains the same (i.e., "yes" in step S310), the indoor positioning tag 102 significantly reduces the transmission interval frequency (step S312), for example, the transmission interval frequency is reduced from the preset interval frequency fi to a third frequency (fi-2*Δf). Wherein, -Δf is the gradient reduction value of the transmission interval frequency. In other words, when the conditions of step S310 are met, the user (indoor positioning tag 102) moves slower and slower in the spatial coordinates, so the indoor positioning tag 102 must correspondingly reduce the transmission interval frequency to achieve energy saving and power saving functions. When the indoor positioning tag 102 determines that the acceleration does not decrease linearly, or the acceleration direction is inconsistent, the indoor positioning tag 102 executes the subsequent step S316 (i.e., "no" in step S310).

[0037] Afterwards, the indoor positioning tag 102 determines whether the acceleration from the gravity sensor 110 decreases linearly and the acceleration direction is inconsistent (step S314). When the indoor positioning tag 102 determines that the acceleration decreases linearly and the acceleration direction is inconsistent (i.e., "yes" in step S314), the indoor positioning tag 102 slightly reduces the transmission interval frequency (step S316), for example, by reducing the transmission interval frequency from the preset interval frequency f to the preset interval frequency f. i Downgrade to a fourth frequency (fi-Δf). In some embodiments, the fourth frequency (fi-Δf) in step S316 is greater than the third frequency (fi-2*Δf) in step S312. In other words, when the condition of step S314 is met, it means that the movement speed of the user (indoor positioning tag 102) in the spatial coordinates is also slowing down, but the movement direction is difficult to predict, so the transmission interval frequency can be correspondingly slightly lowered. In some embodiments, the indoor positioning tag 102 determines that the acceleration size is not linearly decreasing, or the acceleration direction remains the same (that is, "No" in step S314), then the indoor positioning tag 102 continues to transmit wireless signals to the indoor locator 104 at the preset interval frequency fi.

[0038] In a specific embodiment, when the condition of step S302 is met and step S304 is executed, the indoor positioning tag 102 further transmits a first flag (e.g., a frequency-significantly-increased flag) to the indoor positioning device 104 through the transmitted wireless signal. After receiving the first flag, the indoor positioning device 104 also correspondingly significantly increases the receiving frequency and positioning frequency of the wireless signal it receives (e.g., changes the receiving frequency and positioning frequency to the first frequency). When the condition of step S306 is met and step S308 is executed, the indoor positioning tag 102 also transmits a second flag (e.g., a frequency-significantly-increased flag) to the indoor positioning device 104 through the transmitted wireless signal. After receiving the second flag, the indoor positioning device 104 also correspondingly slightly increases the receiving frequency and positioning frequency of the wireless signal it receives (e.g., changes the receiving frequency and positioning frequency to the second frequency).

[0039] Similarly, when the condition of step S310 is met and step S312 is executed, the indoor positioning tag 102 further transmits a third flag (e.g., a frequency-significantly reduced flag) to the indoor positioning device 104 through the transmitted wireless signal. After receiving the third flag, the indoor positioning device 104 also correspondingly significantly reduces the receiving frequency and positioning frequency of the wireless signal it receives (e.g., changes the receiving frequency and positioning frequency to the third frequency). When the condition of step S314 is met and step S316 is executed, the indoor positioning tag 102 also transmits a fourth flag (e.g., a frequency-significantly reduced flag) to the indoor positioning device 104 through the transmitted wireless signal. After receiving the fourth flag, the indoor positioning device 104 also correspondingly slightly reduces the receiving frequency and positioning frequency of the wireless signal it receives (e.g., changes the receiving frequency and positioning frequency to the fourth frequency).

[0040] Figure 1The indoor locator 104 can determine whether the indoor positioning tag 102 is in a stationary state or a moving state based on the acceleration magnitude, acceleration direction, and duration of acceleration change of the indoor positioning tag 102. In some embodiments, the indoor locator 104 can directly determine whether the indoor positioning tag 102 is in a stationary state or a moving state based on whether the acceleration magnitude of the indoor positioning tag 102 is zero. For example, when the acceleration magnitude is not zero, the indoor positioning tag 102 is determined to be in a moving state. On the contrary, when the acceleration magnitude is zero, the indoor positioning tag 102 is determined to be in a stationary state. In some embodiments, the indoor locator 104 can also determine whether the indoor positioning tag 102 is in a stationary state or a moving state based on whether the acceleration magnitude of the indoor positioning tag 102 is greater than a threshold value ΔA2, and whether the duration greater than the threshold value ΔA2 is greater than a period Δt2. For example, when the acceleration magnitude is greater than the threshold value ΔA2, and the duration greater than the threshold value ΔA2 is greater than the period Δt2, the indoor locator 104 determines that the indoor positioning tag 102 is in a moving state. On the contrary, when the magnitude of the acceleration is less than or equal to the threshold value ΔA2, or the duration of the acceleration being greater than the threshold value ΔA2 is less than or equal to the time period Δt2, the indoor locator 104 determines that the indoor positioning tag 102 is in a stationary state.

[0041] In some embodiments, the indoor locator 104 determines whether (the movement or displacement of the indoor positioning tag 102) is reasonable based on a pitch value, a roll value, and a yaw value calculated through the acceleration information of the indoor positioning tag 102 (for example, including the acceleration magnitude, the acceleration direction, and the duration of the acceleration change). When the indoor locator 104 determines that the movement of the indoor positioning tag 102 is reasonable, the indoor locator 104 determines that the indoor positioning tag 102 is in a moving state. When the indoor locator 104 determines that the movement of the indoor positioning tag 102 is unreasonable, the indoor locator 104 determines that the indoor positioning tag 102 is in a stationary state. For example, assume that the indoor positioning tag 102 is set on a large shelf (which cannot be easily moved). When the pitch value, roll value, and yaw value calculated by the indoor locator 104 according to the acceleration information of the indoor positioning tag 102 are valid values, such as non-zero, since the indoor positioning tag 102 is set on a large shelf, the pitch value, roll value, or yaw value of the indoor positioning tag 102 is unreasonable, so the indoor locator 104 will determine that the movement of the indoor positioning tag 102 is unreasonable, and thus determine that the indoor positioning tag 102 is in a stationary state. In some embodiments, when the indoor locator 104 determines that the movement of the indoor positioning tag 102 is unreasonable, the indoor locator 104 can directly ignore the acceleration information of the current indoor positioning tag 102, and wait for the acceleration information at the next time point to confirm the actual movement state of the indoor positioning tag 102.

[0042] In some embodiments, Figure 1 The indoor positioning tag 102 determines whether to perform a coordinate axis check of the gravity sensor according to the acceleration magnitude of the user (or object) detected by the gravity sensor 110 and the duration of the acceleration change. In more detail, when the acceleration magnitude of the indoor positioning tag 102 changes, and the duration of the acceleration change is greater than a period Δt3 (check condition 1), the indoor positioning tag 102 performs a coordinate axis check on the gravity sensor 110. In some embodiments, the indoor positioning tag 102 inputs the gravity raw data (raw data) output by the gravity sensor 110 (for example, the gravity sensor outputs 60 pieces of gravity raw data every minute) into a motion detection algorithm to determine whether it moves. In some embodiments, the indoor positioning tag 102 includes a processor (not shown) to execute the motion detection algorithm and determine whether it moves. The gravity raw data directly corresponds to the acceleration magnitude, acceleration direction, and duration of the acceleration change of the indoor positioning tag 102.

[0043] In some embodiments, when the indoor positioning tag 102 determines that it is moving according to a calculation result of the motion detection algorithm, and the duration of the movement reaches a period Δt4 (verification condition 2), the indoor positioning tag 102 will perform the coordinate axis verification of the gravity sensor 110. Since the indoor positioning tag 102 consumes a lot of power when performing the coordinate axis verification of the gravity sensor 110. Therefore, the indoor positioning tag 102 needs to meet the verification condition 1, or meet the verification conditions 1 and 2 at the same time, the indoor positioning tag 102 will actually perform the coordinate axis verification of the gravity sensor 110.

[0044] The electronic device 100 of the present invention can achieve the following effects: (1) improve Figure 1 The positioning accuracy of the indoor positioning device 104 or the positioning engine server 106; (2) saving Figure 1radio resources and battery power of the indoor positioning tag 102; and (3) reducing the risk of network congestion. Although the embodiments of the present invention are described above, it should be understood that what is presented above is only an example and not a limitation. Many changes to the above exemplary embodiments according to this embodiment can be implemented without violating the spirit and scope of the invention. Therefore, the breadth and scope of the present invention should not be limited by the embodiments described above. Rather, the scope of the present invention should be defined by the claims and their equivalents. Although the above invention has been illustrated and described by one or more related executions, equivalent changes and modifications will be thought of by others who are familiar with the art based on the above specifications and drawings. In addition, although a particular feature of the present invention has been demonstrated by one of the related multiple executions, the above feature may be combined with one or more other features so that there may be a need and help for any known or special application.

[0045] The professional terms used in this specification are only for the purpose of describing specific embodiments and are not intended to be used as limitations of the present invention. Unless the context clearly indicates otherwise, the singular, one, the above and the above-mentioned as used herein also include the plural. Furthermore, the words "include", "comprise", "have", "have", or their variations are either used as detailed descriptions or as claims. The above words mean to include and are equivalent to the word "include" to a certain extent. Unless there are different definitions, all the terms used in this article (including technical or scientific terms) can be generally understood by people with general skills in the technology belonging to the above invention. We should be more aware that the above words, such as those defined in commonly used dictionaries, should be interpreted as the same meaning in the context of the relevant technology. Unless explicitly defined in this article, the above words will not be interpreted as idealized or overly formal.

Claims

1. An electronic device, comprising: An indoor positioning tag is used to transmit a wireless signal; wherein the indoor positioning tag includes a gravity sensor; the indoor positioning tag determines whether to start transmitting the wireless signal and adjusts the transmission interval frequency of the wireless signal according to the acceleration magnitude, acceleration direction, and duration of acceleration change detected by the gravity sensor; the wireless signal carries information about the acceleration magnitude, acceleration direction, and duration of acceleration change of the indoor positioning tag; Among them, when the indoor positioning tag remains stationary within a first time period, the indoor positioning tag stops transmitting the wireless signal; and when the acceleration direction remains the same, the acceleration magnitude is greater than a second threshold, and the duration of the acceleration magnitude being greater than the second threshold reaches a second time period, the indoor positioning tag starts transmitting the wireless signal.

2. The electronic device as claimed in claim 1, further comprising: An indoor locator receives the wireless signal and determines whether the indoor positioning tag is in a stationary or moving state according to information about the acceleration magnitude, acceleration direction, and duration of acceleration change of the indoor positioning tag.

3. The electronic device according to claim 1, wherein: The indoor positioning tag further determines whether to perform a coordinate axis calibration of the gravity sensor according to the magnitude of the acceleration detected by the gravity sensor and the duration of the acceleration change.

4. The electronic device according to claim 1, wherein: When the acceleration magnitude is greater than a first threshold, the indoor positioning tag starts to transmit the wireless signal.

5. The electronic device as claimed in claim 1, wherein: When the magnitude of the acceleration increases linearly and the direction of the acceleration remains the same, the indoor positioning tag increases the transmission interval frequency of the wireless signal by a first amplitude; When the magnitude of the acceleration increases linearly and the directions of the acceleration are inconsistent, the indoor positioning tag increases the transmission interval frequency of the wireless signal by a second amplitude, and the first amplitude is greater than the second amplitude.

6. The electronic device as claimed in claim 1, wherein: When the magnitude of the acceleration decreases linearly and the direction of the acceleration remains the same, the indoor positioning tag reduces the transmission interval frequency of the wireless signal by a third amplitude; When the magnitude of the acceleration decreases linearly but the direction of the acceleration is inconsistent, the indoor positioning tag reduces the transmission interval frequency of the wireless signal by a fourth amplitude, and the third amplitude is greater than the fourth amplitude.

7. The electronic device as claimed in claim 2, wherein: When the acceleration magnitude is not zero, the indoor locator determines that the indoor positioning tag is in a moving state; or When the acceleration magnitude is greater than a third threshold, and the duration of the acceleration magnitude being greater than the third threshold is greater than a third period of time, the indoor locator determines that the indoor positioning tag is in a moving state.

8. The electronic device as claimed in claim 2, wherein: The indoor locator calculates a pitch value, a roll value, and a yaw value of the indoor positioning tag based on the acceleration magnitude, acceleration direction, and duration of acceleration change of the indoor positioning tag; the indoor locator determines whether the pitch value, the roll value, and the yaw value are reasonable.

9. The electronic device as claimed in claim 8, wherein: When the indoor locator determines that the indoor positioning tag is in a moving state, the indoor locator determines that the indoor positioning tag is in a moving state; When the indoor locator determines that the indoor positioning tag is unreasonable, the indoor locator determines that the indoor positioning tag is in a stationary state.