Method and apparatus for determining location information, control device and storage medium
By determining the distribution information of the phase information set and selecting target phase information that meets the conditions, the problem of inaccurate position information of electronic devices under poor environmental conditions is solved, and higher position information accuracy and connection accuracy are achieved.
Patent Information
- Application Number
- CN202110457743.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2041-04-27
AI Technical Summary
In poor environmental conditions, when using ultra-wideband technology to determine the location of electronic devices, the phase information is easily affected by the environment and obstructions, resulting in inaccurate location information.
By determining the first distribution information of the phase information set, multiple target phase information that meet the conditions are selected from the phase information set, and the position information of the target electronic device is determined based on these target phase information.
This improves the accuracy of determining the location information of target electronic devices under poor environmental conditions and ensures the convergence of phase information, thereby improving the accuracy of the connection between control equipment and electronic equipment.
Smart Images

Figure CN115248417B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a method, apparatus, control device, and storage medium for determining location information. Background Technology
[0002] With the development of terminal technology, the functions of terminals are becoming increasingly rich. For example, terminals have a "one-finger connection" function, meaning that when a terminal points at an electronic device, it determines the location information of the pointed-to electronic device and decides whether to establish a connection with it based on the device's location information. For instance, when a user wants to turn off an air conditioner, the user points at the air conditioner with the terminal, the terminal determines the air conditioner's location information, and if the air conditioner's location information indicates that it is at the terminal's designated location, the terminal can automatically establish a connection with the air conditioner and send a shutdown command to turn it off. Summary of the Invention
[0003] This application provides a method, apparatus, control device, and storage medium for determining location information, which can improve the accuracy of determining the location information of electronic devices. The technical solution is as follows:
[0004] On the one hand, a method for determining location information is provided, the method comprising:
[0005] A set of phase information is determined, the set of phase information including multiple phase information corresponding to the target electronic device;
[0006] Based on the multiple phase information, a first distribution information of the phase information set is determined;
[0007] Based on the first distribution information, multiple target phase information that satisfy the conditions of the first distribution information are determined from the phase information set;
[0008] Based on the multiple target phase information, the location information of the target electronic device is determined.
[0009] On the other hand, a location information determining device is provided, the device comprising:
[0010] The first determining module is used to determine a phase information set, wherein the phase information set includes multiple phase information corresponding to the target electronic device;
[0011] The second determining module is used to determine the first distribution information of the phase information set based on the plurality of phase information;
[0012] The third determining module is used to determine, based on the first distribution information, multiple target phase information that satisfy the conditions of the first distribution information from the phase information set;
[0013] The fourth determining module is used to determine the location information of the target electronic device based on the multiple target phase information.
[0014] On the other hand, a control device is provided, the control device including a processor and a memory; the memory stores at least one piece of program code, the at least one piece of program code being executed by the processor to implement the method for determining position information as described above.
[0015] On the other hand, a computer-readable storage medium is provided that stores at least one piece of program code, which is executed by a processor to implement the method for determining location information as described above.
[0016] On the other hand, a computer program product is also provided, which stores at least one piece of program code, said at least one piece of program code being loaded and executed by a processor to implement the method for determining location information as described above.
[0017] In this embodiment of the application, multiple target phase information that meet the conditions are determined from the phase information set by determining the first distribution information of the phase information set. The location information of the target electronic device is determined based on the multiple target phase information that meet the conditions. Thus, the location information of the target electronic device can be determined using more convergent phase information, thereby improving the accuracy of determining the location information of the target electronic device. Attached Figure Description
[0018] Figure 1 A schematic diagram illustrating the implementation environment of a method for determining location information according to an exemplary embodiment of this application is shown.
[0019] Figure 2 A flowchart illustrating a method for determining location information as shown in an exemplary embodiment of this application is presented;
[0020] Figure 3 A flowchart illustrating a method for determining location information as shown in an exemplary embodiment of this application is presented;
[0021] Figure 4 A flowchart illustrating a method for determining location information as shown in an exemplary embodiment of this application is presented;
[0022] Figure 5 This application shows a structural block diagram of a location information determination device according to an exemplary embodiment of the present application;
[0023] Figure 6 A structural block diagram of a control device illustrated in an exemplary embodiment of this application is shown. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0025] In this document, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the data involved in this application can be data authorized by the user or fully authorized by all parties.
[0026] Currently, a "one-finger connection" quick control method exists for controlling electronic devices. In this method, after receiving a "one-finger connection" request, the user points the control device at the electronic device. The control device then determines the location information of the pointed-to electronic device. If the location information indicates that the electronic device meets the "one-finger connection" conditions, the control device can establish a connection with that electronic device, thereby controlling it. Specifically, the control device identifies the electronic device located in front of it as the target electronic device and automatically invokes the application used to control the target electronic device, controlling it through that application.
[0027] The control device is a device equipped with an Ultra Wide Band (UWB) module. Examples include mobile phones, tablets, wearable devices, and their casings. The controlled electronic devices can be home appliances or other terminals. Examples include air conditioners, televisions, speakers, lights, and mobile phones.
[0028] The controlled electronic device can broadcast ultra-wideband (UWB) data packets to its surrounding environment. Each UWB data packet carries a device identifier of the broadcasting electronic device. Upon triggering a "one-touch connection" request, the control device acquires UWB data packets from the surrounding environment. Based on the device tags within these packets, it groups UWB data packets with the same device tag into the same data set. For each UWB data packet, the control device determines the corresponding phase information set for that electronic device. This phase information set is used by the control device to determine the location information of the electronic device, thereby determining whether to connect to it.
[0029] For example, see Figure 1The current network environment may include furniture and appliances such as air conditioners, televisions, and lights. After the mobile phone receives the "one-finger connection" request, it receives ultra-wideband data packets broadcast by furniture and appliances such as air conditioners, televisions, and lights from the network environment. Based on the received ultra-wideband data packets, it determines that the furniture and appliance currently in front of the mobile phone is a television. Therefore, it uses the television as the target electronic device and controls it.
[0030] The accuracy with which the control device determines the electronic device's position based on this phase information is closely related to the convergence degree of this phase information; the higher the convergence degree, the more accurate the obtained position of the electronic device. However, phase information is easily affected by factors such as the environment and the position of the electronic device. See Table 1, which illustrates three sets of phase information collected according to an exemplary embodiment. The magnitude of the phase information in the table is related to the position of the electronic device and its environment.
[0031] Table 1
[0032]
[0033] Table 1 shows that under favorable environmental conditions, the phase information set is relatively convergent, while in the two less favorable environmental conditions, the phase information set exhibits numerous outliers. Therefore, under less favorable environmental conditions, the position information of the electronic device determined based on this phase information may be inaccurate. A favorable environment generally refers to an unobstructed view between the control device and the electronic device, with the electronic device within the control device's field of view. A less favorable environment generally refers to a scene with some obstruction, where the electronic device is outside the control device's field of view.
[0034] In this embodiment of the application, multiple target phase information that meet the conditions are determined from the phase information set by determining the first distribution information of the phase information set. The location information of the target electronic device is determined based on the multiple target phase information that meet the conditions. Thus, the location information of the target electronic device can be determined using more convergent phase information, thereby improving the accuracy of determining the location information of the target electronic device.
[0035] Please refer to Figure 2 This document illustrates a flowchart of a method for determining location information according to an exemplary embodiment of this application. The executing entity in this embodiment can be a control device, or a processor, operating system, or UWB module within the control device, etc. This embodiment uses a control device as an example for illustration. The method includes:
[0036] Step 201: The control device determines the set of phase information.
[0037] This set of phase information includes multiple phase information corresponding to the target electronic device.
[0038] When the control device receives a trigger operation for controlling other electronic devices, it begins scanning signals in the current environment used to determine phase information. Based on the scanned signals used to determine phase information, multiple sets of phase information are determined. In some embodiments, the signals used to determine phase information include signals containing Ultra Wide Band (UWB) data packets. Accordingly, the control device classifies the received UWB data packets based on the electronic device broadcasting the UWB data packets, and determines the set of phase information corresponding to each UWB data packet according to the UWB data packets in each category. This process is implemented through the following steps (1)-(4), including:
[0039] (1) The control device receives multiple ultra-wideband data packets in the network environment.
[0040] The control device initiated a scan, detecting multiple ultra-wideband data packets in the network environment.
[0041] (2) The control device obtains the device identifier corresponding to each ultra-wideband data packet.
[0042] The device identifier corresponding to any ultra-wideband data packet is the identifier of the device that sent the ultra-wideband data packet.
[0043] The ultra-wideband data packet carries the device identifier of the electronic device broadcasting the packet. The control device parses the ultra-wideband data packet to obtain the corresponding device identifier.
[0044] The device identifier is an electronic device tag or hardware dongle, such as a dongle. In this embodiment, the type of device identifier for the electronic device is not specifically limited.
[0045] (3) The control device determines multiple target ultra-wideband data packets sent by the target electronic device from the multiple ultra-wideband data packets based on the device identifier corresponding to each ultra-wideband data packet.
[0046] In this step, the control device groups multiple ultra-wideband data packets based on the device identifier corresponding to each ultra-wideband data packet, and identifies each group of ultra-wideband data packets as multiple target data packets sent by the target electronic device.
[0047] (4) The control device determines the set of phase information of the target electronic device based on the multiple target ultra-wideband data packets.
[0048] This phase information refers to the phase information generated when different antennas receive each target UWRS data packet when the control device receives it. For example, this phase information is the phase difference of arrival (PDOA) information generated during the reception of the UWRS data packet. Accordingly, the control device has two antennas, antA and antB, with a specific spacing d. The control device can measure the phase of the UWRS data packets received by antA and antB from the target electronic device, thereby calculating the phase difference information and forming a phase information set for the target electronic device from the phase difference information corresponding to multiple target UWRS data packets. See Table 2.
[0049] Table 2
[0050]
[0051] Referring to Table 2, the control device determines the phase difference information corresponding to the same device identifier as the phase information set of the electronic device corresponding to that device identifier. The phase information set of the target electronic device is then determined from these multiple phase information sets corresponding to device identifiers.
[0052] In this implementation, the control device determines the phase information set of the target electronic device based on the ultra-wideband data packets broadcast by the target electronic device, thereby improving the efficiency of the control device in acquiring the phase information set.
[0053] Step 202: The control device determines the first distribution information of the phase information set based on the multiple phase information.
[0054] The first distribution information is used to identify the degree of convergence of the plurality of phase information. For example, the first distribution information is an indicator that can be used to represent the degree of convergence of the plurality of phase information, such as the variance or standard deviation of the plurality of phase information. In some embodiments, the first distribution information is the standard deviation, and accordingly, the control device determines the standard deviation of the plurality of phase information; the standard deviation is determined as the first distribution information of the phase information set.
[0055] In this implementation, the standard deviation of multiple phase information is determined as the first distribution information. The target phase information that meets the conditions is then determined based on the standard deviation, ensuring that the standard deviation between the target phase information meets the requirements. This achieves convergence of the acquired target phase information and, consequently, ensures the accuracy of the position information of the target electronic device determined based on the phase information.
[0056] Step 203: Based on the first distribution information, the control device determines multiple target phase information that meet the conditions of the first distribution information from the phase information set.
[0057] In this step, the control device determines, based on the first distribution information, a plurality of target phase information that are relatively convergent among the plurality of phase information. The condition being met refers to the convergence degree of the plurality of phase information reaching a preset convergence degree. Accordingly, the control device determines, based on the first distribution information, whether the plurality of phase information in the phase information set is convergent. If the first distribution information indicates that the plurality of phase information in the phase information set is convergent, then the plurality of phase information is determined as the plurality of target phase information; if the first distribution information indicates that the plurality of phase information is not convergent, then the plurality of convergent target phase information is determined from the plurality of phase information.
[0058] See Figure 3 The first distribution information is the standard deviation of the multiple phase information. The condition is that the standard deviation of the multiple phase information is not greater than a preset standard deviation. If the standard deviation is not greater than the preset standard deviation, the control device determines the multiple phase information as multiple target phase information. If the standard deviation is greater than the preset standard deviation, the control device determines multiple convergent target phase information from the phase information set. The preset standard deviation is set as needed; in this embodiment, the preset standard deviation is not specifically limited. For example, the preset standard deviation may be 15, 18, or 20.
[0059] In some embodiments, the phase information includes phase difference information. If the first distribution information indicates that the multiple phase information does not converge, the control device determines multiple convergent target phase information from the set of phase information. This process is implemented through the following steps (1)-(3), including:
[0060] (1) The control device determines multiple phase difference information within a preset range from multiple phase difference information.
[0061] In this step, the control device selects multiple phase difference information points whose values fall within the middle range, or selects multiple phase difference information points whose values exceed a preset value, or selects multiple phase difference information points whose values are less than a preset value. In this embodiment, the preset range is not specifically limited. For example, the preset range may be the middle K percent range.
[0062] See also Figure 3 The control device sorts multiple phase difference information in the phase information set to obtain array Y; and obtains the middle K% of the phase difference information in array Y as multiple phase difference information within a preset range.
[0063] The preset range can be set as needed, but in this embodiment, the preset range is not specifically limited. For example, the preset range may be 60%, 65%, or 70%.
[0064] (2) The control device acquires the second distribution information of multiple phase difference information within the preset range.
[0065] The second distribution information is used to represent the degree of convergence of the multiple phase difference information within the preset range.
[0066] In some embodiments, the second distribution information is the degree of deviation of the multiple phase difference information within a preset range. That is, the second distribution information is the proportion of phase difference information within the preset range whose difference from the average phase difference information is greater than a preset difference. Accordingly, this step is implemented through the following steps (2-1)-(2-4), including:
[0067] (2-1) The control device determines the average phase difference information of multiple phase difference information within the preset range.
[0068] See also Figure 3 In this step, the control device determines the average phase difference information of multiple phase difference information within a preset range, and obtains the average value aver_1.
[0069] (2-2) For each phase difference information within a preset range, the control device determines the difference between the phase difference information and the average phase difference information.
[0070] See also Figure 3 In this step, the control device determines the difference between each phase difference information within the preset range and aver_1. That is, dev_i = |X_i - aver_1|. Here, dev_i is the difference between each phase difference information within the preset range and aver_1, X_i is each phase difference information within the preset range, and aver_1 is the average phase difference information.
[0071] (2-3) Based on the difference between the phase difference information and the average phase difference information, the control device determines the proportion of the phase difference information with a difference not less than a preset difference among the multiple phase difference information within the preset range.
[0072] In this step, the control device determines the proportion M of phase difference information that is not less than a preset difference among multiple dev_i.
[0073] (2-4) The control device determines this ratio as the second distribution information.
[0074] In this implementation, a second distribution information is determined by the difference between each phase difference information and the average phase difference information within a preset range, so as to determine whether the phase difference information within the preset range can meet the convergence condition, thereby improving the accuracy of controlling the target electronic device.
[0075] (3) If the second distribution information indicates that the multiple phase difference information within the preset range converges, the control device determines multiple target phase difference information from the multiple phase difference information within the preset range.
[0076] The second distribution information indicates that the convergence of multiple phase difference information within the preset range means that the proportion M of phase difference information not less than the preset difference among multiple dev_i within the preset range does not exceed the preset proportion.
[0077] In some embodiments, see Figure 3 The control device determines whether the ratio M is 0. If it is 0, it means that multiple phase difference information within the preset range meets the conditions, and the multiple phase difference information within the preset range is determined as multiple target phase difference information.
[0078] In some embodiments, see continue to see Figure 3 The control device determines whether the ratio exceeds a preset ratio. If it does, it determines that all phase difference information in the phase information set is abnormal data, discards the entire phase information set, and continues processing the next set of phase information sets. If the ratio does not exceed the preset ratio, the control device identifies multiple phase difference information within the preset range as multiple target phase difference information. Alternatively, if the ratio does not exceed the preset ratio, the phase difference information within the preset range whose difference from the average phase difference information does not exceed a preset difference value is identified as target phase difference information. This process includes: the control device annotating the data attributes of the multiple phase difference information within the preset range based on the second distribution information to obtain the data attributes of each phase difference information within the preset range; identifying at least one phase difference information with abnormal data attributes from the multiple phase difference information within the preset range; and removing the at least one phase difference information with abnormal data attributes from the multiple phase difference information within the preset range to obtain the multiple target phase difference information.
[0079] In this implementation, the control device excludes abnormal phase difference information from multiple phase difference information within a preset range, thereby ensuring that the convergence of multiple target phase difference information meets the conditions, and thus improving the accuracy of determining the position information of the target electronic device.
[0080] Step 204: The control device determines the location information of the target electronic device based on the multiple target phase information.
[0081] In this step, the electronic device locates the target electronic device based on the multiple target phase information to obtain the location information of the target electronic device.
[0082] The process by which the control device determines the position information of the target electronic device includes: the control device determining the azimuth angle (AOA) information between the target electronic device and the control device based on the multiple target phase information; and determining the azimuth angle information as the position information of the target electronic device.
[0083] In this implementation, the control device determines the azimuth information between the target electronic device and the control device based on multiple target phase information, thereby determining the angular difference between the positions of the target electronic device and the control device. This allows the control device to determine the position information between the electronic devices based on the position information and decide whether to control the target electronic device, thus improving the accuracy of determining the position information of the target electronic device.
[0084] After determining the location information of the target electronic device, the control device can also control the target electronic device based on that location information. Accordingly, the control device determines whether the location information of the target electronic device meets control conditions. If the control conditions are met, the control device controls the target electronic device. In some embodiments, the control device determines the azimuth information of multiple electronic devices, and from these azimuth information, determines the electronic device with the smallest azimuth information, and identifies that electronic device as the target electronic device. In some embodiments, the control device determines whether the target electronic device is within its control range. If it is within the control range, the control device controls the target electronic device; if it is not within the control range, the phase information set is discarded, and the next phase information set is processed. Here, "within the control range of the control device" refers to the target electronic device being within a preset angle directly in front of the control device. This preset angle is set as needed; in this embodiment, the preset angle is not specifically limited.
[0085] It should be noted that when there are multiple electronic devices whose azimuth information meets the control conditions, the control device can identify all of these electronic devices as the target electronic device. Alternatively, the control device can also identify one electronic device from among the multiple electronic devices within the control range and designate that electronic device as the target electronic device.
[0086] The process of the control device determining the target electronic device from multiple electronic devices within its control range can be achieved in the following ways. In the first method, the control device displays information such as the device identifier or device name of the multiple electronic devices within the control range on a display interface, receives user input selection operations, determines the electronic device corresponding to the selection operation, and identifies the electronic device corresponding to the selection operation as the target electronic device.
[0087] In the second implementation method, the control device determines the azimuth information of each electronic device from multiple electronic devices within the control range, and then determines the electronic device with the smallest azimuth information from among these multiple electronic devices, and identifies the electronic device with the smallest azimuth information as the target electronic device.
[0088] In the third implementation, the control device acquires the device control record and determines the previously controlled electronic device from the record. If the previously controlled electronic device is included among multiple electronic devices within the control range, the control device identifies it as the target electronic device. If the previously controlled electronic device is not included among the multiple electronic devices within the control range, the control device determines the target electronic device from among the multiple electronic devices within the control range.
[0089] In the fourth implementation method, the control device determines the signal quality information between itself and multiple electronic devices within its control range. From this signal quality information, it identifies the electronic device with the highest signal quality and designates it as the target electronic device. For example, the signal quality information could be the distance between the control device and the electronic devices. A smaller distance indicates a stronger signal. Accordingly, the control device then identifies the electronic device with the smallest distance from the multiple electronic devices within its control range and designates it as the target electronic device.
[0090] It should be noted that the process of the control device determining the azimuth information between each electronic device and the target device can be achieved through steps 201-203, and will not be described in detail here.
[0091] Among them, see Figure 4 The control equipment determines the path difference p between the target electronic device and the antennas antA and antB using phase difference information. Based on p and the specific distance d between antA and antB, the azimuth information is determined through a functional relationship. Due to the mutual coupling between antennas, it is difficult to determine the azimuth information using simple trigonometric functions. Therefore, different control equipment needs to be calibrated to obtain specific mapping tables, curves, or AoA calculation functions. Correspondingly, the control equipment determines the azimuth information of the target electronic device using this specific mapping table, curve, or AoA calculation function.
[0092] The process of the control device controlling the target electronic device is as follows: the control device identifies the target electronic device, calls the target application used to control the target electronic device, displays the control interface in the target application, receives the control operation input by the user through the control interface, generates control instructions based on the control operation, and sends the control instructions to the target electronic device to realize the control of the target electronic device.
[0093] It should be noted that the target applications corresponding to different target electronic devices may be the same target application or different target applications. In this embodiment of the application, no specific limitation is made in this regard.
[0094] In this embodiment of the application, multiple target phase information that meet the conditions are determined from the phase information set by determining the first distribution information of the phase information set. The location information of the target electronic device is determined based on the multiple target phase information that meet the conditions. Thus, the location information of the target electronic device can be determined using more convergent phase information, thereby improving the accuracy of determining the location information of the target electronic device.
[0095] Please refer to Figure 5 This diagram illustrates a structural block diagram of a location information determination device according to an embodiment of this application. This location information determination device can be implemented as all or part of a processor through software, hardware, or a combination of both. The device includes:
[0096] The first determining module 501 is used to determine a phase information set, which includes multiple phase information corresponding to the target electronic device;
[0097] The second determining module 502 is used to determine the first distribution information of the phase information set based on the multiple phase information;
[0098] The third determining module 503 is used to determine, based on the first distribution information, multiple target phase information that satisfy the conditions of the first distribution information from the phase information set;
[0099] The fourth determining module 504 is used to determine the location information of the target electronic device based on the multiple target phase information.
[0100] In some embodiments, the third determining module 503 includes:
[0101] The first determining unit is configured to determine the multiple phase information as the multiple target phase information if the first distribution information indicates that multiple phase information in the phase information set has converged;
[0102] The second determining unit is used to determine multiple convergent target phase information from the multiple phase information if the first distribution information indicates that the multiple phase information does not converge.
[0103] In some embodiments, the phase information includes phase difference information; the second determining unit includes:
[0104] The first determining subunit is used to determine multiple phase difference information within a preset range from multiple phase difference information;
[0105] The acquisition subunit is used to acquire the second distribution information of multiple phase difference information within a preset range;
[0106] The second determining subunit is used to determine multiple target phase difference information from the multiple phase difference information within the preset range if the second distribution information indicates that the multiple phase difference information within the preset range has converged.
[0107] In some embodiments, the acquisition subunit is configured to determine the average phase difference information of the plurality of phase difference information within a preset range; for each phase difference information within the preset range, determine the difference between the phase difference information and the average phase difference information; based on the difference between the phase difference information and the average phase difference information, determine the proportion of phase difference information with a difference not less than a preset difference in the plurality of phase difference information within the preset range; and determine the proportion as the second distribution information.
[0108] In some embodiments, the second determining subunit is configured to, based on the second distribution information, label the data attributes of the plurality of phase difference information within a preset range to obtain the data attributes of each phase difference information within the preset range; determine at least one phase difference information whose data attributes are abnormal from the plurality of phase difference information within the preset range; and remove the at least one phase difference information whose data attributes are abnormal from the plurality of phase difference information within the preset range to obtain the plurality of target phase difference information.
[0109] In some embodiments, the second determining module 502 is used to determine the standard deviation of the plurality of phase information; and to determine the standard deviation as the first distribution information of the phase information set.
[0110] In some embodiments, the fourth determining module 504 is used to determine the azimuth information between the target electronic device and the control device based on the plurality of target phase information; and to determine the azimuth information as the position information of the target electronic device.
[0111] In some embodiments, the device further includes a control module for controlling the target electronic device if the azimuth information meets control conditions.
[0112] In some embodiments, the first determining module 501 is configured to receive multiple ultra-wideband data packets in a network environment; obtain a device identifier corresponding to each ultra-wideband data packet, wherein the device identifier corresponding to any ultra-wideband data packet is the identifier of the device that sent the any ultra-wideband data packet; determine multiple target ultra-wideband data packets sent by the target electronic device from the multiple ultra-wideband data packets based on the device identifier corresponding to each ultra-wideband data packet; and determine a set of phase information of the target electronic device based on the multiple target ultra-wideband data packets.
[0113] In this embodiment of the application, multiple target phase information that meet the conditions are determined from the phase information set by determining the first distribution information of the phase information set. The location information of the target electronic device is determined based on the multiple target phase information that meet the conditions. Thus, the location information of the target electronic device can be determined using more convergent phase information, thereby improving the accuracy of determining the location information of the target electronic device.
[0114] Please refer to Figure 6 This diagram illustrates a structural block diagram of a control device 600 provided in an exemplary embodiment of this application. The control device 600 can be a terminal with communication capabilities, such as a smartphone, tablet, or wearable device. The control device 600 in this application may include one or more of the following components: a processor 610, a memory 620, and a UWB module 630.
[0115] The processor 610 may include one or more processing cores. The processor 610 connects to various parts within the terminal 600 using various interfaces and lines, and performs various functions and processes data of the terminal 600 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 620, and by calling data stored in the memory 620. Optionally, the processor 610 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 610 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), Neural-network Processing Unit (NPU), and modem. Specifically, the CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display on the screen; the NPU is used to implement Artificial Intelligence (AI) functions; and the modem is used for wireless communication. It is understandable that the aforementioned modem may not be integrated into the processor 610, but may be implemented using a separate chip.
[0116] The memory 620 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 620 may include a non-transitory computer-readable storage medium. The memory 620 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the various method embodiments described below, etc.; the data storage area may store data created according to the use of the terminal 600 (such as audio data, phone book, etc.).
[0117] UWB module 630 is a module that uses UWB technology. UWB technology is a wireless carrier communication technology that does not use a sinusoidal carrier but instead uses nanosecond-level non-sinusoidal narrow pulses to transmit data, thus occupying a wide spectrum. The UWB in this application can be the UWB technology in the 802.15.4 protocol.
[0118] A display screen is a display component used to display a user interface. Optionally, the display screen is a touch-enabled display screen, through which users can use their fingers, styluses, or any suitable object to perform touch operations on the display screen.
[0119] The display screen is typically located on the front panel of the terminal. The display screen can be designed as a full-screen, curved screen, irregularly shaped screen, dual-sided screen, or foldable screen. It can also be designed as a combination of a full-screen and a curved screen, or a combination of an irregularly shaped screen and a curved screen, etc., but this embodiment does not limit the specific designation.
[0120] In addition, those skilled in the art will understand that the structure of the control device 600 shown in the above figures does not constitute a limitation on the control device 600. The control device 600 may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, the terminal control device may also include components such as a microphone, speaker, radio frequency circuit, input unit, sensor, audio circuit, Wireless Fidelity (Wi-Fi) module, power supply, and Bluetooth module, which will not be described in detail here.
[0121] This application also provides a computer-readable medium storing at least one piece of program code, which is loaded and executed by the processor to implement the method for determining location information as shown in the above embodiments.
[0122] This application also provides a computer program product that stores at least one piece of program code, which is loaded and executed by the processor to implement the method for determining location information as shown in the above embodiments.
[0123] In some embodiments, the computer program involved in the present application embodiments may be deployed and executed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network. Multiple computer devices distributed in multiple locations and interconnected through a communication network may constitute a blockchain system.
[0124] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more program codes or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of computer programs from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0125] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for determining location information, characterized in that, Applied to a control device, wherein the control device is equipped with an ultra-wideband technology module, the method includes: When a trigger operation for controlling other electronic devices is received, multiple ultra-wideband data packets are received in the network environment. These multiple ultra-wideband data packets are broadcast to the network environment by the controlled electronic device. Each ultra-wideband data packet carries a device identifier of the electronic device that broadcast the ultra-wideband data packet. Obtain the device identifier corresponding to each ultra-wideband data packet, wherein the device identifier corresponding to any ultra-wideband data packet is the identifier of the device that sent the ultra-wideband data packet; Based on the device identifier carried in each ultra-wideband data packet, multiple target ultra-wideband data packets sent by the target electronic device are determined from the multiple ultra-wideband data packets; Based on the multiple target ultra-wideband data packets, a set of phase information for the target electronic device is determined. The set of phase information includes multiple phase information corresponding to the target electronic device. The phase information includes phase difference information when different antennas receive the target ultra-wideband data packets when the control device receives each target ultra-wideband data packet. Based on the multiple phase information, a first distribution information of the phase information set is determined, and the first distribution information is used to identify the degree of convergence of the multiple phase information. Based on the first distribution information, multiple target phase information that satisfy the conditions of the first distribution information are determined from the phase information set; Based on the multiple target phase information, the location information of the target electronic device is determined; When the location information of the target electronic device meets the control conditions, the target electronic device is controlled. The control conditions include at least one of the following: within the control range, minimum azimuth information, highest signal quality, and the last electronic device controlled.
2. The method according to claim 1, characterized in that, The step of determining multiple target phase information points from the phase information set that satisfy the conditions of the first distribution information based on the first distribution information includes: If the first distribution information indicates that multiple phase information in the phase information set has converged, then the multiple phase information is determined as the multiple target phase information; If the first distribution information indicates that the plurality of phase information does not converge, then from the plurality of phase information, determine the plurality of convergent target phase information.
3. The method according to claim 2, characterized in that, The phase information includes phase difference information; determining multiple convergent target phase information from the plurality of phase information includes: Determine multiple phase difference information within a preset range from multiple phase difference information; Obtain the second distribution information of the multiple phase difference information within the preset range; If the second distribution information indicates that the multiple phase difference information within the preset range converges, then multiple target phase difference information are determined from the multiple phase difference information within the preset range.
4. The method according to claim 3, characterized in that, The second distribution information for obtaining the multiple phase difference information within the preset range includes: Determine the average phase difference information of the multiple phase difference information within the preset range; For each phase difference information within a preset range, determine the difference between the phase difference information and the average phase difference information; Based on the difference between the phase difference information and the average phase difference information, determine the proportion of phase difference information with a difference not less than a preset difference among multiple phase difference information within the preset range; The ratio is determined as the second distribution information.
5. The method according to claim 3, characterized in that, Determining multiple target phase difference information from multiple phase difference information within a preset range includes: Based on the second distribution information, the data attributes of the multiple phase difference information within the preset range are labeled to obtain the data attributes of each phase difference information within the preset range; From the multiple phase difference information within the preset range, determine at least one phase difference information whose data attribute is abnormal; At least one phase difference information with abnormal data attributes is removed from the plurality of phase difference information within a preset range to obtain the plurality of target phase difference information.
6. The method according to claim 1, characterized in that, The step of determining the first distribution information of the phase information set based on the multiple phase information includes: Determine the standard deviation of the multiple phase information; The standard deviation is determined as the first distribution information of the phase information set.
7. The method according to claim 1, characterized in that, Determining the location information of the target electronic device based on the multiple target phase information includes: Based on the phase information of the multiple targets, the azimuth information between the target electronic device and the control device is determined; The azimuth information is determined as the location information of the target electronic device.
8. A device for determining location information, characterized in that, Configured in a control device, wherein the control device is a device equipped with an ultra-wideband technology module, the device includes: The first determining module is configured to, upon receiving a trigger operation for controlling other electronic devices, receive multiple ultra-wideband data packets in the network environment, wherein the multiple ultra-wideband data packets are broadcast to the network environment by the controlled electronic device, and each ultra-wideband data packet carries a device identifier of the electronic device broadcasting the ultra-wideband data packet; obtain the device identifier corresponding to each ultra-wideband data packet, wherein the device identifier corresponding to each ultra-wideband data packet is the identifier of the device sending the respective ultra-wideband data packet; determine multiple target ultra-wideband data packets sent by the target electronic device from the multiple ultra-wideband data packets based on the device identifier carried by each ultra-wideband data packet; and determine a set of phase information of the target electronic device based on the multiple target ultra-wideband data packets, wherein the set of phase information includes multiple phase information corresponding to the target electronic device, and the phase information includes phase difference information when different antennas receive the target ultra-wideband data packets when the control device receives each target ultra-wideband data packet. The second determining module is used to determine a first distribution information of the phase information set based on the plurality of phase information, wherein the first distribution information is used to identify the degree of convergence of the plurality of phase information; The third determining module is used to determine, based on the first distribution information, multiple target phase information that satisfy the conditions of the first distribution information from the phase information set; The fourth determining module is used to determine the location information of the target electronic device based on the multiple target phase information; The control module is used to control the target electronic device when the position information of the target electronic device meets the control conditions, wherein the control conditions include at least one of the following: within the control range, minimum azimuth information, highest signal quality, and the last electronic device controlled.
9. A control device, characterized in that, The control device includes a processor and a memory; the memory stores at least one piece of program code, which is executed by the processor to implement the method for determining location information as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is executed by a processor to implement the method for determining location information as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Virtual reference tag-based RFID (Radio Frequency Identification) positioning method and system
CN107907856A
Positioning method based on signal data screening, electronic device and storage medium
CN107966678A
Screen state control method and device and electronic equipment
CN111859334A
Location detection
WO2019058015A1