Positioning method and electronic device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-08-11
AI Technical Summary
[0003]但在实际应用中,无线信号易受环境干扰,导致RSSI的数值波动大,使得目标定位不准确
Smart Images

Figure CN122554956A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a positioning method and electronic device. Background Technology
[0002] Currently, in scenarios that are not short-range and lack numerous marker devices, wireless positioning methods can be implemented based on Received Signal Strength Indicator (RSSI). This method mainly relies on changes in the signal strength of wireless signals to determine the target's location.
[0003] However, in practical applications, wireless signals are easily affected by environmental interference, which causes large fluctuations in RSSI values, resulting in inaccurate target positioning. Summary of the Invention
[0004] In view of the above, this application provides a positioning method and an electronic device, as follows:
[0005] A positioning method, comprising:
[0006] Based on the second position, a second signal is received from the target communication device;
[0007] The transmission power of the second signal is determined based on the first signal, which is a signal received from the target communication device based on the first location; the transmission power of the first signal and the transmission power of the second signal are different.
[0008] Based on the second signal, it is determined whether the target communication device is in a direction pointing from the first position to the second position.
[0009] Optionally, in the above method, the first signal and the second signal are signals transmitted by the target communication device at different transmission powers; the first position is the position where the received signal strength indication value of the first signal received by the local communication device is within a first numerical range; the second position is the position of the local communication device after it has moved.
[0010] Determining whether the target communication device is in a direction from the first position to the second position based on the second signal includes:
[0011] If the received signal strength indication value of the second signal is greater than or equal to the first threshold, it is determined that the target communication device is in a direction from the first position to the second position;
[0012] If the received signal strength indication value of the second signal is less than the first threshold, it is determined that the target communication device is not in the direction from the first position to the second position;
[0013] The first threshold is determined based on the first numerical range.
[0014] Optionally, the above method may further include:
[0015] Obtain the test signal sent by the target communication device that the local communication device receives at the first location;
[0016] The target transmission power is determined based on the received signal strength indication value of the test signal and the test transmission power of the test signal transmitted by the target communication device.
[0017] According to the target transmission power, the local communication device is controlled to send a power adjustment command to the target communication device; the power adjustment command is used to instruct the target communication device to send the second signal to the local communication device according to the target transmission power.
[0018] Optionally, in the above method, the first signal and the second signal are reflected signals of signals transmitted by the local communication device at different transmission powers; the second position is the position of the local communication device after it has moved.
[0019] The step of determining whether the target communication device is in a direction from the first position to the second position based on the second signal includes:
[0020] Based on the first signal and the second signal, a first change state and a second change state are obtained;
[0021] Wherein, the first change state is the change state of the first signal and the second signal in terms of transmission power; the second change state is the change state of the first signal and the second signal in terms of received signal strength indication value;
[0022] Based on the first change state and the second change state, determine whether the target communication device is in a direction from the first position to the second position.
[0023] Optionally, in the above method, the first signal includes: a first direct signal transmitted by the target communication device at a first transmission power, and a first reflected signal of the transmission signal transmitted by the local communication device at a second transmission power;
[0024] The second signal includes: a second direct signal transmitted by the target communication device at a third transmission power, and a second reflected signal of the signal transmitted by the local communication device at a fourth transmission power;
[0025] Wherein, the first position is the position where the received signal strength indication value of the first direct-transmitted signal received by the local communication device is within a first numerical range; the second position is the position after the local communication device has moved.
[0026] Optionally, in the above method, determining whether the target communication device is in a direction from the first position to the second position based on the second signal includes:
[0027] A first judgment result is obtained, wherein the first judgment result indicates whether the received signal strength indication value of the second direct-transmitted signal is greater than or equal to a first threshold.
[0028] Based on the first change state and the second change state, a second judgment result is obtained, wherein the second judgment result indicates whether the target communication device is in the direction from the first position to the second position;
[0029] Wherein, the first change state is the change state of the first reflected signal and the second reflected signal in terms of transmission power; the second change state is the change state of the first reflected signal and the second reflected signal in terms of received signal strength indication value;
[0030] Based on the first judgment result and the second judgment result, it is determined whether the target communication device is in the direction from the first position to the second position.
[0031] Optionally, after determining that the target communication device is in a direction from the first position to the second position, the method further includes:
[0032] Based on the orientation of the target communication device relative to the local communication device, obtain the communication environment information between the target communication device and the local communication device;
[0033] Based on the communication environment information, the path loss parameter is adjusted; the path loss parameter is used to measure the distance between the target communication device and the local communication device.
[0034] Optionally, the above method may further include:
[0035] If the target communication device is in a direction pointing from the first position to the second position, a first prompt message is output; the first prompt message is used to indicate movement along a first direction; the first direction is the direction pointing from the first position to the second position;
[0036] If the target communication device is not in the direction from the first position to the second position, a second prompt message is output; the second prompt message is used to indicate movement along a second direction; the second direction is opposite to the first direction.
[0037] A positioning device, comprising:
[0038] The signal acquisition unit is used to receive a second signal from the target communication device based on the second position;
[0039] The transmission power of the second signal is determined based on the first signal, which is a signal received from the target communication device based on the first location; the transmission power of the first signal and the transmission power of the second signal are different.
[0040] A direction determination unit is used to determine, based on the second signal, whether the target communication device is in a direction pointing from the first position to the second position.
[0041] An electronic device, comprising:
[0042] A communication module for receiving a second signal from a target communication device based on a second location;
[0043] The transmission power of the second signal is determined based on the first signal, which is a signal received from the target communication device based on the first location; the transmission power of the first signal and the transmission power of the second signal are different.
[0044] The processor is configured to determine, based on the second signal, whether the target communication device is in a direction from the first position to the second position.
[0045] The aforementioned electronic device further includes: a prompting module, and / or a movement module, wherein:
[0046] The prompting module is configured to output a first prompt message if the target communication device is in a direction pointing from the first position to the second position; the first prompt message is used to indicate movement along a first direction; the first direction is the direction pointing from the first position to the second position; if the target communication device is not in a direction pointing from the first position to the second position, it outputs a second prompt message; the second prompt message is used to indicate movement along a second direction; the second direction is opposite to the first direction.
[0047] The mobile module is used to move the electronic device according to whether the target communication device is in a direction from the first position to the second position. Attached Figure Description
[0048] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 A flowchart illustrating a positioning method provided in an embodiment of this application;
[0050] Figure 2 This is a communication example diagram between the local communication device and the target communication device in an embodiment of this application;
[0051] Figure 3 This is an example diagram illustrating the application of this application for location tracking in mountain search and rescue scenarios;
[0052] Figure 4 This is a partial flowchart of a positioning method provided in an embodiment of this application;
[0053] Figure 5 This is another part of the flowchart of a positioning method provided in the embodiments of this application;
[0054] Figure 6 This is a schematic diagram of the structure of a positioning device provided in an embodiment of this application;
[0055] Figure 7 This is another structural schematic diagram of a positioning device provided in an embodiment of this application;
[0056] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0057] Figure 9 This is an example diagram illustrating the applicability of this application to a mountain search and rescue scenario;
[0058] Figure 10 This is an interactive diagram illustrating how a user, carrying mobile phone 1, locates mobile phone 2 by moving it in a mountain search and rescue scenario applicable to this application. Detailed Implementation
[0059] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0060] refer to Figure 1This is a flowchart illustrating the implementation of a positioning method provided in an embodiment of this application. This method can be applied to local communication devices, i.e., devices that need to locate surrounding target communication devices. Figure 2 As shown, the local communication device can be mobile phone 1, and the target communication device can be mobile phone 2. The user carrying mobile phone 1 needs to locate the user carrying mobile phone 2. The technical solution in this embodiment is mainly used to improve the accuracy of device positioning.
[0061] Specifically, the method in this embodiment may include the following steps:
[0062] Step 101: Based on the second location, receive the second signal from the target communication device.
[0063] The transmission power of the second signal is determined based on the first signal. The first signal is a signal received from the target communication device at the first location; the transmission power of the first signal is different from the transmission power of the second signal.
[0064] It should be noted that the first location can be the initial location where the local communication device (such as mobile phone 1) initiates a location search operation, such as... Figure 3 At position A, the local communication device receives a first signal from the target communication device (such as mobile phone 2). The second position can be the new location reached by the local communication device after moving from the first position. The second position and the first position are different locations in the same space. There is a linear displacement path between the first position and the second position. The direction from the first position to the second position is the direction of movement of the local communication device.
[0065] In practice, the local communication device is the searching device, and the target communication device is the searched device. The target communication device can send communication signals to the local communication device, or it can reflect the communication signals sent by the local communication device. For example, the target communication device can be a terminal with radio frequency transceiver capabilities, such as a smartphone, smart bracelet, portable walkie-talkie, or IoT positioning tag. The target communication terminal can adjust its own transmission power.
[0066] It should be noted that the local communication device can determine the transmission power of the second signal based on the first signal received from the target communication device at the first position. The local communication device or the target communication device can then transmit the second signal according to the transmission power of the second signal. At the same time, a prompt message is output on the local communication device to prompt the local communication device to move. After the local communication device moves from the first position to the second position, in response to the received acquisition confirmation operation, the local communication device receives the second signal from the target communication device.
[0067] In one implementation, after activating the positioning function (opening a positioning application or system component), the local communication device locks its current coordinates as a first position and continuously scans surrounding radio frequency signals to receive a first signal from the target communication device. This could be a first signal reflected back to the local communication device after the local communication device transmits a broadcast signal to the target communication device at a transmission power of 20dBm, or a first signal transmitted to the local communication device by the target communication device at a transmission power of 20dBm. Based on this, the local communication device determines the transmission power of a second signal, such as 18dBm, based on the first signal. Therefore, after the local communication device moves from the first position to the second position, it transmits a communication signal at a transmission power of 18dBm, which is then fed back to the local communication device by the target communication device; or the target communication device transmits the second signal to the local communication device at a transmission power of 18dBm.
[0068] It should be noted that the local communication device can continuously receive multiple sets of signal frames at the first location, and after discarding signal frames with signal abrupt changes or abnormalities, retain the valid signal as the first signal. Additionally, the local communication device can continuously receive multiple sets of signal frames at the second location, and after discarding signal frames with signal abrupt changes or abnormalities, retain the valid signal as the second signal.
[0069] The second signal has a Received Signal Strength Indicator (RSSI), also known as the received signal strength. RSSI characterizes the power of the second signal and can be used to measure signal strength; its unit is dBm. A higher RSSI value indicates a stronger signal, and a lower RSSI value indicates a weaker signal. For example, an RSSI of -60 dBm indicates a high second signal strength; an RSSI of -90 dBm indicates a very low second signal strength, close to the minimum receiving sensitivity of the local communication equipment. If the RSSI is lower than this, the local communication equipment will not be able to receive the signal.
[0070] For example, such as Figure 3As shown, taking a mountain search and rescue scenario as an example, mobile phone 1 acts as the search device. The user carries mobile phone 1 and moves in the deep mountains. Mobile phone 1 is at the first position in the deep mountains, such as position A, and receives the first signal from mobile phone 2. Based on this, it determines the transmission power of the second signal, so that mobile phone 1 or mobile phone 2 sends the second signal according to the transmission power of the second signal. The prompt message "Please select any direction to move a certain distance" is output on mobile phone 1. This distance can be 1 meter or other distances. After mobile phone 1 moves from position A to the second position, such as position A′, the user clicks the "Collect Again" control on mobile phone 1 to confirm the collection, indicating that mobile phone 1 stops moving. At this time, in response to the collection confirmation operation, mobile phone 1 is at position A′ and receives the second signal from mobile phone 2.
[0071] It should be noted that the first signal and the second signal can be communication signals transmitted via Bluetooth, near-field wireless communication, or proprietary short-range radio frequency, etc.
[0072] Step 102: Based on the second signal, determine whether the target communication device is in the direction from the first position to the second position.
[0073] In one implementation, this embodiment can determine whether the target communication device is in the direction from the first position to the second position based on the respective transmission power of the second signal and the first signal, as well as the respective RSSI of the second signal and the first signal.
[0074] Specifically, in this embodiment, the location of the target communication device in the direction from the first position to the second position can be determined based on the attributes of the second signal (a signal sent by the target communication device or a signal sent by the local communication device and reflected by the target communication device). Different attributes of the second signal lead to different determination methods.
[0075] Furthermore, in this embodiment, based on the determination result of whether the target communication device is in the direction from the first position to the second position, a prompting message can be provided to the local communication device to prompt the user of the local communication device to move closer to the target communication device.
[0076] For example, such as Figure 3As shown, after receiving the second signal from mobile phone 2 at position A′, mobile phone 1 determines, according to the properties of the second signal and a corresponding determination method, whether mobile phone 2 is in the direction from position A to position A′ (which can be understood as position A′ being closer to the location of mobile phone 2 relative to position A, i.e., the distance from position A′ to mobile phone 2 is shorter than the distance from position A to mobile phone 2), or whether mobile phone 2 is not in the direction from position A to position A′ (which can be understood as position A′ being farther from the location of mobile phone 2 relative to position A, i.e., the distance from position A′ to mobile phone 2 is longer than the distance from position A to mobile phone 2). The direction from position A to position A′ includes, but is not limited to, the straight line direction from position A to position A′, and can also include directions where the angle with the straight line direction from position A to position A′ is less than 90°; similarly, not being in the direction from position A to position A′ can include directions where the angle with the straight line direction from position A to position A′ is greater than or equal to 90°. Furthermore, mobile phone 1 outputs corresponding prompt information to instruct the user to move according to the above positioning results, with the ultimate goal of moving closer to mobile phone 2.
[0077] As can be seen, in the positioning method provided in this application embodiment, the transmission power at the second position is determined in advance based on the first signal corresponding to the first position. The local communication device then receives the second signal from the target communication device based on the second position and determines the orientation of the target communication device relative to the local communication device, rather than relying on the specific value of RSSI for positioning. This can avoid the positioning deviation caused by large fluctuations in RSSI value due to various environmental interference factors. Accordingly, this embodiment can significantly improve the accuracy of device positioning.
[0078] In one implementation, the first signal and the second signal are signals transmitted by the target communication device at different transmission powers. For example, the first signal is a first direct-transmission signal transmitted by the target communication device at a first transmission power (initial transmission power), and the second signal is a second direct-transmission signal transmitted by the target communication device at a third transmission power (target transmission power).
[0079] The first position is the position where the RSSI of the first signal received by the local communication device is within a first numerical range. The second position is the position after the local communication device has moved.
[0080] Specifically, the first numerical range can be a range determined based on the minimum receiving sensitivity at which the local communication device can receive the signal at the first location. This can be understood as the critical threshold range for the local communication device, such as -85dBm to -90dBm. For example, if the RSSI value of the target communication device's transmitted signal is greater than the minimum receiving sensitivity, then the local communication device can receive the transmitted signal; if the RSSI value of the transmitted signal is less than the minimum receiving sensitivity, then the local communication device cannot receive the transmitted signal. This first numerical range matches the critical transmit power of the target communication device. The critical transmit power can be understood as the transmit power that causes the RSSI of the first signal sent by the target communication device to the local communication device to match the minimum receiving sensitivity (within the first numerical range).
[0081] In a specific implementation, the local communication device can receive a first signal sent by the target communication device at an initial transmission power at a first position. Based on the RSSI of the initial signal, a power adjustment command is generated, causing the target communication device to reduce its transmission power in response to the power adjustment command. Specifically, the transmission power can be gradually reduced according to a gradient until it is reduced to a critical transmission power, or it can be directly reduced to a critical transmission power according to the RSSI of the initial signal. Based on this, the critical transmission power is used as the transmission power of the second signal. The target communication device transmits the second signal. After the local communication device moves from the first position to the second position, it receives the second signal sent by the target communication device at the second position.
[0082] In addition, there may be situations where the local communication device cannot receive the initial signal sent by the target communication device. In this case, the local communication device can output a prompt message to prompt the local communication device to move to an area where it can receive the initial signal sent by the target communication device.
[0083] For example, with Figure 3 Taking the example shown, mobile phone 1 is at position A and receives a first signal sent by mobile phone 2. The RSSI of the first signal is -70dBm. Then, based on the RSSI of the first signal, mobile phone 1 sends a power adjustment command to mobile phone 2, instructing mobile phone 2 to reduce its transmission power to the critical transmission power, so that the RSSI of the first signal received by mobile phone 1 at position A matches the minimum receiving sensitivity of mobile phone 1, falling within the range of -85dBm to -90dBm. Afterwards, mobile phone 1 outputs a prompt message, instructing the user to move mobile phone 1. After mobile phone 1 moves to position A′, the user clicks the "Re-acquire" control on mobile phone 1, indicating that mobile phone 1 stops moving. At this time, mobile phone 1 responds to this operation by receiving a second signal from mobile phone 2.
[0084] Based on this, in step 102, when determining whether the target communication device is in the direction from the first position to the second position according to the second signal, it can be achieved in the following way:
[0085] If the RSSI of the second signal is greater than or equal to the first threshold, it indicates that the signal strength of the second signal received at the second position is higher than the reception threshold range of the local communication device and the signal attenuation is lower, indicating that the movement of the local communication device is closer to the target communication device. At this time, it can be determined that the target communication device is in the direction from the first position to the second position.
[0086] If the RSSI of the second signal is less than the first threshold, it indicates that the signal attenuation of the second signal received at the second position is severe, and the local communication device cannot receive the signal stably or cannot receive the signal at all. This indicates that the movement of the local communication device is away from the target communication device. At this time, it can be determined that the target communication device is not in the direction from the first position to the second position.
[0087] The first threshold is determined based on a first numerical range. Specifically, the first threshold can be the middle value, upper limit value, or lower limit value within the first numerical range. For example, the first threshold can be -85dBm.
[0088] For example, with Figure 3 For example, after receiving the second signal sent by mobile phone 2 according to the critical transmission power, mobile phone 1 first determines whether the RSSI of the second signal is greater than or equal to -85dBm. If the RSSI of the second signal is greater than or equal to -85dBm, then it can be determined that mobile phone 2 is in the direction from position A to position A′. If the RSSI of the second signal is less than -85dBm, then it can be determined that mobile phone 2 is not in the direction from position A to position A′.
[0089] As can be seen, in this embodiment, the first threshold is constrained by the first numerical range, and the location of the target communication device is determined by the first threshold. There is no need to manually set the judgment threshold. It can adapt to various positioning scenarios such as environmental obstruction and long-distance search, reduce the probability of misjudgment of location caused by RSSI fluctuations, and can quickly distinguish between two movement trends of approaching or moving away by a single device, thereby improving the accuracy and efficiency of positioning.
[0090] Based on the above implementation scheme, in this embodiment, the transmission power of the target communication device can be adjusted in the following way, so that the target communication device sends a second signal to the local communication device, such as... Figure 4 As shown:
[0091] Step 401: Obtain the test signal sent by the target communication device received by the local communication device at the first location.
[0092] The test signal is the first signal received by the local communication device at the first location. The target communication device transmits the first signal at the test transmission power, i.e., the initial transmission power, so that the local communication device receives the first signal, i.e., the test signal, at the first location.
[0093] Step 402: Determine the target transmission power based on the received signal strength indication value of the test signal and the test transmission power of the test signal sent by the target communication device.
[0094] Specifically, the local communication equipment can estimate the transmission power based on the RSSI of the test signal and the test transmission power used by the target communication equipment to send the test signal, thereby determining the target transmission power.
[0095] The target transmit power is the transmit power that makes the RSSI of the second signal transmitted by the target communication device match the minimum sensitivity of the local communication device receiving the signal at the first position, i.e., the critical transmit power.
[0096] In one implementation, the local communication device can infer, based on the mapping relationship between the test transmit power of the target communication device and the RSSI of the test signal sent to the local communication device at the first position, that the RSSI of the signal received by the local communication device at the first position matches the target transmit power with the lowest reception sensitivity.
[0097] For example, with Figure 3 For example, based on the RSSI of the first signal sent by mobile phone 2 and the initial transmission power used by mobile phone 2 to send the first signal, mobile phone 1 uses an artificial intelligence model to predict the critical transmission power of mobile phone 2 when mobile phone 1 is at position A, i.e., the target transmission power.
[0098] Step 403: According to the target transmission power, control the local communication equipment to send a power adjustment command to the target communication equipment.
[0099] The power adjustment command is used to instruct the target communication device to send a second signal to the local communication device according to the target transmission power.
[0100] Specifically, in this embodiment, the target transmission power and the power adjustment method can be directly included in the power adjustment command. After the local communication device sends the power adjustment command to the target communication device, the target communication device can adjust its transmission power to the target transmission power according to the power adjustment method and send a second signal to the local communication device according to the target transmission power. Based on this, after the local communication device moves to the second position, it can receive the second signal sent by the target communication device according to the target transmission power.
[0101] In one implementation, the power adjustment method can be a gradient adjustment method. Based on this, the target communication device can gradually adjust the transmission power according to the power step size in the gradient adjustment method until the transmission power is adjusted to the target transmission power.
[0102] In another implementation, the power adjustment method can be a direct adjustment method. Based on this, the target communication device can directly adjust the transmission power to the target transmission power using the direct adjustment method.
[0103] As can be seen, in this embodiment, the local communication device infers the critical transmission power (i.e., the transmission power for sending the second signal) of the target communication device based on the test signal (i.e., the first signal) received at the first location. Therefore, by issuing a dedicated power adjustment command to the target communication device, the target communication device is controlled to switch its transmission power. This allows the local communication device to receive the second signal sent by the target communication device according to the critical transmission power corresponding to the first location after moving to the second location. Thus, the location of the target communication device can be achieved through the RSSI of the second signal itself. This process avoids inaccurate positioning caused by RSSI fluctuations due to environmental obstructions and other factors.
[0104] In one implementation, the first signal and the second signal are reflected signals of signals transmitted by the local communication device at different transmission powers. The second position is the position of the local communication device after it has moved. For example, the first signal is the first reflected signal of a transmission signal broadcast by the local communication device at a second transmission power at the first position, reflected by the target communication device, and the second signal is the second reflected signal of a transmission signal broadcast by the local communication device at a fourth transmission power at the second position, reflected by the target communication device. The fourth transmission power is different from the second transmission power.
[0105] For example, with Figure 3 For example, mobile phone 1 broadcasts a signal at 20dBm at position A and receives the first reflected signal reflected back by mobile phone 2. After mobile phone 1 moves to position A′, mobile phone 1 broadcasts a signal at 18dBm at position A′ and receives the second reflected signal reflected back by mobile phone 2.
[0106] Based on this, in step 102, when determining whether the target communication device is in the direction from the first position to the second position according to the second signal, it can be achieved in the following way:
[0107] First, a first change state and a second change state are obtained based on a first signal and a second signal. Then, based on the first change state and the second change state, it is determined whether the target communication device is in a direction pointing from a first position to a second position.
[0108] The first change state refers to the change in transmit power between the first and second signals. For example, the first change state can be characterized by the power difference between the first and second signals, such as the power difference between the second transmit power of 20 dBm and the fourth transmit power of 18 dBm. The second change state refers to the change in received signal strength indication (RSSI) between the first and second signals. For example, the second change state can be characterized by the difference between the first and second signals in RSSI.
[0109] For example, with Figure 3 For example, based on the first change state, it can be determined that the second transmission power of the signal broadcast by mobile phone 1 at position A is less than the fourth transmission power of the signal broadcast by mobile phone 1 at position A′. At the same time, based on the second change state, it can be determined that the RSSI of the first reflected signal of the signal broadcast by mobile phone 1 at position A is greater than the RSSI of the second reflected signal of the signal broadcast by mobile phone 1 at position A′. Therefore, it can be determined that after mobile phone 1 moves its position, the RSSI of the signal received by increasing the transmission power actually decreases. Thus, it can be determined that the movement of mobile phone 1 is away from mobile phone 2. At this time, it can be determined that mobile phone 2 is not in the direction from position A to position A′.
[0110] For example, with Figure 3 For example, based on the first change state, it can be determined that the second transmission power of the signal broadcast by mobile phone 1 at position A is greater than the fourth transmission power of the signal broadcast by mobile phone 1 at position A′. At the same time, based on the second change state, it can be determined that the RSSI of the first reflected signal of the signal broadcast by mobile phone 1 at position A is less than the RSSI of the second reflected signal of the signal broadcast by mobile phone 1 at position A′. Therefore, it can be determined that after mobile phone 1 moves its position, the RSSI of the signal received by reducing the transmission power is actually enhanced. Thus, it can be determined that mobile phone 1 is moving closer to mobile phone 2. At this time, it can be determined that mobile phone 2 is in the direction from position A to position A′.
[0111] As can be seen, this embodiment is based on a reflective positioning architecture. It does not require the target communication device to actively broadcast signals. It only relies on the local communication device to autonomously broadcast signals and collect the signals reflected by the target communication device. Then, it can make a joint judgment through the first change state in the transmit power dimension and the second change state in the RSSI dimension. This eliminates the misjudgment problem caused by RSSI fluctuations when relying solely on RSSI. Even in scenarios where the searched device cannot actively broadcast signals, it can still quickly distinguish between two movement trends: approaching or moving away. This expands the positioning scenarios, reduces the dependence on the radio frequency broadcasting capability of the target communication device, and thus improves the reliability of positioning.
[0112] In one implementation, the first signal includes: a first direct-transmitted signal transmitted by the target communication device at a first transmission power, and a first reflected signal of a transmitted signal transmitted by the local communication device at a second transmission power. The second signal includes: a second direct-transmitted signal transmitted by the target communication device at a third transmission power, and a second reflected signal of a transmitted signal transmitted by the local communication device at a fourth transmission power. The first transmission power is different from the third transmission power, and the second transmission power is different from the fourth transmission power.
[0113] The first position is the position where the received signal strength indication value of the first direct-transmitted signal received by the local communication device is within a first numerical range; the second position is the position after the local communication device has moved.
[0114] For example, with Figure 3 For example, mobile phone 1 broadcasts a signal at position A with a second transmission power of 20dBm and receives a first reflected signal reflected back by mobile phone 2. At the same time, mobile phone 1 receives a first direct signal broadcast by mobile phone 2 at position A with a first transmission power of 20dBm. Based on the first direct signal, mobile phone 1 determines the third transmission power used by mobile phone 2 to send the second direct signal. After mobile phone 1 moves to position A', mobile phone 1 broadcasts a signal at position A' with a fourth transmission power of 18dBm and receives a second reflected signal reflected back by mobile phone 2. At the same time, mobile phone 1 receives a second direct signal broadcast by mobile phone 2 at position A' with a third transmission power of 18dBm.
[0115] Based on this, in step 102, when determining whether the target communication device is in the direction from the first position to the second position according to the second signal, it can be achieved in the following way:
[0116] First, a first judgment result is obtained, which indicates whether the RSSI of the second direct signal is greater than or equal to a first threshold. For example, if the RSSI of the second direct signal is greater than or equal to the first threshold, the first judgment result indicates that the target communication device is in the direction from the first position to the second position; if the RSSI of the second direct signal is less than the first threshold, the first judgment result indicates that the target communication device is not in the direction from the first position to the second position.
[0117] Then, based on the first change state and the second change state, a second judgment result is obtained. The second judgment result indicates whether the target communication device is in the direction from the first position to the second position. The first change state is the change state of the first reflected signal and the second reflected signal in terms of transmission power, which can be characterized by the power difference between the second transmission power and the fourth transmission power. The second change state is the change state of the first reflected signal and the second reflected signal in terms of RSSI. For example, when the change trends of the first change state and the second change state are opposite, the second judgment result indicates that the target communication device is not in the direction from the first position to the second position.
[0118] Finally, based on the first and second judgment results, it is determined whether the target communication device is in the direction from the first position to the second position.
[0119] In one implementation, the first judgment result and the second judgment result can be quantified respectively to obtain the judgment quantification scores corresponding to the first judgment result and the second judgment result. Then, according to the weights of the first judgment result and the second judgment result, the respective judgment quantification scores are weighted. Finally, the obtained fusion score is compared with the score threshold. If the fusion score is greater than or equal to the score threshold, it is determined that the target communication device is in the direction from the first position to the second position. Otherwise, it is determined that the target communication device is not in the direction from the first position to the second position.
[0120] In another implementation, this embodiment can determine the weights of the first judgment result and the second judgment result according to the communication environment of the local communication device and the target communication device, and then use the judgment result with the higher weight as the final judgment result and determine whether the target communication device is in the direction from the first position to the second position.
[0121] As can be seen, in this embodiment, the first judgment result of superimposed single RSSI threshold judgment is combined with the second judgment result of power and RSSI dual change state matching for joint judgment. By cross-validating the dual judgment results, it can not only filter out the misjudgment of orientation caused by RSSI fluctuations due to environmental interference, but also further improve the accuracy of positioning through dual cross-validation.
[0122] In one implementation, after determining in step 102 that the target communication device is in the direction from the first position to the second position, the method in this embodiment may further include the following processing: Figure 5 As shown:
[0123] Step 501: Based on the orientation of the target communication device relative to the local communication device, obtain the communication environment information between the target communication device and the local communication device.
[0124] The communication environment information can be a set of various communication parameters that characterize the attenuation characteristics of the wireless communication signal propagation link between the local communication device and the target communication device. For example, the communication environment information may include, but is not limited to: link obstruction type, ambient noise intensity, number of multipath reflections, channel interference value, signal fluctuation amplitude, thickness of spatial obstacles, etc.
[0125] Specifically, in this embodiment, various communication parameters can be collected along the propagation path toward the target communication device through methods such as radio frequency channel sampling, sensor acquisition, and RSSI variance calculation of multiple signal frames, thereby completing the packaging and storage of communication environment information.
[0126] For example, with Figure 3 For example, after determining that mobile phone 2 is in the direction from position A to position A′, mobile phone 1 can collect the current channel noise intensity, such as -105dBm, and the RSSI variance of the continuously sampled signal is 3dB. It can identify that there is a single-layer gypsum wall obstructing the communication environment between position A and position A′. Based on this, the communication environment information can include parameters such as channel noise intensity, RSSI variance, and wall obstruction indicator (the presence of a single-layer gypsum wall).
[0127] Step 502: Adjust the path loss parameters according to the communication environment information.
[0128] Among them, the path loss parameter is used to measure the distance between the target communication device and the local communication device.
[0129] It should be noted that the path loss parameter can be understood as the core correction coefficient for ranging in this embodiment. The path loss parameter characterizes the power attenuation per unit distance of the communication signal during spatial propagation, i.e., the signal attenuation rate. Since the signal attenuation rate varies under different communication environments, this embodiment can adjust the path loss parameter according to communication environment information.
[0130] Specifically, in this embodiment, the path loss parameters can be substituted into the preset wireless propagation ranging model. The wireless propagation ranging model, combined with the target transmission power, the RSSI of the second signal, etc., can calculate the straight-line distance between the local communication device and the target communication device.
[0131] For example, with Figure 3For example, the communication environment information obtained by mobile phone 1 includes: slight obstruction by a single-layer plaster wall, etc. Based on the built-in mapping table between communication environment information and path loss parameters, the corresponding path loss parameter is found to be 2.8. The default basic parameter of 2.0 is adjusted to 2.8. Based on this, the target transmission power such as 8dBm, the real-time RSSI such as -82dBm, and the adjusted path loss parameter of 2.8 are substituted into the wireless propagation ranging model. The straight-line distance between mobile phone 1 and mobile phone 2 is calculated to be approximately 2.2 meters, thus achieving accurate ranging.
[0132] For example, the communication environment information obtained by mobile phone 1 includes: open outdoor space with no obstructions, low noise, etc. Based on the built-in mapping table between communication environment information and path loss parameters, the corresponding path loss parameter is found to be 2.0. Substituting the target transmit power (e.g., 8dBm), real-time RSSI (e.g., -82dBm), and the adjusted path loss parameter 2.0 into the wireless propagation ranging model, the straight-line distance between mobile phone 1 and mobile phone 2 is calculated to be approximately 5 meters.
[0133] In one implementation, after step 102, the method in this embodiment may further include the following processing:
[0134] If the target communication device is in the direction from the first position to the second position, a first prompt message is output; the first prompt message is used to indicate movement along the first direction; the first direction is the direction from the first position to the second position.
[0135] If the target communication device is not in the direction from the first position to the second position, a second prompt message is output; the second prompt message is used to indicate movement along the second direction.
[0136] The second direction is opposite to the first direction.
[0137] In one implementation, this embodiment can output the first prompt message or the second prompt message through one or more of the following methods: voice, text, or images.
[0138] For example, in this embodiment, when it is determined that the mobile phone 2 is pointing from position A to position A′, the text prompt "Current direction is correct, please continue to move forward" can be output on the display screen of the local communication device, and "Target is ahead, move along the current direction" can be played in a loop through the speaker of the local communication device, thereby guiding the user to move forward along the first direction through multi-dimensional synchronous guidance.
[0139] For example, in this embodiment, when it is determined that the mobile phone 2 is not pointing from position A to position A′, the text prompt "Wrong direction, please turn back and change direction" can be output on the display screen of the local communication device. The message "Please return and change direction to move again" can be played repeatedly through the speaker of the local communication device, thereby guiding the user to turn back and reposition through multi-dimensional synchronous guidance.
[0140] Furthermore, in this embodiment, the first direction can be corrected based on the RSSI of the second signal corresponding to the first judgment result, the first change state corresponding to the second judgment result, and the second change state to infer a more accurate positioning direction. Specifically, in this embodiment, the above data can be input into an artificial intelligence model to train an artificial intelligence model, enabling the artificial intelligence model to correct the first direction and thus remind the local communication device of its direction of travel.
[0141] As can be seen, this embodiment adds a human-computer interaction prompt mechanism, which outputs differentiated prompt information according to whether the target communication device is in the direction from the first position to the second position, such as prompting to continue forward or turn back. Specifically, the search direction can be prompted to the user of the local communication device through intuitive voice, light, text, vibration and other means, which reduces the user's operation threshold and thus improves the search efficiency of the target communication device.
[0142] refer to Figure 6 This is a schematic diagram of a positioning device provided in an embodiment of this application. This device can be deployed in a local communication device, such as... Figure 2 As shown in the figure. The technical solution in this embodiment is mainly used to improve the accuracy of device positioning.
[0143] Specifically, the apparatus in this embodiment may include the following units:
[0144] The signal acquisition unit 601 is used to receive a second signal from the target communication device based on the second position;
[0145] The transmission power of the second signal is determined based on the first signal, which is a signal received from the target communication device based on the first location; the transmission power of the first signal and the transmission power of the second signal are different.
[0146] The direction determination unit 602 is used to determine, based on the second signal, whether the target communication device is in a direction pointing from the first position to the second position.
[0147] As can be seen, in the positioning device provided in this application embodiment, the transmission power at the second position is determined in advance based on the first signal corresponding to the first position. The local communication device then receives the second signal from the target communication device based on the second position and determines the orientation of the target communication device relative to the local communication device, rather than relying on the specific value of RSSI for positioning. This can avoid the positioning deviation caused by large fluctuations in RSSI value due to various environmental interference factors, thereby significantly improving the accuracy of device positioning.
[0148] In one implementation, the first signal and the second signal are signals transmitted by the target communication device at different transmission powers; the first position is the position where the received signal strength indication value of the first signal received by the local communication device is within a first numerical range; the second position is the position of the local communication device after it has moved.
[0149] Specifically, the direction determination unit 602 is used to: determine that the target communication device is in the direction from the first position to the second position when the received signal strength indication value of the second signal is greater than or equal to a first threshold; and determine that the target communication device is not in the direction from the first position to the second position when the received signal strength indication value of the second signal is less than the first threshold; wherein the first threshold is determined based on the first numerical range.
[0150] Specifically, in this embodiment, the signal acquisition unit 601 is further configured to: acquire a test signal received by the local communication device at the first location from the target communication device; determine a target transmission power based on the received signal strength indication value of the test signal and the test transmission power of the test signal transmitted by the target communication device; and control the local communication device to send a power adjustment command to the target communication device according to the target transmission power; the power adjustment command is used to instruct the target communication device to send the second signal to the local communication device according to the target transmission power.
[0151] In one implementation, the first signal and the second signal are reflected signals of signals transmitted by the local communication device at different transmission powers; the second position is the position of the local communication device after it has moved.
[0152] Specifically, the direction determination unit 602 is used to: obtain a first change state and a second change state based on the first signal and the second signal; wherein the first change state is the change state of the first signal and the second signal in terms of transmission power; the second change state is the change state of the first signal and the second signal in terms of received signal strength indication value; and determine whether the target communication device is in a direction from the first position to the second position based on the first change state and the second change state.
[0153] In one implementation, the first signal includes: a first direct-transmitted signal transmitted by the target communication device at a first transmission power, and a first reflected signal of a transmitted signal transmitted by the local communication device at a second transmission power; the second signal includes: a second direct-transmitted signal transmitted by the target communication device at a third transmission power, and a second reflected signal of a transmitted signal transmitted by the local communication device at a fourth transmission power; the first position is the position where the received signal strength indication value of the first direct-transmitted signal received by the local communication device is within a first numerical range; the second position is the position after the local communication device has moved.
[0154] Specifically, the direction determination unit 602 is used to: obtain a first judgment result, the first judgment result indicating whether the received signal strength indication value of the second direct-transmitted signal is greater than or equal to a first threshold; obtain a second judgment result based on a first change state and a second change state, the second judgment result indicating whether the target communication device is in the direction from the first position to the second position; the first change state is the change state of the first reflected signal and the second reflected signal in terms of transmission power; the second change state is the change state of the first reflected signal and the second reflected signal in terms of received signal strength indication value; and determine whether the target communication device is in the direction from the first position to the second position based on the first judgment result and the second judgment result.
[0155] In one implementation, the apparatus in this embodiment may further include the following units, such as... Figure 7 As shown:
[0156] The device ranging unit 603 is used to, after the direction determining unit 602 determines that the target communication device is in the direction from the first position to the second position, acquire communication environment information between the target communication device and the local communication device based on the direction of the target communication device relative to the local communication device; and adjust the path loss parameter based on the communication environment information; the path loss parameter is used to measure the distance between the target communication device and the local communication device.
[0157] In one implementation, the direction determination unit 602 is further configured to: output a first prompt message if the target communication device is in a direction pointing from the first position to the second position; the first prompt message is used to indicate movement along a first direction; the first direction is the direction pointing from the first position to the second position; if the target communication device is not in a direction pointing from the first position to the second position, output a second prompt message; the second prompt message is used to indicate movement along a second direction; the second direction is opposite to the first direction.
[0158] It should be noted that the specific implementation of each unit in this embodiment can be referred to the corresponding content above, and will not be described in detail here.
[0159] refer to Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be... Figure 2 The local communication device shown, specifically, the electronic device in this embodiment may include the following structure:
[0160] The communication module 801 is used to receive a second signal from a target communication device based on the second position;
[0161] The transmission power of the second signal is determined based on the first signal, which is a signal received from the target communication device based on the first location; the transmission power of the first signal and the transmission power of the second signal are different.
[0162] Processor 802 is configured to determine, based on the second signal, whether the target communication device is in a direction from the first position to the second position.
[0163] As can be seen, in the electronic device provided in this application embodiment, the transmission power at the second position is determined in advance based on the first signal corresponding to the first position. The local communication device then receives the second signal from the target communication device based on the second position and determines the orientation of the target communication device relative to the local communication device, rather than relying on the specific value of RSSI for positioning. This can avoid the positioning deviation caused by large fluctuations in RSSI value due to various environmental interference factors, thereby significantly improving the accuracy of device positioning.
[0164] In one implementation, the electronic device in this embodiment may further include a prompting module, which may be used to output a first prompting message if the target communication device is in a direction from the first position to the second position; the first prompting message is used to indicate movement along the first direction; the first direction is the direction from the first position to the second position; if the target communication device is not in a direction from the first position to the second position, a second prompting message is output; the second prompting message is used to indicate movement along the second direction; the second direction is opposite to the first direction.
[0165] In practice, the prompting module can be implemented using at least one of the following: a speaker, a display screen, a vibration motor, or a status indicator light. Based on this, the prompting module can output corresponding prompt information through one or more of the following methods: voice, image or text, vibration, or light.
[0166] For example, in this embodiment, when it is determined that the mobile phone 2 is pointing from position A to position A′, the text prompt "Current direction is correct, please continue to move forward" can be output on the display screen of the local communication device, and "Target is ahead, move along the current direction" can be played in a loop through the speaker of the local communication device, thereby guiding the user to move forward along the first direction through multi-dimensional synchronous guidance.
[0167] Based on the above implementation scheme, in one specific implementation method, the electronic device can be carried by the user, who moves the electronic device according to whether the target communication device is in the direction from the first position to the second position.
[0168] In another specific implementation, there may be environments where users cannot travel, such as deep mountains or dense forests, where users cannot carry electronic devices. Taking a deep mountain search and rescue scenario as an example, if the user of phone 2 loses contact in the mountains, search personnel need to use search and rescue robots such as drones or robotic dogs to locate the user of phone 2. Therefore, the electronic device in this embodiment can be a search and rescue robot. Furthermore, the electronic device can also include a mobility module, which can be used to move the electronic device according to whether the target communication device is in a direction from a first position to a second position.
[0169] In practice, the mobility module can be a tracked walking component or a limb-walking component in a search and rescue robot (i.e., an electronic device) such as a robot dog; alternatively, the mobility module can be a component such as a propeller in a search and rescue robot such as a drone. Through the mobility module, the electronic device can move autonomously without human control.
[0170] It should be noted that the electronic device, acting as a search and rescue robot, can first receive the first signal at the first position and determine the transmission power of the second signal accordingly. After the search and rescue robot moves from the first position to the second position, it receives the second signal from the target communication device at the second position and determines whether the user of the target communication device is in the direction from the first position to the second position based on the second signal. Finally, it moves autonomously according to whether the target communication device is in the direction from the first position to the second position. Then, it uses the new position after the move as the first position and re-performs the positioning process. In this way, the search and rescue robot continuously reduces the distance to the user of the trapped target communication device by autonomously moving forward and iteratively positioning itself.
[0171] For example, in a deep mountain search and rescue scenario, due to the dense vegetation and steep, rocky slopes in deep mountains, rescuers cannot carry mobile phones and find it difficult to penetrate dangerous dense forests. Therefore, in this embodiment, tracked search and rescue robots, multi-legged robots, or drones can be used as electronic devices for the search. Taking a search and rescue robot as an example, the rescuers place the robot at an open location A (i.e., the first location) at the foot of the mountain. The radio frequency module in the search and rescue robot continuously scans the surrounding signals and captures the SOS test signal (i.e., the first signal) emitted by the mobile phone 2 carried by the trapped person at a test transmission power of 20dBm. The search and rescue robot extracts the RSSI of the test signal, calculates the critical transmission power adapted to the current mountainous and forested environment, and sends a power adjustment command to the mobile phone 2, controlling the mobile phone 2 to gradually reduce its transmission power until the RSSI of the signal received by the search and rescue robot at location A reaches -90dBm (i.e., the minimum receiving sensitivity). It then locks this critical power and continuously broadcasts the second signal. Afterwards, the processor in the search and rescue robot issues a movement command, and the tracked walking component drives the entire machine to move 1 meter in a straight line into the depths of the forest. If the infrared sensor detects a tree trunk obstructing the path, it can automatically make a slight rightward detour. Upon reaching an unobstructed position A′, it automatically stops and marks this position as the second location. Based on this, the radio frequency module in the search and rescue robot automatically collects the second signal emitted by mobile phone 2 at the critical transmission power, reads the RSSI of the second signal and compares it with the first threshold to complete the orientation determination. If it is determined that mobile phone 2 is in the straight line direction from A to A′, the status indicator light in the search and rescue robot stays on green (outputting the first prompt message) and autonomously moves in the straight line direction from A to A′. At the same time, it transmits the direction prompt from A to A′ back to the handheld control console of the search and rescue personnel via a long-distance wireless link. If it is determined that the direction from A to A′ is far away from the trapped person (mobile phone 2), the status indicator light in the search and rescue robot flashes red rapidly (outputting the second prompt message) and autonomously turns around and returns to point A, switching to other directions to re-detect.
[0172] As can be seen, in this embodiment, in scenarios where people cannot reach, the target communication device can be located by an electronic device equipped with a mobile module, which can avoid personal safety hazards and improve the efficiency of locating missing persons.
[0173] by Figure 9 Taking the mountain search and rescue scenario shown below as an example, the technical solution of this application is illustrated in the following example:
[0174] refer to Figure 10 This is an interactive diagram illustrating how a user, carrying mobile phone 1, locates mobile phone 2 via movement in a mountain search and rescue scenario. The specific process is as follows:
[0175] Step 1001: Mobile phone 2 (B) continuously broadcasts a search on search (SOS) signal, i.e., the first signal, at an initial transmit power (TX Power) of 20 dBm.
[0176] Step 1002: Mobile phone 1 receives the first signal at the first location A and obtains the RSSI of the first signal. Based on this, it determines the target transmit power and replies to mobile phone 2 with an acknowledgment (ACK) frame. The acknowledgment frame carries a power adjustment command to notify mobile phone 2 to enter the dynamic power adjustment process.
[0177] Step 1003: After receiving the ACK from mobile phone 1, mobile phone 2 gradually reduces its own transmission power according to the communication protocol. Each time the transmission power is reduced by one level, a set of broadcast signals represented by gray dashed lines are sent to mobile phone 1. Mobile phone 1 continuously collects the RSSI corresponding to each level of transmission power at the first position A and determines in real time whether the RSSI has reached the minimum receiving sensitivity threshold, such as -90dBm.
[0178] Step 1004: When mobile phone 1 detects at position A that the RSSI of mobile phone 2 after reducing the transmit power is equal to the minimum receive sensitivity threshold, it sends a dedicated ACK frame to mobile phone 2. This ACK frame may carry a locking command to notify mobile phone 2 to stop power adjustment and fix the current critical transmit power to continuously broadcast the second signal.
[0179] Step 1005: Mobile phone 2 responds to the response frame, locks the critical transmit power, and continuously broadcasts the second signal represented by the gray dashed line. At this time, the signal strength is extremely sensitive to changes in distance, and even a small displacement will produce a significant change in RSSI.
[0180] Step 1006: The user moves the mobile phone 1 from position A to the second position A′ and receives the second signal broadcast by the mobile phone 2 at the critical transmission power, and samples the RSSI of the second signal.
[0181] Step 1007: After acquiring the second signal, mobile phone 1 sends an ACK response frame to mobile phone 2 again. Mobile phone 1 determines whether mobile phone 2 is in the direction from A to A′ according to the RSSI of the second signal. For example, if the RSSI of the second signal acquired at A′ is greater than or equal to the first threshold (e.g., -90dBm), it is determined that mobile phone 2 is in the direction from position A to position A′ and a positive prompt is output. If the RSSI of the second signal acquired at A′ is less than the first threshold, it is determined that mobile phone 2 is not in the direction from position A to position A′ and a reverse return prompt is output.
[0182] As can be seen, the transmission power of mobile phone 2 is not static but can be dynamically adjusted. For example, the initial transmission power of 20dBm of mobile phone 2 can cover area X. When mobile phone 1 starts searching for the location of mobile phone 2 at position A, it requests mobile phone 2 to reduce its transmission power to the minimum reception sensitivity threshold at position A. Thus, if mobile phone 1 can receive the signal from mobile phone 2 after moving to position A′, it indicates that mobile phone 1 is moving towards direction B. The transmission power of mobile phone 2 can be adjusted again at position A′ until it is within a reasonable range. It should be noted that since the transmission power of mobile phone 1 remains constant during this process, if it cannot find the signal from mobile phone 2, it can request mobile phone 2 to increase its transmission power. If mobile phone 1 cannot find the signal from mobile phone 2 after moving to position A′, it means that mobile phone 1 is moving away from mobile phone 2. This allows it to quickly determine that the direction of movement of mobile phone 1 is incorrect, and the prompt message on mobile phone 1 can prompt the user to turn back and move again.
[0183] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0184] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0185] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0186] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A positioning method, comprising: Based on the second position, a second signal is received from the target communication device; The transmission power of the second signal is determined based on the first signal, which is a signal received from the target communication device based on the first location; the transmission power of the first signal and the transmission power of the second signal are different. Based on the second signal, it is determined whether the target communication device is in a direction pointing from the first position to the second position.
2. The method according to claim 1, wherein the first signal and the second signal are signals transmitted by the target communication device at different transmission powers; the first position is the position where the received signal strength indication value of the first signal received by the local communication device is within a first numerical range; and the second position is the position of the local communication device after it has moved. in, Determining whether the target communication device is in a direction from the first position to the second position based on the second signal includes: If the received signal strength indication value of the second signal is greater than or equal to the first threshold, it is determined that the target communication device is in a direction from the first position to the second position; If the received signal strength indication value of the second signal is less than the first threshold, it is determined that the target communication device is not in the direction from the first position to the second position; The first threshold is determined based on the first numerical range.
3. The method according to claim 2, further comprising: Obtain the test signal sent by the target communication device that the local communication device receives at the first location; The target transmission power is determined based on the received signal strength indication value of the test signal and the test transmission power of the test signal transmitted by the target communication device. According to the target transmission power, the local communication device is controlled to send a power adjustment command to the target communication device; the power adjustment command is used to instruct the target communication device to send the second signal to the local communication device according to the target transmission power.
4. The method according to claim 1, wherein the first signal and the second signal are reflected signals of signals transmitted by the local communication device at different transmission powers; and the second position is the position of the local communication device after it has moved. in, Determining whether the target communication device is in a direction from the first position to the second position based on the second signal includes: Based on the first signal and the second signal, a first change state and a second change state are obtained; Wherein, the first change state is the change state of the first signal and the second signal in terms of transmission power; the second change state is the change state of the first signal and the second signal in terms of received signal strength indication value; Based on the first change state and the second change state, determine whether the target communication device is in a direction from the first position to the second position.
5. The method according to claim 1, wherein the first signal comprises: The first direct signal transmitted by the target communication device at a first transmission power, and the first reflected signal of the signal transmitted by the local communication device at a second transmission power; The second signal includes: a second direct signal transmitted by the target communication device at a third transmission power, and a second reflected signal of the signal transmitted by the local communication device at a fourth transmission power; Wherein, the first position is the position where the received signal strength indication value of the first direct-transmitted signal received by the local communication device is within a first numerical range; the second position is the position after the local communication device has moved.
6. The method according to claim 5, wherein determining whether the target communication device is in a direction from the first position to the second position based on the second signal comprises: A first judgment result is obtained, wherein the first judgment result indicates whether the received signal strength indication value of the second direct-transmitted signal is greater than or equal to a first threshold. Based on the first change state and the second change state, a second judgment result is obtained, wherein the second judgment result indicates whether the target communication device is in the direction from the first position to the second position; Wherein, the first change state is the change state of the first reflected signal and the second reflected signal in terms of transmission power; the second change state is the change state of the first reflected signal and the second reflected signal in terms of received signal strength indication value; Based on the first judgment result and the second judgment result, it is determined whether the target communication device is in the direction from the first position to the second position.
7. The method according to claim 1, further comprising, after determining that the target communication device is in a direction from the first position to the second position: Based on the orientation of the target communication device relative to the local communication device, obtain the communication environment information between the target communication device and the local communication device; Based on the communication environment information, the path loss parameters are adjusted; the path loss parameters are used to measure the distance between the target communication device and the local communication device.
8. The method according to claim 1, 2, 4 or 5, further comprising: If the target communication device is in a direction pointing from the first position to the second position, output a first prompt message; The first prompt message is used to indicate movement along a first direction; the first direction is the direction from the first position to the second position; If the target communication device is not in the direction from the first position to the second position, output a second prompt message; The second prompt message is used to indicate movement in a second direction; the second direction is opposite to the first direction.
9. An electronic device, comprising: A communication module for receiving a second signal from a target communication device based on a second location; The transmission power of the second signal is determined based on the first signal, which is a signal received from the target communication device based on the first location; the transmission power of the first signal and the transmission power of the second signal are different. The processor is configured to determine, based on the second signal, whether the target communication device is in a direction from the first position to the second position.
10. The electronic device according to claim 9, further comprising: The prompt module, and / or the move module, wherein: The prompting module is configured to output a first prompt message if the target communication device is in a direction pointing from the first position to the second position; the first prompt message is used to indicate movement along a first direction; the first direction is the direction pointing from the first position to the second position; if the target communication device is not in a direction pointing from the first position to the second position, it outputs a second prompt message; the second prompt message is used to indicate movement along a second direction; the second direction is opposite to the first direction. The mobile module is used to move the electronic device according to whether the target communication device is in a direction from the first position to the second position.