Terminal device positioning method and apparatus, electronic device, and readable storage medium
By compensating for the signal strength attenuation of the target vehicle's communication equipment, the positioning deviation caused by differences in terminal equipment hardware and electromagnetic interference was resolved, thus achieving accurate positioning of the terminal equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG GEELY HLDG GRP CO LTD
- Filing Date
- 2023-06-07
- Publication Date
- 2026-04-21
AI Technical Summary
In existing technologies, due to differences in hardware structure between different terminal devices and electromagnetic interference when the vehicle is parked, Bluetooth positioning algorithms may experience positioning deviations when integrated into the vehicle, affecting the positioning performance of the terminal devices.
By acquiring the signal strength attenuation value of the communication device on the target vehicle, signal strength compensation is performed. The terminal device is located using the standard distance corresponding to the signal strength compensation value. The positioning algorithm is integrated on the device side to avoid the influence of hardware differences and electromagnetic interference.
It achieves accurate positioning of terminal devices in an interference-free state, improves the positioning effect of terminal devices, and avoids positioning deviations caused by hardware differences and electromagnetic interference.
Smart Images

Figure CN116699582B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a terminal device positioning method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] With the continuous development of Bluetooth technology, more and more cars are equipped with Bluetooth positioning function. This means that the driver's terminal device broadcasts the signal, and the vehicle scans to obtain RSSI (Received Signal Strength Indication). The signal strength is then filtered, and based on the positioning algorithm integrated in the vehicle, the actual position of the driver relative to the vehicle is determined, thereby controlling the vehicle to perform functions such as unlocking, turning on lights, or turning on the car music.
[0003] Currently, relevant positioning algorithms are usually integrated on the vehicle side, meaning the vehicle performs positioning for different terminal devices. However, due to the differences in hardware structure of different terminal devices, the signal strength of different terminal devices varies. At the same time, when the vehicle is parked, it is susceptible to electromagnetic interference, which causes the signal strength between the vehicle and the terminal devices to attenuate, thus making it easy for the terminal devices to deviate in positioning. Therefore, the positioning effect of current terminal devices is poor. Summary of the Invention
[0004] The main objective of this application is to provide a terminal device positioning method, apparatus, electronic device, and readable storage medium, aiming to solve the technical problems of positioning effect of terminal devices in the prior art.
[0005] To achieve the above objectives, this application provides a terminal device positioning method, applied to a device to be positioned, wherein the device to be positioned is communicatively connected to a target vehicle, and the terminal device positioning method includes:
[0006] Obtain the signal strength attenuation value of the communication equipment installed on the target vehicle;
[0007] Based on the signal strength attenuation value, the actual signal strength value between the device to be located and the communication device is compensated to obtain the signal strength compensation value;
[0008] The device to be located is located using the standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated from the signal strength between the device to be located and the target vehicle measured under interference-free conditions.
[0009] To achieve the above objectives, this application also provides a terminal device positioning device, applied to a device to be positioned, wherein the device to be positioned is communicatively connected to a target vehicle, and the terminal device positioning device includes:
[0010] The acquisition module is used to acquire the signal strength attenuation value of the communication equipment installed on the target vehicle.
[0011] The compensation module is used to compensate the actual signal strength value between the device to be located and the communication device based on the signal strength attenuation value, so as to obtain a signal strength compensation value;
[0012] The positioning module is used to locate the device to be located by means of a standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated by means of the signal strength between the device to be located and the target vehicle measured under interference-free conditions.
[0013] This application also provides an electronic device, the electronic device comprising: at least one processor and a memory communicatively connected to the at least one processor, the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of the terminal device positioning method described above.
[0014] This application also provides a computer-readable storage medium storing a program for implementing a terminal device positioning method, wherein when the program for the terminal device positioning method is executed by a processor, it implements the steps of the terminal device positioning method as described above.
[0015] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the terminal device positioning method described above.
[0016] This application provides a terminal device positioning method, apparatus, electronic device, and readable storage medium, namely, obtaining the signal strength attenuation value of a communication device installed on a target vehicle; compensating the actual signal strength value between the device to be positioned and the communication device based on the signal strength attenuation value to obtain a signal strength compensation value; and positioning the device to be positioned using a standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated from the signal strength between the device to be positioned and the target vehicle measured under interference-free conditions.
[0017] This application first obtains the signal strength attenuation value of the communication device installed on the target vehicle when locating the device to be located. Then, it compensates for the actual signal strength value between the device to be located and the communication device by using the signal strength attenuation value to obtain the signal strength compensation value. Then, it locates the device to be located by using the standard distance corresponding to the signal strength compensation value. That is, by specifically compensating for the actual signal strength value between the device to be located and the communication device, the standard distance calculated from the signal strength between the device to be located and the target vehicle under interference-free conditions is obtained, thereby accurately locating the actual position of the device to be located corresponding to the target vehicle.
[0018] Since the signal strength compensation value is obtained by compensating the communication device and the device to be located based on the signal strength attenuation value of the communication device, the signal strength compensation value can objectively reflect the actual signal strength between the device to be located and the target vehicle. This achieves the goal of accurately locating the device to be located by calculating the standard distance based on the actual signal strength under interference-free conditions. At the same time, since the above positioning method is applied to the device side, that is, the positioning algorithm is integrated into the device side, the positioning offset caused by the differences in hardware structure of different terminal devices is avoided. In other words, the goal of accurately locating the device to be located can be achieved by relying on the positioning algorithm integrated on the device side to specifically compensate for the signal strength attenuation.
[0019] Based on this, this application obtains the signal strength attenuation value of the communication device installed on the target vehicle through the device to be located, and compensates for the actual signal strength value between the device to be located and the communication device according to the signal strength attenuation value to obtain the signal strength compensation value. That is, it overcomes the technical defects that the signal strength of different terminal devices is different due to the differences in hardware structure of different terminal devices. At the same time, when the vehicle is in a parked state, it is susceptible to electromagnetic interference, which leads to the signal strength attenuation between the vehicle and the terminal device, and thus makes the terminal device prone to positioning deviation. Therefore, it improves the positioning effect of the terminal device. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1A schematic flowchart of the terminal device positioning method provided in Embodiment 1 of this application;
[0023] Figure 2 A schematic diagram of a positioning scenario for the terminal device positioning method provided in Embodiment 1 of this application;
[0024] Figure 3 A schematic diagram of the overall process for locating the terminal device in the vehicle control method provided in Embodiment 1 of this application;
[0025] Figure 4 This is a flowchart illustrating the terminal device positioning method provided in Embodiment 2 of this application;
[0026] Figure 5 This is a schematic diagram of the terminal device positioning device provided in Embodiment 3 of this application;
[0027] Figure 6 This is a schematic diagram of the structure of the electronic device provided in Embodiment 4 of this application.
[0028] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0029] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0030] Example 1
[0031] First, it should be understood that current Bluetooth key-based positioning technologies integrate the algorithm on the vehicle side. That is, the vehicle broadcasts signals to the surrounding environment via an installed Bluetooth antenna. Upon detecting a mobile terminal device that meets the legitimacy verification criteria, the vehicle controls corresponding functions based on the signal strength between the mobile terminal device and the vehicle. For example, the air purification function might be activated when the mobile terminal device is 10 meters away, and the vehicle locks when it is 3 meters away. However, due to hardware differences in mobile terminal devices, different devices receive varying signal strengths at the same location, leading to variations in the accuracy of the positioning algorithm based on the mobile terminal device's signal strength at the same location. Positioning errors can occur with terminal devices. For example, suppose mobile terminal device A and mobile terminal device B are located in the same location. Due to hardware differences, the signal strength between mobile terminal device A and mobile terminal device B and the vehicle terminal is inconsistent. Consequently, the distances calculated based on existing positioning algorithms are inconsistent. That is, the positioning algorithm integrated into the vehicle terminal makes inaccurate calculations of the specific locations of different mobile terminal devices at the same location. At the same time, electromagnetic interference in the parking area of the vehicle terminal will also interfere with the signal strength between the vehicle terminal and the mobile terminal devices, thus causing positioning errors for the mobile terminal devices. Therefore, there is an urgent need for a method to improve the positioning effect of terminal devices.
[0032] This application provides a terminal device positioning method, applied to a device to be located, wherein the device to be located is communicatively connected to a target vehicle. In an embodiment of the terminal device positioning method of this application, referring to... Figure 1 The terminal device positioning method includes:
[0033] Step S10: Obtain the signal strength attenuation value of the communication device installed on the target vehicle;
[0034] Step S20: Based on the signal strength attenuation value, compensate the actual signal strength value between the device to be located and the communication device to obtain a signal strength compensation value;
[0035] Step S30: The device to be located is located using the standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated from the signal strength between the device to be located and the target vehicle measured under interference-free conditions.
[0036] In this embodiment, it should be noted that, although Figure 1The logical order is shown, but in some cases, the steps shown or described may be performed in a different order than that shown here. The terminal device positioning method is applied to the device to be located, which is communicatively connected to the target vehicle, and information can be transmitted between them. The target vehicle is equipped with three or more communication devices, which are used to broadcast signals. Specifically, these devices can be Bluetooth antennas or devices with Bluetooth broadcasting capabilities. The spectrum range of the communication devices can be 2.402 GHz to 2.480 GHz, divided into 40 channels. The communication devices can broadcast signals in the form of messages, which can consist of a preamble, access address, protocol data unit, and CRC (Cyclic Redundancy Check) check code. The different communication devices have the same specifications so that different communication devices can broadcast signals with fixed signal strengths. The positions of the communication devices can be set according to actual usage requirements. For example, in one feasible approach, the interval between each pair of the three communication devices is the same. Since the signal radiation intensity of the three communication devices is similar to a circle, the intersection point can be accurately determined by the three-point positioning method, and the device to be located can be accurately positioned based on the position of the intersection point.
[0037] Additionally, it should be noted that the device to be located is used to represent the device waiting for terminal device positioning, specifically a mobile phone or personal PC, etc. The target vehicle is used to represent the vehicle that the driver carrying the device to be located wants to operate. The signal strength attenuation value is used to represent the signal strength value attenuated due to different frequency band signals. The signal strength attenuation has an attenuation direction. The actual signal strength value is used to represent the signal strength value between the device to be located and the communication device after they are connected, based on the current location of the device to be located. For example, in one feasible method, three communication devices x, y, and z are set on the target vehicle. Communication devices x, y, and z broadcast signals to the surrounding area. Due to the difference in the setting positions of the three, the signal strength received by the device to be located is different from that of the three. Thus, three circles are established with different signal strengths as radii. The intersection of the three circles is the actual distance between the target vehicle and the device to be located.
[0038] Additionally, it should be noted that the standard distance is calculated from the signal strength between the device to be located and the target vehicle measured under interference-free conditions. The specific calculation formula can be found in existing technology and will not be repeated here. Interference-free conditions refer to the state where there is no interference from other frequency band signals. After obtaining the standard distance, the device to be located can be accurately located according to the position transformation relationship. For example, in one feasible method, assuming the center point coordinates of the target vehicle are (x0, y0, z0), the coordinates of the device to be located are (x1, y1, z1) obtained according to the standard distance, and the position of the device to be located can be accurately described.
[0039] As an example, steps S10 to S30 include: receiving a signal strength attenuation value from a communication device installed on the target vehicle, transmitted by the target vehicle; measuring the actual signal strength value between the device to be located and the communication device using a signal strength measuring device for the device to be located; using the sum of the signal strength attenuation value and the actual signal strength value as the signal strength compensation value; determining the standard distance corresponding to the signal strength compensation value; and locating the device to be located based on the standard distance, wherein the standard distance is calculated from the signal strength between the device to be located and the target vehicle measured under interference-free conditions.
[0040] This application embodiment receives the signal strength attenuation value of the communication device installed on the target vehicle and sends it to the target vehicle. Then, it obtains a signal strength compensation value based on the signal strength attenuation value. Based on the signal strength compensation value, it determines the standard distance calculated from the signal strength between the device to be located and the target vehicle under interference-free conditions. Since the signal strength compensation value compensates for the signal strength interference between the device to be located and the target vehicle, the standard distance can objectively reflect the actual distance between the device to be located and the target vehicle. Furthermore, by deploying positioning-related algorithms on the device to be located, the vehicle and the device to be located can switch master and slave identities when performing terminal device positioning, while avoiding interference from other frequency band signals between the signal strength of the device to be located and the communication device. Therefore, it overcomes the positioning deviation caused by hardware differences between devices and external interference when positioning the device to be located through the vehicle, thus improving the positioning effect of the terminal device.
[0041] The communication device includes a master communication device and a slave communication device. The step of obtaining the signal strength attenuation value of the communication device installed on the target vehicle includes:
[0042] Step A10: Obtain a signal strength array composed of the actual strength values of the access signals between the communication master device and the communication slave device;
[0043] Step A20: Based on the signal attenuation standard array, perform differential comparison on the signal strength array to obtain the signal strength attenuation array;
[0044] Step A30: Select the signal strength attenuation value from the signal strength attenuation array.
[0045] In this embodiment, it should be noted that the communication equipment includes a master communication device and a slave communication device. The master communication device is used to characterize the communication device broadcasting the signal during the current signal strength measurement, and the slave communication device is used to characterize the communication device receiving the broadcast signal during the current signal measurement. That is, the communication device on the target vehicle can act as either a master or a slave communication device. For example, in one feasible implementation, assuming that four communication devices M1, M2, M3, and M4 are installed on the target vehicle, when M1 is the master communication device, the measured dB is... 12 dB 13 and dB 14 Among them, dB 12 The signal strength value between communication device M1 and communication device M2, in dB. 13 The signal strength value between communication device M1 and communication device M3, in dB. 14 The signal strength value between communication devices M1 and M4 is given by the communication equipment, and so on, to obtain the dB value. 21 dB 23 dB 24 dB 31 dB 32 dB 34 dB 41 dB 42 and dB 43 , of which dB 12 dB 13 dB 14 dB 21 dB 23 dB 24 dB 31 dB 32 dB 34 dB 41 dB 42 and dB 43 The signal strength table formed by these two devices is a signal strength array. Therefore, the signal strength array is used to represent the set of signal strength values consisting of the actual strength values of the access signals between the communication master device and the communication slave device. The signal strength value between the communication master device and any communication slave device can be referred to as the actual strength value of the access signal.
[0046] Additionally, it should be noted that the signal attenuation standard array is a set of standard values for signal attenuation of communication devices. The standard values for signal attenuation are used to characterize the signal strength attenuation value of the communication master device in the direction of the communication slave device. The set of signal strength attenuation values of the communication master device in the direction of the communication slave device can be obtained by differential comparison, i.e., the strength attenuation array. Then, the desired signal strength attenuation value can be selected from the signal strength attenuation array.
[0047] As an example, steps A10 to A30 include: acquiring the actual signal strength values of the access signals between the communication master device and the communication slave device respectively; establishing a signal strength array based on each of the actual access signal strength values; obtaining a signal strength attenuation array by differential comparison between the signal strength array and the signal attenuation standard array; and selecting the signal strength attenuation value from the signal strength attenuation array. Since the signal strength attenuation array contains the signal strength attenuation value of the communication master device in the direction of the communication slave device, when the direction between the target vehicle and the device to be located is the direction of the communication master device and the communication slave device, the signal strength attenuation value can be directly obtained through differential comparison, instead of still relying on the target vehicle to provide the signal strength attenuation value. That is, by adding a differential algorithm to the device to be located to calculate the signal strength attenuation value, the amount of information processing required for the target vehicle during the terminal device positioning process is further reduced.
[0048] Prior to the step of performing a differential comparison on the signal strength array based on the signal attenuation standard array to obtain the signal strength attenuation array, the terminal device positioning method further includes:
[0049] Step B10: Obtain the standard value of the access signal strength between the communication master device and the communication slave device, wherein the standard value of the access signal strength is the access signal strength value when both the communication master device and the communication slave device are in an interference-free state;
[0050] Step B20: Subtract the standard value of the access signal strength from the fixed signal strength value of the communication device to obtain the standard value of signal attenuation;
[0051] Step B30: Establish a signal attenuation standard array based on the signal attenuation standard value.
[0052] In this embodiment, it should be noted that the signal attenuation standard array can be established through relevant calculations before locating the terminal device to be located. The standard value for access signal strength is the access signal strength value when both the master and slave communication devices are in an interference-free state. The fixed signal strength value is used to characterize the initial signal strength value of the communication device, and can be specifically determined by the device specifications of the communication device. For example, in one feasible implementation, it is assumed that the fixed signal strength value of the communication device is dB. m Then dB m -dB 12 dB m -dB 13 dB m -dB 14 dB m -dB 21 dB m -dB 23dB m -dB 24 dB m -dB 31 dB m -dB 32 dB m -dB 34 dB m -dB 41 dB m -dB 42 and dB m -dB 43 All of these are standard values for signal attenuation. The signal strength table established based on the above standard values for signal attenuation is a standard array for signal attenuation.
[0053] As an example, steps B10 to B30 include: obtaining a standard value of access signal strength between the communication master device and the communication slave device, wherein the standard value of access signal strength is the access signal strength value when both the communication master device and the communication slave device are in an interference-free state; using the difference between the standard value of access signal strength and the fixed signal strength value of the communication device as a signal attenuation standard value; and establishing a signal attenuation standard array using the signal attenuation standard value.
[0054] The step of locating the device to be located using the standard distance corresponding to the signal strength compensation value includes:
[0055] Step C10: Based on the signal strength compensation value, look up the corresponding standard distance in the preset distance mapping table;
[0056] Step C20: Locate the device to be located according to the standard distance.
[0057] In this embodiment, it should be noted that the preset distance mapping table is used to store the mapping relationship between the signal strength transmitted by the communication device installed on the target vehicle, measured by the test equipment, and the calculated distance between the test equipment and the target vehicle under interference-free conditions. For example, in one implementable method, the communication devices installed on the target vehicle include N1, N2, N3, and N4, and the distances between the test equipment and the target vehicle are l0, l1, l2, and l3, respectively. At a distance of l0, the measured signal strengths of N1, N2, N3, and N4 are dB0, dB1, dB3, and dB4, respectively; at a distance of l1, the measured signal strengths of N1, N2, N3, and N4 are dB5, dB6, dB7, and dB8, respectively; and at a distance of l2, the measured signal strengths of N1, N2, N3, and N4 are dB9, dB1, dB2, and dB4, respectively. 10 dB 15 and dB 16Then, a preset distance mapping table is established based on the relationship between the signal strength and the distance.
[0058] As an example, steps C10 to C20 include: querying the corresponding standard distance in a preset distance mapping table using the signal strength compensation value as an index; and locating the device to be located by inputting the standard distance into a preset positioning formula. Since the standard distance can be obtained through the mapping relationship between the signal strength compensation value and the standard distance, after obtaining the signal strength compensation value, it is unnecessary to continue calculating the distance between the device to be located and the target vehicle based on the signal strength compensation value. Therefore, the amount of information processing required when locating the device to be located is reduced.
[0059] The signal strength attenuation value includes a first signal strength attenuation value and a second signal strength attenuation value. The step of compensating the actual signal strength value between the device to be located and the communication device based on the signal strength attenuation value to obtain a signal strength compensation value includes:
[0060] Step D10: Obtain the signal transmission direction between the device to be located and the target vehicle;
[0061] Step D20: According to the signal transmission direction, the first signal strength attenuation value and the second signal strength attenuation value are angularly fused to obtain the target signal strength attenuation value;
[0062] Step D30: Based on the target signal strength attenuation value, compensate the actual signal strength value between the device to be located and the communication device to obtain a signal strength compensation value.
[0063] In this embodiment, it should be noted that the first signal strength attenuation value and the second signal strength attenuation value are used to characterize the signal strength attenuation value in different directions, and the signal transmission direction is used to characterize the connection direction between the device to be located and the target vehicle. When deploying the communication device of the target vehicle, the signal strength attenuation value between different communication devices can be obtained, with reference to... Figure 2 , Figure 2This diagram illustrates a positioning scenario for a terminal device. 11 represents a user carrying the device to be located, 12 represents the device to be located, 13 represents communication devices deployed at different locations on the target vehicle, and 14 represents the target vehicle. Here, 'a' represents the lateral distance between different communication devices, and 'b' represents the longitudinal distance between different communication devices. By inputting 'a' and 'b' into a trigonometric function formula, the relative arrangement angles between the different communication devices can be obtained. Furthermore, using these relative arrangement angles, the signal transmission direction between the device to be located and the target vehicle (excluding the direction between the master and slave communication devices) can be fused to obtain the signal strength attenuation value in the signal transmission direction. The target signal strength attenuation value characterizes the signal strength attenuation value in the signal transmission direction.
[0064] Additionally, it should be noted that under normal vehicle usage conditions (with external interference), the main communication device can read the signal strength values of different slave communication devices. Then, by comparing these values with the signal attenuation standard values in the signal attenuation standard array, the signal attenuation value of each communication device in the corresponding signal broadcast direction can be calculated. Furthermore, by combining the relative arrangement angle with trigonometric functions, the signal strength attenuation value in the signal transmission direction between the device to be located and the target vehicle can be obtained. The calculated signal strength attenuation value is then used as a factor to compensate for the actual signal strength value between the device to be located and the communication device, thereby accurately calculating the distance between the device to be located and the target vehicle.
[0065] As an example, steps D10 to D30 include: determining the signal transmission direction between the device to be located and the target vehicle; calculating the relative arrangement angles between different communication devices on the target vehicle based on the lateral and longitudinal distances between the master communication device and the slave communication device; inputting the relative arrangement angles into a preset trigonometric function calculation formula to fuse the first signal strength attenuation value and the second signal strength attenuation value to obtain the target signal strength attenuation value in the signal transmission direction; and using the sum of the target signal strength attenuation value and the actual signal strength value as the signal strength compensation value. Since the signal transmission direction between the device to be located and the target vehicle is not in the direction of the master communication device and the slave communication device, the signal strength attenuation values in different directions can be fused based on the relative arrangement angles between the different communication devices to obtain the target signal strength attenuation value in the signal transmission direction. Furthermore, the actual signal strength value between the device to be located and the communication device can be compensated using the target signal strength attenuation value. This achieves the goal of accurately compensating the actual signal strength value between the device to be located and the target vehicle without limiting the signal transmission direction, thus reducing the limitations of accurate positioning of terminal devices.
[0066] The terminal device positioning method further includes, after the step of locating the device to be located using the standard distance corresponding to the signal strength compensation value:
[0067] Step E10: Obtain the device positioning result of the device to be located;
[0068] Step E20: Send the device location result to the target vehicle so that the target vehicle can perform the vehicle function corresponding to the device location result.
[0069] In this embodiment, it should be noted that after the terminal device to be located is located, the vehicle can be controlled to perform corresponding functions based on the actual location. For example, in one feasible method, the vehicle's air conditioning is activated to ventilate when the distance to the vehicle is 20 meters, a light show is played when the distance to the vehicle is 10 meters, and the vehicle is automatically unlocked when the distance to the vehicle is 5 meters. Here, the device positioning result is used to represent the positioning result of the device to be located, which can be the relative position of the device to be located from the target vehicle, etc. The vehicle function refers to the functions that the vehicle has. After receiving the device positioning result sent by the device to be located, the target vehicle will perform corresponding functions according to the relative position of the device to be located from the target vehicle represented by the result.
[0070] As an example, steps E10 to E20 include: obtaining the relative position of the device to be located from the target vehicle; sending the relative position of the device to be located to the target vehicle so that the target vehicle can perform the vehicle function corresponding to the relative position, wherein the relative position and the vehicle function can be a one-to-one mapping relationship.
[0071] In one feasible approach, after the device to be located establishes a communication connection with the target vehicle, the target vehicle performs a legitimacy verification step for the device to be located. Then, after the legitimacy verification is successful, the terminal device is positioned. Figure 3 , Figure 3 This diagram illustrates the overall process of terminal device positioning, where the action to be performed is the vehicle function performed by the target vehicle at the corresponding distance.
[0072] This application provides a terminal device positioning method, namely, obtaining the signal strength attenuation value of a communication device installed on a target vehicle; compensating the actual signal strength value between the device to be positioned and the communication device based on the signal strength attenuation value to obtain a signal strength compensation value; and positioning the device to be positioned using a standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated from the signal strength between the device to be positioned and the target vehicle measured under interference-free conditions.
[0073] In this embodiment, when locating the device to be located, the signal strength attenuation value of the communication device installed on the target vehicle is first obtained. Then, the actual signal strength value between the device to be located and the communication device is compensated using the signal strength attenuation value to obtain a signal strength compensation value. Then, the device to be located is located using the standard distance corresponding to the signal strength compensation value. That is, by specifically compensating the actual signal strength value between the device to be located and the communication device, the standard distance calculated from the signal strength between the device to be located and the target vehicle measured under interference-free conditions is obtained, thereby accurately locating the actual position of the device to be located corresponding to the target vehicle.
[0074] Since the signal strength compensation value is obtained by compensating the communication device and the device to be located based on the signal strength attenuation value of the communication device, the signal strength compensation value can objectively reflect the actual signal strength between the device to be located and the target vehicle. This achieves the goal of accurately locating the device to be located by calculating the standard distance based on the actual signal strength under interference-free conditions. At the same time, since the above positioning method is applied to the device side, that is, the positioning algorithm is integrated into the device side, the positioning offset caused by the differences in hardware structure of different terminal devices is avoided. In other words, the goal of accurately locating the device to be located can be achieved by relying on the positioning algorithm integrated on the device side to specifically compensate for the signal strength attenuation.
[0075] Based on this, this application obtains the signal strength attenuation value of the communication device installed on the target vehicle through the device to be located, and compensates for the actual signal strength value between the device to be located and the communication device according to the signal strength attenuation value to obtain the signal strength compensation value. That is, it overcomes the technical defects that the signal strength of different terminal devices is different due to the differences in hardware structure of different terminal devices. At the same time, when the vehicle is in a parked state, it is susceptible to electromagnetic interference, which leads to the signal strength attenuation between the vehicle and the terminal device, and thus makes the terminal device prone to positioning deviation. Therefore, it improves the positioning effect of the terminal device.
[0076] Example 2
[0077] Furthermore, referring to Figure 4 In another embodiment of this application, content that is the same as or similar to that in Embodiment 1 described above can be referred to the above description and will not be repeated hereafter. Based on this, before the step of obtaining the signal strength attenuation value of the communication device installed on the target vehicle, the terminal device positioning method further includes:
[0078] Step F10: Send a legality verification request carrying the device identity information of the device to be located to at least one device-associated vehicle, so that each of the device-associated vehicles can perform legality verification on the device to be located based on the device identity information.
[0079] Step F20: If a successful verification result is received from at least one of the vehicles associated with the device, then the target vehicle is selected from the vehicles associated with the device based on the historical positioning information of the device to be located.
[0080] In this embodiment, it should be noted that during the positioning process of the device to be located, since the device to be located can communicate with different vehicles, and different vehicles are parked in different designated locations in a certain area, for example, in one feasible approach, assuming that the driver carrying the device to be located owns two cars and the two cars are parked in adjacent parking spaces in a garage, when the driver goes to the garage to retrieve the car, he needs to select one of the two vehicles. Therefore, before positioning the device to be located, it is necessary to select the target vehicle that the driver wants to take for this trip. Thus, this embodiment of the application, for scenarios similar to the above, introduces a legality verification process and historical positioning information to select the target vehicle in a certain area.
[0081] Additionally, it should be noted that the device-associated vehicle communicates with the device to be located. The device-associated vehicle is used to represent the vehicle associated with the device to be located. Specifically, it can be a vehicle whose owner has the right to use it, or a vehicle whose owner does not have the right to use it. For vehicles whose owner does not have the right to use it, verification can be performed using the device identity information of the device to be located to filter out non-target vehicles. The device identity information is used to represent the identity of the device, specifically it can be a device number, device name, or device owner identity, etc. The legality verification request is used to verify the legality of the device to be located connected to the device-associated vehicle. For example, in one feasible method, the legality verification of the device to be located can be determined by comparing whether the standard identity information stored in the device-associated vehicle matches the device identity information carried by the device to be located.
[0082] Additionally, it should be noted that a successful verification result indicates that the device has passed the legality verification. If the device to be located passes the legality verification of a vehicle associated with the device, the vehicle associated with the device can be directly used as the target vehicle. The positioning algorithm integrated into the device to be located will then locate the device based on the distance between the vehicle associated with the device and the target vehicle. If the device to be located passes the legality verification of multiple vehicles associated with the device, the target vehicle will be selected from the multiple vehicles associated with the device using the historical positioning information stored in the device to be located. The historical positioning information is used to represent historical positioning records. Specifically, it can be the vehicle number used to locate the device, the time of positioning with the device, or a positioning frequency table. The positioning frequency table records the frequency of terminal device positioning between the device to be located and different vehicles.
[0083] As an example, steps F10 to F20 include: sending a legality verification request carrying the device identity information of the device to be located to at least one device-associated vehicle, so that each of the device-associated vehicles can verify the legality of the device to be located by detecting whether the device identity information is consistent with the corresponding standard identity information; if a successful verification result is received from at least one of the device-associated vehicles, the device-associated vehicle with the highest frequency in the positioning frequency table of the device to be located is selected as the target vehicle.
[0084] Specifically, the step of verifying the legitimacy of the device to be located by detecting whether the device's identity information matches the corresponding standard identity information can be as follows:
[0085] If the device identity information is detected to be consistent with the corresponding standard identity information, the vehicle associated with the device determines that the verification result of the device to be located is a successful verification result. If the device identity information is detected to be inconsistent with the corresponding standard identity information, the vehicle associated with the device determines that the verification result of the device to be located is a failed verification result.
[0086] This application provides a method for selecting a target vehicle. Specifically, it involves sending a legality verification request carrying the device identity information of the device to be located to at least one device-associated vehicle. Each device-associated vehicle then verifies the legality of the device based on its device identity information. If a successful verification result is received from at least one device-associated vehicle, a target vehicle is selected from among the device-associated vehicles based on the historical location information of the device to be located. This application, by having different device-associated vehicles verify the legality of the device to be located, enables subsequent terminal device location operations to proceed only after the verification is legal. Simultaneously, by selecting a device-associated vehicle matching the driver carrying the device to be located from among the device-associated vehicles using the historical location information of the device to be located, the method reduces the need for multiple terminal device location checks to meet driver requirements. Therefore, it lays the foundation for improving the effectiveness of terminal device location.
[0087] Example 3
[0088] This application also provides a terminal device positioning apparatus, applied to a device to be positioned, wherein the device to be positioned is communicatively connected to a target vehicle, as described above. Figure 5 The terminal device positioning device includes:
[0089] The acquisition module 101 is used to acquire the signal strength attenuation value of the communication equipment installed on the target vehicle;
[0090] The compensation module 102 is used to compensate the actual signal strength value between the device to be located and the communication device according to the signal strength attenuation value, so as to obtain a signal strength compensation value;
[0091] The positioning module 103 is used to locate the device to be located by means of a standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated by means of the signal strength between the device to be located and the target vehicle measured in an interference-free state.
[0092] Optionally, the communication device includes a communication master device and a communication slave device, and the acquisition module 101 is further configured to:
[0093] Obtain a signal strength array composed of the actual strength values of the access signals between the communication master device and the communication slave device;
[0094] Based on the signal attenuation standard array, the signal strength array is differentially compared to obtain the signal strength attenuation array;
[0095] Select the signal strength attenuation value from the signal strength attenuation array.
[0096] Optionally, the terminal device positioning device is further used for:
[0097] Obtain the standard value of the access signal strength between the communication master device and the communication slave device, wherein the standard value of the access signal strength is the access signal strength value when both the communication master device and the communication slave device are in an interference-free state;
[0098] The signal attenuation standard value is obtained by subtracting the standard value of the access signal strength from the fixed signal strength value of the communication device.
[0099] Based on the stated signal attenuation standard values, establish a signal attenuation standard array.
[0100] Optionally, the compensation module 102 is further configured to:
[0101] Based on the signal strength compensation value, the corresponding standard distance is queried in the preset distance mapping table;
[0102] The device to be located is located based on the standard distance.
[0103] Optionally, the signal strength attenuation value includes a first signal strength attenuation value and a second signal strength attenuation value, and the compensation module 102 is further used for:
[0104] Obtain the signal transmission direction between the device to be located and the target vehicle;
[0105] Based on the signal transmission direction, the first signal strength attenuation value and the second signal strength attenuation value are angularly fused to obtain the target signal strength attenuation value;
[0106] Based on the target signal strength attenuation value, the actual signal strength value between the device to be located and the communication device is compensated to obtain a signal strength compensation value.
[0107] Optionally, the terminal device positioning device is further used for:
[0108] Obtain the device positioning result of the device to be located;
[0109] The device location result is sent to the target vehicle so that the target vehicle can perform the vehicle function corresponding to the device location result.
[0110] Optionally, the terminal device positioning device is further used for:
[0111] Send a legality verification request carrying the device identity information of the device to be located to at least one device-associated vehicle, so that each of the device-associated vehicles can perform legality verification on the device to be located based on the device identity information;
[0112] If a successful verification result is received from at least one of the vehicles associated with the device, then the target vehicle is selected from the vehicles associated with the device based on the historical location information of the device to be located.
[0113] The terminal device positioning device provided by this invention, employing the terminal device positioning method in the above embodiments, solves the technical problem of terminal device positioning effectiveness. Compared with the prior art, the beneficial effects of the terminal device positioning device provided by this invention are the same as those of the terminal device positioning method provided in the above embodiments, and other technical features in this terminal device positioning device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0114] Example 4
[0115] This invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the terminal device positioning method in Embodiment 1 above.
[0116] The following is for reference. Figure 6 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0117] like Figure 6 As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processor, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus.
[0118] Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. The communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.
[0119] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.
[0120] The electronic device provided by this invention, employing the terminal device positioning method in the above embodiments, solves the technical problem of terminal device positioning effectiveness. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiments of this invention are the same as those of the terminal device positioning method provided in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0121] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
[0122] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
[0123] Example 5
[0124] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the terminal device positioning method in the above embodiment.
[0125] The computer-readable storage medium provided in this embodiment of the invention may be, for example, a USB flash drive, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0126] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.
[0127] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: acquire a signal strength attenuation value of a communication device installed on a target vehicle; compensate for the actual signal strength value between the device to be located and the communication device based on the signal strength attenuation value, thereby obtaining a signal strength compensation value; and locate the device to be located using a standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated from the signal strength between the device to be located and the target vehicle measured under interference-free conditions.
[0128] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0129] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0130] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0131] The computer-readable storage medium provided by this invention stores computer-readable program instructions for executing the above-described terminal device positioning method, thus solving the technical problem of positioning effectiveness of terminal devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiments of this invention are the same as the beneficial effects of the terminal device positioning method provided in the above-described embodiments, and will not be repeated here.
[0132] Example 6
[0133] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the terminal device positioning method described above.
[0134] The computer program product provided in this application solves the technical problem of positioning effect of terminal device. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiments of the present invention are the same as the beneficial effects of the terminal device positioning method provided in the above embodiments, and will not be repeated here.
[0135] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
Claims
1. A method for locating a terminal device, characterized in that, The terminal device positioning method, applied to a device to be located and communicatively connected to a target vehicle, includes: Obtain the signal strength attenuation value of the communication equipment installed on the target vehicle; Based on the signal strength attenuation value, the actual signal strength value between the device to be located and the communication device is compensated to obtain the signal strength compensation value; The device to be located is located by using the standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated from the signal strength between the device to be located and the target vehicle measured under interference-free conditions; The signal strength attenuation value includes a first signal strength attenuation value and a second signal strength attenuation value. The step of compensating the actual signal strength value between the device to be located and the communication device based on the signal strength attenuation value to obtain a signal strength compensation value includes: Obtain the signal transmission direction between the device to be located and the target vehicle; Based on the signal transmission direction, the first signal strength attenuation value and the second signal strength attenuation value are angularly fused to obtain the target signal strength attenuation value; Based on the target signal strength attenuation value, the actual signal strength value between the device to be located and the communication device is compensated to obtain a signal strength compensation value.
2. The terminal device positioning method as described in claim 1, characterized in that, The communication equipment includes a master communication device and a slave communication device. The step of obtaining the signal strength attenuation value of the communication device installed on the target vehicle includes: Obtain a signal strength array composed of the actual strength values of the access signals between the communication master device and the communication slave device; Based on the signal attenuation standard array, the signal strength array is differentially compared to obtain the signal strength attenuation array; Select the signal strength attenuation value from the signal strength attenuation array.
3. The terminal device positioning method as described in claim 2, characterized in that, Before the step of performing a differential comparison on the signal strength array according to the signal attenuation standard array to obtain the signal strength attenuation array, the terminal device positioning method further includes: Obtain the standard value of the access signal strength between the communication master device and the communication slave device, wherein the standard value of the access signal strength is the access signal strength value when both the communication master device and the communication slave device are in an interference-free state; The signal attenuation standard value is obtained by subtracting the standard value of the access signal strength from the fixed signal strength value of the communication device. Based on the stated signal attenuation standard values, establish a signal attenuation standard array.
4. The terminal device positioning method as described in claim 3, characterized in that, The step of locating the device to be located using the standard distance corresponding to the signal strength compensation value includes: Based on the signal strength compensation value, the corresponding standard distance is queried in the preset distance mapping table; The device to be located is located based on the standard distance.
5. The terminal device positioning method as described in claim 1, characterized in that, After the step of locating the device to be located using the standard distance corresponding to the signal strength compensation value, the terminal device positioning method further includes: Obtain the device positioning result of the device to be located; The device location result is sent to the target vehicle so that the target vehicle can perform the vehicle function corresponding to the device location result.
6. The terminal device positioning method according to any one of claims 1 to 5, characterized in that, Prior to the step of obtaining the signal strength attenuation value of the communication device installed on the target vehicle, the terminal device positioning method further includes: Send a legality verification request carrying the device identity information of the device to be located to at least one device-associated vehicle, so that each of the device-associated vehicles can perform legality verification of the device to be located based on the device identity information; If a successful verification result is received from at least one of the vehicles associated with the device, the target vehicle is selected from the vehicles associated with the device based on the historical location information of the device to be located.
7. A terminal device positioning device, characterized in that, Applied to a device to be located, wherein the device is communicatively connected to a target vehicle, the terminal device positioning device includes: The acquisition module is used to acquire the signal strength attenuation value of the communication equipment installed on the target vehicle. The compensation module is used to compensate the actual signal strength value between the device to be located and the communication device based on the signal strength attenuation value, to obtain a signal strength compensation value. The signal strength attenuation value includes a first signal strength attenuation value and a second signal strength attenuation value. The compensation module is also used to obtain the signal transmission direction between the device to be located and the target vehicle; to perform angle fusion on the first signal strength attenuation value and the second signal strength attenuation value based on the signal transmission direction, to obtain a target signal strength attenuation value; and to compensate the actual signal strength value between the device to be located and the communication device based on the target signal strength attenuation value, to obtain the signal strength compensation value. The positioning module is used to locate the device to be located by means of a standard distance corresponding to the signal strength compensation value, wherein the standard distance is calculated by means of the signal strength between the device to be located and the target vehicle measured under interference-free conditions.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; A memory that is communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the steps of the terminal device positioning method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing a terminal device positioning method, which is executed by a processor to implement the steps of the terminal device positioning method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle based on electronic fence, electronic fence, and management server
CN108898821A