Mobile terminal positioning method and device, vehicle and storage medium
By identifying and utilizing the ultrasonic signals collected by the in-car sound collection device, the UWB technology solves the problems of low positioning accuracy and high cost in the car, achieves precise positioning and cost reduction of mobile terminals, and is suitable for a wide range of mobile terminal equipment.
Patent Information
- Application Number
- CN202410846680.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
AI Technical Summary
Existing in-vehicle smartphone positioning solutions based on UWB technology have problems such as high hardware cost, limited scope of application, and low positioning accuracy, especially in complex in-vehicle environments.
By acquiring the sound wave signal collected by each sound collection device in the car, identifying the ultrasonic signal emitted by the mobile terminal, and determining the position of the mobile terminal based on the position of the sound collection device and the arrival time of the ultrasonic signal, utilizing the characteristics of ultrasonic signal propagation in the air. Precise positioning avoids the need to install multiple UWB modules.
It achieves precise positioning of mobile terminals and is applicable to all mobile terminals that can emit ultrasonic signals. It expands the scope of application, reduces the overall cost of the positioning system, and provides accurate positioning information in complex in-vehicle environments.
Smart Images

Figure CN118625259A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of mobile terminal positioning technology, and in particular, relates to a mobile terminal positioning method, device, vehicle and storage medium. Background Art
[0002] With the development of intelligent vehicle computers, the location of mobile terminals such as smartphones in the vehicle has become extremely important. It is not only the basis for connecting smartphones with vehicle computers, but also provides users with a smarter and more personalized vehicle experience.
[0003] Existing technologies mainly use ultra-wideband (UWB) technology to achieve smartphone positioning in the car. However, existing in-car smartphone positioning solutions based on UWB technology have some defects. For example, multiple UWB modules need to be installed in the vehicle, which increases additional hardware costs; smartphones need to have UWB functions to be applied to the positioning system, which limits the scope of application of in-car smartphone positioning based on UWB technology; in addition, when there are complex signals such as multipath propagation in the car, environmental factors in the car may affect the transmission and reception of UWB signals, thereby reducing positioning accuracy or stability. Summary of the invention
[0004] The embodiments of the present application provide a mobile terminal positioning method, device, and storage medium, which can solve the problem of low positioning accuracy in current mobile terminal positioning solutions.
[0005] In a first aspect, an embodiment of the present application provides a mobile terminal positioning method, including:
[0006] Acquire the sound wave signals collected by each sound collection device in the vehicle, and identify the ultrasonic signal emitted by the mobile terminal in the sound wave signals;
[0007] When the ultrasonic signal is identified, determining the time when the ultrasonic signal arrives at the sound collection device;
[0008] The position of the mobile terminal is determined according to the position of each of the sound collecting devices and the time when the ultrasonic signal reaches each of the sound collecting devices.
[0009] In a possible implementation manner of the first aspect, identifying the ultrasonic signal emitted by the mobile terminal in the sound wave signal includes:
[0010] Performing a cross-correlation operation on the acoustic wave signal and the beacon signal to obtain a cross-correlation function; the cross-correlation function represents the similarity between the collected acoustic wave signal and the beacon signal;
[0011] If there is a correlation peak value greater than a preset threshold in the cross-correlation function, it is determined that the sound wave signal contains the ultrasonic wave signal.
[0012] In a possible implementation manner of the first aspect, the mobile terminal positioning method further includes:
[0013] Acquiring a plurality of preset moving speeds of the mobile terminal;
[0014] Determining a corresponding relative frequency deviation coefficient according to each of the preset moving speeds;
[0015] Compensating the beacon signal based on each of the relative frequency deviation coefficients to obtain a corresponding compensated beacon signal;
[0016] Accordingly, the acoustic wave signal and the beacon signal are cross-correlated to obtain a cross-correlation function, including:
[0017] Performing a cross-correlation operation on the acoustic wave signal and each of the compensation beacon signals to obtain a corresponding target compensation function;
[0018] Comparing the correlation peaks in all the target compensation functions to determine the target compensation function corresponding to the maximum correlation peak;
[0019] The target compensation function corresponding to the maximum correlation peak is used as the cross-correlation function.
[0020] In a possible implementation manner of the first aspect, determining the time when the ultrasonic signal arrives at the sound collection device includes:
[0021] Taking all correlation peaks in the cross-correlation function that are greater than the preset threshold as target correlation peaks;
[0022] The time when the ultrasonic signal reaches the sound collecting device is determined according to the target correlation peak.
[0023] In a possible implementation manner of the first aspect, determining the time when the ultrasonic signal reaches each of the sound collecting devices according to the target correlation peak value includes:
[0024] The sampling time point corresponding to the maximum value of the target correlation peak value is used as the time when the ultrasonic signal arrives at each of the sound collection devices.
[0025] In a possible implementation manner of the first aspect, determining the time when the ultrasonic signal reaches each of the sound collecting devices according to the target correlation peak value includes:
[0026] Clustering all the correlation peaks of the target correlation peaks according to the time domain order of the sampling time points to obtain at least one cluster group;
[0027] Selecting a class with the earliest sampling time point from the class groups as the target class group;
[0028] The average value of the sampling time points of all the correlation peaks contained in the target cluster is calculated as the time when the ultrasonic signal arrives at each of the sound collecting devices.
[0029] In a possible implementation manner of the first aspect, determining the position of the mobile terminal according to the position of each of the sound collection devices and the time when the ultrasonic signal reaches each of the sound collection devices includes:
[0030] Calculating the time difference between the ultrasonic signal arriving at different sound collection devices according to the time when the ultrasonic signal arrives at each sound collection device;
[0031] Calculating the distance difference of the ultrasonic signal from the mobile terminal to each of the sound collecting devices according to the time difference and the propagation speed of the ultrasonic signal;
[0032] The position of the mobile terminal is determined according to the position of the sound collecting device and the distance difference.
[0033] In a second aspect, an embodiment of the present application provides a mobile terminal positioning device, including:
[0034] An acquisition module, used to acquire the sound wave signals collected by each sound collection device in the vehicle, and identify the ultrasonic signal emitted by the mobile terminal in the sound wave signals;
[0035] A first determination module is used to determine the time when the ultrasonic signal arrives at the sound collection device when the ultrasonic signal is identified;
[0036] The second determination module is used to determine the position of the mobile terminal according to the position of each of the sound collection devices and the time when the ultrasonic signal reaches each of the sound collection devices.
[0037] In a third aspect, an embodiment of the present application provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a mobile terminal positioning method as described in any one of the first aspects above is implemented.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the mobile terminal positioning method as described in any one of the above-mentioned first aspects is implemented.
[0039] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a vehicle, enables the vehicle to execute the mobile terminal positioning method described in any one of the first aspects above.
[0040] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0041] The mobile terminal positioning method provided in the embodiment of the present application first obtains the sound wave signal collected by each sound collection device in the vehicle, and identifies the ultrasonic signal emitted by the mobile terminal in the sound wave signal; secondly, when the ultrasonic signal is identified, the time when the ultrasonic signal arrives at the sound collection device is determined; finally, the position of the mobile terminal is determined according to the position of each sound collection device and the time when the ultrasonic signal arrives at each sound collection device. Therefore, the mobile terminal positioning method provided in the embodiment of the present application is applicable to all mobile terminals that can emit ultrasonic signals, and does not require the mobile terminal to meet the conditions of having UWB function, and has a wider range of applications; the embodiment of the present application utilizes the characteristics of ultrasonic signals propagating in the air, combined with the positions of multiple sound collection devices and the time when the ultrasonic signal emitted by the mobile terminal arrives at each sound collection device, it can realize the precise positioning of the mobile terminal, and can provide accurate positioning information even in a complex in-vehicle environment; in addition, the embodiment of the present application reuses the existing sound collection device on the vehicle, does not need to install multiple UWB modules in the vehicle, can avoid adding additional hardware costs, and thus reduce the overall cost of the positioning system.
[0042] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 It is a flowchart of a mobile terminal positioning method provided by an embodiment of the present application;
[0045] Figure 2is a schematic diagram of a time-frequency diagram corresponding to a digitized beacon signal provided in an embodiment of the present application;
[0046] Figure 3 It is a flowchart of another mobile terminal positioning method provided by an embodiment of the present application;
[0047] Figure 4 is a schematic diagram of frequency offset compensation for a beacon signal provided by an embodiment of the present application;
[0048] Figure 5a is a schematic diagram of determining a line-of-sight path according to a cross-correlation function provided by an embodiment of the present application;
[0049] Figure 5b is a schematic diagram of determining a line-of-sight path according to an amplified cross-correlation function provided by an embodiment of the present application;
[0050] Figure 6 A schematic diagram of a specific step flow of step S103 provided in an embodiment of the present application is shown;
[0051] Figure 7 It is a schematic diagram of the overall process of a mobile terminal positioning method provided by an embodiment of the present application;
[0052] Figure 8 is a structural diagram of a mobile terminal positioning device provided in an embodiment of the present application;
[0053] Fig. 9 It is a schematic diagram of the structure of a vehicle provided in one embodiment of the present application. DETAILED DESCRIPTION
[0054] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0055] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0056] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0057] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0058] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0059] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0060] With the development of intelligent vehicle computers, the location of mobile terminals such as smartphones in the car has become extremely important. The existing technology mainly uses ultra-wideband (UWB) technology to realize the positioning of smartphones in the car. However, the existing in-vehicle smartphone positioning solution based on UWB technology requires the installation of at least three UWB modules on the vehicle as positioning anchor points, and requires a UWB module on the smartphone. Since most car models and smartphones are not equipped with UWB modules, when using the in-vehicle smartphone positioning solution based on UWB technology, the vehicle and mobile terminal need to be equipped with UWB modules, resulting in additional hardware costs. In addition, the space inside the car is relatively closed and narrow, and this environment makes UWB signals extremely susceptible to multipath effects. Multipath effects will seriously interfere with the measurement of signal flight time (Time-of-Flight, ToA), resulting in a decrease in ranging accuracy, which in turn affects the accuracy of positioning. Therefore, the existing in-vehicle smartphone positioning solution based on UWB technology has the defects of high hardware cost, limited scope of application and low positioning accuracy.
[0061] Based on the above problems, the mobile terminal positioning method provided in the embodiment of the present application first obtains the sound wave signal collected by each sound collection device in the vehicle, and identifies the ultrasonic signal emitted by the mobile terminal in the sound wave signal; secondly, when the ultrasonic signal is identified, the time when the ultrasonic signal arrives at the sound collection device is determined; finally, the position of the mobile terminal is determined according to the position of each sound collection device and the time when the ultrasonic signal arrives at each sound collection device. Therefore, the mobile terminal positioning method provided in the embodiment of the present application is applicable to all mobile terminals that can emit ultrasonic signals, and does not require the mobile terminal to meet the conditions of having UWB function, and has a wider range of applications; the embodiment of the present application utilizes the characteristics of ultrasonic signals propagating in the air, combined with the position information of multiple sound collection devices and the time when the ultrasonic signal emitted by the mobile terminal arrives at each sound collection device, it can realize the precise positioning of the mobile terminal, and can provide accurate positioning information even in a complex in-vehicle environment; in addition, the embodiment of the present application reuses the existing sound collection device on the vehicle, does not need to install multiple UWB modules in the vehicle, can avoid adding additional hardware costs, and thus reduce the overall cost of the positioning system.
[0062] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0063] Figure 1 FIG. 1 shows a flow chart of a method for positioning a mobile terminal provided by an embodiment of the present application. Figure 1 , is a flow chart of a mobile terminal positioning method provided in an embodiment of the present application. As an example but not a limitation, the method may include steps S101 to S103.
[0064] Step S101: Acquire the sound wave signals collected by each sound collection device in the vehicle, and identify the ultrasonic wave signals emitted by the mobile terminal in the sound wave signals.
[0065] Among them, various models on the market are equipped with multiple microphones, such as 4 or 6, which are installed in different locations such as the driver's seat, the front passenger seat, the center console, the dashboard, the rear seat, the roof or the sunroof. Each microphone is used to collect various sound wave signals in the car environment, including navigation sound signals, human voice signals, vehicle engine and mechanical noise signals, and ultrasonic signals emitted by mobile terminals.
[0066] The sound collection device can be an electronic device such as a microphone, a recorder, a voice recorder, and an audio collector. As long as it can collect the ultrasonic signal emitted by the mobile terminal, the embodiment of the present application does not limit the specific type of the sound collection device. The mobile terminal can be an electronic device such as a smart phone, a tablet computer, a laptop computer, a smart speaker, and a wearable device. As long as it can emit an ultrasonic signal, the embodiment of the present application does not limit the specific type of the mobile terminal.
[0067] The embodiment of the present application is described by taking the sound collection device as a microphone and the mobile terminal as a smart phone as an example. Specifically, when each microphone collects multiple sound wave signals and transmits them to the vehicle's processor (main control processor), the processor analyzes and processes the multiple sound wave signals after receiving the multiple sound wave signals, and then identifies the ultrasonic signal emitted by the smart phone from the multiple sound wave signals, so that the processor can use it to determine the location of the smart phone.
[0068] Before the ultrasonic signal is emitted by the smartphone, it must first be modulated and generated. The ultrasonic signal can be modulated and generated directly on the smartphone by running a specific application or firmware on the smartphone to generate the ultrasonic signal, and then playing the ultrasonic signal through the speaker, that is, the ultrasonic signal emitted by the mobile terminal. In addition, the ultrasonic signal can also be modulated and generated on devices other than smartphones, and after the ultrasonic signal is modulated and generated, the ultrasonic signal is transmitted to the smartphone so that the ultrasonic signal can be played using the speaker of the smartphone. No limitation is imposed on the modulation generation method of the ultrasonic signal.
[0069] In some embodiments, the process of modulating and generating an ultrasonic signal may specifically include steps S201 to S203.
[0070] Step S201: determine the frequency range corresponding to the ultrasonic signal, modulate each frequency within the frequency range, and generate a single frequency signal corresponding to each frequency.
[0071] Specifically, the frequency range is selected from a frequency range supported by a smartphone, such as 18 kHz to 24 kHz.
[0072] For each frequency f in the frequency range of 18kHz to 24kHz i , generating the corresponding single-frequency signal s i (t) is:
[0073]
[0074] Where t represents time, represents the random phase, f i Indicates frequency.
[0075] Step S202: Superimpose all single-frequency signals generated within the frequency range to obtain an ultrasonic signal S(t):
[0076]
[0077] It should be noted that due to the random phase The random phase is generated by using the smartphone ID as a seed, so the random phase sequence generated by each smartphone is unique. Since the random phase sequence generated by each smartphone is unique, the ultrasonic signal played by each smartphone is also unique.
[0078] Step S203: digitize the analog waveform S(t) to obtain an audio file with a sampling rate of 48 kHz.
[0079] Specifically, since the ultrasonic wave signal S(t) is an analog waveform, the analog waveform S(t) needs to be digitized.
[0080] Define the digital signal s[k] as:
[0081]
[0082] Among them, f s Indicates the signal sampling rate, the default is 48kHz; s[k] indicates the codeword of the pulse signal; k indicates the length of the pulse, and the default value of k is 2048.
[0083] The digitized ultrasonic signal is defined as:
[0084] \bm{s}=\left[s[1],s[2],...,s[k]...,s[K]\right]^T
[0085] Therefore, the digitized ultrasonic signal \bm{s} will be saved as an audio file with a sampling rate of 48kHz. The corresponding time-frequency diagram after the ultrasonic signal is digitized is as follows Figure 2 shown.
[0086] The method of modulating and generating ultrasonic signals in the embodiment of the present application, firstly, because the sound generated by the ultrasonic signal is relatively uniform in frequency distribution, the discomfort that may be caused by sharp or single-frequency sound waves is avoided, so the ultrasonic signal has friendly acoustic characteristics. Secondly, because the ultrasonic signal emitted by each smartphone is unique, signal conflicts and interference between different smartphones can be avoided, which is conducive to accurately identifying and locating each smartphone. Finally, due to the uniqueness of the ultrasonic signal, it is difficult for a third-party attacker to generate the same ultrasonic signal to impersonate the ultrasonic signal emitted by a smartphone, so the ultrasonic signal also has a high degree of security and confidentiality.
[0087] After modulating and generating an ultrasonic signal and saving it as an audio file with a sampling rate of 48kHz, the audio file needs to be played through a smartphone. First, the smartphone will read the audio file and use the built-in digital-to-analog converter of the smartphone to convert the digital signal into an analog audio signal. This process ensures that the smartphone plays the ultrasonic signal at a constant sampling rate of 48kHz, thereby ensuring the codeword synchronization of the signal.
[0088] It should be noted that since the smartphone is equipped with two speakers with the same performance, located at the top and bottom of the smartphone respectively. If both speakers are activated at the same time to play a 48kHz audio file, additional multi-source multi-path interference will be introduced. In order to minimize this interference, in the embodiment of the present application, only the speakers at the top or bottom of the smartphone are activated to play a 48kHz audio file. By activating only one speaker, multi-source multi-path interference can be reduced and the playback effect of a 48kHz audio file can be improved.
[0089] In some embodiments, step S101 may include step S1011 and step S1012.
[0090] Step S1011: performing a cross-correlation operation on the acoustic wave signal and the beacon signal to obtain a cross-correlation function; the cross-correlation function represents the similarity between the collected acoustic wave signal and the beacon signal.
[0091] Specifically, the ultrasonic signal that the mobile terminal can send is stored in the vehicle's processor in advance, and the ultrasonic signal is used as a beacon signal. When the sound collection device collects the sound wave signal, in order to be able to identify the ultrasonic signal emitted by the smartphone from the multiple sound wave signals collected by the microphone, it is necessary to perform a cross-correlation operation on the multiple sound wave signals collected by the microphone and the beacon signal. The cross-correlation operation is a method for measuring the similarity between two signals. Specifically, a matched filter can be used to perform a cross-correlation operation, and the beacon signal S(t) is used as a matching template. By inputting the multiple sound wave signals collected by the microphone into the matched filter in the form of a stream, the matched filter will also output the correlation results in the form of a stream, also known as a cross-correlation function. The cross-correlation function represents the similarity between the collected sound wave signal and the beacon signal. The higher the similarity, the closer the sound wave signal is to the beacon signal.
[0092] Step S1012: If there is a correlation peak value greater than a preset threshold in the cross-correlation function, it is determined that the sound wave signal contains an ultrasonic wave signal.
[0093] Specifically, when two signals are very similar, the cross-correlation function will show a higher correlation peak value, which is close to 1. Therefore, only when there is a correlation peak value greater than a preset threshold in the cross-correlation function can it be determined that the sound wave signal may contain an ultrasonic signal emitted by a smartphone, that is, a beacon signal. Designers can set the specific value of the preset threshold value according to actual conditions. For example, the preset threshold value can be set to 0.75.
[0094] The embodiment of the present application sets an appropriate preset threshold value to screen the peak value of the cross-correlation function, thereby determining whether the sound wave signal contains an ultrasonic signal that matches the beacon signal. This method can improve the recognition accuracy of the ultrasonic signal in the sound wave signal.
[0095] In some embodiments, Figure 3 A flow chart of another mobile terminal positioning method provided in the present application is shown, see Figure 3 The mobile terminal positioning method may further include steps S104 to S106.
[0096] S104: Acquire multiple preset moving speeds of the mobile terminal.
[0097] Specifically, the position of the smartphone in the car may be moved. When the smartphone moves in the car, the ultrasonic signal emitted by the smartphone will be affected by the Doppler effect. The Doppler effect refers to the phenomenon that when the transmitter or receiver moves relative to the propagation medium, the frequency of the wave changes, that is, the movement of the smartphone causes the frequency of the ultrasonic signal to shift. In order to more accurately locate the position of the smartphone, the embodiment of the present application compensates for the Doppler effect. First, obtain multiple preset moving speeds of the smartphone, that is, preset the possible moving speeds of the smartphone. Exemplarily, the multiple moving speeds of the smartphone are preset as: {v1, v2, ..., v L}.
[0098] S105: Determine a corresponding relative frequency deviation coefficient according to each preset moving speed.
[0099] According to the speed v l , where l = 1, 2, ..., L, calculate the relative frequency deviation coefficient μ of the signal l for:
[0100]
[0101] Where c is the speed of sound, which is 343 m / s by default, and μ l There are L, which are:
[0102] S106: Compensate the beacon signal based on each relative frequency offset coefficient to obtain a corresponding compensated beacon signal.
[0103] Specifically, according to the frequency deviation coefficient μ l , compensate the beacon signal and obtain the corresponding compensated beacon signal S l (t) is:
[0104]
[0105] Because μ l There are L, corresponding to S l (t) There are L, which are:
[0106]
[0107] From S l The comparison between (t) and S(t) shows that the compensated beacon signal S l (t) Compared with the original beacon signal S(t), the frequency has changed by 1 / μ l times the relative frequency deviation.
[0108] Correspondingly, performing a cross-correlation operation on the sound wave signal and the beacon signal to obtain a cross-correlation function may include steps S1013 to S1015.
[0109] S1013: Perform a cross-correlation operation on the acoustic wave signal and each compensation beacon signal to obtain a corresponding target compensation function.
[0110] Specifically, As a matching template, the various sound wave signals collected by the microphone are cross-correlated with the compensation beacon signal S1(t) to obtain the target compensation function corresponding to S1(t) as the matching template; As a matching template, the various sound wave signals collected by the microphone are cross-correlated with the compensation beacon signal S2(t) to obtain the target compensation function corresponding to S2(t) as the matching template; As a matching template, the various sound wave signals collected by the microphone are matched with the compensation beacon signal S L (t) is cross-correlated, and the result is S L (t) is the target compensation function corresponding to the matching template, thus, L target compensation functions are obtained. Figure 4 A schematic diagram showing frequency offset compensation for a beacon signal is shown.
[0111] S1014: Compare the correlation peaks in all target compensation functions to determine the target compensation function corresponding to the maximum correlation peak.
[0112] Specifically, the peak value in the target compensation function represents the similarity between the ultrasonic signal emitted by the smartphone and the compensation beacon signal generated according to the preset moving speed. When the actual moving speed of the smartphone matches the preset moving speed, the similarity between the two signals is the highest, so the target compensation function will have the highest peak value.
[0113] The correlation peaks in all target compensation functions are compared to find the maximum correlation peak, and the target compensation function corresponding to the maximum correlation peak is determined. The compensation beacon signal corresponding to the target compensation function is the compensation beacon signal that can maximally compensate for the frequency offset caused by the Doppler effect among the L compensation beacon signals.
[0114] S1015: Using the target compensation function corresponding to the maximum correlation peak as the cross-correlation function.
[0115] Specifically, the target compensation function corresponding to the maximum correlation peak is used as the cross-correlation function, and the peak value of the cross-correlation function can represent the similarity between the compensated beacon signal that maximizes compensation for the frequency shift caused by the Doppler effect and the ultrasonic signal emitted by the smartphone.
[0116] In some embodiments, step S102 may specifically include step S1021 and step S1022.
[0117] Step S1021: taking all correlation peaks in the cross-correlation function that are greater than a preset threshold as target correlation peaks.
[0118] Specifically, the correlation peaks greater than the preset threshold may include one or more, and all the correlation peaks greater than the preset threshold in the cross-correlation function are taken as target correlation peaks. If there is only one correlation peak greater than the preset threshold, there is also only one target correlation peak. If there are multiple correlation peaks greater than the preset threshold, for example, five, there are also five target correlation peaks.
[0119] Step S1022: Determine the time when the ultrasonic signal reaches the sound collection device according to the target correlation peak value.
[0120] Specifically, there are multiple ways to determine the time when the ultrasonic signal arrives at the microphone. One way is to use the sampling time point corresponding to the maximum value of the target correlation peak as the time when the ultrasonic signal arrives at the microphone. Another way is to cluster the target correlation peaks using a clustering algorithm, and then determine the time when the ultrasonic signal arrives at the microphone based on the clustering results.
[0121] In some embodiments, step S1022 may specifically include step S10221.
[0122] Step S10221: The sampling time point corresponding to the maximum value in the target correlation peak is used as the time when the ultrasonic signal arrives at each sound collection device.
[0123] Specifically, if there is only one target correlation peak, the sampling time point corresponding to the target correlation peak is the time when the ultrasonic signal reaches the microphone. If there are multiple target correlation peaks, it is necessary to determine from the multiple target correlation peaks which one is the target correlation peak calculated based on the similarity between the ultrasonic signal emitted by the smartphone and the beacon signal. The specific implementation method is: compare the values of multiple target correlation peaks, use the target correlation peak corresponding to the maximum value as the peak calculated based on the similarity between the ultrasonic signal emitted by the smartphone and the beacon signal, and use the sampling time point corresponding to the maximum value as the time when the ultrasonic signal arrives at the microphone.
[0124] In some further embodiments, step S1022 may further specifically include steps S10222 to S10224.
[0125] Step S10222: clustering all correlation peaks in the target correlation peak according to the time domain order of the sampling time points to obtain at least one cluster group.
[0126] Specifically, when there are a large number of target correlation peaks, these target correlation peaks may have correlation peaks belonging to the same signal path, or correlation peaks under different paths with close arrival times, thereby introducing multipath interference. At this time, it is necessary to perform multipath analysis on the current target correlation peaks. Multipath analysis refers to distinguishing correlation peaks under different paths by analyzing information such as the propagation path and arrival time of the signal, or distinguishing and processing correlation peaks with different propagation delays under the same path.
[0127] The processing of multipath analysis includes preprocessing and correlation peak detection. The preprocessing is to take the absolute value of the cross-correlation function input to ensure that all values are non-negative, which is convenient for subsequent correlation peak detection. The correlation peak detection process is to identify the correlation peak in the cross-correlation function that is higher than the preset threshold, that is, to identify the target correlation peak.
[0128] After that, the correlation peak clustering process is entered. First, a sampling interval is preset, for example, 15 sampling time points are preset as a sampling time interval, and the target correlation peaks existing in the 15 sampling time points are clustered into the same group (same class) until all the correlation peaks in the target correlation peaks are clustered according to the time domain order of the sampling time points to obtain at least one class.
[0129] Step S10223: Select a class with the earliest sampling time point from the class groups as the target class group.
[0130] Specifically, since the line-of-sight path signal of the beacon signal is a significant peak in the cross-correlation function and will arrive at the microphone first, the line-of-sight path signal should appear in the front class, that is, the first cluster in the time domain order, so the class with the front sampling time point is selected from the class as the target class.
[0131] If the number of target-related peaks included in the classes clustered according to the sampling time interval exceeds a preset threshold, for example, the preset threshold is 7, when the number of target-related peaks included in a class exceeds 7, the class needs to be further divided, that is, every 7 target-related peaks are clustered into a new class. At this time, the target-related peaks included in the new class change. After clustering is completed, the class with the earliest sampling time point (that is, the first cluster) is selected from all classes as the target class.
[0132] Step S10224: Calculate the average of the sampling time points of all the correlation peaks included in the target cluster as the time when the ultrasonic signal arrives at each sound collection device.
[0133] Specifically, the average of the sampling time points of all the correlation peaks included in the target class is calculated as the arrival time of the identified line-of-sight path signal, that is, as the time when the ultrasonic signal arrives at each microphone. Figure 5a shows a schematic diagram of determining the line-of-sight path based on the cross-correlation function, Figure 5b A schematic diagram showing the determination of the line-of-sight path based on an enlarged cross-correlation function is shown. Figure 5a It can be seen from the figure that setting the preset threshold of the correlation peak to 0.75 can filter out most of the correlation peaks and only retain the target correlation peaks with correlation peaks greater than 0.75. Figure 5b As can be seen from the figure, the target correlation peaks are clustered into three categories. Based on the premise that the line-of-sight path is the first to reach the microphone, the first cluster corresponds to the line-of-sight path. The average value of the sampling time points of the first cluster is calculated, that is, (4128+4146) / 2=4137, as the time when the ultrasonic signal arrives at the microphone. Since there are multiple microphones, the time when the ultrasonic signal arrives at each microphone can be obtained.
[0134] In some embodiments, Figure 6 The specific step flow diagram of step S103 provided in the embodiment of the present application is shown in FIG. Figure 6 , step S103 may specifically include step S1031 to step S1033.
[0135] Step S1031: Calculate the time difference between the ultrasonic signal arriving at different sound collection devices according to the time when the ultrasonic signal arrives at each sound collection device.
[0136] Specifically, ToA iandToA j are the time when the ultrasonic signal reaches the i-th microphone and the j-th microphone respectively, then ToA i -ToA j That is, the time difference between the i-th microphone and the j-th microphone, where i,j∈{1,2,...,N} and i≠j.
[0137] Step S1032: Calculate the distance difference of the ultrasonic signal from the mobile terminal to each sound collection device according to the time difference and the propagation speed of the ultrasonic signal.
[0138] Specifically, the vehicle's instruction manual or technical documentation will describe in detail the layout and location of each device in the vehicle, including the microphone, so the locations of multiple microphones in the vehicle can be obtained by consulting the vehicle's instruction manual or technical documentation. The locations of multiple microphones in the vehicle can also be obtained in other ways. For example, the interior of the vehicle can be scanned and measured using sensor technology, such as a laser scanner or camera system, to obtain the location information of the microphones. In addition to the above examples, the locations of multiple microphones in the vehicle can also be obtained in other ways, and the specific method for obtaining the locations of multiple microphones in the vehicle is not limited here.
[0139] Therefore, the coordinates of the microphone position are known, and the coordinates of microphone n are M n (x n ,y n ,z n ), assuming that the mobile phone coordinates are P = (x p ,y p ,z p ), construct the following hyperbolic equations:
[0140]
[0141] Among them, |PM i -PM j | 2 represents the distance difference between the mobile phone and microphones i and j, while ToA i andToA j are the times (in sampling points) when the signal arrives at the i-th and j-th microphones, respectively. Since there are multiple microphone pairs, we will eventually get N(N-1) / 2 equations.
[0142] Step S1033: Determine the location of the mobile terminal according to the location of the sound collection device and the distance difference.
[0143] Specifically, by applying Newton's method to optimize and solve N(N-1) / 2 equations, the location coordinates of the smartphone can be calculated. Figure 7 The overall flow chart of the mobile terminal positioning method is shown in FIG. Figure 7 It can be seen that the ultrasonic signal needs to be modulated on the smartphone side and played through the speaker. On the vehicle side, microphones 1, 2, ..., and N are located at different positions, respectively collecting ultrasonic signals emitted by the smartphone, performing signal detection on the sound wave signals collected by each microphone, and obtaining the time ToA1, ToA2, ..., ToAN of the ultrasonic signal reaching each microphone through multipath analysis. Finally, the location of the smartphone is located based on the specific position of each microphone and the time ToA1, ToA2, ..., ToAN of the ultrasonic signal reaching each microphone.
[0144] It should be noted that in actual applications, if only the approximate seat position of the mobile phone in the car needs to be determined, the above mobile terminal positioning method can be simplified. Specifically, by comparing the arrival time difference, it can be identified which microphone receives the signal first. The seat closest to the microphone can be identified as the seat position of the mobile phone.
[0145] When the processor knows the location of the smartphone, it can send the location coordinates to the smartphone through a wireless communication link (such as WiFi or Bluetooth) to achieve driver connectivity, allowing users to accurately control the vehicle. For example, when a user adjusts the seat or air conditioning settings with a smartphone, the seat or air conditioning can automatically identify and adjust the corresponding seat or air conditioning based on the location of the phone. In addition, the location of the smartphone has also spawned many innovative human-computer interaction functions, such as assisting users in finding smartphones, determining whether the smartphone is inside or outside the car, and when the smartphone is close to the car screen, the screen can automatically display interactive components, further improving the user experience and the convenience of interaction.
[0146] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0147] Corresponding to the mobile terminal positioning method described in the above embodiment, Figure 8 : is a structural block diagram of a mobile terminal positioning device provided in an embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0148] Figure 8 FIG. 1 shows a schematic diagram of the structure of a mobile terminal positioning device provided by an embodiment of the present application. Figure 8 As shown, the mobile terminal positioning device includes:
[0149] An acquisition module 81 is used to acquire the sound wave signals collected by each sound collection device in the vehicle, and identify the ultrasonic wave signals emitted by the mobile terminal in the sound wave signals;
[0150] A first determination module 82 is used to determine the time when the ultrasonic signal arrives at the sound collection device when the ultrasonic signal is identified;
[0151] The second determining module 83 is used to determine the position of the mobile terminal according to the position of each of the sound collecting devices and the time when the ultrasonic signal reaches each of the sound collecting devices.
[0152] In some embodiments, the acquisition module 81 is further used to:
[0153] Performing a cross-correlation operation on the acoustic wave signal and the beacon signal to obtain a cross-correlation function; the cross-correlation function represents the similarity between the collected acoustic wave signal and the beacon signal;
[0154] If there is a correlation peak value greater than a preset threshold in the cross-correlation function, it is determined that the sound wave signal contains the ultrasonic wave signal.
[0155] In some embodiments, the mobile terminal positioning device further includes:
[0156] A preset speed acquisition module, used to acquire a plurality of preset moving speeds of the mobile terminal;
[0157] A coefficient determination module, used to determine a corresponding relative frequency deviation coefficient according to each of the preset moving speeds;
[0158] A compensation module, used to compensate the beacon signal based on each relative frequency deviation coefficient to obtain a corresponding compensated beacon signal;
[0159] Correspondingly, the acquisition module 81 is also used for:
[0160] Performing a cross-correlation operation on the acoustic wave signal and each of the compensation beacon signals to obtain a corresponding target compensation function;
[0161] Comparing the correlation peaks in all the target compensation functions to determine the target compensation function corresponding to the maximum correlation peak;
[0162] The target compensation function corresponding to the maximum correlation peak is used as the cross-correlation function.
[0163] In some embodiments, the first determining module 82 is further configured to:
[0164] Taking all correlation peaks in the cross-correlation function that are greater than the preset threshold as target correlation peaks;
[0165] The time when the ultrasonic signal reaches the sound collecting device is determined according to the target correlation peak.
[0166] In some embodiments, the first determining module 82 is further configured to:
[0167] The sampling time point corresponding to the maximum value of the target correlation peak value is used as the time when the ultrasonic signal arrives at each of the sound collection devices.
[0168] In some embodiments, the first determining module 82 is further configured to:
[0169] Clustering all the correlation peaks of the target correlation peaks according to the time domain order of the sampling time points to obtain at least one class;
[0170] Select a class with the earliest sampling time point from the classes as the target class;
[0171] The average value of the sampling time points of all the relevant peaks in the target class is calculated as the time when the ultrasonic signal arrives at each of the sound collection devices.
[0172] In some embodiments, the second determining module 83 is further configured to:
[0173] Calculating the time difference between the ultrasonic signal arriving at different sound collection devices according to the time when the ultrasonic signal arrives at each sound collection device;
[0174] Calculating the distance difference of the ultrasonic signal from the mobile terminal to each of the sound collecting devices according to the time difference and the propagation speed of the ultrasonic signal;
[0175] The position of the mobile terminal is determined according to the position of the sound collecting device and the distance difference.
[0176] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0177] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0178] Fig. 9 Schematic diagram of the structure of the vehicle provided in the embodiment of the present application. Fig. 9 As shown, the vehicle 9 of this embodiment includes: at least one processor 90 ( Fig. 9 Only one is shown in the figure) a processor, a memory 91, and a computer program 92 stored in the memory 91 and executable on the at least one processor 90, and when the processor 90 executes the computer program 92, the steps in any of the above-mentioned mobile terminal positioning method embodiments are implemented.
[0179] The vehicle may include, but is not limited to, a processor and a memory. A person skilled in the art will appreciate that Fig. 9 It is only an example of the vehicle 9 and does not constitute a limitation on the vehicle 9. The vehicle 9 may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0180] The processor 90 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0181] In some embodiments, the memory 91 may be an internal storage unit of the vehicle 9, such as a hard disk or memory of the vehicle 9. In other embodiments, the memory 91 may also be an external storage device of the vehicle 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the vehicle 9. Further, the memory 91 may also include both an internal storage unit of the vehicle 9 and an external storage device. The memory 91 is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program. The memory 91 may also be used to temporarily store data that has been output or is to be output.
[0182] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0183] An embodiment of the present application provides a computer program product. When the computer program product is run on a vehicle, the vehicle can implement the steps in the above-mentioned method embodiments when the computer program product is executed.
[0184] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0185] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0186] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0187] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A mobile terminal positioning method, It is characterized in that include: Acquire the sound wave signals collected by each sound collection device in the vehicle, and identify the ultrasonic signal emitted by the mobile terminal in the sound wave signals; When the ultrasonic signal is identified, determining the time when the ultrasonic signal arrives at the sound collection device; The position of the mobile terminal is determined according to the position of each of the sound collecting devices and the time when the ultrasonic signal reaches each of the sound collecting devices.
2. The mobile terminal positioning method according to claim 1, It is characterized in that The step of identifying the ultrasonic wave signal emitted by the mobile terminal in the sound wave signal includes: Performing a cross-correlation operation on the acoustic wave signal and the beacon signal to obtain a cross-correlation function; the cross-correlation function represents the similarity between the collected acoustic wave signal and the beacon signal; If there is a correlation peak value greater than a preset threshold in the cross-correlation function, it is determined that the sound wave signal contains the ultrasonic wave signal.
3. The mobile terminal positioning method according to claim 2, It is characterized in that The mobile terminal positioning method further includes: Acquiring a plurality of preset moving speeds of the mobile terminal; Determining a corresponding relative frequency deviation coefficient according to each of the preset moving speeds; Compensating the beacon signal based on each of the relative frequency deviation coefficients to obtain a corresponding compensated beacon signal; Accordingly, the acoustic wave signal and the beacon signal are cross-correlated to obtain a cross-correlation function, including: Performing a cross-correlation operation on the acoustic wave signal and each of the compensation beacon signals to obtain a corresponding target compensation function; Comparing the correlation peaks in all the target compensation functions to determine the target compensation function corresponding to the maximum correlation peak; The target compensation function corresponding to the maximum correlation peak is used as the cross-correlation function.
4. The mobile terminal positioning method according to claim 2, It is characterized in that Determining the time when the ultrasonic signal arrives at the sound collection device includes: Taking all correlation peaks in the cross-correlation function that are greater than the preset threshold as target correlation peaks; The time when the ultrasonic signal reaches the sound collecting device is determined according to the target correlation peak.
5. The mobile terminal positioning method according to claim 4, It is characterized in that The step of determining the time when the ultrasonic signal reaches each of the sound collecting devices according to the target correlation peak value includes: The sampling time point corresponding to the maximum value of the target correlation peak value is used as the time when the ultrasonic signal arrives at each of the sound collection devices.
6. The mobile terminal positioning method according to claim 4, It is characterized in that The step of determining the time when the ultrasonic signal reaches each of the sound collecting devices according to the target correlation peak value includes: Clustering all the correlation peaks of the target correlation peaks according to the time domain order of the sampling time points to obtain at least one cluster group; Selecting a cluster with the earliest sampling time point from the clusters as the target cluster; The average value of the sampling time points of all the correlation peaks in the target cluster is calculated as the time when the ultrasonic signal arrives at each of the sound collection devices.
7. The mobile terminal positioning method according to any one of claims 1 to 6, It is characterized in that The determining the position of the mobile terminal according to the position of each sound collection device and the time when the ultrasonic signal reaches each sound collection device comprises: Calculating the time difference between the ultrasonic signal arriving at different sound collection devices according to the time when the ultrasonic signal arrives at each sound collection device; Calculating the distance difference of the ultrasonic signal from the mobile terminal to each of the sound collecting devices according to the time difference and the propagation speed of the ultrasonic signal; The position of the mobile terminal is determined according to the position of the sound collecting device and the distance difference.
8. A mobile terminal positioning device, It is characterized in that include: An acquisition module, used to acquire the sound wave signals collected by each sound collection device in the vehicle, and identify the ultrasonic signal emitted by the mobile terminal in the sound wave signals; A first determination module is used to determine the time when the ultrasonic signal arrives at the sound collection device when the ultrasonic signal is identified; The second determination module is used to determine the position of the mobile terminal according to the position of each of the sound collection devices and the time when the ultrasonic signal reaches each of the sound collection devices.
9. A vehicle comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
