Identification method, terminal device, system and storage medium for target device selection
By wirelessly connecting a portable device to multiple controllable devices and using Doppler frequency shift to identify the target device, the problem of high power consumption and privacy leakage in the existing technology is solved, and a more efficient and secure device selection interaction is achieved.
Patent Information
- Application Number
- CN202210495392.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-07
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-05-07
AI Technical Summary
In the existing technology, when a user selects a device through non-touch natural interaction behavior, the portable device needs to continuously make sounds and other devices in the home environment continue to record, resulting in high power consumption and the risk of user privacy leakage.
Portable devices are wirelessly connected to multiple controllable devices, detect the user's first action and send audio signals and request recording, calculate the Doppler frequency shift to determine the target device, control the time of audio collection and playback, reduce device power consumption and Improve user privacy security.
It effectively reduces the power consumption of the device and the risk of user privacy leakage, and improves the security of user privacy and the convenience of interaction.
Smart Images

Figure CN117056895B
Abstract
Description
Technical Field
[0001] The present application relates to the field of multi-terminal interaction technology, and in particular to a target device selection identification method, terminal device, system and storage medium. Background Art
[0002] With the development of smart devices, in order to enable users to control a device more conveniently, the user's intention to select a device can be identified through non-touch natural interaction behaviors.
[0003] In a home environment, if a user wants to select a device to control through non-touch natural interaction, the user's portable device speaker continuously emits a high-frequency (ultrasonic) sine wave signal of, for example, 19 kHz, and the microphones of other devices in the home environment continuously collect data. When the user makes a specific gesture through the portable device, causing the portable device to move relative to the target device, the target device will recognize the user's specific gesture, and then the portable device can determine the target device selected by the user among other devices in the home environment, wherein the device with a specific Doppler frequency shift is the target device selected by the user.
[0004] However, in the above method, the user's portable device needs to make continuous sound, and other devices in the home environment need to continuously record to recognize the gestures made by the user. This method consumes large power and has the risk of user privacy leakage. Summary of the invention
[0005] The embodiments of the present application provide a target device selection identification method, terminal device, system and storage medium. The target device selection identification method can at least solve the above-mentioned problems of high power consumption and potential risks of user privacy leakage.
[0006] In the first aspect, the embodiment of the present application provides a method for identifying target device selection, which is applied to a portable device, wherein the portable device is wirelessly connected to a plurality of controllable devices, and detects a first action of a user; in response to the first action, sends an audio signal and sends a recording request message to the controllable device; obtains the audio signal collected by the controllable device; and calculates the Doppler frequency shift amount corresponding to the audio signal collected by the controllable device, and determines that the controllable device with a specific Doppler frequency shift amount is the target device. The first action of the user is detected by the portable device, so that after the first action of the user is detected, the portable device is triggered to start sending an audio signal and the controllable devices in the scene are controlled to start collecting the audio signal sent by the portable device. By setting the corresponding trigger conditions for starting the action for the portable device's audio playback operation and the controllable device's audio collection operation, the power consumption of the portable device and the controllable device can be reduced, and starting audio collection when the trigger conditions are met can also reduce the risk of user privacy leakage and improve the security of user privacy.
[0007] Furthermore, the wireless connection between the portable device and the multiple controllable devices includes: establishing a near field communication connection between the portable device and the multiple controllable devices, and the near field communication connection includes a Bluetooth communication connection or a Wi-Fi connection.
[0008] Furthermore, the portable device and multiple controllable devices log in to the same account. In a distributed scenario, some characteristics of the distributed scenario can be used to perform operations such as device discovery, detection of the connection status between devices, and detection of functions supported by other devices in the scenario, thereby improving the convenience of information sharing before interaction between devices.
[0009] Furthermore, before detecting the first action of the user, the method further includes: detecting a controllable device connected to the portable device; wherein the controllable device has at least an audio acquisition function. Before executing the detection of the first action of the user, by detecting the controllable device connected to the portable device, the portable device can interact with the controllable device in the scene in a targeted manner in the stage of identifying the target device selected by the user, thereby identifying the target device selected by the user, and the targeted interaction can reduce the power consumption of the device.
[0010] Furthermore, before calculating the Doppler frequency shift amount corresponding to the audio signal collected by the controllable device and determining that the controllable device with a specific Doppler frequency shift amount is the target device, it also includes: if the set conditions are met, stop sending the audio signal and send a stop recording request message to the controllable device. Stop the above-mentioned audio playback and audio collection operations after the set conditions are met. By setting corresponding trigger conditions for starting and stopping actions for the audio playback operation of the portable device and the audio collection operation of the controllable device, the power consumption of the portable device and the controllable device can be reduced, and starting audio collection when the trigger conditions are met can also reduce the risk of user privacy leakage and improve the security of user privacy.
[0011] Furthermore, if the set conditions are met, stopping sending the audio signal and sending a stop recording request message to the controllable device includes: detecting a second action of the user; and in response to the second action, stopping sending the audio signal and sending a stop recording request message to the controllable device. By detecting whether the portable device meets the set conditions, when the set conditions are met, the portable device is triggered to stop sending the audio signal (i.e., stop playing the audio) and send a stop recording request message to the controllable device, so that the controllable device stops collecting audio signals. Through this control method, the portable device and the controllable device can be controlled to perform audio playback and collection actions only within a certain period of time, which can reduce the power consumption of the device, and the controllable device can be controlled to collect audio within a certain period of time, which can reduce the risk of user privacy leakage and improve user privacy security.
[0012] Furthermore, the first action is an action in a specific gesture, and the second action includes the first action; wherein the specific gesture includes the second action or the specific gesture is the second action.
[0013] Furthermore, if the set conditions are met, stopping sending the audio signal and sending a stop recording request message to the controllable device includes: starting from the detection of the user's first action and after a set time, stopping sending the audio signal and sending a stop recording request message to the controllable device. In some embodiments, the set condition can also be that the portable device detects the user's first action and after a set time, the portable device stops the audio sending action and the controllable device stops the audio collection action through the automatic timing method. Similarly, through this control method, the portable device and the controllable device can be controlled to perform audio playback and collection actions only within a certain period of time, which can reduce the power consumption of the device, and the controllable device can be controlled to perform audio collection within a certain period of time, which can reduce the risk of user privacy leakage and improve user privacy security.
[0014] Further, determining that a controllable device with a specific Doppler frequency shift is a target device includes: determining that a controllable device with a maximum Doppler frequency shift is a target device based on the Doppler frequency shift corresponding to the audio signal collected by the controllable device. Since the horizontal component of the tangential velocity of the microphone of the portable device points to the target device when the user uses the portable device to make a specific gesture, the corresponding Doppler frequency shift of the audio signal collected at the target device is the largest compared to the corresponding Doppler frequency shift of the audio signal collected by other controllable devices, so that the controllable device with the maximum Doppler frequency shift can be identified as the target device.
[0015] Furthermore, determining that a controllable device having a specific Doppler frequency shift is a target device includes: simulating a first waveform based on the frequency change generated by the horizontal component of the tangential velocity of the microphone of the portable device; simulating a second waveform corresponding to each controllable device for reflecting the frequency shift change based on the Doppler frequency shift corresponding to the audio signal collected by the controllable device; and selecting a target second waveform with the highest similarity to the first waveform from multiple second waveforms, and determining that the controllable device corresponding to the target second waveform is the target device. Since the horizontal component of the tangential velocity of the microphone of the portable device points to the target device when the user uses the portable device to make a specific gesture, after the audio signal is collected at the target device, the corresponding waveform (second waveform) is simulated based on the change of the Doppler frequency shift corresponding to the collected audio signal, and the corresponding waveform (second waveform) can also be simulated based on the change of the Doppler frequency shift corresponding to the audio signal collected by other controllable devices. The portable device simulates the first waveform based on the frequency change generated by the horizontal component of the tangential velocity of the microphone. By comparing the similarity of the waveforms, the similarity between the second waveform of the target device and the first waveform is the highest compared with other controllable devices. Therefore, the corresponding controllable device whose second waveform is the most similar to the first waveform can be identified as the target device.
[0016] In the second aspect, the embodiment of the present application also provides a method for identifying target device selection, which is applied to a portable device, and the portable device is wirelessly connected to multiple controllable devices. The method includes: detecting a first action of a user; in response to the first action, collecting an audio signal and sending a play audio request message to multiple controllable devices; calculating the Doppler frequency shift corresponding to the collected audio signal, and determining that the controllable device with a specific Doppler frequency shift is the target device. In some embodiments, the portable device sends an audio signal as a sounding end, and the controllable device collects the audio signal sent by the portable device as a collecting end. However, the device at the collecting end needs to support the function of high-frequency sampling and sound collection, and the audio sampling frequency must be at least 40khz. However, some devices cannot support high-frequency sampling and sound collection due to hardware limitations. The identification method for target device selection provided in the second aspect can be based on the identification method for target device selection provided in the first aspect, and the sounding end and the sound receiving end can be interchanged and adjusted, that is, the controllable device can be used as a sounding end to send an audio signal, and the portable device can be used as a collecting end to collect the audio signal sent by the portable device. In this way, the problem that hardware limitations cannot support high-frequency sampling and sound collection can be overcome, and there is no need to upgrade the hardware functions of the controllable device, thereby reducing the cost of the device.
[0017] Furthermore, the wireless connection between the portable device and the multiple controllable devices includes: establishing a near field communication connection between the portable device and the multiple controllable devices, and the near field communication connection includes a Bluetooth communication connection or a Wi-Fi connection.
[0018] Furthermore, the portable device and multiple controllable devices log in to the same account. In a distributed scenario, some characteristics of the distributed scenario can be used to perform operations such as device discovery, detection of the connection status between devices, and detection of functions supported by other devices in the scenario, thereby improving the convenience of information sharing before interaction between devices.
[0019] Furthermore, before detecting the first action of the user, the method further includes: detecting a controllable device connected to the portable device; wherein the controllable device has at least an audio sounding function. Before executing the detection of the first action of the user, by detecting the controllable device connected to the portable device, the portable device can interact with the controllable device in the scene in a targeted manner in the stage of identifying the target device selected by the user, thereby identifying the target device selected by the user, and the targeted interaction can reduce the power consumption of the device.
[0020] Furthermore, in response to the first action, collecting audio signals and sending a play audio request message to multiple controllable devices includes: in response to the first action, sending a play audio request message to the controllable devices so that the controllable devices play audio at the agreed frequency respectively; in response to the first action, controlling the microphone of the portable device to collect the audio played by the controllable device at the agreed frequency. In order to improve the immediacy of the user's target device recognition, the controllable devices can be controlled to play audio at the same time. In order to collect the audio played by each controllable device when the controllable devices play audio at the same time, the frequency of each controllable device playing audio can be pre-agreed, and then the portable device can collect the audio played by each controllable device at the predetermined frequency.
[0021] Furthermore, the controllable devices playing audio at the agreed frequencies respectively include: the controllable devices allocating frequency bands according to a certain frequency difference, and playing audio at corresponding frequencies according to the frequencies allocated to themselves.
[0022] Furthermore, before calculating the Doppler frequency shift corresponding to the collected audio signal and determining the controllable device with a specific Doppler frequency shift as the target device, it also includes: if the set conditions are met, stopping collecting the audio signal and sending a stop audio playback request message to the controllable device.
[0023] Furthermore, if the set conditions are met, stopping collecting audio signals and sending a stop audio playback request message to the controllable device includes: detecting a second action of the user; and in response to the second action, stopping collecting audio signals and sending a stop audio playback request message to the controllable device. By detecting whether the portable device meets the set conditions, when the set conditions are met, the portable device is triggered to stop sending audio signals (i.e., stop playing audio) and send a stop recording request message to the controllable device, so that the controllable device stops collecting audio signals. Through this control method, the portable device and the controllable device can be controlled to perform audio playback and collection actions only within a certain period of time, which can reduce the power consumption of the device, and the controllable device can be controlled to perform audio collection within a certain period of time, which can reduce the risk of user privacy leakage and improve user privacy security.
[0024] Furthermore, the first action is an action in a specific gesture, and the second action includes the first action; wherein the specific gesture includes the second action or the specific gesture is the second action.
[0025] Furthermore, if the set conditions are met, then the audio signal collection is stopped and a stop audio playback request message is sent to the controllable device, including: starting from the detection of the user's first action and after a set time, the audio signal collection is stopped and a stop audio playback request message is sent to the controllable device. In some embodiments, the set condition can also be that the portable device detects the user's first action and after a set time, the portable device stops the audio sending action and the controllable device stops the audio collection action through the automatic timing method. Similarly, through this control method, the portable device and the controllable device can be controlled to perform audio playback and collection actions only within a certain period of time, which can reduce the power consumption of the device, and the controllable device can be controlled to perform audio collection within a certain period of time, which can reduce the risk of user privacy leakage and improve user privacy security.
[0026] Further, determining that a controllable device with a specific Doppler frequency shift is a target device includes: determining that a controllable device with a maximum Doppler frequency shift is a target device based on the Doppler frequency shift corresponding to the audio signal collected by the controllable device. Since the horizontal component of the tangential velocity of the microphone of the portable device points to the target device when the user uses the portable device to make a specific gesture, the corresponding Doppler frequency shift of the audio signal collected at the target device is the largest compared to the corresponding Doppler frequency shift of the audio signal collected by other controllable devices, so that the controllable device with the maximum Doppler frequency shift can be identified as the target device.
[0027] Furthermore, determining that a controllable device having a specific Doppler frequency shift is a target device includes: simulating a first waveform based on the frequency change generated by the horizontal component of the tangential velocity of the microphone of the portable device; simulating a second waveform corresponding to each controllable device for reflecting the frequency shift change based on the Doppler frequency shift corresponding to the audio signal collected by the controllable device; and selecting a target second waveform with the highest similarity to the first waveform from multiple second waveforms, and determining that the controllable device corresponding to the target second waveform is the target device. Since the horizontal component of the tangential velocity of the microphone of the portable device points to the target device when the user uses the portable device to make a specific gesture, after the audio signal is collected at the target device, the corresponding waveform (second waveform) is simulated based on the change of the Doppler frequency shift corresponding to the collected audio signal, and the corresponding waveform (second waveform) can also be simulated based on the change of the Doppler frequency shift corresponding to the audio signal collected by other controllable devices. The portable device simulates the first waveform based on the frequency change generated by the horizontal component of the tangential velocity of the microphone. By comparing the similarity of the waveforms, the similarity between the second waveform of the target device and the first waveform is the highest compared with other controllable devices. Therefore, the corresponding controllable device whose second waveform is the most similar to the first waveform can be identified as the target device.
[0028] In a third aspect, an embodiment of the present application also provides a target device selection identification method, which is applied to a controllable device, and the controllable device is wirelessly connected to a portable device. The method includes: receiving a recording request message, and starting audio signal collection according to the recording request message; and providing the collected audio signal to the portable device.
[0029] Furthermore, providing the collected audio signal to the portable device includes: sending the collected audio signal to the portable device via a wireless connection with the portable device.
[0030] Furthermore, providing the collected audio signal to the portable device includes: storing the collected audio signal in a distributed database.
[0031] In a fourth aspect, an embodiment of the present application further provides a target device selection identification method, which is applied to a controllable device, where the controllable device is wirelessly connected to a portable device, and the method includes: receiving an audio play request message, and sending an audio signal based on the audio play request message.
[0032] Further, sending the audio signal based on the audio playing request message includes: playing the audio at an agreed frequency.
[0033] In a fifth aspect, an embodiment of the present application provides an interactive system, comprising: a portable device and multiple controllable devices; wherein the portable device is wirelessly connected to the multiple controllable devices; the portable device is used to perform the following steps: detecting a first action of the user; in response to the first action, sending an audio signal and sending a recording request message to the controllable device; acquiring the audio signal collected by the controllable device; and calculating the Doppler frequency shift amount corresponding to the audio signal collected by the controllable device, and determining that the controllable device with a specific Doppler frequency shift amount is the target device; the controllable device is used to perform the following steps: receiving a recording request message, and starting audio signal collection according to the recording request message; and providing the collected audio signal to the portable device.
[0034] In a sixth aspect, an embodiment of the present application provides a portable device, comprising: a processor and a memory, the memory being used to store at least one instruction, which, when loaded and executed by the processor, implements the target device selection identification method provided in the first aspect or the second aspect.
[0035] In a seventh aspect, an embodiment of the present application provides an interactive system, comprising: the portable device provided in the sixth aspect and multiple remote devices; wherein the portable device is wirelessly connected to the multiple remote devices.
[0036] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the target device selection identification method provided in the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 A schematic diagram of an application scenario applicable to the embodiments of the present application;
[0039] Figure 2 A schematic diagram of a specific scenario applicable to the embodiments of the present application;
[0040] Figure 3 A flowchart of selecting a target device from multiple devices in the related art;
[0041] Figure 4a A schematic diagram of the hardware structure of a portable device provided in an embodiment of the present application;
[0042] Figure 4bis a software structure block diagram of the portable device 100 according to an embodiment of the present application;
[0043] Figure 5 A schematic diagram of connecting a portable device and a remote device provided in one embodiment of the present application;
[0044] Figure 6 A schematic diagram of the functional association of the hardware of the portable device provided in the embodiment of the present application;
[0045] Figure 7 A functional schematic diagram of a portable device and a remote device provided in an embodiment of the present application;
[0046] Figure 8a A flowchart of a target device selection identification method provided by one embodiment of the present application;
[0047] Figure 8b A schematic diagram of the frequency of sending an audio signal by a portable device provided in one embodiment of the present application;
[0048] Fig. 9 A schematic diagram of a specific application scenario provided for an embodiment of the present application;
[0049] Fig.10a A schematic diagram of a specific gesture provided for one embodiment of the present application;
[0050] Fig.10b A schematic diagram of a horizontal velocity component caused by a specific gesture provided in one embodiment of the present application;
[0051] Fig.11 A schematic diagram of monitoring data of acceleration and angular velocity of a portable device provided in one embodiment of the present application;
[0052] Fig.12 A waveform diagram of the frequency change generated by the horizontal component of the tangential velocity of a mobile phone microphone provided in one embodiment of the present application;
[0053] Fig.13 A waveform diagram of frequency shift changes corresponding to an audio signal collected by a television set provided in one embodiment of the present application;
[0054] Fig.14 A waveform diagram of frequency shift changes corresponding to an audio signal collected by a speaker provided in one embodiment of the present application;
[0055] Fig.15 A flowchart of a method for identifying target device selection provided by another embodiment of the present application;
[0056] Fig.16 A schematic diagram of the frequency of sending an audio signal by a controllable device provided in one embodiment of the present application;
[0057] Fig.17 A frequency diagram of an audio signal sent by a controllable device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] In order to clearly describe the embodiments of the present application, the concepts involved in the present application are explained below:
[0060] Doppler effect: refers to the fact that when there is relative motion between an observer and the source of a wave, the frequency of the wave received by the observer is different compared to the frequency of the source of the wave. For example, the pitch of an ambulance siren will increase as the ambulance approaches the observer and decrease as the ambulance moves away from the observer. Correspondingly, if the ambulance is stationary and the siren sounds, and the observer moves relative to the stationary ambulance, the pitch of the siren heard by the observer will change.
[0061] Doppler shift: The difference between the transmitted and received frequencies caused by the Doppler effect is called Doppler shift. When the observer approaches the sound source, the wavelength of the received sound wave shortens, which can be understood as the sound wave being compressed, which in turn increases the number of waves propagated within a certain time interval and the frequency becomes higher. Conversely, when the observer moves away from the sound source, the wavelength becomes longer and the frequency becomes lower.
[0062] With the continuous development of current intelligent devices, users have increasing requirements for the controllability of smart devices. In an environment where multiple smart devices are placed, users want to be able to control or interact with target devices among multiple smart devices more conveniently. Users can make directional natural gestures by operating portable devices, and then select a target device to interact with or control the target device.
[0063] Figure 1 Schematic diagram of application scenarios applicable to the embodiments of the present application. Figure 1 As shown, the scenario may include a portable device 100 and multiple remote devices 200 . Figure 2 This is a schematic diagram of a specific scenario applicable to the embodiment of the present application. Figure 2As shown, the portable device 100 is a mobile phone, and the multiple remote devices include a first large screen device and a second large screen device. The mobile phone, the first large screen device and the second large screen device are in the same distributed scene.
[0064] Reference Figure 1 As shown, the user can perform directional interaction with a target device in multiple remote devices 200 through the portable device 100, or control a target device in multiple remote devices 200 through the portable device 100. Figure 2 As shown, the user can make directional natural gestures through the mobile phone toward the target device in the first large screen device and the second large screen device, select the user's target device, and then the user can share the picture to the target device through the mobile phone and display the picture on the target device. Alternatively, the user can make directional natural gestures through the mobile phone toward the target device in the first large screen device and the second large screen device, select the user's target device, and then the user can adjust the volume, display screen size, playback speed and other adjustable factors of the target device through the mobile phone.
[0065] Figure 1 Before the portable device 100 shown interacts with the target device or the portable device 100 controls the target device, it is necessary to identify the target device selected by the user. In order to enable the user to select the target device from multiple remote devices 200 more naturally and conveniently through the portable device 100, the user can operate the portable device 100 to make a specific gesture, and the portable device 100 can emit an ultrasonic signal, and multiple remote devices 200 can receive the ultrasonic signal emitted by the portable device 100. During the process of the user making a specific gesture through the portable device 100, there is a relative motion between the portable device 100 and the target device, and the frequency of the ultrasonic signal received by the remote device 200 changes, that is, Doppler frequency shift occurs. The remote device 200 with a specific Doppler frequency shift amount can be determined as the target device.
[0066] Figure 3 The flowchart of selecting a target device from multiple devices in the related art is shown in FIG. Figure 2 The scene shown, combined with Figure 3In the process shown, when the screens of the first large-screen device and the second large-screen device are in working state, the microphones of the first large-screen device and the second large-screen device continuously collect audio signals so that when the mobile phone sends out ultrasonic signals, the ultrasonic signals can be received. If the user wants to control the target devices in the first large-screen device and the second large-screen device through the mobile phone, for example, to project the screen to the target device through the mobile phone, the user can send corresponding instructions to the mobile phone to control the mobile phone to continuously send ultrasonic waves. The user operates the mobile phone to make a specific gesture toward the target device, and the first large-screen device and the second large-screen device collect the ultrasonic signals sent by the mobile phone and analyze them, and calculate the Doppler frequency shift amount in the process of the large-screen device receiving the ultrasonic signal. The mobile phone obtains the Doppler frequency shift amount calculated by the first large-screen device and the second large-screen device, and then the mobile phone determines that the large-screen device with a specific Doppler frequency shift amount is the target device. In a possible implementation example, the mobile phone then obtains control of the target device.
[0067] exist Figure 3 In the related technical scheme shown, when the screens of the first large-screen device and the second large-screen device are in working state, the microphones of the first large-screen device and the second large-screen device continuously collect audio signals, which not only increases the power consumption of the large-screen devices but also the operation of continuously collecting audio signals also poses a risk of user privacy leakage.
[0068] Figure 4a This is a schematic diagram of the hardware structure of the portable device provided in the embodiment of the present application. Figure 4a As shown, the portable device 100 may include a processor 110, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a gyroscope sensor 180B and an acceleration sensor 180E, etc.
[0069] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the portable device 100. In other embodiments of the present application, the portable device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0070] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0071] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0072] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0073] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0074] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses.
[0075] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0076] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0077] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0078] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to realize the shooting function of the portable device 100. The processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the portable device 100.
[0079] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0080] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the portable device 100, and can also be used to transmit data between the portable device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0081] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the portable device 100. In other embodiments of the present application, the portable device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0082] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the portable device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0083] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0084] The wireless communication function of the portable device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0085] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the portable device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0086] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the portable device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0087] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0088] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the portable device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0089] In some embodiments, the antenna 1 of the portable device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the portable device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0090] The portable device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0091] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the portable device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0092] The portable device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0093] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0094] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the portable device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0095] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the portable device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0096] Video codecs are used to compress or decompress digital videos. The portable device 100 may support one or more video codecs. Thus, the portable device 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0097] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, the portable device 100 can realize intelligent cognition and other applications, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0098] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the portable device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the portable device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0099] The portable device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
[0100] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0101] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The portable device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0102] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the portable device 100 receives a call or voice message, the voice can be heard by placing the receiver 170B close to the ear.
[0103] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The portable device 100 can be provided with at least one microphone 170C. In other embodiments, the portable device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the portable device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0104] The gyro sensor 180B can be used to determine the motion posture of the portable device 100. In some embodiments, the angular velocity of the portable device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the portable device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the portable device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0105] The acceleration sensor 180E can detect the magnitude of the acceleration of the portable device 100 in all directions (generally three axes). When the portable device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0106] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The portable device 100 may receive key input and generate key signal input related to user settings and function control of the portable device 100.
[0107] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the portable device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The portable device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The portable device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the portable device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the portable device 100 and cannot be separated from the portable device 100.
[0108] The software system of the portable device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the portable device 100.
[0109] Figure 4b It is a software structure block diagram of the portable device 100 according to an embodiment of the present application.
[0110] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0111] The application layer can include a series of application packages.
[0112] like Figure 4b As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0113] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0114] like Figure 4b As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0115] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0116] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0117] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0118] The phone manager is used to provide communication functions of the portable device 100, such as management of call status (including answering, hanging up, etc.).
[0119] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0120] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0121] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0122] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0123] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0124] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0125] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0126] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0127] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0128] A 2D graphics engine is a drawing engine for 2D drawings.
[0129] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0130] The following is an illustrative description of the software and hardware workflow of the portable device 100 in conjunction with capturing a photo scene.
[0131] Based on the touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into raw input events (including touch coordinates, timestamp of the touch operation, and other information). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input events from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.
[0132] The portable device 100 provided in the embodiment of the present application includes but is not limited to: a mobile phone,
[0133] based on Figure 4a The hardware structure of the portable device 100 shown, and the corresponding hardware (physical unit) can be applied to the technical solution of the present application through the following corresponding operations:
[0134] In a feasible implementation, the portable device 100 can monitor the user's gesture based on the acceleration collected by the acceleration sensor 180E and the angular velocity collected by the gyroscope sensor 180B. For example, when the acceleration collected by the acceleration sensor 180E of the portable device 100 is greater than a first threshold and the angular velocity collected by the gyroscope sensor 180B of the portable device 100 is greater than a second threshold, the portable device 100 determines that the user is performing a specific gesture operation.
[0135] In one feasible implementation, the speaker 170A of the portable device 100 can send audio signals, exemplarily, can send ultrasonic signals, and the microphone 170C of the portable device 100 can collect audio signals, exemplarily, can collect user voice commands or collect audio signals sent by the remote device 200.
[0136] In an achievable implementation, a wireless communication connection is established between the portable device 100 and the remote device 200, specifically, a near field communication connection is established between the portable device 100 and the remote device 200, wherein the near field communication connection may include an NFC communication connection, a Bluetooth communication connection, or a Wi-Fi communication connection. Figure 5 A schematic diagram of a portable device and a remote device connected to one embodiment of the present application. Figure 5 As shown, the portable device 100 can access the home gateway through the wireless communication module 160. For example, the home gateway can be as follows: Figure 5 In the router 300 shown, the portable device 100 can access the Wi-Fi network by connecting to the Wi-Fi hotspot provided by the router 300 through the wireless communication module 160. The remote device 200 and the portable device 100 access the same Wi-Fi network, and the portable device 100 can build a distributed scene with multiple remote devices 200, thereby realizing rapid interaction between the devices.
[0137] In an embodiment of the present application, the portable device 100 can find the currently controllable remote device 200a (hereinafter referred to as the controllable device 200a) in the distributed scene. Exemplarily, the portable device 100 can be a user's mobile phone, tablet computer, smart watch, augmented reality (AR) device or virtual reality (VR) device, etc., or the portable device 100 can be an electronic device of other types or structures, which is not limited in this application. On the one hand, the remote device 200 can be a smart home device, which can specifically include: alarms, surveillance cameras, smart door locks and other devices for security; smart table lamps, smart ceiling lamps and other devices for lighting; TV sets, audio equipment and other equipment for entertainment; dishwashers, ovens and other equipment for kitchen appliances; electric curtains and other equipment for home decoration; or cleaning robots, washing machines and other equipment. In other embodiments, other smart home devices can also be used, which are not listed here one by one. On the other hand, the remote device 200 can also be a smart office device, which can specifically include: large-screen devices, printers, projectors and other equipment. Among them, the currently controllable remote device 200a is a remote device 200 having at least an audio collection function or an audio sound generation function.
[0138] In an achievable implementation, the processor 110 of the portable device 100 can send a recording request message or a sound request message to the controllable device 200a at a first set time through a wireless communication connection with the remote device 200. The portable device 100 can pre-agree with the remote device 200 which device is the sound device. The first set time can be when the portable device 100 detects that the user uses the portable device 100 to make a specific action, for example, the user uses a mobile phone to make a starting action of a specific gesture.
[0139] In one implementation, it can be agreed in advance that the portable device 100 is a sound-emitting device, and the remote device 200 is a sound-receiving device. In this case, the processor 110 of the portable device 100 can control the speaker 170A of the portable device 100 to send an audio signal at a first set time, and the processor 110 of the portable device 100 can be connected to the remote device 200 through wireless communication, and send a recording request message to the controllable device 200a at the first set time. The controllable device 200a records the audio through the microphone of the controllable device 200a based on the recording request message, thereby collecting the audio signal sent by the portable device 100.
[0140] In another embodiment, it can be pre-agreed that the remote device 200 is a sound emitting device, and the portable device 100 is a sound receiving device. In this case, the processor 110 of the portable device 100 can control the microphone 170C of the portable device 100 to start collecting audio signals at a first set time, and the processor 110 of the portable device 100 can be connected to the remote device 200 through wireless communication, and send a sound request message to the controllable device 200a at the first set time, and the controllable device 200a sends an audio signal through the speaker of the controllable device 200a based on the sound request message.
[0141] The processor 110 of the portable device 100 can send a stop recording request message or a stop sounding request message to the controllable device 200a at a second set time through a wireless communication connection with the remote device 200. The second set time may be after the portable device 100 detects that the user uses the portable device 100 to make a corresponding action, for example, after the user uses the mobile phone to make a specific gesture, or after the user uses the mobile phone to complete the specific gesture for a period of time, the period of time includes but is not limited to 200ms.
[0142] The processor 110 of the portable device 100 can analyze the audio signal collected by the microphone of the portable device 100 according to the set algorithm, calculate the corresponding Doppler frequency shift, and determine the target device selected by the user according to the calculated Doppler frequency shift, and the target device is a device with a specific Doppler frequency shift in the controllable device 200a.
[0143] In some embodiments, the processor 110 of the portable device 100 may also obtain the audio signal collected by the controllable device 200a, and analyze the audio signal according to the set algorithm. Exemplarily, the controllable device 200a may store the collected audio signal in a distributed database, and the portable device 100 may read the audio data stored by the controllable device 200a from the distributed database, and analyze the audio signal according to the set algorithm.
[0144] In an achievable implementation, the wireless communication module 160 of the portable device 100 may perform a recognition step of the controllable device 200a after the display screen 194 of the portable device 100 is awakened. Exemplarily, the wireless communication module 160 of the portable device 100 may screen out the remote devices 200 that can be controlled in the distributed scene after the display screen 194 (in response to the user's touch action on the screen or in response to the user pressing the power button) lights up. The timing of triggering the wireless communication module 160 to perform the recognition step of the controllable device 200a includes but is not limited to the above-mentioned situations. For example, the controllable device 200a may also be determined after the portable device 100 is unlocked (by fingerprint, password or facial recognition, etc.).
[0145] Figure 6 A schematic diagram of the functional association of the hardware of the portable device provided in an embodiment of the present application. Figure 7 This is a functional diagram of a portable device and a remote device provided in an embodiment of the present application. Figure 6 and Figure 7 As shown, the display screen 194 and the processor 110 of the portable device 100 can cooperate with each other to realize the scene recognition function. Specifically, the wireless communication module 160 of the portable device 100 can screen out the remote devices 200 that can be controlled in the distributed scene after the display screen 194 is lit.
[0146] Combination Figure 6 and Figure 7 As shown, the wireless communication module 160 of the portable device 100 can be used for interaction between the portable device 100 and the controllable device 200a or for the portable device 100 to control a target device in the controllable device 200a, that is, to realize a device communication function.
[0147] Reference Figure 6 As shown, the acceleration sensor 180E, the gyroscope sensor 180B and the processor 110 of the portable device 100 can cooperate with each other to realize the function of gesture recognition perception. Specifically, the processor 110 can obtain the acceleration information collected by the acceleration sensor 180E and the angular velocity information collected by the gyroscope sensor 180B. The processor 110 recognizes the gesture made by the user by analyzing the acquired acceleration information and angular velocity information of the portable device 100. Exemplarily, when the processor 110 of the portable device 100 determines through analysis that the acceleration collected by the acceleration sensor 180E is greater than the first threshold value, and the angular velocity collected by the gyroscope sensor 180B of the portable device 100 is greater than the second threshold value, it can be determined that the user is performing a specific gesture operation. In another example, the processor 110 of the portable device 100 can obtain the acceleration collected by the acceleration sensor 180E and the angular velocity collected by the gyroscope sensor 180B for analysis. If it is determined that the data characteristics of the acceleration and angular velocity meet the specific gesture data characteristics according to the analysis results, it is determined that the user performs a specific gesture operation. The data characteristics can be a waveform formed by the data change trajectory. The specific steps of the specific gesture operation recognition are described in detail in the subsequent description.
[0148] Combination Figure 6 and Figure 7As shown, the speaker 170A, microphone 170C and processor 110 of the portable device 100 can cooperate with each other to realize the function of signal feature recognition. Exemplarily, in a scenario where the user moves the portable device 100 to make a specific gesture to select a target device, the speaker 170A of the portable device 100 can send an audio signal (ultrasonic signal) of a specific frequency, the movement of the portable device 100 relative to the controllable device 200a will cause a Doppler frequency shift, the microphone of the controllable device 200a can collect the audio signal sent by the portable device 100, the portable device 100 can obtain the audio signal collected by each controllable device 200a, the processor 110 of the portable device 100 can calculate the Doppler frequency shift amount of each audio signal based on the audio signal processing technology, and screen out the controllable device 200a with a specific Doppler frequency shift amount based on the Doppler frequency shift amounts corresponding to multiple audio signals, and then select the controllable device 200a with the specific Doppler frequency shift amount as the target device. The method for determining the target device based on the Doppler frequency shift of the audio signal collected by the controllable device 200a is described in detail in the subsequent description.
[0149] In other embodiments, in a scenario where the user moves the portable device 100 to make a specific gesture to select a target device, the microphones of multiple controllable devices 200a can send audio signals (ultrasonic signals) of a specific frequency, and the movement of the portable device 100 relative to the controllable device 200a can cause a Doppler frequency shift. The microphone 170C of the portable device 100 can collect the audio signals sent by the multiple controllable devices 200a. The processor 110 of the portable device 100 can calculate the Doppler frequency shift amount of each audio signal based on the audio signal processing technology, and filter out the controllable device 200a with a specific Doppler frequency shift amount based on the Doppler frequency shift amounts corresponding to the multiple audio signals, and then select the controllable device 200a with the specific Doppler frequency shift amount as the target device.
[0150] Combination Figure 6 and Figure 7 As shown, the remote device 200 also has a recording analysis function. In some embodiments, after collecting the audio signal sent by the speaker 170A of the portable device 100, the remote device 200 can calculate the Doppler frequency shift of the collected audio signal based on the audio signal processing technology, and store the calculated Doppler frequency shift in the distributed database. The portable device 100 can obtain the Doppler frequency shift of each controllable device 200a stored in the distributed database, and filter out the controllable device 200a with a specific Doppler frequency shift based on the Doppler frequency shift corresponding to the multiple audio signals, and then select the controllable device 200a with the specific Doppler frequency shift as the target device.
[0151] Figure 8aA flowchart of a target device selection identification method provided by an embodiment of the present application. Figure 5 The portable device 100 of the structure shown in FIG. Figure 8a The process shown in the figure is described in detail below for the target device selection identification method provided in the embodiment of the present application. Figure 8a As shown, the method may include the following steps:
[0152] Step 801: The portable device 100 discovers and detects a controllable device 200a that is connected to itself in the current scene.
[0153] Among them, in order to reduce the power consumption of the device in the technical solution of the present application, the user can control the controllable device 200a in the scene to collect audio signals within a specific time period through the portable device 100. Before executing the step of collecting audio signals in the specific time period for the controllable device 200a, the portable device 100 can pre-detect the controllable device 200a in the current scene that is connected to the portable device 100. Exemplarily, the portable device 100 can build a distributed scene with multiple remote devices 200, and the portable device 100 can use the device discovery feature of the distributed scene to discover the controllable device 200a in the scene. Fig. 9 The portable device 100 may be a schematic diagram of a specific application scenario provided by an embodiment of the present application. Fig. 9 The mobile phone S1 shown in the figure, the mobile phone S1 and the speaker D1, the TV D2, the surveillance camera D3 and the smart ceiling light (not shown in the figure) construct a distributed scene, wherein the speaker D1, the TV D2 and the surveillance camera D3 all have an audio acquisition function, an audio sound generation function and an audio signal analysis function, wherein the audio signal analysis function is at least a function of calculating the Doppler frequency shift of the audio signal. However, the smart ceiling light does not have an audio acquisition function or an audio sound generation function. The mobile phone S1 can determine that among the various devices it discovers based on the device discovery characteristics of the distributed scene, the smart ceiling light does not have an audio acquisition function or an audio sound generation function, and further determine that the smart ceiling light is not a controllable device 200a. Based on the same principle, the mobile phone S1 can discover the controllable devices speaker D1, the TV D2 and the surveillance camera D3.
[0154] Step 802: The portable device 100 detects a first action of the user.
[0155] In order to select the target device through non-touch natural interaction, the user can operate the portable device 100 to make a specific gesture toward the target device, so that a relative movement occurs between the portable device 100 and the target device. Fig.10a A schematic diagram of a specific gesture provided for an embodiment of the present application. Fig. 9 and Fig.10aAs shown, the user can use the mobile phone S1 to make a specific gesture toward the target device, and the specific gesture can be a "wave" gesture, wherein the "wave" gesture is specifically that the user uses the mobile phone S1 to wave back and forth toward the target device, so that there is a relative movement between the mobile phone S1 and the target device. Fig.10a As shown, the "move one move" gesture includes at least action "0", action "1" and action "2". Among them, the microphone of mobile phone S1 is set on the top of the mobile phone. When the user makes action "0" by moving mobile phone S1, the microphone of mobile phone S1 is far away from the target device, when making action "1", the microphone of mobile phone S1 is close to the target device, and when making action "2", the microphone of mobile phone S1 is far away from the target device again.
[0156] When the portable device 100 executes step 802 , that is, the portable device 100 detects a first action of the user, wherein the first action may be action “0” as shown in FIG. 10 . Fig.10b A schematic diagram of the horizontal velocity component caused by a specific gesture provided in an embodiment of the present application, referring to Fig.10b As shown, when the user is making a "move" gesture, as the user performs actions "0", "1" and "2" in sequence, the tangential horizontal velocity brought by the user moving the mobile phone S1 causes the mobile phone S1 to be horizontally displaced relative to the target device (TV D2), and the direction of the horizontal displacement includes approaching the TV D2 or moving away from the TV D2. The processor 110 of the portable device 100 can determine whether the user operates the portable device 100 to make the first action based on the acceleration information detected by the acceleration sensor 180E of the portable device 100 and the angular velocity information detected by the gyroscope sensor 180B. Exemplarily, when the processor 110 of the portable device 100 determines through analysis that the acceleration collected by the acceleration sensor 180E is greater than the first threshold, and the angular velocity collected by the gyroscope sensor 180B of the portable device 100 is greater than the second threshold, it can be determined that the user uses the portable device 100 to make the first action. Fig.11 A schematic diagram of monitoring data of acceleration and angular velocity of a portable device provided in one embodiment of the present application is shown in FIG. Fig.11 As shown, it can be determined based on the acceleration collected by the acceleration sensor 180E and the angular velocity collected by the gyroscope sensor 180B. Fig.11 The "0" position shown in FIG. 10 detects that the user uses the portable device 100 to perform the action "0" (i.e., the first action) shown in FIG. 10, the "1" position detects that the user uses the portable device 100 to perform the action "1" shown in FIG. 10, and Fig.11 At the position “2”, it is detected that the user uses the portable device 100 to perform the action “2” described in FIG. 10 .
[0157] Step 803: In response to the first action, the portable device 100 controls the speaker 170A to send an audio signal and sends a recording request message to the controllable device 200a.
[0158] Among them, after the portable device 100 detects that the user makes a first action, in response to the first action, the portable device 100 controls its own speaker 170A to send an audio signal and sends a recording request message to the controllable device 200a, thereby requesting the controllable device 200a to perform an audio collection operation.
[0159] In response to the first action, the portable device 100 needs to execute step 803a, which includes: the portable device 100 controls the speaker 170A to continuously play an audio signal of a specific frequency. To avoid disturbing others, a high-frequency sound wave signal that cannot be heard by the human ear, such as an ultrasonic signal, can be used. Based on some experiments, the human ear cannot hear sounds above 17KHz. In one embodiment, referring to Figure 8b As shown, the portable device 100 controls the speaker 170A to continuously play an audio signal of a specific frequency. Specifically, the speaker 170A of the portable device 100 can be controlled to send a 20KHz high-frequency sound wave signal (ultrasonic wave signal). The sound source in this frequency band has strong adaptability and can be received by most devices, and does not cause noise pollution and does not affect the current environment. In the embodiment of the present application, the frequency of the audio signal is not specifically limited. The agreed frequency of the high-frequency sound wave signal can be selected within a certain range. For example, a fixed frequency in the range of 17KHz to 20KHz is used as the agreed frequency for sending the audio signal.
[0160] It should be noted that in order to avoid interference of other sound sources in the application scenario with the collection work of the controllable device 200a, the portable device 100 can pre-agree with each controllable device 200 on the frequency of sending audio signals, so that the controllable device 200 can perform targeted collection when collecting audio signals. Specifically, the controllable device 200a can filter the collected audio signals, so as to collect high-frequency sound wave signals sent by the portable device in a targeted manner.
[0161] In response to the first action, the portable device 100 needs to execute step 803b, which includes: the portable device 100 sends a recording request message to the discovered controllable device 200a.
[0162] In one embodiment, in response to the first action, the portable device 100 can simultaneously execute step 803a and step 803b, that is, the portable device 100 controls the speaker 170A to continuously play an audio signal of a specific frequency and sends a recording request message to the discovered controllable device 200a.
[0163] In other embodiments, in response to the first action, the portable device 100 may first execute any one of step 803a and step 803b, and then execute the remaining step, that is, the portable device 100 may first control the speaker 170A to continuously play an audio signal of a specific frequency, or the portable device 100 may first send a recording request message to the discovered controllable device 200a, and then execute another step after a certain period of time.
[0164] It should be noted that the length of the above-mentioned certain period of time at least does not affect the controllable device 200a collecting the audio signal continuously played by the speaker 170A of the portable device 100 during the user's action "1" and action "2". In other words, the controllable device 200a receives the recording request message sent by the portable device and starts recording at least before the user performs action "1". Exemplarily, in response to the first action, the portable device 100 first sends a recording request message to the discovered controllable device 200a, and the controllable device 200a starts recording after receiving the recording request information. After 50ms from the time when the portable device 100 first sends the recording request message to the discovered controllable device 200a, the portable device 100 controls the speaker 170A to continuously play a 20KHz high-frequency sound wave signal. Correspondingly, the controllable device 200a collects the high-frequency sound wave signal sent by the portable device 100 through its own microphone.
[0165] Step 804: If the set condition is met, stop sending the audio signal and send a stop recording request message to the controllable device.
[0166] In one implementation, step 804 may include step 804a and step 804b, which are specifically as follows:
[0167] Step 804a: The portable device 100 detects a second action of the user.
[0168] The second action at least includes action "0" (i.e., the first action), action "1" and action "2" which are executed sequentially as shown in Fig. 10. A specific gesture (such as the "make a move" gesture) includes the second action, or the specific gesture is the second action.
[0169] The processor 110 of the portable device 100 can determine whether the user operates the portable device 100 to perform the second action based on the acceleration information detected by the acceleration sensor 180E of the portable device 100 and the angular velocity information detected by the gyroscope sensor 180B. Exemplarily, the second action is to sequentially and continuously perform action "0", action "1" and action "2". The processor 110 of the portable device 100 can determine that the user operates the portable device 100 to sequentially and continuously perform action "0", action "1" and action "2" based on the acceleration information detected by the acceleration sensor 180E of the portable device 100 and the angular velocity information detected by the gyroscope sensor 180B, and then determine that the user has performed the second action.
[0170] Step 804b: In response to the second action, the portable device 100 controls the speaker 170A to stop sending the audio signal and sends a stop recording request message to the controllable device 200a.
[0171] Among them, after the portable device 100 detects that the user makes a second action, in response to the second action, the portable device 100 controls its own speaker 170A to stop sending audio signals and sends a stop recording request message to the controllable device 200a, thereby requesting the controllable device 200a to end the audio collection operation. Further, the controllable device 200a can store the collected audio signal in a corresponding memory, and exemplarily, can be stored in a distributed database.
[0172] In another implementation, step 804 includes step 804s, which is as follows:
[0173] Step 804s: When the user's first action is detected, the portable device 100 controls the speaker 170A to stop sending audio signals after a set time and sends a stop recording request message to the controllable device 200a. The set time is the estimated or collected time required for the user to complete a specific gesture.
[0174] For example, the portable device 100 can preset a duration before leaving the factory as the estimated time required for the user to complete a specific gesture. The duration can be selected by having multiple test persons make specific gestures and collecting the time taken by each test person to make the specific gesture. The duration of the set time can then be determined based on the collected time, and the determination method includes but is not limited to: taking the average of the multiple collected durations as the duration of the set point time period, or taking the maximum value of the multiple collected durations as the duration of the set point time period.
[0175] In other examples, the portable device 100 can guide the user to perform a special gesture (such as a "move" gesture) during the stage when the user uses the portable device 100 (such as when the user activates the portable device 100 or when the user starts to select a target device function through gestures), and collect the time required for the user to complete the specific gesture, and use the collected time used by the user as the above-mentioned specific time period.
[0176] Among them, the portable device 100 starts timing after detecting that the user makes a first action, and after the set time, controls its own speaker 170A to stop sending audio signals and sends a stop recording request message to the controllable device 200a, thereby requesting the controllable device 200a to end the audio collection operation. Further, the controllable device 200a can store the collected audio signal in a corresponding memory, and exemplarily, can be stored in a distributed database.
[0177] Step 805: The portable device 100 obtains the audio signal collected by each controllable device 200a.
[0178] The portable device 100 can determine the target device selected by the user by analyzing the audio signal collected by the controllable device 200a. The portable device 100 needs to obtain the audio signal collected by each controllable device 200a. In one embodiment, after collecting the audio signal, the controllable device 200a can send the collected audio signal to the portable device 100 through the wireless communication connection between the portable device and the controllable device 200a. In another embodiment,
[0179] After collecting the audio signal, the controllable device 200a can store the collected audio signal in a distributed database, and the portable device 100 can read the audio signal stored by the controllable device 200a from the distributed database in response to the second action, wherein the portable device 100 can determine the target audio signal to be read based on the identification information of the audio signal stored by the controllable device 200a, and exemplarily, it can determine whether it is the target audio signal to be read this time based on the name information and timestamp of the audio signal. Specifically, the audio can be identified as the audio stored by the controllable device 200a for analyzing the user's selection of the target device based on the name information of the audio signal stored in the storage area set in the distributed database. On this basis, the audio whose storage timestamp is after the second action time is detected can be further screened out, and the target audio signal to be read this time can be screened out. In some embodiments, the audio data that meets certain conditions set in the storage area set in the distributed database can also be deleted regularly. For example, the audio data whose storage time is full of 1 minute can be deleted every 1 hour. By regularly deleting expired audio data, the workload of screening the target audio signal to be read can be reduced, thereby improving the screening speed.
[0180] Step 806: The portable device 100 calculates the Doppler frequency shift amount corresponding to each audio signal, and selects the controllable device 200a with a specific frequency shift amount as the target device.
[0181] The user holds the portable device 100 and makes a specific gesture toward the target device. The specific gesture includes movement in the direction toward the target device. During the specific gesture, the portable device 100 sends an audio signal of a specific frequency that is continuously played. The controllable device 200a in the scene can collect the audio signal of the specific frequency through its own microphone. Due to the movement of the specific gesture, the frequency of the audio collected by the controllable device 200a has a Doppler shift relative to the original frequency of the audio signal of the specific frequency played by the portable device 100. Fig. 9 Take the scenario shown in the figure as an example, combined with Fig.10b As shown, the user uses the mobile phone S1 to make a "beckon" gesture toward the TV D2. When the user uses the mobile phone S1 to make the "beckon" gesture to drive the mobile phone to move, its horizontal tangential displacement is toward the TV D2. And during the user's "beckon" gesture, the mobile phone S1 continuously sends 20KHz ultrasonic signals, and the speaker D1, TV D2 and surveillance camera D3 can all collect the audio played by the mobile phone S1 through the microphone. Then, based on the Doppler frequency shift of the audio collected by the speaker D1, TV D2 and surveillance camera D3, the device that the mobile phone is facing during the specific gesture process can be determined, that is, the target device.
[0182] In one embodiment, after the portable device 100 obtains the audio signal collected by the controllable device 200a (i.e., the above-mentioned target audio signal), it can calculate the Doppler frequency shift of each target audio signal based on the audio signal processing technology, and screen out the controllable device 200a with the largest frequency shift based on the Doppler frequency shift amounts corresponding to multiple target audio signals, and then select the controllable device 200a with the largest frequency shift as the target device.
[0183] When the user uses the portable device 100 to make a specific gesture (such as a "wave" gesture), the user continuously sends a constant frequency f 0 The controllable device 200a in the current scene can collect the high-frequency sound wave signal sent by the portable device 100 through its own microphone. In one embodiment, according to the Doppler effect, the frequency f of the received high-frequency sound wave signal is A It can be calculated by the following formula:
[0184]
[0185] Where c is the speed of sound, v sIndicates the speed of the user's gesture, v a represents the speed of the controllable device 200a. Generally, the controllable device 200a is in a stationary state, that is, v a =0. In other implementations, the frequency f can also be calculated by other calculation methods. A , no limitation is made here.
[0186] When the user uses the portable device 100 to make a specific gesture, the user holds the portable device 100 and displaces it horizontally toward the target device. Therefore, compared with the other controllable devices 200a in the scene, the maximum Doppler frequency shift can be detected at the position of the target device. Therefore, by comparing the frequency shift peaks at the positions of each controllable device 200a, the controllable device 200a with the largest frequency shift can be screened out, and the target device selected by the user can be determined, wherein the audio signal collected by the target device has the largest frequency shift.
[0187] In another embodiment, the portable device 100 can also determine the target device selected by the user based on other methods. Exemplarily, after the portable device 100 obtains the audio signal (i.e., the above-mentioned target audio signal) collected by the controllable device 200a, it can perform signal feature extraction based on the signal feature extraction technology and simulate the waveform (second waveform) of the frequency shift change of the collected target audio signal. Further, the portable device 100 can also obtain the detection data of the gyroscope sensor 180B of the portable device 100 during the user's specific gesture, and simulate the waveform (first waveform) of the frequency change generated by the horizontal tangential component velocity of the portable device 100 based on the detection data. In order to determine the target device selected by the user, the waveform of the frequency shift change of each target audio signal can be compared with the waveform of the frequency change generated by the horizontal tangential component velocity of the portable device 100, and the waveform similarity between the two is determined, wherein the controllable device corresponding to the waveform of the frequency shift change of the target audio signal with the highest similarity to the waveform of the frequency change generated by the horizontal tangential component velocity of the portable device 100 is determined as the target device selected by the user. For example, based on Fig. 9 In the application scenario shown, after the user uses mobile phone S1 to make a "wave" gesture toward the target device (TV D2), the speaker D1, TV D2 and surveillance camera D3 all collect the 20KHz ultrasonic signal sent by mobile phone S1. Mobile phone S1 obtains the ultrasonic signals collected by speaker D1, TV D2 and surveillance camera D3, and analyzes each ultrasonic signal to obtain a waveform diagram of the frequency shift change of the above audio signal. On the other hand, mobile phone S1 can simulate the frequency change waveform diagram of the horizontal tangential component velocity of mobile phone S1 based on the detection data of the gyroscope of mobile phone S1 during the user's "wave" gesture. Among them, Fig.12The waveform diagram of the frequency change generated by the horizontal tangential component velocity of the mobile phone provided in one embodiment of the present application, the mobile phone S1 can simulate the following according to the detection data of the gyroscope of the mobile phone S1 when the user makes a "move" gesture: Fig.12 The waveform shown. Fig.13 A waveform diagram of the frequency shift change corresponding to the audio signal collected by the television set provided in one embodiment of the present application, such as Fig.13 As shown, point o to point a corresponds to action "0" shown in FIG. 10, that is, when performing action "0", the frequency of the 20KHz ultrasonic signal sent by the mobile phone S1 at the position of the TV set D2 decreases. Since the technical solution of the present application is to reduce the power consumption of the device, the mobile phone S1 responds to the first action (such as action "0") to send, collect and analyze the audio signal. The frequency shift change from point o to point a cannot be viewed based on the solution of the present application. Fig.13 The constant frequency of 20KHz before point o and the frequency shift change from point o to point a are only used as the frequency shift change track for comparison reference. Based on the technical solution of the present application, the frequency shift change of the audio signal after point a can be checked.
[0188] Point a to point b corresponds to action "1" shown in Figure 10. When the user is doing action "1", the mobile phone S1 approaches the TV D2. According to the Doppler effect, the frequency of the ultrasonic signal collected by the TV D2 during this process gradually increases from 19.91KHz at point a and reaches a peak value when action "1" is completed, that is, it reaches 21.21KHz corresponding to point b. Point b to point c corresponds to action "2" shown in Figure 10. When the user is doing action "2", the mobile phone S1 gradually moves away from the TV D2. According to the Doppler effect, the frequency of the ultrasonic signal collected by the TV D2 during this process gradually decreases from 21.21KHz at point b. After the user completes the "beckoning" gesture, the motion state of the mobile phone S1 relative to the TV D2 tends to be stable. For a period of time, the mobile phone S1 remains stationary relative to the TV D2, and the frequency of the ultrasonic signal collected at the TV D2 remains stable. It should be noted that, in some embodiments of the present application, in response to the second action (for example, action "2"), the operations of audio signal sending, audio signal collection and audio signal analysis are stopped, and the frequency shift change after point c is used as the frequency shift change trajectory for comparison reference.
[0189] Fig.14 A waveform diagram of the frequency shift change corresponding to the audio signal collected by the speaker provided in one embodiment of the present application, such as Fig.14 As shown, the ultrasonic signal sent by the mobile phone S1 is collected at the position of the speaker D1, and the frequency of the ultrasonic signal is relatively chaotic. The waveform of the frequency shift change corresponding to the audio signal collected by the monitoring camera D3 is not shown. Fig.14Similarly, only noisy signals can be observed.
[0190] The S1 phone can tell Fig.13 The waveform shown is similar to Fig.12 The similarity of the waveforms shown, and Fig.14 The waveform shown is similar to Fig.12 The similarity of the waveforms shown can be determined by similarity comparison. Fig.13 The waveform shown is similar to Fig.12 The waveforms shown are more similar than Fig.14 The waveform shown is similar to Fig.12 The similarity of the waveforms shown in the figure shows that the target device selected by the user through the mobile phone S1 is Fig.13 The waveform shown corresponds to TV set D1.
[0191] In the above embodiment, the portable device 100 acts as a sound-emitting end to send an audio signal, and the controllable device 200a acts as a collecting end to collect the audio signal sent by the portable device 100. However, the device at the collecting end needs to support the function of high-frequency sampling and sound collection, and the audio sampling frequency must be at least 40khz. However, some devices cannot support high-frequency sampling and sound collection due to hardware limitations.
[0192] In order to further solve the above-mentioned problem that high-frequency sampling and sound collection cannot be supported due to hardware limitations, the embodiment of the present application also provides another identification method for target device selection. Fig.15 A flowchart of a method for identifying target device selection provided by another embodiment of the present application. Figure 5 The portable device 100 of the structure shown in FIG. Fig.15 The process shown in the figure is described in detail below for the target device selection identification method provided in the embodiment of the present application. Fig.15 As shown, the method may include the following steps:
[0193] Step 901: The portable device 100 detects a controllable device 200a that is connected to itself in the current scene.
[0194] The specific implementation method can be Figure 8a The step 801 shown is the same or similar and will not be described again.
[0195] Step 902: The portable device 100 detects a first action of the user.
[0196] The specific implementation method can be Figure 8a The step 802 shown is the same or similar and will not be described again.
[0197] Step 903: In response to the first action, the portable device 100 controls the microphone 170C to collect audio signals and sends an audio play request message to the controllable device 200a.
[0198] Among them, in response to the first action, the portable device 100 needs to execute step 903a, and step 903a includes: the portable device 100 sends a play audio request message to the controllable device 200a. After receiving the play audio request message sent by the portable device 100, the control device 200a starts to continuously play an audio signal of a specific frequency. The frequency of the audio signal is not specifically limited in the embodiment of the present application. For example, a high-frequency sound wave signal can be selected as the agreed frequency in the range of 17KHz to 20KHz. In one embodiment, refer to Fig.16 , each controllable device 200a can send a high-frequency sound wave signal (ultrasonic wave signal) of the same frequency f (for example, f=20KHz). The sound source in this frequency band has strong adaptability and can be received by most devices, and does not cause noise pollution and does not affect the current environment. In an embodiment in which each controllable device 200a sends a high-frequency sound wave signal of the same frequency, the controllable device 200a needs to send a 20KHz high-frequency sound wave signal in series, and correspondingly, the portable device 100 needs to receive the 20KHz high-frequency sound wave signal sent by the controllable device 200a in series. Exemplarily, according to Fig.16 The sequence shown is ①, ②, ③ serial transmission and serial reception. This is done until all controllable devices 200a send 20KHz high-frequency sound wave signals. However, this method will take a long time and affect the user experience. To overcome the above delay problem, each controllable device 200a can send high-frequency sound wave signals of different frequencies. Fig.17 , the controllable device 200a can allocate frequency bands according to a certain frequency difference (such as ±0.5KHz), and each controllable device 200a agrees with the portable device 100 in advance on the frequency of the high-frequency sound wave signal it sends. Exemplarily, there are three remote devices 200 in the scene, and the three remote devices 200 are all controllable devices 200a. The high-frequency sound wave signals sent by the three controllable devices 200a to the portable device 100 are frequency f, frequency f-0.5k, and frequency f+0.5k, respectively. Furthermore, during the audio collection process, the portable device 100 can perform targeted collection according to the agreed frequencies (frequency f, frequency f-0.5k, and frequency f+0.5k), thereby collecting the high-frequency sound wave signals sent by the three controllable devices 200a to the portable device 100.
[0199] In response to the first action, the portable device 100 needs to execute step 903b. Step 903b includes: the portable device 100 controls the microphone 170C to collect audio signals.
[0200] It should be noted that in order to avoid interference of other sound sources in the application scenario with the collection work of the portable device 100, the portable device 100 can pre-agree with each controllable device 200 on the frequency of sending audio signals, so that the portable device 100 can perform targeted collection when collecting audio signals. Specifically, the portable device 100 can filter the collected audio signals, so as to collect high-frequency sound wave signals sent by the controllable device 200 in a targeted manner.
[0201] In one embodiment, in response to the first action, the portable device 100 may simultaneously execute step 903a and step 903b, that is, the portable device 100 controls the microphone 170C to collect audio signals and sends a play audio request message to the controllable device 200a.
[0202] In other embodiments, in response to the first action, the portable device 100 may first execute any one of step 903a and step 903b, and then execute the remaining step, that is, the portable device 100 may first control the microphone 170C to collect the audio signal, or the portable device 100 may first send an audio play request message to the controllable device 200a, and then execute another step after a certain period of time.
[0203] It should be noted that the length of the above-mentioned certain period of time at least does not affect the portable device 100's collection of the audio signal that is continuously played by the controllable device 200a during the user's action "1" and action "2". In other words, the controllable device 200a at least receives the audio play request message sent by the portable device 100 and starts playing the corresponding audio signal before the user performs action "1".
[0204] Step 904: If the set conditions are met, stop collecting audio signals and send a stop audio playback request message to the controllable device.
[0205] In one implementation, step 904 may include step 904a and step 904b, which are specifically as follows:
[0206] Step 904a: The portable device 100 detects a second action of the user.
[0207] The specific implementation method can be Figure 8a The step 804a shown is the same or similar and will not be described again.
[0208] Step 904b: In response to the second action, the portable device 100 controls the microphone 170C to stop collecting audio signals and sends a stop playing audio request message to the controllable device 200a.
[0209] Among them, after the portable device 100 detects that the user has made a second action, in response to the second action, the portable device 100 controls its own microphone to stop collecting audio signals, thereby obtaining the audio signals sent by each controllable device 200a. In response to the second action, the portable device 100 also sends a stop playing audio request message to the controllable device 200a, so that the controllable device 200a stops playing the audio signal based on the stop playing audio request message. The above control method can avoid the portable device 100 and the controllable device 200a from continuously sending and collecting audio signals, thereby reducing the power consumption of the portable device 100 and the controllable device 200a.
[0210] In another implementation, step 904 includes step 904s, which is as follows:
[0211] Step 904s: When the user's first action is detected, the portable device 100 controls the microphone 170C to stop collecting audio signals after a set time and sends a stop playing audio request message to the controllable device 200a. The set time is the estimated or collected time required for the user to complete a specific gesture.
[0212] The method for setting the set duration is the same or similar to that described in step 804s and will not be repeated here.
[0213] The portable device 100 starts timing after detecting that the user has made a first action, and after a set time, the microphone 170C stops collecting audio signals and sends a stop audio playback request message to the controllable device 200a, thereby requesting the controllable device 200a to end the audio playback operation.
[0214] Step 905: The portable device 100 calculates the Doppler frequency shift amount corresponding to each audio signal, and selects the controllable device 200a with a specific frequency shift amount as the target device.
[0215] The specific implementation method can be Figure 8a The step 806 shown is the same or similar and will not be described again.
[0216] Through the method provided in the embodiment of the present application, when the portable device 100 wants to control any controllable device 200a in the scene where it is located, the user can operate the portable device 100 to make a specific gesture toward the target device, thereby switching the target device. This can solve the problem of cumbersome and time-consuming device control process in the prior art. Not only that, it can also solve the problem of leakage of user privacy caused by continuous audio collection by the remote device 200 in the prior art.
[0217] An embodiment of the present application also provides a target device selection identification method, which is applied to a remote device, and the remote device is wirelessly connected to a portable device. The method includes: receiving a recording request message, and starting audio signal collection according to the recording request message; and providing the collected audio signal to the portable device.
[0218] In one implementation, providing the collected audio signal to the portable device may be sending the collected audio signal to the portable device via a wireless connection with the portable device.
[0219] In another implementation, providing the collected audio signal to the portable device may be storing the collected audio signal in a distributed database. The portable device may read the corresponding audio signal from the distributed database.
[0220] An embodiment of the present application also provides a target device selection identification method, which is applied to a remote device, and the remote device is wirelessly connected to a portable device. The method includes: receiving an audio play request message, and sending an audio signal based on the audio play request message.
[0221] In one embodiment, the method of sending an audio signal based on a play audio request message can be to play audio at an agreed frequency. The controllable device 200a can allocate a frequency band according to a certain frequency difference (such as ±0.5KHz), and each controllable device 200a pre-agrees with the portable device 100 on the frequency of the high-frequency sound wave signal sent by itself. Exemplarily, there are three remote devices 200 in the scene, and the three remote devices 200 are all controllable devices 200a, and the high-frequency sound wave signals sent by the three controllable devices 200a to the portable device 100 are frequency f, frequency f-0.5k, and frequency f+0.5k, respectively. Then, in the process of collecting audio, the portable device 100 can perform targeted collection according to the agreed frequency (frequency f, frequency f-0.5k, and frequency f+0.5k), so as to collect the high-frequency sound wave signals sent by the three controllable devices 200a to the portable device 100.
[0222] An embodiment of the present application also provides an interactive system, comprising: a portable device and multiple controllable devices; wherein the portable device is wirelessly connected to multiple remote devices; the portable device is used to perform the following steps: detecting a first action of the user; in response to the first action, sending an audio signal and sending a recording request message to the controllable device; acquiring the audio signal collected by the controllable device; and calculating the Doppler frequency shift amount corresponding to the audio signal collected by the controllable device, and determining that the controllable device with a specific Doppler frequency shift amount is the target device; the controllable device is used to perform the following steps: receiving a recording request message, and starting audio signal collection according to the recording request message; and providing the collected audio signal to the portable device.
[0223] The present application also provides a portable device including: a processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the method for identifying target device selection provided by the corresponding embodiment of the present application is implemented. The hardware structure of the portable device 100 adopted by the present application can be as follows: Figure 4a As shown, its software structure can be as follows Figure 4b shown.
[0224] The embodiment of the present application also provides an interactive system, comprising the above-mentioned portable device and multiple remote devices, wherein the portable device is wirelessly connected to the multiple remote devices.
[0225] In one implementation, the portable device and the multiple remote devices construct a distributed scenario, and the portable device and the multiple remote devices log in to the same account.
[0226] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the target device selection identification method provided in any embodiment of the present application is implemented.
[0227] It is understandable that the application may be an application program (nativeApp) installed on the terminal, or may be a web page program (webApp) of a browser on the terminal, and this embodiment of the present application does not limit this.
[0228] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0229] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0230] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0231] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0232] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0233] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
[0234] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A target device selection identification method, characterized in that: Applied to a portable device, the portable device is wirelessly connected to a plurality of controllable devices, the method comprising: Detecting a first action of the user; In response to the first action, an audio signal is sent and a recording request message is sent to each of the plurality of controllable devices based on the wireless connection, wherein each of the plurality of controllable devices respectively enables a microphone based on the recording request message to start collecting the audio signal and stores the collected audio signal in a distributed database; Acquiring, from the distributed database, an audio signal collected by each of the plurality of controllable devices; and The Doppler frequency shift amount corresponding to the audio signal collected by each of the multiple controllable devices is calculated respectively, and based on the calculated multiple Doppler frequency shift amounts, a controllable device with a specific Doppler frequency shift amount is determined as a target device from the multiple controllable devices.
2. The method according to claim 1, characterized in that The wireless connection between the portable device and the multiple controllable devices includes: establishing a near field communication connection between the portable device and the multiple controllable devices, and the near field communication connection includes a Bluetooth communication connection or a Wi-Fi connection.
3. The method according to claim 1 or 2, characterized in that: The portable device and the multiple controllable devices are logged in to the same account.
4. The method according to claim 1, characterized in that Before the first action of the user is detected, the method further includes: detecting the controllable device that is in a connected state with the portable device; Wherein, the controllable device has at least an audio collection function.
5. The method according to claim 1, characterized in that Before calculating the Doppler frequency shift amount corresponding to the audio signal collected by the controllable device and determining the controllable device with a specific Doppler frequency shift amount as the target device, the method further includes: If the set condition is met, the sending of the audio signal is stopped and a stop recording request message is sent to the controllable device.
6. The method according to claim 5, characterized in that When the set condition is met, stopping sending the audio signal and sending a stop recording request message to the controllable device includes: detecting a second action of the user; and In response to the second action, the sending of the audio signal is stopped and a stop recording request message is sent to the controllable device.
7. The method according to claim 6, characterized in that The first action is an action in a specific gesture, and the second action includes the first action; The specific gesture includes the second action or the specific gesture is the second action.
8. The method according to claim 1, characterized in that When the set condition is met, stopping sending the audio signal and sending a stop recording request message to the controllable device includes: After the first action of the user is detected and a set time has passed, the sending of the audio signal is stopped and a stop recording request message is sent to the controllable device.
9. The method according to claim 1, characterized in that: The determining that a controllable device having a specific Doppler frequency shift amount is a target device comprises: Based on the Doppler frequency shift amounts corresponding to the audio signals collected by the controllable devices, the controllable device having the largest Doppler frequency shift amount is determined as the target device.
10. The method according to claim 1, characterized in that The determining that a controllable device having a specific Doppler frequency shift amount is a target device comprises: simulating a first waveform based on frequency changes generated by a horizontal component of a tangential velocity of a microphone of the portable device; Based on the Doppler frequency shift corresponding to the audio signal collected by the controllable device, simulate a second waveform corresponding to each of the controllable devices for reflecting the frequency shift change; and A target second waveform having the highest similarity to the first waveform is selected from the plurality of second waveforms, and a controllable device corresponding to the target second waveform is determined as the target device.
11. A method for identifying target device selection, characterized in that: Applied to a portable device, the portable device is wirelessly connected to a plurality of controllable devices, the method comprising: Detecting a first action of the user; In response to the first action, a microphone is enabled to start collecting an audio signal, and a play audio request message is sent to each of the plurality of controllable devices based on the wireless connection, wherein each of the plurality of controllable devices plays the audio signal based on the play audio request message; Collecting the audio signal played by each of the multiple controllable devices based on the microphone; The Doppler frequency shift amounts corresponding to the audio signals played by each of the multiple controllable devices are calculated respectively, and based on the calculated multiple Doppler frequency shift amounts, a controllable device with a specific Doppler frequency shift amount is determined as a target device from the multiple controllable devices.
12. The method according to claim 11, characterized in that In response to the first action, collecting the audio signal and sending a play audio request message to the multiple controllable devices includes: In response to the first action, sending an audio play request message to the controllable device, so that the controllable device plays audio according to the agreed frequency respectively; In response to the first action, the microphone of the portable device is controlled to collect the audio played by the controllable device according to the agreed frequency.
13. The method according to claim 12, characterized in that The controllable devices play audio at the agreed frequencies respectively, including: The controllable device allocates frequency bands according to a certain frequency difference, and plays audio of corresponding frequency according to the frequency allocated to itself.
14. The method according to claim 11, characterized in that Before calculating the Doppler frequency shift amount corresponding to the collected audio signal and determining the controllable device with a specific Doppler frequency shift amount as the target device, the method further includes: If the set conditions are met, the audio signal collection stops and a stop audio playback request message is sent to the controllable device.
15. An interactive system, characterized in that: The system includes: a portable device and a plurality of controllable devices; wherein the portable device is wirelessly connected to a plurality of the controllable devices; The portable device is used to perform the following steps: Detecting a first action of the user; In response to the first action, sending an audio signal and sending a recording request message to each of the plurality of controllable devices based on the wireless connection; Acquiring an audio signal collected by each of the plurality of controllable devices from a distributed database; and Calculating the Doppler frequency shift amount corresponding to the audio signal collected by each of the multiple controllable devices respectively, and determining, from the multiple controllable devices, a controllable device with a specific Doppler frequency shift amount as a target device according to the calculated multiple Doppler frequency shift amounts; Each of the plurality of controllable devices is configured to perform the following steps: receiving the recording request message, and enabling the microphone to start audio signal collection according to the recording request message; and, The collected audio signals are stored in a distributed database.
16. A portable device, characterized in that: The device comprises: A processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the method for identifying target device selection according to any one of claims 1 to 14 is implemented.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the target device selection identification method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Audio Doppler characteristic quantification-based gesture identification method
CN107526437A
Accurately tracking a mobile device to effectively enable mobile device to control another device
CN108370494A
Terminal control method, terminal and computer readable storage medium
CN109976625A
Radar-Based Gesture Enhancement for Voice Interfaces
US20200064458A1
Method, chip and terminal for music recognition
WO2020253694A1
