WO2023072207A1 - 一种位置的获取方法以及相关设备 - Google Patents

一种位置的获取方法以及相关设备 Download PDF

Info

Publication number
WO2023072207A1
WO2023072207A1 PCT/CN2022/128008 CN2022128008W WO2023072207A1 WO 2023072207 A1 WO2023072207 A1 WO 2023072207A1 CN 2022128008 W CN2022128008 W CN 2022128008W WO 2023072207 A1 WO2023072207 A1 WO 2023072207A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
terminal device
time
audio signal
location information
Prior art date
Application number
PCT/CN2022/128008
Other languages
English (en)
French (fr)
Inventor
彭红星
周轩
许强
王帅
李世明
龚岩
龙嘉裕
胡靓
徐杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023072207A1 publication Critical patent/WO2023072207A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3407Route searching; Route guidance specially adapted for specific applications
    • G01C21/3415Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3453Special cost functions, i.e. other than distance or default speed limit of road segments
    • G01C21/3492Special cost functions, i.e. other than distance or default speed limit of road segments employing speed data or traffic data, e.g. real-time or historical
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/18Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using ultrasonic, sonic, or infrasonic waves
    • G01S5/22Position of source determined by co-ordinating a plurality of position lines defined by path-difference measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of computer technology, in particular to a location acquisition method and related equipment.
  • the present application provides a location acquisition method and related equipment. According to the time interval between the first time set and the second time set, it is determined whether the terminal device is inside the vehicle or outside the vehicle, thereby providing a method for measuring the relative position of the user to the vehicle. In addition, the audio signal can be sent out through the built-in stereo in the vehicle, without adding additional hardware to the vehicle or terminal equipment, thereby avoiding additional costs.
  • the present application provides a location acquisition method, which can be used in the field of intelligent vehicles.
  • the method is applied to a position acquisition system, and the position acquisition system includes a vehicle and a terminal device.
  • the method includes: when the vehicle detects that a first trigger condition is satisfied, sending at least one target audio signal, wherein the target audio signal is used to determine the At least one arrival time corresponding to the target audio signal.
  • the vehicle sending at least one target audio signal includes: sending a plurality of target audio signals according to a first preset frequency; wherein, the plurality of target audio signals include a first detection signal and a second detection signal, and at least one arrival time includes a second detection signal.
  • a first time set corresponding to a detection signal and a second time set corresponding to a second detection signal includes at least one time when the first detection signal reaches the terminal device through direct radiation and/or reflection, the second time set Including at least one time when the second detection signal reaches the terminal device through direct light and/or reflection; further, the time when the vehicle sends the first detection signal may be earlier than the time when the vehicle sends the second detection signal, or the vehicle sends the first detection signal The time of may be later than the time when the vehicle sends the second detection signal; the first detection signal and the second detection signal are two different target audio signals, and arrive at the terminal device adjacently.
  • the vehicle acquires first location information corresponding to the terminal device, the first location information is used to indicate that the terminal device is located inside or outside the vehicle, and the time interval between the arrival times in the first time set and the second time set is used to determine the second - location information.
  • the vehicle sends multiple target audio signals. Since the space inside the vehicle is relatively closed, multiple audio signals obtained from one target audio signal can reach the terminal device in a concentrated manner after being directly irradiated and/or reflected. The space in the vehicle is relatively open compared to the space inside the vehicle. Multiple audio signals obtained after a target audio signal is directly irradiated and/or reflected will reach the terminal device in a scattered manner. time interval to determine whether the terminal device is inside or outside the vehicle, thus providing a solution for measuring the position of the user relative to the vehicle; in addition, the audio signal can be sent out through the built-in stereo in the vehicle without having to be on the vehicle or the terminal device Additional hardware is added to avoid additional overhead.
  • the target audio signal is a chirp signal or a ZC sequence signal.
  • the frequency band of the target audio signal may be 17KHZ-48KHZ, and optionally, the frequency band of the target audio signal may be 17KHZ-22KHZ.
  • the chirp signal or the ZC sequence signal is an energy-gathering signal
  • selecting the chirp signal or the ZC sequence signal as the target audio signal is conducive to accurately estimating at least one arrival time corresponding to each target audio signal, Therefore, it is beneficial to obtain accurate first position information.
  • the first location information indicates that the terminal device is located inside the vehicle; If the time interval between the arrival times in the first time set and the second time set is not within the preset time range, the first location information indicates that the terminal device is located outside the vehicle.
  • the determination factor of the preset time range includes the time interval between two adjacent target audio signals sent by the vehicle, and the time measurement unit adopted by the preset time range may include sampling points, milliseconds, seconds or other time measurement units, etc.
  • the preset time range may be d-c sampling points to d+e sampling points, and d sampling points are the time interval between two target audio signals sent by the vehicle.
  • the preset time range may be determined based on the time interval between two adjacent target audio signals sent by the vehicle, thereby providing a simple way of determining the preset time range.
  • the time interval between the arrival times in the first time set and the second time set includes: the latest time in the first time set and the earliest time in the second time set time interval between.
  • a specific implementation manner of obtaining the first location information of the terminal device by using the time interval between the arrival times in the first time set and the second time set is provided, which is simple in operation and easy to implement.
  • the vehicle when the vehicle detects any one or more of the following situations, it is deemed to have detected that the first trigger condition is met: the vehicle is detected to be parked; The distance between them satisfies the first distance condition; or, the first instruction is obtained, and the first instruction is used to trigger the vehicle to obtain the first location information.
  • the vehicle detects that the vehicle is stopped, which may include: the vehicle obtains the vehicle's speed, acceleration and angular velocity, and inputs the vehicle's speed, acceleration and angular velocity into the classification model to obtain a prediction output by the classification model category information.
  • the classification model is a model that has been trained, and the classification model may be embodied as a neural network or a non-neural network model.
  • the classification model can be embodied as a decision tree, a random forest, an extreme random tree, a support vector machine, a K-nearest (KNN) model, a logistic regression model, or other types of classification models, etc., which are not exhaustive here. .
  • the predicted category information indicates that the vehicle is in a stopped state or a moving state.
  • the predicted category information output by the classification model may include a first probability value and a second probability value, and the first probability value is used to indicate that the vehicle is in a stopped state. Probability, the second probability value is used to indicate the probability that the vehicle is in a moving state; in another implementation, the predicted category information output by the classification model may be the first value or the second value, when the predicted category information output by the classification model is When the value is the first value, it means that the vehicle is in a stopped state; when the predicted category information output by the classification model is the second value, it means that the vehicle is in a moving state.
  • the speed, acceleration and angular velocity of the vehicle are input into the classification model to determine whether the vehicle is in a stopped state or a moving state through the classification model, avoiding obtaining the state of the vehicle from the vehicle control system, and ensuring the control of the vehicle
  • the independence of the system in the process of measuring the target position information of the terminal equipment is conducive to improving the safety of the vehicle running process.
  • the present application provides a location acquisition method, which can be used in the field of intelligent vehicles.
  • the method is applied to a position acquisition system, and the position acquisition system includes a vehicle and a terminal device.
  • the method includes: acquiring at least one arrival time corresponding to at least one target audio signal when the terminal device detects that the second trigger condition is satisfied, and at least A target audio signal includes multiple target audio signals sent by the vehicle according to a preset frequency, the multiple target audio signals include a first detection signal and a second detection signal, and at least one arrival time includes a first time corresponding to the first detection signal
  • the set and the second time set corresponding to the second detection signal the first time set includes at least one time when the first detection signal reaches the terminal device through direct radiation and/or reflection, and the second time set includes the second detection signal through direct radiation and/or reflection or at least one time when the reflection reaches the end device.
  • the terminal device generates first location information corresponding to the terminal device according to the time interval between arrival times in the first time set and the second time set,
  • the first location information indicates that the terminal device is located inside the vehicle
  • the determining factors of the preset time range include the time interval between the vehicles sending two adjacent target audio signals; within the range, the first location information indicates that the terminal device is located outside the vehicle.
  • the terminal device generates the first location information corresponding to the terminal device according to the time interval between the arrival times in the first time set and the second time set, including: the terminal device generates the first location information corresponding to the terminal device according to The time interval between the latest time in the first time set and the earliest time in the second time set is used to generate the first location information.
  • the terminal device when the terminal device detects any one or more of the following situations, it is deemed to have detected that the second trigger condition is met: the vehicle is detected to be parked; or, the terminal device is detected to be connected to the vehicle The distance between them satisfies the first distance condition; or, it is detected that the displacement of the terminal device meets the preset displacement; or, a second instruction is obtained, and the second instruction is used to trigger the terminal device to obtain the first location information.
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a position acquisition system, and the position acquisition system includes a vehicle and a terminal device.
  • the method includes: the vehicle sends a plurality of target audio signals according to a second preset frequency; wherein, when the vehicle is in a moving state, one target audio signal It is used to determine a first arrival time of the target audio signal at the terminal device, and when the second trigger condition is satisfied, a target audio signal is used to determine a second arrival time of the target audio signal at the terminal device.
  • the first time of arrival may be at least one time of arrival corresponding to each target audio signal may only include one time of arrival; or, the aforementioned first time of arrival may be at least one time of arrival corresponding to each target audio signal
  • the earliest time of arrival; or, the aforementioned first time of arrival can be the latest time of arrival in at least one time of arrival corresponding to each target audio signal;
  • Other arrival times in the corresponding at least one arrival time the meaning of the second arrival time is similar to that of the first arrival time, the difference is that the first arrival time is obtained when the vehicle is in a moving state, and the second arrival time is obtained in the terminal device It is obtained after it is detected that the second trigger condition is met.
  • the vehicle acquires first location information corresponding to the terminal device, the first location information is used to indicate that the terminal device is located inside or outside the vehicle, and multiple first arrival times and at least one second arrival time are used to determine the first location information.
  • the multiple first arrival times are used to determine a first predicted time corresponding to the second arrival time, and the first predicted time indicates that when the terminal device is inside the vehicle, the target audio
  • the arrival time of the signal at the terminal device, the first predicted time and the second arrival time are used to determine the first location information.
  • the terminal device capable of continuously receiving audio signals since the terminal device capable of continuously receiving audio signals must be located in the vehicle when the vehicle is in a moving state, the first predicted time can be obtained according to the obtained multiple first arrival times, and then According to the generated first predicted time and the actual second arrival time, it is determined whether the terminal device is located inside or outside the vehicle, and only one speaker is needed to realize the detection of the first position information of the terminal device, which further reduces the implementation of this solution Difficulty, which is conducive to expanding the application scenarios of this scheme.
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a position acquisition system, and the position acquisition system includes a vehicle and a terminal device.
  • the method includes: when the vehicle is in a moving state, the terminal device acquires multiple first arrival times corresponding to multiple target audio signals, and a first An arrival time represents the time when a target audio signal arrives at the terminal device, and multiple target audio signals are sent by the vehicle according to a preset frequency; when it is detected that the second trigger condition is met, the terminal device obtains the time corresponding to at least one target audio signal.
  • At least one second arrival time according to the multiple first arrival times and at least one second arrival time, generate first location information corresponding to the terminal device, the first location information is used to indicate that the terminal device is located inside or outside the vehicle.
  • the terminal device generates the first location information corresponding to the terminal device according to multiple first arrival times and at least one second arrival time, including: the terminal device generates the first location information corresponding to the terminal device according to the multiple first arrival times Time determines a first predicted time corresponding to the second arrival time, the first predicted time indicates the time when the target audio signal arrives at the terminal device when the terminal device is located inside the vehicle; the terminal device , to generate the first location information.
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a location acquisition system, the location acquisition system includes a vehicle and a terminal device, the vehicle is equipped with at least three speakers, the at least three speakers are not located in a straight line, and the at least three speakers include the first speaker, the second speaker and the third speaker Three speakers, the method includes: the vehicle sends a first audio signal through a first speaker, and the first audio signal is used to determine the first signal strength of the first audio signal received by the terminal device; the vehicle sends a second audio signal through a second speaker, The second audio signal is used to determine the second signal strength of the second audio signal received by the terminal device; the vehicle sends the third audio signal through the third audio signal, and the third audio signal is used to determine the strength of the third audio signal received by the terminal device The third signal strength, the first signal strength, the second signal strength and the third signal strength are used to determine second location information corresponding to the terminal device, and the second location information is used to indicate
  • the farther the audio signal propagates the smaller the intensity of the audio signal received by the terminal device is.
  • the first signal strength, the second signal strength, and the third signal strength can respectively reflect the distance relationship between the terminal device and the first sound, the second sound, and the third sound, so it can be based on the first signal strength, the second signal strength and The third signal strength obtains the specific position of the terminal device outside the vehicle, which provides another implementation method of measuring the specific position of the terminal device outside the vehicle, and improves the implementation flexibility of this solution.
  • the second position information is used for the vehicle to determine the component with the closest distance to the terminal device from the multiple components included in the vehicle, so as to control the component with the closest distance to the terminal device Execute preset actions.
  • the component may be a car door, a car light, a trunk or other car components
  • the preset operation may be unlocking the car door, opening the car door, unlocking the trunk, turning on the car light, or other operations.
  • the second location information is used to provide users with more accurate services, which is conducive to improving the user stickiness of this solution.
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a location acquisition system, the location acquisition system includes a vehicle and a terminal device, the vehicle is equipped with at least three speakers, the at least three speakers are not located in a straight line, and the at least three speakers include the first speaker, the second speaker and the third speaker Three speakers, the method includes: the terminal device receives the first audio signal sent by the first speaker, receives the second audio signal sent by the second speaker, and receives the second audio signal sent by the third speaker; the terminal device receives the first audio signal according to the received first audio signal.
  • the first signal strength of the signal, the second signal strength of the received second audio signal, and the third signal strength of the received third audio signal generate second location information corresponding to the terminal device, and the second location information is used for Indicates where the terminal is located outside the vehicle.
  • the present application provides a location acquisition device, which can be used in the field of smart vehicles.
  • the position acquisition device is applied to a vehicle, the vehicle includes a position acquisition system, and the position acquisition system also includes a terminal device, and the device includes: a sending module, configured to send at least one target audio frequency when it is detected that the first trigger condition is met signal, wherein the target audio signal is used to determine at least one arrival time corresponding to the target audio signal;
  • the sending module is specifically configured to send a plurality of target audio signals according to a preset frequency, wherein the plurality of target audio signals include the first detection signal and the second detection signal, at least one arrival time includes a first time set corresponding to the first detection signal and a second time set corresponding to the second detection signal, the first time set includes the first detection signal through direct radiation and/or reflection
  • At least one time when the terminal device arrives, the second time set includes at least one time when the second detection signal reaches the terminal device through direct radiation and/or reflection;
  • an acquisition module configured to acquire first position information
  • the location acquisition device provided in the seventh aspect can also be used to execute the steps performed by the vehicle in various possible implementations of the first aspect.
  • the seventh aspect of the present application and various possible implementations of the seventh aspect
  • specific implementation steps, specific meanings of terms, and beneficial effects brought by each possible implementation manner reference may be made to the descriptions in various possible implementation manners in the first aspect, and details will not be repeated here.
  • the present application provides a location acquisition device, which can be used in the field of smart vehicles.
  • the position acquisition device is applied to a terminal device, the terminal device is included in the position acquisition system, and the position acquisition system also includes a vehicle, and the device includes: an acquisition module, configured to acquire information related to at least one At least one arrival time corresponding to the target audio signal, the at least one target audio signal includes a plurality of target audio signals sent by the vehicle according to a preset frequency, the plurality of target audio signals include a first detection signal and a second detection signal, at least one arrival time Including a first time set corresponding to the first detection signal and a second time set corresponding to the second detection signal, the first time set includes at least one time when the first detection signal reaches the terminal device through direct radiation and/or reflection, and the second The time set includes at least one time when the second detection signal arrives at the terminal device through direct radiation and/or reflection; the generation module is used to generate a time interval with the terminal device according to the time interval between the arrival times in the first
  • the device for obtaining the location provided in the eighth aspect can also be used to execute the steps performed by the terminal device in various possible implementations of the second aspect.
  • the eighth aspect of the application and various possible implementations of the eighth aspect For specific implementation steps, specific meanings of terms, and beneficial effects brought by each possible implementation mode, you can refer to the descriptions in various possible implementation modes in the second aspect, and details will not be repeated here.
  • the present application provides a location acquisition device, which can be used in the field of smart vehicles.
  • the position acquisition device is applied to a vehicle, and the vehicle includes a position acquisition system.
  • the position acquisition system also includes a terminal device.
  • the device includes: a sending module, which is used to send a plurality of target audio signals according to a preset frequency.
  • a target audio signal is used to determine a first arrival time of the target audio signal to the terminal device, and in the case of meeting the second trigger condition, a target audio signal is used to determine a second arrival time of the target audio signal to the terminal device.
  • Arrival time an acquisition module, configured to acquire first location information corresponding to the terminal device, the first location information is used to indicate that the terminal device is located inside or outside the vehicle, multiple first arrival times and at least one second arrival time are used for Determine the first location information.
  • the location acquisition device provided in the ninth aspect can also be used to execute the steps performed by the vehicle in various possible implementations of the third aspect.
  • the ninth aspect of the present application and various possible implementations of the ninth aspect
  • the present application provides a location acquisition device, which can be used in the field of smart vehicles.
  • the location acquisition device is applied to the terminal equipment.
  • the terminal equipment is included in the location acquisition system.
  • the location acquisition system also includes a vehicle.
  • a plurality of first arrival times corresponding to the signal, one first arrival time represents the time when a target audio signal arrives at the terminal device, and the plurality of target audio signals are sent by the vehicle according to a preset frequency;
  • at least one second arrival time corresponding to at least one target audio signal is obtained, and first location information corresponding to the terminal device is generated according to a plurality of first arrival times and at least one second arrival time, the second The location information is used to indicate that the terminal device is located inside or outside the vehicle.
  • the location acquisition device provided in the tenth aspect can also be used to execute the steps performed by the vehicle in various possible implementations of the fourth aspect.
  • the tenth aspect of the present application and various possible implementations of the tenth aspect
  • the present application provides a location acquisition device, which can be used in the field of smart vehicles.
  • the position acquisition device is applied to the vehicle, the vehicle includes the position acquisition system, the position acquisition system also includes terminal equipment, the vehicle is equipped with at least three speakers, the at least three speakers are not located in a straight line, and the at least three speakers include the first The sound, the second sound, and the third sound, the location acquisition device includes: a sending module, configured to send a first audio signal through the first sound, and the first audio signal is used to determine the first audio signal of the first audio signal received by the terminal device.
  • the sending module is also used to send the second audio signal through the second sound, and the second audio signal is used to determine the second signal strength of the second audio signal received by the terminal device; the sending module is also used to send the second audio signal through the third
  • the sound sends a third audio signal the third audio signal is used to determine the third signal strength of the third audio signal received by the terminal device, and the first signal strength, the second signal strength and the third signal strength are used to determine the signal corresponding to the terminal device
  • the second location information of the second location information is used to indicate the location of the terminal device outside the vehicle.
  • the location acquisition device provided in the eleventh aspect can also be used to execute the steps performed by the vehicle in various possible implementations of the fifth aspect.
  • the various possibilities of the eleventh aspect and the eleventh aspect of the present application For the specific implementation steps of the implementation, the specific meanings of the terms, and the beneficial effects brought by each possible implementation, you can refer to the descriptions in the various possible implementations in the fifth aspect, and will not repeat them here.
  • the present application provides a location acquisition device, which can be used in the field of smart vehicles.
  • the location acquisition device is applied to the terminal equipment, the terminal equipment includes the location acquisition system, the location acquisition system also includes a vehicle, the vehicle is equipped with at least three speakers, the at least three speakers are not located in a straight line, and the at least three speakers include the first
  • the first audio, the second audio and the third audio the location acquisition device includes: a receiving module, used to receive the first audio signal sent by the first audio, receive the second audio signal sent by the second audio, and receive the audio signal sent by the third audio A second audio signal; a generating module, configured to receive a first signal strength of the first audio signal, a second signal strength of the second audio signal received, and a third signal strength of the third audio signal received, Generate second location information corresponding to the terminal device, where the second location information is used to indicate the location of the terminal device outside the vehicle.
  • the location acquisition device provided in the twelfth aspect can also be used to execute the steps performed by the vehicle in various possible implementations of the sixth aspect, for the twelfth aspect and various possibilities of the twelfth aspect of the present application
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a vehicle, the vehicle is included in a location acquisition system, the location acquisition system also includes a terminal device, the vehicle is equipped with at least two speakers, the at least two speakers include a first speaker and a second speaker, and the first speaker and the second speaker The speakers are located on both sides of the vehicle.
  • the method includes: sending a first audio signal through the first speaker, the first audio signal is used for the terminal device to determine the receiving time of the first audio signal, and the receiving time of the first audio signal is when the terminal device receives the first audio signal.
  • the time of the signal, the receiving time of the first audio signal and the receiving time of the second audio signal are used to determine target location information indicating the location of the terminal device relative to the vehicle.
  • sending the first audio signal through the first speaker and sending the second audio signal through the second speaker includes: while sending the first audio signal through the first speaker, sending the first audio signal through the second speaker
  • the second audio signal sends the second audio signal, the first audio signal and the second audio signal are different audio signals, and the order in which the first audio signal and the second audio signal arrive at the terminal device is used to determine the target location information.
  • sending the first audio signal through the first speaker and sending the second audio signal through the second speaker includes: first sending the first audio signal through the first speaker, and setting After the time interval, a second audio signal is sent through the second speaker, and the receiving time of the first audio signal, the receiving time of the second audio signal and the preset time interval are used to determine the target location information.
  • the at least two speakers include at least three speakers, and the at least three speakers are not located on a straight line.
  • the at least three speakers include four speakers, and the four speakers are respectively located at a left front position, a right front position, a left rear position and a right rear position in the vehicle.
  • the target location information is used to indicate the location of the terminal device inside the vehicle; or, the target location information is used to indicate the location of the terminal device outside the vehicle.
  • the location inside the vehicle is a left location inside the vehicle or a right location inside the vehicle; or, the location inside the vehicle is a front location inside the vehicle or a rear location inside the vehicle side position; or, the position inside the vehicle is the position inside the vehicle of the main driver, the co-driver, the left side of the rear row, the right side of the rear row, or the middle of the rear row; or, there are N positions in the vehicle, and the interior of the vehicle
  • the position of is a target position among N positions, where N is an integer greater than or equal to 2.
  • the target location information is used to determine the control authority of the terminal device to the vehicle, and terminal devices at different locations have different control permissions to the vehicle; or, the target location information is used to indicate Whether the terminal device is located at the main driving position of the vehicle; or, when the terminal device is connected to the vehicle, the target location information is used for the vehicle to determine the vehicle-mounted device closest to the terminal device.
  • the method further includes: when the vehicle starts the position awareness operation, sending first indication information to the terminal device, the first indication information is used to instruct the terminal device to start the position awareness operation,
  • the position awareness operation is an operation for obtaining target position information; receiving the first feedback message sent by the terminal device, the first feedback message is used to instruct the vehicle to send the first audio signal and the second audio signal; or receiving the first feedback message sent by the terminal device
  • Two indication information in response to the received second indication information, start a position awareness operation; send a second feedback message to the terminal device, the second feedback message is used to instruct the terminal device to receive the first audio signal and the second audio signal.
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a terminal device, and the terminal device is included in the location acquisition system, and the location acquisition system also includes a vehicle, and the vehicle is equipped with at least two speakers, the at least two speakers include a first speaker and a second speaker, and the first speaker and the second speaker The two speakers are located on different sides of the vehicle, and the method includes: receiving the first audio signal sent by the first speaker; receiving the second audio signal sent by the second speaker; according to the receiving time of the first audio signal and the receiving time of the second audio signal , determine target position information, where the target position information indicates the position of the terminal device relative to the vehicle.
  • determining the target location information according to the receiving time of the first audio signal and the receiving time of the second audio signal includes: when the first audio signal and the second audio signal are sent simultaneously In the case of , according to the receiving time of the first audio signal and the receiving time of the second audio signal, determine the order in which the first audio signal and the second audio signal arrive at the terminal device; according to the arrival time of the first audio signal and the second audio signal at the terminal The sequence of the devices determines the target location information.
  • determining the target location information according to the receiving time of the first audio signal and the receiving time of the second audio signal includes: according to the receiving time of the first audio signal, the receiving time of the second audio signal The receiving time and the preset time interval determine the target position information, and the preset time interval is the sending time interval of two adjacent audio signals.
  • the at least two speakers include at least three speakers, and the at least three speakers are not located on a straight line.
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a vehicle, the vehicle is included in the position acquisition system, the position acquisition system also includes a terminal device, at least two speakers are arranged in the vehicle, at least two speakers are arranged on both sides of the vehicle, and the target speakers are at least two speakers
  • the method includes: receiving the first measurement signal sent by the terminal device through the target speaker, and determining the time of receiving the first measurement signal as the first time; sending the second measurement signal to the terminal device through the target speaker, and Determining the time for sending the second measurement signal as the second time, both the first measurement signal and the second measurement signal are audio signals; according to the first time, the second time, the third time and the fourth time, determine the terminal device and the target
  • the distance between the speakers wherein the third time is the time when the terminal device sends the first measurement signal, and the fourth time is the time when the terminal device receives the second measurement signal; according to the distance between the terminal device
  • the at least two speakers include at least three speakers, and the at least three speakers are not located on a straight line.
  • the target location information is used to indicate the location of the terminal device inside the vehicle; or, the target location information is used to indicate the location of the terminal device outside the vehicle.
  • the present application provides a location acquisition method, which can be used in the field of smart vehicles.
  • the method is applied to a terminal device.
  • the terminal device includes a location acquisition system, and the location acquisition system also includes a vehicle.
  • the vehicle is equipped with at least two speakers, and the at least two speakers are arranged in different positions of the vehicle.
  • the target speakers are at least two For any one of the speakers, the method includes: sending a first measurement signal to the target speaker, determining the sending time of the first measurement signal as the third time; receiving the second measurement signal sent by the target speaker, and receiving the second measurement signal The time is determined as the fourth time, the first measurement signal and the second measurement signal are audio signals; according to the first time, the second time, the third time and the fourth time, the distance between the terminal device and the target audio is determined, wherein , the first time is the time when the vehicle receives the first measurement signal, and the second time is the time when the vehicle sends the second measurement signal; according to the distance between the terminal device and each of the at least two speakers, determine the target position information, the target The location information indicates the location of the terminal device relative to the vehicle.
  • the target location information is used to indicate the location of the terminal device inside the vehicle; or, the target location information is used to indicate the location of the terminal device outside the vehicle.
  • the at least two speakers include at least three speakers, and the at least three speakers are not located on a straight line.
  • the present application provides an audio stream processing method, which can be used in the field of smart vehicles.
  • the method is applied in a data processing system.
  • the data processing system also includes a vehicle and a first terminal device.
  • the method includes: the vehicle establishes a connection with the first terminal device; the vehicle receives data sent by the first terminal device, and the data contains a target audio stream; the vehicle plays The target audio stream; in the process of the vehicle playing the target audio stream, when a preset situation occurs, continue to play the target audio stream, wherein the preset situation includes: the first terminal device is connected to the vehicle from the vehicle Move out of the car, and the category of the target audio stream is the first category.
  • the playback device of the audio stream of the second category is switched to the first terminal device, the second category and the first category are different categories, and the audio stream of the second category is the first terminal device.
  • a terminal device is generated.
  • the present application provides an audio stream processing method, which can be used in the field of smart vehicles.
  • the method is applied to a first terminal device, the first terminal device is included in a data processing system, and the data processing system further includes a vehicle, and the method includes: establishing a connection between the first terminal device and the vehicle; the first terminal device sends data to the vehicle, and the data includes Target audio stream; during the process of playing the target audio stream by the vehicle and the first terminal device is connected to the vehicle, when it is detected that the first terminal device moves from inside the vehicle to outside the vehicle, acquire the target audio being sent to the vehicle The target category corresponding to the stream; if the target category is the first category, continue to send the target audio stream to the vehicle.
  • the first category includes a media category
  • the second category is different from the first category
  • the method further includes: switching the playback device of the second type of audio stream from the vehicle to the first terminal device, and the second type of audio stream is generated by the first terminal device; if When the first terminal device receives the play instruction to play the second audio stream, the first terminal device plays the second audio stream; the category of the second audio stream is the second category.
  • the method further includes: outputting first information, where the first information is used to prompt the user to switch the playback device of the target audio stream from the vehicle to the first terminal device.
  • the method further includes: when the first terminal device obtains the playback operation on the first audio stream , output the first information; wherein, the category of the first audio stream is the first category, and the first audio stream is different from the target audio stream played by the vehicle, and the first information is used to prompt the user to select the playback device of the first audio stream from the The vehicle switches to the first terminal device.
  • the method further includes: if the target category is not the first category, the first terminal device continues to play the target audio stream.
  • the present application provides an audio stream processing method, which can be used in the field of smart vehicles.
  • the method is applied to a data processing system.
  • the data processing system includes a first terminal device and a vehicle.
  • the method includes: establishing a connection between the first terminal device and the vehicle; Switching to the vehicle, the third category includes all categories corresponding to the audio stream played by the first terminal device through the vehicle; during the connection between the first terminal device and the vehicle, when it is detected that the first terminal device moves from inside the vehicle to When outside the vehicle, obtain the target category corresponding to the target audio stream being played by the vehicle.
  • the target audio stream is generated by the first terminal device and sent to the vehicle; the vehicle continues to play the target audio stream, and removes the target category from the third category
  • the playback device of the audio stream of the second category other than the second category is switched from the vehicle to the first terminal device.
  • continuing to play the target audio stream by the vehicle includes: if the target category is the first category, continuing to play the target audio stream by the vehicle.
  • the present application provides an address processing method, which can be used in the field of smart vehicles.
  • the method is applied to a navigation system, and the navigation system includes a vehicle, a first terminal device, and a second terminal device, and the method includes: the second terminal device displays a target address on a display interface; when the first terminal device is connected to the vehicle, , the second terminal device sends the target address to the vehicle, wherein the sent target address is used to prompt that the target address be used as a destination when the vehicle is navigating.
  • the method before the second terminal device sends the target address to the vehicle, the method further includes: the second terminal device acquires first location information corresponding to the second terminal device, and the first location information uses To indicate that the second terminal device is located inside or outside the vehicle; when the second terminal device is located inside the vehicle, the second terminal device outputs second information, and the second information is used to prompt the user to input a target operation; when the first terminal device During the process of being connected with the vehicle, the second terminal device sends the target address to the vehicle, including: the second terminal device receives the target operation input by the user; during the process of the first terminal device being connected with the vehicle, in response to receiving target operation, the second terminal device sends the target address to the vehicle.
  • the display interface displaying the target address includes interfaces of any one or more of the following types of application programs: navigation application programs, instant messaging application programs, and life service application programs Or travel apps.
  • the method further includes: the second terminal device receives a trigger operation input by the user;
  • the first location information corresponding to the terminal device includes: in response to a trigger operation, the second terminal device acquires the first location information corresponding to the second terminal device.
  • the present application provides an address processing method, which can be used in the field of smart vehicles.
  • the method is applied to a navigation system.
  • the navigation system includes a vehicle, a second terminal device, and a first terminal device.
  • the method includes: when the first terminal device is connected to the vehicle, the vehicle acquires a target address, and the target address is determined by the second terminal device Generated; the vehicle uses the target address as the destination when the vehicle navigates.
  • the second terminal device is located inside the vehicle.
  • the vehicle uses the target address as the destination when the vehicle navigates, including: when the vehicle obtains the target address, it is navigating with the first address as the destination; the vehicle uses the first address as the destination; The first address is changed to the target address, and the navigation is continued with the target address as the destination.
  • the present application provides a vehicle, which may include a processor, the processor is coupled to a memory, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the methods described in the above aspects are implemented .
  • the present application provides a terminal device, which may include a processor, the processor is coupled to a memory, and the memory stores program instructions.
  • the program instructions stored in the memory are executed by the processor, the above-mentioned aspects are implemented. method.
  • the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when it is run on a computer, the computer is made to execute the methods described in the above aspects.
  • the present application provides a computer program product, the computer program product includes program code, and when the program code is run on a computer, the computer is made to execute the methods described in the above aspects.
  • the present application provides a circuit system, where the circuit system includes a processing circuit, and the processing circuit is configured to execute the methods described in the above aspects.
  • the present application provides a chip system, which includes a processor, configured to implement the functions involved in the above aspect, for example, send or process the data and/or information involved in the above method.
  • the chip system further includes a memory, and the memory is configured to store necessary program instructions and data of the server or the communication device.
  • the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
  • Figure 1a is a schematic diagram of the architecture of the data processing system provided by the embodiment of the present application.
  • Figure 1b is a schematic diagram of the architecture of the data processing system provided by the embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a vehicle provided in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a location acquisition method provided in an embodiment of the present application.
  • Fig. 4 is a schematic diagram of a position of at least three speakers in the position acquisition method provided by the embodiment of the present application;
  • FIG. 5 is a schematic diagram of a principle of a location acquisition method provided in an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a location acquisition method provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a location acquisition method provided in an embodiment of the present application.
  • FIG. 8a is a schematic flowchart of a location acquisition method provided in the embodiment of the present application.
  • Fig. 8b is a schematic diagram of the external position of the vehicle in the position acquisition method provided by the embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a location acquisition method provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the control rights of terminal devices located in different positions in the method for obtaining positions provided by the embodiment of the present application;
  • FIG. 11 is a schematic diagram of the control rights of terminal devices located in different positions in the position acquisition method provided by the embodiment of the present application.
  • FIG. 12 is a schematic diagram of screen projection by a terminal device located at the main driving position in the location acquisition method provided by the embodiment of the present application;
  • FIG. 13 is a schematic diagram of screen projection by a terminal device located at the main driving position in the position acquisition method provided by the embodiment of the present application;
  • Fig. 14a is a schematic structural diagram of a location acquisition device provided in an embodiment of the present application.
  • Fig. 14b is another schematic structural diagram of the location acquisition device provided by the embodiment of the present application.
  • Fig. 15 is another structural schematic diagram of the location acquisition device provided by the embodiment of the present application.
  • FIG. 16 is another structural schematic diagram of the location acquisition device provided by the embodiment of the present application.
  • Fig. 17 is another schematic structural diagram of the location acquisition device provided by the embodiment of the present application.
  • FIG. 18 is a schematic flowchart of a location acquisition method provided in an embodiment of the present application.
  • Fig. 19 is a schematic diagram of the sound in the location acquisition method provided by the embodiment of the present application.
  • FIG. 20 is a schematic diagram of the matching degree curve in the position acquisition method provided by the embodiment of the present application.
  • FIG. 21 is two schematic diagrams of matching degree curves in the position acquisition method provided by the embodiment of the present application.
  • Fig. 22 is another schematic flow chart of the location acquisition method provided by the embodiment of the present application.
  • FIG. 23 is another schematic flow chart of the location acquisition method provided by the embodiment of the present application.
  • FIG. 24 is a schematic diagram of the principle of the location acquisition method provided by the embodiment of the present application.
  • FIG. 25 is an application scenario diagram of the location acquisition method provided by the embodiment of the present application.
  • FIG. 26 is a schematic structural diagram of a location acquisition device provided in an embodiment of the present application.
  • Fig. 27 is another schematic structural diagram of the location acquisition device provided by the embodiment of the present application.
  • Fig. 28 is another schematic structural diagram of the location acquisition device provided by the embodiment of the present application.
  • Fig. 29 is another schematic structural diagram of the location acquisition device provided by the embodiment of the present application.
  • FIG. 30 is another structural schematic diagram of the location acquisition device provided by the embodiment of the present application.
  • Fig. 31 is another schematic structural diagram of the location acquisition device provided by the embodiment of the present application.
  • FIG. 32 is a schematic flowchart of a method for processing an audio stream provided in an embodiment of the present application.
  • FIG. 33 is a schematic diagram of a receiving interface of the first switching operation in the audio stream processing method provided by the embodiment of the present application.
  • FIG. 34 is a schematic diagram of the off-car mode in the audio stream processing method provided by the embodiment of the present application.
  • FIG. 35 is a schematic diagram of the off-car mode in the audio stream processing method provided by the embodiment of the present application.
  • FIG. 36 is two schematic diagrams of the first terminal device displaying the first information in the audio stream processing method provided by the embodiment of the present application.
  • Fig. 37 is a schematic diagram of the first information in the audio stream processing method provided by the embodiment of the present application.
  • Fig. 38a is a schematic diagram corresponding to the switching operation in the audio stream processing method provided by the embodiment of the present application.
  • Fig. 38b is a schematic diagram of outputting indication information in the audio stream processing method provided by the embodiment of the present application.
  • FIG. 39 is a schematic flowchart of a data processing method provided in the embodiment of the present application.
  • FIG. 40 is a schematic flowchart of an address processing method provided in the embodiment of the present application.
  • FIG. 41 is three schematic diagrams of outputting second information in the address processing method provided by the embodiment of the present application.
  • Fig. 42 is another schematic diagram of outputting second information in the address processing method provided by the embodiment of the present application.
  • FIG. 43 is two schematic diagrams of outputting prompt information in the address processing method provided by the embodiment of the present application.
  • FIG. 44 is a schematic diagram of outputting prompt information in the address processing method provided by the embodiment of the present application.
  • Fig. 45 is a schematic diagram of outputting notification information in the address processing method provided by the embodiment of the present application.
  • FIG. 46 is two schematic diagrams of outputting prompt information in the address processing method provided by the embodiment of the present application.
  • Fig. 47 is a schematic flow chart of the data transfer method provided by the embodiment of the present application.
  • Fig. 48 is a schematic flow chart of the data transfer method provided by the embodiment of the present application.
  • Fig. 49 is another schematic flowchart of the data transfer method provided by the embodiment of the present application.
  • FIG. 50 is a schematic flowchart of a volume processing method provided by an embodiment of the present application.
  • FIG. 51 is a schematic structural diagram of an audio stream processing device provided by an embodiment of the present application.
  • FIG. 52 is a schematic structural diagram of an audio stream processing device provided by an embodiment of the present application.
  • FIG. 53 is a schematic structural diagram of an audio stream processing device provided by an embodiment of the present application.
  • Fig. 54 is a schematic structural diagram of an address processing device provided in the embodiment of the present application.
  • Fig. 55 is a schematic structural diagram of an address processing device provided in the embodiment of the present application.
  • Fig. 56 is a schematic structural diagram of an address processing device provided in the embodiment of the present application.
  • Fig. 57 is a schematic structural diagram of a vehicle provided by an embodiment of the present application.
  • FIG. 58 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the embodiments of the present application can be applied in the field of smart vehicles. Specifically, in some subsequent embodiments, it can be detected whether the terminal device is located inside the vehicle or outside the vehicle. In other subsequent embodiments, it can be detected that the terminal device A specific location inside the vehicle; in other subsequent embodiments, the specific location of the terminal device outside the vehicle may be detected.
  • the terminal device refers to a terminal device carried or worn by a user, thus, the position of the terminal device relative to the vehicle is equivalent to the position of the user relative to the vehicle.
  • some application scenarios of interaction between the vehicle and the terminal device may also be provided.
  • FIG. 1a is a schematic diagram of an architecture of a data processing system provided by an embodiment of the present application.
  • the data processing system may include a vehicle 100 and a terminal device 200 , and a communication connection is established between the vehicle 100 and the terminal device 200 .
  • the vehicle 100 may be an automatic driving vehicle or a non-autonomous driving vehicle.
  • the automatic driving vehicle is configured in a fully or partially automatic driving mode.
  • the vehicle 100 may be in the automatic driving mode control itself, and can be human-operated to determine the current state of the vehicle and its surroundings, determine the likely behavior of at least one other vehicle in the surrounding environment, and determine a confidence level corresponding to the likelihood that the other vehicle will perform the possible behavior,
  • the vehicle 100 is controlled based on the determined information.
  • the vehicle 100 may also be set to operate without human interaction while the vehicle 100 is in the autonomous driving mode.
  • the terminal device 200 may specifically be a mobile phone, a tablet, a notebook computer, a smart wearable device, or other types of terminal devices, etc., which are not limited here.
  • FIG. 1 b is another schematic structural diagram of a data processing system provided in an embodiment of the present application.
  • the data processing system may include a vehicle 100, a first terminal device 300 and a second terminal device 400, the vehicle 100 and the first terminal device 300 are in a connection state; the vehicle 100 and the second terminal device 400 There may or may not be a connection established between them.
  • the first terminal device 300 may be projecting a screen through the central control screen of the vehicle 100
  • the second terminal device 400 is not projecting a screen through the central control screen of the vehicle 100 .
  • the first terminal device 300 can perform any one or more of the following tasks through the vehicle 100: play audio stream, play video, navigate, video calls, conversations or other tasks and more.
  • both the first terminal device 300 and the second terminal device 400 are terminal devices, and the product forms of the first terminal device 300 include but are not limited to mobile phones, smart wearable devices, tablets, notebook computers or other types of first terminal devices, etc. , is not limited here.
  • the product form of the second terminal device 400 and the product form of the first terminal device 300 may be the same or different; that is, the product form of the second terminal device 400 includes but is not limited to mobile phones, smart wearable devices, tablets, notebook computers or other Types of terminal equipment, etc., are not exhaustive here.
  • the first terminal device 300 can perform screen projection through the central control screen of the vehicle 100 .
  • the content displayed on the central control screen of the vehicle 100 may not be exactly the same as the screen content of the first terminal device 300, and the content displayed on the central control screen
  • the content may be an application already configured on the vehicle 100 and multiple application programs in the terminal device. That is to say, when the vehicle 100 is not connected with the first terminal device 300, it has its own user interface (user interface, UI). There are more icons of application programs, or more functions of the vehicle 100 .
  • the first terminal device 300 can utilize the global positioning system GPS configured in the vehicle 100 to improve the accuracy of the navigation of the first terminal device 300; as another example, for example, the first terminal device 300 can utilize the camera on the vehicle 100 Perform video calls, etc., not exhaustive here.
  • FIG. 2 is a schematic structural diagram of a vehicle provided by an embodiment of the present application.
  • the vehicle 100 may include various subsystems, such as a travel system 102, a sensor system 104, a control system 106, one or more Peripherals 108 as well as power supply 110 , computer system 112 and user interface 116 .
  • the vehicle 100 may also include an intelligent auxiliary device 160; further optionally, the vehicle 100 may also include more or less subsystems, and each subsystem may include multiple components.
  • each subsystem and component of the vehicle 100 may be interconnected by wire or wirelessly.
  • the propulsion system 102 may include components that provide powered motion for the vehicle 100 .
  • the propulsion system 102 may include an engine 118 , an energy source 119 , a transmission 120 , and wheels (which may also be referred to as tires) 121 .
  • the engine 118 may be an internal combustion engine, an electric motor, an air compression engine or other types of engine combinations, for example, a hybrid engine composed of a gasoline engine and an electric motor, or a hybrid engine composed of an internal combustion engine and an air compression engine.
  • the engine 118 converts the energy source 119 into mechanical energy.
  • Examples of energy source 119 include gasoline, diesel, other petroleum-based fuels, propane, other compressed gas-based fuels, ethanol, solar panels, batteries, and other sources of electrical power.
  • Energy source 119 may also provide energy to other systems of vehicle 100 .
  • Transmission 120 may transmit mechanical power from engine 118 to wheels 121 .
  • Transmission 120 may include a gearbox, a differential, and drive shafts.
  • the transmission 120 may also include other devices, such as clutches.
  • drive shafts may include one or more axles that may be coupled to one or more wheels 121 .
  • the sensor system 104 may include a number of sensors that sense information about the environment surrounding the vehicle 100 .
  • the sensor system 104 may include a positioning system 122 (the positioning system may be the global positioning system GPS, or the Beidou system or other positioning systems), an inertial measurement unit (inertial measurement unit, IMU) 124, a radar 126, a laser rangefinder 128 and camera 130 .
  • the sensor system 104 may also include sensors of the interior systems of the monitored vehicle 100 (eg, interior air quality monitor, fuel gauge, oil temperature gauge, etc.). Sensing data from one or more of these sensors can be used to detect objects and their corresponding properties (position, shape, orientation, velocity, etc.). Such detection and identification are critical functions for safe operation of autonomous vehicle 100 .
  • the positioning system 122 can be used to estimate the geographic location of the vehicle 100 .
  • the IMU 124 is used to sense the position and orientation changes of the vehicle 100 based on inertial acceleration.
  • IMU 124 may be a combination accelerometer and gyroscope.
  • the radar 126 can use radio signals to perceive objects in the surrounding environment of the vehicle 100 , specifically, it can be expressed as a millimeter-wave radar or a laser radar. In some embodiments, in addition to sensing the object, radar 126 may be used to sense the speed and/or heading of the object.
  • the laser rangefinder 128 may utilize laser light to sense objects in the environment in which the vehicle 100 is located.
  • laser rangefinder 128 may include one or more laser sources, a laser scanner, and one or more detectors, among other system components.
  • Camera 130 may be used to capture multiple images of the surrounding environment of vehicle 100 .
  • Camera 130 may be a still camera or a video camera.
  • the control system 106 is an operating system that controls the vehicle 100 and its components.
  • Control system 106 may include various components including steering system 132 , accelerator 134 , braking unit 136 , computer vision system 140 , line control system 142 , and obstacle avoidance system 144 .
  • the steering system 132 is used to adjust the forward direction of the vehicle 100 .
  • the steering system 132 may be a steering wheel system.
  • the throttle 134 is used to control the operating speed of the engine 118 and thus the speed of the vehicle 100 .
  • the braking unit 136 is used to control the deceleration of the vehicle 100 .
  • the braking unit 136 may use friction to slow the wheels 121 .
  • the brake unit 136 can convert the kinetic energy of the wheel 121 into electric current.
  • the braking unit 136 may also take other forms to slow down the wheels 121 to control the speed of the vehicle 100 .
  • Computer vision system 140 is operable to process and analyze images captured by camera 130 in order to identify objects and/or features in the environment surrounding vehicle 100 .
  • the objects and/or features may include traffic signals, road boundaries, and barriers.
  • the computer vision system 140 may use object recognition algorithms, Structure from Motion (SFM) algorithms, video tracking, and other computer vision techniques. In some embodiments, computer vision system 140 may be used to map the environment, track objects, estimate the velocity of objects, and the like.
  • the route control system 142 is used to determine the driving route and driving speed of the vehicle 100 . In some embodiments, the route control system 142 may include a horizontal planning module 1421 and a vertical planning module 1422, and the horizontal planning module 1421 and the vertical planning module 1422 are respectively used to combine information from the obstacle avoidance system 144, the GPS 122 and one or more predetermined maps. The data of the vehicle 100 determine a travel route and a travel speed.
  • the obstacle avoidance system 144 is used to identify, evaluate and avoid or otherwise overcome obstacles in the environment of the vehicle 100 .
  • the control system 106 may additionally or alternatively include components other than those shown and described. Alternatively, some of the components shown above may be reduced.
  • Vehicle 100 interacts with external sensors, other vehicles, other computer systems, or users via peripherals 108 .
  • Peripherals 108 may include wireless communication system 146 , microphone 148 , stereo 150 , and/or on-board computer 152 .
  • peripheral device 108 provides a means for a user of vehicle 100 to interact with user interface 116 .
  • on-board computer 152 may provide information to a user of vehicle 100 .
  • the user interface 116 may also operate the on-board computer 152 to receive user input.
  • the on-board computer 152 can be operated through a touch screen.
  • peripheral devices 108 may provide a means for vehicle 100 to communicate with other devices located within the vehicle.
  • microphone 148 may receive audio (eg, voice commands or other audio input) from a user of vehicle 100 .
  • speaker 150 may output audio to a user of vehicle 100 .
  • Wireless communication system 146 may communicate wirelessly with one or more devices, either directly or via a communication network.
  • the wireless communication system 146 may use 3G cellular communication, 4G cellular communication, 5G cellular communication, or wireless local area network (wireless local area network, WLAN) communication, and the like.
  • the wireless communication system 146 may communicate directly with the device using an infrared link, Bluetooth, or ZigBee.
  • Other wireless protocols, such as various vehicle communication systems, for example, wireless communication system 146 may include one or more dedicated short range communications (DSRC) devices, which may include public and/or private data communications.
  • DSRC dedicated short range communications
  • the power supply 110 may provide power to various components of the vehicle 100 .
  • the power source 110 may be a rechargeable lithium-ion or lead-acid battery.
  • One or more battery packs of such batteries may be configured as a power source to provide power to various components of the vehicle 100 .
  • power source 110 and energy source 119 may be implemented together, such as in some all-electric vehicles.
  • Computer system 112 may include at least one processor 113 executing instructions 115 stored in a non-transitory computer-readable medium such as memory 114 .
  • the computer system 112 may also be a plurality of computing devices that control individual components or subsystems of the vehicle 100 in a distributed manner.
  • Processor 113 may be any conventional processor, such as a commercially available central processing unit (CPU).
  • the processor 113 may be a dedicated device such as an application specific integrated circuit (ASIC) or other hardware-based processors.
  • processors, memory, and other components of the computer system 112 may actually include memory that is not stored in the same block.
  • Multiple processors, or memory, within a physical enclosure may be a hard drive or other storage medium located in a different housing than computer system 112 .
  • references to processor 113 or memory 114 are to be understood to include references to collections of processors or memories that may or may not operate in parallel.
  • some components, such as the steering and deceleration components may each have their own processor that only performs calculations related to component-specific functions .
  • the processor 113 may be located remotely from the vehicle 100 and be in wireless communication with the vehicle 100 . In other aspects, some of the processes described herein are executed on the processor 113 disposed within the vehicle 100 while others are executed by the remote processor 113, including taking the necessary steps to perform a single maneuver.
  • memory 114 may contain instructions 115 (eg, program logic) executable by processor 113 to perform various functions of vehicle 100 , including those described above. Memory 114 may also contain additional instructions, including instructions for sending data to, receiving data from, interacting with, and/or controlling one or more of travel system 102, sensor system 104, control system 106, and peripherals 108. instruction. In addition to instructions 115, memory 114 may also store data such as road maps, route information, the vehicle's position, direction, speed, and other such vehicle data, among other information. Such information may be used by the vehicle 100 and the computer system 112 during operation of the vehicle 100 in autonomous, semi-autonomous, and/or manual modes.
  • instructions 115 eg, program logic
  • a user interface 116 for providing information to or receiving information from a user of the vehicle 100 .
  • user interface 116 may include one or more input/output devices within set of peripheral devices 108 , such as wireless communication system 146 , onboard computer 152 , microphone 148 , and speaker 150 .
  • Computer system 112 may control functions of vehicle 100 based on input received from various subsystems (eg, travel system 102 , sensor system 104 , and control system 106 ) and from user interface 116 .
  • computer system 112 may utilize input from control system 106 in order to control steering system 132 to avoid obstacles detected by sensor system 104 and obstacle avoidance system 144 .
  • the computer system 112 is operable to provide control over many aspects of the vehicle 100 and its subsystems.
  • one or more of these components described above may be installed separately from or associated with the vehicle 100 .
  • memory 114 may exist partially or completely separate from vehicle 100 .
  • the components described above may be communicatively coupled together in a wired and/or wireless manner.
  • FIG. 2 should not be construed as a limitation to the embodiment of the present application.
  • An autonomous vehicle traveling on a road such as vehicle 100 above, may identify objects within its surroundings to determine adjustments to its current speed.
  • the objects may be other vehicles, traffic control devices, or other types of objects.
  • each identified object may be considered independently and based on the object's respective characteristics, such as its current speed, acceleration, distance to the vehicle, etc., may be used to determine the speed at which the autonomous vehicle is to be adjusted.
  • Embodiment 2 it can be measured whether the terminal device is located inside or outside the vehicle 100; in some of the following other embodiments (such as in Embodiment 1 and Embodiment 2), It is also possible to measure where the terminal device is located outside the vehicle 100 ; In the following other embodiments (such as Embodiment 1, Embodiment 2 and Embodiment 3), various application scenarios of interaction between the vehicle and the terminal device after obtaining the location information of the terminal device are also provided.
  • the method of how to obtain the position information of the terminal device can adopt any of the methods provided in the various embodiments of the present application.
  • the method can also adopt the method in the prior art, which is not limited here.
  • the location information of the terminal device relative to the vehicle refers to whether the terminal device is located inside or outside the vehicle (including judging whether the terminal device is located inside or outside the vehicle, or from inside to outside, or from outside to inside, etc.), or , the terminal device is located at a specific location outside the vehicle, or the terminal device is located at a specific location inside the vehicle, etc.
  • the above-mentioned terminal device may be the terminal device 200, the first terminal device 300, or the second terminal device 400.
  • the terminal device refers to a terminal device carried or worn by the user. Therefore, the position of the terminal device relative to the vehicle is equivalent to the position of the user relative to the vehicle.
  • the above measurement method is preloaded into the memory 114 in the form of a computer program product, and the processor 113 in the vehicle 100 can execute the instructions in the memory 114 to use the sound 150 to send out an audio signal, so as to obtain the terminal 200 location information.
  • the execution subject of the above measurement method may be the vehicle auxiliary equipment 160.
  • the vehicle auxiliary equipment 160 is loaded in the vehicle 100 in the form of independent equipment. , car rearview mirror or other product forms, etc., are not limited here.
  • the above-mentioned vehicles 100 may be cars, trucks, motorcycles, buses, boats, airplanes, helicopters, lawn mowers, recreational vehicles, playground vehicles, construction equipment, trams, golf carts, trains, and trolleys, etc.
  • the application examples are not particularly limited.
  • the vehicle components of the vehicle perform preset operations, the specific position of the user outside the vehicle can be detected; as an example, when it is detected that the user is located at the left front door outside the vehicle, the unlocking of the left front door can be triggered; as another example, for example When it is detected that the user is located at the position of the trunk of the vehicle, it may be triggered to open the trunk of the vehicle, etc., which are not exhaustive here.
  • the embodiment of the present application also provides a method for detecting whether the user is inside the vehicle or outside the vehicle. Accordingly, it can be recognized that the user has entered the vehicle interior from the outside of the vehicle.
  • the embodiment of the present application also provides a method for detecting the specific location of the user inside the vehicle. It should be noted that, since the user generally carries a terminal device, in the embodiment of the present application, the position of the user is represented by detecting the position of the terminal device.
  • the vehicle and/or the terminal device can provide corresponding services according to the location change of the user.
  • the vehicle and/or the terminal device can provide corresponding services according to the location change of the user.
  • it can be detected that the user reaches the outside of the vehicle from inside the vehicle.
  • the specific location of the user outside the vehicle can be detected again according to the method provided by the embodiment of the present application, and corresponding services can be further provided.
  • corresponding services can also be provided to the user according to the user's location information; for example, what services can be provided when the user is inside the vehicle; another example is when What services can be provided when the user is at a specific location inside the vehicle; another example is what services can be provided when the user moves from the inside of the vehicle to the outside of the vehicle; another example is what services can be provided when the user moves from the outside of the vehicle to the inside of the vehicle, etc. , will be described in the following embodiment 1, embodiment 2 and embodiment 3.
  • Embodiment 1 in the embodiments of this application provides a method for obtaining a position.
  • the processor in the vehicle or the vehicle auxiliary equipment in the vehicle passes The sound emits ultrasonic signals to generate target location information corresponding to the terminal device.
  • the target location information can be used to indicate where the terminal device is located inside the vehicle; or, it can also be used to indicate where the terminal device is located outside the vehicle. position.
  • the first embodiment also provides some application scenarios, based on the specific location of the terminal device, different operations are performed to provide users with corresponding services.
  • the target location information can be generated without acquiring the distance between the terminal device and the audio; in another implementation, based on the terminal device and the The distance between the individual speakers generates this target location information.
  • the following four situations will be introduced respectively: without obtaining the distance between the terminal device and the speakers, the position of the terminal device inside the vehicle is generated; the terminal device is located inside the vehicle based on the distance between the terminal device and each speaker the position of the terminal device; without acquiring the distance between the terminal device and the speaker, generating the position of the terminal device outside the vehicle; and generating the position of the terminal device outside the vehicle based on the distance between the terminal device and each speaker.
  • audio signals are respectively sent by at least two speakers in the vehicle, and the position of the terminal device relative to the vehicle can be determined according to the time when the terminal device receives each audio signal.
  • the audio signal is specifically expressed as an ultrasonic signal as an example for illustration.
  • an audio signal in a non-ultrasonic frequency band can also be used, such as an audio signal that can be heard by the human ear. Let's repeat them one by one.
  • the frequency band of the ultrasonic signal can be 17KHZ-48KHZ.
  • the frequency band of the ultrasonic signal can be 17KHZ-22KHZ.
  • the frequency of the specific target audio signal can be determined in combination with the actual application product, and is not limited here.
  • the ultrasound signal may be a chirp signal, a ZC (zadoff-chu) sequence signal, or other types of audio signals, etc., which are not exhaustive here.
  • the specific audio signal refer to the related description in the second embodiment.
  • FIG. 3 is a schematic flowchart of a method for obtaining a location provided in an embodiment of the present application.
  • the method for obtaining a location provided in an embodiment of the present application may include:
  • the vehicle and the terminal device start an in-vehicle location awareness operation.
  • the vehicle determines that it needs to know the position of the terminal device inside the vehicle, it will start the position awareness operation in the vehicle, and send the first indication information to the terminal device , the first instruction information is used to instruct the terminal device to start an in-vehicle location awareness operation.
  • the steps performed by the vehicle in Embodiment 1 may be specifically performed by a processor in the vehicle, or may be performed by vehicle auxiliary equipment in the vehicle, which is determined in combination with the actual product form, and will not be described later.
  • a vehicle needs to assign control rights to the vehicle for at least one terminal device in the car, but the control rights corresponding to different terminal devices in different positions in the car need to be obtained.
  • the location in the car, the vehicle can trigger and start the location awareness operation in the car.
  • the vehicle needs to obtain the status of each terminal device in the vehicle
  • the position in the car can be determined from at least one terminal device to determine the terminal device located in the co-pilot position, then the vehicle can trigger and start the position awareness operation in the car, etc. It should be noted that the vehicle can also trigger the start of the car in other scenarios.
  • the location-aware operation, the example here is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the terminal device when the terminal device determines that it needs to know the position of the terminal device inside the vehicle, it will start the position awareness operation in the vehicle, and send the second indication information to the vehicle, the second indication The information is used to instruct the vehicle to initiate an in-vehicle location-aware operation.
  • the terminal device can start the position awareness operation in the car to learn from the multiple display screens in the car. Get the display screen closest to the terminal device from the display screens and automatically connect with the terminal device; or, the display screen list can be displayed on the terminal device. The closest display is brought to the top.
  • the terminal device is a wireless headset
  • the wireless headset wants to be connected to the nearest screen in the car to play the sound output by the aforementioned screen through the wireless headset
  • the wireless headset can start the position awareness operation in the car to It should be understood that the terminal device can also trigger and start the position awareness operation in the car in other scenarios, and will not list them one by one here.
  • the vehicle can send the first indication information to the terminal device in the vehicle by broadcasting.
  • the terminal device triggers the terminal device to start the position awareness operation in the vehicle.
  • the terminal device A first feedback message is sent to the vehicle, thereby completing the communication connection between the vehicle and a certain terminal device, and the first feedback message is used to inform the vehicle that the terminal device has successfully started the in-vehicle position awareness operation.
  • the foregoing broadcasting manners may be broadcasting through Bluetooth signals, broadcasting through wireless broadband (wireless fidelity, WIFI) hotspots, or broadcasting in other ways, etc., which are not exhaustive here.
  • the vehicle After the vehicle determines that the terminal device has started the in-vehicle position awareness operation, it can send third indication information to at least one terminal device in the vehicle, the third indication information is used to instruct the terminal device to start receiving ultrasonic signals, and then start to pass through at least two The speakers send ultrasonic signals respectively.
  • the vehicle can simultaneously send the first Three indication information, can also obtain the location of the terminal device in the car one by one.
  • the terminal device in the vehicle can send the second indication information to the vehicle by broadcasting.
  • Two feedback messages where the second feedback message is used to inform the terminal device that the vehicle has successfully started the in-vehicle position awareness operation, so that the terminal device can prepare to start receiving ultrasonic signals.
  • the vehicle can simultaneously send a second feedback message to multiple terminal devices in the vehicle, so that multiple terminal devices simultaneously start measuring their own The position inside the vehicle; the vehicle may also send second feedback messages to multiple terminal devices in the vehicle one by one, so that the multiple terminal devices start to measure their own positions inside the vehicle one by one.
  • a specific implementation mode for triggering the vehicle to start sending ultrasonic signals and the terminal device to start receiving ultrasonic signals is provided, which improves the integrity of the solution; and whether the vehicle wants to obtain the target location information of the terminal device or the terminal device If the device wants to obtain the target location information of the terminal device, it can trigger the sending and receiving operation of the ultrasonic signal, which expands the application scenarios of this solution.
  • the vehicle sends the first ultrasonic signal to the terminal device through the first sound system.
  • At least two speakers are configured in the vehicle, the at least two speakers include a first speaker and a second speaker, and the first speaker and the second speaker are arranged on different sides of the vehicle. Further, if the first speaker and the second speaker are arranged on the front side and the rear side of the vehicle respectively, then a piece of target location information may be used to indicate whether a terminal device is in the front row inside the vehicle or in the rear row inside the vehicle; Or, if the first speaker and the second speaker can be arranged on the left side and the right side of the vehicle respectively, then a piece of target location information can be used to indicate whether a terminal device is located on the left side of the vehicle or on the right side of the vehicle.
  • the at least two speakers configured inside the vehicle may include at least three speakers, and the at least three speakers may include a first speaker, a second speaker and a third speaker, and if the at least three speakers are not located on a straight line, then one
  • the target position information can be used to indicate a specific position of a terminal within the vehicle. As an example, for example, if there are 5 in-vehicle positions in the vehicle, the 5 positions are respectively the main driving position, the co-pilot position, the rear left position, the rear middle position and the rear right position, then one target position information can be It is used to indicate a definite in-vehicle position among the aforementioned five in-vehicle positions. It should be understood that the foregoing example is only for the convenience of understanding the solution, and is not intended to limit the solution.
  • Figure 4 is a schematic diagram of the location of at least three speakers in the position acquisition method provided by the embodiment of the present application.
  • the vehicle sends ultrasonic signals through three speakers.
  • the vehicle is a car as an example.
  • Figure 4 includes three sub-schematic diagrams (a), (b) and (c). position, right front position and left rear position; as shown in the (b) sub-schematic diagram of Figure 4, the three speakers can be respectively located in the left front position, right front position and rear middle of the vehicle interior; as shown in Figure 4 (c ) sub-schematic diagram, the three speakers can be located at the left front position, the right front position and the right rear position, etc. inside the vehicle respectively.
  • the embodiment of the present application describes the positions of various speakers according to the top view of the vehicle, such as left front position, right front position, left rear position and right rear position.
  • At least three speakers inside the vehicle are used to determine the position of the terminal device inside the vehicle, and at least three speakers are not on the same straight line, the precise position of the terminal device inside the vehicle can be obtained, which is beneficial for subsequent Terminal devices provide more refined management.
  • the at least three speakers configured inside the vehicle include four speakers, the four speakers include a first speaker, a second speaker, a third speaker and a fourth speaker, and the four speakers are respectively located on the left side of the vehicle. Front position, right front position, left rear position, and right rear position.
  • the stereos attached to the general vehicle are respectively located at the left front position, the right front position, the left rear position and the right rear position. The more the number, the lower the error rate of the obtained target position information. After making full use of the existing four speakers in the vehicle, it is beneficial to improve the accuracy of the obtained target position information.
  • the vehicle can send the first ultrasonic signal to the terminal device by means of broadcasting through the first sound system, correspondingly, a certain terminal device inside the vehicle (for convenience of description, hereinafter referred to as "target terminal device") After receiving the first ultrasonic signal sent by the first speaker, the target terminal device also acquires the receiving time of the first ultrasonic signal.
  • the frequency band of the first ultrasonic signal can be 17KHZ-48KHZ, optionally, the frequency band of the first ultrasonic signal can be 17KHZ-23KHZ, as an example, for example, the frequency of the first ultrasonic signal can be about 23KHZ, specifically the first ultrasonic signal
  • the frequency of can be determined in combination with the actual application product, and is not limited here.
  • the vehicle sends the second ultrasonic signal to the terminal device through the second sound system.
  • the vehicle can broadcast the second ultrasonic signal to the terminal device through the second sound system.
  • the target terminal device receives the second ultrasonic signal sent by the second sound system, and the target terminal device will also obtain the second At the receiving time of the ultrasonic signal, the second sound and the first sound are two different sounds.
  • the first ultrasonic signal and the second ultrasonic signal are different ultrasonic signals
  • the two different ultrasonic signals can be any one or more of the following Different: different frequencies, different signal modulation methods, different waveforms, different secondary values, or other types of differences, etc.
  • the first ultrasonic signal and the second ultrasonic signal may be the same ultrasonic signal or different ultrasonic signals,
  • the preset time interval may be 0.05 seconds, 0.1 seconds, 0.15 seconds, 0.2 seconds or other durations, and the specific value may be determined in combination with actual application products, and is not limited here.
  • the vehicle sends a third ultrasonic signal to the terminal device through the third sound system.
  • the vehicle can also broadcast a third ultrasonic signal to the terminal device through the third speaker.
  • the target terminal device receives the third ultrasonic signal sent by the third speaker, and the target terminal device also obtains the receiving time of the third ultrasonic signal, and the third speaker, the second speaker and the first speaker are all different speakers.
  • step 302 if step 302, step 303, and step 304 are performed simultaneously, the first ultrasonic signal, the second ultrasonic signal, and the third ultrasonic signal are all different ultrasonic signals.
  • step 302 is executed first
  • step 303 is executed after a preset time interval
  • step 304 is executed after a preset time interval
  • the ultrasonic signals can be the same ultrasonic signal or different ultrasonic signals.
  • the vehicle can also broadcast the fourth ultrasonic signal to the terminal device through the fourth speaker, and correspondingly, the target terminal device receives the first ultrasonic signal.
  • the target terminal device will also obtain the receiving time of the fourth ultrasonic signal, and the fourth speaker, the second speaker and the first speaker are all different speakers.
  • the vehicle sends ultrasonic signals to the terminal device through the first sound, the second sound, the third sound and the fourth sound at the same time, the first ultrasonic signal, the second ultrasonic signal, the third ultrasonic The signal and the fourth ultrasound signal are different ultrasound signals.
  • the time interval between the sending times of two adjacent ultrasonic signals is the preset If the time interval is set, the first ultrasonic signal, the second ultrasonic signal, the third ultrasonic signal and the fourth ultrasonic signal may be the same ultrasonic signal or different ultrasonic signals.
  • the terminal device determines target location information according to the receiving time of the first ultrasonic signal and the receiving time of the second ultrasonic signal, where the target location information is used to indicate the location of the terminal device inside the vehicle.
  • the terminal device may determine the target location information according to the receiving time of the first ultrasonic signal and the receiving time of the second ultrasonic signal, and the target location information is used to indicate the location of the terminal device inside the vehicle.
  • the receiving time of the first ultrasonic signal and the receiving time of the second ultrasonic signal can reflect the relationship between the distance between the terminal device and the first sound and the second sound
  • the positions of the multiple sound in the vehicle are Fixed, when the position of the terminal device relative to the vehicle is different, the distance relationship between the terminal device and each speaker will also be different, so the target position information of the terminal device can be determined.
  • the terminal device may determine the target location information according to the receiving time of the first ultrasonic signal, the receiving time of the second ultrasonic signal, and the receiving time of the third ultrasonic signal.
  • the terminal device may receive the first ultrasonic signal, the second ultrasonic signal, the third ultrasonic signal and the fourth ultrasonic signal Time to determine the target location information.
  • step 305 may include: the target terminal device may be configured with different types of The one-to-one correspondence between ultrasonic signals and speakers at different locations, that is, the speakers at each location can send a fixed type of ultrasonic signal, so that the terminal device can know in advance which type of ultrasonic signal is from Where does the sound come from.
  • the target terminal device determines the order in which different ultrasonic signals arrive at the terminal device according to the receiving time of different ultrasonic signals among the at least two ultrasonic signals.
  • the terminal device can determine that the target terminal device is inside the vehicle according to the order in which different ultrasonic signals arrive at the terminal device. location (that is, to determine the target location information of the target terminal device).
  • the target terminal device can respectively obtain the first The receiving time of an ultrasonic signal, the receiving time of the second ultrasonic signal, the receiving time of the third ultrasonic signal and the receiving time of the fourth ultrasonic signal determine the first ultrasonic signal, the second ultrasonic signal, the third ultrasonic signal and the fourth ultrasonic signal.
  • the order in which the signals arrive at the target terminal device determines the target position information of the target terminal device; wherein, there are N positions inside the vehicle, and the target position information is used to indicate that the target terminal device is located at a target position among the N positions, and N is greater than Integer of 1.
  • the target terminal device determines the order in which each ultrasonic signal arrives at the target terminal device.
  • the principle of the target location information of the target terminal device is displayed. If the ultrasonic signal from the speaker at the left front position reaches the target terminal device first, the ultrasonic signals from the speakers at the right front position and the left rear position take second place, and the ultrasonic signal from the speaker at the right rear position reaches the target terminal device at the latest , it is determined that the target terminal device is located at the main driving position in the vehicle.
  • the ultrasonic signal from the speaker at the right front position reaches the target terminal device first, the ultrasonic signals from the speakers at the left front position and the right rear position take second place, and the ultrasonic signal from the speaker at the left rear position reaches the target terminal device at the latest , it is determined that the target terminal device is located at the co-pilot position in the vehicle.
  • the ultrasonic signal from the speaker at the left rear position reaches the target terminal device first, the ultrasonic signals from the speakers at the left front position and the right rear position arrive second, and the ultrasonic signal from the speaker at the right front position reaches the target terminal device at the latest , it is determined that the target terminal device is located on the left side of the rear row in the car.
  • the ultrasonic signal from the speaker at the right rear position reaches the target terminal device first, the ultrasonic signals from the speakers at the right front position and the left rear position take second place, and the ultrasonic signal from the speaker at the left front position reaches the target terminal device at the latest , it is determined that the target terminal device is located on the right side of the rear row in the car.
  • the ultrasonic signals from the speakers at the front left and the front right reach the target terminal device at the same time
  • the ultrasonic signals from the speakers at the rear left and the rear right reach the target terminal device at the same time
  • the ultrasonic signals emitted by the speakers in the rear position reach the target terminal device earlier than the ultrasonic signals emitted by the speakers in the front left position and the front right position, it is determined that the target terminal device is located in the middle position of the rear row in the vehicle.
  • FIG. 5 is a schematic schematic diagram of a method for obtaining a location provided by the embodiment of the present application.
  • the distance between speaker 1 and terminal device 1 is the shortest
  • the distance between speaker 2 and speaker 3 and terminal device 1 is the second
  • the distance between speaker 4 and terminal device 1 is the farthest; then if the terminal Device 1 finds that the ultrasonic signal from speaker 1 arrives first, followed by the ultrasonic signals from speaker 2 and speaker 3, and the ultrasonic signal from speaker 4 arrives last, then terminal device 1 can determine that it is in the main driving position.
  • the distance between speaker 1 and speaker 2 and terminal device 2 is similar, the distance between speaker 3 and speaker 4 and terminal device 2 is similar, and the distance between speaker 1 and speaker 2 and terminal device 2 is greater than that of speaker 3 and speaker 4
  • the distance between the terminal device 2 and the terminal device 2 if the terminal device 2 finds that the ultrasonic signals from the speaker 3 and the speaker 4 arrive at the same time, the ultrasonic signals from the speaker 1 and the speaker 2 arrive at the same time, and the ultrasonic signals from the speaker 3 and the speaker 4 arrive at the same time. If the signal arrives earlier than the ultrasonic signals from speaker 1 and speaker 2, terminal device 2 can determine that it is in the middle of the back row. It should be understood that the example in Figure 5 is only for a more intuitive understanding of this solution, and is not used to limit this solution .
  • the vehicle can determine the left or right position of the terminal device inside the vehicle through two speakers.
  • Set the two speakers to be located on the left and right sides of the vehicle respectively, so that the distance between the left speaker and the left position is smaller than the distance between the left speaker and the right position, and the distance between the right speaker and the right position is less than The distance between the speaker on the right and the position on the left.
  • the vehicle sends ultrasonic signals to the terminal device through the two speakers, and it can be determined from the ultrasonic signal received by the target terminal device whether the target terminal device is located on the left side or the right side of the vehicle.
  • the target terminal device is located on the left side of the vehicle. If the ultrasonic signal sent by the sound on the right side of the vehicle reaches the target terminal device first, and the ultrasonic signal sent by the sound on the left side of the vehicle reaches the target terminal device later, then the target terminal device is located on the right side of the vehicle.
  • the vehicle can use two speakers to determine whether the terminal device is located in the front row (primary driver's position and co-driver's position) or the rear row (rear seat) inside the vehicle.
  • the two speakers are respectively located on the front and rear sides of the vehicle, so that the distance between the front speaker and the front seat is smaller than the distance between the front speaker and the rear seat, and the distance between the rear speaker and the rear seat is less than The distance between the rear speaker and the front seat.
  • the ultrasonic signal received by the target terminal device it can be determined that the target terminal device is located in the front row or the rear row inside the vehicle.
  • the target terminal device is located in the front row of the vehicle. If the ultrasonic signal sent by the sound at the rear of the vehicle reaches the target terminal device first, and the ultrasonic signal sent by the sound at the front of the vehicle arrives at the target terminal device later, then the target terminal device is located at the rear row of the vehicle.
  • the time for the ultrasonic signal emitted by the sound to reach the terminal device is later. If the vehicle sends different ultrasonic signals to the terminal device through the sound at different positions Signal, the order in which different ultrasonic signals arrive at the terminal equipment can well reflect the distance relationship between the terminal equipment and each speaker, and then can intuitively deduce the specific position of the terminal equipment inside the vehicle, providing a simple The acquisition scheme of target location information is easy to implement.
  • the vehicle sends ultrasonic signals to the terminal device one by one through different speakers in at least two speakers, the time interval between the sending times of two adjacent ultrasonic signals is a preset time interval, and the vehicle passes through different The ultrasonic signals emitted by the speakers can be the same or different.
  • step 305 may include: the target terminal device determines the position of the target terminal device inside the vehicle according to the receiving time of the first ultrasonic signal, the receiving time of the second ultrasonic signal and the preset time interval (that is, determining the target position of the target terminal device information).
  • the target terminal device can determine which location each received ultrasonic signal comes from based on the actual receiving sequence of each ultrasonic signal. , and according to the actual receiving time and preset time interval of each ultrasonic signal, the actual sorting of the distance between the target terminal device and the sound at each position can be known, and the position of the target terminal device inside the vehicle can be determined , the principle can refer to the description in the previous implementation.
  • the target terminal device can respectively obtain the first The first receiving time of an arriving ultrasonic signal (that is, the first ultrasonic signal sent by the first speaker), the receiving time of the second arriving ultrasonic signal (that is, the second ultrasonic signal sent by the second speaker) , the receiving time of the third arriving ultrasonic signal (that is, the third ultrasonic signal sent by the third acoustic signal) and the receiving time of the fourth arriving ultrasonic signal (that is, the fourth ultrasonic signal sent by the fourth acoustic sound) ; Subtract the preset time interval from the receiving time of the second arriving ultrasonic signal to obtain the second receiving time corresponding to the second arriving ultrasonic signal; subtract 2* from the receiving time of the third arriving ultrasonic signal Preset the time interval to obtain the third receiving time corresponding to the third arriving ultrasonic signal; subtract 3
  • the target terminal device determines the target location information of the target terminal device according to the first receiving time, the second receiving time, the third receiving time and the fourth receiving time. Further, since the vehicle sends out the first ultrasonic signal, it will send out the second ultrasonic signal after the preset time interval, then it will send out the third ultrasonic signal after the preset time interval, and then it will send out the fourth ultrasonic signal after the preset time interval. signal, therefore, the first receiving time, the second receiving time, the third receiving time and the fourth receiving time can represent the distance between each sound and the target terminal device.
  • the earlier the first receiving time the closer the distance between the first speaker and the target terminal device, the later the first receiving time, the farther the distance between the first speaker and the target terminal device, and the second
  • the meanings represented by the receiving time, the third receiving time and the fourth receiving time are the same as those represented by the first receiving time.
  • the target terminal device can respectively acquire the first receiving time of the first arriving ultrasonic signal (that is, the first ultrasonic signal sent by the first acoustic signal), the second arriving ultrasonic signal (that is, the first ultrasonic signal sent by the second acoustic the receiving time of the second ultrasonic signal), and subtract the preset time interval from the receiving time of the second arriving ultrasonic signal to obtain the second receiving time corresponding to the second arriving ultrasonic signal.
  • first receiving time is earlier than the second receiving time, it is determined that the target terminal device is located on the side where the first sound is located; if the first receiving time is later than the second receiving time, it is determined that the target terminal device is located on the side where the second sound is located. side.
  • the distance between the sound on the left and the left side of the first sound and the second sound is smaller than the distance between the sound on the left and the right side.
  • the target position information of the target terminal device is used to indicate the left or right position of the target terminal device inside the vehicle.
  • the target position information of the target terminal device is used to indicate that the target terminal device is located at a front row position or a rear row position inside the vehicle.
  • the embodiment of the present application provides another scheme for obtaining target position information, which improves the implementation flexibility of this scheme, and sends ultrasonic signals to the terminal equipment through different speakers in turn, reducing the time spent on processing each ultrasonic signal by the terminal equipment.
  • the difficulty of the process is conducive to improving the accuracy of the finally obtained target location information.
  • a solution for measuring the position of the user relative to the vehicle is provided; using ultrasonic signals to measure the position of the terminal device relative to the vehicle is conducive to obtaining accurate target position information, and since the user cannot perceive the ultrasonic Signal, so that the precise positioning of the user relative to the vehicle is realized without the user's perception; in addition, there is no need to add additional hardware to the vehicle or terminal equipment to avoid additional overhead.
  • FIG. 6 is a schematic flowchart of a method for obtaining a location provided in an embodiment of the present application.
  • the method for obtaining a location provided in an embodiment of the present application may include:
  • the vehicle and the terminal device start an in-vehicle location awareness operation.
  • step 1001 for the specific implementation manner of step 1001, refer to the description of step 301 in the embodiment corresponding to FIG. 3 , and details are not described here.
  • the vehicle receives the first measurement signal sent by the terminal device through the target audio.
  • the terminal device can send the first measurement signal to the vehicle, and correspondingly, the vehicle will also receive the first measurement signal sent by the terminal device through the target audio.
  • the target speaker is any one of the at least two speakers configured in the vehicle
  • the first measurement signal is an ultrasonic signal.
  • the terminal device determines the sending time of the first measurement signal as a third time.
  • the vehicle determines the time of receiving the first measurement signal as the first time.
  • the vehicle sends the second measurement signal to the terminal device through the target audio.
  • the vehicle after both the vehicle and the terminal device start the in-vehicle position awareness operation, the vehicle will send a second measurement signal to the terminal device through the target audio, and the terminal device will also receive the second measurement signal accordingly.
  • the second measurement signal is an ultrasonic signal, and the specific expression form of the aforementioned ultrasonic signal can refer to the description in the embodiment corresponding to FIG. 3 .
  • the vehicle determines the time when the second measurement signal is sent as the second time.
  • the terminal device determines the receiving time of the second measurement signal as a fourth time.
  • steps 1002 to 1004 can be performed first, and then steps 1005 to 1007 can be performed; or steps 1005 to 1007 can be performed first, and then steps 1002 to 1004 can be performed.
  • the order of sending the second measurement signal is not limited. If the terminal device sends the first measurement signal first, then the vehicle sends the second measurement signal after receiving the first measurement signal; if the vehicle sends the second measurement signal first, then the terminal device sends the second measurement signal after receiving the second measurement signal A measurement signal.
  • the vehicle or the terminal device determines the distance between the terminal device and the target audio according to the first time, the second time, the third time, and the fourth time.
  • the vehicle or the terminal device may obtain the first time, the second time, the third time and the fourth time based on the double-ended measurement Distance algorithm to determine the distance between the terminal device and the target speaker.
  • step 1008 may include: the vehicle or The terminal device subtracts the second time from the first time to obtain the first time difference, subtracts the fourth time from the third time to obtain the second time difference, and then subtracts the second time difference from the first time difference to obtain the target Time difference value, the target time difference value is the duration of the ultrasonic signal propagating twice between the target speaker and the terminal device.
  • the vehicle or the terminal device generates the distance between the terminal device and the target sound according to the target time difference.
  • step 1008 may include: the vehicle or the terminal device Subtract the third time from the fourth time to get the third time difference, subtract the first time from the second time to get the fourth time difference, then subtract the fourth time difference from the third time difference to get the target time difference value, the target time difference is the time for the ultrasonic signal to travel twice between the target speaker and the terminal device.
  • the vehicle or the terminal device generates the distance between the terminal device and the target sound according to the target time difference.
  • the difference between the two times obtained by the terminal and the two times obtained by the vehicle are used to calculate the difference, thereby avoiding the Terminal equipment may have errors caused by clock misalignment to obtain accurate distances.
  • the vehicle or terminal device can obtain the distance between the terminal device and each speaker. Specifically, in an implementation manner, the vehicle and the terminal device repeatedly perform steps 1002 to 1008 at least once, so as to acquire the distance between the terminal device and each sound unit one by one.
  • steps 1002 and 1003 can be performed only once, that is, the terminal device can send the first measurement signal to each audio in the car in the form of broadcasting, Correspondingly, each speaker in the vehicle receives the first measurement signal, and records the time when the first measurement signal reaches each of the at least two speakers.
  • the vehicle can simultaneously send different ultrasonic signals (that is, different measurement signals) to the terminal device through different speakers, and the terminal device can record each The time it takes for a measurement signal from a speaker at a location to reach the terminal device.
  • the vehicle can also send ultrasonic signals (that is, measurement signals) to the terminal device through each speaker one by one, and the terminal device can separately record the time when the measurement signals sent by the speakers at each location reach the terminal device.
  • ultrasonic signals that is, measurement signals
  • the vehicle or the terminal device determines target location information according to the distance between the terminal device and each of the at least two speakers, where the target location information is used to indicate the location of the terminal device inside the vehicle.
  • the vehicle or the terminal device after the vehicle or the terminal device obtains the distance between the terminal device and each of the at least two speakers, it can determine the target position based on the principle in the embodiment corresponding to Figure 3 For the specific implementation manner, refer to the description in the embodiment corresponding to FIG. 3 .
  • the vehicle or terminal device may draw a circle with each speaker as the center and the distance between each speaker and the terminal device as the radius to obtain at least two circle, the intersection area of the aforementioned at least two circles is the location where the terminal device is located inside the vehicle.
  • FIG. 7 is a schematic diagram of a location acquisition method provided in an embodiment of the present application.
  • the measurement of the position of the terminal device inside the vehicle is taken as an example by using the audio 1 , the audio 2 and the audio 3 .
  • the vehicle or terminal device obtains the distances between the terminal device and audio 1, audio 2, and audio 3 respectively, it takes audio 1 as the center and the distance between the terminal device and audio 1 as the radius.
  • the terminal device determines the shaded area in FIG. 7 (that is, the intersection area of the aforementioned three circles) as the position where the terminal device is located inside the vehicle.
  • the terminal device is located at the main driving position inside the vehicle. It should be understood that the example in FIG. 7 is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the position of the sound in the vehicle and the use of the target position information can refer to the description in the embodiment corresponding to FIG. 3 , which will not be repeated here.
  • another solution for measuring the position of the user relative to the vehicle is provided, which can be used to improve the implementation flexibility of this solution; the use of ultrasonic signals to measure the position of the terminal device relative to the vehicle is conducive to obtaining accurate Target position information, and since the user cannot perceive the ultrasonic signal, the precise positioning of the user relative to the vehicle is realized without the user's perception.
  • FIG. 8a is a schematic flowchart of a method for obtaining a location provided in an embodiment of the present application.
  • the method for obtaining a location provided in an embodiment of the present application may include:
  • the vehicle and the terminal device start an out-of-vehicle location awareness operation.
  • the vehicle when the vehicle determines that it needs to know the position of the terminal device outside the vehicle during the running of the vehicle, it will start the position awareness operation outside the vehicle and send instruction information to the terminal device.
  • the instruction information is used to instruct the terminal device to start the operation of sensing the location outside the vehicle.
  • the terminal device when the terminal device determines that it needs to know the position of the terminal device outside the vehicle, it will start the position awareness operation outside the vehicle and send instruction information to the vehicle.
  • the foregoing instruction information is used to Instructs the vehicle to initiate an off-vehicle location awareness operation.
  • step 301 in the embodiment corresponding to FIG. 3
  • step 301 in the embodiment corresponding to FIG. 3
  • the difference is that the “in-vehicle position awareness operation” in the embodiment corresponding to FIG. Operation”, the specific implementation plan will not be repeated here.
  • Trigger conditions for initiating off-vehicle location awareness operations for vehicles and end devices For example, for example, when the vehicle or the terminal device detects that the distance between the terminal device and the vehicle is less than a preset distance threshold, it may be triggered to start the location awareness operation outside the vehicle. As another example, for example, when the vehicle or the terminal device detects that the terminal device is located outside the vehicle, it may be triggered to start the position awareness operation outside the vehicle. As another example, for example, when the vehicle is parked, the off-vehicle position sensing operation can be triggered, etc. In which scenarios will the off-vehicle position sensing operation be triggered, which can be determined in combination with the actual product form, and will not be listed here. .
  • the vehicle sends the first ultrasonic signal to the terminal device through the first sound system.
  • the vehicle sends the second ultrasonic signal to the terminal device through the second sound system.
  • the vehicle sends a third ultrasonic signal to the terminal device through the third sound system.
  • the terminal device determines target location information according to the receiving time of the first ultrasonic signal and the receiving time of the second ultrasonic signal, where the target location information is used to indicate the location of the terminal device outside the vehicle.
  • steps 1202 to 1205 are consistent with the specific implementation principles of 302 to 305 in the embodiment corresponding to FIG. The difference is that what is measured in the corresponding embodiment in FIG. 3 is "the location where the terminal device is located inside the vehicle", and what is measured in the embodiment shown in Fig. 12 is "the location where the terminal device is located outside the vehicle".
  • FIG. 8b is a schematic diagram of the external position of the vehicle in the position acquisition method provided by the embodiment of the present application.
  • Z1, Z2, Z3, Z4, and Z5 are five different locations outside the vehicle.
  • the target location information in this embodiment is used to indicate that the terminal device is located in a vehicle in Z1, Z2, Z3, Z4, and Z5.
  • the distance relationship between different outside positions and each sound is different, which is consistent with the realization principle of the corresponding embodiment in Figure 3.
  • it can also be based on each
  • the receiving time of the ultrasonic signal is used to determine the position of the terminal device outside the vehicle. It should be understood that the position outside the vehicle can also be divided in other ways.
  • the example in FIG. 8b is only for the convenience of understanding the feasibility of this solution.
  • the aforementioned two speakers may be respectively located on the left and right sides of the vehicle, or the aforementioned two speakers may be respectively located on the side of the vehicle. front and back.
  • the plurality of sounds used for measuring the specific position of the terminal device outside the vehicle includes at least three sounds, the at least three sounds are not located on a straight line.
  • the four speakers may be respectively located at the left front position, the right front position, the left rear position and the right rear position in the vehicle.
  • the at least two speakers used to measure the specific position of the terminal device inside the vehicle are generally the speakers located inside the vehicle; in the embodiment corresponding to FIG.
  • the at least two speakers located at a specific location outside the vehicle may both be speakers configured outside the vehicle, or may both be speakers configured inside the vehicle.
  • FIG. 9 is a schematic flow chart of a method for obtaining a location provided in an embodiment of the present application.
  • the method for obtaining a location provided in an embodiment of the present application may include:
  • the vehicle and the terminal device start an out-of-vehicle position awareness operation.
  • the vehicle receives the first measurement signal sent by the terminal device through the target audio.
  • the terminal device determines the sending time of the first measurement signal as a third time.
  • the vehicle determines the time of receiving the first measurement signal as the first time.
  • the vehicle sends the second measurement signal to the terminal device through the target audio.
  • the vehicle determines the time when the second measurement signal is sent as the second time.
  • the terminal device determines the receiving time of the second measurement signal as a fourth time.
  • the vehicle or the terminal device determines the distance between the terminal device and the target audio according to the first time, the second time, the third time, and the fourth time.
  • the vehicle or the terminal device determines target location information according to the distance between the terminal device and each of the at least two speakers, where the target location information is used to indicate the location of the terminal device outside the vehicle.
  • steps 1301 to 1309 are consistent with the specific realization principles of steps 1001 to 1009 in the embodiment corresponding to FIG. The difference is that the measurement in the corresponding embodiment in FIG. 6 is "the position where the terminal device is located inside the vehicle", and the measurement in the embodiment corresponding to Fig. 9 is "the position where the terminal device is located outside the vehicle".
  • the measurement in the corresponding embodiment in FIG. 6 is “the position where the terminal device is located inside the vehicle”
  • the measurement in the embodiment corresponding to Fig. 9 is “the position where the terminal device is located outside the vehicle”.
  • the specific implementation manners of steps 1301 to 1309 will not be repeated here.
  • the target location information of the terminal device inside the vehicle is used to determine the control authority of the terminal device to the vehicle, and terminal devices located in different locations have different control permissions to the vehicle.
  • the control authority of the terminal device located at the co-pilot position on the vehicle may include: adjusting the seat angle of the co-pilot, adjusting the temperature of the air conditioner, adjusting the volume of the headrest on the co-pilot position, and adjusting the brightness of the front lights; optional Specifically, music can also be switched for the resident terminal device on the co-pilot position.
  • the control authority of the terminal device located on the right side of the rear row to the vehicle may include: adjusting the temperature of the rear seats, adjusting the brightness of the lights in the rear row, and adjusting the volume of the headrest on the right side of the rear row. It should be understood that the examples here are only For the convenience of understanding this program.
  • FIG. 10 is a schematic diagram of control rights of terminal devices at different locations in the location acquisition method provided by the embodiment of the present application.
  • Figure 10 includes two sub-schematic diagrams (a) and (b).
  • the sub-schematic diagram of (a) in FIG. is the control authority of the terminal device located on the left side of the rear row to the vehicle.
  • the functions supported by the terminal device located in the co-pilot position may include: music switching, opening and temperature of the air conditioner in the co-pilot Adjust and adjust the heating temperature of the passenger seat and turn on or off the smart aromatherapy machine, etc.
  • the functions supported by the terminal device located on the right side of the rear row may include: music switching, adjusting the heating temperature of the rear seats, and turning on or off the smart aromatherapy machine, etc., which are not exhaustive here, that is, they are located in different cars
  • the terminal devices at the positions have different control rights to the vehicle. It should be understood that the example here is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the target terminal device inside the vehicle that is, any terminal device inside the vehicle
  • it can send the target location information of the target terminal device to the vehicle, and the vehicle can send the target terminal device with the target location information.
  • the target terminal device may output prompt information, which is used to remind the operator of the target terminal device of the control authority of the vehicle.
  • the message of the prompt information to be used may be determined in combination with the actual product, and is not limited here.
  • FIG. 11 is a schematic diagram of control rights of terminal devices at different locations in the location acquisition method provided by the embodiment of the present application.
  • the (b) sub-schematic diagram of Figure 11 needs to be understood in conjunction with the above-mentioned description of the (a) sub-schematic diagram of Figure 10.
  • Figure 11 includes two sub-schematic diagrams (a) and (b), and A1 in (a) sub-schematic diagram of Figure 11 Represents the prompt information output by the target terminal device.
  • A1 in (a) sub-schematic diagram of Figure 11 Represents the prompt information output by the target terminal device.
  • A1 When the user clicks on A1, it triggers to enter the sub-schematic diagram (b) in Figure 11, so that the user can control the vehicle through the sub-schematic diagram (b) in Figure 11.
  • the user can hold the terminal device to perform preset operations, and correspondingly, the terminal device can detect the When the movement track of the terminal device is a preset track, it may be triggered to enter the sub-schematic diagram (b) of FIG. 11 .
  • the default operation can be shaking or other operations, etc.
  • the way to enter the sub-schematic diagram (b) of Figure 11 through the sub-schematic diagram of (a) in Figure 11 can be flexibly set according to the actual product form, and the example here is only for the convenience of understanding An example of this scheme, not intended to limit this scheme.
  • the target location information is used to indicate whether the terminal device is located at the main driving position of the vehicle. Specifically, after the target terminal device inside the vehicle (that is, any terminal device inside the vehicle) obtains its own target location information, it can send the target location information of the target terminal device to the vehicle, so that the vehicle can know the location of the target terminal device inside the vehicle. The in-vehicle location of each terminal device, that is, the vehicle can know which terminal device inside the vehicle is the terminal device located at the main driving position.
  • the vehicle can project the screen content of the terminal device at the main driving position to the vehicle central control screen.
  • the content displayed on the central control screen of the vehicle may not be exactly the same as the screen content of the terminal device.
  • the content displayed on the central control screen may be the application program already configured by the vehicle and multiple application programs in the terminal device. That is to say, when the vehicle is not connected to the terminal device at the main driving position, it has its own user interface (user interface, UI). There are more icons, or more functions of the vehicle, but the UI interface of the vehicle has not changed much.
  • the terminal device can perform the above screen projection operation only after it has been paired with the vehicle.
  • FIG. 12 is a schematic diagram of screen projection by a terminal device at the main driving position in the position acquisition method provided by the embodiment of the present application.
  • Figure 12 includes two sub-schematic diagrams (a) and (b).
  • the user instructs the terminal device to be connected to the vehicle in the form of voice, it will trigger to enter the (b) sub-schematic diagram of FIG. 12; refer to the (b) sub-schematic diagram of FIG.
  • the specific schematic diagram when the terminal equipment is connected to the vehicle should be flexibly set in combination with example application products.
  • the example in Figure 12 is only for the convenience of understanding this solution An example of , which is not intended to limit this scenario.
  • the vehicle will judge whether the updated terminal device at the main driving position has been paired with the vehicle. If yes, then project the screen content of the updated terminal device to the vehicle central control screen; if the judgment result is no, send a pairing request to the updated terminal device to always keep the information displayed on the vehicle central control screen. It is the screen content of the terminal device located at the main driving position.
  • FIG. 13 is a schematic diagram of screen projection by a terminal device located at the main driving position in the position acquisition method provided by the embodiment of the present application.
  • Figure 13 includes left and right sub-schematic diagrams.
  • B1 is displayed on the screen of the terminal device located at the main driving position
  • B2 is displayed on the screen of the terminal device located at the co-pilot position
  • B1 is displayed on the screen of the vehicle, It means that the terminal device located in the main driving position (that is, the terminal device pointed to by B1) is projecting the screen through the vehicle's central control screen.
  • B2 is displayed on the screen of the terminal device at the main driving position
  • B1 is displayed on the screen of the terminal device at the co-pilot position
  • B2 is displayed on the screen of the vehicle, It means that the terminal device located at the main driving position (that is, the terminal device pointed to by B2) is projecting the screen through the central control screen of the vehicle.
  • the example here is only for the convenience of understanding this solution, and is not used to limit this solution.
  • the target location information is used for the vehicle to determine the vehicle-mounted device with the closest distance to the terminal device. Further, as an example, for example, when the terminal device needs to perform a screen projection operation through a vehicle, the target location information is used to determine the screen closest to the terminal device. As another example, for example, in the case that the terminal device is a wireless headset, the target location information is used to determine the screen closest to the wireless headset; optionally, the target location information is used to establish a communication connection between the wireless headset and the nearest screen.
  • the embodiment of the present application provides multiple application scenarios of the target location information, which improves the implementation flexibility of the solution.
  • FIG. 14a is a schematic structural diagram of an apparatus for obtaining a location provided in an embodiment of the present application.
  • the location acquisition device 1400 is applied to a vehicle.
  • the vehicle is included in the location acquisition system.
  • the location acquisition system also includes a terminal device.
  • the vehicle is equipped with at least two speakers.
  • the at least two speakers include a first speaker and a second speaker.
  • the stereo and secondary speakers are located on the sides of the vehicle.
  • the location acquisition device 1400 includes: a sending module 1401, configured to send a first ultrasonic signal through a first sound, the first ultrasonic signal is used for the terminal device to determine the receiving time of the first ultrasonic signal, and the receiving time of the first ultrasonic signal is the terminal The time when the device receives the first ultrasonic signal; the sending module 1401 is also configured to send the second ultrasonic signal through the second sound, the second ultrasonic signal is used for the terminal device to determine the receiving time of the second ultrasonic signal, and the second ultrasonic signal
  • the receiving time is the time when the terminal device receives the second ultrasonic signal, the receiving time of the first ultrasonic signal and the receiving time of the second ultrasonic signal are used to determine the target position information, and the target position information indicates the position of the terminal device relative to the vehicle.
  • the sending module 1401 is specifically configured to send the second ultrasonic signal through the second sound while sending the first ultrasonic signal through the first sound, and the first ultrasonic signal and the second ultrasonic signal are different
  • the order in which the ultrasonic signals, the first ultrasonic signal and the second ultrasonic signal arrive at the terminal device is used to determine the target position information.
  • the sending module 1401 is specifically configured to first send the first ultrasonic signal through the first sound, and after a preset time interval, send the second ultrasonic signal through the second sound, the reception of the first ultrasonic signal The time, the receiving time of the second ultrasonic signal and the preset time interval are used to determine the target position information.
  • the at least two speakers include at least three speakers, and the at least three speakers are not located on a straight line.
  • the at least three speakers include four speakers, and the four speakers are respectively located at the left front position, the right front position, the left rear position and the right rear position in the vehicle.
  • the target location information is used to indicate the location of the terminal device inside the vehicle; or, the target location information is used to indicate the location of the terminal device outside the vehicle.
  • the location inside the vehicle is a left location inside the vehicle or a right location inside the vehicle; or, the location inside the vehicle is a front location inside the vehicle or a rear location inside the vehicle; or, The position inside the vehicle is the position inside the vehicle of the main driver, the co-driver, the left side of the rear row, the right side of the rear row, or the middle of the rear row; or, there are N positions in the vehicle, and the number of positions inside the vehicle is N One target location in location, N greater than 5.
  • the target location information is used to determine the control authority of the terminal device to the vehicle, and terminal devices at different locations have different control permissions to the vehicle; or, the target location information is used to indicate whether the terminal device is located in the vehicle or, when the terminal device is connected to the vehicle, the target location information is used for the vehicle to determine the vehicle-mounted device closest to the terminal device.
  • FIG. 14b is another schematic structural diagram of the location acquisition device provided in the embodiment of the present application.
  • the sending module 1401 is further configured to send first indication information to the terminal device when the vehicle starts the position awareness operation, the first indication information is used to instruct the terminal device to start the position awareness operation, and the position awareness operation is used to acquire target position information operation;
  • the position acquiring apparatus 1400 further includes a receiving module 1402, configured to receive a first feedback message sent by the terminal device, and the first feedback message is used to instruct the vehicle to send the first ultrasonic signal and the second ultrasonic signal.
  • the receiving module 1402 is further configured to receive second indication information sent by the terminal device, and initiates a location awareness operation in response to the received second indication information; the sending module 1401 is further configured to send a second feedback message to the terminal device, The second feedback message is used to instruct the terminal device to receive the first ultrasonic signal and the second ultrasonic signal.
  • the embodiment of the present application also provides another device for obtaining a position, please refer to FIG. 15 , which is a schematic structural diagram of another device for obtaining a position provided by the embodiment of the present application.
  • the position acquisition device 1500 is applied to a terminal device, and the terminal device is included in the position acquisition system.
  • the position acquisition system also includes a vehicle, and the vehicle is equipped with at least two speakers, and the at least two speakers include a first speaker and a second speaker. The first and second speakers are located on different sides of the vehicle.
  • the location acquiring device 1500 includes: a receiving module 1501, configured to receive a first ultrasonic signal sent by a first acoustic; a receiving module 1501, also configured to receive a second ultrasonic signal sent by a second acoustic; a determining module 1502, configured to The receiving time of the first ultrasonic signal and the receiving time of the second ultrasonic signal determine the target position information, and the target position information indicates the position of the terminal device relative to the vehicle.
  • the determining module 1502 is specifically configured to determine according to the receiving time of the first ultrasonic signal and the receiving time of the second ultrasonic signal when the first ultrasonic signal and the second ultrasonic signal are sent simultaneously The order in which the first ultrasonic signal and the second ultrasonic signal arrive at the terminal device; determine the target position information according to the order in which the first ultrasonic signal and the second ultrasonic signal arrive at the terminal device.
  • the determining module 1502 is specifically configured to determine the target position information according to the receiving time of the first ultrasonic signal, the receiving time of the second ultrasonic signal and a preset time interval, the preset time interval being adjacent The time interval between sending two ultrasonic signals.
  • the at least two speakers include at least three speakers, and the at least three speakers are not located on a straight line.
  • the embodiment of the present application also provides another device for obtaining a position, please refer to FIG. 16 , which is a schematic structural diagram of another device for obtaining a position provided in the embodiment of the present application.
  • the location acquisition device 1600 is applied to a vehicle.
  • the vehicle is included in the location acquisition system.
  • the location acquisition system also includes a terminal device.
  • the vehicle is equipped with at least two speakers, and at least two speakers are arranged on both sides of the vehicle.
  • the target speakers are Any one of at least two speakers.
  • the location acquisition device 1600 includes: a receiving module 1601, configured to receive the first measurement signal sent by the terminal device through the target audio, and determine the time of receiving the first measurement signal as the first time; a sending module 1602, configured to transmit the first measurement signal through the target audio Send the second measurement signal to the terminal device, and determine the time for sending the second measurement signal as the second time, the first measurement signal and the second measurement signal are both ultrasonic signals; the determination module 1603 is used to determine the time according to the first time, the second measurement signal The second time, the third time and the fourth time determine the distance between the terminal device and the target audio, wherein the third time is the time when the terminal device sends the first measurement signal, and the fourth time is the time when the terminal device receives the second measurement signal Time; the determining module 1603 is further configured to determine target location information according to the distance between the terminal device and each of the at least two speakers, where the target location information indicates the location of the terminal device relative to the vehicle.
  • the at least two speakers include at least three speakers, and the at least three speakers are not located on a straight line.
  • the target location information is used to indicate the location of the terminal device inside the vehicle; or, the target location information is used to indicate the location of the terminal device outside the vehicle.
  • the embodiment of the present application also provides another device for obtaining a position, please refer to FIG. 17 , which is a schematic structural diagram of another device for obtaining a position provided by the embodiment of the present application.
  • the location acquisition device 1700 is applied to a terminal device.
  • the terminal equipment is included in the location acquisition system.
  • the location acquisition system also includes a vehicle.
  • the vehicle is equipped with at least two speakers, and the at least two speakers are arranged in different positions of the vehicle.
  • the target speaker It is any one of at least two speakers.
  • the location acquisition device 1700 includes: a sending module 1701, configured to send a first measurement signal to the target audio, and determine the sending time of the first measurement signal as the third time; a receiving module 1702, configured to receive the second measurement signal sent by the target audio signal, the receiving time of the second measurement signal is determined as the fourth time, the first measurement signal and the second measurement signal are both ultrasonic signals; the determination module 1703 is used to determine the receiving time of the second measurement signal according to the first time, the second time, the third time and the first time Four times, determine the distance between the terminal device and the target audio, wherein, the first time is the time when the vehicle receives the first measurement signal, and the second time is the time when the vehicle sends the second measurement signal; the determination module 1703 is also used to The distance between the terminal device and each of the at least two speakers determines target position information, and the target position information indicates the position of the terminal device relative to the vehicle.
  • the target location information is used to indicate the location of the terminal device inside the vehicle; or, the target location information is used to indicate the location of the terminal device outside the vehicle.
  • the second embodiment in the embodiment of this application provides a part of the embodiment for detecting whether the terminal device is located inside or outside the vehicle; another part of the embodiment is used for detecting where the terminal device is located outside the vehicle. superior.
  • FIG. 18 is a schematic flowchart of a method for obtaining a position provided in the embodiment of the present application.
  • the method for obtaining a position provided in the embodiment of the present application may include:
  • the vehicle and the terminal device start a first position awareness operation.
  • the vehicle when the vehicle detects that the first trigger condition is met, it will start the first position awareness operation, and send instruction information to the terminal device, and the instruction information is used to instruct the terminal device to start the first Location-aware operation, the first location-aware operation is used to measure whether the terminal device is located inside or outside the vehicle.
  • the steps performed by the vehicle in Embodiment 2 can be specifically performed by the processor in the vehicle, or can be performed by the vehicle auxiliary equipment in the vehicle, which is determined in combination with the actual product form, and will not be described later .
  • the vehicle when the vehicle detects any one or more of the following situations, it is deemed to meet the first trigger condition: the vehicle detects that the vehicle is parked; or, the vehicle detects that the distance between the terminal device and the vehicle satisfies the first distance condition ; Or, the vehicle obtains the first instruction, and the first instruction is used to trigger the vehicle to obtain the first location information.
  • various types of inertial measurement units can be configured on the vehicle auxiliary equipment in the vehicle, so that the vehicle auxiliary equipment can use GPS or other sensors to measure the speed of the vehicle, use an accelerometer to measure the acceleration of the vehicle, and use a gyroscope to measure Measure the angular velocity of the vehicle.
  • the vehicle auxiliary equipment in the vehicle inputs the speed, acceleration and angular velocity of the vehicle into the classification model, and obtains the predicted category information output by the classification model.
  • the classification model is a model that has been trained, and the classification model may be embodied as a neural network or a non-neural network model.
  • the classification model can be embodied as a decision tree, a random forest, an extreme random tree, a support vector machine, a K-nearest (KNN) model, a logistic regression model, or other types of classification models, etc., which are not exhaustive here. .
  • the predicted category information indicates that the vehicle is in a stopped state or a moving state;
  • the predicted category information output by the classification model may include a first probability value and a second probability value, and the first probability value is used to indicate that the vehicle is in a stopped state
  • the probability of , the second probability value is used to indicate the probability that the vehicle is in a moving state;
  • the probability of being in a stopped state is 0.3
  • 0.7 is used to indicate that the probability of the vehicle being in a moving state is 0.7, so the predicted category information indicates that the vehicle is in a moving state.
  • the predicted category information output by the classification model can be the first value or the second value. When the predicted category information output by the classification model is the first value, it means that the vehicle is in a stopped state.
  • the predicted type information is the second value
  • the predicted type information is the second value
  • the first value is 0, the second value is 1, etc.
  • the examples here are only for the convenience of understanding the solution, and are not used to limit the solution.
  • the speed, acceleration and angular velocity of the vehicle are input into the classification model to determine whether the vehicle is in a stopped state or a moving state through the classification model, which avoids obtaining the state of the vehicle from the vehicle control system and ensures the safety of the vehicle.
  • the independence of the control system in the process of measuring the target position information of the terminal equipment is conducive to improving the safety of the vehicle running process.
  • Bluetooth can be configured on both the vehicle and the terminal device, and the vehicle can send Bluetooth signals in the form of broadcasting. After receiving the Bluetooth signal sent by the vehicle, the terminal device can calculate the connection between the terminal device and Actual distance between vehicles. In another implementation manner, the terminal device may also send a Bluetooth signal, and the vehicle calculates the actual distance between the terminal device and the vehicle after receiving the Bluetooth signal sent by the terminal device. In another implementation, the vehicle and the terminal device can also use wireless communication technology (WIFI) to calculate the actual distance between the terminal device and the vehicle, etc., and the method of obtaining the actual distance between the vehicle and the terminal device is not exhausted here. lift.
  • WIFI wireless communication technology
  • the vehicle judges whether the distance between the terminal device and the vehicle satisfies a first distance condition; wherein, the first distance condition may be whether the distance between the terminal device and the vehicle is less than a preset distance, and the value of the preset distance may be 5 meters, 3 meters, 2 meters, 1 meter or other values, etc., are not limited here. Alternatively, the first distance condition may be that the distance between the terminal device and the vehicle gradually decreases until a preset distance is satisfied.
  • the vehicle obtains the first instruction.
  • the user can interact with the vehicle through the vehicle auxiliary equipment and/or the on-board computer.
  • the vehicle obtains the preset operation input by the user, it can trigger the vehicle to generate the first instruction.
  • the preset operation includes but It is not limited to the request operation of acquiring the terminal device list in the vehicle, the request operation of switching the terminal device connected to the vehicle, or other types of operations, and the like.
  • the vehicle may receive indication information sent by the terminal device, the foregoing indication information is used to request acquisition of the first location information of the terminal device, and the vehicle generates the first instruction in response to the received foregoing indication information.
  • the vehicle when it detects other events, it can also be regarded as triggering the first trigger condition.
  • the specific events included in the first trigger condition need to be flexibly set in combination with actual application scenarios, and are not limited here.
  • the terminal device when the terminal device detects that the second trigger condition is satisfied, it will start the first position awareness operation, and send instruction information to the vehicle, where the instruction information is used to instruct the vehicle to start the first location awareness operation,
  • the first position awareness operation is used to measure whether the terminal device is located inside or outside the vehicle.
  • the terminal device detects any one or more of the following situations, it is deemed to meet the second trigger condition: the terminal device detects that the vehicle is parked; or, the terminal device detects that the distance between the terminal device and the vehicle satisfies the first A distance condition; or, the terminal device detects that the displacement of the terminal device meets the preset displacement; or, the terminal device obtains a second instruction, and the second instruction is used to trigger the terminal device to obtain the first location information.
  • the classification model can be pre-configured on the terminal device. After the vehicle obtains the speed, acceleration and angular velocity of the vehicle, it can be sent to the terminal device. The terminal device inputs the speed, acceleration and angular velocity of the vehicle into the classification model to obtain the output of the classification model.
  • the prediction category information can refer to the above description, and will not be repeated here.
  • the specific implementation of the terminal device is similar to the specific implementation of the scenario where the vehicle detects the distance between the terminal device and the vehicle, both of which can be referred to the above description. I won't go into details here.
  • the terminal device detects that the displacement of the terminal device meets the preset displacement.
  • at least one type of IMU can be pre-configured on the terminal device, and the terminal device can obtain the displacement of the terminal device in the horizontal direction and/or vertical direction through the IMU, and determine whether the terminal device is in the horizontal direction and/or vertical direction. Whether the displacement in the direction meets the preset displacement, if the judgment result is yes, it is determined that the second trigger condition is met.
  • the preset displacement may be that the displacement of the terminal device in the horizontal direction is greater than or equal to a preset threshold; or, the preset displacement may be that the displacement of the terminal device in the vertical direction is greater than or equal to a preset threshold; or, the preset displacement It may include that the displacement of the terminal device in the horizontal direction is greater than or equal to a preset threshold, and the displacement of the terminal device in the vertical direction is greater than or equal to the preset threshold.
  • the setting of the specific preset displacement can be flexibly determined according to the actual situation, and is not limited here in detail.
  • the terminal device can receive the indication information sent by He Liang, the aforementioned indication information is used to request the first location information of the terminal device, and the vehicle generates the second instruction in response to the received aforementioned indication information, and the terminal device can also The second command is obtained in the scene, and will not be listed here one by one.
  • the terminal device detects other events, it can also be regarded as triggering the second trigger condition.
  • the specific events included in the second trigger condition need to be flexibly set in combination with actual application scenarios, and are not limited here.
  • the vehicle sends at least one target audio signal to the terminal device.
  • the vehicle may send at least one target audio signal to the terminal device through the audio.
  • the target audio signal can be an ultrasonic signal, and the frequency band of the ultrasonic signal can be 17KHZ-48KHZ.
  • the frequency band of the target audio signal can be 17KHZ-22KHZ.
  • the frequency of the specific target audio signal can be determined in combination with the actual application product. There is no limit.
  • the target audio signal may be a chirp (Chirp) signal, a ZC (zadoff-chu) sequence signal, or other types of audio signals, etc., which are not exhaustive here.
  • ⁇ 0 is the initial phase difference
  • f 0 is the starting frequency
  • c is a constant.
  • the above-mentioned sound can be a sound arranged at any position inside the vehicle, as an example, such as a sound in the upper left corner, upper right corner, lower left corner, lower right corner or other positions; optionally, if the vehicle is equipped with vehicle auxiliary equipment, the above-mentioned
  • the sound can also be the sound on the auxiliary equipment of the vehicle.
  • Figure 19 is a schematic diagram of the sound in the position acquisition method provided by the embodiment of the present application. Whether the terminal device is located inside the vehicle or outside the vehicle is measured through the audio configured on the vehicle smart screen. It should be understood that the example in FIG. 19 is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the chirp signal or the ZC sequence signal is an energy-gathering signal
  • selecting the chirp signal or the ZC sequence signal as the target audio signal is conducive to accurately estimating at least one arrival time corresponding to each target audio signal , which is conducive to obtaining accurate first position information.
  • the vehicle adopts a form of broadcasting, and sends multiple target audio signals according to a first preset frequency through the sound.
  • the first preset frequency can be that the vehicle sends a target audio signal every d sampling points.
  • the value of d can be 880, 1320, 1760 or other values, etc., which can be flexibly set in combination with actual scenarios.
  • the multiple target audio signals include a first detection signal and a second detection signal
  • at least one arrival time corresponding to the target audio signal may include a first time set corresponding to the first detection signal and a second time corresponding to the second detection signal Set
  • the first time set includes at least one time when the first detection signal reaches the terminal device through direct radiation and/or reflection
  • the second time set includes at least one time when the second detection signal reaches the terminal device through direct radiation and/or reflection
  • the first The latest time in the set of times and the earliest time in the second set of times may be used to determine the first location information.
  • the vehicle sends one or more target audio signals through the audio, wherein each target audio signal is used to determine a target time set corresponding to the one target audio signal, and the target time set includes the target audio signal passing through At least one time when the direct light and/or reflection arrives at the terminal device, the earliest time and the latest time in the target time set may be used to determine the first location information.
  • the terminal device acquires at least one arrival time corresponding to at least one target audio signal, and the at least one arrival time corresponding to one target audio signal includes the time when the target audio signal reaches the terminal device through direct radiation and/or reflection.
  • the terminal device when the vehicle sends one or more target audio signals through the audio according to the first preset frequency in the form of broadcasting, correspondingly, the terminal device can acquire the At least one arrival time corresponding to each target audio signal, the at least one arrival time corresponding to a target audio signal includes the time when the target audio signal reaches the terminal device through direct radiation and/or reflection.
  • the parameter information of the target audio signal may be pre-stored on the terminal device, such as the frequency band of the target audio signal, the amplitude and intensity of the target audio signal, or other parameter information.
  • the terminal device can filter the received audio signal through a bandpass filter to obtain a filtered signal.
  • the frequency band of the filtered signal is the same as that of the target audio signal.
  • the frequency bands are the same.
  • the terminal device obtains a matching degree curve between the filtered signal and the target audio signal through a matched filter according to the filtered signal, and the matching degree curve is used to indicate at least one arrival time corresponding to each target audio signal.
  • the horizontal axis of the matching degree curve is time, and the time can be measured by sampling points or seconds; the vertical axis of the matching degree curve can be the impulse response of the filtered signal at each time point.
  • Each of the multiple peaks included in the matching curve that exceeds the preset peak threshold is considered to be a target audio signal received by the terminal device, and the sampling point corresponding to each peak that exceeds the preset peak threshold is regarded as a target An arrival time corresponding to the audio signal.
  • the preset peak threshold can be any one of the following types: in the matching degree curve, the maximum peak value *a, a within d sampling points (that is, within the sending period of a target audio signal)
  • the value range is 0.5-1; or, in the matching degree curve, the average value of all values on the vertical axis within d sampling points (that is, within the transmission cycle of a target audio signal)*b, the value of b
  • the range is 5-10; or the preset peak threshold can be set to other values.
  • the value of the preset peak threshold can be flexibly set in combination with the actual product form. The examples here are only for the convenience of understanding this solution and are not used to limit this solution. .
  • Figure 20 is a schematic diagram of the matching degree curve in the position acquisition method provided by the embodiment of the present application.
  • the preset peak threshold is the maximum peak value *a within a sending period of a target audio signal as an example. Since each target audio signal may reach the terminal device through direct radiation and/or reflection, after the vehicle transmits a target audio signal, the terminal device may receive one or more target audio signals. For the target audio signal, the terminal device can receive a target audio signal as an example, then the terminal device can obtain an arrival time corresponding to each audio signal.
  • the example in Figure 20 is only for the convenience of understanding this solution. limited to this program.
  • the target audio signal sent by the vehicle may not be able to Arriving at the terminal device, that is, the terminal device cannot collect any target audio signal within a preset time period.
  • the terminal device can obtain the zero arrival time corresponding to each target audio signal within the preset time period, the terminal device can generate the first location information corresponding to the terminal device.
  • the first location information in this application scenario It is used to indicate that the terminal device is located outside the vehicle; optionally, the terminal device may send the generated first location information to the vehicle.
  • the value range of the preset duration may be 100ms-20000ms.
  • the value of the preset duration may be 200ms, 400ms, 600ms or other values, etc., which are not exhaustive here.
  • the terminal device generates first location information corresponding to the terminal device according to at least one arrival time, where the first location information is used to indicate that the terminal device is located inside or outside the vehicle.
  • the terminal device may directly generate the first location information corresponding to the terminal device according to the at least one arrival time corresponding to each target audio signal.
  • the terminal device may also send at least one arrival time corresponding to each target audio signal to the vehicle, and the vehicle generates first position information corresponding to the terminal device.
  • FIG. 21 is two schematic diagrams of matching degree curves in the position acquisition method provided by the embodiment of the present application.
  • Figure 21 includes two sub-schematic diagrams (a) and (b), and the (a) sub-schematic diagram of Figure 21 shows that when the terminal device is inside the vehicle, the three target audio signals sent by the vehicle according to the first preset frequency arrive at the terminal After the device is installed, a schematic diagram of the matching degree curve obtained by the terminal device; the (b) sub-schematic diagram of Figure 21 shows that when the terminal device is located outside the vehicle, the vehicle sends out three target audio signals according to the first preset frequency After arriving at the terminal device, a schematic diagram of the matching degree curve acquired by the terminal device.
  • the sampling point is used as the time measurement unit
  • the preset peak threshold is the largest peak value *a in the transmission period of a target audio signal as an example.
  • the target audio signal may reach the terminal device in a direct way, or reach the terminal device after being reflected by the surrounding environment. Since the space inside the vehicle is relatively small and closed, as shown in Figure 21 (a ) sub-schematic diagram, when the terminal device is inside the vehicle, at least one arrival time corresponding to one target audio signal is relatively concentrated. While the space outside the vehicle is relatively open, as shown in the sub-schematic diagram (b) of FIG. 21 , when the terminal device is located outside the vehicle, multiple arrival times corresponding to one target audio signal are relatively scattered. Therefore, after the terminal device or the vehicle obtains at least one arrival time corresponding to each target audio signal, it can determine whether the terminal device is located inside or outside the vehicle. It should be understood that the example in FIG. 21 is only for the convenience of understanding the implementation of this solution. An example of the principle, not intended to limit this solution.
  • At least one target audio signal includes multiple target audio signals sent by the vehicle according to a first preset frequency
  • the multiple target audio signals include a first detection signal and a second detection signal
  • the multiple target audio signals include a first detection signal and a second detection signal.
  • the multiple arrival times corresponding to the target audio signal include a first time set corresponding to the first detection signal and a second time set corresponding to the second detection signal
  • the first time set includes the first detection signal through direct radiation and/or reflection
  • At least one time to arrive at the terminal device the second time set includes at least one time when the second detection signal arrives at the terminal device through direct radiation and/or reflection
  • the time interval between the arrival times in the first time set and the second time set is used for determining the first location information.
  • the time when the vehicle sends the first detection signal may be earlier than the time when the vehicle sends the second detection signal, or the time when the vehicle sends the first detection signal may be later than the time when the vehicle sends the second detection signal.
  • the first time set and the second time set are adjacent on matching degree curves corresponding to multiple target audio signals, that is, the first detection signal and the second detection signal are two different target audio signals, and they arrive adjacent to the terminal equipment.
  • a judgment condition for the first location information If the time interval between the arrival times in the first time set and the second time set is within the preset time range, the first location information indicates that the terminal device is located inside the vehicle, and the determining factors of the preset time range include the vehicle sending two The time interval between adjacent target audio signals; if the time interval between the arrival times in the first time set and the second time set is not within the preset time range, the first location information indicates that the terminal device is located outside the vehicle .
  • the time measurement unit adopted by the preset time range may include sampling points, milliseconds, seconds or other time measurement units, etc., as an example, for example, the preset time range may be d-c sampling points to d+e sampling points, The d sampling points are the time interval between the vehicle sending two target audio signals.
  • the values of c and e can be the same or different. As an example, the values of c and e are related to the sampling rate when the received target audio signal is processed.
  • the value of e can be It is 50 sampling points, for example, the value of c can be between 400 sampling points and 960 sampling points, and c and e can also be other values, which need to be flexibly determined based on actual application scenarios, and are not exhaustive here .
  • the preset time range may be determined based on the time interval between two adjacent target audio signals sent by the vehicle, thereby providing a simple way of determining the preset time range.
  • step 2004 may include: the terminal device or the vehicle generates the first location information according to the first time interval between the latest time in the first time set and the earliest time in the second time set.
  • the terminal device or vehicle obtains the first time interval between the latest time in the first time set and the earliest time in the second time set, and judges whether the first time interval is within the preset time range, if the second If a time interval is within the preset time range, it is determined that the terminal device is located inside the vehicle; if the first time interval is not within the preset time range, it is determined that the terminal device is located outside the vehicle.
  • a specific implementation manner of obtaining the first location information of the terminal device by using the time interval between the arrival times in the first time set and the second time set is provided, which is simple in operation and easy to implement.
  • the time interval between the arrival times in the first set of times and the time of arrival in the second set of times comprises: the time interval between the time in the middle of the first set of times and the earliest time in the second set of times ; in another case, the time interval between the arrival times in the first set of times and the arrival times in the second set of times includes the time between the middle time in the first set of times and the latest time in the second set of times.
  • the time interval, etc., and the time interval between the arrival times in the first time set and the second time set can also be specifically expressed in other meanings, etc., which can be flexibly set in combination with actual application products, and are not limited here.
  • step 2004 may include: the terminal device or the vehicle may acquire a target time set corresponding to each target audio signal, and the target time set includes at least one time when a target audio signal reaches the terminal device through direct radiation and/or reflection. a time.
  • the terminal device or vehicle obtains the earliest time and the latest time in the target time set, and obtains the second time interval between the earliest time and the latest time in the target time set, and determines whether the second time interval is greater than or equal to the first time interval A time threshold, if the judgment result is yes, it is determined that the terminal device is located outside the vehicle; if the judgment result is no, it is determined that the terminal device is located inside the vehicle.
  • the degree of dispersion of at least one arrival time corresponding to the at least one target audio signal can also be measured in other ways, and the more dispersed the at least one arrival time corresponding to the at least one target audio signal, it proves that the terminal device is located outside the vehicle ; The closer the at least one arrival time corresponding to the at least one target audio signal, the closer it is to prove that the terminal device is located inside the vehicle, and not all implementations are listed here.
  • the terminal device after the terminal device generates the first location information corresponding to the terminal device, it can send the aforementioned first location information to the vehicle; correspondingly, after the vehicle generates the first location information corresponding to the terminal device, it can send the aforementioned first location information to the vehicle.
  • the first location information is sent to the terminal device.
  • the vehicle sends multiple target audio signals, and the target audio signals can reach the terminal device through direct radiation and/or reflection. Since the space inside the vehicle is relatively closed, one target audio signal can be obtained after direct radiation and/or reflection Multiple audio signals can reach the terminal equipment in a concentrated manner, while the space outside the vehicle is relatively open compared to the space inside the vehicle, and multiple audio signals obtained by directing and/or reflecting a target audio signal will reach the terminal equipment in a scattered manner , so it can be determined according to the time interval between the first time set and the second time set that the terminal device is located inside or outside the vehicle, thereby providing a solution for measuring the position of the user relative to the vehicle; in addition, the audio signal can pass through the vehicle
  • the built-in audio in the vehicle does not need to add additional hardware to the vehicle or terminal equipment to avoid additional costs.
  • the embodiment of the present application also provides another location acquisition method to measure whether the terminal device is located inside the vehicle or outside the vehicle. Please refer to FIG. 22.
  • FIG. 22 is another schematic flowchart of the location acquisition method provided by the embodiment of the present application.
  • the location acquisition method provided by the embodiment of the application may include:
  • the vehicle sends multiple target audio signals to the terminal device according to a second preset frequency.
  • the vehicle when the vehicle is in a moving state, the vehicle can start to send out a plurality of target audio signals by means of broadcasting through the audio according to the second preset frequency; since the vehicle is in a moving state, the vehicle can detect The received terminal equipment is generally located inside the vehicle, and the multiple target audio signals sent by the vehicle according to the second preset frequency can all reach the terminal equipment.
  • the second preset frequency and the first preset frequency in the embodiment corresponding to FIG. 18 may be the same or different.
  • the target audio signal please refer to the description in the embodiment corresponding to FIG.
  • the implementation manner refer to the description in the embodiment corresponding to FIG. 18
  • step 2401 refer to the description in the embodiment corresponding to FIG. 18 , and details are not repeated here.
  • the terminal device acquires multiple first arrival times corresponding to multiple target audio signals, and one first arrival time represents the time when one target audio signal arrives at the terminal device.
  • the vehicle when the vehicle is in a moving state, the vehicle sends a plurality of target audio signals according to the second preset frequency and can reach the terminal device after direct radiation and/or reflection, and the terminal device can obtain the audio signal corresponding to each target audio signal.
  • the vehicle when the vehicle is in a moving state, the vehicle sends a plurality of target audio signals according to the second preset frequency and can reach the terminal device after direct radiation and/or reflection, and the terminal device can obtain the audio signal corresponding to each target audio signal.
  • the terminal device may determine a first arrival time corresponding to each target audio signal according to at least one arrival time corresponding to each target audio signal.
  • the aforementioned first arrival time may be at least one arrival time corresponding to each target audio signal and may only include one arrival time; or, the aforementioned first arrival time may be at least one arrival time corresponding to each target audio signal
  • the earliest time of arrival; or, the aforementioned first time of arrival can be the latest time of arrival in at least one time of arrival corresponding to each target audio signal; Other arrival times in the corresponding at least one arrival time are not exhaustive here.
  • the terminal device repeatedly performs the above operations, and can obtain multiple first arrival times corresponding to multiple target audio signals one-to-one.
  • One first arrival time represents the time when a target audio signal arrives at the terminal device when the terminal device is located inside the vehicle. .
  • the terminal device acquires at least one second arrival time corresponding to at least one target audio signal when detecting that the second trigger condition is met.
  • the terminal device obtains at least one second arrival time corresponding to at least one target audio signal one-to-one when detecting that the second trigger condition is satisfied.
  • the terminal device detecting that the second trigger condition is met refer to the description in the embodiment corresponding to FIG.
  • the specific implementation method for the terminal device to obtain multiple first arrival times corresponding to multiple target audio signals is the same, the difference is that the first arrival time is obtained when the vehicle is in a moving state, and the second arrival time is It is obtained after it is detected that the second trigger condition is met.
  • the terminal device generates first location information corresponding to the terminal device according to multiple first arrival times and at least one second arrival time, where the first location information is used to indicate that the terminal device is located inside or outside the vehicle.
  • the terminal device after the terminal device obtains multiple first arrival times and at least one second arrival time, it can generate the first location corresponding to the terminal device according to the multiple first arrival times and at least one second arrival time Information, the first location information is used to indicate that the terminal device is located inside or outside the vehicle.
  • the terminal device determines the first predicted time corresponding to the second time of arrival according to the multiple first arrival times, and the first predicted time indicates that when the relative position between the terminal device and the vehicle remains unchanged, that is, when the terminal When the device is inside the vehicle, the time when the target audio signal arrives at the terminal device; according to the first predicted time and the second arrival time, the first location information is generated.
  • each first arrival time can be expressed as the following formula in, Represents the time when the i-th target audio signal sent by the vehicle arrives at the terminal device, i represents the i-th target audio signal sent by the vehicle, T represents the time interval between two target audio signals sent by the vehicle, b represents the distance between the vehicle and the terminal device There is a clock difference between them.
  • the terminal device can calculate the clock difference b between the vehicle and the terminal device by using the least square method according to the multiple first arrival times corresponding to the multiple target audio signals one-to-one.
  • the terminal device detects that the second trigger condition is satisfied, it can know that the vehicle is about to send the k-th target audio signal, then the formula Calculate the first prediction time corresponding to the kth target audio signal
  • the terminal device may calculate a third time interval between the second arrival time and the first preset time, and judge whether the third time interval is greater than or equal to the second time threshold, and if the judgment result is yes, then It is determined that the terminal device is located outside the vehicle; if the judgment result is no, it is determined that the terminal device is located inside the vehicle.
  • the terminal device can calculate the third time interval ⁇ t k between the second arrival time and the first preset time, and multiply the third time interval ⁇ t k by the sound propagation speed s to obtain the distance value d.
  • the terminal device judges whether the distance d is greater than or equal to the preset distance threshold d threshold , and if the judgment result is yes, it is determined that the terminal device is located outside the vehicle; if the judgment result is no, it is determined that the terminal device is located inside the vehicle.
  • the terminal device capable of continuously receiving audio signals since the terminal device capable of continuously receiving audio signals must be located in the vehicle when the vehicle is in a moving state, the first predicted time can be obtained according to the obtained multiple first arrival times, and then According to the generated first predicted time and the actual second arrival time, it is determined whether the terminal device is located inside or outside the vehicle, and only one speaker is needed to realize the detection of the first position information of the terminal device, which further reduces the implementation of this solution Difficulty, which is conducive to expanding the application scenarios of this scheme.
  • the terminal device may send the aforementioned first location information to the vehicle.
  • the embodiment of the present application also provides another position acquisition method to measure the specific position of the terminal device outside the vehicle, please refer to FIG. 23, which is another schematic flowchart of the position acquisition method provided by the embodiment of the present application.
  • the location acquisition method provided in the embodiment of the present application may include:
  • the vehicle and the terminal device start an out-of-vehicle location awareness operation.
  • the vehicle when the vehicle determines that it needs to know the position of the terminal device outside the vehicle during the running of the vehicle, it will start the position awareness operation outside the vehicle and send instruction information to the terminal device.
  • the instruction information is used to instruct the terminal device to start the location sensing operation outside the vehicle, and the location sensing operation outside the vehicle is used to acquire the specific location of the terminal device outside the vehicle.
  • the vehicle when the vehicle detects that the distance between the terminal device and the vehicle is less than a preset threshold, it may be necessary to know the specific location of the terminal device outside the vehicle. As another example, for example, if the vehicle detects that the distance between the terminal device and the vehicle is getting smaller and smaller, it may need to know the specific location of the terminal device outside the vehicle. limited to this program.
  • the vehicle sends the first audio signal to the terminal device through the first sound system.
  • At least three speakers can be configured on the vehicle.
  • the at least three speakers are not located in a straight line.
  • the at least three speakers include the first speaker, the second speaker and the third speaker.
  • the first audio signal may be sent to the terminal device in a broadcast manner through the first speaker.
  • the vehicle sends the second audio signal to the terminal device through the second sound system.
  • the vehicle sends a third audio signal to the terminal device through the third sound system.
  • the vehicle may also broadcast the second audio signal to the terminal device through the second speaker; and send the third audio signal to the terminal device through the broadcast method through the third speaker.
  • the specific representations of the first audio signal, the second audio signal and the third audio signal are similar to the specific representations of the target audio signal, which can be directly referred to the description in the corresponding embodiment in FIG. 18 , and will not be repeated here.
  • the first audio signal, the second audio signal and the third audio signal are signals with the same signal strength, that is, the first audio signal, the second audio signal and the third audio signal have the same volume.
  • the sound in the second embodiment can be the sound located inside the vehicle, or the sound located outside the vehicle. .
  • the vehicle can perform steps 2502 to 2504 at the same time, then the first audio signal, the second audio signal and the third audio signal need to use different audio signals, and the specific meanings of different audio signals can be found in The description of the first embodiment will not be described here one by one.
  • the vehicle may execute step 2502 first, then execute step 2503 after a preset time interval, and then execute step 2504 after a preset time interval, then the first audio signal, the second audio signal and the third
  • the audio signals may be the same audio signal or different audio signals.
  • the vehicle can also send the fourth audio signal to the terminal device through the fourth sound system.
  • the terminal device can obtain the fourth signal strength of the received fourth audio signal.
  • the vehicle can also use more Multiple speakers send audio signals to the terminal device. The specific number of speakers and the location of each speaker can be flexibly set according to the actual situation, and are not limited here.
  • the terminal device generates an audio signal corresponding to the terminal device according to the received first signal strength of the first audio signal, the received second signal strength of the second audio signal, and the received third signal strength of the third audio signal.
  • the second location information, the second location information is used to indicate the location of the terminal device outside the vehicle.
  • the farther the audio signal propagates the smaller the intensity of the audio signal received by the terminal device is.
  • the terminal device may generate a first signal strength corresponding to the terminal device according to the received first signal strength of the first audio signal, the received second signal strength of the second audio signal, and the received third signal strength of the third audio signal. 2. Location information.
  • the terminal device can send the second location information of the terminal device to the vehicle.
  • Figure 8b is a schematic diagram of the position outside the vehicle in the position acquisition method provided by the embodiment of the present application
  • Figure 24 is the position provided by the embodiment of the present application
  • Fig. 24 needs to be understood in conjunction with Fig. 8b.
  • speaker 1 is farthest from the terminal device
  • speaker 2 is next to the terminal device
  • speaker 3 is the closest to the terminal device.
  • the audio signal sent by speaker 1 has the weakest signal strength when it reaches the terminal device
  • the signal strength when the audio signal sent by speaker 1 reaches the terminal device is the second
  • the audio signal sent by speaker 1 has the strongest signal strength when it reaches the terminal device.
  • Pushing forward if the intensity of the three audio signals sent by the three speakers received by the terminal device meets the aforementioned settings, it proves that the terminal device is located in the Z4 area.
  • the example in Figure 24 is only for the convenience of understanding the implementation principle of this solution An example of , which is not intended to limit this scenario.
  • multiple sets of preset intensity information corresponding to multiple areas outside the vehicle may be pre-stored on the terminal device, and a set of preset intensity information corresponding to a target area outside the vehicle (any area outside the vehicle) It includes at least three target intensity values one-to-one corresponding to at least three speakers, and one target intensity value represents the intensity value of an audio signal emitted by a speaker received when the terminal device is located at the center point of the target area.
  • a target intensity value represents the intensity value of an audio signal emitted by a speaker received when the terminal device is located at the center point of the target area.
  • the terminal device After the terminal device obtains the first signal strength, the second signal strength, and the third signal strength, it obtains a set of actual strength information, and the terminal device calculates the actual strength information and each set of preset strength information among the multiple sets of preset strength information.
  • the foregoing distances may be Euclidean distances, Mahalanobis distances, or other types of distances, which are not exhaustive here.
  • the farther the audio signal propagates the smaller the intensity of the audio signal received by the terminal device is.
  • the first signal strength, the second signal strength, and the third signal strength can respectively reflect the distance relationship between the terminal device and the first sound, the second sound, and the third sound, so it can be based on the first signal strength, the second signal strength and The third signal strength obtains the specific position of the terminal device outside the vehicle, which provides another implementation method of measuring the specific position of the terminal device outside the vehicle, and improves the implementation flexibility of this solution.
  • the second position information is used for the vehicle to determine the component with the closest distance to the terminal device from among the multiple components included in the vehicle, so as to control the distance between the terminal device and the terminal device.
  • the closest component performs the default action.
  • the component may be a car door, a car light, a trunk or other car components
  • the preset operation may be unlocking the car door, opening the car door, unlocking the trunk, turning on the car light, or other operations, etc., which are not limited here.
  • FIG. 25 is an application scenario diagram of the location acquisition method provided by the embodiment of the present application.
  • the left front door can be unlocked; when the vehicle determines that the terminal device is located in the Z2 area outside the vehicle, the left rear door can be unlocked; when the vehicle determines that the terminal device When located in the Z5 area outside the vehicle, the trunk can be unlocked.
  • Fig. 25 is only an example for easy understanding of this solution, and is not intended to limit this solution.
  • the vehicle determines that the terminal device is located in the Z1 area outside the vehicle, it can also turn on the lights on the left front side to provide illumination for the user; as another example, for example, when the vehicle determines that the terminal device is located in the vehicle In the external Z2 area, the car door can also be opened automatically, etc., and the details are not exhaustive here.
  • the second location information is used to provide users with more accurate services, which is conducive to improving the user stickiness of this solution.
  • FIG. 26 is a schematic structural diagram of an apparatus for obtaining a location provided in an embodiment of the present application.
  • the location acquisition device 2900 is applied to a vehicle, the vehicle includes a location acquisition system, and the location acquisition system also includes a terminal device, and the location acquisition device 2900 includes: a sending module 2901, configured to detect that the first trigger condition is satisfied , sending at least one target audio signal, wherein the target audio signal is used to determine at least one arrival time corresponding to the target audio signal; the sending module 2901 is specifically configured to send multiple target audio signals according to a preset frequency, wherein the multiple target audio signals
  • the audio signal includes a first detection signal and a second detection signal, at least one arrival time includes a first time set corresponding to the first detection signal and a second time set corresponding to the second detection signal, the first time set includes the first detection signal At least one time when the signal arrives at the terminal device through direct radiation and/or reflection, and the second time set includes at least one time when the second detection signal reaches the terminal device through direct radiation and/or reflection; the acquisition module 2902 is configured to obtain the time corresponding to the terminal device First location information, the first location information
  • the target audio signal is a chirp signal or a ZC sequence signal.
  • the first location information indicates that the terminal device is located inside the vehicle, where the preset
  • the determination factors of the time range include the time interval between the vehicle sending two adjacent target audio signals; if the time interval between the arrival time in the first time set and the second time set is not within the preset time range, then The first location information indicates that the terminal device is located outside the vehicle.
  • the time interval between the arrival times in the first time set and the second time set includes: the time between the latest time in the first time set and the earliest time in the second time set interval.
  • the sending module 2901 detects any one or more of the following situations, it is deemed to have detected that the first trigger condition is met: the vehicle is detected to be parked; The distance satisfies the first distance condition; or, the first instruction is obtained, and the first instruction is used to trigger the vehicle to obtain the first location information.
  • the sending module 2901 is specifically used to acquire the speed, acceleration and angular velocity of the vehicle, and input the speed, acceleration and angular velocity of the vehicle into the classification model to obtain the predicted category information output by the classification model, and the predicted category information indicates The vehicle is stationary or moving.
  • the embodiment of the present application also provides another device for obtaining a position, please refer to FIG. 27 , which is a schematic structural diagram of another device for obtaining a position provided in the embodiment of the present application.
  • the position acquisition device 3000 is applied to a terminal device, the terminal device is included in the position acquisition system, the position acquisition system also includes a vehicle, and the position acquisition device 3000 includes: an acquisition module 3001, configured to detect that the second trigger condition is satisfied Next, at least one arrival time corresponding to at least one target audio signal is acquired, the at least one target audio signal includes a plurality of target audio signals sent by the vehicle according to a preset frequency, and the plurality of target audio signals include a first detection signal and a second detection signal signal, at least one arrival time includes a first time set corresponding to the first detection signal and a second time set corresponding to the second detection signal, and the first time set includes the time when the first detection signal arrives at the terminal device through direct radiation and/or reflection At least one time, the second time set includes at least one time when the second
  • the first location information indicates that the terminal device is located inside the vehicle, where the preset
  • the determination factors of the time range include the time interval between the vehicle sending two adjacent target audio signals; if the time interval between the arrival time in the first time set and the second time set is not within the preset time range, then The first location information indicates that the terminal device is located outside the vehicle.
  • the generating module 3002 is specifically configured to generate the first location information according to the time interval between the latest time in the first time set and the earliest time in the second time set.
  • the acquisition module 3001 detects any one or more of the following situations, it is deemed to have detected that the second trigger condition is met: the vehicle is parked; or, the terminal device and the vehicle are detected The distance satisfies the first distance condition; or, it is detected that the displacement of the terminal device meets the preset displacement; or, a second instruction is obtained, and the second instruction is used to trigger the terminal device to obtain the first location information.
  • the embodiment of the present application also provides another device for obtaining a position, refer to FIG. 28 , which is a schematic structural diagram of the device for obtaining a position provided in the embodiment of the present application.
  • the position acquisition device 3100 is applied to a vehicle, and the vehicle includes a position acquisition system, and the position acquisition system also includes a terminal device.
  • the position acquisition device 3100 includes: a sending module 3101, configured to send a plurality of target audio signals according to a preset frequency, When the vehicle is in a moving state, a target audio signal is used to determine a first arrival time when the target audio signal arrives at the terminal device, and when the second trigger condition is met, a target audio signal is used to determine the arrival time of the target audio signal A second arrival time of the terminal device; an obtaining module 3102, configured to obtain first location information corresponding to the terminal device, the first location information is used to indicate that the terminal device is located inside or outside the vehicle, multiple first arrival times and at least A second arrival time is used to determine the first location information.
  • the multiple first arrival times are used to determine a first predicted time corresponding to the second arrival time, and the first predicted time indicates when the terminal device is located inside the vehicle, the target audio signal arrives at the terminal device The time, the first predicted time and the second arrival time are used to determine the first location information.
  • the embodiment of the present application also provides another device for obtaining a position, please refer to FIG. 29 , which is a schematic structural diagram of another device for obtaining a position provided by the embodiment of the present application.
  • the position acquisition device 3200 is applied to a terminal device.
  • the terminal device is included in the position acquisition system.
  • the position acquisition system also includes a vehicle.
  • the position acquisition device 3200 includes: an acquisition module 3201, which is used to acquire A plurality of first arrival times corresponding to a plurality of target audio signals, one first arrival time represents the time when a target audio signal arrives at the terminal device, and the plurality of target audio signals are sent by the vehicle according to a preset frequency; the generation module 3202 uses When it is detected that the second trigger condition is satisfied, at least one second arrival time corresponding to the at least one target audio signal is obtained, and according to a plurality of first arrival times and at least one second arrival time, a corresponding to the terminal device is generated.
  • the first location information is used to indicate that the terminal device is located inside or outside the vehicle.
  • the generation module 3202 is specifically configured to determine a first predicted time corresponding to the second time of arrival according to multiple first times of arrival, where the first predicted time indicates that when the terminal device is located inside the vehicle, The time when the target audio signal arrives at the terminal device; according to the first predicted time and the second arrival time, the first location information is generated.
  • the embodiment of the present application also provides another device for obtaining a position, refer to Fig. 30, which is a schematic structural diagram of another device for obtaining a position provided by the embodiment of the present application.
  • the position acquisition device 3300 is applied to a vehicle, the vehicle includes a position acquisition system, the position acquisition system also includes a terminal device, the vehicle is equipped with at least three speakers, the at least three speakers are not located in a straight line, and the at least three speakers include the first A sound, a second sound, and a third sound
  • the location acquisition device 3300 includes: a sending module 3301, configured to send a first audio signal through the first sound, and the first audio signal is used to determine the first audio signal received by the terminal device The first signal strength of the first signal; the sending module 3301 is further configured to send a second audio signal through the second sound box, and the second audio signal is used to determine the second signal strength of the second audio signal received by the terminal device; the sending module 3301 is also configured to Used to send a third audio signal through a third speaker,
  • the second location information is used for the vehicle to determine the component with the closest distance to the terminal device from the multiple components included in the vehicle, so as to control the component with the closest distance to the terminal device to perform preset operations .
  • the embodiment of the present application also provides another device for obtaining a position, please refer to FIG. 31 , which is a schematic structural diagram of another device for obtaining a position provided by the embodiment of the present application.
  • the location acquisition device 3400 is applied to a terminal device.
  • the terminal equipment is included in the location acquisition system.
  • the location acquisition system also includes a vehicle.
  • the vehicle is equipped with at least three speakers.
  • the at least three speakers are not located in a straight line.
  • the at least three speakers include
  • the device 3400 for obtaining the position of the first sound, the second sound and the third sound includes: a receiving module 3401, configured to receive the first audio signal sent by the first sound, receive the second audio signal sent by the second sound, and receive the third sound.
  • Embodiment 3 of the embodiments of the present application after the position information of the terminal device relative to the vehicle can be obtained, that is, whether the terminal device is located inside or outside the vehicle, various interactions between the vehicle and the terminal device can be applied.
  • various application scenarios are introduced one by one as follows.
  • FIG. 32 is a schematic flow chart of the audio stream processing method provided by the embodiment of the present application.
  • the audio stream processing method provided by the embodiment of the present application may include:
  • the first terminal device establishes a connection with the vehicle, and switches the playback device of the audio streams of the first category and the second category from the first terminal device to the vehicle.
  • the first terminal device may use Bluetooth, wireless broadband (wireless fidelity, WIFI) or other technologies to scan the surrounding electronic devices. If there is at least one vehicle within the distance threshold, the first terminal device may send a connection request to each vehicle to trigger a pairing operation between the first terminal device and the vehicle. If the pairing between the first terminal device and one of the at least one vehicle is successful, then the first terminal device successfully establishes a connection with the aforementioned vehicle; if the pairing between the first terminal device and one of the at least one vehicle fails, the second A terminal device cannot establish a connection with the aforementioned vehicle.
  • WIFI wireless fidelity
  • the vehicle after receiving the connection request sent by the first terminal device, the vehicle generates a personal identification number (personal identification number, PIN) of the vehicle in response to the received connection request, and sends a response message to the first terminal device.
  • PIN personal identification number
  • the first terminal device may send the PIN code to the vehicle.
  • the vehicle matches the PIN code sent by the first terminal device with the generated PIN code. If the match is successful, it proves that the first terminal device is successfully paired with the vehicle; if the match fails, it proves that the first terminal device has failed to pair with the vehicle.
  • the first terminal device can scan the surrounding electronic devices using Bluetooth, wireless broadband (wireless fidelity, WIFI) or other technologies, and if it finds that there are at least For a vehicle that has been paired, the first terminal device may send a connection request to the aforementioned vehicle, and the aforementioned vehicle establishes a connection with the first terminal device in response to the obtained connection request.
  • Bluetooth wireless broadband
  • WIFI wireless fidelity
  • the first terminal device When the first terminal device is connected to the vehicle, the first terminal device can send synchronization data to the vehicle. Correspondingly, the vehicle receives the synchronization data sent by the first terminal device, so that the first terminal device can perform the following tasks through the vehicle: One or more tasks: play audio stream, play video, navigate, video call, call or other tasks, etc., not exhaustive here.
  • the first terminal device After the first terminal device establishes a connection with the vehicle, it can switch the playback device of the audio stream of the third category from the first terminal device to the vehicle.
  • the third category includes at least two categories of audio streams, and the at least two categories of audio streams include the first category and the second category.
  • which categories of audio streams are included in the third category of audio streams can be flexibly combined with actual application scenarios .
  • the third category may include media, calls, or other types of audio streams; the meaning of the first category and the second category will be explained in subsequent steps, and will not be explained here temporarily.
  • indication information may be stored on the first terminal device, and the indication information records which playback device is used for at least two types of audio streams included in the third type of audio stream, and the first terminal device may update the indication information , the indication information before the update indicates that the playback device of the audio stream of the third category is the first terminal device, and the indication information after the update indicates that the playback device of the audio stream of the third category is a vehicle.
  • the audio stream of the third category may include a speaker of the first terminal device, an earpiece of the first terminal device, a vehicle connected to the first terminal device or other possible playback devices, etc., which are not exhaustive here. .
  • the above indication information may specifically be expressed as a table, a flag or other information types, etc., which are not exhaustive here.
  • the first terminal device or the vehicle detects that the first terminal device moves from inside the vehicle to outside the vehicle.
  • the first terminal device or the vehicle when the first terminal device is connected to the vehicle, the first terminal device or the vehicle can detect the first location information of the first terminal device within a preset time period, according to the first terminal device The first location information within the preset time period can be used to know whether the first terminal device has moved from inside the vehicle to outside the vehicle.
  • the first terminal device or the vehicle detects that the first terminal device moves from inside the vehicle to outside the vehicle.
  • the first terminal device refers to a terminal device that has established a connection with the vehicle and is located in the vehicle; alternatively, the first terminal device refers to a terminal device that has established a connection with the vehicle, performs screen projection operations through the vehicle, and is located in the vehicle.
  • Terminal Equipment refers to a terminal device that has established a connection with the vehicle and is located in the vehicle; alternatively, the first terminal device refers to a terminal device that has established a connection with the vehicle, performs screen projection operations through the vehicle, and is located in the vehicle. Terminal Equipment.
  • the value range of the preset time period may be, for example, 10 seconds to 2 minutes.
  • the value of the preset time period may be 20 seconds, 370 seconds, 45 seconds, 1 minute, 80 seconds, 90 seconds or other values. value, etc., the value of the specific preset time period can be flexibly set in combination with actual application products, and is not limited here.
  • the solution provided in Embodiment 2 can be used to obtain the first location information of the first terminal device within a preset time period, that is, in Embodiment 2, when the vehicle detects that the When the first trigger condition and/or the first terminal device detects that the second trigger condition is satisfied, the vehicle and the first terminal device start the first location awareness operation, and continuously obtain the first terminal device's location information within the preset time period.
  • First location information If the first terminal device or the vehicle detects that the first terminal device has moved from inside the vehicle to outside the vehicle, it will trigger step 3702. If the first terminal device or the vehicle detects that the first terminal device has been in the vehicle, the first terminal device You can continue to cast your screen from the vehicle.
  • the vehicle sends a plurality of target audio signals according to a preset frequency, wherein the plurality of target audio signals include a first detection signal and a second detection signal, and at least one arrival time includes a first time set corresponding to the first detection signal and The second time set corresponding to the second detection signal, the first time set includes at least one time when the first detection signal reaches the first terminal device through direct radiation and/or reflection, and the second time set includes the second detection signal through direct radiation and/or reflection Or reflect at least one time of arrival at the first terminal device; the first terminal device generates first position information corresponding to the terminal device according to the time interval between the arrival time in the first time set and the second time set, and the first position The information is used to indicate that the first terminal device is located inside or outside the vehicle; according to the first location information of the first terminal device within a preset time period, it is determined that the first terminal device moves from inside the vehicle to outside the vehicle.
  • the vehicle or the first terminal device may be based on an ultra wide band (ultra wide band, UWB) technology, Bluetooth technology or other technologies, continuously acquire the distance between the first terminal device and the vehicle within a preset time period, and determine the first terminal according to the distance between the first terminal device and the vehicle within the preset time period The first location information of the device within a preset time period.
  • UWB ultra wide band
  • the first terminal device is located outside the vehicle; if the distance between the first terminal device and the vehicle is less than the preset distance threshold, it is proved that The first terminal device is located in the vehicle.
  • vehicle or the first terminal device may also generate the first location information of the first terminal device through other techniques, which will not be listed here.
  • the vehicle will send indication information to the first terminal device, and the indication information is used to instruct the first terminal device to move from the vehicle within the preset time period. Move from inside to outside of the vehicle.
  • the vehicle will send indication information to the first terminal device, and the first indication information is used to indicate that the first terminal device has been in the vehicle within the preset time period.
  • the first terminal device and the vehicle may not acquire the first location information of the first terminal device; that is, during the process of the user talking through the first terminal device, the first terminal device And the vehicle will not detect whether the first terminal device moves from inside the vehicle to outside the vehicle.
  • the user wants to switch the playback device of the target audio stream classified as a call from the vehicle to other electronic devices, the user needs to actively input the first switching operation, and the first terminal device or the vehicle responds to the received first switching operation by switching the target The playback device of the target audio stream whose category is the call is switched to the electronic device corresponding to the first switching operation.
  • the audio stream classified as a call may include: an audio stream generated when a call is made through an application program of the instant messaging type, an audio stream generated when a video is performed through an application program of the instant messaging type, or other audio streams classified as a call audio streaming etc.
  • FIG. 33 is a schematic diagram of a receiving interface for the first switching operation in the audio stream processing method provided by the embodiment of the present application.
  • Figure 33 shows an example of the display interface of the vehicle's central control screen.
  • the current playback device of the target audio stream whose type is a call is the audio device configured in the vehicle.
  • Figure 33 also shows the terminal device The speaker of the terminal device, the earpiece of the terminal device, and the Bluetooth connected to the terminal device, the user can input the first switching operation by clicking the icon on the display interface. It should be understood that the example in Figure 33 is only for the convenience of understanding this solution , is not used to limit this scheme.
  • the first terminal device detects that the user puts the first terminal device close to the ear during the process of the first terminal device playing the target audio stream of the call type through the vehicle, it may be deemed that the user passes the first terminal device A terminal device inputs a first switching operation, and the playback device corresponding to the first switching operation is an earpiece of the first terminal device.
  • the first terminal device may perform auricle proximity detection through a capacitive screen, so as to detect that the user puts the first terminal device close to the ear.
  • the first terminal device may detect that it is picked up and brought close to the ear through devices such as a gyroscope, a gravity sensor, and a proximity light sensor, so as to determine that the user puts the first terminal device close to the ear.
  • the first terminal device can also detect whether the user puts the first terminal device close to the ear through other technologies. The example here is only to prove the feasibility of this solution, and is not used to limit this solution.
  • the first terminal device or the vehicle may be triggered to obtain the location information of the first terminal device, and if it is detected that the first terminal device is outside the vehicle, the vehicle may send The playback device of at least one type of audio stream played is switched from the vehicle to the first terminal device; or, the playback device of other types of audio streams except media may also be switched from the vehicle to the first terminal device.
  • the display interface of the vehicle's central control panel can be switched to the out-of-car mode.
  • the content displayed on the display interface of the vehicle’s central control screen can be any one or a combination of the following: black screen, wallpaper, display time or illustrations, prompt information or other information; the foregoing prompt information is used to indicate that the vehicle The current state of the central control screen of the vehicle. It should be noted that other information can be displayed on the central control screen of the vehicle in the off-car mode. The specific information displayed can be flexibly set in combination with the actual product form, and it is not exhaustive here.
  • the first terminal device when the first terminal device is connected to the vehicle, when the sound pickup operation is required, whether to use the sound pickup device on the first terminal device or the sound pickup device of the vehicle can be determined according to the call
  • the audio stream of this category is determined by the playback device used. That is, if the first terminal device plays the audio stream of the call category through the vehicle, the first terminal device can pick up the sound through the vehicle; if the first terminal device plays the audio stream of the call category through the first terminal device, then The first terminal device may collect sound through the first terminal device.
  • the sound pickup device may be a microphone or other types of sound pickup devices.
  • the output devices of all categories of audio streams included in the third category can be automatically switched to earphones; in another implementation, the first terminal device can output inquiry information, the inquiry information Asks whether to switch the output device for all classes of audio streams to headphones.
  • the first terminal device may switch the output devices of all types of audio streams to earphones in response to a switching operation input by the user.
  • the first terminal device judges whether there is a target audio stream being played by the vehicle, and if the judgment result is yes, proceed to step 3704; if the judgment result is no, switch the playback device of the audio stream of the third category from the vehicle to For the first terminal device, the third category includes all categories corresponding to the audio streams played by the first terminal device through the vehicle.
  • the first terminal device when the first terminal device determines that the first terminal device is moving from inside the vehicle to outside the vehicle, it may determine whether the first terminal device has a target audio stream being played by the vehicle, and if the determination result is yes, Then trigger to enter step 3704; if the judgment result is no, then trigger to switch the playback devices of the third category of audio streams from the vehicle to the first terminal device, and the third category includes the audio streams played by the first terminal device through the vehicle. of all categories.
  • the second The playback devices of all audio streams included in the three categories are switched from the vehicle to the first terminal device, and the display interface of the vehicle's central control panel can enter the off-car mode.
  • FIG. 34 is a schematic diagram of the off-car mode in the audio stream processing method provided by the embodiment of the present application.
  • Figure 34 includes three sub-schematic diagrams of (a), (b) and (c), and the three sub-schematic diagrams of (a), (b) and (c) of Figure 34 show the audio of all categories that are included in the third category
  • the display interface of the vehicle's central control panel should be understood that the example in Figure 34 is only for the convenience of understanding this solution, and is not used to limit this solution.
  • the first terminal device acquires the target category corresponding to the target audio stream being played by the vehicle.
  • the second A terminal device may acquire the target category corresponding to the target audio stream being played by the vehicle.
  • the category corresponding to the target audio stream may include: call, media (music), system or other categories; the audio stream whose category is the system may include: ringing (ring), alarm clock or countdown (alarm), voice Assistant broadcast, notification (notification), sound when the screen is touched, screen lock sound, dial button sound, camera sound effect, screen capture sound effect, screen reading or other sound effects, etc., etc., are not exhaustive here. It should be noted that the specific types of audio streams that can be played by the vehicle can be determined in conjunction with actual products, and are not limited here.
  • the first terminal device judges whether the target category is the first category, and if the judgment result is yes, proceed to step 3706; if the judgment result is no, proceed to step 3709.
  • the first terminal device after the first terminal device obtains the target category corresponding to the target audio stream being played by the vehicle, it can determine whether the target category is the first category, and if the target category is the first category, proceed to step 3706, If the target category is not the first category, go to step 3709.
  • the first category may include media, and audio streams classified as media may include: music, video, audio streams generated by game applications, audio in instant messaging applications, or other audio streams classified as media, etc. Wait, here is not exhaustive.
  • the first category may also be other categories except media, which is not limited here.
  • the first terminal device continues to send the target audio stream to the vehicle, and then enters step 3707.
  • step 3705 is an optional step. If step 3705 is not executed, step 3706 can be entered after step 3704 is executed, and the first terminal device can continue to send the target audio stream to the vehicle. Correspondingly, the vehicle is receiving After receiving the target audio stream sent by the first terminal device, the target audio stream will continue to be played, that is, after the first terminal device moves from inside the vehicle to outside the vehicle, the playback device of the target audio stream is still the vehicle.
  • the third category includes all audio streams played by the first terminal device through the vehicle. category.
  • step 3705 when the first terminal device determines that the target category corresponding to the target audio stream being played by the vehicle belongs to the first category, it can continue to send the target audio stream to the vehicle.
  • the vehicle receives the first After the target audio stream is sent by the terminal device, it will continue to play the target audio stream, that is, after the first terminal device moves from inside the vehicle to outside the vehicle, the playback device of the first type of audio stream is still the vehicle.
  • FIG. 35 is a schematic diagram of the off-car mode in the audio stream processing method provided by the embodiment of the present application.
  • Figure 35 includes four sub-schematic diagrams (a), (b), (c) and (d).
  • Figure 35 (a) represents when the first terminal device is located in the car, and the first terminal device plays the media type through the vehicle interface during the audio stream;
  • Figure 35 (b), (c) and (d) sub-schematic diagrams represent three different display interfaces of the vehicle’s central control screen when the first terminal device moves from inside the vehicle to outside the vehicle , it should be understood that the example in FIG. 35 is only for facilitating understanding of this solution, and is not used to limit this solution.
  • the first terminal device may send the target audio stream to the vehicle auxiliary equipment configured in the vehicle (that is, an example of the vehicle's central control screen), so as to Play the target audio stream through the audio of the vehicle auxiliary equipment, and display the projection data through the screen of the vehicle auxiliary equipment.
  • the first terminal device may send the target audio stream to the processor of the vehicle, so as to play the target audio stream through the audio located in the main part of the vehicle, and Send other screen projection data to the vehicle auxiliary equipment configured in the vehicle (that is, an example of the central control screen of the vehicle), so as to display the screen projection data through the screen of the vehicle auxiliary equipment.
  • the first terminal device may send all screen projection data to the processor of the vehicle, so as to play the target audio stream through the sound of the main part of the vehicle, and The projected data is displayed on the screen of the on-board computer integrated in the vehicle.
  • the first terminal device may output first information, and the first information is used to prompt the user to transfer the audio stream of the first type to the vehicle.
  • the form of displaying the first information by the first terminal device includes but is not limited to displaying the first information in the form of a pop-up box, displaying the first information in a drop-down box, displaying the first information in the form of a switching icon, or other methods, etc., Not exhaustive here.
  • the first terminal device obtains the first switching operation input by the user based on the first information, then in response to the obtained first switching operation, switches the playback device of the audio stream of the first category from the vehicle to the first terminal device, then The first terminal device stops sending the audio stream of the first type to the vehicle.
  • FIG. 36 is two schematic diagrams of the first terminal device displaying the first information in the audio stream processing method provided by the embodiment of the present application.
  • Figure 36 includes two sub-schematic diagrams (a) and (b).
  • the C1 area in the (a) sub-schematic diagram of Figure 36 shows that the first information is displayed in the form of a bullet box.
  • the user can click "Switch to mobile phone" to input the first switching operation; the C2 area in the (b) sub-schematic diagram of Fig.
  • the example in FIG. 36 is only for the convenience of understanding the display method of the first information.
  • the specific display method of the first information and the acquisition method of the first switching operation can be flexibly set in combination with the actual product form. They are not listed here.
  • the first information while continuing to play the target audio stream by the vehicle, the first information will be output, and the first information is used to prompt the user to switch the playback device of the first type of audio stream from the vehicle to the first terminal device. That is, when the user can decide whether to switch the playback device of the first type of audio stream back to the first terminal device according to the actual situation, the flexibility of this solution in the switching process of the playback device of the audio stream is improved.
  • the first terminal device switches the playback device of audio streams of other categories in the third category except the target category from the vehicle to the first terminal device.
  • step 3705 is an optional step. If step 3705 is not performed, after detecting that the first terminal device moves from inside the car to outside the car, the playback device of the first type of audio stream is still the car’s At the same time, the playback device of audio streams of other categories in the third category except the target category may be switched from the vehicle to the first terminal device.
  • the first terminal device when the first terminal device is already located outside the vehicle and is playing the audio stream of the first category through the vehicle, if the first terminal device needs to play a new audio stream, the first terminal device can obtain the audio stream associated with the new audio stream. For the corresponding category, if the category corresponding to the new audio stream is not the target category, since the playback device of the audio stream of other categories in the third category except the target category has been switched from the vehicle to the first terminal device, the second A terminal device plays the aforementioned new audio stream, and the first terminal device does not send the aforementioned new audio stream to the vehicle.
  • the first terminal device also needs to indicate The information is updated again.
  • the indication information before updating indicates that the playback devices of at least two types of audio streams included in the audio stream of the third category are vehicles.
  • the playback device of audio streams of other categories than the category is the first terminal device; if step 3705 is executed, since the audio stream of the target category is determined to be the audio stream of the first category, the audio stream of the third category includes the audio stream of the first category audio stream and the audio stream of the second type, the updated indication information may indicate that the playback device of the audio stream of the second type is the first terminal device.
  • the first category and the second category are different categories, that is, keep the playback device of part of the audio stream as a vehicle, and switch the playback device of the other part of the audio stream from the vehicle to the first terminal device, so that it can be flexibly set according to the actual situation Which types of audio streams continue to be played by the vehicle, and which types of audio streams are switched to the first terminal device, which improves the implementation flexibility of this solution.
  • step 3705 when the first terminal device determines that the target category is the first category, it will continue to send the target audio stream of the first category to the vehicle, that is, step 3707 can also be described as the first terminal device generated
  • the playback device of the audio stream of the second category is switched from the vehicle to the first terminal device.
  • the second category and the first category are different categories, and the second category may include audio streams of all categories except the audio streams of the first category among the audio streams included in the third category.
  • the first terminal device when the first terminal device is already located outside the vehicle and is playing the audio stream of the first category through the vehicle, if the first terminal device needs to play a new audio stream, the first terminal device can obtain the audio stream associated with the new audio stream. For the corresponding category, if the category corresponding to the new audio stream is the second category, since the playback device for the audio stream of the second category has been switched from the vehicle to the first terminal device, the first terminal device can play the audio stream of the second category audio stream, and the first terminal device does not send the second type of audio stream to the vehicle.
  • step 3707 is an optional step. If step 3707 is not performed, in another implementation, after detecting that the first terminal device moves from inside the car to outside the car, the playback device of the target audio stream If it is still a vehicle, the playback devices of all categories of audio streams included in the third category can be defaulted as vehicles.
  • the first terminal device When the first terminal device needs to play a new audio stream, the first terminal device can output third information, and the third information is used to prompt the user to switch the playback devices of all types of audio streams included in the third category from the vehicle to the first Terminal Equipment.
  • the specific implementation manner of outputting the third information by the first terminal device may be similar to the specific implementation manner of outputting the first information by the first terminal device, and may directly refer to the above description, and details are not repeated here.
  • the first terminal device obtains the playback operation on the first audio stream, output the first information, the category of the first audio stream is the first category, and the first audio stream is different from the target audio stream being played by the vehicle,
  • the first information is used to prompt the user to switch the playing device of the first type of audio stream from the vehicle to the first terminal device.
  • the first terminal device when the first terminal device continues to play the target audio stream through the vehicle, if the first terminal device obtains the playback operation for the new first audio stream, it can obtain the new first audio stream stream category, if the category of the new first audio stream is the first category, the first terminal device can output the first information, based on the first information, the user can choose to switch the playback device of the audio stream of the first category from the vehicle to the first terminal device.
  • the playing operation of the new audio stream of the first category acquired by the first terminal device may originate from the same application program as the target audio stream being played by the vehicle, or may originate from different application programs.
  • the target audio stream that the vehicle is playing comes from a video application program
  • the first terminal device obtains that the playback operation for the new audio stream comes from a music application program
  • the target audio stream that the vehicle is playing comes from the video application program 1
  • the playback operation for the new audio stream acquired by the first terminal device also comes from the video application program 1.
  • the form of displaying the first information by the first terminal device includes but is not limited to displaying the first information in the form of a pop-up box, displaying a notification in a drop-down box, displaying the first information in the form of a switching icon, or other methods, etc., which are not exhaustive here. lift.
  • step 3707 the playback device of the audio stream of the second category has been converted from the vehicle to the first terminal device, then when the first terminal device obtains the playback of the new audio stream During operation, the category of the new audio stream can be acquired. If the category of the new first audio stream is the first category, the first terminal device can play the new first audio stream through the vehicle and output the first information, so that The user can switch the new audio stream (that is, the first audio stream of the first category) to the first terminal device based on the first information; if the category of the new first audio stream is the second category, the second terminal device can The audio stream of the second category is played by the first terminal device.
  • the first terminal device acquires the second switching operation input by the user based on the first information, then in response to the acquired second switching operation, switch the playback device of the first type of audio stream from the vehicle to the first terminal device.
  • the first terminal device may be triggered to pause playing the audio stream, or the first terminal device may be triggered to continue playing the audio stream previously played by the vehicle.
  • the first terminal device may display the management interface of the first type of audio stream in a foreground and/or background mode, and the management interface of the first type of audio stream is used to control the play/pause of the first type of audio stream Play/stop playing.
  • the presentation form of the management interface of the audio stream of the first category may be any one or a combination of the following: displaying notifications on the lock screen interface, displaying notifications in the drop-down box, displaying control widgets on the main interface,
  • the management interface is displayed in the application program corresponding to the audio stream of the first category, the management result is displayed in the control center, or the management interface is displayed in other ways, etc., which are not exhaustive here.
  • FIG. 37 is a schematic diagram of the first information in the audio stream processing method provided by the embodiment of the present application.
  • Figure 37 includes (a), (b) and (c) three sub-schematic diagrams, the first information is not shown in (a) sub-schematic diagram of Figure 37 and (c) sub-schematic diagram of Figure 37, (c) sub-schematic diagram of Figure 37
  • the first information is displayed in .
  • the first category is media as an example.
  • the sub-schematic diagram of (a) in Figure 37 shows the interface displayed by the first terminal device when the audio stream played by the first terminal device is the second type of audio stream.
  • the device has been switched to the first terminal device as an example, therefore, the first information will not appear in the sub-schematic diagram (a) of Figure 37;
  • the sub-schematic diagram (b) of Figure 37 shows that when the first terminal device plays the When a type of audio stream is used, the interface displayed by the first terminal device, the D1 area in the (b) sub-schematic diagram of Figure 37 outputs the first information in the form of a pop-up box;
  • the (c) sub-schematic diagram of Figure 37 represents that when the user
  • the vehicle’s central control screen displays the exit mode; it should be understood that in FIG. 37
  • the examples given are only for the convenience of understanding the solution, and are not intended to limit the solution.
  • step 3707 if step 3707 is not included, that is, the playback device of all categories (including the first category and the second category) of audio streams played by the vehicle is still the vehicle by default, then the first terminal device obtains For the playback operation of a new audio stream, no matter whether the category of the new audio stream is the first category or the second category, the first terminal device can output the first information, and the first information is used to prompt the user to convert all categories of audio streams The playback device is switched from the vehicle to the first terminal device. Further, the manner in which the first terminal device displays the first information may refer to the above description, and details are not repeated here.
  • the output of the first information is triggered, and the first information is used to prompt the user to switch the playback device of the first type of audio stream from the vehicle to the
  • the first terminal device that is, when the user uses the first terminal device to play the first type of audio stream again, it can decide whether to switch the playback device of the first type of audio stream back to the first terminal device according to the actual situation. The flexibility of the solution in the switching process of the playback device of the audio stream is improved.
  • the first terminal device stops sending the target audio stream to the vehicle.
  • step 3705 the first terminal device determines that the target category corresponding to the target audio stream being played by the vehicle is not the first category, then all categories (including the first category) generated by the first terminal device may be and the audio streams of the second category) are switched from the vehicle to the first terminal device. That is to say, the first terminal device stops sending the target audio stream to the vehicle.
  • the display interface of the central control panel of the vehicle can enter the exit mode. In the aforementioned exit mode, the vehicle can prompt the user through the display interface of the central control panel to " All operations of the first terminal device are switched to the first terminal device".
  • step 3708 if the user chooses to switch the playing device of the first type of audio stream from the vehicle to the first terminal device according to the first information, the first terminal device stops sending the audio stream to the vehicle.
  • step 3705 and step 3707 may be optional.
  • the aforementioned steps 3701-step 3704, step 3706-step 3709 may be included.
  • the foregoing steps 3701-3706, step 3708, and step 3709 may be included; in this implementation manner, when it is determined in step 3705 that the target category is the first category, the first terminal device The playback device corresponding to the category of audio streams does not switch; the previous playback device of a certain type of audio stream belongs to the vehicle, and it is still played in the vehicle; the previous playback device of a certain type of audio stream is the first terminal device. , it is also played on the first terminal device.
  • this implementation not only provides a processing method when the target audio stream is the first category, but also provides a processing method when the target audio stream is not the first category, which improves the integrity of the solution and expands The application scenarios of this scheme.
  • the target category corresponding to the target audio stream being played by the vehicle is acquired,
  • the target audio stream is sent to the vehicle by the first terminal device; if the target category is the first category, the vehicle will continue to play the target audio stream; through the aforementioned scheme, it can be determined whether the audio stream
  • the stream playback device is switched back to the first terminal device, which improves the flexibility of the audio stream playback process and is conducive to improving the user stickiness of this solution.
  • the target audio stream corresponding to the target audio stream being played by the vehicle is obtained.
  • category the target audio stream is sent to the vehicle by the first terminal device; then the first terminal device continues to play the target audio stream through the vehicle, but switches the playback device of audio streams of other categories except the target category to the first a terminal device.
  • the target audio can be played on the vehicle after the terminal device leaves the vehicle, but when other types of audio streams need to be played later in the terminal device, other types of audio streams can be automatically played in the terminal device.
  • the playback device can be partially switched according to the specific type of the audio stream being played by the vehicle, which improves the flexibility of the audio stream playback process and is conducive to improving the user stickiness of this solution.
  • the output device of the audio stream generated by the first terminal device may be switched to the vehicle; correspondingly, the vehicle exits the out-of-car mode. It should be noted that, for a specific implementation manner of detecting that the first terminal moves from outside the vehicle to inside the vehicle, reference may be made to the description in step 301 above, which will not be repeated here.
  • the vehicle and the first terminal device may not obtain The first location information of the first terminal device, that is, the location change of the first terminal device is no longer detected.
  • the first terminal device may trigger acquisition of the first location information of the first terminal device to detect whether the first terminal device is located in the vehicle, and if the first terminal device is located in the vehicle, it may The output device of at least one type of audio stream generated by the first terminal device is switched to the vehicle; correspondingly, the vehicle exits the out-of-car mode. It should be noted that, for a specific implementation manner of acquiring the first location information of the first terminal device, reference may be made to the description in the above step 301, which will not be repeated here.
  • the user may manually input a switching operation to switch the playback device of the first terminal device from the first terminal device to the vehicle.
  • the user can input the aforementioned switching operation through the display interface of the first terminal device; or, the user can input the aforementioned switching operation through the buttons configured on the first terminal device, or the user can input the aforementioned switching operation in the form of voice, etc., Not exhaustive here.
  • FIG. 38a is a schematic diagram corresponding to the switching operation in the audio stream processing method provided by the embodiment of the present application.
  • the call interface of the first terminal device can display a selection list of multiple playback devices, so that the user can input the switching operation by clicking the corresponding icon.
  • the playback device is manually switched to Taking a vehicle as an example, it should be understood that the example in FIG. 38a is only for the convenience of understanding this solution, and is not used to limit this solution.
  • the user when the vehicle's central control screen displays the exit mode, the user can also input a switching operation, so that the vehicle exits the exit mode.
  • the aforementioned switching operation input methods include, but are not limited to: clicking the icon corresponding to the switching operation, clicking the button corresponding to the switching operation, inputting a voice command to exit the exit mode, or other methods, etc., which are not limited here.
  • the foregoing switching operation is used to instruct the vehicle to exit the exit mode
  • the vehicle may also trigger output of indication information in response to the received switching operation, and the foregoing indication information is used for the user to Double-check to instruct the vehicle to exit exit mode.
  • FIG. 38b is a schematic diagram of outputting instruction information in the audio stream processing method provided by the embodiment of the present application.
  • Figure 38b includes two left and right sub-schematic diagrams. When the user clicks "exit" in the left sub-schematic diagram of Fig. 38b, it can trigger to enter the right sub-schematic diagram of Fig. 38b.
  • prompt information is output in the form of a text box
  • FIG. 38b is only for facilitating understanding of this solution, and is not used to limit this solution.
  • the playback devices of all categories of audio streams included in the third category can be switched to the vehicle, and the third category includes the first terminal device playing the audio streams through the vehicle. All categories for the audio streams in the .
  • the audio stream playback devices of all categories included in the third category can be switched to the vehicle.
  • the three categories include all categories corresponding to the audio stream played by the first terminal device through the vehicle.
  • the first terminal device may still default to the first terminal device as the playback device of all types of audio streams included in the third category, after the aforementioned call ends , and then switch the playback devices of all the audio streams included in the third category from the first terminal device to the vehicle.
  • the first terminal device may switch the playback device of the generated audio stream of the fourth category to the first terminal device To the vehicle, the playback device of the audio stream of the call type generated by the first terminal device is still kept as the first terminal device, and after the aforementioned call ends, the playback device of the audio stream of the aforementioned call type is switched from the first terminal device to vehicle.
  • the audio stream of the fourth category includes audio streams of all categories in all categories included in the third category except the audio stream of the calling category.
  • the user can manually input a switching operation to switch the playback of all categories of audio streams included in the third category to The device is switched from the first terminal device to the vehicle, and the specific implementation method is similar to the above-mentioned embodiment corresponding to FIG. 38a , which will not be repeated here.
  • the first terminal device may send a target event to the vehicle, and the target event is that the connection between the first terminal device and the headset is disconnected.
  • the target event can trigger the acquisition of the first location information of the first terminal device. If the first location information of the first terminal device indicates that the first terminal device is in the vehicle, it can trigger the vehicle to automatically exit the exit mode, and the third category includes The playback devices for all types of audio streams are switched from the first terminal device to the vehicle.
  • the target event can trigger acquisition of the first location information of the first terminal device, if the first location information of the first terminal device indicates that the first terminal device is located in the car, Then the vehicle can be triggered to automatically exit the exit mode, and the playback devices of all categories of audio streams included in the third category are switched from the first terminal device to the vehicle.
  • the vehicle can pause playing the aforementioned audio stream, Alternatively, the vehicle can also continue to play the aforementioned audio stream.
  • the first terminal device when the first terminal device is not yet connected to the vehicle, when the user searches for a destination through the first terminal device and obtains at least one navigation route, the first terminal device and the vehicle establish a If the first location information of the first terminal device indicates that the first terminal device is located in the vehicle, the aforementioned navigation task may be transferred to the vehicle.
  • the transfer of the navigation task to the first terminal device may be triggered. Terminal Equipment.
  • the vehicle or the first terminal device detects any one or more of the following situations, it can be proved that the navigation task has not yet ended: the destination corresponding to the navigation task has not been reached, and it is detected that the current location of the vehicle is different from that of the navigation task.
  • the distance between the corresponding destinations is greater than or equal to the preset distance threshold, it is detected that there is a running navigation task, or other methods, etc., which are not exhaustive here.
  • the first terminal device can continue to execute the navigation task through any one or more of the following: displaying the interface for entering the navigation task on the lock screen, displaying the entry interface in the drop-down box
  • the interface of the navigation task, adding the interface of entering the navigation task on the main interface, triggering the opening of the navigation application program of the first terminal device, adding the interface of entering the navigation task in the control center or other methods, etc., are not limited here. lift.
  • the interface for entering the navigation task is timely set on the first terminal device, so that the user can quickly enter the navigation task, which is beneficial to shorten the time spent in the navigation process, and improves the user stickiness of this solution.
  • the first terminal device may automatically switch the navigation mode when continuing to perform the navigation task, for example, the navigation mode is automatically switched from “driving” to "transit”. Subway", or, the navigation mode automatically switches from "driving” to "walking".
  • automatically switching to a navigation mode that is more suitable for the user's current state is beneficial to shorten the time spent in the navigation process and improve the user stickiness of this solution.
  • Figure 39 is a schematic flowchart of the data processing method provided by the embodiment of the present application.
  • the address processing method provided by the embodiment of the present application may include:
  • the first terminal device or the vehicle detects that the first terminal device moves from inside the vehicle to outside the vehicle.
  • the first terminal device or the vehicle when the first terminal device is connected to the vehicle and the first terminal device is performing navigation tasks through the vehicle, the first terminal device or the vehicle can detect that the first terminal device moves from the vehicle to the vehicle. outside.
  • step E1 refer to the description in FIG. 32 in Embodiment 3. The corresponding embodiment will not be repeated here.
  • the first terminal device judges whether the navigation task has not ended, and if the judgment result is yes, enters step E3; if the judgment result is no, terminates the operation.
  • the first terminal device switches the navigation mode corresponding to the navigation task.
  • the first terminal device since the first terminal device detects that the first terminal device moves from inside the vehicle to outside the vehicle, it may trigger automatic switching of the navigation mode corresponding to the navigation task. For example, the navigation mode is automatically switched from “driving” to "bus and subway”, or the navigation mode is automatically switched from “driving” to “walking”, etc., which are not exhaustive here.
  • the first terminal device continues to execute the navigation task.
  • step E3 is an optional step. If step E3 is performed, the first terminal device can continue to perform the navigation task in the switched navigation mode; if step E3 is not performed, the first terminal device uses the previous vehicle The adopted navigation mode continues to perform the navigation task.
  • the second terminal device sends the navigation destination to the vehicle
  • the user in the vehicle in an application scenario, when the first terminal device is connected to the vehicle, if the vehicle is performing a navigation task, the user in the vehicle can send the target address to the vehicle through the second terminal device, to change the destination of the navigation task; in another application scenario, when the first terminal device is connected to the vehicle, when the vehicle is not performing the navigation task, the user in the vehicle can send a message to the vehicle through the second terminal device. Send the target address to trigger the vehicle to start navigating with the target address as the destination. It should be noted that, in other application scenarios, the user in the vehicle may send the navigation destination to the vehicle through the second terminal device, which is not exhaustive here.
  • FIG. 40 is a schematic flow chart of the address processing method provided in the embodiment of the present application.
  • the address processing method provided in the embodiment of the present application may include:
  • the second terminal device displays the target address on a display interface.
  • the user may display the target address on the interfaces of various types of application programs on the second terminal device.
  • the interface displaying the target address includes any one or more of the following types of application program interfaces: navigation application program, instant messaging application program, life service application program or travel travel application program.
  • navigation applications can adopt this solution
  • instant messaging applications life service applications or travel applications can adopt this solution, which greatly expands the application scenarios of this solution.
  • the second terminal device acquires first location information corresponding to the second terminal device, where the first location information of the second terminal device is used to indicate that the second terminal device is located inside or outside the vehicle.
  • the second terminal device will also trigger acquisition of the first location information corresponding to the second terminal device, and the first location information of the second terminal device is used to indicate that the second terminal device is located inside or outside the vehicle .
  • the specific meaning of “the first location information of the second terminal device” is similar to the specific meaning of "the first location information of the first terminal device", and the specific method of obtaining "the first location information of the second terminal device” can be found in The foregoing FIG. 32 corresponds to the description of step 301 in the embodiment, and details are not repeated here.
  • the second terminal device in the process of the second terminal device acquiring the first location information corresponding to the second terminal device, the second terminal device will use Bluetooth, WIFI technology or other technologies to scan the surrounding electronic If at least one vehicle is detected within the preset distance range of the terminal device, the second terminal device can establish a communication connection with the detected vehicle; it should be noted that "the communication connection established between the second terminal device and the vehicle" is the same as “Establishing a connection between the second terminal device and the vehicle" are two different concepts. For the specific meaning of the concept of "establishing a connection between the second terminal device and the vehicle", please refer to the description in the above-mentioned embodiments. "The second terminal device The "communication connection established between the device and the vehicle" is only used for communication between the second terminal device and the vehicle in subsequent steps.
  • this embodiment of the present application may further include: the second terminal receives a trigger operation; in response to the trigger operation, perform step 4502.
  • the triggering operation described herein may be actively triggered by the user.
  • the user using the second terminal device queries the target address on the second terminal device, and then the user wants to send the target address to the vehicle for navigation.
  • the user can perform preset operations on the second terminal device to trigger Step 4502 is performed by the second terminal device.
  • the preset operation may be a preset gesture (such as shaking the terminal device in a specific trajectory), a preset touch operation, or a preset voice command, etc., which is not limited herein.
  • the second terminal device when the second terminal device displays the target address on the display interface, and the second terminal device receives the trigger operation input by the user, the second terminal device will acquire the first location corresponding to the second terminal device Information, that is, based on the user's will to trigger the detection of whether the second terminal device is located inside the vehicle, instead of automatically triggering the acquisition of the first location information corresponding to the second terminal device when the target address is displayed on the display interface, so as to Avoid wasting computer resources on terminal devices.
  • the second terminal device In the case that the second terminal device is located inside the vehicle, the second terminal device outputs second information, where the second information is used to prompt the user to input a target operation.
  • the second terminal device may Terminate operation. If the first location information corresponding to the second terminal device indicates that the second terminal is located in the vehicle, the second terminal device may output the second information.
  • the second information is used to prompt the user to input a target operation, and the target operation is used to trigger the second terminal device to send the target address to the vehicle.
  • the way for the second terminal device to output the second information may include any one or a combination of the following: displaying a floating button for receiving target operations; or displaying icons for receiving target operations; or outputting inquiry information, as mentioned above
  • the inquiry information is used to ask the user whether to send the target address to the vehicle.
  • the inquiry information can be in a text box, voice or other forms, etc., which are not exhaustive here; the second terminal device can also output the second information in other ways , the example here is only for the convenience of understanding this solution, the specific implementation method can be determined in combination with the actual product form, and is not limited here.
  • the second terminal device may receive the target operation input by the user, and the way for the user to input the target operation may include any one or a combination of the following: performing a touch operation on the floating button for receiving the target operation; Touch the icon of the target operation; input a confirmation operation for the query information; or, the user can input the target operation in other ways, and the specific implementation method can be determined in combination with the actual product form, which is not limited here.
  • FIG. 41 is three schematic diagrams of outputting second information in the address processing method provided by the embodiment of this application.
  • Figure 41 includes two sub-schematic diagrams, left and right.
  • the left sub-schematic diagram of FIG. The manner may be to display a floating button on the current interface, and when the user clicks the floating button, the second terminal device may receive a target operation input by the user.
  • the right sub-schematic diagram of Figure 41 takes outputting the second information through the display interface of the SMS application as an example, as shown in the right sub-schematic diagram of Figure 41, the way of "outputting the second information" can be to display an icon next to the target address, When the user clicks on the icon, the second terminal device may receive the target operation input by the user. It should be understood that the example in FIG. 41 is only for the convenience of understanding the solution, and is not intended to limit the solution.
  • FIG. 42 is another schematic diagram of outputting second information in the address processing method provided in the embodiment of the present application.
  • the second information is output through the display interface of a navigation application program as an example.
  • the left sub-schematic diagram of FIG. when the user clicks D2, the second terminal device can detect that the user has input the target operation. It should be understood that the example in FIG. 42 is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the second terminal device sends the target address to the vehicle, and the vehicle uses the received target address as the destination when the vehicle performs navigation.
  • step 4504 may include: during the process of the first terminal device being connected to the vehicle, responding Based on the acquired target operation, the second terminal device sends the target address, and the sent target address is used to indicate that the target address is used as the destination of the vehicle for navigation.
  • the second terminal device may send the target address to the vehicle, and correspondingly, the vehicle may receive the target address.
  • the vehicle when the vehicle obtains the target address, the vehicle does not start the navigation task, and the vehicle is triggered to start the navigation task, and continues to navigate with the target address as the destination.
  • the vehicle when the vehicle obtains the target address, it is navigating with the first address as the destination; the vehicle changes the first address to the target address, and continues to navigate with the target address as the destination.
  • the vehicle when the vehicle obtains the target address, it is navigating with the first address as the destination; the vehicle changes the first address to the target address, and continues to navigate with the target address as the destination.
  • the vehicle may use the target address as the destination when the vehicle is navigating, and display the updated navigation destination through the vehicle.
  • the vehicle may output prompt information, the foregoing prompt information is used to ask the user whether to update the navigation destination to the target address.
  • the way for the vehicle to output prompt information includes any one or a combination of the following: output prompt information by voice, output prompt information in the form of a pop-up box, or output prompt information in other forms, etc., which are not limited here.
  • FIG. 43 are two schematic diagrams of outputting prompt information in the address processing method provided by the embodiment of the present application.
  • Figure 43 includes an upper sub-schematic diagram and a lower sub-schematic diagram.
  • the upper sub-schematic diagram in FIG. 43 is an example of a vehicle outputting prompt information through the display interface of a text box through voice
  • the lower sub-schematic diagram in FIG. 43 is an example of a vehicle outputting prompt information in the form of text. It should be understood that the example in FIG. 43 is only for facilitating understanding of this solution, and is not used to limit this solution.
  • the vehicle obtains the confirmation operation for the above-mentioned prompt information input by the user, then update the navigation destination to the target address; if the vehicle obtains the cancel operation for the above-mentioned prompt information input by the user, then determine not to modify the Navigation destination.
  • the ways for the user to input the above-mentioned confirmation operation/cancel operation include but are not limited to: input confirmation operation/cancellation operation through the buttons on the steering wheel, input confirmation operation/cancellation operation through voice mode, and click the preset button on the central control screen of the vehicle.
  • FIG. 44 is a schematic diagram of outputting prompt information in the address processing method provided by the embodiment of the present application.
  • the confirmation operation/cancellation operation is inputted by voice with a text box as an example.
  • the user inputs "OK” by voice, and the vehicle responds to the "OK”
  • the navigation destination of the vehicle is updated to the target address. It should be understood that the example in FIG. 44 is only for the convenience of understanding this solution, and is not used to limit this solution.
  • the vehicle after the vehicle updates the navigation destination to the target address, it can also output notification information; the aforementioned notification information is used to inform the user that the navigation destination has been successfully updated; or, after the vehicle determines not to modify the navigation destination of the vehicle, Notification information may be output, and the aforementioned notification information is used to inform the user that the navigation destination has not changed.
  • the way for the vehicle to output the notification information may be any one or a combination of the following: output the notification information in the form of voice, output the notification information in the form of a text box, output the notification information in the form of an indicator light or Outputting the notification information and the like in other ways is not limited here.
  • FIG. 45 is a schematic diagram of outputting notification information in the address processing method provided in the embodiment of the present application.
  • the notification information is outputted in a manner of voice matching with a text box as an example. It should be understood that the example in FIG. 45 is only for the convenience of understanding the solution, and is not used to limit the solution.
  • the second information when it is detected that the second terminal device is located in the car and the address information is displayed on the second terminal device, the second information can be output, and the second information is used to prompt the user to input "send destination address ", that is, the second terminal device sends the target address based on the user's wishes; in addition, the operation of "sending the target address" can only be realized when the second terminal device is detected to be in the car, avoiding other The interference of the device to the first terminal device is beneficial to improving the safety of the vehicle driving process.
  • the second terminal device performs step 4502 and does not perform step 4503, in one implementation, if the first location information corresponding to the second terminal device indicates that the second terminal device is located in the vehicle, and the second terminal device The device is displaying the target address on the display interface.
  • the second terminal device obtains the first trigger operation input by the user, it sends the target address in response to the received first trigger operation.
  • the sent target address is used to indicate that the target address is used as The destination when the vehicle is navigating, the specific implementation of "the destination address sent by the second terminal device" can refer to the above description, and will not be repeated here.
  • the first trigger operation may be shaking the second terminal device up and down, shaking the second terminal device left and right, inputting a preset gesture operation or other operations through the interface of the second terminal device, etc., which are not exhaustive here; preset gestures
  • the operation can be a "Z"-shaped gesture operation, an "O”-shaped gesture operation, a "checkmark”-shaped gesture operation, a three-finger upward sliding operation, or other gesture operations, etc., which are not exhaustive here.
  • FIG. 46 are two schematic diagrams of outputting prompt information in the address processing method provided by the embodiment of the present application.
  • the second terminal device will be triggered to send the target address displayed on the current interface. This program.
  • the sending of the target address may also be triggered through the first trigger operation actively input by the user, so that the The target address is determined as the navigation destination of the vehicle, which expands the triggering scenario for sending the target address, that is, expands the application scenario of the solution, and improves the implementation flexibility of the solution.
  • the second terminal device may be directly triggered
  • the destination address is sent, and the sent destination address is used to indicate that the destination address is used as the destination of the vehicle for navigation.
  • the second terminal device may output the second information.
  • the second message is used to prompt the user to input the target operation.
  • the second terminal device sends the target address, and the sent target address is used to indicate that the target address is used as the destination of the vehicle for navigation.
  • the sent target address is used to indicate that the target address is used as the destination of the vehicle for navigation.
  • the first terminal device since the first terminal device is in the process of being connected to the vehicle, the first terminal device is generally the terminal device located at the main driving position, if the destination of the vehicle navigation can only be modified through the first terminal device , then there is a high probability that the modification operation will be performed by the driver, which will increase the risk of the driving process; Efficiency in navigating destinations.
  • the data stored on the vehicle and/or the running service flow can be triggered by the vehicle side to the terminal device in the car; in another case, the terminal device in the car can trigger The data stored on the vehicle and/or the running service flow are triggered to be transferred to the terminal device in the vehicle, and the foregoing two situations are described respectively below.
  • Figure 47 is a schematic flow chart of the data transfer method provided by the embodiment of the present application.
  • the data transfer method provided by the embodiment of the present application may include:
  • the vehicle obtains a second trigger operation, and the second trigger operation is used to transfer the target data stored on the vehicle and/or the target service running on the vehicle to the terminal device in the vehicle.
  • At least one type of target data may be stored on the vehicle and/or at least one type of target service may be run on the vehicle and can be transferred to a terminal device in the vehicle.
  • at least one kind of target data may specifically be represented as pictures, videos, music or other types of data, etc.
  • at least one kind of target service may be specifically represented as video call services, navigation services or other types of services, etc. Do exhaustive.
  • Transferring the target data stored on the vehicle to the terminal device in the vehicle can also be referred to as “sending the target data stored on the vehicle to the terminal device in the vehicle”; “transferring the target business running on the vehicle to the terminal device in the vehicle”
  • the “terminal device” can be understood as the vehicle sends the data used to execute the target business to the terminal device in the vehicle, so as to execute the target business through the terminal device in the vehicle.
  • the way for the vehicle to obtain the second trigger operation may be any one or a combination of the following: the user inputs the second trigger operation by voice; or, the user inputs the second trigger operation through a button on the display interface of the vehicle; or, When the vehicle collects the preset hover gesture input by the user through the camera, it is deemed that the user enters the second trigger operation; or when the vehicle receives the preset gesture operation input by the user through the display interface, it is deemed that the user enters the second trigger operation, or The user may also input the second trigger operation and so on in other ways, which are not exhaustive here.
  • the vehicle may obtain "share the current picture", “transfer the current video call” or other voice commands input by the user, which are not exhaustive here.
  • the vehicle outputs inquiry information, where the inquiry information is used to confirm whether to transfer the target data and/or target service to the terminal device in the vehicle.
  • the vehicle after the vehicle obtains the second trigger operation, it can also output inquiry information, which is used to confirm whether to transfer the target data and/or target business to the terminal device in the vehicle . If a confirmation operation input by the user for the inquiry information is detected, enter step 5202; if a cancel operation input by the user for the inquiry information is detected, the transfer operation of the target data and/or target service is terminated.
  • the query information may be in a text box, voice or other forms, etc., which are not exhaustive here.
  • the specific implementation of the vehicle output query information the specific implementation of the user input confirmation operation and the cancellation operation, all can refer to the description in the above-mentioned embodiment corresponding to FIG. 40 , and details will not be repeated here.
  • the vehicle judges whether there is transferable target data and/or target business on the vehicle, and if the judgment result is yes, proceed to step 5204; if the judgment result is no, terminate the transfer operation of the target data and/or target business.
  • At least one type of data that can be transferred to the terminal device and/or at least one type of service that can be transferred to the terminal device can be preset in the vehicle, and the vehicle can determine whether there is a transferable Target data, and/or, the vehicle can determine whether there is a transferable target business in the task list that the vehicle is running.
  • trigger to enter step 5204 If the judgment result is yes, trigger to enter step 5204; if the judgment result is no, trigger to terminate the transfer operation of the target data and/or target service.
  • the central control screen of the vehicle only displays relevant information during the driving process of the vehicle, without pictures, music, video or other data that can be transferred, and there is no video call when the vehicle is running in the foreground. , navigation, or other services that can be transferred, it can trigger the termination of the transfer operation of the target data and/or target services.
  • the "related information of the vehicle during driving” may include the current driving speed of the vehicle, the temperature of the air conditioner in the vehicle, or other information, etc., which are not exhaustive here.
  • step 5202 is an optional step. If step 5202 is executed, the embodiment of the present application does not limit the execution sequence of step 5202 and step 5203. Step 5202 may be executed first, and then step 5203 may be executed; or step 5203 may be executed first , and then execute step 5202; or execute steps 5202 and 5203 at the same time.
  • the vehicle judges whether there is a terminal device located in the vehicle, and if the judgment result is yes, enter step 5205; if the judgment result is no, terminate the transfer operation of the target data and/or target business.
  • the vehicle can scan the surrounding terminal devices and obtain the first location information of each terminal device scanned, so as to , judging whether there is at least one terminal device located in the vehicle; if the judging result is yes, proceed to step 5205; if the judging result is no, then terminate the transfer operation of the target data and/or target business.
  • step 5203 can be executed first, and then step 5204 can be executed; step 5204 can also be executed first, and then step 5203 can be executed; step 5203 and step 5203 can also be executed simultaneously 5204.
  • the vehicle sends target data and/or target services to at least one target terminal device located in the vehicle.
  • the vehicle after the vehicle determines to execute the transfer operation of the target data and/or target business, it can send the target data and/or target business to at least one target terminal device, and correspondingly, each target terminal device can receive the target data , or, each target terminal device can run a target service.
  • each target terminal device is a terminal device in a vehicle, that is, the at least one target terminal device includes at least one terminal device in the vehicle.
  • the vehicle may directly send target data and/or target services to each terminal device in the vehicle, that is, each terminal device in the vehicle is confirmed as a target terminal device.
  • the vehicle may obtain at least one terminal device located in the vehicle, and send the first transfer request to each terminal device in the vehicle.
  • the first transfer request is used to request to transfer the target data and/or the target service to the terminal device.
  • Each terminal device in the vehicle may output fourth information after receiving the first transfer request, and the fourth information is used to inquire whether to receive target data and/or target services transferred by the vehicle.
  • the terminal device in the vehicle obtains the confirmation operation for the fourth information, it sends the confirmation information corresponding to the first transfer request to the vehicle; if the terminal device in the vehicle obtains the cancellation operation for the fourth information, it sends The vehicle sends rejection information corresponding to the first transfer request.
  • the specific implementation manner of "user input confirmation operation/cancel operation" can refer to the description in the above-mentioned embodiments, and details will not be repeated here.
  • the vehicle When the vehicle receives the confirmation information sent by at least one target terminal device, it sends the target data and/or data associated with the target service to each target terminal device.
  • the vehicle may terminate the aforementioned sending operation after sending all the target data to the target terminal device. If the vehicle sends the data associated with the target service to the terminal device, the vehicle may terminate the sending operation to the target service after the target service is executed.
  • Figure 48 is a schematic flow chart of the data transfer method provided by the embodiment of this application.
  • the vehicle when the vehicle is in the process of performing a video call service, When the user on the main driver wants to switch the aforementioned video call service from the vehicle to the terminal device of the user in the rear seat, the vehicle receives the input of "switch the video call service to the terminal in the car" inputted by the user on the main driver through the vehicle.
  • the vehicle may display a terminal device list, the terminal device list includes identification information of at least one terminal device, and the at least one terminal device's The identification information includes identification information of all terminal devices located in the vehicle.
  • the vehicle acquires a selection operation input by the user for the terminal device list, and the selection operation is used to determine the at least one target terminal device from the terminal device list.
  • the vehicle can then send target data and/or target services to each target terminal.
  • Fig. 49 is another schematic flowchart of the data transfer method provided by the embodiment of the present application.
  • the data stored on the vehicle and/or the running business flow are triggered by the terminal device side to be transferred to the vehicle.
  • the data transfer method provided in the embodiment of this application may include:
  • the third terminal device acquires a third trigger operation, and the third trigger operation is used to transfer the target data stored on the vehicle and/or the target service running on the vehicle to the third terminal device.
  • At least one target data can be stored on the vehicle and/or at least one target service can be transferred to the terminal device in the vehicle, and the third terminal device can obtain the third trigger input by the user.
  • the third triggering operation is used to transfer the target data stored on the vehicle and/or the target service running on the vehicle to the terminal device in the vehicle.
  • the third trigger operation may be shaking the third terminal device left and right, shaking the third terminal device up and down, inputting a preset gesture operation through the interface of the third terminal device, inputting a voice command through the third terminal device, or other types of third terminal device.
  • Three trigger operations, etc., are not exhaustive here.
  • the third terminal device judges whether the third terminal device is located in the vehicle, and if the judgment result is yes, proceed to step 5403; if the judgment result is no, terminate the target data and/or target task transfer operation.
  • the third terminal device after the third terminal device obtains the third trigger operation, it can trigger the acquisition of the first location information of the third terminal device, "acquire the first location information of the third terminal device” and “acquire the first terminal device
  • the specific implementation of the "first location information” is similar, and you can directly refer to the above description in Embodiment 3, and details are not repeated here.
  • the third terminal device judges whether the third terminal device is located inside the vehicle according to the first location information of the third terminal device, if the judgment result is yes, then enter step 5403; if the judgment result is no, then terminate the target data and/or target The flow operation of the task.
  • the third terminal device sends a second transfer request to the vehicle, where the second transfer request is used to request that the target data and/or target service be transferred to the third terminal device.
  • the third terminal device may send the second transfer request to the vehicle.
  • the second transfer request is used to request transfer of the target data and/or target service to the third terminal device.
  • the vehicle judges whether there is transferable target data and/or target business on the vehicle, and if the judgment result is yes, proceed to step 5405; if the judgment result is no, terminate the transfer operation of the target data and/or target business.
  • step 5404 the specific implementation manner of the vehicle executing step 5404 can refer to the description of step 1803 in the embodiment corresponding to FIG. 47 , which will not be repeated here.
  • the vehicle outputs inquiry information, where the inquiry information is used to confirm whether to transfer the target data and/or target service to the terminal device in the vehicle.
  • the vehicle after the vehicle receives the second transfer request, it can also output inquiry information, which is used to confirm whether to transfer the target data and/or target business to the terminal device in the vehicle. If the user confirms the query information, enter step 5406; if it detects that the user cancels the query information, the target data and/or target service transfer operation is terminated.
  • step 5405 can refer to the description of step 1802 in the embodiment corresponding to FIG. 47 , which will not be repeated here.
  • step 5404 can be executed first, and then step 5405 can be executed; step 5405 can also be executed first, and then step 5404 can be executed; or step 5404 and 5405.
  • the vehicle sends the target data and/or target service to the third terminal device.
  • step 5405 is an optional step. If step 5405 is not performed, after it is determined that there is transferable target data and/or target business on the vehicle, the vehicle can obtain the target data and/or target business, and Target data and/or target traffic are sent to the third terminal device.
  • the vehicle may acquire the target data and/or target service and send the target data and/or target service to the third terminal device if a confirmation operation input by the user for the query information is detected.
  • the vehicle there are multiple terminal devices inside the vehicle, and one of the terminal devices is connected to the vehicle. If other terminal devices in the vehicle are not connected to the vehicle, the vehicle cannot know each terminal device in the vehicle in a timely manner. status. If the vehicle is playing audio streams and other terminal devices in the car are talking, the audio stream played by the vehicle will cause interference to other terminal devices. Therefore, when other terminal devices in the car are talking, it is necessary to reduce the volume The volume while streaming.
  • FIG. 50 is a schematic flowchart of a volume processing method provided in an embodiment of the present application.
  • the volume processing method provided in an embodiment of the present application may include:
  • the terminal device acquires first location information of the terminal device, where the first location information of the terminal device is used to indicate whether the terminal device is located inside or outside the vehicle.
  • the terminal device when the terminal device is making a call, before the terminal device sends the first status information to the vehicle, it may be triggered to obtain the first location information of the terminal device, which is used to indicate that the terminal device is located in Inside or outside the car.
  • the first location information of the terminal device which is used to indicate that the terminal device is located in Inside or outside the car.
  • the terminal device When the terminal device is located in the vehicle, when the terminal device makes a call, send first status information to the vehicle, where the first status information is used for the vehicle to obtain a target volume corresponding to the played audio stream.
  • the terminal device if the first location information of the terminal device indicates that the terminal device is located outside the vehicle, the terminal device terminates subsequent operations. If the first location information of the terminal device indicates that the terminal device is located in the vehicle, the terminal device may send the first state information to the vehicle when making a call.
  • the first state information is used for the vehicle to obtain the target volume corresponding to the played audio stream; as an example, for example, the first state information may be embodied as a Call_ON signal, which is used to inform the vehicle that the terminal device is in a call state.
  • the terminal device may send the first status information to the vehicle only once when starting a call.
  • the terminal device may send a plurality of first state information to the vehicle at a preset frequency during the call; correspondingly, the vehicle needs to continuously monitor the first state information sent by the terminal device.
  • the preset frequency can be 1 Hertz (HZ), 2HZ, sending once every 10 seconds, sending once every 20 seconds, sending once every minute, or other frequencies, etc., which are not exhaustive here.
  • the terminal device may obtain the current running state of the vehicle. If the vehicle is in a moving state, the terminal device may only send the first state information to the vehicle once when starting a call. If the vehicle is in a parked state, during the call of the terminal device, a plurality of pieces of first state information may be sent to the vehicle according to a preset frequency. It should be noted that, the specific implementation manner for the terminal device to obtain whether the vehicle is in a moving state or a parking state can refer to the description in the foregoing embodiments, and details are not repeated here.
  • the vehicle determines a target volume corresponding to the played audio stream in response to the received first state information, where the target volume is less than or equal to a preset volume threshold.
  • the vehicle in response to the received first status information, can obtain the first playback volume corresponding to the played audio stream (that is, the actual volume currently used by the vehicle), and determine the obtained first playback volume. Whether the volume is greater than the preset volume threshold, if the judgment result is no, the vehicle can no longer adjust the volume used by the vehicle to play the audio stream; if the judgment result is yes, then adjust the target volume used by the vehicle to play the audio stream to Preset volume threshold.
  • the measurement unit of the preset volume threshold may be decibel, volume level, or other types of measurement units, etc., which are not limited here.
  • the volume level of the preset volume threshold is 0 or 1.
  • the decibel number of the preset volume threshold is 0. It should be understood that the example here is only for the convenience of understanding this solution, and is not used to limit this plan.
  • the terminal device can only send the first state information to the vehicle once when the call is started, then when the terminal device ends the call, it can send the second state information to the vehicle, and the first state information can be sent to the vehicle.
  • the second state information is used for the vehicle to determine the first playing volume as the volume corresponding to the played audio stream.
  • the second state information may specifically be embodied as a Call_Off signal, which is used to inform the vehicle that the terminal device is in a call-ending state.
  • the vehicle may trigger to readjust the volume used when playing the audio stream back to the first playback volume. Further, if the playback volume currently used by the vehicle is the first playback volume, the vehicle does not need to adjust the volume.
  • the terminal device if the terminal device sends a plurality of first state information to the vehicle according to a preset frequency during the call, then when the terminal device ends the call, it can send the second state information to the vehicle.
  • the state information is used for the vehicle to determine the first playing volume as the volume corresponding to the played audio stream.
  • the terminal device may stop sending the first state information to the vehicle when the call ends.
  • the vehicle may be triggered to re-determine the first playback volume as the volume used when playing the audio stream.
  • the terminal device will send a plurality of first state information to the vehicle according to the preset frequency during the call, so that when the When the vehicle listens to different first state information, it can restore the volume used when playing the audio stream to the first playback volume in time, that is, it can ensure that the vehicle can resume playing the audio stream in time after the user gets off the vehicle with the terminal device In other words, it can not only automatically reduce the volume when the vehicle plays the audio stream, but also automatically increase the volume when the vehicle plays the audio stream.
  • the terminal device inside the vehicle when the terminal device inside the vehicle is making a call, it can automatically reduce the volume of the audio stream played by the vehicle, so as to avoid the audio played by the vehicle from causing trouble to the user in the car when making a call; and there is no need to add additional hardware device, the aforementioned functions can be realized; in addition, only when the terminal device inside the vehicle is making a call, the volume of the audio played by the vehicle will be triggered to reduce, avoiding the interference caused by the terminal device outside the vehicle.
  • FIG. 51 is a schematic structural diagram of an audio stream processing device provided by an embodiment of the present application.
  • the audio stream processing apparatus 5600 is applied to a vehicle, and the vehicle is included in a data processing system, and the data processing system also includes a first terminal device.
  • the audio stream processing apparatus 5600 may include: a connection module 5601, configured to establish a connection with the first terminal; a receiving module 5602, configured to receive data sent by the first terminal device, in which there is a target audio stream; a playing module 5603, configured to Play the target audio stream; the playback module 5603 is also used to continue to play the target audio stream when a preset situation occurs during the process of the vehicle playing the target audio stream, wherein the preset situation includes: the first terminal device is in the same position as the vehicle Moving from inside the car to outside the car during the connected state, and the category of the target audio stream is the first category.
  • the playback device of the audio stream of the second category is switched to the first terminal device, the second category and the first category are different categories, and the audio stream of the second category A stream is generated for the first terminal device.
  • the embodiment of the present application also provides an audio stream processing device, please refer to FIG. 52 , which is a schematic structural diagram of the audio stream processing device provided in the embodiment of the present application.
  • the audio stream processing device 5700 is applied to the first terminal device, the first terminal device is included in the data processing system, and the data processing system also includes a vehicle, and the audio stream processing device 5700 may include: a connection module 5701, configured to establish a connection with the vehicle;
  • the sending module 5702 is used to send data to the vehicle, and the data contains the target audio stream;
  • the acquisition module 5703 is used to detect the first When a terminal device moves from inside the vehicle to outside the vehicle, obtain the target category corresponding to the target audio stream being sent to the vehicle; the sending module 5702 is also used to continue sending the target audio stream to the vehicle if the target category is the first category .
  • the first category includes media categories
  • the second category is different from the first category
  • FIG. 53 is another schematic structural diagram of an audio stream processing device provided by an embodiment of the present application.
  • the audio stream processing device 5700 also includes: a switching module 5704, which is used to switch the playback device of the second type of audio stream from the vehicle to the first terminal device, and the second type of audio stream is generated by the first terminal device; the playback module 5705 , for playing the second audio stream by the first terminal device if the first terminal device receives a play instruction to play the second audio stream; the category of the second audio stream is the second category.
  • the audio stream processing apparatus 5700 further includes: an output module 5706, configured to output first information, the first information is used to prompt the user to switch the playback device of the target audio stream from the vehicle to the first terminal device.
  • the audio stream processing apparatus 5700 further includes: an output module 5706, configured to output the first information when the first terminal device acquires a playback operation on the first audio stream; Wherein, the category of the first audio stream is the first category, and the first audio stream is different from the target audio stream played by the vehicle, and the first information is used to prompt the user to switch the playback device of the first audio stream from the vehicle to the first terminal device .
  • the audio stream processing apparatus 5700 further includes: a playing module 5705 configured to continue playing the target audio stream by the first terminal device if the target category is not the first category.
  • the embodiment of the present application also provides an address processing device, please refer to FIG. 54 , which is a schematic structural diagram of the address processing device provided in the embodiment of the present application.
  • the address processing device 5900 is applied to the second terminal device.
  • the second terminal device is included in the navigation system.
  • the navigation system includes a vehicle, the first terminal device and the second terminal device.
  • the address processing device 5900 includes: a display module 5901 for The target address is displayed on the display interface; the sending module 5902 is configured to send the target address to the vehicle by the second terminal device when the first terminal device is connected to the vehicle, wherein the sent target address is used to prompt the target address As the destination when the vehicle is navigating.
  • FIG. 55 is a schematic structural diagram of an address processing device provided in an embodiment of the present application.
  • the address processing apparatus 5900 also includes: an acquisition module 5903, configured to acquire first location information corresponding to the second terminal device, the first location information being used to indicate that the second terminal device is located inside or outside the vehicle; an output module 5904, used to When the second terminal device is located inside the vehicle, output second information, the second information is used to prompt the user to input the target operation; the sending module 5902 is specifically used for the second terminal device to receive the target operation input by the user; When the terminal device is connected to the vehicle, in response to the received target operation, the second terminal device sends the target address to the vehicle.
  • an acquisition module 5903 configured to acquire first location information corresponding to the second terminal device, the first location information being used to indicate that the second terminal device is located inside or outside the vehicle
  • an output module 5904 used to When the second terminal device is located inside the vehicle, output second information, the second information is used to prompt the user to input the target operation
  • the display interface displaying the target address includes any one or more of the following types of application program interfaces: navigation application programs, instant messaging application programs, life service application programs or travel travel application programs program.
  • the address processing apparatus 5900 further includes: a receiving module 5905, configured to receive a trigger operation input by the user; an obtaining module 5903, specifically configured to respond to the trigger operation, the second terminal device Acquire first location information corresponding to the second terminal device.
  • the embodiment of the present application also provides an address processing device, please refer to FIG. 56 , which is a schematic structural diagram of the address processing device provided in the embodiment of the present application.
  • the address processing device 6100 is applied to a vehicle, and the vehicle is included in a navigation system, and the navigation system also includes a second terminal device and a first terminal device, and the address processing device 6100 includes: an acquisition module 6101, configured to be used when the first terminal device is in contact with the vehicle In the process of the connection state, the target address is obtained, and the target address is generated by the second terminal device; the navigation module 6102 is used to use the target address as the destination when the vehicle is navigating.
  • the second terminal device is located inside the vehicle.
  • the navigation module 6102 is specifically configured to navigate with the first address as the destination when the target address is acquired; change the first address to the target address, and continue with the target address as the destination navigation.
  • FIG. A communication function may be included, and the vehicle 100 may include, in addition to the components shown in FIG. 2 , a receiver 6201 and a transmitter 6202 , where the processor 113 may include an application processor 1131 and a communication processor 1132 .
  • the receiver 6201, the transmitter 6202, the processor 113 and the memory 114 may be connected through a bus or in other ways.
  • Processor 113 controls the operation of the autonomous vehicle.
  • various components of the vehicle 100 are coupled together through a bus system, where the bus system may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • the various buses are referred to as bus systems in the figures.
  • the receiver 6201 can be used to receive input digital or character information, and generate signal input related to settings and function control of the self-driving vehicle.
  • the transmitter 6202 can be used to output digital or character information through the first interface; the transmitter 6202 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 6202 can also include a display device such as a display screen .
  • the application processor 1131 is configured to execute the steps performed by the vehicle in the above method embodiments. It should be noted that, for the specific implementation manners and beneficial effects brought about by the application processor 1131 performing the foregoing steps, reference may be made to the descriptions in the foregoing method embodiments, which will not be repeated here.
  • FIG. 58 is a schematic structural diagram of the terminal device provided in the embodiment of the present application.
  • the terminal device 6300 can specifically be represented as a mobile phone, a tablet, a notebook computer, or a smart wearable device. Or other terminal equipment, etc., which are not limited here.
  • the terminal device 6300 includes: a receiver 6301, a transmitter 6302, a processor 6303, and a memory 6304 (the number of processors 6303 in the terminal device 6300 can be one or more, and one processor is taken as an example in FIG. 58 ) , where the processor 6303 may include an application processor 63031 and a communication processor 63032 .
  • the receiver 6301, the transmitter 6302, the processor 6303, and the memory 6304 may be connected through a bus or in other ways.
  • the memory 6304 may include read-only memory and random-access memory, and provides instructions and data to the processor 6303 .
  • a part of the memory 6304 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 6304 stores processors and operating instructions, executable modules or data structures, or their subsets, or their extended sets, wherein the operating instructions may include various operating instructions for implementing various operations.
  • the processor 6303 controls the operations of the execution device.
  • various components of the execution device are coupled together through a bus system, where the bus system may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • the various buses are referred to as bus systems in the figures.
  • the methods disclosed in the foregoing embodiments of the present application may be applied to the processor 6303 or implemented by the processor 6303 .
  • the processor 6303 may be an integrated circuit chip, which has a signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 6303 or instructions in the form of software.
  • the above-mentioned processor 6303 may be a general-purpose processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and may further include an application specific integrated circuit (ASIC), field programmable Field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processing
  • FPGA field programmable Field-programmable gate array
  • the processor 6303 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 6304, and the processor 6303 reads the information in the memory 6304, and completes the steps of the above method in combination with its hardware.
  • the receiver 6301 can be used to receive input digital or character information, and generate signal input related to performing device related settings and function control.
  • the transmitter 6302 can be used to output digital or character information through the first interface; the transmitter 6302 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 6302 can also include a display device such as a display screen .
  • the application processor 63031 is configured to execute the steps performed by the terminal device in the foregoing method embodiments. It should be noted that, for the specific implementation manner and beneficial effects brought about by the application processor 63031 performing the foregoing steps, reference may be made to the descriptions in the foregoing method embodiments, and details are not repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores program codes, and when the program codes are run on the computer, the computer executes the methods described in the above-mentioned various method embodiments.
  • the embodiment of the present application also provides a computer program product, including program code, when the program code is run on the computer, it makes the computer execute the steps performed by the vehicle in the method described in the above method embodiments; or, makes The computer executes the steps executed by the terminal device in the method described in each method embodiment above.
  • the embodiment of the present application also provides a chip, and the chip includes: a processing unit and a communication unit.
  • the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, a pin, or a circuit.
  • the processing unit may execute the computer-executable instructions stored in the storage unit, so that the chip in the server executes the methods described in the foregoing method embodiments.
  • the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be a storage unit located outside the chip in the wireless access device, such as only Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), etc.
  • ROM Read-only memory
  • RAM random access memory
  • the processor mentioned in any of the above-mentioned places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the program execution of the above-mentioned method in the first aspect.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be A physical unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to realize the purpose of the solution of this embodiment.
  • the connection relationship between the modules indicates that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.
  • the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application .
  • a computer device which can be a personal computer, a server, or a network device, etc.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • wired eg, coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless eg, infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.

Abstract

一种位置的获取方法以及相关设备,该方法可用于智能车辆领域。车辆包括于位置的获取系统,位置的获取系统还包括终端设备,方法包括:发送包括第一探测信号和第二探测信号的多个目标音频信号,第一探测信号用于确定第一时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的多个时间,第二探测信号用于确定第二时间集合,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的多个时间;获取第一位置信息,第一位置信息指示终端设备位于车内或车外,第一时间集合和第二时间集合中的到达时间的时间间隔用于确定第一位置信息。提供了一种测量用户相对于车辆的位置的方案,且避免了额外开销。

Description

一种位置的获取方法以及相关设备
本申请要求于2021年10月30日提交中国专利局、申请号为202111278602.X、发明名称为“一种位置的获取方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种位置的获取方法以及相关设备。
背景技术
随着汽车功能的不断升级,带给用户的体验也愈发的丰富多彩,而这些功能往往都是无差异性的提供给用户,无论用户相对于车辆的位置是哪里,车辆所提供给用户的功能是一模一样的。然而,位于不同位置的用户对车辆功能的需求可能会有差异,不过实现这一功能的前提是先要确定用户当前的位置。
因此,一种用于测量用户相对于车辆的位置的方案亟待推出。
发明内容
本申请提供了一种位置的获取方法以及相关设备,根据第一时间集合和第二时间集合之间的时间间隔来确定终端设备位于车辆内部还是车辆外部,从而提供了一种测量用户相对于车辆的位置的方案;此外,音频信号可以通过车辆中自带的音响发出,无需在车辆或终端设备上增加额外的硬件,以避免了额外开销。
为解决上述技术问题,本申请提供以下技术方案:
第一方面,本申请提供一种位置的获取方法,可用于智能车辆领域中。方法应用于位置的获取系统,位置的获取系统包括车辆和终端设备,方法包括:在车辆检测到满足第一触发条件的情况下,发送至少一个目标音频信号,其中,目标音频信号用于确定与目标音频信号对应的至少一个到达时间。进一步地,车辆发送至少一个目标音频信号,包括:按照第一预设频率发送多个目标音频信号;其中,多个目标音频信号包括第一探测信号和第二探测信号,至少一个到达时间包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间;进一步地,车辆发送第一探测信号的时间可以早于车辆发送第二探测信号的时间,或者,车辆发送第一探测信号的时间可以晚于车辆发送第二探测信号的时间;第一探测信号和第二探测信号为两个不同的目标音频信号,且相邻到达终端设备。车辆获取与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部,第一时间集合和第二时间集合中的到达时间之间的时间间隔用于确定第一位置信息。
本实现方式中,车辆发送多个目标音频信号,由于车辆内部的空间比较封闭,则一个目标音频信号经过直射和/或反射后得到的多个音频信号能够较为集中的到达终端设备,而车辆外部的空间相对于车辆内部的空间较为开阔,一个目标音频信号经过直射和/或反射后 得到的多个音频信号会比较分散的到达终端设备,因此能够根据第一时间集合和第二时间集合之间的时间间隔来确定终端设备位于车辆内部还是车辆外部,从而提供了一种测量用户相对于车辆的位置的方案;此外,音频信号可以通过车辆中自带的音响发出,无需在车辆或终端设备上增加额外的硬件,以避免了额外开销。
在第一方面的一种可能实现方式中,目标音频信号为线性调频信号或ZC序列信号。进一步地,目标音频信号所在频段可以为17KHZ-48KHZ,可选地,目标音频信号所在频段可以为17KHZ-22KHZ。
本实现方式中,由于线性调频信号或者ZC序列信号为能量聚集型信号,选用线性调频信号或者ZC序列信号作为目标音频信号,有利于准确的估计每个目标音频信号所对应的至少一个到达时间,从而有利于得到准确的第一位置信息。
在第一方面的一种可能实现方式中,若第一时间集合和第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则第一位置信息指示终端设备位于车辆内部;若第一时间集合和第二时间集合中的到达时间之间的时间间隔不位于预设时间范围内,则第一位置信息指示终端设备位于车辆外部。其中,预设时间范围的确定因素包括车辆发送两个相邻的目标音频信号之间的时间间隔,预设时间范围所采用的时间度量单位可以包括采样点、毫秒、秒或其他时间度量单位等等,作为示例,例如预设时间范围可以为d-c个采样点至d+e个采样点,d个采样点为车辆发送两个目标音频信号之间的时间间隔。
本实现方式中,预设时间范围可以基于车辆发送两个相邻的目标音频信号之间的时间间隔确定,从而提供了一种简单的预设时间范围的确定方式。
在第一方面的一种可能实现方式中,第一时间集合和第二时间集合中的到达时间之间的时间间隔包括:第一时间集合中最晚的时间和第二时间集合中最早的时间之间的时间间隔。本实现方式中,提供了利用第一时间集合和第二时间集合中的到达时间之间的时间间隔,得到终端设备的第一位置信息的一种具体实现方式,操作简单,易于实现。
在第一方面的一种可能实现方式中,当车辆检测到如下任一种或多种情况时,视为检测到满足第一触发条件:检测到车辆停车;或者,检测到终端设备与车辆之间的距离满足第一距离条件;或者,获取到第一指令,第一指令用于触发车辆获取第一位置信息。
本实现方式中,提供了第一触发条件的多种具体表现形式,扩展了本方案的应用场景,提高了本方案的实现灵活性。
在第一方面的一种可能实现方式中,车辆检测到车辆停车,可以包括:车辆获取车辆的速度、加速度和角速度,并将车辆的速度、加速度和角速度输入分类模型,得到分类模型输出的预测类别信息。其中,该分类模型为已经执行过训练操作的模型,分类模型可以具体表现为神经网络,也可以表现为非神经网络的模型。作为示例,例如该分类模型可以具体表现为决策树、随机森林、极度随机树、支持向量机、K-临近(KNN)模型、逻辑回归模型或其他类型的分类模型等,此处不做穷举。预测类别信息指示车辆处于停止状态或移动状态,在一种实现方式中,分类模型输出的预测类别信息可以包括第一概率值和第二概率值,第一概率值用于指示车辆为停止状态的概率,第二概率值用于指示车辆为移动状态的概率;在另一种实现方式中,分类模型输出的预测类别信息可以为第一值或第二值,当 分类模型输出的预测类别信息为第一值时,代表车辆处于停止状态,当分类模型输出的预测类别信息为第二值时,代表车辆处于移动状态。
本实现方式中,将车辆的速度、加速度和角速度输入分类模型中,以通过该分类模型确定车辆处于停止状态还是移动状态,避免了从车辆的控制系统中获取车辆的状态,保证了车辆的控制系统在终端设备的目标位置信息的测量过程中的独立性,有利于提高车辆运行过程的安全性。
第二方面,本申请提供一种位置的获取方法,可用于智能车辆领域中。方法应用于位置的获取系统,位置的获取系统包括车辆和终端设备,方法包括:在终端设备检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个到达时间,至少一个目标音频信号包括由车辆按照预设频率发出的多个目标音频信号,多个目标音频信号包括第一探测信号和第二探测信号,至少一个到达时间包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间。终端设备根据第一时间集合和第二时间集合中的到达时间之间的时间间隔,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
在第二方面的一种可能实现方式中,若第一时间集合和第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则第一位置信息指示终端设备位于车辆内部,其中,预设时间范围的确定因素包括车辆发送两个相邻的目标音频信号之间的时间间隔;若第一时间集合和第二时间集合中的到达时间之间的时间间隔不位于预设时间范围内,则第一位置信息指示终端设备位于车辆外部。
在第二方面的一种可能实现方式中,终端设备根据第一时间集合和第二时间集合中的到达时间之间的时间间隔,生成与终端设备对应的第一位置信息,包括:终端设备根据第一时间集合中最晚的时间和第二时间集合中最早的时间之间的时间间隔,生成第一位置信息。
在第二方面的一种可能实现方式中,当终端设备检测到如下任一种或多种情况时,视为检测到满足第二触发条件:检测到车辆停车;或者,检测到终端设备与车辆之间的距离满足第一距离条件;或者,检测到终端设备的位移符合预设位移;或者,获取到第二指令,第二指令用于触发终端设备获取第一位置信息。
对于本申请第二方面以及第二方面的各种可能实现方式中的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第一方面中各种可能的实现方式中的描述,此处不再一一赘述。
第三方面,本申请提供一种位置的获取方法,可用于智能车辆领域中。方法应用于位置的获取系统,位置的获取系统包括车辆和终端设备,方法包括:车辆按照第二预设频率发送多个目标音频信号;其中,在车辆处于移动状态的情况下,一个目标音频信号用于确定目标音频信号到达终端设备的一个第一到达时间,在满足第二触发条件的情况下,一个目标音频信号用于确定目标音频信号到达终端设备的一个第二到达时间。进一步地,第一 到达时间可以为与每个目标音频信号对应的至少一个到达时间可以仅包括一个到达时间;或者,前述第一到达时间可以为与每个目标音频信号对应的至少一个到达时间中最早的一个到达时间;或者,前述第一到达时间可以为与每个目标音频信号对应的至少一个到达时间中最晚的一个到达时间;或者,第一到达时间也可以选用与每个目标音频信号对应的至少一个到达时间中的其它到达时间;第二到达时间与第一到达时间的含义类似,区别在于,第一到达时间是在车辆处于移动状态下获得的,第二到达时间是在终端设备检测到满足第二触发条件后获得的。车辆获取与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部,多个第一到达时间和至少一个第二到达时间用于确定第一位置信息。
本申请实施例中,从而提供了一种测量终端设备是位于车辆内部还是位于车辆外部的另一种方案,提高了本方案的实现灵活性;且也即利用音频信号来测量终端设备是位于车辆内部还是位于车辆外部,无需在车辆或终端设备上增加额外的硬件,以避免了额外开销。
在第三方面的一种可能实现方式中,多个第一到达时间用于确定与第二到达时间对应的第一预测时间,第一预测时间指示在终端设备位于车辆内部的情况下,目标音频信号到达终端设备的时间,第一预测时间和第二到达时间用于确定第一位置信息。
本申请实施例中,由于当车辆处于移动状态时,能够持续收到音频信号的终端设备一定是位于车内的,从而可以根据获取到的多个第一到达时间来得到第一预测时间,进而根据生成的第一预测时间和实际的第二到达时间,来确定终端设备是位于车辆内部还是外部,仅需一个音响就能实现终端设备的第一位置信息的检测,进一步降低了本方案的实现难度,有利于扩展本方案的应用场景。
对于本申请第三方面以及第三方面的各种可能实现方式中名词的具体含义,均可以参考第一方面中各种可能的实现方式中的描述,此处不再一一赘述。
第四方面,本申请提供一种位置的获取方法,可用于智能车辆领域中。方法应用于位置的获取系统,位置的获取系统包括车辆和终端设备,方法包括:在车辆处于移动状态的情况下,终端设备获取与多个目标音频信号对应的多个第一到达时间,一个第一到达时间代表一个目标音频信号到达终端设备的时间,多个目标音频信号为车辆按照预设频率发出的;在检测到满足第二触发条件的情况下,终端设备获取与至少一个目标音频信号对应的至少一个第二到达时间,根据多个第一到达时间和至少一个第二到达时间,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
在第四方面的一种可能实现方式中,终端设备根据多个第一到达时间和至少一个第二到达时间,生成与终端设备对应的第一位置信息,包括:终端设备根据多个第一到达时间确定与第二到达时间对应的第一预测时间,第一预测时间指示在终端设备位于车辆内部的情况下,目标音频信号到达终端设备的时间;终端设备根据第一预测时间和第二到达时间,生成第一位置信息。
对于本申请第四方面以及第四方面的各种可能实现方式中的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第三方面中各种可能的实现方式中的描述,此处不再一一赘述。
第五方面,本申请提供一种位置的获取方法,可用于智能车辆领域中。方法应用于位置的获取系统,位置的获取系统包括车辆和终端设备,车辆配置有至少三个音响,至少三个音响不位于一条直线上,至少三个音响包括第一音响、第二音响和第三音响,方法包括:车辆通过第一音响发送第一音频信号,第一音频信号用于确定终端设备接收到的第一音频信号的第一信号强度;车辆通过第二音响发送第二音频信号,第二音频信号用于确定终端设备接收到的第二音频信号的第二信号强度;车辆通过第三音响发送第三音频信号,第三音频信号用于确定终端设备接收到的第三音频信号的第三信号强度,第一信号强度、第二信号强度和第三信号强度用于确定与终端设备对应的第二位置信息,第二位置信息用于指示终端设备位于车辆外部的位置。
本申请实施例中,由于当终端设备位于车辆外部的不同位置上时,终端设备与各个音响之间的距离关系不同,音频信号传播越远,终端设备接收到的音频信号的强度越小,则第一信号强度、第二信号强度和第三信号强度能够分别反应终端设备与第一音响、第二音响以及第三音响之间的距离关系,因此能够基于第一信号强度、第二信号强度和第三信号强度得到终端设备位于车辆外部的具体位置,提供了测量终端设备在车辆外部的具体位置的又一实现方式,提高了本方案的实现灵活性。
在第五方面的一种可能实现方式中,第二位置信息用于供车辆从车辆包括的多个组件中确定与终端设备之间距离最近的组件,以控制与终端设备之间距离最近的组件执行预设操作。其中,组件可以为车门、车灯、后备箱或其他车辆组件,预设操作可以为解锁车门、打开车门、解锁后备箱、打开车灯或其他操作等。
本申请实施例中,提供了第二位置信息的具体应用场景,利用第二位置信息为用户提供更为精准的服务,有利于提高本方案的用户粘度。
第六方面,本申请提供一种位置的获取方法,可用于智能车辆领域中。方法应用于位置的获取系统,位置的获取系统包括车辆和终端设备,车辆配置有至少三个音响,至少三个音响不位于一条直线上,至少三个音响包括第一音响、第二音响和第三音响,方法包括:终端设备接收第一音响发送的第一音频信号,接收第二音响发送的第二音频信号,接收第三音响发送的第二音频信号;终端设备根据接收到的第一音频信号的第一信号强度、接收到的第二音频信号的第二信号强度和接收到的第三音频信号的第三信号强度,生成与终端设备对应的第二位置信息,第二位置信息用于指示终端设备位于车辆外部的位置。
对于本申请第六方面以及第六方面的各种可能实现方式中的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第五方面中各种可能的实现方式中的描述,此处不再一一赘述。
第七方面,本申请提供了一种位置的获取装置,可用于智能车辆领域中。位置的获取装置应用于车辆,车辆包括于位置的获取系统,位置的获取系统还包括终端设备,装置包括:发送模块,用于在检测到满足第一触发条件的情况下,发送至少一个目标音频信号,其中,目标音频信号用于确定与目标音频信号对应的至少一个到达时间;发送模块,具体用于按照预设频率发送多个目标音频信号,其中,多个目标音频信号包括第一探测信号和第二探测信号,至少一个到达时间包括第一探测信号所对应的第一时间集合和第二探测信 号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间;获取模块,用于获取与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部,第一时间集合和第二时间集合中的到达时间之间的时间间隔用于确定第一位置信息。
本申请中,第七方面提供的位置的获取装置还可以用于执行第一方面的各种可能实现方式中车辆执行的步骤,对于本申请第七方面以及第七方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第一方面中各种可能的实现方式中的描述,此处不再一一赘述。
第八方面,本申请提供了一种位置的获取装置,可用于智能车辆领域中。位置的获取装置应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,装置包括:获取模块,用于在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个到达时间,至少一个目标音频信号包括由车辆按照预设频率发出的多个目标音频信号,多个目标音频信号包括第一探测信号和第二探测信号,至少一个到达时间包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间;生成模块,用于根据第一时间集合和第二时间集合中的到达时间之间的时间间隔,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
本申请中,第八方面提供的位置的获取装置还可以用于执行第二方面的各种可能实现方式中终端设备执行的步骤,对于本申请第八方面以及第八方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第二方面中各种可能的实现方式中的描述,此处不再一一赘述。
第九方面,本申请提供了一种位置的获取装置,可用于智能车辆领域中。位置的获取装置应用于车辆,车辆包括于位置的获取系统,位置的获取系统还包括终端设备,装置包括:发送模块,用于按照预设频率发送多个目标音频信号,在车辆处于移动状态的情况下,一个目标音频信号用于确定目标音频信号到达终端设备的一个第一到达时间,在满足第二触发条件的情况下,一个目标音频信号用于确定目标音频信号到达终端设备的一个第二到达时间;获取模块,用于获取与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部,多个第一到达时间和至少一个第二到达时间用于确定第一位置信息。
本申请中,第九方面提供的位置的获取装置还可以用于执行第三方面的各种可能实现方式中车辆执行的步骤,对于本申请第九方面以及第九方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第三方面中各种可能的实现方式中的描述,此处不再一一赘述。
第十方面,本申请提供了一种位置的获取装置,可用于智能车辆领域中。位置的获取装置应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,该 装置包括:获取模块,用于在车辆处于移动状态的情况下,获取与多个目标音频信号对应的多个第一到达时间,一个第一到达时间代表一个目标音频信号到达终端设备的时间,多个目标音频信号为车辆按照预设频率发出的;生成模块,用于在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个第二到达时间,根据多个第一到达时间和至少一个第二到达时间,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
本申请中,第十方面提供的位置的获取装置还可以用于执行第四方面的各种可能实现方式中车辆执行的步骤,对于本申请第十方面以及第十方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第四方面中各种可能的实现方式中的描述,此处不再一一赘述。
第十一方面,本申请提供了一种位置的获取装置,可用于智能车辆领域中。位置的获取装置应用于车辆,车辆包括于位置的获取系统,位置的获取系统还包括终端设备,车辆配置有至少三个音响,至少三个音响不位于一条直线上,至少三个音响包括第一音响、第二音响和第三音响,位置的获取装置包括:发送模块,用于通过第一音响发送第一音频信号,第一音频信号用于确定终端设备接收到的第一音频信号的第一信号强度;发送模块,还用于通过第二音响发送第二音频信号,第二音频信号用于确定终端设备接收到的第二音频信号的第二信号强度;发送模块,还用于通过第三音响发送第三音频信号,第三音频信号用于确定终端设备接收到的第三音频信号的第三信号强度,第一信号强度、第二信号强度和第三信号强度用于确定与终端设备对应的第二位置信息,第二位置信息用于指示终端设备位于车辆外部的位置。
本申请中,第十一方面提供的位置的获取装置还可以用于执行第五方面的各种可能实现方式中车辆执行的步骤,对于本申请第十一方面以及第十一方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第五方面中各种可能的实现方式中的描述,此处不再一一赘述。
第十二方面,本申请提供了一种位置的获取装置,可用于智能车辆领域中。位置的获取装置应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,车辆配置有至少三个音响,至少三个音响不位于一条直线上,至少三个音响包括第一音响、第二音响和第三音响,位置的获取装置包括:接收模块,用于接收第一音响发送的第一音频信号,接收第二音响发送的第二音频信号,接收第三音响发送的第二音频信号;生成模块,用于根据接收到的第一音频信号的第一信号强度、接收到的第二音频信号的第二信号强度和接收到的第三音频信号的第三信号强度,生成与终端设备对应的第二位置信息,第二位置信息用于指示终端设备位于车辆外部的位置。
本申请中,第十二方面提供的位置的获取装置还可以用于执行第六方面的各种可能实现方式中车辆执行的步骤,对于本申请第十二方面以及第十二方面的各种可能实现方式的具体实现步骤、名词的具体含义以及每种可能实现方式所带来的有益效果,均可以参考第六方面中各种可能的实现方式中的描述,此处不再一一赘述。第十三方面,本申请提供了一种位置的获取方法,可用于智能车辆领域中。方法应用于车辆,车辆包含在位置的获取 系统中,位置的获取系统还包括终端设备,车辆配置有至少两个音响,至少两个音响包括第一音响和第二音响,第一音响和第二音响位于车辆的两侧,方法包括:通过第一音响发送第一音频信号,第一音频信号用于供终端设备确定第一音频信号的接收时间,第一音频信号的接收时间为终端设备接收到第一音频信号的时间;通过第二音响发送第二音频信号,第二音频信号用于供终端设备确定第二音频信号的接收时间,第二音频信号的接收时间为终端设备接收到第二音频信号的时间,第一音频信号的接收时间和第二音频信号的接收时间用于确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在第十三方面的一种可能实现方式中,通过第一音响发送第一音频信号,通过第二音响发送第二音频信号,包括:在通过第一音响发送第一音频信号的同时,通过第二音响发送第二音频信号,第一音频信号和第二音频信号为不同的音频信号,第一音频信号和第二音频信号到达终端设备的先后顺序用于确定目标位置信息。
在第十三方面的一种可能实现方式中,通过第一音响发送第一音频信号,通过第二音响发送第二音频信号,包括:先通过第一音响发送第一音频信号,并在预设时间间隔后,通过第二音响发送第二音频信号,第一音频信号的接收时间、第二音频信号的接收时间和预设时间间隔用于确定目标位置信息。
在第十三方面的一种可能实现方式中,至少两个音响包括至少三个音响,至少三个音响不位于一条直线上。
在第十三方面的一种可能实现方式中,至少三个音响包括四个音响,四个音响分别位于车辆中的左前方位置、右前方位置、左后方位置和右后方位置。
在第十三方面的一种可能实现方式中,目标位置信息用于指示终端设备位于车辆内部的位置;或者,目标位置信息用于指示终端设备位于车辆外部的位置。
在第十三方面的一种可能实现方式中,车辆内部的位置为车辆内部的左侧位置或车辆内部的右侧位置;或者,车辆内部的位置为车辆内部的前侧位置或车辆内部的后侧位置;或者,车辆内部的位置为主驾驶、副驾驶、后排左侧、后排右侧或后排中间中的任一个车辆内部的位置;或者,车辆内部共存在N个位置,车辆内部的位置为N个位置中的一个目标位置,N为大于或等于2的整数。
在第十三方面的一种可能实现方式中,目标位置信息用于确定终端设备对车辆的控制权限,位于不同位置上的终端设备对车辆有不同的控制权限;或者,目标位置信息用于指示终端设备是否位于车辆的主驾驶位置;或者,在终端设备与车辆连接时,目标位置信息用于供车辆确定与终端设备距离最近的车载设备。
在第十三方面的一种可能实现方式中,方法还包括:在车辆启动位置感知操作的情况下,向终端设备发送第一指示信息,第一指示信息用于指示终端设备启动位置感知操作,位置感知操作为用于获取目标位置信息的操作;接收终端设备发送的第一反馈消息,第一反馈消息用于指示车辆发送第一音频信号和第二音频信号;或者,接收终端设备发送的第二指示信息,响应于接收到的第二指示信息,启动位置感知操作;向终端设备发送第二反馈消息,第二反馈消息用于指示终端设备接收第一音频信号和第二音频信号。
第十四方面,本申请提供了一种位置的获取方法,可用于智能车辆领域中。方法应用 于终端设备,终端设备包含在位置的获取系统中,位置的获取系统还包括车辆,车辆配置有至少两个音响,至少两个音响包括第一音响和第二音响,第一音响和第二音响位于车辆不同的两侧,方法包括:接收第一音响发送的第一音频信号;接收第二音响发送的第二音频信号;根据第一音频信号的接收时间和第二音频信号的接收时间,确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在第十四方面的一种可能实现方式中,根据第一音频信号的接收时间和第二音频信号的接收时间,确定目标位置信息,包括:在第一音频信号和第二音频信号为同时发送的情况下,根据第一音频信号的接收时间和第二音频信号的接收时间,确定第一音频信号和第二音频信号到达终端设备的先后顺序;根据第一音频信号和第二音频信号到达终端设备的先后顺序,确定目标位置信息。
在第十四方面的一种可能实现方式中,根据第一音频信号的接收时间和第二音频信号的接收时间,确定目标位置信息,包括:根据第一音频信号的接收时间、第二音频信号的接收时间和预设时间间隔,确定目标位置信息,预设时间间隔为相邻的两个音频信号的发送时间间隔。
在第十四方面的一种可能实现方式中,至少两个音响包括至少三个音响,至少三个音响不位于一条直线上。
第十五方面,本申请提供了一种位置的获取方法,可用于智能车辆领域中。方法应用于车辆,车辆包含在位置的获取系统中,位置的获取系统还包括终端设备,车辆中配置有至少两个音响,至少两个音响配置于车辆的两侧,目标音响为至少两个音响中的任意一个音响,方法包括:通过目标音响接收终端设备发送的第一测量信号,并将接收第一测量信号的时间确定为第一时间;通过目标音响向终端设备发送第二测量信号,并将发送第二测量信号的时间确定为第二时间,第一测量信号和第二测量信号均为音频信号;根据第一时间、第二时间、第三时间和第四时间,确定终端设备与目标音响之间的距离,其中,第三时间为终端设备发送第一测量信号的时间,第四时间为终端设备接收第二测量信号的时间;根据终端设备与至少两个音响中每个音响之间的距离,确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在第十五方面的一种可能实现方式中,至少两个音响包括至少三个音响,至少三个音响不位于一条直线上。
在第十五方面的一种可能实现方式中,目标位置信息用于指示终端设备位于车辆内部的位置;或者,目标位置信息用于指示终端设备位于车辆外部的位置。
第十六方面,本申请提供了一种位置的获取方法,可用于智能车辆领域中。方法应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,车辆中配置有至少两个音响,至少两个音响配置于车辆不同的位置上,目标音响为至少两个音响中的任意一个音响,方法包括:向目标音响发送第一测量信号,将第一测量信号的发送时间确定为第三时间;接收目标音响发送的第二测量信号,将第二测量信号的接收时间确定为第四时间,第一测量信号和第二测量信号均为音频信号;根据第一时间、第二时间、第三时间和第四时间,确定终端设备与目标音响之间的距离,其中,第一时间为车辆接收第一测 量信号的时间,第二时间为车辆发送第二测量信号的时间;根据终端设备与至少两个音响中每个音响之间的距离,确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在第十六方面的一种可能实现方式中,目标位置信息用于指示终端设备位于车辆内部的位置;或者,目标位置信息用于指示终端设备位于车辆外部的位置。
在第十六方面的一种可能实现方式中,至少两个音响包括至少三个音响,至少三个音响不位于一条直线上。
第十七方面,本申请提供了一种音频流的处理方法,可用于智能车辆领域中。方法应用于数据处理系统中,数据处理系统还包括车辆和第一终端设备,方法包括:车辆与第一终端建立连接;车辆接收第一终端设备发送的数据,数据中有目标音频流;车辆播放目标音频流;在车辆播放目标音频流的过程中,当出现预设情况时,继续播放目标音频流,其中,预设情况包括:第一终端设备在与车辆处于连接状态的过程中从车内移动至车外,且目标音频流的类别为第一类别。
在第十七方面的一种可能实现方式中,第二类别的音频流的播放设备被切换至第一终端设备,第二类别和第一类别为不同的类别,第二类别的音频流为第一终端设备生成。
第十八方面,本申请提供了一种音频流的处理方法,可用于智能车辆领域中。方法应用于第一终端设备,第一终端设备包括于数据处理系统中,数据处理系统还包括车辆,方法包括:第一终端设备与车辆建立连接;第一终端设备向车辆发送数据,数据中有目标音频流;在由车辆播放目标音频流、且第一终端设备与车辆处于连接状态的过程中,当检测到第一终端设备从车内移动至车外时,获取正在向车辆发送的目标音频流所对应的目标类别;若目标类别为第一类别,则继续向车辆发送目标音频流。
在第十八方面的一种可能实现方式中,第一类别包括媒体类,第二类别与第一类别不同。
在第十八方面的一种可能实现方式中,方法还包括:将第二类别的音频流的播放设备由车辆切换至第一终端设备,第二类别的音频流由第一终端设备生成;若第一终端设备接收到播放第二音频流的播放指示,则由第一终端设备播放第二音频流;第二音频流的类别为第二类别。
在第十八方面的一种可能实现方式中,方法还包括:输出第一信息,第一信息用于提示用户将目标音频流的播放设备由车辆切换至第一终端设备。
在第十八方面的一种可能实现方式中,若目标类别为第一类别,则继续向车辆发送目标音频流之后,方法还包括:当第一终端设备获取到对第一音频流的播放操作时,输出第一信息;其中,第一音频流的类别为第一类别,且第一音频流与车辆播放的目标音频流不同,第一信息用于提示用户将第一音频流的播放设备由车辆切换至第一终端设备。
在第十八方面的一种可能实现方式中,方法还包括:若目标类别不是第一类别,则由第一终端设备继续播放目标音频流。
第十九方面,本申请提供了一种音频流的处理方法,可用于智能车辆领域中。方法应用于数据处理系统中,数据处理系统包括第一终端设备和车辆,方法包括:第一终端设备 与车辆建立连接;第一终端设备将第三类别的音频流的播放设备由第一终端设备切换至车辆,第三类别包括第一终端设备通过车辆播放的音频流所对应的所有类别;在第一终端设备与车辆处于连接状态的过程中,当检测到第一终端设备从车内移动至车外时,获取与车辆正在播放的目标音频流对应的目标类别,目标音频流为第一终端设备生成且发送至车辆的;由车辆继续播放目标音频流,且将第三类别中除目标类别之外的其他第二类别的音频流的播放设备由车辆切换至第一终端设备。
在第十九方面的一种可能实现方式中,由车辆继续播放目标音频流,包括:若目标类别为第一类别,则由车辆继续播放目标音频流。
第二十方面,本申请提供了一种地址的处理方法,可用于智能车辆领域中。方法应用于导航系统中,导航系统包括车辆、第一终端设备和第二终端设备,方法包括:第二终端设备在显示界面上显示目标地址;在第一终端设备与车辆处于连接状态的过程中,第二终端设备向车辆发送目标地址,其中,发送的目标地址用于提示将目标地址作为车辆进行导航时的目的地。
在第二十方面的一种可能实现方式中,第二终端设备向车辆发送目标地址之前,方法还包括:第二终端设备获取与第二终端设备对应的第一位置信息,第一位置信息用于指示第二终端设备位于车辆内部或车辆外部;在第二终端设备位于车辆内部的情况下,第二终端设备输出第二信息,第二信息用于提示用户输入目标操作;在第一终端设备与车辆处于连接状态的过程中,第二终端设备向车辆发送目标地址,包括:第二终端设备接收用户输入的目标操作;在第一终端设备与车辆处于连接状态的过程中,响应于接收到的目标操作,第二终端设备向车辆发送目标地址。
在第二十方面的一种可能实现方式中,显示目标地址的显示界面包括以下任一种或多种类型的应用程序的界面:导航类应用程序、即时通信类应用程序、生活服务类应用程序或者旅游出行类应用程序。
在第二十方面的一种可能实现方式中,在第二终端设备在显示界面上显示目标地址之后,方法还包括:第二终端设备接收用户输入的触发操作;第二终端设备获取与第二终端设备对应的第一位置信息,包括:响应于触发操作,第二终端设备获取与第二终端设备对应的第一位置信息。
第二十一方面,本申请提供了一种地址的处理方法,可用于智能车辆领域中。方法应用于导航系统,导航系统包括车辆、第二终端设备和第一终端设备,方法包括:在第一终端设备与车辆处于连接状态的过程中,车辆获取目标地址,目标地址由第二终端设备生成;车辆将目标地址作为车辆进行导航时的目的地。
在二十一方面的一种可能实现方式中,第二终端设备位于车辆内部。
在二十一方面的一种可能实现方式中,车辆将目标地址作为车辆进行导航时的目的地,包括:车辆在获取到目标地址时,正在以第一地址作为目的地进行导航;车辆将第一地址更改为目标地址,以目标地址为目的地继续进行导航。
第二十二方面,本申请提供了一种车辆,可以包括处理器,处理器和存储器耦合,存储器存储有程序指令,当存储器存储的程序指令被处理器执行时实现上述各个方面所述的 方法。
第二十三方面,本申请提供了一种终端设备,可以包括处理器,处理器和存储器耦合,存储器存储有程序指令,当存储器存储的程序指令被处理器执行时实现上述各个方面所述的方法。
第二十四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行上述各个方面所述的方法。
第二十五方面,本申请提供了一种计算机程序产品,该计算机程序产品包括程序代码,当该程序代码在计算机上运行时,使得计算机执行上述各个方面所述的方法。
第二十六方面,本申请提供了一种电路系统,所述电路系统包括处理电路,所述处理电路配置为执行上述各个方面所述的方法。
第二十七方面,本申请提供了一种芯片系统,该芯片系统包括处理器,用于实现上述方面中所涉及的功能,例如,发送或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存服务器或通信设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。
附图说明
图1a为本申请实施例提供的数据的处理系统的一种架构示意图;
图1b为本申请实施例提供的数据的处理系统的一种架构示意图;
图2为本申请实施例提供的车辆的一种结构示意图;
图3为本申请实施例提供的位置的获取方法的一种流程示意图;
图4为本申请实施例提供的位置的获取方法中至少三个音响的一种位置示意图;
图5为本申请实施例提供的位置的获取方法的一种原理示意图;
图6为本申请实施例提供的位置的获取方法的一种流程示意图;
图7为本申请实施例提供的位置的获取方法中的一种示意图;
图8a为本申请实施例提供的位置的获取方法的一种流程示意图;
图8b为本申请实施例提供的位置的获取方法中车辆外部位置的一种示意图;
图9为本申请实施例提供的位置的获取方法的一种流程示意图;
图10为本申请实施例提供的位置的获取方法中位于不同位置上的终端设备的控制权限的一种示意图;
图11为本申请实施例提供的位置的获取方法中位于不同位置上的终端设备的控制权限的一种示意图;
图12为本申请实施例提供的位置的获取方法中位于主驾驶位置的终端设备进行投屏的一种示意图;
图13为本申请实施例提供的位置的获取方法中位于主驾驶位置的终端设备进行投屏的一种示意图;
图14a为本申请实施例提供的位置的获取装置的一种结构示意图;
图14b为本申请实施例提供的位置的获取装置的另一种结构示意图;
图15为本申请实施例提供的位置的获取装置的另一种结构示意图;
图16为本申请实施例提供的位置的获取装置的另一种结构示意图;
图17为本申请实施例提供的位置的获取装置的另一种结构示意图;
图18为本申请实施例提供的位置的获取方法的一种流程示意图;
图19为本申请实施例提供的位置的获取方法中音响的一个示意图;
图20为本申请实施例提供的位置的获取方法中匹配度曲线的一个示意图;
图21为本申请实施例提供的位置的获取方法中匹配度曲线的两个示意图;
图22为本申请实施例提供的位置的获取方法的另一种流程示意图;
图23为本申请实施例提供的位置的获取方法的另一种流程示意图;
图24为本申请实施例提供的位置的获取方法的一个原理示意图;
图25为本申请实施例提供的位置的获取方法的一个应用场景图;
图26为本申请实施例提供的位置的获取装置的一种结构示意图;
图27为本申请实施例提供的位置的获取装置的另一种结构示意图;
图28为本申请实施例提供的位置的获取装置的另一种结构示意图;
图29为本申请实施例提供的位置的获取装置的另一种结构示意图;
图30为本申请实施例提供的位置的获取装置的另一种结构示意图;
图31为本申请实施例提供的位置的获取装置的另一种结构示意图;
图32为本申请实施例提供的音频流的处理方法的一种流程示意图;
图33为本申请实施例提供的音频流的处理方法中第一切换操作的接收界面的一种示意图;
图34为本申请实施例提供的音频流的处理方法中离车模式的一种示意图;
图35为本申请实施例提供的音频流的处理方法中离车模式的一种示意图;
图36为本申请实施例提供的音频流的处理方法中第一终端设备展示第一信息的两种示意图;
图37为本申请实施例提供的音频流的处理方法中第一信息的一种示意图;
图38a为本申请实施例提供的音频流的处理方法中与切换操作对应的一种示意图;
图38b为本申请实施例提供的音频流的处理方法中输出指示信息的一种示意图;
图39为本申请实施例提供的数据的处理方法的一种流程示意图;
图40为本申请实施例提供的地址的处理方法的一种流程示意图;
图41为本申请实施例提供的地址的处理方法中输出第二信息的三种示意图;
图42为本申请实施例提供的地址的处理方法中输出第二信息的另一种示意图;
图43为本申请实施例提供的地址的处理方法中输出提示信息的两种示意图;
图44为本申请实施例提供的地址的处理方法中输出提示信息的一种示意图;
图45为本申请实施例提供的地址的处理方法中输出通知信息的一种示意图;
图46为本申请实施例提供的地址的处理方法中输出提示信息的两种示意图;
图47为本申请实施例提供的数据的流转方法的一种流程示意图;
图48为本申请实施例提供的数据的流转方法的一种流程示意图;
图49为本申请实施例提供的数据的流转方法的另一种流程示意图;
图50为本申请实施例提供的音量的处理方法的一种流程示意图;
图51为本申请实施例提供的音频流的处理装置的一种结构示意图;
图52为本申请实施例提供的音频流的处理装置的一种结构示意图;
图53为本申请实施例提供的音频流的处理装置的一种结构示意图;
图54为本申请实施例提供的地址的处理装置的一种结构示意图;
图55为本申请实施例提供的地址的处理装置的一种结构示意图;
图56为本申请实施例提供的地址的处理装置的一种结构示意图;
图57为本申请实施例提供的车辆的一种结构示意图;
图58为本申请实施例提供的终端设备的一种结构示意图。
具体实施方式
本申请的说明书和权利要求书及上述附图中的术语“第一”、第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。
下面结合附图,对本申请的实施例进行描述。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本申请实施例可以应用于智能车辆领域中,具体的,在后续的一些实施例中,可以检测终端设备位于车辆的内部还是位于车辆的外部,在后续的另一些实施例中,可以检测终端设备位于车辆内部的具体位置;在后续的另一些实施例中,可以检测终端设备位于车辆外部的具体位置。所述终端设备指的是被用户携带或佩戴的终端设备,由此,终端设备相对于车辆的位置相当于用户相对于车辆的位置。
此外,在后续的一些实施例中,还可以在得知终端设备相对于车辆的位置信息后,提供了车辆与终端设备之间交互的一些应用场景。
为了便于理解本方案,本申请实施例中首先结合图1a对本申请实施例所采用的位置的获取系统的网络架构以及车辆的结构进行介绍,在本申请的一些实施例中,请先参阅图1a,图1a为本申请实施例提供的数据的处理系统的一种架构示意图。如图1a所示,数据的处理系统可以包括车辆100和终端设备200,车辆100和终端设备200之间建立有通信连接。
其中,车辆100可以为自动驾驶车辆或非自动驾驶车辆,在车辆100为自动驾驶车辆的情况下,自动驾驶车辆配置为完全或部分地自动驾驶模式,例如,车辆100可以在处于自动驾驶模式中的同时控制自身,并且可通过人为操作来确定车辆及其周边环境的当前状态,确定周边环境中的至少一个其他车辆的可能行为,并确定其他车辆执行可能行为的可能性相对应的置信水平,基于所确定的信息来控制车辆100。在车辆100处于自动驾驶模式中时,也可以将车辆100置为在没有和人交互的情况下操作。
终端设备200具体可以表现为手机、平板、笔记本电脑、智能穿戴设备或其他类型的终端设备等等,此处不做限定。
在本申请的另一些实施例中,请继续参阅图1b,图1b为本申请实施例提供的数据的处理系统的另一种架构示意图。如图1b所示,数据的处理系统可以包括车辆100、第一终端设备300和第二终端设备400,车辆100和第一终端设备300之间处于连接状态;车辆100与第二终端设备400之间可以建立有连接,也可以尚未建立连接。进一步可选的,第一终端设备300可以正在通过车辆100的中控屏进行投屏,第二终端设备400未通过车辆100的中控屏进行投屏。
需要说明的是,当车辆100和第一终端设备300之间处于连接状态时,第一终端设备300可以通过车辆100执行如下任一种或多种任务:播放音频流、播放视频、导航、视频通话、通话或其他任务等等。
其中,第一终端设备300和第二终端设备400均为终端设备,第一终端设备300的产品形态包括但不限于手机、智能穿戴设备、平板、笔记本电脑或其他类型的第一终端设备等等,此处不做限定。
第二终端设备400的产品形态和第一终端设备300的产品形态可以相同,也可以不同;也即第二终端设备400的产品形态包括但不限于手机、智能穿戴设备、平板、笔记本电脑或其他类型的终端设备等等,此处不做穷举。
在第一终端设备300与车辆100建立连接之后,第一终端设备300可以通过车辆100的中控屏进行投屏。当第一终端设备300通过车辆100的中控屏进行投屏的过程中,车辆100的中控屏上显示的内容可以不与第一终端设备300的屏幕内容完全相同,中控屏上显示的内容可以为车辆100已经配置的应用程序和终端设备中的多个应用程序。也即车辆100在没有和第一终端设备300连接时,就有自己的使用者界面(user interface,UI),车辆100在和第一终端设备300连接之后,可以为车辆100的UI界面上的应用程序的图标变多了,或者,车辆100的功能变多了。
可选地,第一终端设备300和车辆100连接后,还可以实现第一终端设备300和车辆100在硬件层面的互助。作为示例,例如第一终端设备300可以利用车辆100配置的全球定位系统GPS来提高第一终端设备300进行导航时的精度;作为另一示例,例如第一终端设备300可以利用车辆100上的摄像头进行视频通话等,此处不做穷举。
进一步地,请参阅图2,图2为本申请实施例提供的车辆的一种结构示意图,车辆100可包括各种子系统,例如行进系统102、传感器系统104、控制系统106、一个或多个外围设备108以及电源110、计算机系统112和用户接口116。可选地,车辆100还可以包括智能辅助设备160;进一步可选地,车辆100还可以包括更多或更少的子系统,并且每个子系统可包括多个部件。另外,车辆100的每个子系统和部件可以通过有线或者无线互连。
行进系统102可包括为车辆100提供动力运动的组件。在一个实施例中,行进系统102可包括引擎118、能量源119、传动装置120和车轮(也可以称为轮胎)121。
其中,引擎118可以是内燃引擎、电动机、空气压缩引擎或其他类型的引擎组合,例如,汽油发动机和电动机组成的混动引擎,内燃引擎和空气压缩引擎组成的混动引擎。引 擎118将能量源119转换成机械能量。能量源119的示例包括汽油、柴油、其他基于石油的燃料、丙烷、其他基于压缩气体的燃料、乙醇、太阳能电池板、电池和其他电力来源。能量源119也可以为车辆100的其他系统提供能量。传动装置120可以将来自引擎118的机械动力传送到车轮121。传动装置120可包括变速箱、差速器和驱动轴。在一个实施例中,传动装置120还可以包括其他器件,比如离合器。其中,驱动轴可包括可耦合到一个或多个车轮121的一个或多个轴。
传感器系统104可包括感测关于车辆100周边的环境的信息的若干个传感器。例如,传感器系统104可包括定位系统122(定位系统可以是全球定位系统GPS,也可以是北斗系统或者其他定位系统)、惯性测量单元(inertial measurement unit,IMU)124、雷达126、激光测距仪128以及相机130。传感器系统104还可包括被监视车辆100的内部系统的传感器(例如,车内空气质量监测器、燃油量表、机油温度表等)。来自这些传感器中的一个或多个的传感数据可用于检测对象及其相应特性(位置、形状、方向、速度等)。这种检测和识别是自主车辆100的安全操作的关键功能。
其中,定位系统122可用于估计车辆100的地理位置。IMU 124用于基于惯性加速度来感知车辆100的位置和朝向变化。在一个实施例中,IMU 124可以是加速度计和陀螺仪的组合。雷达126可利用无线电信号来感知车辆100的周边环境内的物体,具体可以表现为毫米波雷达或激光雷达。在一些实施例中,除了感知物体以外,雷达126还可用于感知物体的速度和/或前进方向。激光测距仪128可利用激光来感知车辆100所位于的环境中的物体。在一些实施例中,激光测距仪128可包括一个或多个激光源、激光扫描器以及一个或多个检测器,以及其他系统组件。相机130可用于捕捉车辆100的周边环境的多个图像。相机130可以是静态相机或视频相机。
控制系统106为控制车辆100及其组件的操作系统。控制系统106可包括各种部件,其中包括转向系统132、油门134、制动单元136、计算机视觉系统140、线路控制系统142以及障碍避免系统144。
其中,转向系统132用于调整车辆100的前进方向。例如在一个实施例中转向系统132可以为方向盘系统。油门134用于控制引擎118的操作速度并进而控制车辆100的速度。制动单元136用于控制车辆100减速。制动单元136可使用摩擦力来减慢车轮121。在其他实施例中,制动单元136可将车轮121的动能转换为电流。制动单元136也可采取其他形式来减慢车轮121转速从而控制车辆100的速度。计算机视觉系统140可以操作来处理和分析由相机130捕捉的图像以便识别车辆100周边环境中的物体和/或特征。所述物体和/或特征可包括交通信号、道路边界和障碍体。计算机视觉系统140可使用物体识别算法、运动中恢复结构(Structure from Motion,SFM)算法、视频跟踪和其他计算机视觉技术。在一些实施例中,计算机视觉系统140可以用于为环境绘制地图、跟踪物体、估计物体的速度等等。线路控制系统142用于确定车辆100的行驶路线以及行驶速度。在一些实施例中,线路控制系统142可以包括横向规划模块1421和纵向规划模块1422,横向规划模块1421和纵向规划模块1422分别用于结合来自障碍避免系统144、GPS 122和一个或多个预定地图的数据为车辆100确定行驶路线和行驶速度。障碍避免系统144用于识别、评估和 避免或者以其他方式越过车辆100的环境中的障碍体,前述障碍体具体可以表现为实际障碍体和可能与车辆100发生碰撞的虚拟移动体。在一个实例中,控制系统106可以增加或替换地包括除了所示出和描述的那些以外的组件。或者也可以减少一部分上述示出的组件。
车辆100通过外围设备108与外部传感器、其他车辆、其他计算机系统或用户之间进行交互。外围设备108可包括无线通信系统146、麦克风148、音响150和/或车载电脑152。在一些实施例中,外围设备108为车辆100的用户提供与用户接口116交互的手段。例如,车载电脑152可向车辆100的用户提供信息。用户接口116还可操作车载电脑152来接收用户的输入。车载电脑152可以通过触摸屏进行操作。
在其他情况中,外围设备108可提供用于车辆100与位于车内的其它设备通信的手段。例如,麦克风148可从车辆100的用户接收音频(例如,语音命令或其他音频输入)。类似地,音响150可向车辆100的用户输出音频。无线通信系统146可以直接地或者经由通信网络来与一个或多个设备无线通信。例如,无线通信系统146可使用3G蜂窝通信、4G蜂窝通信、5G蜂窝通信或者无线局域网(wireless localarea network,WLAN)通信等等。在一些实施例中,无线通信系统146可利用红外链路、蓝牙或ZigBee与设备直接通信。其他无线协议,例如各种车辆通信系统,例如,无线通信系统146可包括一个或多个专用短程通信(dedicated short range communications,DSRC)设备,这些设备可包括车辆和/或路边台站之间的公共和/或私有数据通信。
电源110可向车辆100的各种组件提供电力。在一个实施例中,电源110可以为可再充电锂离子或铅酸电池。这种电池的一个或多个电池组可被配置为电源为车辆100的各种组件提供电力。在一些实施例中,电源110和能量源119可一起实现,例如一些全电动车中那样。
车辆100的部分或所有功能受计算机系统112控制。计算机系统112可包括至少一个处理器113,处理器113执行存储在例如存储器114这样的非暂态计算机可读介质中的指令115。计算机系统112还可以是采用分布式方式控制车辆100的个体组件或子系统的多个计算设备。处理器113可以是任何常规的处理器,诸如商业可获得的中央处理器(central processing unit,CPU)。可选地,处理器113可以是诸如专用集成电路(application specific integrated circuit,ASIC)或其它基于硬件的处理器的专用设备。尽管图2功能性地图示了处理器、存储器、和在相同块中的计算机系统112的其它部件,但是本领域的普通技术人员应该理解该处理器、或存储器实际上可以包括不存储在相同的物理外壳内的多个处理器、或存储器。例如,存储器114可以是硬盘驱动器或位于不同于计算机系统112的外壳内的其它存储介质。因此,对处理器113或存储器114的引用将被理解为包括可以并行操作或者可以不并行操作的处理器或存储器的集合的引用。不同于使用单一的处理器来执行此处所描述的步骤,诸如转向组件和减速组件的一些组件每个都可以具有其自己的处理器,所述处理器只执行与特定于组件的功能相关的计算。
在此处所描述的各个方面中,处理器113可以位于远离车辆100并且与车辆100进行无线通信。在其它方面中,此处所描述的过程中的一些在布置于车辆100内的处理器113上执行而其它则由远程处理器113执行,包括采取执行单一操纵的必要步骤。
在一些实施例中,存储器114可包含指令115(例如,程序逻辑),指令115可被处理器113执行来执行车辆100的各种功能,包括以上描述的那些功能。存储器114也可包含额外的指令,包括向行进系统102、传感器系统104、控制系统106和外围设备108中的一个或多个发送数据、从其接收数据、与其交互和/或对其进行控制的指令。除了指令115以外,存储器114还可存储数据,例如道路地图、路线信息,车辆的位置、方向、速度以及其它这样的车辆数据,以及其他信息。这种信息可在车辆100在自主、半自主和/或手动模式中操作期间被车辆100和计算机系统112使用。用户接口116,用于向车辆100的用户提供信息或从其接收信息。可选地,用户接口116可包括在外围设备108的集合内的一个或多个输入/输出设备,例如无线通信系统146、车载电脑152、麦克风148和音响150。
计算机系统112可基于从各种子系统(例如,行进系统102、传感器系统104和控制系统106)以及从用户接口116接收的输入来控制车辆100的功能。例如,计算机系统112可利用来自控制系统106的输入以便控制转向系统132来避免由传感器系统104和障碍避免系统144检测到的障碍体。在一些实施例中,计算机系统112可操作来对车辆100及其子系统的许多方面提供控制。
可选地,上述这些组件中的一个或多个可与车辆100分开安装或关联。例如,存储器114可以部分或完全地与车辆100分开存在。上述组件可以按有线和/或无线方式来通信地耦合在一起。
可选地,上述组件只是一个示例,实际应用中,上述各个模块中的组件有可能根据实际需要增添或者删除,图2不应理解为对本申请实施例的限制。在道路行进的自动驾驶车辆,如上面的车辆100,可以识别其周围环境内的物体以确定对当前速度的调整。所述物体可以是其它车辆、交通控制设备、或者其它类型的物体。在一些示例中,可以独立地考虑每个识别的物体,并且基于物体的各自的特性,诸如它的当前速度、加速度、与车辆的间距等,可以用来确定自动驾驶车辆所要调整的速度。
具体的,在如下的一些实施例中(如实施例二中),可以测量终端设备位于车辆100的内部还是外部;在如下的另一些实施例中(如实施例一和实施例二中),还可以测量终端设备位于车辆100外部的什么位置上;在如下的另一些实施例中(如实施例一中),还可以测量终端设备位于车辆100的内部的什么位置上。在如下的另一些实施例中(如实施例一、实施例二和实施例三中),还提供了在获得到终端设备的位置信息后,车辆和终端设备之间交互的多种应用场景。
需要说明的是,本申请各实施例提供的基于终端设备相对于车辆的位置信息的具体应用场景中,如何获取终端设备的位置信息的方法,可以采用本申请各实施例中提供的任一种方法,也可以采用现有技术中的方法,在此不做限定。其中,终端设备相对于车辆的位置信息,指的是:终端设备位于车辆的内部还是外部(包括判断终端设备位于车辆内部、或外部、或从内部到外部、或从外部到内部等),或者,终端设备位于车辆外部的具体位置,或者终端设备位于车辆内部的具体位置等。
其中,上述终端设备可以为终端设备200,也可以为第一终端设备300,也可以为第二终端设备400,需要说明的是,该终端设备指的是被用户携带或佩戴的终端设备,由此, 终端设备相对于车辆的位置相当于用户相对于车辆的位置。
在一些实现方式中,上述测量方法以计算机程序的产品形式预先装载至存储器114中,车辆100中的处理器113可以执行存储器114中的指令,以利用音响150发出音频信号,从而得到终端200的位置信息。
在另一些实现方式中,上述测量方法的执行主体可以为车辆辅助设备160,车辆辅助设备160以独立设备的形式装载于车辆100中,车辆辅助设备160具体可以表现为车载显示屏、行车记录仪、车载后视镜或其他产品形态等等,此处不做限定。
上述车辆100可以为轿车、卡车、摩托车、公共汽车、船、飞机、直升飞机、割草机、娱乐车、游乐场车辆、施工设备、电车、高尔夫球车、火车、和手推车等,本申请实施例不做特别的限定。
结合上述描述,本申请实施例中,作为示例,例如在一种应用场景中,至少一个用户从车辆外部较远距离走进车内,并开始驾驶车辆的过程中,为了能够控制与用户位置对应的车辆组件执行预设操作,则可以检测用户在车辆外部的具体位置;作为示例,例如当检测到用户位于车辆外部的左前方车门处时,可以触发解锁左前方车门;作为另一示例,例如当检测到用户位于车辆后备箱的位置上时,可以触发打开车辆的后备箱等,此处不做穷举。
用户走到车辆附近后,可能会直接进入车辆内部,也有可能在车辆外部停留一会儿之后再进入车辆内部。当用户位于车辆内部和用户位于车辆外部这两种情况时,车辆和/或终端设备可以向用户提供不同的服务,由此本申请实施例还提供了检测用户位于车辆内部还是车辆外部的方法。据此,能够识别到用户从车辆外部进入到车辆内部。
当用户位于车辆内部后,为了能够给不同位置的用户提供更为精准的服务,本申请实施例还提供检测用户在车辆内部的具体位置的方法。需要说明的是,由于用户一般都携带有终端设备,本申请实施例中通过检测终端设备的位置来表示用户的位置。
当用户从车辆内部到车辆外部时,车辆和/或终端设备能够根据用户的位置变化提供相应的服务。通过本申请实施例提供的方法可以检测用户从车辆内部达到车辆外部。并且,还能再次根据本申请实施例提供的方法检测用户在车外的具体位置,进一步提供相应的服务。
此外,在通过本申请实施例中的方案得知用户的位置信息后,还可以根据用户的位置信息,向用户提供对应的服务;例如当用户位于车辆内部时,可以提供什么服务;再例如当用户位于车辆内部的具体某个位置时,可以提供什么服务;再例如当用户由车辆内部移动至车辆外部时可以提供什么服务;再例如当用户由车辆外部移动至车辆内部时可以提供什么服务等,均将在后续实施例一、实施例二和实施例三中进行描述。
请先参阅如下实施例一,本申请实施例中的实施例一提供了一种位置的获取方法,车辆上配置有至少两个音响,车辆中的处理器(或者车辆中的车辆辅助设备)通过音响发出超声信号的方式来生成终端设备所对应的目标位置信息,目标位置信息可以用于指示终端设备具体位于车辆内部的什么位置上;或者,也可以用于指示终端设备具体位于车辆外部的什么位置上。并且,该实施例一还提供了一些应用场景,基于终端设备的具体位置,执 行不同的操作,以向用户提供相应的服务。
实施例一
本申请实施例中,具体的,在一种实现方式中,可以在不获取终端设备和音响之间距离的情况下,生成该目标位置信息;在另一种实现方式中,会基于终端设备和各个音响之间的距离生成该目标位置信息。下面将对以下四种情况分别进行介绍:在不获取终端设备和音响之间距离的情况下,生成终端设备位于车辆内部的位置;基于终端设备和各个音响之间的距离生成终端设备位于车辆内部的位置;在不获取终端设备和音响之间距离的情况下,生成终端设备位于车辆外部的位置;以及基于终端设备和各个音响之间的距离生成终端设备位于车辆外部的位置。
一、在不获取终端设备和音响之间距离的情况下,生成终端设备位于车辆内部的位置
本申请实施例中,通过车辆中的至少两个音响分别发送音频信号,可以根据终端设备接收到每个音频信号的时间,确定终端设备相对于车辆的位置,在后续实施例一中,仅以音频信号具体表现为超声信号为例进行说明,需要说明的是,本申请实施例中还可以采用非超声频段的音频信号,例如人耳能够听到的音频信号等,本申请实施例一中不再进行一一赘述。其中,超声信号所在频段可以为17KHZ-48KHZ,可选地,超声信号所在频段可以为17KHZ-22KHZ具体目标音频信号的频率为多少可以结合实际应用产品确定,此处不做限定。作为示例,例如超声信号可以为线性调频(Chirp)信号、ZC(zadoff–chu)序列信号或其他类型的音频信号等,此处不做穷举。具体音频信号的说明还可以参见实施例二中的相关描述。
具体的,请参阅图3,图3为本申请实施例提供的位置的获取方法的一种流程示意图,本申请实施例提供的位置的获取方法可以包括:
301、车辆和终端设备启动车内位置感知操作。
本申请实施例中,在一些应用场景中,在车辆的运行过程中,当车辆确定需要获知终端设备在车辆内部的位置时,会启动车内位置感知操作,并向终端设备发送第一指示信息,第一指示信息用于指示终端设备启动车内位置感知操作。需要说明的是,实施例一中由车辆执行的步骤具体可以为由车辆中的处理器执行,也可以为由车辆中的车辆辅助设备执行,具体结合实际产品形态决定,后续不再进行说明。
作为示例,例如车辆需要为车内的至少一个终端设备分别分配对车辆的控制权限,但位于车内不同位置上的终端设备所对应的控制权限不同,则需要获取车内的每个终端设备在车内的位置,则车辆可以触发启动车内位置感知操作。
作为另一示例,例如车辆需要与位于副驾驶位上的终端设备连接,并将位于副驾驶位置上的终端设备的屏幕投影至中控屏上,则车辆需要获取车内的每个终端设备在车内的位置,以从至少一个终端设备中确定位于副驾驶位置上的终端设备,则车辆可以触发启动车内位置感知操作等,需要说明的是,车辆还可以在其他场景下触发启动车内位置感知操作,此处举例仅为方便理解本方案,不用于限定本方案。
在另一些应用场景中,在终端设备的运行过程中,当终端设备确定需要获知终端设备在车辆内部的位置时,会启动车内位置感知操作,并向车辆发送第二指示信息,第二指示 信息用于指示车辆启动车内位置感知操作。
作为示例,例如当位于车内的某一终端设备想要开启投屏操作时,由于车辆上可以配置有多个显示屏,则该终端设备可以启动车内位置感知操作,以从车内的多个显示屏中获取与该终端设备距离最近的一个显示屏和该终端设备自动连接;或者,终端设备上可以展示显示屏列表,显示屏列表中展示有所有可以连接的显示屏,与该终端设备距离最近的一个显示屏被置顶。
作为另一示例,例如终端设备是无线耳机,该无线耳机想要与车内最近的屏幕连接,以通过该无线耳机播放前述屏幕输出的声音,则该无线耳机可以启动车内位置感知操作,以从车内的多个显示屏中获取与该无线耳机距离最近的一个显示屏等,应理解,终端设备还可以在其他场景下触发启动车内位置感知操作,此处不做一一进行列举。
具体的,在一些应用场景中,车辆可以通过广播的方式向车内的终端设备发送第一指示信息,终端设备在接收到第一指示信息之后,触发终端设备开启车内位置感知操作,终端设备向车辆发送第一反馈消息,从而完成了车辆和某个确定的终端设备之间的通信连接,该第一反馈消息用于告知车辆该终端设备已成功开启车内位置感知操作。
上述广播的方式可以为通过蓝牙信号进行广播、通过无线宽带(wireless fidelity,WIFI)热点的形式进行广播或其他方式进行广播等,此处不做穷举。
车辆在确定终端设备已经开启车内位置感知操作之后,可以向车辆内的至少一个终端设备发送第三指示信息,第三指示信息用于指示终端设备开始准备接收超声信号,之后开始通过至少两个音响分别发送超声信号。但需要说明的是,若车辆内部同时存在多个终端设备,由于本方案中是由终端设备生成每个终端设备所对应的目标位置信息,则车辆可以同时向车内的多个终端设备发送第三指示信息,也可以逐个获取终端设备在车内的位置。
在另一些应用场景中,车内的终端设备可以通过广播的方式向车辆发送第二指示信息,车辆在接收到第二指示信息之后,触发车辆开启车内位置感知操作,终端设备向车辆发送第二反馈消息,该第二反馈消息用于告知终端设备该车辆已成功开启车内位置感知操作,从而终端设备可以准备开始接收超声信号。
进一步地,若车辆接收到车内的多个终端设备发送的第二指示信息,则车辆可以同时向车辆内的多个终端设备发送第二反馈消息,以使多个终端设备同时开始测量自身在车辆内部的位置;车辆也可以向车辆内的多个终端设备逐个发送第二反馈消息,以使多个终端设备开始逐个测量自身在车辆内部的位置。
本实现方式中,提供了触发车辆开始发送超声信号,以及终端设备开始接收超声信号的具体实现方式,提高了本方案的完整性;且无论是车辆想要获取终端设备的目标位置信息,还是终端设备想要获取终端设备的目标位置信息,都能够触发超声信号的发送和接收操作,扩展了本方案的应用场景。
302、车辆通过第一音响向终端设备发送第一超声信号。
本申请实施例中,车辆中配置有至少两个音响,该至少两个音响包括第一音响和第二音响,第一音响和第二音响配置于车辆的不同的两侧。进一步地,若第一音响和第二音响分别配置于车辆的前侧和后侧,则一个目标位置信息可以用于指示一个终端设备在车辆内 部的前排位置还是在车辆内部的后排位置;或者,若第一音响和第二音响可以分别配置于车辆的左侧和右侧,则一个目标位置信息可以用于指示一个终端设备在车辆内部的左侧位置还是在车辆内部的右侧位置。
可选地,车辆内部配置的至少两个音响可以包括至少三个音响,至少三个音响可以包括第一音响、第二音响和第三音响,该至少三个音响不位于一条直线上,则一个目标位置信息可以用于指示一个终端设备在车辆的内部的一个确定的位置。作为示例,例如车辆中有5个车内位置,该5个位置分别为主驾驶位置、副驾驶位置、后排左侧位置、后排中间位置和后排右侧位置,则一个目标位置信息可以用于指示前述5个车内位置中的一个明确的车内位置,应理解,前述举例仅为方便理解本方案,不用于限定本方案。
为更直观地理解本方案,请参阅图4,图4为本申请实施例提供的位置的获取方法中至少三个音响的一种位置示意图,图4中以车辆通过三个音响发送超声信号,且车辆为小轿车为例,图4包括(a)、(b)和(c)三个子示意图,如图4的(a)子示意图所示,该三个音响可以分别位于车辆内部的左前方位置、右前方位置和左后方位置;如图4的(b)子示意图所示,该三个音响可以分别位于车辆内部的左前方位置、右前方位置和后排中间;如图4的(c)子示意图所示,该三个音响可以分别位于车辆内部的左前方位置、右前方位置和右后方位置等,应理解,图4中的示例仅为方便理解音响的位置,车辆也可以通过其他位置的音响来发出超声信号等,此处不做穷举。如图4和图5所示,本申请实施例根据车辆的俯视图来描述各个音响的位置,如左前方位置、右前方位置、左后方位置和右后方位置。
本申请实施例中,利用车辆内部的至少三个音响来确定终端设备在车辆内部的位置,且至少三个音响不在同一条直线上,能够得到终端设备在车辆内部的精确位置,有利于后续为终端设备提供更为精细化的管理。
进一步可选地,车辆内部配置的至少三个音响包括四个音响,该四个音响包括第一音响、第二音响、第三音响和第四音响,该四个音响分别位于所述车辆的左前方位置、右前方位置、左后方位置和右后方位置。本申请实施例中,一般车辆自带的音响就分别位于左前方位置、右前方位置、左后方位置和右后方位置,不仅不需要在车辆上增加额外的元器件,且由于所采用的音响数量越多,得到的目标位置信息的错误率越低,充分利用车辆中已有的四个音响后,有利于提高得到的目标位置信息的准确度。
本申请实施例中,车辆可以通过第一音响采用广播的方式向终端设备发送第一超声信号,对应的,车辆内部的一个确定的终端设备(为方便描述,后续称为“目标终端设备”)接收第一音响发送的第一超声信号,目标终端设备还会获取第一超声信号的接收时间。
其中,第一超声信号所在频段可以为17KHZ-48KHZ,可选地,第一超声信号所在频段可以为17KHZ-23KHZ,作为示例,例如第一超声信号的频率可以为23KHZ左右,具体第一超声信号的频率为多少可以结合实际应用产品确定,此处不做限定。
303、车辆通过第二音响向终端设备发送第二超声信号。
本申请实施例中,车辆可以通过第二音响采用广播的方式向终端设备发送第二超声信号,对应的,目标终端设备接收第二音响发送的第二超声信号,目标终端设备还会获取第 二超声信号的接收时间,第二音响和第一音响为两个不同的音响。
具体的,在一种实现方式中,若同时执行步骤302和步骤303,则第一超声信号和第二超声信号为不同的超声信号,两个不同的超声信号可以为如下任一种或多种不同:频率不同、信号调制方式不同、波形不同、副值不同或其他类型的不同等。
在另一种实现方式中,若先执行步骤302,在预设时间间隔后再执行步骤303,则第一超声信号和第二超声信号可以为相同的超声信号,也可以为不同的超声信号,作为示例,例如预设时间间隔可以为0.05秒、0.1秒、0.15秒、0.2秒或其他时长等,具体取值可以结合实际应用产品确定,此处不做限定。
304、车辆通过第三音响向终端设备发送第三超声信号。
本申请的一些实施例中,若车辆利用至少三个音响来获取终端设备在车内的具体位置,则车辆还可以通过第三音响采用广播的方式向终端设备发送第三超声信号,对应的,目标终端设备接收第三音响发送的第三超声信号,目标终端设备还会获取第三超声信号的接收时间,第三音响、第二音响和第一音响均为不同的音响。
具体的,在一种实现方式中,若同时执行步骤302、步骤303和步骤304,则第一超声信号、第二超声信号和第三超声信号均为不同的超声信号。
在另一种实现方式中,若先执行部步骤302,在预设时间间隔后再执行步骤303,在预设时间间隔后再执行步骤304,则第一超声信号、第二超声信号和第三超声信号可以为相同的超声信号,也可以为不同的超声信号。
可选地,若车辆利用四个音响来获取终端设备在车内的具体位置,则车辆还可以通过第四音响采用广播的方式向终端设备发送第四超声信号,对应的,目标终端设备接收第四音响发送的第四超声信号,目标终端设备还会获取第四超声信号的接收时间,第四音响、第二音响和第一音响均为不同的音响。
具体的,在一种实现方式中,若车辆同时通过第一音响、第二音响、第三音响和第四音响向终端设备发送超声信号,则第一超声信号、第二超声信号、第三超声信号和第四超声信号均为不同的超声信号。
在另一种实现方式中,若逐个通过第一音响、第二音响、第三音响和第四音响向终端设备发送超声信号,两个相邻的超声信号的发送时间之间的时间间隔是预设时间间隔,则第一超声信号、第二超声信号、第三超声信号和第四超声信号可以为相同的超声信号,也可以为不同的超声信号。
305、终端设备根据第一超声信号的接收时间和第二超声信号的接收时间,确定目标位置信息,目标位置信息用于指示终端设备位于车辆内部的位置。
本申请实施例中,终端设备可以根据第一超声信号的接收时间和第二超声信号的接收时间,确定目标位置信息,目标位置信息用于指示终端设备位于车辆内部的位置。
进一步地,由于第一超声信号的接收时间和第二超声信号的接收时间能够反映出终端设备与第一音响和第二音响之间的距离的大小关系,而车辆中的多个音响的位置是固定的,当终端设备相对于车辆的位置不同时,终端设备与各个音响之间的距离关系也会不同,因此能够确定终端设备的目标位置信息。
可选地,若车辆通过至少三个音响发送超声信号,则终端设备可以根据第一超声信号的接收时间、第二超声信号的接收时间和第三超声信号的接收时间,确定目标位置信息。
进一步可选地,若车辆通过四个音响发送超声信号,则终端设备可以根据第一超声信号的接收时间、第二超声信号的接收时间、第三超声信号的接收时间和第四超声信号的接收时间,确定目标位置信息。
具体的,在一种实现方式中,车辆同时通过至少两个音响发送超声信号,也即同时执行步骤302、步骤303和步骤304,则步骤305可以包括:目标终端设备上可以配置有不同类型的超声信号和不同位置上的音响之间的一一对应关系,也即每个位置上的音响可以固定的发一种类型的超声信号,从而终端设备可以预先得知哪种类型的超声信号是由哪个位置上的音响发出的。目标终端设备根据至少两个超声信号中不同的超声信号的接收时间,确定不同的超声信号到达终端设备的先后顺序。
由于车辆是同时通过多个音响发送超声信号的,则某个位置的音响发送的超声信号到达目标终端设备的时间越晚,证明该音响与目标终端设备之间的距离越长,也即各个超声信号到达终端设备的先后顺序就代表了目标终端设备与每个位置上的音响之间的距离的大小。车辆中的多个音响的位置是固定的,不同的车内位置与各个音响之间的距离关系不同,因此终端设备可以根据不同的超声信号到达终端设备的先后顺序,确定目标终端设备在车辆内部的位置(也即确定目标终端设备的目标位置信息)。
更具体的,在一种情况中,若车辆通过分别位于左前方位置、右前方位置、左后方位置和右后方位置的四个音响向终端设备发送超声信号,则目标终端设备可以分别获取到第一超声信号的接收时间、第二超声信号的接收时间、第三超声信号的接收时间和第四超声信号的接收时间,确定第一超声信号、第二超声信号、第三超声信号和第四超声信号到达目标终端设备的先后顺序,确定目标终端设备的目标位置信息;其中,车辆内部存在N个位置,目标位置信息用于指示目标终端设备位于该N个位置中的目标位置上,N为大于1的整数。
进一步地,此处以车辆内部包括主驾驶、副驾驶、后排左侧、后排右侧和后排中间这5个车内位置为例,对基于各个超声信号到达目标终端设备的先后顺序,确定目标终端设备的目标位置信息的原理进行展示。若位于左前方位置的音响发出的超声信号先到达目标终端设备,位于右前方位置和左后方位置的音响发出的超声信号次之,位于右后方位置的音响发出的超声信号最晚到达目标终端设备,则确定目标终端设备位于车内的主驾驶位置上。
若位于右前方位置的音响发出的超声信号先到达目标终端设备,位于左前方位置和右后方位置的音响发出的超声信号次之,位于左后方位置的音响发出的超声信号最晚到达目标终端设备,则确定目标终端设备位于车内的副驾驶位置上。
若位于左后方位置的音响发出的超声信号先到达目标终端设备,位于左前方位置和右后方位置的音响发出的超声信号次之,位于右前方位置的音响发出的超声信号最晚到达目标终端设备,则确定目标终端设备位于车内的后排左侧位置上。
若位于右后方位置的音响发出的超声信号先到达目标终端设备,位于右前方位置和左 后方位置的音响发出的超声信号次之,位于左前方位置的音响发出的超声信号最晚到达目标终端设备,则确定目标终端设备位于车内的后排右侧位置上。
若位于左前方位置和右前方位置的音响发出的超声信号基本同时到达目标终端设备,位于左后方位置和右后方位置的音响发出的超声信号基本同时到达目标终端设备,且位于左后方位置和右后方位置的音响发出的超声信号早于位于左前方位置和右前方位置的音响发出的超声信号到达目标终端设备,则确定目标终端设备位于车内的后排中间位置。
为了对本申请实施例有更直观地理解,请参阅图5,图5为本申请实施例提供的位置的获取方法的一种原理示意图。如图5所示,音响1与终端设备1之间的距离最近,音响2和音响3与终端设备1之间的距离次之,音响4与终端设备1之间的距离最远;则若终端设备1发现音响1发出的超声信号先到达,音响2和音响3发出的超声信号次之,音响4发出的超声信号最后到达,则终端设备1可以确定自己位于主驾驶位置上。
音响1和音响2与终端设备2之间的距离相似,音响3和音响4与终端设备2之间的距离相似,且音响1和音响2与终端设备2之间的距离大于音响3和音响4与终端设备2之间的距离,则若终端设备2发现音响3和音响4发出的超声信号基本同时到达,音响1和音响2发出的超声信号基本同时到达,且音响3和音响4发出的超声信号早于音响1和音响2发出的超声信号到达,则终端设备2可以确定自己位于后排中间位置上,应理解,图5中的示例仅为更直观地理解本方案,不用于限定本方案。
在另一种情况中,车辆可以通过两个音响来确定终端设备位于车辆内部的左侧位置或者右侧位置。设置两个音响分别位于车辆的左侧和右侧,使得左侧的音响与左侧位置的距离小于左侧的音响与右侧位置的距离,并且使得右侧的音响与右侧位置的距离小于右侧的音响与左侧位置的距离。车辆通过这两个音响向终端设备发送超声信号,能够通过目标终端设备接收到的超声信号确定目标终端设备位于车辆内部的左侧位置或右侧位置。
进一步地,若位于车辆左侧的音响发出的超声信号先到达目标终端设备,位于车辆右侧的音响发出的超声信号后到达目标终端设备,则目标终端设备位于车辆的左侧位置。若位于车辆右侧的音响发出的超声信号先到达目标终端设备,位于车辆左侧的音响发出的超声信号后到达目标终端设备,则目标终端设备位于车辆的右侧位置。
在另一种情况中,车辆可以通过两个音响来确定终端设备位于车辆内部的前排位置(主驾驶位置和副驾驶位置)或者后排位置(后排座位)。设置两个音响分别位于车辆的前侧和后侧,使得前侧的音响与前排位置的距离小于前侧的音响与后排位置的距离,并且使得后侧的音响与后排位置的距离小于后侧的音响与前排位置的距离。根据目标终端设备接收到的超声信号能够确定目标终端设备位于车辆内部的前排位置或后排位置。
进一步地,若位于车辆前侧的音响发出的超声信号先到达目标终端设备,位于车辆后侧的音响发出的超声信号后到达目标终端设备,则目标终端设备位于车辆的前排位置。若位于车辆后侧的音响发出的超声信号先到达目标终端设备,位于车辆前侧的音响发出的超声信号后到达目标终端设备,则目标终端设备位于车辆的后排位置。
需要说明的是,本申请实施例中不再对当车内通过其他数量的音响或音响位于其他位置上时,以确定终端设备的车内位置的具体实现方案一一进行详细描述,可以基于同一个 原理进行推理理解,前述原理为在发送超声信号的位置固定之后,不同的车内位置上的终端设备与不同位置上的音响的距离的远近关系不同,且由于不同的超声信号到达目标终端设备的先后顺序能够代表不同位置上的音响与终端设备之间的距离的远近关系,则目标终端设备可以根据不同的超声信号到达目标终端设备的先后顺序来确定目标终端设备的车内位置。
本申请实施例,由于终端设备与某个音响之间的距离越远,则该音响发出的超声信号到达终端设备的时间越晚,若车辆同时通过不同位置上的音响向终端设备发送不同的超声信号,不同的超声信号到达终端设备的先后顺序可以很好的反应终端设备与各个音响之间的距离关系,进而可以很直观地推导出终端设备在车辆内部的具体位置,提供了一种简单的目标位置信息的获取方案,易于实现。
在另一种实现方式中,车辆逐个通过至少两个音响中不同的音响向终端设备发送超声信号,两个相邻的超声信号的发送时间之间的时间间隔是预设时间间隔,车辆通过不同音响发出的超声信号可以相同,也可以不同。则步骤305可以包括:目标终端设备根据第一超声信号的接收时间、第二超声信号的接收时间和预设时间间隔,确定目标终端设备在车辆内部的位置(也即确定目标终端设备的目标位置信息)。
由于车辆是按照预设时间间隔,逐个通过不同的音响发送超声信号的,则目标终端设备可以根据每个超声信号的实际接收顺序,确定接收到的每个超声信号是来源于哪个位置上的音响,并且可以根据每个超声信号的实际接收时间和预设时间间隔,得知目标终端设备与每个位置上的音响之间的距离大小的实际排序,进而可以确定目标终端设备在车辆内部的位置,该原理可参阅上一实现方式中的描述。
更具体的,在一种情况中,若车辆通过分别位于左前方位置、右前方位置、左后方位置和右后方位置的四个音响向终端设备发送超声信号,则目标终端设备可以分别获取到第一个到达的超声信号(也即由第一音响发送的第一超声信号)的第一接收时间、第二个到达的超声信号(也即由第二音响发送的第二超声信号)的接收时间、第三个到达的超声信号(也即由第三音响发送的第三超声信号)的接收时间和第四个到达的超声信号(也即由第四音响发送的第四超声信号)的接收时间;将第二个到达的超声信号的接收时间减去预设时间间隔,得到与第二个到达的超声信号对应的第二接收时间;将第三个到达的超声信号的接收时间减去2*预设时间间隔,得到与第三个到达的超声信号对应的第三接收时间;将第四个到达的超声信号的接收时间减去3*预设时间间隔,得到与第四个到达的超声信号对应的第四接收时间。
目标终端设备根据第一接收时间、第二接收时间、第三接收时间和第四接收时间,确定目标终端设备的目标位置信息。进一步地,由于车辆在发出第一超声信号,预设时间间隔后会发出第二超声信号,再在预设时间间隔后会发出第三超声信号,再在预设时间间隔后会发出第四超声信号,因此,第一接收时间、第二接收时间、第三接收时间和第四接收时间就能够代表各个音响与目标终端设备之间的距离。其中,第一接收时间越早,则代表第一音响与目标终端设备之间的距离越近,第一接收时间越晚,则代表第一音响与目标终端设备之间的距离越远,第二接收时间、第三接收时间和第四接收时间所代表的含义和第 一接收时间所代表的含义相同。在至少两个音响的位置固定以后,不同的车内位置与各个音响之间的距离关系不同,因此目标终端设备可以根据第一接收时间、第二接收时间、第三接收时间和第四接收时间,确定目标终端设备的目标位置信息。
在另一种情况中,若车辆通过两个音响向终端设备发送超声信号。则目标终端设备可以分别获取到第一个到达的超声信号(也即由第一音响发送的第一超声信号)的第一接收时间、第二个到达的超声信号(也即由第二音响发送的第二超声信号)的接收时间,将第二个到达的超声信号的接收时间减去预设时间间隔,得到与第二个到达的超声信号对应的第二接收时间。若第一接收时间早于第二接收时间,则确定目标终端设备位于第一音响所在的一侧;若第一接收时间晚于第二接收时间,则确定目标终端设备位于第二音响所在的一侧。
其中,若第一音响和第二音响分别被设置于车辆的左侧和右侧,使得第一音响和第二音响中位于左侧的音响与左侧位置的距离小于左侧的音响与右侧位置的距离,并且使得第一音响和第二音响中位于右侧的音响与右侧位置的距离小于右侧的音响与左侧位置的距离。目标终端设备的目标位置信息用于指示目标终端设备位于车辆内部的左侧位置或右侧位置。
若第一音响和第二音响分别被设置于车辆的前侧和后侧,使得第一音响和第二音响中位于前侧的音响与前排位置的距离小于前侧的音响与后排位置的距离,并且使得第一音响和第二音响中位于后侧的音响与后排位置的距离小于后侧的音响与前排位置的距离。目标终端设备的目标位置信息用于指示目标终端设备位于车辆内部的前排位置或后排位置。
需要说明的是,本申请实施例中不再对当车内通过其他数量的音响或音响位于其他位置上时,以确定终端设备的车内位置的具体实现方案一一进行赘述,可参阅上述描述理解。
本申请实施例,提供了另一种目标位置信息的获取方案,提高了本方案的实现灵活性,且依次通过不同的音响向终端设备发送超声信号,降低了终端设备对各个超声信号进行处理的过程的难度,有利于提高最终获取到的目标位置信息的准确度。
本申请实施例中,提供了一种测量用户相对于车辆的位置的方案;利用超声信号进行终端设备相对于车辆的位置的测量,有利于得到精确的目标位置信息,且由于用户感知不到超声信号,从而在用户无感的情况下实现了用户相对于车辆的精确定位;此外,无需在车辆或终端设备上增加额外的硬件,以避免了额外开销。
二、基于终端设备和各个音响之间的距离生成终端设备位于车辆内部的位置
具体的,请参阅图6,图6为本申请实施例提供的位置的获取方法的一种流程示意图,本申请实施例提供的位置的获取方法可以包括:
1001、车辆和终端设备启动车内位置感知操作。
本申请实施例中,步骤1001的具体实现方式可参阅图3对应实施例中步骤301的描述,此处不做赘述。
1002、车辆通过目标音响接收终端设备发送的第一测量信号。
本申请实施例中,在车辆和终端设备均启动车内位置感知操作之后,终端设备可以向车辆发送第一测量信号,对应的,车辆也会通过目标音响接收终端设备发送的第一测量信号。其中,车辆中配置有至少两个音响,目标音响为车辆配置的至少两个音响中任意一个 音响,第一测量信号为超声信号,前述超声信号的具体表现形式可以参阅图3对应实施例中的描述。
1003、终端设备将第一测量信号的发送时间确定为第三时间。
1004、车辆将接收第一测量信号的时间确定为第一时间。
1005、车辆通过目标音响向终端设备发送第二测量信号。
本申请实施例中,在车辆和终端设备均启动车内位置感知操作之后,车辆还会通过目标音响向终端设备发送第二测量信号,对应的,终端设备也接收该第二测量信号。其中,第二测量信号为超声信号,前述超声信号的具体表现形式可以参阅图3对应实施例中的描述。
1006、车辆将发送第二测量信号的时间确定为第二时间。
1007、终端设备将第二测量信号的接收时间确定为第四时间。
需要说明的是,可以先执行步骤1002至1004,再执行步骤1005至1007;也可以先执行步骤1005至1007,再执行步骤1002至1004,本申请实施例对于终端设备发送第一测量信号和车辆发送第二测量信号的先后顺序不做限定。如果终端设备先发送第一测量信号,那么车辆在接收到第一测量信号之后再发送第二测量信号;如果车辆先发送第二测量信号,那么终端设备在接收到第二测量信号之后再发送第一测量信号。
1008、车辆或终端设备根据第一时间、第二时间、第三时间和第四时间,确定终端设备与目标音响之间的距离。
本申请实施例中,车辆或终端设备在得到第一时间、第二时间、第三时间和第四时间,可以根据第一时间、第二时间、第三时间和第四时间,基于双端测距算法,确定终端设备与目标音响之间的距离。
具体的,在一种情况中,若先由终端设备向车辆发送第一测量信号,车辆在接收到第一测量信号之后,再向终端设备发送第二测量信号,则步骤1008可以包括:车辆或终端设备将第二时间减去第一时间得到第一时间差值,将第四时间减去第三时间得到第二时间差值,再将第二时间差值减去第一时间差值得到目标时间差值,目标时间差值为超声信号在目标音响和终端设备之间传播两次的时长。车辆或终端设备根据目标时间差值,生成终端设备与目标音响之间的距离。
在另一种情况中,若先由车辆向终端设备发送第二测量信号,终端设备在接收到第二测量信号之后,再向车辆发送第一测量信号,则步骤1008可以包括:车辆或终端设备将第三时间减去第四时间得到第三时间差值,将第一时间减去第二时间得到第四时间差值,再将第四时间差值减去第三时间差值得到目标时间差值,目标时间差值为超声信号在目标音响和终端设备之间传播两次的时长。车辆或终端设备根据目标时间差值,生成终端设备与目标音响之间的距离。
本申请实施例中,由于车辆和终端设备可能会存在时钟不对齐的问题,则采用终端获取的两个时间计算差值,以及采用车辆获取的两个时间计算差值,从而避开了车辆和终端设备可能会存在时钟不对齐所导致的误差,以得到精准的距离。
本申请实施例中,基于步骤1002至1008的原理,车辆或终端设备能够获取到终端设 备与每个音响之间的距离。具体的,在一种实现方式中,车辆和终端设备重复执行1002至1008至少一次,以逐个获取到终端设备与每个音响之间的距离。
在另一种实现方式中,针对终端设备向音响发送测量信号的过程,步骤1002和1003可以只做一次,也即终端设备可以通过广播的形式向车内的每个音响发送第一测量信号,对应的,车辆中的每个音响均接收该第一测量信号,并记录第一测量信号到达上述至少两个音响中每个音响的时间。
针对车辆通过音响向终端设备发送测量信号的过程,在一种实现方式中,车辆可以通过不同的音响同时向终端设备发送不同的超声信号(也即不同的测量信号),终端设备可以分别记录每个位置的音响发出的测量信号到达终端设备的时间。
在另一种实现方式中,车辆也可以逐个通过每个音响向终端设备发送超声信号(也即测量信号),终端设备可以分别记录每个位置的音响发出的测量信号到达终端设备的时间。
1009、车辆或终端设备根据终端设备与至少两个音响中每个音响之间的距离,确定目标位置信息,目标位置信息用于指示终端设备位于车辆内部的位置。
本申请实施例中,在一种实现方式中,车辆或终端设备在得到终端设备与至少两个音响中每个音响之间的距离之后,可以基于图3对应实施例中的原理,确定目标位置信息,具体实现方式参阅图3对应实施例中的描述。
在另一种实现方式中,车辆或终端设备可以以每个音响为圆心,以每个音响与终端设备之间的距离作为半径进行画圆,得到与至少两个音响一一对应的至少两个圆,前述至少两个圆的交集区域就是终端设备位于车辆内部的位置。
为更直观地理解本方案,请参阅图7,图7为本申请实施例提供的位置的获取方法中的一种示意图。图7中以采用音响1、音响2和音响3来测量终端设备位于车辆内部的位置为例。如图7所示,车辆或终端设备在分别得到终端设备与音响1、音响2以及音响3之间的距离后,以音响1为圆心,且以终端设备与音响1之间的距离为半径进行画圆;以音响2为圆心,且以终端设备与音响2之间的距离为半径进行画圆;以音响3为圆心,且以终端设备与音响3之间的距离为半径进行画圆;车辆或终端设备将图7中的阴影区域(也即前述三个圆的交集区域)确定为终端设备位于车辆内部的位置。在图7中,终端设备位于车辆内部的主驾驶位置,应理解,图7中的示例仅为方便理解本方案,不用于限定本方案。
需要说明的是,车辆中音响的位置以及目标位置信息的用途均可参阅图3对应实施例中的描述,此处不做赘述。
本申请实施例中,提供了另一种测量用户相对于车辆的位置的方案,有利用提高本方案的实现灵活性;利用超声信号进行终端设备相对于车辆的位置的测量,有利于得到精确的目标位置信息,且由于用户感知不到超声信号,从而在用户无感的情况下实现了用户相对于车辆的精确定位。
三、在不获取终端设备和音响之间距离的情况下,生成终端设备位于车辆外部的位置
具体的,请参阅图8a,图8a为本申请实施例提供的位置的获取方法的一种流程示意图,本申请实施例提供的位置的获取方法可以包括:
1201、车辆和终端设备启动车外位置感知操作。
本申请实施例中,在一些应用场景中,在车辆的运行过程中,当车辆确定需要获知终端设备在车辆外部的位置时,会启动车外位置感知操作,并向终端设备发送指示信息,前述指示信息用于指示终端设备启动车外位置感知操作。
在另一些应用场景中,在终端设备的运行过程中,当终端设备确定需要获知终端设备在车辆外部的位置时,会启动车外位置感知操作,并向车辆发送指示信息,前述指示信息用于指示车辆启动车外位置感知操作。
上述步骤的具体实现方式与图3对应实施例中步骤301的具体实现方式类似,也即在车辆或终端设备检测到“车外位置感知操作”的触发条件,进而触发车辆和终端设备均启动车外位置感知操作的具体实现方式可以参阅上述图3对应实施例中步骤301的描述,区别在于将图3对应实施例中的“车内位置感知操作”替换为图8a中的“车外位置感知操作”,具体实现方案此处不做赘述。
针对车辆和终端设备启动车外位置感知操作的触发条件。作为示例,例如当车辆或终端设备检测到终端设备与车辆之间的距离小于预设距离阈值时,可以触发启动车外位置感知操作。作为另一示例,例如当车辆或终端设备检测到终端设备位于车辆外部的时候,可以触发启动车外位置感知操作。作为另一示例例如当车辆停车时,可以触发启动车外位置感知操作等等,具体在哪些场景中会触发启动车外位置感知操作,可以结合实际产品形态确定,此处不再一一进行列举。
1202、车辆通过第一音响向终端设备发送第一超声信号。
1203、车辆通过第二音响向终端设备发送第二超声信号。
1204、车辆通过第三音响向终端设备发送第三超声信号。
1205、终端设备根据第一超声信号的接收时间和第二超声信号的接收时间,确定目标位置信息,目标位置信息用于指示终端设备位于车辆外部的位置。
本申请实施例中,步骤1202至1205与图3对应实施例中302至305的具体实现原理一致,步骤1202至1205的具体实现方式与图3对应实施例中302至305的具体实现方式类似,区别在于,图3对应实施例中测量的为“终端设备位于车辆内部的位置”,图12对应实施例中测量的为“终端设备位于车辆外部的位置”。
为更直观地理解本方案,请参阅图8b,图8b为本申请实施例提供的位置的获取方法中车辆外部位置的一种示意图。如图所示,Z1、Z2、Z3、Z4和Z5为5个不同的车外位置,本实施例中的目标位置信息用于指示终端设备位于Z1、Z2、Z3、Z4和Z5中的一个车外位置上,则在车辆内部的音响的位置固定后,不同的车外位置与各个音响之间的距离关系不同,则与图3对应实施例的实现原理一致,本实施例中也可以根据各个超声信号的接收时间来确定终端设备位于车辆外部的位置,应理解,也可以将车外位置进行其他方式的划分,图8b中的举例仅为方便理解本方案的可实现性。
对于用于测量终端设备位于车辆外部的具体位置的多个音响在车辆中的位置可以参阅图3对应实施例中的描述,此处不再一一赘述。
也即若用于测量终端设备位于车辆外部的具体位置的多个音响包括两个音响,则前述 两个音响可以分别位于车辆的左侧和右侧,或者,前述两个音响可以分别位于车辆的前侧和后侧。
若用于测量终端设备位于车辆外部的具体位置的多个音响包括至少三个音响,则前述至少三个音响不位于一条直线上。
若用于测量终端设备位于车辆外部的具体位置的多个音响包括四个音响,则前述四个音响可以分别位于车辆中的左前方位置、右前方位置、左后方位置和右后方位置。
需要说明的是,在图3对应实施例中,用于测量终端设备位于车辆内部的具体位置的至少两个音响一般是位于车辆内部的音响;在图8a对应的实施例中,用于测量终端设备位于车辆外部的具体位置的至少两个音响可以均为配置于车辆外部的音响,也可以均为配置于车辆内部的音响。
本申请实施例中,不仅可以测量终端设备位于车辆内部的位置,还可以测量终端设备位于车辆外部的位置,有利于扩展本方案的应用场景。
四、基于终端设备和各个音响之间的距离生成终端设备位于车辆外部的位置
具体的,请参阅图9,图9为本申请实施例提供的位置的获取方法的一种流程示意图,本申请实施例提供的位置的获取方法可以包括:
1301、车辆和终端设备启动车外位置感知操作。
1302、车辆通过目标音响接收终端设备发送的第一测量信号。
1303、终端设备将第一测量信号的发送时间确定为第三时间。
1304、车辆将接收第一测量信号的时间确定为第一时间。
1305、车辆通过目标音响向终端设备发送第二测量信号。
1306、车辆将发送第二测量信号的时间确定为第二时间。
1307、终端设备将第二测量信号的接收时间确定为第四时间。
1308、车辆或终端设备根据第一时间、第二时间、第三时间和第四时间,确定终端设备与目标音响之间的距离。
1309、车辆或终端设备根据终端设备与至少两个音响中每个音响之间的距离,确定目标位置信息,目标位置信息用于指示终端设备位于车辆外部的位置。
本申请实施例中,步骤1301至1309与图6对应实施例中1001至1009的具体实现原理一致,步骤1301至1309的具体实现方式与图6对应实施例中1001至1009的具体实现方式类似,区别在于,图6对应实施例中测量的为“终端设备位于车辆内部的位置”,图9对应实施例中测量的为“终端设备位于车辆外部的位置”,对于车辆外部的位置的描述可参阅上述对图9的介绍,此处不再对步骤1301至1309的具体实现方式进行一一赘述。
五、基于终端设备的具体位置的应用场景
可选地,在一种应用场景中,终端设备位于车辆内部的目标位置信息用于确定终端设备对车辆的控制权限,位于不同位置上的终端设备对车辆有不同的控制权限。
作为示例,例如位于副驾驶位置上的终端设备对车辆的控制权限可以包括:调整副驾驶的座椅角度、调整空调温度、调整副驾驶位置上头枕的音量和调整前排灯光的亮度;可选地,对于副驾驶位置上的常驻终端设备还可以切换音乐。位于后排右侧位置上的终端设 备对车辆的控制权限可以包括:调整后排座椅温度、调整后排灯光的亮度和调整后排右侧位置上头枕的音量,应理解,此处举例仅为方便理解本方案。
为更直观地理解本方案,请参阅图10,图10为本申请实施例提供的位置的获取方法中位于不同位置上的终端设备的控制权限的一种示意图。图10包括(a)和(b)两个子示意图,图10的(a)子示意图示出的为位于副驾驶位置上的终端设备对车辆的控制权限,图10的(b)子示意图示出的为位于后排左侧位置上的终端设备对车辆的控制权限,如图10所示,位于副驾驶位置上的终端设备所支持的功能可以包括:音乐切换、副驾驶处空调的开启及温度调节、调整副驾驶座椅的加热温度和开启或关闭智能香薰机等。位于后排右侧位置上的终端设备所支持的功能可以包括:音乐切换、调整后排座椅的加热温度和开启或关闭智能香薰机等,此处不做穷举,也即位于不同车内位置上的终端设备对车辆有不同的控制权限,应理解,此处举例仅为方便理解本方案,不用于限定本方案。
具体的,车辆内部的目标终端设备(也即车辆内部的任意一个终端设备)在获取到自身的目标位置信息后,可以向车辆发送目标终端设备的目标位置信息,车辆可以向目标终端设备发送与目标终端设备的车内位置对应的权限信息。目标终端设备在接收到权限信息之后,可以输出提示信息,该提示信息用于提醒目标终端设备的操作者对车辆的控制权限。具体采用的提示信息的消息可以结合实际产品确定,此处不做限定。
为更直观地理解本方案,请参阅图11,图11为本申请实施例提供的位置的获取方法中位于不同位置上的终端设备的控制权限的一种示意图。图11的(b)子示意图需要结合上述对图10的(a)子示意图的描述进行理解,图11包括(a)和(b)两个子示意图,图11的(a)子示意图中的A1代表目标终端设备输出的提示信息,当用户点击A1时,触发进入图11的(b)子示意图,从而用户可以通过图11的(b)子示意图对车辆进行控制,需要说明的是,在其他实现方式中,在图11的(a)子示意图所展示的界面上,用户可以手持终端设备执行预设操作,对应的,终端设备可以通过内置的惯性测量单元(inertial measurement unit,IMU)检测到该终端设备的移动轨迹为预设轨迹的情况下,可以触发进入图11的(b)子示意图。预设操作可以为摇一摇或其他操作等,具体通过图11的(a)子示意图进入图11的(b)子示意图的方式可以根据实际产品形态灵活设定,此处举例仅为方便理解本方案的一个示例,不用于限定本方案。
在另一种应用场景中,目标位置信息用于指示终端设备是否位于车辆的主驾驶位置。具体的,车辆内部的目标终端设备(也即车辆内部的任意一个终端设备)在获取到自身的目标位置信息后,可以向车辆发送目标终端设备的目标位置信息,从而车辆可以得知车辆内部的每个终端设备的车内位置,也即车辆可以得知车辆内部的哪个终端设备为位于主驾驶位置的终端设备。
可选地,车辆可以将位于主驾驶位置的终端设备的屏幕内容投屏至车辆中控屏上,进一步地,当将主驾驶位置的终端设备的屏幕内容投屏至车辆中控屏上时,车辆的中控屏上显示的内容可以不与终端设备的屏幕内容完全相同,中控屏上显示的内容可以为自车已经配置的应用程序和终端设备中的多个应用程序。也即车辆在没有和主驾驶位置的终端设备连接时,就有自己的用户界面(user interface,UI),车辆在和主驾驶位置的终端设备连 接之后,可以为车辆的UI界面上的应用程序的图标变多了,或者,车辆的功能变多了,而车辆的UI界面没有大的变化。
需要说明的是,终端设备只有在和车辆进行过配对后,才能执行上述投屏操作。
为更直观地理解本方案,请参阅图12和图13,图12为本申请实施例提供的位置的获取方法中位于主驾驶位置的终端设备进行投屏的一种示意图。图12包括(a)和(b)两个子示意图,先参阅图12的(a)子示意图,若位于主驾驶位置的终端设备从未与车辆进行过配对,则车辆会向前述终端设备发送询问信息,该终端设备可以输出该询问信息,该询问信息用于询问是否与车辆连接(也即与车辆配对),图12的(a)子示意图中以通过语音和文本框的形式输出询问信息为例,若用户通过语音的形式指示终端设备与车辆连接,则会触发进入图12的(b)子示意图;再参阅图12的(b)子示意图,图12的(b)子示意图示出的为当终端设备与车辆连接时,终端设备侧和车辆侧的示意图,应理解,具体终端设备与车辆连接时的示意图应该结合示例应用产品灵活设定,图12中的示例仅为方便理解本方案的一个示例,不用于限定本方案。
更进一步地,若位于主驾驶位置的终端设备与位于副驾驶位置的终端设备发生位置交换时,车辆将会判断位于主驾驶位置的更新后的终端设备是否已经与车辆进行过配对,若判断结果为是,则将更新后的终端设备的屏幕内容投屏至车辆中控屏上;若判断结果为否,则向更新后的终端设备发送配对请求,以始终保持车辆中控屏上所显示的为位于主驾驶位置上的终端设备的屏幕内容。
为更直观地理解本方案,请参阅图13,图13为本申请实施例提供的位置的获取方法中位于主驾驶位置的终端设备进行投屏的一种示意图。图13包括左和右两个子示意图。先参阅图13的左子示意图,位于主驾驶位置上的终端设备的屏幕上显示的是B1,位于副驾驶位置上的终端设备的屏幕上显示的是B2;车辆的屏幕上显示的是B1,代表位于主驾驶位置上的终端设备(也即B1指向的终端设备)正在通过车辆的中控屏进行投屏。
再参阅图13的右子示意图,位于主驾驶位置上的终端设备的屏幕上显示的是B2,于副驾驶位置上的终端设备的屏幕上显示的是B1;车辆的屏幕上显示的是B2,代表位于主驾驶位置上的终端设备(也即B2指向的终端设备)正在通过车辆的中控屏进行投屏,应理解,此处举例仅为方便理解本方案,不用于限定本方案。
在另一种应用场景中,在终端设备与车辆连接时,目标位置信息用于供车辆确定与终端设备距离最近的车载设备。进一步地,作为示例,例如当终端设备需要通过车辆执行投屏操作时,目标位置信息用于确定与终端设备距离最近的屏幕。作为另一示例,例如在终端设备为无线耳机的情况下,目标位置信息用于确定与无线耳机距离最近的屏幕;可选地,目标位置信息用于使无线耳机与最近的屏幕建立通信连接。
本申请实施例,提供了目标位置信息的多个应用场景,提高了本方案的实现灵活性。
在图1a至图13所对应的实施例的基础上,为了更好的实施本申请实施例的上述方案,下面还提供用于实施上述方案的相关设备。具体参阅图14a,图14a为本申请实施例提供的位置的获取装置的一种结构示意图。位置的获取装置1400应用于车辆,车辆包含在位置 的获取系统中,位置的获取系统还包括终端设备,车辆配置有至少两个音响,至少两个音响包括第一音响和第二音响,第一音响和第二音响位于车辆的两侧。位置的获取装置1400包括:发送模块1401,用于通过第一音响发送第一超声信号,第一超声信号用于供终端设备确定第一超声信号的接收时间,第一超声信号的接收时间为终端设备接收到第一超声信号的时间;发送模块1401,还用于通过第二音响发送第二超声信号,第二超声信号用于供终端设备确定第二超声信号的接收时间,第二超声信号的接收时间为终端设备接收到第二超声信号的时间,第一超声信号的接收时间和第二超声信号的接收时间用于确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在一种可能的设计中,发送模块1401,具体用于在通过第一音响发送第一超声信号的同时,通过第二音响发送第二超声信号,第一超声信号和第二超声信号为不同的超声信号,第一超声信号和第二超声信号到达终端设备的先后顺序用于确定目标位置信息。
在一种可能的设计中,发送模块1401,具体用于先通过第一音响发送第一超声信号,并在预设时间间隔后,通过第二音响发送第二超声信号,第一超声信号的接收时间、第二超声信号的接收时间和预设时间间隔用于确定目标位置信息。
在一种可能的设计中,至少两个音响包括至少三个音响,至少三个音响不位于一条直线上。
在一种可能的设计中,至少三个音响包括四个音响,四个音响分别位于车辆中的左前方位置、右前方位置、左后方位置和右后方位置。
在一种可能的设计中,目标位置信息用于指示终端设备位于车辆内部的位置;或者,目标位置信息用于指示终端设备位于车辆外部的位置。
在一种可能的设计中,车辆内部的位置为车辆内部的左侧位置或车辆内部的右侧位置;或者,车辆内部的位置为车辆内部的前侧位置或车辆内部的后侧位置;或者,车辆内部的位置为主驾驶、副驾驶、后排左侧、后排右侧或后排中间中的任一个车辆内部的位置;或者,车辆内部共存在N个位置,车辆内部的位置为N个位置中的一个目标位置,N大于5。
在一种可能的设计中,目标位置信息用于确定终端设备对车辆的控制权限,位于不同位置上的终端设备对车辆有不同的控制权限;或者,目标位置信息用于指示终端设备是否位于车辆的主驾驶位置;或者,在终端设备与车辆连接时,目标位置信息用于供车辆确定与终端设备距离最近的车载设备。
在一种可能的设计中,请参阅图14b,图14b为本申请实施例提供的位置的获取装置的另一种结构示意图。发送模块1401,还用于在车辆启动位置感知操作的情况下,向终端设备发送第一指示信息,第一指示信息用于指示终端设备启动位置感知操作,位置感知操作为用于获取目标位置信息的操作;位置的获取装置1400还包括接收模块1402,用于接收终端设备发送的第一反馈消息,第一反馈消息用于指示车辆发送第一超声信号和第二超声信号。或者,接收模块1402,还用于接收终端设备发送的第二指示信息,响应于接收到的第二指示信息,启动位置感知操作;发送模块1401,还用于向终端设备发送第二反馈消息,第二反馈消息用于指示终端设备接收第一超声信号和第二超声信号。
需要说明的是,位置的获取装置1400中各模块/单元之间的信息交互、执行过程等内 容,与本申请中图3和图8a对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,请参阅图15,图15为本申请实施例提供的位置的获取装置的另一种结构示意图。位置的获取装置1500应用于终端设备,终端设备包含在位置的获取系统中,位置的获取系统还包括车辆,车辆配置有至少两个音响,至少两个音响包括第一音响和第二音响,第一音响和第二音响位于车辆不同的两侧。位置的获取装置1500包括:接收模块1501,用于接收第一音响发送的第一超声信号;接收模块1501,还用于接收第二音响发送的第二超声信号;确定模块1502,用于根据第一超声信号的接收时间和第二超声信号的接收时间,确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在一种可能的设计中,确定模块1502,具体用于在第一超声信号和第二超声信号为同时发送的情况下,根据第一超声信号的接收时间和第二超声信号的接收时间,确定第一超声信号和第二超声信号到达终端设备的先后顺序;根据第一超声信号和第二超声信号到达终端设备的先后顺序,确定目标位置信息。
在一种可能的设计中,确定模块1502,具体用于根据第一超声信号的接收时间、第二超声信号的接收时间和预设时间间隔,确定目标位置信息,预设时间间隔为相邻的两个超声信号的发送时间间隔。
在一种可能的设计中,至少两个音响包括至少三个音响,至少三个音响不位于一条直线上。
需要说明的是,位置的获取装置1500中各模块/单元之间的信息交互、执行过程等内容,与本申请中图3和图8a对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,请参阅图16,图16为本申请实施例提供的位置的获取装置的另一种结构示意图。位置的获取装置1600应用于车辆,车辆包含在位置的获取系统中,位置的获取系统还包括终端设备,车辆中配置有至少两个音响,至少两个音响配置于车辆的两侧,目标音响为至少两个音响中的任意一个音响。位置的获取装置1600包括:接收模块1601,用于通过目标音响接收终端设备发送的第一测量信号,并将接收第一测量信号的时间确定为第一时间;发送模块1602,用于通过目标音响向终端设备发送第二测量信号,并将发送第二测量信号的时间确定为第二时间,第一测量信号和第二测量信号均为超声信号;确定模块1603,用于根据第一时间、第二时间、第三时间和第四时间,确定终端设备与目标音响之间的距离,其中,第三时间为终端设备发送第一测量信号的时间,第四时间为终端设备接收第二测量信号的时间;确定模块1603,还用于根据终端设备与至少两个音响中每个音响之间的距离,确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在一种可能的设计中,至少两个音响包括至少三个音响,至少三个音响不位于一条直线上。
在一种可能的设计中,目标位置信息用于指示终端设备位于车辆内部的位置;或者, 目标位置信息用于指示终端设备位于车辆外部的位置。
需要说明的是,位置的获取装置1600中各模块/单元之间的信息交互、执行过程等内容,与本申请中图6和图9对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,请参阅图17,图17为本申请实施例提供的位置的获取装置的另一种结构示意图。位置的获取装置1700应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,车辆中配置有至少两个音响,至少两个音响配置于车辆不同的位置上,目标音响为至少两个音响中的任意一个音响。位置的获取装置1700包括:发送模块1701,用于向目标音响发送第一测量信号,将第一测量信号的发送时间确定为第三时间;接收模块1702,用于接收目标音响发送的第二测量信号,将第二测量信号的接收时间确定为第四时间,第一测量信号和第二测量信号均为超声信号;确定模块1703,用于根据第一时间、第二时间、第三时间和第四时间,确定终端设备与目标音响之间的距离,其中,第一时间为车辆接收第一测量信号的时间,第二时间为车辆发送第二测量信号的时间;确定模块1703,还用于根据终端设备与至少两个音响中每个音响之间的距离,确定目标位置信息,目标位置信息指示终端设备相对于车辆的位置。
在一种可能的设计中,目标位置信息用于指示终端设备位于车辆内部的位置;或者,目标位置信息用于指示终端设备位于车辆外部的位置。
需要说明的是,位置的获取装置1700中各模块/单元之间的信息交互、执行过程等内容,与本申请中图6和图9对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
参阅如下实施例二,本申请实施例中的实施例二提供的一部分实施例用于检测终端设备是位于车辆内部还是位于车辆外部;另一部分实施例用于检测终端设备具体位于车辆外部的什么位置上。
实施例二
本申请实施例中,具体的,请参阅图18,图18为本申请实施例提供的位置的获取方法的一种流程示意图,本申请实施例提供的位置的获取方法可以包括:
2001、在车辆检测到满足第一触发条件和/或终端设备检测到满足第二触发条件的情况下,车辆和终端设备启动第一位置感知操作。
本申请实施例中,在一些应用场景中,当车辆检测到满足第一触发条件时,会启动第一位置感知操作,并向终端设备发送指示信息,该指示信息用于指示终端设备启动第一位置感知操作,第一位置感知操作用于测量终端设备位于车辆内部或者车辆外部。需要说明的是,实施例二中由车辆执行的步骤具体可以为由车辆中的处理器执行,也可以为由车辆中的车辆辅助设备执行,具体结合实际产品形态决定,后续均不再进行说明。
其中,当车辆检测到如下任一种或多种情况时,视为检测到满足第一触发条件:车辆检测到车辆停车;或者,车辆检测到终端设备与车辆之间的距离满足第一距离条件;或者,车辆获取到第一指令,第一指令用于触发车辆获取第一位置信息。
本申请实施例中,提供了第一触发条件的多种具体表现形式,扩展了本方案的应用场景,提高了本方案的实现灵活性。
针对车辆检测车辆停车这一场景。具体的,车辆中的车辆辅助设备上可以配置有各种类型的惯性测量单元,从而车辆辅助设备可以利用GPS或其他传感器来测量车辆的速度,利用加速计来测量车辆的加速度,利用陀螺仪来测量车辆的角速度。车辆中的车辆辅助设备将车辆的速度、加速度和角速度输入分类模型,得到分类模型输出的预测类别信息。
其中,该分类模型为已经执行过训练操作的模型,分类模型可以具体表现为神经网络,也可以表现为非神经网络的模型。作为示例,例如该分类模型可以具体表现为决策树、随机森林、极度随机树、支持向量机、K-临近(KNN)模型、逻辑回归模型或其他类型的分类模型等,此处不做穷举。
该预测类别信息指示车辆处于停止状态或移动状态;在一种实现方式中,分类模型输出的预测类别信息可以包括第一概率值和第二概率值,第一概率值用于指示车辆为停止状态的概率,第二概率值用于指示车辆为移动状态的概率;作为示例,例如预测类别信息包括0.3(也即第一概率值)和0.7(也即第二概率值),0.3用于指示车辆为停止状态的概率为0.3,0.7用于指示车辆为移动状态的概率为0.7,则预测类别信息指示车辆处于移动状态。在另一种实现方式中,分类模型输出的预测类别信息可以为第一值或第二值,当分类模型输出的预测类别信息为第一值时,代表车辆处于停止状态,当分类模型输出的预测类别信息为第二值时,代表车辆处于移动状态,作为示例,例如第一值为0,第二值为1等,此处举例均仅为方便理解本方案,不用于限定本方案。
本申请实施例中,将车辆的速度、加速度和角速度输入分类模型中,以通过该分类模型确定车辆处于停止状态还是移动状态,避免了从车辆的控制系统中获取车辆的状态,保证了车辆的控制系统在终端设备的目标位置信息的测量过程中的独立性,有利于提高车辆运行过程的安全性。
针对车辆检测终端设备与车辆之间的距离这一场景。具体的,在一种实现方式中,车辆和终端设备上均可以配置有蓝牙,车辆可以采用广播的形式向外发送蓝牙信号,终端设备在接收到车辆发送的蓝牙信号后,可以计算终端设备与车辆之间的实际距离。在另一种实现方式中,也可以由终端设备向外发送蓝牙信号,车辆在接收到终端设备发送的蓝牙信号后,计算终端设备与车辆之间的实际距离。在另一种实现方式中,车辆和终端设备也可以利用无线通信技术(WIFI)计算终端设备与车辆之间的实际距离等,此处不对获取车辆和终端设备之间的实际距离的方式进行穷举。
车辆判断终端设备与车辆之间的距离是否满足第一距离条件;其中,第一距离条件可以为终端设备与车辆之间的距离是否小于预设距离,预设距离的取值可以为5米、3米、2米、1米或其他取值等等,此处不做限定。或者,第一距离条件可以为终端设备与车辆之间的距离逐渐变小直至满足预设距离等。
针对车辆获取到第一指令这一场景。具体的,在一些实现方式中,用户可以通过车辆辅助设备和/或车载电脑与车辆进行交互,当车辆获取到用户输入的预设操作时,可以触发车辆生成第一指令,预设操作包括但不限于获取车内终端设备列表的请求操作、切换与车 辆连接的终端设备的请求操作或其他类型的操作等等。
在另一些实现方式中,车辆可以接收终端设备发送的指示信息,前述指示信息用于请求获取终端设备的第一位置信息,车辆响应于接收到的前述指示信息,生成第一指令。
需要说明的是,当车辆检测到其他事件时,也可以视为触发第一触发条件,具体第一触发条件包含哪些事件需要结合实际应用场景灵活设定,此处不做限定。
在另一些应用场景中,当终端设备检测到满足第二触发条件的情况下,会启动第一位置感知操作,并向车辆发送指示信息,该指示信息用于指示车辆启动第一位置感知操作,第一位置感知操作用于测量终端设备位于车辆内部或者车辆外部。
其中,当终端设备检测到如下任一种或多种情况时,视为检测到满足第二触发条件:终端设备检测到车辆停车;或者,终端设备检测到终端设备与车辆之间的距离满足第一距离条件;或者,终端设备检测到终端设备的位移符合预设位移;或者,终端设备获取到第二指令,第二指令用于触发终端设备获取第一位置信息。
针对终端设备检测车辆停车这一场景。具体的,终端设备上可以预先配置有分类模型,车辆在获取到车辆的速度、加速度和角速度之后,可以发送给终端设备,终端设备将车辆的速度、加速度和角速度输入分类模型,得到分类模型输出的预测类别信息;分类模型和预测类别信息的具体含义可以参阅上述描述,此处不做赘述。
针对终端设备检测终端设备与车辆之间的距离这一场景,终端设备的具体实现方式,与车辆检测终端设备与车辆之间的距离这一场景的具体实现方式类似,均可参阅上述描述,此处不做赘述。
针对终端设备检测到终端设备的位移符合预设位移这一场景。具体的,终端设备上可以预先配置有至少一种类型的IMU,终端设备可以通过IMU获取到终端设备在水平方向和/或竖直方向上的位移,判断终端设备在水平方向和/或竖直方向上的位移是否符合预设位移,若判断结果为是,则确定满足第二触发条件。
其中,预设位移可以为终端设备在水平方向上的位移大于或等于预设阈值;或者,预设位移可以为终端设备在竖直方向上的位移大于或等于预设阈值;或者,预设位移可以包括终端设备在水平方向上的位移大于或等于预设阈值,且终端设备在竖直方向上的位移大于或等于预设阈值。当检测到终端设备的位移符合预设位移时,代表检测到终端设备可能存在上下车事件,具体预设位移的设定可以根据实际情况灵活确定,此处不进行详细限定。
针对车辆获取到第二指令这一场景。具体的,终端设备可以接收何亮发送的指示信息,前述指示信息用于请求终端设备的第一位置信息,车辆响应于接收到的前述指示信息,生成第二指令等,终端设备还可以在其他场景下获取到第二指令,此处不再一一进行列举。
需要说明的是,当终端设备检测到其他事件时,也可以视为触发第二触发条件,具体第二触发条件包含哪些事件需要结合实际应用场景灵活设定,此处不做限定。
2002、车辆向终端设备发送至少一个目标音频信号。
本申请实施例中,在车辆和终端设备均启动了第一位置感知操作后,车辆可以通过音响向终端设备发送至少一个目标音频信号。其中,目标音频信号可以为超声信号,超声信号所在频段可以为17KHZ-48KHZ,可选地,目标音频信号所在频段可以为17KHZ-22KHZ具 体目标音频信号的频率为多少可以结合实际应用产品确定,此处不做限定。作为示例,例如目标音频信号可以为线性调频(Chirp)信号、ZC(zadoff–chu)序列信号或其他类型的音频信号等,此处不做穷举。
进一步地,Chirp信号在时域的公式具体为:
Figure PCTCN2022128008-appb-000001
其中,φ 0为初始相位差,f 0为起始频率,c为常数。
ZC序列信号在时域的公式具体为:
Figure PCTCN2022128008-appb-000002
其中,j是一个虚数(imaginary),j的平方等于-1;0<u<N ZC,gcd(N zc,u)=1,c f=N ZC mod 2,N ZC为ZC序列信号的信号长度,q的取值为整数。
上述音响可以为配置于车辆内部任意位置上的一个音响,作为示例,例如左上角、右上角、左下角、右下角或其他位置上的音响;可选地,若车辆配置有车辆辅助设备,上述音响也可以为车辆辅助设备上的音响。
为更直观地理解本方案,请参阅图19,图19为本申请实施例提供的位置的获取方法中音响的一个示意图,图19中以车辆辅助设备具体表现为车载智慧屏为例,车辆可以通过配置于车载智慧屏上的音响来测量终端设备位于车辆内部,还是位于车辆外部,应理解,图19中的示例仅为方便理解本方案,不用于限定本方案。
本申请实施例中,由于线性调频信号或者ZC序列信号为能量聚集型信号,选用线性调频信号或者ZC序列信号作为目标音频信号,有利于准确的估计每个目标音频信号所对应的至少一个到达时间,从而有利于得到准确的第一位置信息。
具体的,在一种实现方式中,车辆采用广播的形式,通过音响按照第一预设频率发送多个目标音频信号。其中,第一预设频率可以为车辆每隔d个采样点发送一个目标音频信号,作为示例,例如d的取值可以为880、1320、1760或其他取值等,具体可以结合实际场景灵活设定。
多个目标音频信号包括第一探测信号和第二探测信号,与目标音频信号对应的至少一个到达时间可以包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间,第一时间集合中最晚的时间和第二时间集合中最早的时间可以用于确定第一位置信息。
在另一种实现方式中,车辆通过音响发送一个或多个目标音频信号,其中,每个目标音频信号用于确定与该一个目标音频信号对应的目标时间集合,目标时间集合包括目标音频信号通过直射和/或反射到达终端设备的至少一个时间,目标时间集合中最早的时间和最晚的时间可以用于确定第一位置信息。
2003、终端设备获取与至少一个目标音频信号对应的至少一个到达时间,一个目标音频信号所对应的至少一个到达时间包括目标音频信号通过直射和/或反射到达终端设备的时间。
本申请实施例中,在一种情况中,当车辆采用广播的形式,通过音响按照第一预设频 率发送一个或多个目标音频信号时,对应的,终端设备能够在预设时长内获取到与每个目标音频信号对应的至少一个到达时间,一个目标音频信号所对应的至少一个到达时间包括目标音频信号通过直射和/或反射到达终端设备的时间。
具体的,终端设备上可以预先存储有目标音频信号的参数信息,例如目标音频信号所在频段、目标音频信号的振幅、强度或其他参数信息等。每个目标音频信号在通过直射和/或反射到达终端设备之后,终端设备可以通过带通滤波器对接收到的音频信号进行滤波,得到滤波后的信号,滤波后的信号所在频段与目标音频信号所在频段一致。
终端设备根据滤波后的信号,通过匹配滤波器得到滤波后的信号与目标音频信号之间的匹配度曲线,该匹配度曲线用于指示每个目标音频信号所对应的至少一个到达时间。
其中,匹配度曲线的横轴为时间,该时间可以通过采样点进行度量,也可以为通过秒进行度量;匹配度曲线的纵轴可以为滤波后的信号在每个时间点上的脉冲响应。该匹配度曲线包括的多个波峰中超过预设波峰阈值的每个波峰被认为是终端设备收到了一个目标音频信号,每个超过预设波峰阈值的波峰所对应的采样点被视为一个目标音频信号所对应的一个到达时间。
进一步地,预设波峰阈值可以为如下多种中的任意一种:在匹配度曲线中,d个采样点内(也即一个目标音频信号的发送周期内)最大的波峰值*a,a的取值范围为0.5-1;或者,在匹配度曲线中,d个采样点内(也即一个目标音频信号的发送周期内)所有纵轴方向上的值的平均值*b,b的取值范围是5-10;或者预设波峰阈值还可以设定为其它值,预设波峰阈值的取值可以结合实际产品形态灵活设定,此处举例仅为方便理解本方案,不用于限定本方案。
为了更直观地理解本方案,请参阅图20,图20为本申请实施例提供的位置的获取方法中匹配度曲线的一个示意图,图20中以示出5个目标音频信号通过直射和反射到达终端设备的信号,且预设波峰阈值为一个目标音频信号的发送周期内的最大的波峰值*a为例。由于每个目标音频信号可能通过直射和/或反射的方式到达终端设备,则车辆发射出一个目标音频信号后,终端设备可能接收到一个或多个目标音频信号,图20中以车辆每发送一个目标音频信号,终端设备均能收到一个目标音频信号为例,则终端设备能够获取到与每个音频信号对应的一个到达时间,应理解,图20中的示例仅为方便理解本方案,不用于限定本方案。
在另一种情况中,由于车辆为通过车内的音响发送目标音频信号,若车门和所有车窗均关闭,终端设备位于车辆外部且距离车辆较远位置时,车辆发出的目标音频信号可能无法到达终端设备,也即终端设备在预设时长内无法采集到任何一个目标音频信号。具体的,终端设备能够在预设时长内获取到与每个目标音频信号对应的零个到达时间,则终端设备可以生成与终端设备对应的第一位置信息,本应用场景中的第一位置信息用于指示终端设备位于车辆外部;可选地,终端设备可以将生成的前述第一位置信息发送给车辆。
其中,预设时长的取值范围可以为100ms–20000ms,作为示例,例如预设时长的取值可以为200ms、400ms、600ms或其他取值等等,此处不做穷举。终端设备获取与每个目标音频信号对应的到达时间的具体实现方式可以参阅上述描述。
2004、终端设备根据至少一个到达时间,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
本申请实施例中,终端设备在得到每个目标音频信号对应的至少一个到达时间后,可以直接根据每个目标音频信号对应的至少一个到达时间,生成与终端设备对应的第一位置信息。可选地,终端设备也可以将每个目标音频信号对应的至少一个到达时间发送给车辆,由车辆生成与终端设备对应的第一位置信息。
为了更直观地理解本方案的原理,请参阅图21,图21为本申请实施例提供的位置的获取方法中匹配度曲线的两个示意图。图21包括(a)和(b)两个子示意图,图21的(a)子示意图示出的为当终端设备位于车辆内部时,车辆按照第一预设频率发出的3个目标音频信号到达终端设备后,终端设备所获取到的匹配度曲线的一个示意图;图21的(b)子示意图示出的为当终端设备位于车辆外部时,车辆按照第一预设频率发出的3个目标音频信号到达终端设备后,终端设备所获取到的匹配度曲线的一个示意图。图21的(a)子示意图和图21的(b)子示意图中,均以利用采样点作为时间度量单位,且预设波峰阈值为一个目标音频信号的发送周期内的最大的波峰值*a为例。
车辆发出一个目标音频信号后,目标音频信号可能会以直射的方式到达终端设备,也会经过周围环境的反射后到达终端设备,由于车辆内部的空间比较狭小且封闭,则如图21的(a)子示意图所示,当终端设备位于车辆内部时,一个目标音频信号所对应的至少一个到达时间较为集中。而车辆外部的空间较为开阔,则如图21的(b)子示意图所示,当终端设备位于车辆外部时,一个目标音频信号所对应的多个到达时间较为分散。因此,终端设备或车辆在得到每个目标音频信号所对应的至少一个到达时间后,能够确定终端设备位于车辆内部还是位于车辆外部,应理解,图21中的示例仅为方便理解本方案的实现原理的一个示例,不用于限定本方案。
具体的,在一种实现方式中,至少一个目标音频信号包括由车辆按照第一预设频率发出的多个目标音频信号,多个目标音频信号包括第一探测信号和第二探测信号,多个目标音频信号所对应的多个到达时间包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间,第一时间集合和第二时间集合中的到达时间之间的时间间隔用于确定第一位置信息。
其中,车辆发送第一探测信号的时间可以早于车辆发送第二探测信号的时间,或者,车辆发送第一探测信号的时间可以晚于车辆发送第二探测信号的时间。第一时间集合和第二时间集合在与多个目标音频信号对应的匹配度曲线上相邻,也即第一探测信号和第二探测信号为两个不同的目标音频信号,且相邻到达终端设备。
针对第一位置信息的判断条件。若第一时间集合和第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则第一位置信息指示终端设备位于车辆内部,预设时间范围的确定因素包括车辆发送两个相邻的目标音频信号之间的时间间隔;若第一时间集合和第二时间集合中的到达时间之间的时间间隔不位于预设时间范围内,则第一位置信息指示 终端设备位于车辆外部。
其中,预设时间范围所采用的时间度量单位可以包括采样点、毫秒、秒或其他时间度量单位等等,作为示例,例如预设时间范围可以为d-c个采样点至d+e个采样点,d个采样点为车辆发送两个目标音频信号之间的时间间隔。c和e的取值可以相同或不同,作为示例,例如c的取值和e的取值均与对接收到的目标音频信号进行处理时的采样率有关,作为示例,例如e的取值可以为50个采样点,例如c的取值可以为400个采样点至960个采样点之间,c和e还可以为其它取值,具体需要结合实际应用场景灵活确定,此处不做穷举。
本实现方式中,预设时间范围可以基于车辆发送两个相邻的目标音频信号之间的时间间隔确定,从而提供了一种简单的预设时间范围的确定方式。
针对第一时间集合和第二时间集合中的到达时间之间的时间间隔的含义。在一种情况中,第一时间集合和第二时间集合中的到达时间之间的时间间隔包括:第一时间集合中最晚的时间和第二时间集合中最早的时间之间的第一时间间隔。则步骤2004可以包括:终端设备或车辆根据第一时间集合中最晚的时间和第二时间集合中最早的时间之间的第一时间间隔,生成第一位置信息。
更具体的,终端设备或车辆获取第一时间集合中最晚的时间和第二时间集合中最早的时间之间的第一时间间隔,判断第一时间间隔是否位于预设时间范围内,若第一时间间隔位于预设时间范围内,则确定终端设备位于车辆内部;若第一时间间隔不位于预设时间范围内,则确定终端设备位于车辆外部。
本申请实施例中,提供了利用第一时间集合和第二时间集合中的到达时间之间的时间间隔,得到终端设备的第一位置信息的一种具体实现方式,操作简单,易于实现。
在另一种情况中,第一时间集合和第二时间集合中的到达时间之间的时间间隔包括:第一时间集合中位于中间的时间和第二时间集合中最早的时间之间的时间间隔;在另一种情况中,第一时间集合和第二时间集合中的到达时间之间的时间间隔包括:第一时间集合中位于中间的时间和第二时间集合中最晚的时间之间的时间间隔等,第一时间集合和第二时间集合中的到达时间之间的时间间隔还可以具体表现为其他含义等,具体可以结合实际应用产品灵活设定,此处不做限定。
在另一种实现方式中,步骤2004可以包括:终端设备或车辆可以获取每个目标音频信号所对应的目标时间集合,目标时间集合包括一个目标音频信号通过直射和/或反射到达终端设备的至少一个时间。终端设备或车辆获取目标时间集合中最早的时间和最晚的时间,并获取目标时间集合中最早的时间和最晚的时间之间的第二时间间隔,判断第二时间间隔是否大于或等于第一时间阈值,若判断结果为是,则确定终端设备位于车辆外部;若判断结果为否,则确定终端设备位于车辆内部。
需要说明的是,还可以通过其他方式来衡量与至少一个目标音频信号对应的至少一个到达时间的分散程度,与至少一个目标音频信号对应的至少一个到达时间越分散,则证明终端设备位于车辆外部;与至少一个目标音频信号对应的至少一个到达时间越紧密,则证明终端设备位于车辆内部,此处不对所有的实现方式一一进行列举。
可选地,终端设备在生成与终端设备对应的第一位置信息后,可以将前述第一位置信息发送给车辆;对应的,车辆在生成与终端设备对应的第一位置信息后,可以将前述第一位置信息发送给终端设备。
本申请实施例中,车辆发送多个目标音频信号,目标音频信号能够通过直射和/或反射到达终端设备,由于车辆内部的空间比较封闭,则一个目标音频信号经过直射和/或反射后得到的多个音频信号能够较为集中的到达终端设备,而车辆外部的空间相对于车辆内部的空间较为开阔,一个目标音频信号经过直射和/或反射后得到的多个音频信号会比较分散的到达终端设备,因此能够根据第一时间集合和第二时间集合之间的时间间隔确定终端设备位于车辆内部还是车辆外部,从而提供了一种测量用户相对于车辆的位置的方案;此外,音频信号可以通过车辆中自带的音响发出,无需在车辆或终端设备上增加额外的硬件,以避免了额外开销。
本申请实施例还提供了另一种位置的获取方法来测量终端设备位于车辆内部还是车辆外部。请参阅图22,图22为本申请实施例提供的位置的获取方法的另一种流程示意图,本申请实施例提供的位置的获取方法可以包括:
2401、车辆按照第二预设频率向终端设备发送多个目标音频信号。
本申请实施例中,在车辆处于移动状态的情况下,车辆可以开始按照第二预设频率,通过音响采用广播的方式向外发送多个目标音频信号;由于车辆处于移动状态,则车辆能够检测到的终端设备一般位于车辆内部,则车辆按照第二预设频率发送多个目标音频信号均能够到达终端设备。
其中,第二预设频率和图18对应实施例中的第一预设频率可以相同或不同,目标音频信号的具体含义可以参阅图18对应实施例中的描述,判断车辆是否处于移动状态的具体实现方式可以参阅图18对应实施例中的描述,步骤2401的具体实现方式也可以参阅图18对应实施例中的描述,此处均不做赘述。
2402、在车辆处于移动状态下,终端设备获取与多个目标音频信号对应的多个第一到达时间,一个第一到达时间代表一个目标音频信号到达终端设备的时间。
本申请实施例中,在车辆处于移动状态下,车辆按照第二预设频率发送多个目标音频信号通过直射和/或反射后能够到达终端设备,终端设备可以获取到与每个目标音频信号对应的至少一个到达时间,前述步骤的具体实现方式可以参阅图18对应实施例中的描述。
终端设备可以根据与每个目标音频信号对应的至少一个到达时间,确定与每个目标音频信号对应的一个第一到达时间。其中,前述第一到达时间可以为与每个目标音频信号对应的至少一个到达时间可以仅包括一个到达时间;或者,前述第一到达时间可以为与每个目标音频信号对应的至少一个到达时间中最早的一个到达时间;或者,前述第一到达时间可以为与每个目标音频信号对应的至少一个到达时间中最晚的一个到达时间;或者,第一到达时间也可以选用与每个目标音频信号对应的至少一个到达时间中的其它到达时间,此处不做穷举。
终端设备重复执行上述操作,能够获取到与多个目标音频信号一一对应的多个第一到达时间,一个第一到达时间代表当终端设备位于车辆内部时,一个目标音频信号到达终端 设备的时间。
2403、终端设备在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个第二到达时间。
本申请实施例中,终端设备在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号一一对应的至少一个第二到达时间。终端设备在检测到满足第二触发条件的具体实现方式可以参阅图18对应实施例中的描述,终端设备获取与至少一个目标音频信号一一对应的至少一个第二到达时间的具体实现方式,与终端设备获取与多个目标音频信号一一对应的多个第一到达时间的具体实现方式相同,区别在于,第一到达时间是在车辆处于移动状态下获得的,第二到达时间是在终端设备检测到满足第二触发条件后获得的。
2404、终端设备根据多个第一到达时间和至少一个第二到达时间,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
本申请实施例中,终端设备在得到多个第一到达时间和至少一个第二到达时间之后,可以根据多个第一到达时间和至少一个第二到达时间,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
具体的,终端设备根据多个第一到达时间确定与第二到达时间对应的第一预测时间,第一预测时间指示在终端设备和车辆之间的相对位置不变的情况下,也即在终端设备位于车辆内部的情况下,目标音频信号到达终端设备的时间;根据第一预测时间和第二到达时间,生成第一位置信息。
更具体的,针对生成第一预测时间的过程。终端设备得到与多个目标音频信号一一对应的多个第一到达时间之后,由于车辆和终端设备之间存在时钟差值,则每个第一到达时间可以表现为如下公式
Figure PCTCN2022128008-appb-000003
其中,
Figure PCTCN2022128008-appb-000004
代表车辆发送的第i个目标音频信号到达终端设备的时间,i代表车辆发送的第i个目标音频信号,T代表车辆发送两个目标音频信号之间的时间间隔,b代表车辆和终端设备之间存在时钟差值。
终端设备可以根据与多个目标音频信号一一对应的多个第一到达时间,采用最小二乘法计算得到车辆和终端设备之间的时钟差值b。终端设备在检测到满足第二触发条件的情况下,可以得知车辆即将发送第k个目标音频信号,则可以通过公式
Figure PCTCN2022128008-appb-000005
计算得到第k个目标音频信号所对应的第一预测时间
Figure PCTCN2022128008-appb-000006
针对根据第一预测时间和第二到达时间,生成第一位置信息的过程。在一种实现方式中,终端设备可以计算第二到达时间与第一预设时间之间的第三时间间隔,判断第三时间间隔是否大于或等于第二时间阈值,若判断结果为是,则确定终端设备位于车辆外部;若判断结果为否,则确定终端设备位于车辆内部。
在另一种实现方式中,终端设备可以计算第二到达时间与第一预设时间之间的第三时间间隔Δt k,并将第三时间间隔Δt k与声音传播速度s相乘得到距离值d。终端设备判断距离d是否大于或等于预设距离阈值d threshold,若判断结果为是,则确定终端设备位于车辆外 部;若判断结果为否,则确定终端设备位于车辆内部。
本申请实施例中,由于当车辆处于移动状态时,能够持续收到音频信号的终端设备一定是位于车内的,从而可以根据获取到的多个第一到达时间来得到第一预测时间,进而根据生成的第一预测时间和实际的第二到达时间,来确定终端设备是位于车辆内部还是外部,仅需一个音响就能实现终端设备的第一位置信息的检测,进一步降低了本方案的实现难度,有利于扩展本方案的应用场景。
可选地,终端设备在生成与终端设备对应的第一位置信息后,可以将前述第一位置信息发送给车辆。
本申请实施例中,从而提供了一种测量终端设备是位于车辆内部还是位于车辆外部的另一种方案,提高了本方案的实现灵活性;且也即利用音频信号来测量终端设备是位于车辆内部还是位于车辆外部,无需在车辆或终端设备上增加额外的硬件,以避免了额外开销。
本申请实施例还提供了另一种位置的获取方法来测量终端设备位于车辆外部的具体位置,请参阅图23,图23为本申请实施例提供的位置的获取方法的另一种流程示意图,本申请实施例提供的位置的获取方法可以包括:
2501、车辆和终端设备启动车外位置感知操作。
本申请实施例中,在一些应用场景中,在车辆的运行过程中,当车辆确定需要获知终端设备在车辆外部的位置时,会启动车外位置感知操作,并向终端设备发送指示信息,前述指示信息用于指示终端设备启动车外位置感知操作,车外位置感知操作用于获取终端设备在车辆外部的具体位置。
作为示例,例如车辆检测到终端设备与车辆之间的距离小于预设阈值时,可能会需要获知终端设备位于车辆外部的具体位置。作为另一示例,例如车辆检测到终端设备与车辆之间的距离越来越小,则可能会需要获知终端设备位于车辆外部的具体位置,应理解,此处距离仅为方便理解本方案,不用于限定本方案。
2502、车辆通过第一音响向终端设备发送第一音频信号。
本申请实施例中,车辆上可以配置有至少三个音响,至少三个音响不位于一条直线上,至少三个音响包括第一音响、第二音响和第三音响,在启动车外位置感知操作之后,可以通过第一音响,采用广播的方式向终端设备发送第一音频信号。
2503、车辆通过第二音响向终端设备发送第二音频信号。
2504、车辆通过第三音响向终端设备发送第三音频信号。
本申请实施例中,车辆还可以通过第二音响,采用广播的方式向终端设备发送第二音频信号;通过第三音响,采用广播的方式向终端设备发送第三音频信号。其中,第一音频信号、第二音频信号和第三音频信号的具体表现方式均与目标音频信号的具体表现形式类似,可直接参阅图18对应实施例中的描述,此处不做赘述。进一步地,第一音频信号、第二音频信号和第三音频信号为信号强度一致的信号,也即第一音频信号、第二音频信号和第三音频信号的音量相同。对于第一音响、第二音响和第三音响的位置可以参阅实施例一中的介绍,需要说的是,实施例二中的音响可以为位于车辆内部的音响,也可以为位于车辆外部的音响。
具体的,在一种实现方式中,车辆可以同时执行步骤2502至2504,则第一音频信号、第二音频信号和第三音频信号需要采用不同的音频信号,不同的音频信号的具体含义可以参阅实施例一种的描述,此处不再一一进行赘述。
在另一种实现方式中,车辆可以先执行步骤2502,在预设时间间隔后再执行步骤2503,在预设时间间隔后再执行步骤2504,则第一音频信号、第二音频信号和第三音频信号可以为相同的音频信号,也可以为不同的音频信号。
可选地,车辆还可以通过第四音响向终端设备发送第四音频信号,对应的,终端设备能够得到接收到的第四音频信号的第四信号强度,需要说明的是,车辆还可以利用更多的音响向终端设备发送音频信号,具体采用的音响数量以及每个音响的位置可以结合实际情况灵活设定,此处不做限定。
需要说明的是,终端设备确定每个音频信号与每个位置上的音响之间对应关系的具体实现方式可以参阅实施例一中的描述,此处不再进行赘述。
2505、终端设备根据接收到的第一音频信号的第一信号强度、接收到的第二音频信号的第二信号强度和接收到的第三音频信号的第三信号强度,生成与终端设备对应的第二位置信息,第二位置信息用于指示终端设备位于车辆外部的位置。
本申请实施例中,由于当终端设备位于车辆外部的不同位置上时,终端设备与各个音响之间的距离关系不同,音频信号传播越远,终端设备接收到的音频信号的强度越小,则终端设备可以根据接收到的第一音频信号的第一信号强度、接收到的第二音频信号的第二信号强度和接收到的第三音频信号的第三信号强度,生成与终端设备对应的第二位置信息。终端设备可以将终端设备的第二位置信息发送给车辆。
为了更直观地理解本方案的原理,请参阅图8b和图24,图8b为本申请实施例提供的位置的获取方法中车辆外部的位置的一个示意图,图24为本申请实施例提供的位置的获取方法的一个原理示意图。先参阅图8b,图8b中以将车辆外部分为Z1至Z5这5个区域为例,应理解,图8b中的示例仅为方便理解本方案,不用于限定本方案。
再参阅图24,图24需要结合图8b进行理解,图24中以终端设备位于Z4区域为例,则音响1距离终端设备最远,音响2距离终端设备次之,音响3距离终端设备最近,则音响1发出的音频信号到达终端设备时的信号强度最弱,音响1发出的音频信号到达终端设备时的信号强度次之,音响1发出的音频信号到达终端设备时的信号强度最强,反过来推,若终端设备接收到的三个音响发送的三个音频信号的强度符合前述设定,则证明终端设备位于Z4区域,应理解,图24中的示例仅为方便理解本方案的实现原理的一个示例,不用于限定本方案。
具体的,终端设备上可以预先存储有与车辆外部的多个区域一一对应的多组预设强度信息,车辆外部的目标区域(车辆外部的任意一个区域)所对应的一组预设强度信息包括与至少三个音响一一对应的至少三个目标强度值,一个目标强度值代表当终端设备位于目标区域的中心点时接收到的一个音响发出的音频信号的强度值。作为示例,例如车辆外部被划分为Z1至Z5这5个区域,则终端设备上预先存储有与5个区域一一对应的5组强度信息。
终端设备在获取到第一信号强度、第二信号强度和第三信号强度之后,也即得到了一组实际强度信息,终端设备计算实际强度信息与多组预设强度信息中每组预设强度信息之间的距离,并从多组预设强度信息中选择与实际强度信息距离最近的一组预设强度信息,将距离最近的一组预设强度信息所对应的区域确定为终端设备所在区域。其中,前述距离可以为欧式距离、马氏距离或其他类型的距离等,此处不做穷举。
本申请实施例中,由于当终端设备位于车辆外部的不同位置上时,终端设备与各个音响之间的距离关系不同,音频信号传播越远,终端设备接收到的音频信号的强度越小,则第一信号强度、第二信号强度和第三信号强度能够分别反应终端设备与第一音响、第二音响以及第三音响之间的距离关系,因此能够基于第一信号强度、第二信号强度和第三信号强度得到终端设备位于车辆外部的具体位置,提供了测量终端设备在车辆外部的具体位置的又一实现方式,提高了本方案的实现灵活性。
可选地,车辆在得到终端设备的第二位置信息后,第二位置信息用于供车辆从车辆包括的多个组件中确定与终端设备之间距离最近的组件,以控制与终端设备之间距离最近的组件执行预设操作。其中,组件可以为车门、车灯、后备箱或其他车辆组件,预设操作可以为解锁车门、打开车门、解锁后备箱、打开车灯或其他操作等等,此处不做限定。
为更直观地理解本方案,请参阅图25,图25为本申请实施例提供的位置的获取方法的一个应用场景图。如图25所示,当车辆确定终端设备位于车辆外部的Z1区域时,可以解锁左前侧车门;当车辆确定终端设备位于车辆外部的Z2区域时,可以解锁左后侧车门;当车辆确定终端设备位于车辆外部的Z5区域时,可以解锁后备箱,应理解,图25仅为方便理解本方案的一个示例,不用于限定本方案。
作为另一示例,例如在夜间时,当车辆确定终端设备位于车辆外部的Z1区域时,还可以打开左前侧的车灯,以为用户提供照明;作为另一示例,例如当车辆确定终端设备位于车辆外部的Z2区域时,还可以自动打开车门等等,具体此处不做一一穷举。
本申请实施例中,提供了第二位置信息的具体应用场景,利用第二位置信息为用户提供更为精准的服务,有利于提高本方案的用户粘度。
在图1a至图25所对应的实施例的基础上,为了更好的实施本申请实施例的上述方案,下面还提供用于实施上述方案的相关设备。具体参阅图26,图26为本申请实施例提供的位置的获取装置的一种结构示意图。位置的获取装置2900应用于车辆,车辆包括于位置的获取系统,位置的获取系统还包括终端设备,位置的获取装置2900包括:发送模块2901,用于在检测到满足第一触发条件的情况下,发送至少一个目标音频信号,其中,目标音频信号用于确定与目标音频信号对应的至少一个到达时间;发送模块2901,具体用于按照预设频率发送多个目标音频信号,其中,多个目标音频信号包括第一探测信号和第二探测信号,至少一个到达时间包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间;获取模块2902,用于获取与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部,第一时间集合和第二时间集合中的到达时间之间的时间间隔 用于确定第一位置信息。
在一种可能的设计中,目标音频信号为线性调频信号或ZC序列信号。
在一种可能的设计中,若第一时间集合和第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则第一位置信息指示终端设备位于车辆内部,其中,预设时间范围的确定因素包括车辆发送两个相邻的目标音频信号之间的时间间隔;若第一时间集合和第二时间集合中的到达时间之间的时间间隔不位于预设时间范围内,则第一位置信息指示终端设备位于车辆外部。
在一种可能的设计中,第一时间集合和第二时间集合中的到达时间之间的时间间隔包括:第一时间集合中最晚的时间和第二时间集合中最早的时间之间的时间间隔。
在一种可能的设计中,当发送模块2901检测到如下任一种或多种情况时,视为检测到满足第一触发条件:检测到车辆停车;或者,检测到终端设备与车辆之间的距离满足第一距离条件;或者,获取到第一指令,第一指令用于触发车辆获取第一位置信息。
在一种可能的设计中,发送模块2901,具体用于获取车辆的速度、加速度和角速度,并将车辆的速度、加速度和角速度输入分类模型,得到分类模型输出的预测类别信息,预测类别信息指示车辆处于停止状态或移动状态。
需要说明的是,位置的获取装置2900中各模块/单元之间的信息交互、执行过程等内容,与本申请中图18至图21对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,请参阅图27,图27为本申请实施例提供的位置的获取装置的另一种结构示意图。位置的获取装置3000应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,位置的获取装置3000包括:获取模块3001,用于在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个到达时间,至少一个目标音频信号包括由车辆按照预设频率发出的多个目标音频信号,多个目标音频信号包括第一探测信号和第二探测信号,至少一个到达时间包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达终端设备的至少一个时间;生成模块3002,用于根据第一时间集合和第二时间集合中的到达时间之间的时间间隔,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
在一种可能的设计中,若第一时间集合和第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则第一位置信息指示终端设备位于车辆内部,其中,预设时间范围的确定因素包括车辆发送两个相邻的目标音频信号之间的时间间隔;若第一时间集合和第二时间集合中的到达时间之间的时间间隔不位于预设时间范围内,则第一位置信息指示终端设备位于车辆外部。
在一种可能的设计中,生成模块3002,具体用于根据第一时间集合中最晚的时间和第二时间集合中最早的时间之间的时间间隔,生成第一位置信息。
在一种可能的设计中,当获取模块3001检测到如下任一种或多种情况时,视为检测到 满足第二触发条件:检测到车辆停车;或者,检测到终端设备与车辆之间的距离满足第一距离条件;或者,检测到终端设备的位移符合预设位移;或者,获取到第二指令,第二指令用于触发终端设备获取第一位置信息。
需要说明的是,位置的获取装置3000中各模块/单元之间的信息交互、执行过程等内容,与本申请中图18至图21对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,参阅图28,图28为本申请实施例提供的位置的获取装置的一种结构示意图。位置的获取装置3100应用于车辆,车辆包括于位置的获取系统,位置的获取系统还包括终端设备,位置的获取装置3100包括:发送模块3101,用于按照预设频率发送多个目标音频信号,在车辆处于移动状态的情况下,一个目标音频信号用于确定目标音频信号到达终端设备的一个第一到达时间,在满足第二触发条件的情况下,一个目标音频信号用于确定目标音频信号到达终端设备的一个第二到达时间;获取模块3102,用于获取与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部,多个第一到达时间和至少一个第二到达时间用于确定第一位置信息。
在一种可能的设计中,多个第一到达时间用于确定与第二到达时间对应的第一预测时间,第一预测时间指示在终端设备位于车辆内部的情况下,目标音频信号到达终端设备的时间,第一预测时间和第二到达时间用于确定第一位置信息。
需要说明的是,位置的获取装置3100中各模块/单元之间的信息交互、执行过程等内容,与本申请中图22对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,请参阅图29,图29为本申请实施例提供的位置的获取装置的另一种结构示意图。位置的获取装置3200应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,位置的获取装置3200包括:获取模块3201,用于在车辆处于移动状态的情况下,获取与多个目标音频信号对应的多个第一到达时间,一个第一到达时间代表一个目标音频信号到达终端设备的时间,多个目标音频信号为车辆按照预设频率发出的;生成模块3202,用于在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个第二到达时间,根据多个第一到达时间和至少一个第二到达时间,生成与终端设备对应的第一位置信息,第一位置信息用于指示终端设备位于车辆内部或车辆外部。
在一种可能的设计中,生成模块3202,具体用于根据多个第一到达时间确定与第二到达时间对应的第一预测时间,第一预测时间指示在终端设备位于车辆内部的情况下,目标音频信号到达终端设备的时间;根据第一预测时间和第二到达时间,生成第一位置信息。
需要说明的是,位置的获取装置3200中各模块/单元之间的信息交互、执行过程等内容,与本申请中图22对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,参阅图30,图30为本申请实施例提 供的位置的获取装置的另一种结构示意图。位置的获取装置3300应用于车辆,车辆包括于位置的获取系统,位置的获取系统还包括终端设备,车辆配置有至少三个音响,至少三个音响不位于一条直线上,至少三个音响包括第一音响、第二音响和第三音响,位置的获取装置3300包括:发送模块3301,用于通过第一音响发送第一音频信号,第一音频信号用于确定终端设备接收到的第一音频信号的第一信号强度;发送模块3301,还用于通过第二音响发送第二音频信号,第二音频信号用于确定终端设备接收到的第二音频信号的第二信号强度;发送模块3301,还用于通过第三音响发送第三音频信号,第三音频信号用于确定终端设备接收到的第三音频信号的第三信号强度,第一信号强度、第二信号强度和第三信号强度用于确定与终端设备对应的第二位置信息,第二位置信息用于指示终端设备位于车辆外部的位置。
在一种可能的设计中,第二位置信息用于供车辆从车辆包括的多个组件中确定与终端设备之间距离最近的组件,以控制与终端设备之间距离最近的组件执行预设操作。
需要说明的是,位置的获取装置3300中各模块/单元之间的信息交互、执行过程等内容,与本申请中图23至图25对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了另一种位置的获取装置,请参阅图31,图31为本申请实施例提供的位置的获取装置的另一种结构示意图。位置的获取装置3400应用于终端设备,终端设备包括于位置的获取系统,位置的获取系统还包括车辆,车辆配置有至少三个音响,至少三个音响不位于一条直线上,至少三个音响包括第一音响、第二音响和第三音响,位置的获取装置3400包括:接收模块3401,用于接收第一音响发送的第一音频信号,接收第二音响发送的第二音频信号,接收第三音响发送的第二音频信号;生成模块3402,用于根据接收到的第一音频信号的第一信号强度、接收到的第二音频信号的第二信号强度和接收到的第三音频信号的第三信号强度,生成与终端设备对应的第二位置信息,第二位置信息用于指示终端设备位于车辆外部的位置。
需要说明的是,位置的获取装置3400中各模块/单元之间的信息交互、执行过程等内容,与本申请中图23至图25对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例中的实施例三中,在能够获取到终端设备相对于车辆的位置信息,也即获取到终端设备是位于车内还是车外之后,能够应用到车辆和终端设备的多种交互场景中,如下对多种应用场景一一进行介绍。
实施例三
一、当第一终端设备由车内移动至车外时,对音频流的处理方式
具体的,请参阅图32,图32为本申请实施例提供的音频流的处理方法的一种流程示意图,本申请实施例提供的音频流的处理方法可以包括:
3701、第一终端设备与车辆建立连接,将第一类别和第二类别的音频流的播放设备由第一终端设备切换至车辆。
本申请实施例中,若第一终端设备与车辆首次建立连接,则第一终端设备可以采用蓝牙、无线宽带(wireless fidelity,WIFI)或其他技术等对周围的电子设备进行扫描,若发现预设距离阈值内存在至少一个车辆,则第一终端设备可以向每个车辆发送连接请求,以触发第一终端设备与车辆之间的配对操作。若第一终端设备与至少一个车辆中的一个车辆之间配对成功,则第一终端设备与前述车辆成功建立连接;若第一终端设备与至少一个车辆中的一个车辆之间配对失败,则第一终端设备与前述车辆无法建立连接。
具体的,车辆在接收到第一终端设备发送的连接请求后,响应于接收到的连接请求,生成车辆的个人识别码(personal identification number,PIN),并向第一终端设备发送响应消息。第一终端设备在接收到响应消息后,可以向车辆发送PIN码。车辆将第一终端设备发送的PIN码和生成的PIN码进行匹配,若匹配成功,则证明第一终端设备与该车辆配对成功;若匹配失败,则证明第一终端设备与该车辆配对失败。
若第一终端设备与车辆并非首次建立连接,则第一终端设备可以采用蓝牙、无线宽带(wireless fidelity,WIFI)或其他技术等对周围的电子设备进行扫描,若发现预设距离阈值内存在至少一个已经进行过配对的车辆,则第一终端设备可以向前述车辆发送连接请求,前述车辆响应于获取到的连接请求,与第一终端设备建立连接。
在第一终端设备与车辆处于连接状态的过程中,第一终端设备可以向车辆发送同步数据,对应的,车辆接收第一终端设备发送的同步数据,以实现第一终端设备通过车辆执行如下任一种或多种任务:播放音频流、播放视频、导航、视频通话、通话或其他任务等等,此处不做穷举。
第一终端设备在与车辆建立连接之后,可以将第三类别的音频流的播放设备由第一终端设备切换至车辆。其中,第三类别包括至少两个类别的音频流,该至少两个类别的音频流包括第一类别和第二类别,具体第三类别的音频流包括哪些类别的音频流可以结合实际应用场景灵活确定,作为示例,例如第三类别可以包括媒体、通话或其他类型的音频流等;对于第一类别和第二类别的含义将在后续步骤中进行说明,此处暂时不做解释。
具体的,第一终端设备上可以存储有指示信息,该指示信息记录有第三类别的音频流包括的至少两个类别的音频流采用哪种播放设备,则第一终端设备可以更新该指示信息,更新前的指示信息指示第三类别的音频流的播放设备为第一终端设备,更新后的指示信息指示第三类别的音频流的播放设备为车辆。
作为示例,例如第三类别的音频流可以有第一终端设备的扬声器、第一终端设备的听筒、与第一终端设备处于连接状态的车辆或其他可能的播放设备等,此处不做穷举。
进一步地,上述指示信息具体可以表现为表格、标志位或其他信息类型等等,此处不做穷举。
3702、在第一终端设备与车辆处于连接状态的过程中,第一终端设备或车辆检测到第一终端设备从车内移动至车外。
本申请实施例中,在第一终端设备与车辆处于连接状态的过程中,第一终端设备或车辆可以检测到第一终端设备在预设时间段内的第一位置信息,根据第一终端设备在预设时间段内的第一位置信息,可以得知第一终端设备是否由从车内移动至车外。
可选地,在第一终端设备与车辆处于连接状态,且第一终端设备通过车辆进行投屏的过程中,第一终端设备或车辆检测到第一终端设备从车内移动至车外。
其中,第一终端设备指的是与车辆已经建立连接且位于车内的终端设备;可选地,第一终端设备指的是与车辆已经建立连接、通过车辆执行投屏操作且位于车内的终端设备。
预设时间段的取值范围例如可以为10秒至2分钟,作为示例,例如预设时间段的取值可以为20秒、370秒、45秒、1分钟、80秒、90秒或其他取值等等,具体预设时间段的取值可以结合实际应用产品灵活设定,此处不做限定。
更具体的,在一种实现方式中,可以采用实施例二中提供的方案来获取预设时间段内第一终端设备的第一位置信息,也即在实施例二中,当车辆检测到满足第一触发条件和/或第一终端设备检测到满足第二触发条件的情况下,车辆和第一终端设备启动第一位置感知操作,并在该预设时间段内持续获取第一终端设备的第一位置信息。若第一终端设备或车辆检测到第一终端设备从车内移动至车外,则触发进入步骤3702,若第一终端设备或车辆检测到第一终端设备一直位于车内,则第一终端设备可以继续通过车辆进行投屏。
具体的,车辆按照预设频率发送多个目标音频信号,其中,多个目标音频信号包括第一探测信号和第二探测信号,至少一个到达时间包括第一探测信号所对应的第一时间集合和第二探测信号所对应的第二时间集合,第一时间集合包括第一探测信号通过直射和/或反射到达第一终端设备的至少一个时间,第二时间集合包括第二探测信号通过直射和/或反射到达第一终端设备的至少一个时间;第一终端设备根据第一时间集合和第二时间集合中的到达时间之间的时间间隔,生成与终端设备对应的第一位置信息,第一位置信息用于指示第一终端设备位于车辆内部或车辆外部;根据第一终端设备在预设时间段内的第一位置信息,确定第一终端设备从车内移动至车外。
需要说明的是,上述步骤的具体实现方式可以参阅实施例二中的描述,此处不做赘述。
在另一种实现方式中,当车辆检测到满足第一触发条件和/或第一终端设备检测到满足第二触发条件的情况下,车辆或第一终端设备可以基于超宽带(ultra wide band,UWB)技术、蓝牙技术或其他技术,在预设时间段内持续获取第一终端设备和车辆之间的距离,根据预设时间段内第一终端设备和车辆之间的距离,确定第一终端设备在预设时间段内的第一位置信息。其中,若第一终端设备和车辆之间的距离大于或等于预设距离阈值,则证明第一终端设备位于车外;若第一终端设备和车辆之间的距离小于预设距离阈值,则证明第一终端设备位于车内。
需要说明的是,车辆或第一终端设备还可以通过其他技术来生成第一终端设备的第一位置信息,此处不再一一进行列举。
此外,若由车辆检测到第一终端设备从车内移动至车外,则车辆会向第一终端设备发送指示信息,该指示信息用于指示第一终端设备在该预设时间段内由车内移动至车外。或者,若是由车辆检测到第一终端设备一直位于车内,则车辆会向第一终端设备发送指示信息,该第一指示信息用于指示第一终端设备在该预设时间段内一直位于车内。
可选地,为了保证用户在通话过程的良好体验,则可以在第一终端设备与车辆处于连接状态时,若第一终端设备通过车辆播放的目标音频流所对应的目标类别为通话,则在用 户通过第一终端设备进行通话的过程中,第一终端设备和车辆可以不获取第一终端设备的第一位置信息;也即在用户通过第一终端设备进行通话的过程中,第一终端设备和车辆不会检测第一终端设备是否由车内移动至车外。
若用户想要将类别为通话的目标音频流的播放设备由车辆切换为其他电子设备,需要用户主动输入第一切换操作,第一终端设备或车辆响应于接收到的第一切换操作,将目标类别为通话的目标音频流的播放设备切换至与第一切换操作对应的电子设备。
其中,类别为通话的音频流可以包括:通过即时通信类的应用程序进行通话时所产生的音频流、通过即时通信类的应用程序进行视频时所产生的音频流或其他被归类为通话的音频流等。
具体的,针对用户主动输入第一切换操作的方式。在一种实现方式中,用户可以通过第一终端设备的显示界面输入第一切换操作,或者,用户可以通过车辆的显示界面输入第一切换操作。为了更直观地理解本方案,请参阅图33,图33为本申请实施例提供的音频流的处理方法中第一切换操作的接收界面的一种示意图。图33中展示的为车辆的中控屏的显示界面的一个示例,如图所示,类型为通话的目标音频流的当前播放设备为车辆中配置的音响,图33中还示出了终端设备的扬声器、终端设备的听筒和与终端设备连接的蓝牙三种方式,则用户可以通过点击显示界面上的图标的方式输入第一切换操作,应理解,图33中的示例仅为方便理解本方案,不用于限定本方案。
在另一种实现方式中,在第一终端设备通过车辆播放类型为通话的目标音频流的过程中,若第一终端设备检测到用户把第一终端设备贴近耳朵,则可以视为用户通过第一终端设备输入第一切换操作,且该第一切换操作所对应的播放设备为第一终端设备的听筒。
作为示例,例如当用户把第一终端设备贴近耳朵时,第一终端设备可以通过电容屏进行耳廓贴近检测,以检测到用户把第一终端设备贴近耳朵。或者,第一终端设备可以通过陀螺仪、重力传感器、接近光传感器等器件检测到自身被拿起且靠近耳边的动作,从而判断出用户把第一终端设备贴近耳朵。需要说明的是,第一终端设备还可以通过其他技术检测到用户是否将第一终端设备贴近耳朵,此处举例仅为证明本方案的可实现性,不用于限定本方案。
进一步可选地,在用户通过第一终端设备进行的通话结束后,可以触发第一终端设备或车辆获取第一终端设备的位置信息,若检测到第一终端设备位于车外,则可以将由车辆播放的至少一种类型的音频流的播放设备由车辆切换至第一终端设备;或者,也可以将除了媒体之外的其他类型的音频流的播放设备由车辆切换至第一终端设备。
在检测第一终端设备位于车外之后,车辆的中控屏的显示界面可以切换至离车模式。在离车模式下车辆的中控屏的显示界面所展示的内容可以为如下任一种或多种组合:黑屏、壁纸、显示时间或插画、提示信息或其他信息;前述提示信息用于指示车辆的中控屏现在的状态,需要说明的是,在离车模式下车辆的中控屏上还可以展示其他信息,具体展示哪些信息可以结合实际产品形态灵活设定,此处不做穷举。
本申请实施例中,在第一终端设备与车辆处于连接状态的过程中,当需要进行拾音操作时,具体采用第一终端设备上的拾音设备还是采用车辆的拾音设备,可以根据通话这一 类别的音频流所采用的播放设备决定。也即若第一终端设备通过车辆播放通话这一类别的音频流,则第一终端设备可以通过车辆进行拾音;若第一终端设备通过第一终端设备播放通话这一类别的音频流,则第一终端设备可以通过第一终端设备进行拾音。其中,拾音设备具体可以采用麦克风或其他类型的拾音设备等。
本申请实施例中,在第一终端设备与车辆处于连接状态的过程中,在第一终端设备一直位于车内的过程中,若第一终端设备检测到耳机与第一终端设备之间建立了连接,则在一种实现方式中,可以自动将第三类别包括的所有类别的音频流的输出设备切换为耳机;在另一种实现方式中,第一终端设备可以输出询问信息,该询问信息用于询问是否将所有类别的音频流的输出设备切换为耳机。第一终端设备可以响应用户输入的切换操作,将所有类别的音频流的输出设备均切换为耳机。
3703、第一终端设备判断是否存在正在通过车辆播放的目标音频流,若判断结果为是,则进入步骤3704;若判断结果为否,则将第三类别的音频流的播放设备由车辆切换至第一终端设备,第三类别包括第一终端设备通过车辆播放的音频流所对应的所有类别。
本申请的一些实施例中,第一终端设备在确定第一终端设备由车内移动至车外时,可以判断第一终端设备是否存在正在通过车辆播放的目标音频流,若判断结果为是,则触发进入步骤3704;若判断结果为否,则触发将第三类别的音频流的播放设备均由车辆切换至第一终端设备,第三类别包括第一终端设备通过车辆播放的音频流所对应的所有类别。
具体的,在第一终端设备与车辆处于连接状态的过程中,在第一终端设备由车内移动至车外的过程中,若第一终端设备未通过车辆播放任何音频流,则可以将第三类别包括的所有类别的音频流的播放设备均由车辆切换至第一终端设备,车辆的中控屏的显示界面可以进入离车模式。
为了更直观地理解本方案,请参阅图34,图34为本申请实施例提供的音频流的处理方法中离车模式的一种示意图。图34包括(a)、(b)和(c)三个子示意图,图34的(a)、(b)和(c)三个子示意图示出的均为将第三类别包括的所有类别的音频流的播放设备均由车辆切换至第一终端设备后,车辆的中控屏的显示界面,应理解,图34中的示例仅为方便理解本方案,不用于限定本方案。
3704、第一终端设备获取与车辆正在播放的目标音频流对应的目标类别。
本申请实施例中,在第一终端设备与车辆处于连接状态时,当检测到第一终端设备从车内移动至车外,且第一终端设备存在正在通过车辆播放的目标音频流时,第一终端设备可以获取与车辆正在播放的目标音频流对应的目标类别。
其中,目标音频流所对应的类别可以包括:通话、媒体(music)、系统或其他类别;类别为系统的音频流可以包括:来电时的响铃(ring)、闹钟或倒计时(alarm)、语音助手播报、通知(notification)、触摸屏幕时的声音、锁屏音、拨号按键音、拍照音效、截屏音效、屏幕朗读或其他音效中的一种或几种等等,此处不做穷举。需要说明的是,具体哪些类型的音频流能够通过车辆播放,可以结合实际产品确定,此处不做限定。
3705、第一终端设备判断目标类别是否为第一类别,若判断结果为是,则进入步骤3706;若判断结果为否,则进入步骤3709。
本申请实施例中,第一终端设备在获取到车辆正在播放的目标音频流所对应的目标类别后,可以判断目标类别是否为第一类别,若目标类别为第一类别,则进入步骤3706,若目标类别不是第一类别,则进入步骤3709。
其中,第一类别可以包括媒体,类别为媒体的音频流可以包括:音乐、视频、游戏类应用程序产生的音频流、即时通信类应用程序中的音频、或其他归类为媒体的音频流等等,此处不做穷举。
本申请实施例中,由于类别为媒体的音频流一般娱乐性较强,且对隐私性的要求较弱,当第一终端设备由车内移动至车外后,只有当车辆正在播放的目标音频流的类型为媒体的情况下,才会由车辆继续播放该目标音频流,既保证了车内其他人员的娱乐性,又尽量避免了用户的隐私泄露。
当然,本申请实施例中,第一类别也可以是除了媒体以外的其它类别,此处不做限定。
3706、第一终端设备继续向车辆发送目标音频流,然后进入步骤3707。
本申请实施例中,步骤3705为可选步骤,若不执行步骤3705,则可以在执行完步骤3704后进入步骤3706,第一终端设备可以继续向车辆发送目标音频流,对应的,车辆在接收到第一终端设备发送的目标音频流后,会继续播放该目标音频流,也即在第一终端设备由车内移动至车外后,目标类别的音频流的播放设备依旧为车辆。
可选地,还可以将第三类别中除目标类别之外的其他类别的音频流的播放设备由车辆切换至第一终端设备,第三类别包括所有第一终端设备通过车辆播放的音频流的类别。
若执行步骤3705,则第一终端设备在确定车辆正在播放的目标音频流所对应的目标类别属于第一类别的情况下,可以继续向车辆发送目标音频流,对应的,车辆在接收到第一终端设备发送的目标音频流后,会继续播放该目标音频流,也即在第一终端设备由车内移动至车外后,第一类别的音频流的播放设备依旧为车辆。
在检测到第一终端设备由车内移动至车外后,车辆的中控屏的显示界面可以切换至离车模式。为了更直观地理解本方案,请参阅图35,图35为本申请实施例提供的音频流的处理方法中离车模式的一种示意图。图35包括(a)、(b)、(c)和(d)四个子示意图,图35的(a)子示意图代表当第一终端设备位于车内,且第一终端设备通过车辆播放媒体类型的音频流时的界面;图35的(b)、(c)和(d)子示意图代表当第一终端设备由车内移动至车外后,车辆的中控屏的三种不同的显示界面,应理解,图35中的示例仅为方便理解本方案,不用于限定本方案。
具体的,针对第一终端设备通过车辆播放目标音频流的过程。在一种实现方式中,若车辆辅助设备为车辆的后装设备,则第一终端设备可以将目标音频流发送给车辆配置的车辆辅助设备(也即车辆的中控屏的一个示例),以通过车辆辅助设备的音响播放目标音频流,并通过车辆辅助设备的屏幕展示投屏数据。
在另一种实现方式中,若车辆辅助设备为车辆的后装设备,则第一终端设备可以将目标音频流发送给车辆的处理器,以通过位于车辆主体部分的音响播放目标音频流,并将其他投屏数据发送给车辆配置的车辆辅助设备(也即车辆的中控屏的一个示例),以通过车辆辅助设备的屏幕展示投屏数据。
在另一种实现方式中,若车辆中未配置有车辆辅助设备,则第一终端设备可以将所有投屏数据都发送给车辆的处理器,以通过车辆主体部分的音响播放目标音频流,并通过集成于车辆中的车载电脑的屏幕展示投屏数据。
可选地,在第一终端设备通过车辆播放第一类别的音频流的同时,第一终端设备可以输出第一信息,第一信息用于提示用户将第一类别的音频流的播放设备由车辆切换至第一终端设备。进一步地,第一终端设备展示第一信息的形式包括但不限于以弹框形式展示第一信息、在下拉框中展示第一信息、以切换图标的形式展示第一信息或其他方式等等,此处不做穷举。
若第一终端设备基于第一信息获取到用户输入的第一切换操作,则响应于获取到的第一切换操作,将第一类别的音频流的播放设备由车辆切换至第一终端设备,则第一终端设备中止向车辆发送第一类别的音频流。
为了更直观地理解本方案,请参阅图36,图36为本申请实施例提供的音频流的处理方法中第一终端设备展示第一信息的两种示意图。图36包括(a)和(b)两个子示意图,图36的(a)子示意图中的C1区域示出的为采用弹框的形式展示第一信息,用户可以通过点击C1区域的“切换至手机”以输入第一切换操作;图36的(b)子示意图中的C2区域示出的为在下拉框中展示第一信息,用户可以通过点击C1区域的“音视频切换至手机”以输入第一切换操作等,应理解,图36中的示例仅为方便理解第一信息的展示方式,具体第一信息的展示方式以及第一切换操作的获取方式均可以结合实际产品形态灵活设定,此处均不做一一列举。
本申请实施例中,在继续由车辆播放目标音频流的同时,会输出第一信息,第一信息用于提示用户将第一类别的音频流的播放设备由车辆切换至第一终端设备,也即当用户可以根据实际情况来决定是否将第一类别的音频流的播放设备切换回第一终端设备,提高了本方案在音频流的播放设备的切换过程的灵活性。
3707、第一终端设备将第三类别中除目标类别之外的其他类别的音频流的播放设备由车辆切换至第一终端设备。
本申请的一些实施例中,步骤3705为可选步骤,若不执行步骤3705,在检测到第一终端设备由车内移动至车外后,第一类别的音频流的播放设备依旧为车辆的同时,可以将第三类别中除目标类别之外的其他类别的音频流的播放设备由车辆切换至第一终端设备。
具体的,在第一终端设备已经位于车外、且通过车辆播放第一类别的音频流的同时,若第一终端设备需要播放新的音频流,则第一终端设备可以获取与新的音频流对应的类别,若与新的音频流对应的类别不是目标类别,由于第三类别中除目标类别之外的其他类别的音频流的播放设备已经由车辆切换至第一终端设备,则可以由第一终端设备播放前述新的音频流,且第一终端设备不向车辆发送前述新的音频流。
进一步地,若第一终端设备上存储有指示信息,该指示信息记录有第三类别的音频流包括的至少两个类别的音频流采用哪种播放设备,则第一终端设备还需要对该指示信息再次进行更新。其中,更新前的指示信息指示第三类别的音频流包括的至少两个类别的音频流的播放设备均为车辆,若不执行步骤3705,则更新后的指示信息可以指示第三类别中除 目标类别之外的其他类别的音频流的播放设备为第一终端设备;若执行步骤3705,由于目标类别的音频流被确定为第一类别的音频流,第三类别的音频流包括第一类别的音频流和第二类别的音频流,则更新后的指示信息可以指示第二类别的音频流的播放设备为第一终端设备。
本申请实施例中,在第一终端设备由车内移动至车外后,不仅由车辆继续播放第一类别的音频流,且将第二类别的音频流的播放设备由车辆切换至第一终端设备,第一类别和第二类别为不同的类别,也即将部分音频流的播放设备保持为车辆,将另一部分音频流的播放设备由车辆切换至第一终端设备,从而可以实际情况灵活设定哪些类别的音频流继续由车辆播放,哪些类别的音频流的播放设备切换至第一终端设备,提高了本方案的实现灵活性。
若执行步骤3705,则第一终端设备在确定目标类别为第一类别的情况下,继续向车辆发送第一类别的目标音频流,也即步骤3707也可以被描述为将第一终端设备生成的第二类别的音频流的播放设备由车辆切换至第一终端设备。其中,第二类别和第一类别为不同的类别,第二类别可以包括第三类别包括的音频流中除第一类别的音频流之外的所有类别的音频流。
具体的,在第一终端设备已经位于车外、且通过车辆播放第一类别的音频流的同时,若第一终端设备需要播放新的音频流,则第一终端设备可以获取与新的音频流对应的类别,若与新的音频流对应的类别为第二类别,由于第二类别的音频流的播放设备已经由车辆切换至第一终端设备,则可以由第一终端设备播放第二类别的音频流,且第一终端设备不向车辆发送第二类别的音频流。
需要说明的是,步骤3707为可选步骤,若不执行步骤3707,则在另一种实现方式中,在检测到第一终端设备由车内移动至车外后,由于目标音频流的播放设备依旧为车辆,则可以将第三类别包括的所有类别的音频流的播放设备均默认为车辆。
当第一终端设备需要播放新的音频流时,第一终端设备可以输出第三信息,第三信息用于提示用户将第三类别包括的所有类别的音频流的播放设备由车辆切换至第一终端设备。需要说明的是,第一终端设备输出第三信息的具体实现方式,可以和第一终端设备输出第一信息的具体实现方式类似,可直接参阅上述描述,此处不做赘述。
3708、当第一终端设备获取到对第一音频流的播放操作时,输出第一信息,第一音频流的类别为第一类别,且第一音频流与车辆正在播放的目标音频流不同,第一信息用于提示用户将第一类别的音频流的播放设备由车辆切换至第一终端设备。
本申请的一些实施例中,在第一终端设备通过车辆继续播放目标音频流的过程中,若第一终端设备获取到针对新的第一音频流的播放操作时,可以获取新的第一音频流的类别,若新的第一音频流的类别为第一类别,则第一终端设备可以输出第一信息,用户基于第一信息能够选择将第一类别的音频流的播放设备由车辆切换至第一终端设备。
其中,第一终端设备获取到的类别为第一类别的新的音频流的播放操作,与车辆正在播放的目标音频流可以来源于同一个应用程序,也可以来源于不同的应用程序。作为示例,例如车辆正在播放的目标音频流来源于视频类应用程序,第一终端设备获取到针对新的音 频流的播放操作来源于音乐类应用程序;作为另一示例,例如车辆正在播放的目标音频流来源于视频类应用程序1,第一终端设备获取到针对新的音频流的播放操作也来源于该视频类应用程序1,应理解,此处举例仅为方便理解本方案,不用于限定本方案。
第一终端设备展示第一信息的形式包括但不限于以弹框形式展示第一信息、在下拉框中展示通知、以切换图标的形式展示第一信息或其他方式等等,此处不做穷举。
具体的,在一种实现方式中,若在步骤3707中,第二类别的音频流的播放设备已经从车辆转换为第一终端设备,则当第一终端设备获取到针对新的音频流的播放操作时,可以获取新的音频流的类别,若新的第一音频流的类别为第一类别,则第一终端设备可以通过车辆播放该新的第一音频流,并输出第一信息,使得用户能够基于第一信息把该新的音频流(即第一类别的第一音频流)切换到第一终端设备;若新的第一音频流的类别为第二类别,则第二终端设备可以通过第一终端设备播放第二类别的音频流。
若第一终端设备获取到用户基于第一信息输入的第二切换操作,则响应于获取到的第二切换操作,将第一类别的音频流的播放设备由车辆切换至第一终端设备。
在将第一类别的音频流的播放设备由车辆切换至第一终端设备后,可以触发第一终端设备暂停播放该音频流,也可以触发第一终端设备继续播放之前由车辆播放的音频流。可选地,第一终端设备可以以前台和/或后台的方式展示第一类别的音频流的管理接口,第一类别的音频流的管理接口用于控制第一类别的音频流的播放/暂停播放/终止播放。
作为示例,例如第一类别的音频流的管理接口的展示形式可以为如下任一种或多种的组合:在锁屏界面展示通知、在下拉框中展示通知、在主界面展示控制微件、在第一类别的音频流所对应的应用程序内展示管理接口、在控制中心展示管理结果或其他方式展示该管理接口等等,此处不做穷举。
为了更直观地理解本方案,请参阅图37,图37为本申请实施例提供的音频流的处理方法中第一信息的一种示意图。图37包括(a)、(b)和(c)三个子示意图,图37的(a)子示意图和图37的(c)子示意图中未展示第一信息,图37的(c)子示意图中展示有第一信息。图37中以第一类别为媒体为例。图37的(a)子示意图示出的为当第一终端设备播放的为第二类别的音频流时,第一终端设备所展示的界面,由于图37中以第二类别的音频流的播放设备已切换至第一终端设备为例,因此,图37的(a)子示意图中不会出现第一信息;图37的(b)子示意图示出的为当第一终端设备播放的为第一类别的音频流时,第一终端设备所展示的界面,图37的(b)子示意图中的D1区域以弹框形式输出第一信息;图37的(c)子示意图代表当用户基于图37的(b)子示意图输出的第一信息将第一类别的音频流的播放设备由车辆切换至第一终端设备后,车辆的中控屏所展示的离车模式;应理解,图37中的示例仅为方便理解本方案,不用于限定本方案。
在一种实现方式中,若不包含步骤3707,即由车辆播放的所有类别(包括第一类别和第二类别)的音频流的播放设备均依旧默认为车辆,则在第一终端设备获取到针对新的音频流的播放操作时,无论新的音频流的类别为第一类别还是第二类别,第一终端设备均可以输出第一信息,第一信息用于提示用户将所有类别的音频流的播放设备由车辆切换至第一终端设备。进一步地,第一终端设备展示第一信息的方式可以参阅上述描述,此处不做 赘述。
本申请实施例中,当再次获取到针对第一类别的音频流的播放操作时,会触发输出第一信息,第一信息用于提示用户将第一类别的音频流的播放设备由车辆切换至第一终端设备,也即当用户再次利用第一终端设备播放第一类别的音频流时,就可以根据实际情况来决定是否将第一类别的音频流的播放设备切换回第一终端设备,提高了本方案在音频流的播放设备的切换过程的灵活性。
3709、第一终端设备中止向车辆发送目标音频流。
本申请实施例中,若在步骤3705中,第一终端设备确定车辆正在播放的目标音频流所对应的目标类别不是第一类别,则可以将第一终端设备产生的所有类别(包括第一类别和第二类别)的音频流的播放设备都由车辆切换至第一终端设备。也即第一终端设备中止向车辆发送目标音频流,对应的,车辆的中控屏的显示界面可以进入离车模式,在前述离车模式中,车辆可以通过中控屏的显示界面提示用户“第一终端设备的所有操作均以切换至第一终端设备”。
或者,在步骤3708之后,若用户根据第一信息,选择将第一类别的音频流的播放设备由车辆切换至第一终端设备,则第一终端设备中止向车辆发送音频流。
如前所述,在具体实现方式中,步骤3705和步骤3707都可以是可选的。例如:在一种实现方式中,可以包括前述步骤3701-步骤3704、步骤3706-步骤3709。或者,在另一种实现方式中,可以包括前述步骤3701-步骤3706、步骤3708和步骤3709;在该实现方式中,在步骤3705中确定目标类别为第一类别时,第一终端设备对所有类别的音频流对应的播放设备都不进行切换;之前某一类别的音频流的播放设备是车辆的,则还在车辆中播放;之前某一类别的音频流的播放设备是第一终端设备的,则还在第一终端设备中播放。
本实现方式中,不仅提供了当目标音频流为第一类别的情况下的处理方式,还提供了当目标音频流不是第一类别的情况下的处理方式,提高了本方案的完整性,扩展了本方案的应用场景。
本申请实施例中,在第一终端设备与车辆处于连接状态的过程中,当检测到第一终端设备从车内移动至车外时,获取与车辆正在播放的目标音频流对应的目标类别,目标音频流为第一终端设备发送至车辆的;若目标类别为第一类别,则由车辆继续播放目标音频流;通过前述方案,能够根据车辆正在播放的音频流的具体类型来确定是否将音频流的播放设备切换回第一终端设备,提高了音频流播放过程的灵活性,有利于提高本方案的用户粘度。
或者,本申请实施例中,在第一终端设备与车辆处于连接状态的过程中,当检测到第一终端设备从车内移动至车外时,获取与车辆正在播放的目标音频流对应的目标类别,目标音频流为第一终端设备发送至车辆的;然后第一终端设备将该目标音频流继续通过车辆进行播放,但是把除所述目标类别的其它类别的音频流的播放设备切换为第一终端设备。使得该目标音频能够在终端设备离开车辆后继续的车辆上播放,但是终端设备中后续需要播放其它类型的音频流时,可以自动的在终端设备中播放其它类型的音频流。通过前述方案,能够根据车辆正在播放的音频流的具体类型来部分切换播放设备,提高了音频流播放过程的灵活性,有利于提高本方案的用户粘度。
二、当第一终端设备由车外移动至车内时,对音频流的处理方式
本申请的一些实施例中,当检测到第一终端设备由车外移动至车内时,可以将第一终端设备生成的音频流的输出设备切换至车辆;对应的,车辆退出离车模式。需要说明的是,检测第一终端由车外移动至车内的具体实现方式可以参阅上述步骤301中的描述,此处不做赘述。
可选地,在用户携带第一终端设备由车外移动至车内的过程中,若用户通过第一终端设备进行通话,则为了保证通话过程的隐私性,车辆和第一终端设备可以不获取第一终端设备的第一位置信息,也即不再检测到第一终端设备的位置变化情况。
在用户通过第一终端设备通话结束后,第一终端设备可以触发获取第一终端设备的第一位置信息,以检测第一终端设备是否位于车内,若第一终端设备位于车内,则可以将第一终端设备生成的至少一种类别的音频流的输出设备切换至车辆;对应的,车辆退出离车模式。需要说明的是,获取第一终端设备的第一位置信息的具体实现方式可以参阅上述步骤301中的描述,此处不做赘述。
进一步可选地,用户可以手动输入切换操作,以将第一终端设备的播放设备由第一终端设备切换至车辆。其中,用户可以通过第一终端设备的显示界面输入前述切换操作;或者,用户可以通过第一终端设备上配置的按键输入前述切换操作,或者,用户可以通过语音的形式输入前述切换操作等等,此处不做穷举。
为了更直观地理解本方案,请参阅图38a,图38a为本申请实施例提供的音频流的处理方法中与切换操作对应的一种示意图。如图38a所示,第一终端设备的通话界面上可以展示有多个播放设备的选择列表,从而用户可以通过点击对应图标的方式来输入该切换操作,图38a中以手动将播放设备切换至车辆为例,应理解,图38a中的示例仅为方便理解本方案,不用于限定本方案。
本申请的一些实施例中,当车辆的中控屏展示为离车模式时,用户还可以输入切换操作,以使得车辆退出离车模式。前述切换操作的输入方式包括但不限于:点击与切换操作对应的图标、点击与切换操作对应的按钮、输入退出离车模式的语音指令或其他方式等等,此处不做限定。
可选地,在车辆获取到用户输入的切换操作时,前述切换操作用于指示车辆退出离车模式,车辆响应于接收到的切换操作,还可以触发输出指示信息,前述指示信息用于供用户再次确认是否指示车辆退出离车模式。
为了更直观地理解本方案,请参阅图38b,图38b为本申请实施例提供的音频流的处理方法中输出指示信息的一种示意图。图38b包括左右两个子示意图,当用户点击图38b的左子示意图中的“退出”时,可以触发进入图38b的右子示意图,图38b的右子示意图中以通过文本框的形式输出提示信息为例,应理解,图38b中的示例仅为方便理解本方案,不用于限定本方案。
具体的,在车辆检测到退出离车模式后,在一种实现方式中,可以将第三类别包括的所有类别的音频流的播放设备切换至车辆,第三类别包括第一终端设备通过车辆播放的音频流所对应的所有类别。
在另一种实现方式中,在车辆检测到退出离车模式后,若第一终端设备未处于通话状态,则可以将第三类别包括的所有类别的音频流的播放设备均切换至车辆,第三类别包括第一终端设备通过车辆播放的音频流所对应的所有类别。
若第一终端设备正处于通话状态,则在一种实现方式中,第一终端设备可以将第三类别包括的所有类别的音频流的播放设备依旧默认为第一终端设备,在前述通话结束后,再将第三类别包括的所有类别的音频流的播放设备由第一终端设备切换至车辆。
在另一种实现方式中,在车辆检测到退出离车模式后,若第一终端设备处于通话状态,第一终端设备可以将生成的第四类别的音频流的播放设备由第一终端设备切换至车辆,将第一终端设备生成的通话类别的音频流的播放设备依旧保持为第一终端设备,在前述通话结束后,再将前述通话类别的音频流的播放设备由第一终端设备切换至车辆。其中,第四类别的音频流包括第三类别包括的所有类别中除通话类别的音频流之外的所有类别的音频流。
在另一种实现方式中,在车辆检测到退出离车模式后,若第一终端设备正处于通话状态,则用户可以手动输入切换操作,以将第三类别包括的所有类别的音频流的播放设备由第一终端设备切换至车辆,具体实现方式与上述图38a所对应的实施例类似,此处不做一一赘述。
本申请的一些实施例中,若检测到第一终端设备到达车内之前,用户已经佩戴有耳机(也即第一终端设备与耳机之间已经建立有连接),则当第一终端设备位于车辆内部时,若检测到第一终端设备与耳机之间的连接断开,则第一终端设备可以将目标事件发送至车辆,目标事件为第一终端设备与耳机之间处于连接断开状态。
该目标事件可以触发获取第一终端设备的第一位置信息,若第一终端设备的第一位置信息指示第一终端设备位于车内,则可以触发车辆自动退出离车模式,将第三类别包括的所有类别的音频流的播放设备由第一终端设备切换至车辆。
可选地,若第一终端设备未处于通话状态,该目标事件才可以触发获取第一终端设备的第一位置信息,若第一终端设备的第一位置信息指示第一终端设备位于车内,则可以触发车辆自动退出离车模式,将第三类别包括的所有类别的音频流的播放设备由第一终端设备切换至车辆。
进一步地,在将第三类别包括的所有类别的音频流的播放设备由第一终端设备切换至车辆的过程中,若第一终端设备正播放有音频流,则车辆可以暂停播放前述音频流,或者,车辆也可以继续播放前述音频流。
三、当第一终端设备在车内和车外之间移动时,针对第一终端设备的导航任务的处理
本申请的一些实施例中,在第一终端设备尚未与车辆连接时,在用户通过第一终端设备进行目的地搜索,并得到至少一条导航路线的过程中,第一终端设备与车辆之间建立起连接,可以触发获取第一终端设备的第一位置信息,若第一终端设备的第一位置信息指示第一终端设备位于车内,则可以将前述导航任务转移至车辆。
本申请的一些实施例中,在第一终端设备通过车辆所执行的导航操作尚未结束时,若检测到第一终端设备由车内移动至车外,则可以触发将该导航任务转移至第一终端设备。
其中,当车辆或第一终端设备检测到如下任一种或多种情况时,可以证明该导航任务尚未结束:尚未到达该导航任务所对应的目的地、检测到车辆目前定位与该导航任务所对应的目的地之间的距离大于或等于预设距离阈值、检测到有正在运行的导航任务或其他方式等等,此处不做穷举。
在将该导航任务转移至第一终端设备后,第一终端设备可以通过如下任一种或多种继续执行该导航任务:在锁屏界面展示进入该导航任务的接口、在下拉框中展示进入该导航任务的接口、在主界面增加进入该导航任务的接口、触发打开第一终端设备的导航类应用程序、在控制中心增加进入该导航任务的接口或其他方式等等,此处不做穷举。
本申请实施中,在第一终端设备上及时的设置进入导航任务的接口,以便于用户快速进入该导航任务,有利于缩短导航过程所花费的时间,以提高本方案的用户粘度。
可选地,由于检测到第一终端设备由车内移动至车外,则第一终端设备在继续执行该导航任务时,可以自动切换导航模式,例如导航模式从“驾车”自动切换至“公交地铁”,或者,导航模式从“驾车”自动切换至“步行”。本申请实施中,自动切换至与用户当前状态更为匹配的导航模式,有利于缩短导航过程所花费的时间,以提高本方案的用户粘度。
为了更直观地理解本方案,请参阅图39,图39为本申请实施例提供的数据的处理方法的一种流程示意图,本申请实施例提供的地址的处理方法可以包括:
E1、在第一终端设备通过车辆执行导航任务的过程中,第一终端设备或车辆检测到第一终端设备从车内移动至车外。
本申请实施例中,在第一终端设备与车辆处于连接状态,且第一终端设备通过车辆执行导航任务的过程中,第一终端设备或车辆可以检测到第一终端设备从车内移动至车外。步骤E1的具体实现方式可以参阅实施例三中图32.对应实施例中的描述,此处不做赘述。
E2、第一终端设备判断该导航任务是否尚未结束,若判断结果为是,则进入步骤E3;若判断结果为否,则终止操作。
本申请实施例中,第一终端设备判断该导航任务是否尚未结束的具体实现方式可以参阅上述描述,此处不做赘述。
E3、第一终端设备切换该导航任务所对应的导航模式。
本申请的一些实施例中,由于第一终端设备检测到第一终端设备从车内移动至车外,则可触发自动切换该导航任务所对应的导航模式。例如导航模式从“驾车”自动切换至“公交地铁”,或者,导航模式从“驾车”自动切换至“步行”等,此处不做穷举。
E4、第一终端设备继续执行该导航任务。
本申请实施例中,步骤E3为可选步骤,若执行步骤E3,则第一终端设备可以采用切换后的导航模式继续执行该导航任务;若不执行步骤E3,则第一终端设备采用之前车辆所采用的导航模式继续执行该导航任务。
应理解,图39中的示例仅为方便理解本方案,不用于限定本方案。
四、在第一终端设备与车辆处于连接状态的过程中,第二终端设备向车辆发送导航目的地
本申请实施例中,在一种应用场景中,在第一终端设备与车辆处于连接状态的过程中, 若车辆正在执行导航任务时,车辆内用户可以通过第二终端设备向车辆发送目标地址,以变更该导航任务的目的地;在另一种应用场景中,在第一终端设备与车辆处于连接状态的过程中,当车辆未执行导航任务时,车辆内用户可以通过第二终端设备向车辆发送目标地址,以触发车辆开始以该目标地址作为目的地进行导航。需要说明的是,还可以在其他应用场景中,车辆内用户可以通过第二终端设备向车辆发送导航目的地,此处不做穷举。
具体的,请参阅图40,图40为本申请实施例提供的地址的处理方法的一种流程示意图,本申请实施例提供的地址的处理方法可以包括:
4501、第二终端设备在显示界面上显示目标地址。
本申请实施例中,用户在使用第二终端设备上的应用程序的过程中,可以通过第二终端设备的多种类型的应用程序的界面上显示目标地址。其中,展示目标地址的界面包括以下任一种或多种类型的应用程序的界面:导航类应用程序、即时通信类应用程序、生活服务类应用程序或者旅游出行类应用程序。
本申请实施例中,不仅导航类应用程序可以采用本方案,即时通信类应用程序、生活服务类应用程序或者旅游出行类应用程序均可以采用本方案,大大扩展了本方案的应用场景。
4502、第二终端设备获取与第二终端设备对应的第一位置信息,第二终端设备的第一位置信息用于指示第二终端设备位于车辆内部或车辆外部。
本申请的一些实施例中,第二终端设备还会触发获取与第二终端设备对应的第一位置信息,第二终端设备的第一位置信息用于指示第二终端设备位于车辆内部或车辆外部。其中,“第二终端设备的第一位置信息”的具体含义与“第一终端设备的第一位置信息”的具体含义类似,“第二终端设备的第一位置信息”的具体获取方式可以参阅上述图32对应实施例中对步骤301的描述,此处不再进行赘述。
具体的,在第二终端设备获取与第二终端设备对应的第一位置信息的过程中,第二终端设备会采用蓝牙、WIFI技术或其他技术等对周围的电子设备进行扫描,以在第二终端设备的预设距离范围内检测到至少一个车辆,第二终端设备可以与检测到的车辆之间建立通信连接;需要说明的是,“第二终端设备与车辆之间建立的通信连接”与“第二终端设备与车辆之间建立连接”是两个不同的概念,“第二终端设备与车辆之间建立连接”这一概念的具体含义可以参阅上述实施例中的描述,“第二终端设备与车辆之间建立的通信连接”仅用于后续步骤中第二终端设备与车辆之间通信。
可选的,在步骤4501之后,且步骤4502之前,本申请实施例还可以包括:第二终端接收到触发操作;响应于该触发操作,执行步骤4502。其中所述的触发操作可以是用户主动触发的。例如:使用第二终端设备的用户在第二终端设备上查询目标地址,然后该用户希望把该目标地址发送给车辆进行导航,此时该用户可以对第二终端设备进行预设操作,以触发第二终端设备执行步骤4502。其中,所述的预设操作可以是预设的手势(例如以特定的轨迹晃动终端设备)、预设的触摸操作或者预设的语音指令等等,在此不做限定。
本申请实施例中,当第二终端设备在显示界面上显示目标地址,且第二终端设备接收到用户输入的触发操作之后,第二终端设备才会获取与第二终端设备对应的第一位置信息, 也即基于用户的意愿来触发检测第二终端设备是否位于车辆内部,而不是当显示界面上显示有目标地址时,就会自动触发获取与第二终端设备对应的第一位置信息,以避免终端设备上计算机资源的浪费。
4503、在第二终端设备位于车辆内部的情况下,第二终端设备输出第二信息,第二信息用于提示用户输入目标操作。
本申请的一些实施例中,在获取到与第二终端设备对应的第一位置信息之后,若与第二终端设备对应的第一位置信息指示第二终端位于车外,则第二终端设备可以终止操作。若与第二终端设备对应的第一位置信息指示第二终端位于车内,则第二终端设备可以输出第二信息。其中,第二信息用于提示用户输入目标操作,目标操作用于触发第二终端设备向车辆发送该目标地址。
第二终端设备输出第二信息的方式可以包括如下任一种或多种的组合:显示用于接收目标操作的悬浮按钮;或者,显示用于接收目标操作的图标;或者,输出询问信息,前述询问信息用于询问用户是否将目标地址发送给车辆,该询问信息可以采用文本框、语音或其他形式等等,此处不做穷举;第二终端设备还可以通过其他方式输出该第二信息,此处举例仅为方便理解本方案,具体采用何种实现方式可以结合实际产品形态确定,此处不做限定。
对应的,第二终端设备可以接收用户输入的目标操作,用户输入目标操作的方式可以包括如下任一种或多种的组合:对用于接收目标操作的悬浮按钮执行触摸操作;对用于接收目标操作的图标执行触摸操作;针对该询问信息输入确认操作;或者,用户还可以通过其他方式输入目标操作,具体采用何种实现方式可以结合实际产品形态确定,此处不做限定。
为了更直观地理解本方案,请参阅图41和图42,图41为本申请实施例提供的地址的处理方法中输出第二信息的三种示意图。图41包括左和右两个子示意图,图41的左子示意图以通过导航类的应用程序的显示界面输出第二信息为例,如图41的左子示意图所示,“输出第二信息”的方式可以为在当前界面上展示悬浮按钮,当用户点击该悬浮按钮时,第二终端设备可以接收到用户输入的目标操作。
图41的右子示意图以通过短信这一应用程序的显示界面输出第二信息为例,如图41的右子示意图所示,“输出第二信息”的方式可以为在目标地址旁边展示图标,当用户点击该图标时,第二终端设备可以接收到用户输入的目标操作,应理解,图41中的示例仅为方便理解本方案,不用于限定本方案。
再参阅图42,图42为本申请实施例提供的地址的处理方法中输出第二信息的另一种示意图。如图42包括左和右两个子示意图,图42中以通过导航类的应用程序的显示界面输出第二信息为例,在图42的左子示意图中,当用户点击D1时,触发进入图42的右子示意图,当用户点击D2时,第二终端设备可以检测到用户输入了目标操作,应理解,图42中的示例仅为方便理解本方案,不用于限定本方案。
4504、在第一终端设备与车辆处于连接状态的过程中,第二终端设备向车辆发送目标地址,车辆将接收到的目标地址作为车辆进行导航时的目的地。
本申请实施例中,步骤4502和4503均为可选步骤,在第二终端设备执行步骤4502和4503的情况下,步骤4504可以包括:在第一终端设备与车辆处于连接状态的过程中,响应于获取到的目标操作,第二终端设备发送目标地址,发送的目标地址用于指示将目标地址作为车辆进行导航时的目的地。
具体的,第二终端设备可以向车辆发送目标地址,对应的,车辆可以接收到目标地址。在一种情况中,车辆在获取到目标地址时,车辆未启动导航任务,则触发车辆启动导航任务,并以目标地址为目的地继续进行导航。
在一种情况中,车辆在获取到目标地址时,正在以第一地址作为目的地进行导航;车辆将第一地址更改为目标地址,以目标地址为目的地继续进行导航。本申请实施例中,提供了本方案的一个具体的应用场景。
更进一步地,在一种实现方式中,车辆可以将目标地址作为车辆进行导航时的目的地,并通过车辆展示更新后的导航目的地。
在另一种实现方式中,车辆可以输出提示信息,前述提示信息用于询问用户是否将导航目的地更新为该目标地址。其中,车辆输出提示信息的方式包括如下任一种或多种组合:通过语音的方式输出提示信息、通过弹框的形式输出提示信息或通过其他形式输出提示信息等等,此处不做限定。
为了更直观地理解本方案,请参阅图43,图43为本申请实施例提供的地址的处理方法中输出提示信息的两种示意图。图43包括上子示意图和下子示意图,图43的上子示意图以车辆通过语音搭配文本框的显示界面输出提示信息为例,图43的下子示意图以车辆通过文本的形式输出提示信息为例,应理解,图43中的示例仅为方便理解本方案,不用于限定本方案。
对应的,若车辆获取到用户输入的针对上述提示信息的确认操作,则将导航目的地更新为该目标地址;若车辆获取到用户输入的针对上述提示信息的取消操作,则确定不修改车辆的导航目的地。
其中,用户输入上述确认操作/取消操作的方式包括但不限于:通过方向盘上的按键输入确认操作/取消操作、通过语音方式输入确认操作/取消操作、通过点击车辆的中控屏上的预设按钮来输入确认操作/取消操作、通过输入隔空手势的方式输入确认操作/取消操作或其他方式来输入确认操作/取消操作等等,此处不做穷举。
为了更直观地理解本方案,请参阅图44,图44为本申请实施例提供的地址的处理方法中输出提示信息的一种示意图。图44中以通过语音方式搭配文本框的方式输入确认操作/取消操作为例,如图44所示,用户通过语音的方式输入“好的”,车辆响应于接收到的“好的”,将车辆的导航目的地更新为目标地址,应理解,图44中的示例仅为方便理解本方案,不用于限定本方案。
可选地,车辆在将导航目的地更新为该目标地址之后,还可以输出通知信息;前述通知信息用于告知用户导航目的地更新成功;或者,车辆在确定不修改车辆的导航目的地之后,可以输出通知信息,前述通知信息用于告知用户导航目的地未发生改变。
其中,车辆输出上述通知信息的方式可以为如下任一种或多种的组合:以语音的方式 输出该通知信息、以文本框的形式输出该通知信息、以指示灯的形式输出该通知信息或其他方式输出该通知信息等等,此处不做限定。
为了更直观地理解本方案,请参阅图45,图45为本申请实施例提供的地址的处理方法中输出通知信息的一种示意图。图45中以通过语音方式搭配文本框的方式输出该通知信息为例,应理解,图45中的示例仅为方便理解本方案,不用于限定本方案。
本申请实施例中,在检测到第二终端设备位于车内,且第二终端设备上展示有地址信息的情况下,可以输出第二信息,该第二信息用于提示用户输入“发送目标地址”的目标操作,也即第二终端设备为基于用户的意愿发送目标地址;此外,只有在检测到第二终端设备位于车内时,才能够实现“发送目标地址”这一操作,避免了其他设备对第一终端设备的干扰,有利于提高车辆驾驶过程的安全性。
在第二终端设备执行步骤4502,且不执行步骤4503的情况下,在一种实现方式中,若第二终端设备所对应的第一位置信息指示第二终端设备位于车内,且第二终端设备正在显示界面上显示目标地址,当第二终端设备获取到用户输入的第一触发操作时,响应于接收到的第一触发操作,发送目标地址,发送的目标地址用于指示将目标地址作为车辆进行导航时的目的地,“第二终端设备发送目标地址”的具体实现方式可以参阅上述描述,此处不做赘述。
其中,第一触发操作可以为上下摇晃第二终端设备、左右摇晃第二终端设备、通过第二终端设备的界面输入预设手势操作或其他操作等等,此处不做穷举;预设手势操作可以为“Z”字形手势操作、“O”字型手势操作、“对勾”型手势操作、三指向上滑动操作或其他手势操作等等,此处不做穷举。
为了更直观地理解本方案,请参阅图46,图46为本申请实施例提供的地址的处理方法中输出提示信息的两种示意图。如图46所示,当用户输入“Z”字形手势操作时,会触发第二终端设备发送当前界面上显示的目标地址,应理解,图46中的示例仅为方便理解本方案,不用于限定本方案。
本申请实施例中,在检测到第二终端设备位于车内,且第二终端设备上展示有地址信息的情况下,还可以通过用户主动输入的第一触发操作,触发发送目标地址,以将目标地址确定为车辆的导航目的地,扩展了发送目标地址的触发场景,也即扩展了本方案的应用场景,提高了本方案的实现灵活性。
在另一种实现方式中,若第二终端设备所对应的第一位置信息指示第二终端设备位于车内,且第二终端设备正在显示界面上显示目标地址,则可以直接触发第二终端设备发送目标地址,发送的目标地址用于指示将目标地址作为车辆进行导航时的目的地。
在第二终端设备不执行步骤4502和4503的情况下,则在一种实现方式中,若检测到第二终端设备正在显示界面上显示目标地址,则第二终端设备可以输出第二信息,第二信息用于提示用户输入目标操作。在第一终端设备与车辆处于连接状态的过程中,响应于获取到的目标操作,第二终端设备发送目标地址,发送的目标地址用于指示将目标地址作为车辆进行导航时的目的地。
在另一种实现方式中,若检测到第二终端设备正在显示界面上显示目标地址,当第二 终端设备获取到用户输入的第一触发操作时,响应于接收到的第一触发操作,发送目标地址,发送的目标地址用于指示将目标地址作为车辆进行导航时的目的地。
本申请实施例中,由于第一终端设备在与车辆处于连接状态的过程中,第一终端设备一般为位于主驾驶位置的终端设备,若只能通过第一终端设备修改车辆导航时的目的地,则很大概率是由驾驶员执行该修改操作,会增加驾驶过程的风险;本方案中可以由第二终端设备修改车辆导航时的目的地,从而有利于提高驾驶过程的安全性,以及修改导航目的地的效率。
五、将车辆上存储的数据和/或运行的业务流转至车内的终端设备上
本申请实施例中,在一种应用场景中,车辆上正在播放图片/视频,车内用户希望把前述图片/视频存储至自己的终端设备上,则存在将车辆上存储的数据流转至车内的终端设备上的需求;在另一种应用场景中,若车内的前排用户正在通过车辆的中控屏进行视频通话,当想要把前述视频通话业务切换至车内的后排用户时,则存在将车辆上运行的业务流转至车内的终端设备上的需求等等。
需要说明的是,上述对各种应用场景的描述仅为方便理解本方案的举例,本方案还可以应用于其他应用场景中,此处不对本方案的应用场景进行穷举。
具体的,在一种情况中,可以由车辆侧触发将车辆上存储的数据和/或运行的业务流转至车内的终端设备上;在另一种情况中,可以由车内的终端设备侧触发将车辆上存储的数据和/或运行的业务流转至车内的终端设备上,以下分别对前述两种情况进行描述。
先参阅图47,图47为本申请实施例提供的数据的流转方法的一种流程示意图,具体的,图47中以由车辆侧触发将车辆上存储的数据和/或运行的业务流转至车内的终端设备上为例,本申请实施例提供的数据的流转方法可以包括:
5201、车辆获取第二触发操作,第二触发操作用于将车辆上存储的目标数据和/或车辆上运行的目标业务流转至车内的终端设备。
本申请实施例中,车辆上可以存储有至少一种目标数据和/或车辆上运行有至少一种目标业务能够流转至车内的终端设备。其中,至少一种目标数据具体可以表现为图片、视频、音乐或其他类型的数据等等,至少一种目标业务具体可以表现为视频通话业务、导航业务或其他类型的业务等等,此处不做穷举。
“将车辆上存储的目标数据流转至车内的终端设备”也可以称为“将车辆上存储的目标数据发送至车内的终端设备”;“将车辆上运行的目标业务流转至车内的终端设备”可以理解为车辆将执行目标业务时所使用到的数据发送至车内的终端设备,以通过车内的终端设备执行该目标业务。
车辆获取第二触发操作的方式可以为如下任一种或多种的组合:用户通过语音的方式输入第二触发操作;或者,用户通过车辆的显示界面上的按钮输入第二触发操作;或者,车辆通过摄像头采集到用户输入的预设悬空手势时,视为用户输入第二触发操作;或者,车辆通过显示界面接收到用户输入的预设手势操作时,视为用户输入第二触发操作,或者用户还可以通过其他方式输入第二触发操作等等,此处不做穷举。
作为示例,例如车辆可以获取到用户输入的“把现在的图片分享出去”、“把现在的视 频通话转移出去”或其他语音指令等,此处不做穷举。
5202、车辆输出询问信息,该询问信息用于确认是否将目标数据和/或目标业务流转至车内的终端设备。
可选的,本申请的一些实施例中,当车辆获取到第二触发操作后,还可以输出询问信息,该询问信息用于确认是否将目标数据和/或目标业务流转至车内的终端设备。若检测到用户针对该询问信息输入的确认操作,则进入步骤5202;若检测到用户针对该询问信息输入的取消操作,则终止目标数据和/或目标业务的流转操作。
其中,该询问信息可以采用文本框、语音或其他形式等等,此处不做穷举。车辆输出询问信息的具体实现方式、用户输入确认操作以及取消操作的具体实现方式,均可以参阅上述图40对应实施例中的描述,此处不一一进行赘述。
5203、车辆判断车辆上是否存在可流转的目标数据和/或目标业务,若判断结果为是,则进入步骤5204;若判断结果为否,则终止目标数据和/或目标业务的流转操作。
本申请实施例中,车辆中可以预先设置有至少一种可流转至终端设备的数据和/或至少一种可流转至终端设备的业务,车辆可以判断车辆的中控屏上是否存在可流转的目标数据,和/或,车辆可以判断车辆正在运行的任务列表中是否存在可流转的目标业务。
若判断结果为是,则触发进入步骤5204;若判断结果为否,则触发终止目标数据和/或目标业务的流转操作。
作为示例,例如车辆的中控屏上仅展示有车辆在行驶过程中的相关信息,而不存在图片、音乐、视频或其他可以流转的数据,且车辆在前台运行的任务中也不存在视频通话、导航或其他可以流转的业务,则可以触发终止目标数据和/或目标业务的流转操作。
其中,“车辆在行驶过程中的相关信息”可以包括车辆的当前行驶速度、车内空调温度或其他信息等,此处不做穷举。
需要说明的是,步骤5202为可选步骤,若执行步骤5202,则本申请实施例不限定步骤5202和步骤5203的执行顺序,可以先执行步骤5202,再执行步骤5203;也可以先执行步骤5203,再执行步骤5202;也可以同时执行步骤5202和5203。
5204、车辆判断是否存在位于车内的终端设备,若判断结果为是,则进入步骤5205;若判断结果为否,则终止目标数据和/或目标业务的流转操作。
本申请实施例中,在车辆获取到第二触发操作之后,车辆可以扫描周围的终端设备,并获取扫描到的每个终端设备的第一位置信息,以根据每个终端设备的第一位置信息,判断是否存在至少一个位于车内的终端设备;若判断结果为是,则进入步骤5205;若判断结果为否,则终止目标数据和/或目标业务的流转操作。
其中,针对每个终端设备的第一位置信息的获取方式可以参阅图32对应实施例中的描述,此处不做赘述。
需要说明的是,本申请实施例不限定步骤5203和步骤5204的执行顺序,可以先执行步骤5203,再执行步骤5204;也可以先执行步骤5204,再执行步骤5203;也可以同时执行步骤5203和5204。
5205、车辆向至少一个位于车内的目标终端设备发送目标数据和/或目标业务。
本申请实施例中,车辆在确定执行目标数据和/或目标业务的流转操作后,可以向至少一个目标终端设备发送目标数据和/或目标业务,对应的,每个目标终端设备可以接收目标数据,或者,每个目标终端设备可以运行目标业务。
其中,每个目标终端设备均为车内的终端设备,也即该至少一个目标终端设备包括于该车内的至少一个终端设备。
具体的,在一种实现方式中,车辆可以直接向车内的每个终端设备发送目标数据和/或目标业务,也即车内的每个终端设备均被确认为目标终端设备。
在另一种实现方式中,车辆可以获取位于车内的至少一个终端设备,向车内的每个终端设备发送第一流转请求。其中,该第一流转请求用于请求将目标数据和/或目标业务转移至终端设备。车内的每个终端设备在接收到该第一流转请求后,可以输出第四信息,该第四信息用于询问是否接收车辆流转的目标数据和/或目标业务。
若车内的终端设备获取到针对该第四信息的确认操作,则向车辆发送与第一流转请求对应的确认信息;若车内的终端设备获取到针对该第四信息的取消操作,则向车辆发送与第一流转请求对应的拒绝信息。其中,“用户输入确认操作/取消操作”的具体实现方式可以参阅上述实施例中的描述,此处不再一一进行赘述。
在车辆接收到至少一个目标终端设备发送的确认信息的情况下,向每个目标终端设备发送目标数据和/或目标业务所关联的数据。
进一步地,若车辆向终端设备发送的为目标数据,则在将目标数据全部发送至目标终端设备后,车辆可以终止执行前述发送操作。若车辆向终端设备发送的为目标业务所关联的数据,则在目标业务执行完毕后,车辆可以终止向目标业务执行该发送操作。
为更直观地理解本方案,请参阅图48,图48为本申请实施例提供的数据的流转方法的一种流程示意图,如图48所示,车辆正在执行视频通话业务的过程中,当位于主驾驶上的用户想要把前述视频通话业务从车辆切换至位于后排的用户的终端设备上时,车辆接收到位于主驾驶上的用户通过车辆输入的“把视频通话业务切换至车内终端设备”的语音指令,也即视为车辆接收到了第二触发操作,触发车辆输出“是否把当前通话流转至车内乘客的手机上”这一询问信息,在车辆接收到用户输入的“确认”这一语音信息后,车辆向车内的每个终端设备发送第一流转请求。车内乘客对手机进行晃动两次,视为输入针对第一流转请求的确定操作,从而触发将视频通话这一业务流转至乘客的手机上,应理解,图48中的示例仅为方便理解本方案,不用于限定本方案。
在另一种实现方式中,车辆在确定执行目标数据和/或目标业务的流转操作后,可以显示有终端设备列表,该终端设备列表包括至少一个终端设备的标识信息,该至少一个终端设备的标识信息包括所有位于车内的终端设备的标识信息。
车辆获取到用户输入的针对该终端设备列表的选择操作,该选择操作用于从终端设备列表中确定该至少一个目标终端设备。进而车辆可以向每个目标终端设备发送目标数据和/或目标业务。
再参阅图49,图49为本申请实施例提供的数据的流转方法的另一种流程示意图,图49中以由终端设备侧触发将车辆上存储的数据和/或运行的业务流转至车内的终端设备上 为例,具体的,本申请实施例提供的数据的流转方法可以包括:
5401、第三终端设备获取第三触发操作,第三触发操作用于将车辆上存储的目标数据和/或车辆上运行的目标业务流转至第三终端设备。
本申请实施例中,车辆上可以存储有至少一种目标数据和/或车辆上运行有至少一种目标业务能够流转至车内的终端设备,第三终端设备可以获取到用户输入的第三触发操作,
其中,该第三触发操作用于将车辆上存储的目标数据和/或车辆上运行的目标业务流转至车内的终端设备。作为示例,例如第三触发操作可以为左右晃动第三终端设备、上下晃动第三终端设备、通过第三终端设备的界面输入预设手势操作、通过第三终端设备输入语音指令或其他类型的第三触发操作等等,此处不做穷举。
5402、第三终端设备判断第三终端设备是否位于车内,若判断结果为是,进入步骤5403;若判断结果为否,终止目标数据和/或目标任务的流转操作。
本申请实施例中,第三终端设备在获取第三触发操作之后,可以触发获取第三终端设备的第一位置信息,“获取第三终端设备的第一位置信息”与“获取第一终端设备的第一位置信息”的具体实现方式类似,可直接参阅实施例三中的上述描述,此处不做赘述。
第三终端设备根据第三终端设备的第一位置信息来判断第三终端设备是否位于车辆内部,若判断结果为是,则进入步骤5403;若判断结果为否,则终止目标数据和/或目标任务的流转操作。
5403、第三终端设备向车辆发送第二流转请求,第二流转请求用于请求将目标数据和/或目标业务流转至第三终端设备。
本申请实施例中,在第三终端设备的第一位置信息指示第三终端设备位于车内的情况下,第三终端设备可以向车辆发送第二流转请求。对应的,车辆在接收到第二流转请求后,第二流转请求用于请求将目标数据和/或目标业务流转至第三终端设备。
5404、车辆判断车辆上是否存在可流转的目标数据和/或目标业务,若判断结果为是,则进入步骤5405;若判断结果为否,则终止目标数据和/或目标业务的流转操作。
本申请实施例中,车辆执行步骤5404的具体实现方式可以参阅图47对应实施例中步骤1803的描述,此处不做赘述。
5405、车辆输出询问信息,该询问信息用于确认是否将目标数据和/或目标业务流转至车内的终端设备。
本申请的一些实施例中,车辆在接收到第二流转请求后,还可以输出询问信息,该询问信息用于确认是否将目标数据和/或目标业务流转至车内的终端设备,若检测到用户针对该询问信息输入的确认操作,则进入步骤5406;若检测到用户针对该询问信息输入的取消操作,则终止目标数据和/或目标业务的流转操作。
其中,车辆执行步骤5405的具体实现方式可以参阅图47对应实施例中步骤1802的描述,此处不做赘述。
需要说明的是,本申请实施例不限定步骤5404和步骤5405的执行顺序,可以先执行步骤5404,再执行步骤5405;也可以先执行步骤5405,再执行步骤5404;也可以同时执行步骤5404和5405。
5406、车辆向第三终端设备发送目标数据和/或目标业务。
本申请实施例中,步骤5405为可选步骤,若不执行步骤5405,则在确定车辆上存在可流转的目标数据和/或目标业务之后,车辆可以获取该目标数据和/或目标业务,并向第三终端设备发送目标数据和/或目标业务。
若执行步骤5405,则在检测到用户针对该询问信息输入的确认操作的情况下,车辆可以获取该目标数据和/或目标业务,并向第三终端设备发送目标数据和/或目标业务。
本申请实施例中,提供了车内的终端设备与车辆之间信息流转的更多的应用场景,扩展了本方案的应用场景;车辆上存储的数据和/或运行的业务只能流转至车内的终端设备,既有利于保护车辆数据的隐私性,又避免了车辆附近的用户给车辆造成的干扰。
六、当车内的终端设备进行通话的过程中,降低车辆播放音频流时的音量
本申请实施例中,车辆内部有多个终端设备,其中一个终端设备与车辆处于连接状态,若车辆内部的其他终端设备不与车辆处于连接状态,则车辆不能及时的知晓车内每个终端设备的状态。若车辆在播放音频流的过程中,车内的其他终端设备进行通话,则车辆播放的音频流会给其他终端设备造成干扰,因此在车内的其他终端设备进行通话时,需要降低车辆播放音频流时的音量。
需要说明的是,此处举例仅为方便理解本方案而提供的一个典型的应用场景,在具体实现中,无论该终端设备是否与车辆处于连接状态,只要该终端设备位于车辆内部,均可以采用本方案。
具体的,请参阅图50,图50为本申请实施例提供的音量的处理方法的一种流程示意图,本申请实施例提供的音量的处理方法可以包括:
5501、终端设备获取终端设备的第一位置信息,终端设备的第一位置信息用于指示该终端设备位于车内还是车外。
本申请实施例中,当终端设备进行通话时,在终端设备向车辆发送第一状态信息之前,可以触发获取终端设备的第一位置信息,终端设备的第一位置信息用于指示该终端设备位于车内还是车外。其中,“终端设备的第一位置信息”的具体获取方式可以参阅实施例三终端上述描述,此处不做赘述。
5502、在终端设备位于车内的情况下,当终端设备进行通话时,向车辆发送第一状态信息,该第一状态信息用于供车辆得到与所播放的音频流对应的目标音量。
本申请实施例中,若终端设备的第一位置信息指示终端设备位于车外,则终端设备终止后续操作。若终端设备的第一位置信息指示终端设备位于车内,则当终端设备进行通话时,可以向车辆发送第一状态信息。其中,该第一状态信息用于供车辆得到与所播放的音频流对应的目标音量;作为示例,例如该第一状态信息具体可以表现为Call_ON信号,用于告知车辆该终端设备处于通话状态。
具体的,在一种实现方式中,终端设备可以仅在开始通话时,向车辆发送一次该第一状态信息。在另一种实现方式中,终端设备在通话过程中,可以按照预设频率向车辆发送多个第一状态信息;对应的,车辆需要持续监听终端设备发出的第一状态信息。
其中,预设频率可以为1赫兹(HZ)、2HZ、每10秒发送一次、每20秒发送一次、每 分钟发送一次或其他频率等等,此处不做穷举。
可选地,终端设备可以获取车辆的当前运行状态,若车辆处于移动状态,则终端设备可以仅在开始通话时,向车辆发送一次该第一状态信息。若车辆处于停车状态,则在终端设备的通话过程中,可以按照预设频率向车辆发送多个第一状态信息。需要说明的是,终端设备获取车辆为移动状态还是停车状态的具体实现方式可以参阅上述实施例中的描述,此处不做赘述。
5503、车辆响应于接收到的第一状态信息,确定与所播放的音频流对应的目标音量,目标音量小于或等于预设音量阈值。
本申请实施例中,车辆响应于接收到的第一状态信息,可以获取与所播放的音频流对应的第一播放音量(也即车辆当前所采用的实际音量),判断获取到的第一播放音量是否大于预设音量阈值,若判断结果为否,则车辆可以不再调整车辆播放音频流时所采用的音量;若判断结果为是,则将车辆播放音频流时所采用的目标音量调整至预设音量阈值。其中,预设音量阈值的度量单位可以为分贝、音量档位或其他类型的度量单位等,此处不做限定。作为示例,例如预设音量阈值的音量档位为0或1,作为另一示例,例如预设音量阈值的分贝数为0,应理解,此处举例仅为方便理解本方案,不用于限定本方案。
可选地,在一种实现方式中,若终端设备可以仅在开始通话时,向车辆发送一次该第一状态信息,则当终端设备通话结束时,可以向车辆发送第二状态信息,该第二状态信息用于供车辆将第一播放音量确定为与所播放的音频流对应的音量。作为示例,例如该第二状态信息具体可以表现为Call_Off信号,用于告知车辆该终端设备处于通话结束状态。
对应的,车辆在接收到第二状态信息后,可以触发将播放音频流时所采用的音量重新调整回第一播放音量。进一步地,若车辆当前所采用的播放音量为第一播放音量,则车辆不需要进行音量调整。
在另一种实现方式中,若终端设备在通话过程中,按照预设频率向车辆发送多个第一状态信息,则当终端设备通话结束时,可以向车辆发送第二状态信息,该第二状态信息用于供车辆将第一播放音量确定为与所播放的音频流对应的音量。
在另一种实现方式中,若终端设备在通话过程中,按照预设频率向车辆发送多个第一状态信息,则当终端设备通话结束时,可以停止向车辆发送第一状态信息。对应的,当车辆监听不到第一状态信息,就可以触发将第一播放音量重新确定为播放音频流时所采用的音量。
本申请实施例中,由于若车辆处于停车状态,则可能会存在用户携带终端设备离车的场景,则终端设备在通话过程中,按照预设频率向车辆发送多个第一状态信息,从而当车辆监听不同第一状态信息时,就可以及时将播放音频流时所采用的音量恢复至第一播放音量,也即能够保障在用户携带终端设备下车后,车辆能及时恢复所播放的音频流的音量,也即不仅能够实现自动降低车辆播放音频流时的音量,还可以自动提高车辆播放音频流时的音量。
本申请实施例中,当车辆内部的终端设备进行通话时,能自动降低车辆播放的音频流的音量,从而可以避免车辆播放的音频给车内用户进行通话时造成困扰;且无需增加额外 的硬件设备,就可以实现前述功能;此外,只有当位于车辆内部的终端设备进行通话时,才会触发降低车辆所播放的音频的音量,避免了车辆外部的终端设备所带来的干扰。
在图32至图50所对应的实施例的基础上,为了更好的实施本申请实施例的上述方案,下面还提供用于实施上述方案的相关设备。具体参阅图51,图51为本申请实施例提供的音频流的处理装置的一种结构示意图。音频流的处理装置5600应用于车辆,车辆包括于数据处理系统,数据处理系统还包括第一终端设备。音频流的处理装置5600可以包括:连接模块5601,用于与第一终端建立连接;接收模块5602,用于接收第一终端设备发送的数据,数据中有目标音频流;播放模块5603,用于播放目标音频流;播放模块5603,还用于在车辆播放目标音频流的过程中,当出现预设情况时,继续播放目标音频流,其中,预设情况包括:第一终端设备在与车辆处于连接状态的过程中从车内移动至车外,且目标音频流的类别为第一类别。
在一种可能的设计中,第二类别的音频流的播放设备被切换至所述第一终端设备,所述第二类别和所述第一类别为不同的类别,所述第二类别的音频流为所述第一终端设备生成。
需要说明的是,音频流的处理装置5600中各模块/单元之间的信息交互、执行过程等内容,与本申请中图32对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供一种音频流的处理装置,请参阅图52,图52为本申请实施例提供的音频流的处理装置的一种结构示意图。音频流的处理装置5700应用于第一终端设备,第一终端设备包括于数据处理系统,数据处理系统还包括车辆,音频流的处理装置5700可以包括:连接模块5701,用于与车辆建立连接;发送模块5702,用于向车辆发送数据,数据中有目标音频流;获取模块5703,用于在由车辆播放目标音频流、且第一终端设备与车辆处于连接状态的过程中,当检测到第一终端设备从车内移动至车外时,获取正在向车辆发送的目标音频流所对应的目标类别;发送模块5702,还用于若目标类别为第一类别,则继续向车辆发送目标音频流。
在一种可能的设计中,第一类别包括媒体类,第二类别与第一类别不同。
在一种可能的设计中,请参阅图53,图53为本申请实施例提供的音频流的处理装置的另一种结构示意图。音频流的处理装置5700还包括:切换模块5704,用于将第二类别的音频流的播放设备由车辆切换至第一终端设备,第二类别的音频流由第一终端设备生成;播放模块5705,用于若第一终端设备接收到播放第二音频流的播放指示,则由第一终端设备播放第二音频流;第二音频流的类别为第二类别。
在一种可能的设计中,请参阅图53,音频流的处理装置5700还包括:输出模块5706,用于输出第一信息,第一信息用于提示用户将目标音频流的播放设备由车辆切换至第一终端设备。
在一种可能的设计中,请参阅图53,音频流的处理装置5700还包括:输出模块5706,用于当第一终端设备获取到对第一音频流的播放操作时,输出第一信息;其中,第一音频 流的类别为第一类别,且第一音频流与车辆播放的目标音频流不同,第一信息用于提示用户将第一音频流的播放设备由车辆切换至第一终端设备。
在一种可能的设计中,请参阅图53,音频流的处理装置5700还包括:播放模块5705,用于若目标类别不是第一类别,则由第一终端设备继续播放目标音频流。
需要说明的是,音频流的处理装置5700中各模块/单元之间的信息交互、执行过程等内容,与本申请中图32对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供一种地址的处理装置,请参阅图54,图54为本申请实施例提供的地址的处理装置的一种结构示意图。地址的处理装置5900应用于第二终端设备,第二终端设备包括于导航系统中,导航系统包括车辆、第一终端设备和第二终端设备,地址的处理装置5900包括:显示模块5901,用于在显示界面上显示目标地址;发送模块5902,用于在第一终端设备与车辆处于连接状态的过程中,第二终端设备向车辆发送目标地址,其中,发送的目标地址用于提示将目标地址作为车辆进行导航时的目的地。
在一种可能的设计中,请参阅图55,图55为本申请实施例提供的地址的处理装置的一种结构示意图。地址的处理装置5900还包括:获取模块5903,用于获取与第二终端设备对应的第一位置信息,第一位置信息用于指示第二终端设备位于车辆内部或车辆外部;输出模块5904,用于在第二终端设备位于车辆内部的情况下,输出第二信息,第二信息用于提示用户输入目标操作;发送模块5902,具体用于第二终端设备接收用户输入的目标操作;在第一终端设备与车辆处于连接状态的过程中,响应于接收到的目标操作,第二终端设备向车辆发送目标地址。
在一种可能的设计中,显示目标地址的显示界面包括以下任一种或多种类型的应用程序的界面:导航类应用程序、即时通信类应用程序、生活服务类应用程序或者旅游出行类应用程序。
在一种可能的设计中,请参阅图55,地址的处理装置5900还包括:接收模块5905,用于接收用户输入的触发操作;获取模块5903,具体用于响应于触发操作,第二终端设备获取与第二终端设备对应的第一位置信息。
需要说明的是,地址的处理装置5900中各模块/单元之间的信息交互、执行过程等内容,与本申请中图40对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供一种地址的处理装置,请参阅图56,图56为本申请实施例提供的地址的处理装置的一种结构示意图。地址的处理装置6100应用于车辆,车辆包括于导航系统,导航系统还包括第二终端设备和第一终端设备,地址的处理装置6100包括:获取模块6101,用于在第一终端设备与车辆处于连接状态的过程中,获取目标地址,目标地址由第二终端设备生成;导航模块6102,用于将目标地址作为车辆进行导航时的目的地。
在一种可能的设计中,第二终端设备位于车辆内部。
在一种可能的设计中,导航模块6102,具体用于在获取到目标地址时,正在以第一地址作为目的地进行导航;将第一地址更改为目标地址,以目标地址为目的地继续进行导航。
需要说明的是,地址的处理装置6100中各模块/单元之间的信息交互、执行过程等内容,与本申请中图40对应的各个方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。
本申请实施例还提供了一种车辆,结合上述对图2的描述,请参阅图57,图57为本申请实施例提供的车辆的一种结构示意图,由于在部分实施例中,车辆100还可以包括通信功能,则车辆100除了包括图2中所示的组件,还可以包括:接收器6201和发射器6202,其中,处理器113可以包括应用处理器1131和通信处理器1132。在本申请的一些实施例中,接收器6201、发射器6202、处理器113和存储器114可通过总线或其它方式连接。
处理器113控制自动驾驶车辆的操作。具体的应用中,车辆100的各个组件通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都称为总线系统。
接收器6201可用于接收输入的数字或字符信息,以及产生与自动驾驶车辆的相关设置以及功能控制有关的信号输入。发射器6202可用于通过第一接口输出数字或字符信息;发射器6202还可用于通过第一接口向磁盘组发送指令,以修改磁盘组中的数据;发射器6202还可以包括显示屏等显示设备。
本申请实施例中,应用处理器1131,用于执行上述各个方法实施例中车辆执行的步骤。需要说明的是,对于应用处理器1131执行前述步骤的具体实现方式以及带来的有益效果,均可以参考上述各个方法实施例中的叙述,此处不再一一赘述。
本申请实施例还提供一种终端设备,请参阅图58,图58为本申请实施例提供的终端设备的一种结构示意图,终端设备6300具体可以表现为手机、平板、笔记本电脑、智能穿戴设备或其他终端设备等,此处不做限定。具体的,终端设备6300包括:接收器6301、发射器6302、处理器6303和存储器6304(其中终端设备6300中的处理器6303的数量可以一个或多个,图58中以一个处理器为例),其中,处理器6303可以包括应用处理器63031和通信处理器63032。在本申请的一些实施例中,接收器6301、发射器6302、处理器6303和存储器6304可通过总线或其它方式连接。
存储器6304可以包括只读存储器和随机存取存储器,并向处理器6303提供指令和数据。存储器6304的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。存储器6304存储有处理器和操作指令、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,操作指令可包括各种操作指令,用于实现各种操作。
处理器6303控制执行设备的操作。具体的应用中,执行设备的各个组件通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都称为总线系统。
上述本申请实施例揭示的方法可以应用于处理器6303中,或者由处理器6303实现。处理器6303可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器6303中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处 理器6303可以是通用处理器、数字信号处理器(digital signal processing,DSP)、微处理器或微控制器,还可进一步包括专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。该处理器6303可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器6304,处理器6303读取存储器6304中的信息,结合其硬件完成上述方法的步骤。
接收器6301可用于接收输入的数字或字符信息,以及产生与执行设备的相关设置以及功能控制有关的信号输入。发射器6302可用于通过第一接口输出数字或字符信息;发射器6302还可用于通过第一接口向磁盘组发送指令,以修改磁盘组中的数据;发射器6302还可以包括显示屏等显示设备。
本申请实施例中,在一种情况中,应用处理器63031,用于执行上述各个方法实施例中终端设备执行的步骤。需要说明的是,对于应用处理器63031执行前述步骤的具体实现方式以及带来的有益效果,均可以参考上述各个方法实施例中的叙述,此处不再一一赘述。
本申请实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有程序代码,当该程序代码在计算机上运行时,使得计算机执行如上述各个方法实施例描述的方法中车辆所执行的步骤;或者,使得计算机执行如上述各个方法实施例描述的方法中终端设备所执行的步骤。
本申请实施例中还提供一种包括计算机程序产品,包括程序代码,当该程序代码在计算机上运行时,使得计算机执行如上述各个方法实施例描述的方法中车辆所执行的步骤;或者,使得计算机执行如上述各个方法实施例描述的方法中终端设备所执行的步骤。
本申请实施例还提供了一种芯片,芯片包括:处理单元和通信单元,所述处理单元例如可以是处理器,所述通信单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行存储单元存储的计算机执行指令,以使服务器内的芯片执行上述各个方法实施例描述的方法。可选地,所述存储单元为所述芯片内的存储单元,如寄存器、缓存等,所述存储单元还可以是所述无线接入设备端内的位于所述芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。
其中,上述任一处提到的处理器,可以是一个通用中央处理器,微处理器,ASIC,或一个或多个用于控制上述第一方面方法的程序执行的集成电路。
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际 的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CLU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。

Claims (31)

  1. 一种位置的获取方法,其特征在于,所述方法应用于车辆,所述车辆包括于位置的获取系统,所述位置的获取系统还包括终端设备,所述方法包括:
    在检测到满足第一触发条件的情况下,发送至少一个目标音频信号,其中,所述目标音频信号用于确定与所述目标音频信号对应的至少一个到达时间;
    所述发送至少一个目标音频信号,包括:按照预设频率发送多个目标音频信号,其中,所述多个目标音频信号包括第一探测信号和第二探测信号,所述至少一个到达时间包括所述第一探测信号所对应的第一时间集合和所述第二探测信号所对应的第二时间集合,所述第一时间集合包括所述第一探测信号通过直射和/或反射到达所述终端设备的至少一个时间,所述第二时间集合包括所述第二探测信号通过直射和/或反射到达所述终端设备的至少一个时间;
    获取与所述终端设备对应的第一位置信息,所述第一位置信息用于指示所述终端设备位于车辆内部或车辆外部,所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔用于确定所述第一位置信息。
  2. 根据权利要求1所述的方法,其特征在于,所述目标音频信号为线性调频信号或ZC序列信号。
  3. 根据权利要求1或2所述的方法,其特征在于,
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆内部,其中,所述预设时间范围的确定因素包括所述车辆发送两个相邻的所述目标音频信号之间的时间间隔;
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔不位于所述预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆外部。
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔包括:所述第一时间集合中最晚的时间和所述第二时间集合中最早的时间之间的时间间隔。
  5. 根据权利要求1或2所述的方法,其特征在于,当检测到如下任一种或多种情况时,视为检测到满足所述第一触发条件:
    检测到所述车辆停车;或者,
    检测到所述终端设备与所述车辆之间的距离满足第一距离条件;或者,
    获取到第一指令,所述第一指令用于触发所述车辆获取所述第一位置信息。
  6. 根据权利要求5所述的方法,其特征在于,所述检测到所述车辆停车,包括:
    获取所述车辆的速度、加速度和角速度,并将所述车辆的速度、加速度和角速度输入分类模型,得到所述分类模型输出的预测类别信息,所述预测类别信息指示所述车辆处于停止状态或移动状态。
  7. 一种位置的获取方法,其特征在于,所述方法应用于终端设备,所述终端设备包括于位置的获取系统,所述位置的获取系统还包括车辆,所述方法包括:
    在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个 到达时间,所述至少一个目标音频信号包括由所述车辆按照预设频率发出的多个目标音频信号,所述多个目标音频信号包括第一探测信号和第二探测信号,所述至少一个到达时间包括所述第一探测信号所对应的第一时间集合和所述第二探测信号所对应的第二时间集合,所述第一时间集合包括所述第一探测信号通过直射和/或反射到达所述终端设备的至少一个时间,所述第二时间集合包括所述第二探测信号通过直射和/或反射到达所述终端设备的至少一个时间;
    根据所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔,生成与所述终端设备对应的第一位置信息,所述第一位置信息用于指示所述终端设备位于车辆内部或车辆外部。
  8. 根据权利要求7所述的方法,其特征在于,
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆内部,其中,所述预设时间范围的确定因素包括所述车辆发送两个相邻的所述目标音频信号之间的时间间隔;
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔不位于所述预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆外部。
  9. 根据权利要求7所述的方法,其特征在于,所述根据所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔,生成与所述终端设备对应的第一位置信息,包括:
    根据所述第一时间集合中最晚的时间和所述第二时间集合中最早的时间之间的时间间隔,生成所述第一位置信息。
  10. 根据权利要求7至9任一项所述的方法,其特征在于,当检测到如下任一种或多种情况时,视为检测到满足所述第二触发条件:
    检测到所述车辆停车;或者,
    检测到所述终端设备与所述车辆之间的距离满足第一距离条件;或者,
    检测到所述终端设备的位移符合预设位移;或者,
    获取到第二指令,所述第二指令用于触发所述终端设备获取所述第一位置信息。
  11. 一种位置的获取方法,其特征在于,所述方法应用于车辆,所述车辆包括于位置的获取系统,所述位置的获取系统还包括终端设备,所述方法包括:
    按照预设频率发送多个目标音频信号,在所述车辆处于移动状态的情况下,一个所述目标音频信号用于确定所述目标音频信号到达所述终端设备的一个第一到达时间,在满足第二触发条件的情况下,一个所述目标音频信号用于确定所述目标音频信号到达所述终端设备的一个第二到达时间;
    获取与所述终端设备对应的第一位置信息,所述第一位置信息用于指示所述终端设备位于车辆内部或车辆外部,多个所述第一到达时间和至少一个所述第二到达时间用于确定所述第一位置信息。
  12. 根据权利要求11所述的方法,其特征在于,所述多个第一到达时间用于确定与所述第二到达时间对应的第一预测时间,所述第一预测时间指示在所述终端设备位于所述车辆内部的情况下,所述目标音频信号到达所述终端设备的时间,所述第一预测时间和所述 第二到达时间用于确定所述第一位置信息。
  13. 一种位置的获取方法,其特征在于,所述方法应用于终端设备,所述终端设备包括于位置的获取系统,所述位置的获取系统还包括车辆,所述方法包括:
    在所述车辆处于移动状态的情况下,获取与多个目标音频信号对应的多个第一到达时间,一个第一到达时间代表一个所述目标音频信号到达所述终端设备的时间,所述多个目标音频信号为所述车辆按照预设频率发出的;
    在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个第二到达时间,根据所述多个第一到达时间和所述至少一个第二到达时间,生成与所述终端设备对应的第一位置信息,所述第一位置信息用于指示所述终端设备位于车辆内部或车辆外部。
  14. 根据权利要求13所述的方法,其特征在于,所述根据所述多个第一到达时间和所述至少一个第二到达时间,生成与所述终端设备对应的第一位置信息,包括:
    根据所述多个第一到达时间确定与所述第二到达时间对应的第一预测时间,所述第一预测时间指示在所述终端设备位于所述车辆内部的情况下,所述目标音频信号到达所述终端设备的时间;
    根据所述第一预测时间和所述第二到达时间,生成所述第一位置信息。
  15. 一种位置的获取方法,其特征在于,所述方法应用于车辆,所述车辆包括于位置的获取系统,所述位置的获取系统还包括终端设备,所述车辆配置有至少三个音响,所述至少三个音响不位于一条直线上,所述至少三个音响包括第一音响、第二音响和第三音响,所述方法包括:
    通过所述第一音响发送第一音频信号,所述第一音频信号用于确定所述终端设备接收到的所述第一音频信号的第一信号强度;
    通过所述第二音响发送第二音频信号,所述第二音频信号用于确定所述终端设备接收到的所述第二音频信号的第二信号强度;
    通过所述第三音响发送第三音频信号,所述第三音频信号用于确定所述终端设备接收到的所述第三音频信号的第三信号强度,所述第一信号强度、所述第二信号强度和所述第三信号强度用于确定与所述终端设备对应的第二位置信息,所述第二位置信息用于指示所述终端设备位于所述车辆外部的位置。
  16. 根据权利要求15所述的方法,其特征在于,所述第二位置信息用于供所述车辆从所述车辆包括的多个组件中确定与所述终端设备之间距离最近的组件,以控制与所述终端设备之间距离最近的组件执行预设操作。
  17. 一种位置的获取方法,其特征在于,所述方法应用于终端设备,所述终端设备包括于位置的获取系统,所述位置的获取系统还包括车辆,所述车辆配置有至少三个音响,所述至少三个音响不位于一条直线上,所述至少三个音响包括第一音响、第二音响和第三音响,所述方法包括:
    接收所述第一音响发送的第一音频信号,接收所述第二音响发送的第二音频信号,接收所述第三音响发送的第二音频信号;
    根据接收到的所述第一音频信号的第一信号强度、接收到的所述第二音频信号的第二信号强度和接收到的所述第三音频信号的第三信号强度,生成与所述终端设备对应的第二位置信息,所述第二位置信息用于指示所述终端设备位于所述车辆外部的位置。
  18. 一种位置的获取装置,其特征在于,所述位置的获取装置应用于车辆,所述车辆包括于位置的获取系统,所述位置的获取系统还包括终端设备,所述装置包括:
    发送模块,用于在检测到满足第一触发条件的情况下,发送至少一个目标音频信号,其中,所述目标音频信号用于确定与所述目标音频信号对应的至少一个到达时间;
    所述发送模块,具体用于按照预设频率发送多个目标音频信号,其中,所述多个目标音频信号包括第一探测信号和第二探测信号,所述至少一个到达时间包括所述第一探测信号所对应的第一时间集合和所述第二探测信号所对应的第二时间集合,所述第一时间集合包括所述第一探测信号通过直射和/或反射到达所述终端设备的至少一个时间,所述第二时间集合包括所述第二探测信号通过直射和/或反射到达所述终端设备的至少一个时间;
    获取模块,用于获取与所述终端设备对应的第一位置信息,所述第一位置信息用于指示所述终端设备位于车辆内部或车辆外部,所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔用于确定所述第一位置信息。
  19. 根据权利要求18所述的装置,其特征在于,所述目标音频信号为线性调频信号或ZC序列信号。
  20. 根据权利要求18或19所述的装置,其特征在于,
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆内部,其中,所述预设时间范围的确定因素包括所述车辆发送两个相邻的所述目标音频信号之间的时间间隔;
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔不位于所述预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆外部。
  21. 根据权利要求18或19所述的装置,其特征在于,所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔包括:所述第一时间集合中最晚的时间和所述第二时间集合中最早的时间之间的时间间隔。
  22. 根据权利要求18或19所述的装置,其特征在于,当所述发送模块检测到如下任一种或多种情况时,视为检测到满足所述第一触发条件:
    检测到所述车辆停车;或者,
    检测到所述终端设备与所述车辆之间的距离满足第一距离条件;或者,
    获取到第一指令,所述第一指令用于触发所述车辆获取所述第一位置信息。
  23. 根据权利要求22所述的装置,其特征在于,
    所述发送模块,具体用于获取所述车辆的速度、加速度和角速度,并将所述车辆的速度、加速度和角速度输入分类模型,得到所述分类模型输出的预测类别信息,所述预测类别信息指示所述车辆处于停止状态或移动状态。
  24. 一种位置的获取装置,其特征在于,所述位置的获取装置应用于终端设备,所述终端设备包括于位置的获取系统,所述位置的获取系统还包括车辆,所述装置包括:
    获取模块,用于在检测到满足第二触发条件的情况下,获取与至少一个目标音频信号对应的至少一个到达时间,所述至少一个目标音频信号包括由所述车辆按照预设频率发出的多个目标音频信号,所述多个目标音频信号包括第一探测信号和第二探测信号,所述至少一个到达时间包括所述第一探测信号所对应的第一时间集合和所述第二探测信号所对应的第二时间集合,所述第一时间集合包括所述第一探测信号通过直射和/或反射到达所述终端设备的至少一个时间,所述第二时间集合包括所述第二探测信号通过直射和/或反射到达所述终端设备的至少一个时间;
    生成模块,用于根据所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔,生成与所述终端设备对应的第一位置信息,所述第一位置信息用于指示所述终端设备位于车辆内部或车辆外部。
  25. 根据权利要求24所述的装置,其特征在于,
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔位于预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆内部,其中,所述预设时间范围的确定因素包括所述车辆发送两个相邻的所述目标音频信号之间的时间间隔;
    若所述第一时间集合和所述第二时间集合中的到达时间之间的时间间隔不位于所述预设时间范围内,则所述第一位置信息指示所述终端设备位于车辆外部。
  26. 根据权利要求24所述的装置,其特征在于,
    所述生成模块,具体用于根据所述第一时间集合中最晚的时间和所述第二时间集合中最早的时间之间的时间间隔,生成所述第一位置信息。
  27. 根据权利要求24至26任一项所述的装置,其特征在于,当所述获取模块检测到如下任一种或多种情况时,视为检测到满足所述第二触发条件:
    检测到所述车辆停车;或者,
    检测到所述终端设备与所述车辆之间的距离满足第一距离条件;或者,
    检测到所述终端设备的位移符合预设位移;或者,
    获取到第二指令,所述第二指令用于触发所述终端设备获取所述第一位置信息。
  28. 一种车辆,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时实现权利要求1至6中任一项所述的方法,或者,当所述存储器存储的程序指令被所述处理器执行时实现权利要求11或12所述的方法,或者,当所述存储器存储的程序指令被所述处理器执行时实现权利要求15或16所述的方法。
  29. 一种终端设备,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时实现权利要求7至10中任一项所述的方法,或者,当所述存储器存储的程序指令被所述处理器执行时实现权利要求13或14所述的方法,或者,当所述存储器存储的程序指令被所述处理器执行时实现权利要求17所述的方法。
  30. 一种计算机可读存储介质,其特征在于,包括程序代码,当所述程序代码在计算机上运行时,使得计算机执行如权利要求1至17中任一项所述的方法。
  31. 一种计算机程序产品,其特征在于,所述计算机程序产品包括程序代码,当所述程序代码在计算机或处理器上执行时,用于执行如权利要求1至17任一项所述的方法。
PCT/CN2022/128008 2021-10-30 2022-10-27 一种位置的获取方法以及相关设备 WO2023072207A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111278602.XA CN116074736A (zh) 2021-10-30 2021-10-30 一种位置的获取方法以及相关设备
CN202111278602.X 2021-10-30

Publications (1)

Publication Number Publication Date
WO2023072207A1 true WO2023072207A1 (zh) 2023-05-04

Family

ID=86160495

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/128008 WO2023072207A1 (zh) 2021-10-30 2022-10-27 一种位置的获取方法以及相关设备

Country Status (2)

Country Link
CN (1) CN116074736A (zh)
WO (1) WO2023072207A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6563761B1 (en) * 2000-11-02 2003-05-13 Trw Inc. Apparatus and method of vehicle occupant sensing using multiple ultrasonic frequencies
CN105210389A (zh) * 2013-03-19 2015-12-30 皇家飞利浦有限公司 用于确定麦克风的位置的方法和装置
CN105917248A (zh) * 2013-11-07 2016-08-31 驾驶管理系统公司 驾驶侧位置检测
CN106023388A (zh) * 2016-07-21 2016-10-12 杭州摇光科技有限公司 一种能识别持有被授权的移动控制端的用户位置的电子锁系统及方法
CN107850667A (zh) * 2015-07-14 2018-03-27 驾驶管理系统公司 使用rf无线信号及超声波信号检测电话的位置
CN108693502A (zh) * 2017-04-06 2018-10-23 沃尔沃汽车公司 用于确定用户装置相对于车辆的位置的方法和系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6563761B1 (en) * 2000-11-02 2003-05-13 Trw Inc. Apparatus and method of vehicle occupant sensing using multiple ultrasonic frequencies
CN105210389A (zh) * 2013-03-19 2015-12-30 皇家飞利浦有限公司 用于确定麦克风的位置的方法和装置
CN105917248A (zh) * 2013-11-07 2016-08-31 驾驶管理系统公司 驾驶侧位置检测
CN107850667A (zh) * 2015-07-14 2018-03-27 驾驶管理系统公司 使用rf无线信号及超声波信号检测电话的位置
CN106023388A (zh) * 2016-07-21 2016-10-12 杭州摇光科技有限公司 一种能识别持有被授权的移动控制端的用户位置的电子锁系统及方法
CN108693502A (zh) * 2017-04-06 2018-10-23 沃尔沃汽车公司 用于确定用户装置相对于车辆的位置的方法和系统

Also Published As

Publication number Publication date
CN116074736A (zh) 2023-05-05

Similar Documents

Publication Publication Date Title
JP6773046B2 (ja) 運転支援装置及び運転支援方法、並びに移動体
WO2018068647A1 (zh) 一种汽车与无人机之间的通信方法、装置、设备和操作系统
KR101682880B1 (ko) 차량 및 이를 포함하는 원격 차량 조작 시스템
WO2022000448A1 (zh) 车内隔空手势的交互方法、电子装置及系统
KR101878811B1 (ko) 실시간 지도 생성을 위한 v2x 통신 시스템 및 그 동작방법
JP6766171B2 (ja) 車両制御システム、車両制御方法、および車両制御プログラム
KR20190100897A (ko) 자율주행시스템에서 차량의 제어 방법 및 그 장치
CN111532259A (zh) 汽车的遥控控制方法、装置及存储介质
CN108733026B (zh) 基于与车辆的接近度的动态远程控制重新配置方法和设备
KR101828400B1 (ko) 휴대용 v2x 단말기 및 그 동작방법
KR20160114486A (ko) 이동단말기 및 이동 단말기의 제어방법
KR101841501B1 (ko) 카 쉐어링을 위한 이동 단말기 및 카 쉐어링 시스템의 동작 방법
US20190296833A1 (en) Terminal apparatus and apparatus system
US20200026421A1 (en) Method and system for user interface layer invocation
WO2023072207A1 (zh) 一种位置的获取方法以及相关设备
WO2023072118A1 (zh) 一种音频流的处理方法、地址的处理方法以及相关设备
WO2023072120A1 (zh) 一种位置的获取方法以及相关设备
US20240114083A1 (en) Data interaction method and apparatus, vehicle, readable storage medium and chip
KR101916425B1 (ko) 차량용 사용자 인터페이스 장치, 차량과 이동 단말기의 연동 시스템
KR101859043B1 (ko) 이동단말기, 차량과 이동 단말기의 연동 시스템
KR101892498B1 (ko) 차량용 사용자 인터페이스 장치, 차량과 이동 단말기의 연동 시스템
CN208515473U (zh) 一车辆和超声波系统
KR20170009558A (ko) 차량간 블랙박스 영상을 공유하는 내비게이션 단말 장치
CN114801832B (zh) 充电设备、方法、装置、车辆、电子设备和存储介质
EP4296132A1 (en) Vehicle control method and apparatus, vehicle, non-transitory storage medium and chip

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22886082

Country of ref document: EP

Kind code of ref document: A1