Data stream transmission method, device, communication apparatus and storage medium
By sending and receiving target signals between the head-mounted device and the user device and using the time difference to judge the data transmission conditions, the problem of data mistransmission between the head-mounted device and the user device is solved, higher-precision and convenient data stream transmission is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202110658070.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-10
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2041-06-10
AI Technical Summary
The connection between the headset and the user device is prone to data mistransmission, resulting in low transmission accuracy and a poor user experience.
By sending and receiving target signals between the head-mounted device and the user device, the time difference between the receiving device receiving the signal is used to judge the data transmission conditions, ensuring that the data stream is transmitted only when a specific time relationship is met, thereby improving transmission accuracy.
The data stream transmission accuracy and user experience between the head-mounted device and the user device are improved, the mistransmission situation is reduced, and the convenience and flexibility of the connection are enhanced.
Smart Images

Figure CN115474238B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a data stream transmission method, device, communication apparatus and storage medium. BACKGROUND
[0002] With the development of wireless communication technology and the increase in the number of electronic devices, the head-mounted device needs to transmit data between multiple user devices, which causes the user to frequently connect the head-mounted device with multiple user devices. For example, the current connected device of the earphone is the user's mobile phone, and the user wants to watch movies on the tablet, so the earphone needs to be connected to the tablet. Currently, the switching of the connection between the head-mounted device and the user device is mainly completed by the following two ways:
[0003] The first way is:
[0004] With the help of the graphical user interface (GUI) on the user device, the GUI interface includes a device list, and the device list presents all the head-mounted devices that have been paired with the user device. The user finds the earphone from the device list and manually clicks the earphone to connect, so that the mobile phone transmits data to the earphone. However, as the number of devices in the device list increases, the cognitive cost of the device will gradually increase, and the selected device may be incorrect, resulting in low accuracy of data transmission between the user device and the head-mounted device.
[0005] The second way is:
[0006] When a connection with a certain user device is needed, the connection is automatically established. For example, a device (which has established a connection with the earphone) detects a playing event, so the earphone automatically establishes a connection with the tablet and transmits data to the earphone. However, it does not consider whether the data transmission to the earphone is the result that the user wants, resulting in low accuracy of data transmission between the user device and the head-mounted device.
[0007] The connection between the head-mounted device and the user device is prone to data mis-transmission, resulting in low accuracy of data transmission between the user device and the head-mounted device and low user experience. SUMMARY
[0008] The present application provides a data stream transmission method, device, communication apparatus and storage medium. The user device transmits data stream to the head-mounted device only when the data transmission condition is met, which improves the accuracy of data stream transmission between the head-mounted device and the user device and improves the user experience.
[0009] In a first aspect, an embodiment of the present application provides a data stream transmission method applied to a first device, the method comprising: sending a first target signal; obtaining a first time, the first time being obtained according to a time at which a first receiving device of a second device receives the first target signal; obtaining a second time, the second time being obtained according to a time at which a second receiving device of the second device receives the first target signal; the first receiving device and the second receiving device being located at different positions of the second device, the second device being a head-mounted device; and when it is determined that a data transmission condition is met based on the first time and the second time, performing transmission of a target data stream to the second device.
[0010] In the embodiment of the present application, the first device can be any user device with the capability of playing or receiving and sending audio and video data and the capability of voice or video call, and the second device is a head-mounted device with the capability of receiving and playing a data stream, such as receiving and playing audio data. When the first device needs to transmit data to the second device, the first device does not directly transmit data to the second device, but transmits the target data stream to the second device when it is determined that the data transmission condition is met based on the first time and the second time, thereby improving the transmission accuracy of the data stream between the first device and the second device and the user experience. The first time and the second time are obtained according to the times at which the receiving devices on the head-mounted device receive the target signal, and the first time and the second time can be time information or information related to the receiving time, such as a relative time information generated based on the time, the purpose of which is to obtain the time at which the signal is received or the time relationship of the signal being received. The time mentioned later in the present application is also obtained in a similar manner, and the purpose is to reflect the time information or the time relationship.
[0011] In some possible embodiments, the second device is a headset, the second device includes a left sound emitting unit and a right sound emitting unit, the first receiving device is closer to the left sound emitting unit than to the right sound emitting unit, and the second receiving device is closer to the right sound emitting unit than to the left sound emitting unit. Alternatively, the second device is a pair of glasses, the second device includes a left leg and a right leg, the first receiving device is closer to the left leg than to the right leg, and the second receiving device is closer to the right leg than to the left leg.
[0012] In some possible embodiments, the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the second device, and determining that the data transmission condition is met based on the first time and the second time comprises: determining that an absolute value of a difference between the first time and the second time is less than a preset value.
[0013] The left and right sides of the second device can be determined based on a corresponding relationship between the second device and the left and right ears of the user when the second device is worn, and specifically can be distinguished based on a median axis cutting line or a median axis vertical plane of the second device determined based on a face orientation direction of the second device when the second device is worn, as shown in Figure 6 As shown, the glasses are also distinguished based on similar rules.
[0014] It can be seen that in the embodiment, when the absolute value of the difference between the first time and the second time is less than the preset value, it can be determined that the second device is most likely to be oriented towards the first device, indicating that the current intention of the user is to make the second device transmit the target data stream with the first device. In this case, the first device transmits the target data stream to the second device, improving the accuracy of data stream transmission.
[0015] In some possible embodiments, the second device further includes a third receiving device, the third receiving device and the first receiving device are located at different positions of the second device, so that the first receiving device and the third receiving device present a front-back different positional relationship in a face orientation direction of the user when the second device is worn; the method further includes: obtaining a third time, the third time is obtained according to a time when the first target signal is received by the third receiving device; determining that the second device satisfies the data transmission condition based on the first time and the second time, and transmitting the target data stream to the second device, including: determining that the second device satisfies the data transmission condition based on the first time and the second time, and the first time and the third time satisfy a preset size relationship, and transmitting the target data stream to the second device.
[0016] It can be seen that in the embodiment, the second device further includes a third receiving device, so that when the absolute value of the difference between the first time and the second time is less than the preset value, the third time when the first target signal is received by the third receiving device can be further used to accurately determine whether the second device is oriented towards the first device, avoiding the mirror problem. The specific setting mode can be that when the third receiving device and the first receiving device are located on the same side of the first device, and the third receiving device is located in front of the first receiving device, when the absolute value of the difference between the first time and the second time, and the third time is earlier than the first time, it can be determined that the second device is oriented towards the first device, that is, the user wearing the second device is oriented towards the first device, otherwise, when the third time is later than the first time, it can be determined that the second device is not oriented towards the first device, and at this time the user wearing the second device is facing away from the first device. Therefore, when the first device determines that the second device is oriented towards the first device based on the first time, the second time and the third time, the target data stream is transmitted to the second device, which is more in line with the real intention of the user, improving the accuracy of data stream transmission. The front-back relationship between the first receiving device and the third receiving device is determined based on a face orientation direction of the second device when the second device is worn, as shown in Figure 8aAs shown, if the mapping point of the third device in the face orientation direction is B, and the mapping point of the first receiving device in the face orientation direction is A, it is considered that the third receiving device is in front of the first receiving device.
[0017] In some possible implementation manners, the method further includes: the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the second device; the second target signal is sent; a fourth time is obtained, the fourth time being obtained according to a time at which the first receiving device receives the second target signal; a fifth time is obtained, the fifth time being obtained according to a time at which the second receiving device receives the second target signal; and it is determined that the data transmission condition is met based on the first time and the second time, including: it is determined that an absolute value of a difference between the first time and the second time is less than a preset value, and an absolute value of a difference between the fourth time and the fifth time is less than the preset value.
[0018] It can be seen that, in the embodiment, the first device sends the second target signal to the second device in addition to sending the first target signal to the second device, and whether the data transmission condition is met is determined comprehensively in combination with the time at which the receiving device on the second device receives the first target signal and the time at which the receiving device receives the second target signal, so that the determination result is more accurate, and the accuracy of data stream transmission is further improved.
[0019] In some possible implementation manners, before the first target signal is sent, the method further includes: a first preset event is detected; the first preset event includes at least one of the following: a video playing event, used to indicate video playing; an audio playing event, used to indicate audio playing; a call incoming event; a call outgoing event; or target request information sent by the second device is received.
[0020] It can be seen that, in the embodiment, when the first preset event is triggered on the first device, the first device can automatically send the first target signal to the second device to perform target data stream transmission with the second device, without the need for a user to manually establish a connection between the first device and the second device, thereby improving the convenience of data stream transmission and improving user experience.
[0021] In some possible implementation manners, it is determined that the data transmission condition is met based on the first time and the second time, including: it is determined that the data transmission condition is met based on the first time and the second time, and a switching instruction of a user is obtained.
[0022] It can be seen that, in the embodiment, after it is determined that the data transmission condition is met based on the first time and the second time, the first device can output prompt information to ask the user to confirm whether to perform target data stream transmission, and the target data is transmitted to the second device when the switching instruction is received. After the user's confirmation, the data stream transmission at this time meets the user's demand, and the accuracy is relatively high.
[0023] In some possible implementation manners, after the transmission of the target data stream to the second device, the method further includes: displaying a switching list on the first device, the switching list being used to display device identities of at least one candidate user device; obtaining an operation instruction for a device identity of a first candidate user device in the at least one candidate user device; and sending indication information to the first candidate user device in response to the operation instruction, the indication information being used to instruct the first candidate user device to perform the transmission of the data stream to the second device.
[0024] For example, when the second device is currently performing the transmission of the data stream with the computer, at this moment, the mobile phone rings, and the mobile phone is not near the user, the user can select the identity of the mobile phone on the computer, so that the connection of the earphone is switched to the mobile phone, and the user can answer the call on the mobile phone without taking the mobile phone, thereby improving the user experience. As can be seen, in the embodiment, after the first device performs the transmission of the data stream with the second device, the switching list can be displayed on the first device, so that the user can manually switch to any device in the switching list, thereby improving the convenience of switching the connection of the second device.
[0025] In a second aspect, an embodiment of the present application provides a data stream transmission method, applied to a second device, the second device being a head-mounted device, the second device including a first receiving device and a second receiving device, the first receiving device and the second receiving device being located at different positions of the second device, the method including: detecting a first target signal sent by a first device; obtaining a first time, the first time being obtained according to a time at which the first receiving device receives the first target signal; obtaining a second time, the second time being obtained according to a time at which the second receiving device receives the first target signal; when it is determined that a data transmission condition is met based on the first time and the second time, sending first indication information to the first device; and receiving a target data stream transmitted by the first device in response to the first indication information.
[0026] Optionally, the first target signal can carry indication information, and the second device can analyze the received signal, and when the indication information is analyzed from a certain signal, it is determined that the first target signal is detected according to the indication information.
[0027] In the embodiment of the present application, the first device can be any user device with the capability of playing or receiving and sending audio and video data, and the capability of voice or video call, and the second device is a head-mounted device with the capability of receiving and playing data streams, such as the capability of receiving and playing audio data. When data needs to be transmitted between the first device and the second device, the data is not directly transmitted, but the second device sends first indication information to the first device when it is determined that a data transmission condition is met based on the first time and the second time, and the first device transmits the data stream to the second device only when the first indication information instructs the first device to transmit the data stream to the second device, thereby improving the accuracy of data transmission between the first device and the second device.
[0028] In some possible implementation manners, the second device is a headset, the second device includes a left sound unit and a right sound unit; the first receiving device is closer to the left sound unit than to the right sound unit; the second receiving device is closer to the right sound unit than to the left sound unit; or the second device is a pair of glasses, the second device includes a left leg and a right leg; the first receiving device is closer to the left leg than to the right leg; the second receiving device is closer to the right leg than to the left leg.
[0029] In some possible implementation manners, the first receiving device and the second receiving device are symmetrically arranged on the left side and the right side of the second device; the determining that the data transmission condition is met based on the first time and the second time includes: determining that an absolute value of a difference between the first time and the second time is less than a preset value.
[0030] The left side and the right side of the second device can be determined based on a correspondence between the left ear and the right ear of the user when the second device is worn, and specifically can be distinguished based on a median axial cutting line or a median axial vertical plane of the second device determined based on a face orientation direction when the second device is worn, as shown in FIG. 6. Figure 6 As shown in FIG. 6, the glasses are also distinguished based on similar rules.
[0031] It can be seen that in the embodiment, when the absolute value of the difference between the first time and the second time is less than the preset value, it is determined that the second device is probably oriented toward the first device, which means that the current intention of the user is to make the second device perform data stream transmission with the first device, and in this case, the second device sends the first indication information to the first device, indicating that the data stream transmission is performed, thereby improving the accuracy of the data stream transmission.
[0032] In some possible implementation manners, the second device further includes a third receiving device, the third receiving device, the first receiving device, and the second receiving device are located at different positions of the second device, so that when the second device is worn, the first receiving device and the third receiving device present different positional relationships in a face orientation direction of the user; the method further includes: obtaining a third time, the third time is obtained according to a time at which the third receiving device receives the first target signal; determining that the data transmission condition is met based on the first time and the second time, and sending the first indication information to the first device includes: determining that the data transmission condition is met based on the first time and the second time, and the first time and the third time satisfy a preset size relationship, and sending the first indication information to the first device.
[0033] It can be seen that in the embodiment, the second device further comprises a third receiving device, and when the absolute value of the difference between the first time and the second time is less than the threshold value, the third time when the third receiving device receives the first target signal is further used to determine whether the second device is facing the first device, and the mirror problem can be avoided. The specific setting mode of the third device is that when the third receiving device and the first receiving device are arranged on the same side of the second device, and the third receiving device is located in front of the first receiving device, when the absolute value of the difference between the first time and the second time is less than the preset value, and the third time is earlier than the first time, it can be determined that the second device is facing the first device, that is, the user wearing the second device is facing the first device, otherwise, when the third time is later than the first time, it can be determined that the second device is not facing the first device, and at this time the user wearing the second device is facing away from the first device; for example, when the third receiving device and the first receiving device are arranged on the same side of the second device, and the third receiving device is located behind the first receiving device, then when the absolute value of the difference between the first time and the second time is less than the preset value, and the third time is later than the first time, it can be determined that the second device is facing the first device. Therefore, when the first device determines that the second device is facing the first device based on the first time, the second time and the third time, the first device sends the first indication information to the first device to indicate the first device to transmit the data stream to the second device, at this time the data stream transmission is more in line with the real intention of the user, and the accuracy of the data stream transmission is improved. The front-back relationship between the first receiving device and the third receiving device is determined based on the face orientation direction when the second device is worn, as shown in Figure 8a the mapping point of the third device in the face orientation direction is B, and the mapping point of the first receiving device in the face orientation direction is A, it is considered that the third receiving device is in front of the first receiving device.
[0034] In some possible embodiments, the method further comprises: the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the second device; the second target signal sent by the first device is detected; a fourth time is obtained, the fourth time being obtained according to the time when the first receiving device receives the second target signal; a fifth time is obtained, the fifth time being obtained according to the time when the second receiving device receives the second target signal; and the data transmission condition is determined to be met based on the first time and the second time, comprising: determining that the absolute value of the difference between the first time and the second time is less than the preset value, and the absolute value of the difference between the fourth time and the fifth time is less than the preset value.
[0035] It can be seen that in the embodiment, the first device can send the second target signal to the second device in addition to sending the first target signal to the second device, and the second device determines whether the data transmission condition is met based on the time when the first target signal is received and the time when the second target signal is received, so that the determination result is more accurate, and the accuracy of the data stream transmission is further improved.
[0036] In some possible implementation manners, before detecting the first target signal sent by the first device, the method further includes: detecting a second preset event; and sending, in response to the second preset event, a target request message to the first device, the target request message being used to request the first device to send the first target signal to the second device.
[0037] In an example, the target request message is used to request the first device to send the first target signal to the second device.
[0038] It can be seen that, in the embodiment, the user can actively trigger the second preset event on the second device, so as to trigger the judgment process of whether the second device can perform data streaming with the first device, thereby increasing the flexibility of triggering data streaming.
[0039] In some possible implementation manners, the second preset event includes: a control operation on a key on the second device.
[0040] In an example, the key can be an existing key on the second device, for example, a volume adjustment key, a power-on key. When the user holds the key without releasing it, the second device can detect the second preset event. Alternatively, the key can be a newly added key on the second device, which is used to trigger the second preset event.
[0041] In addition, when the second device has a touch panel, the second preset event can also be a touch operation on the touch panel, for example, a touch operation on a virtual button or a preset gesture on the touch panel, and the like; when the second device has a voice recognition module, the second preset event can also be a voice instruction. The type of the second preset event is not limited in the application.
[0042] In a third aspect, an embodiment of the present application provides a data streaming method, applied to a second device, the second device being a head-mounted device, the second device including a first receiving device and a second receiving device, the first receiving device and the second receiving device being located at different positions of the second device, and the method including: detecting a first target signal sent by a first device; in response to detecting the first target signal, sending, to the first device, a first time point, the first time point being obtained according to a time at which the first receiving device receives the first target signal; in response to detecting the first target signal, sending, to the first device, a second time point, the second time point being obtained according to a time at which the second receiving device receives the first target signal; and receiving a target data stream transmitted by the first device, the target data stream being transmitted by the first device to the second device when the first time point and the second time point satisfy a data transmission condition.
[0043] It can be seen that in the embodiment of the present application, when data needs to be transmitted between the first device and the second device, the data is not directly transmitted, but the data stream is transmitted to the second device after the first device determines that the data transmission condition is met according to the first time and the second time, thereby improving the accuracy of data transmission between the second device and the first device.
[0044] In some possible embodiments, the second device is a headset, and the second device includes a left sound emitting unit and a right sound emitting unit; the first receiving device is closer to the left sound emitting unit than to the right sound emitting unit; the second receiving device is closer to the right sound emitting unit than to the left sound emitting unit; or the second device is a pair of glasses, and the second device includes a left leg and a right leg; the first receiving device is closer to the left leg than to the right leg; the second receiving device is closer to the right leg than to the left leg.
[0045] In some possible embodiments, before the first target signal sent by the first device is detected, the method further includes: detecting a second preset event; and in response to the second preset event, sending a target request message of the first target signal to the first device.
[0046] It can be seen that in the embodiment, the user can trigger the second preset event on the second device, so that the second device can actively send a request for data stream transmission to the first device, without any operation on the first device, thereby establishing a connection between the second device and the first device, increasing the diversity of establishing a connection with the first device, and improving the flexibility of data stream transmission.
[0047] In some possible embodiments, the second preset event includes a control operation on a key on the second device.
[0048] For example, the key can be an existing key on the second device, such as a volume adjustment key or a power-on key. When the user holds the key without releasing it, the second device can detect the second preset event. Alternatively, the key can be a newly added key on the second device for triggering the second preset event.
[0049] In addition, when the second device has a touch panel, the second preset event can also be a touch operation on the touch panel, such as a touch operation on a virtual button or a preset gesture on the touch panel, and the like; when the second device has a voice recognition module, the second preset event can also be a voice instruction. The type of the second preset event is not limited in the present application.
[0050] In a fourth aspect, the embodiments of the present application provide a user equipment, and the beneficial effects can be referred to the description of the first aspect, which will not be repeated here. The user equipment has functions to implement the behaviors in the method examples of the first aspect. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In one possible design, the user equipment includes a processing unit, a sending unit, and a receiving unit; the sending unit is configured to send the first target signal; the processing unit is configured to obtain a first time, the first time being obtained according to a time when the first target signal is received by a first receiving device of the head-mounted device; obtain a second time, the second time being obtained according to a time when the first target signal is received by a second receiving device of the head-mounted device; the first receiving device and the second receiving device are located at different positions of the head-mounted device; when the processing unit determines that the data transmission condition is met based on the first time and the second time, the processing unit performs transmission of the target data stream to the head-mounted device.
[0051] In some possible implementations, the head-mounted device is an earphone, and the head-mounted device includes a left sound emitting unit and a right sound emitting unit; the first receiving device is closer to the left sound emitting unit than to the right sound emitting unit; the second receiving device is closer to the right sound emitting unit than to the left sound emitting unit; or, the head-mounted device is a pair of glasses, and the head-mounted device includes a left leg and a right leg; the first receiving device is closer to the left leg than to the right leg; the second receiving device is closer to the right leg than to the left leg.
[0052] In some possible implementations, the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device; in terms of determining that the data transmission condition is met based on the first time and the second time, the processing unit is specifically configured to determine that an absolute value of a difference between the first time and the second time is less than a preset value.
[0053] In some possible implementations, the head-mounted device further includes a third receiving device, and the third receiving device, the first receiving device, and the second receiving device are located at different positions of the head-mounted device, so that when the head-mounted device is worn, the first receiving device and the third receiving device present a front-back different positional relationship in a user face orientation direction; the processing unit is further configured to obtain a third time, the third time being obtained according to a time when the first target signal is received by the third receiving device; in terms of determining that the data transmission condition is met based on the first time and the second time, and performing transmission of the target data stream to the head-mounted device, the processing unit is specifically configured to determine that the head-mounted device meets the data transmission condition based on the first time and the second time, and the first time and the third time meet a preset size relationship, and perform transmission of the target data stream to the head-mounted device.
[0054] In some possible implementation, the sending unit is further configured to send a second target signal; the processing unit is further configured to obtain a fourth time point, the fourth time point being obtained according to a time at which the second target signal is received by the first receiving device; obtain a fifth time point, the fifth time point being obtained according to a time at which the second target signal is received by the second receiving device; and in determining, by the processing unit, that the data transmission condition is met based on the first time point and the second time point, the processing unit is specifically configured to: determine that an absolute value of a difference between the first time point and the second time point is less than a preset value, and an absolute value of a difference between the fourth time point and the fifth time point is less than the preset value.
[0055] In some possible implementation, before the sending unit sends the first target signal, the processing unit is further configured to detect a first preset event; the first preset event includes at least one of the following: a video playing event, used to indicate video playing; an audio playing event, used to indicate audio playing; a call incoming event; a call outgoing event; or control that the receiving unit receives target request information sent by the head-mounted device.
[0056] In some possible implementation, in determining, by the processing unit, that the data transmission condition is met based on the first time point and the second time point, the processing unit is specifically configured to: determine that the data transmission condition is met based on the first time point and the second time point, and obtain a switching instruction of a user.
[0057] In some possible implementation, after the processing unit performs the transmission of the target data stream to the head-mounted device, the processing unit is further configured to: instruct to display a switching list on the user equipment, the switching list being used to display device identifiers of at least one candidate user equipment; obtain an operation instruction for a device identifier of a first candidate user equipment in the at least one candidate user equipment; and in response to the operation instruction, instruct the sending unit to send indication information to the first candidate user equipment, the indication information being used to instruct the first candidate user equipment to perform the transmission of the target data stream to the head-mounted device.
[0058] In a fifth aspect, the embodiments of the present application provide a head-mounted device, and the beneficial effects can be referred to the description of the second aspect and will not be repeated here. The head-mounted device has functions to implement the behaviors in the method examples of the second aspect. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In one possible design, the head-mounted device includes a first receiving device and a second receiving device, the first receiving device and the second receiving device are located at different positions of the head-mounted device, and the head-mounted device includes one or more processing units, a sending unit and a receiving unit; the one or more processing units are configured to detect a first target signal sent by a user device; obtain a first time, the first time being obtained according to a time at which the first receiving device receives the first target signal; obtain a second time, the second time being obtained according to a time at which the second receiving device receives the first target signal; when the one or more processing units determine that a data transmission condition is met based on the first time and the second time, control the sending unit to send first indication information to the user device; and the receiving unit is configured to receive target data streams transmitted by the user device in response to the first indication information.
[0059] In some possible implementation manners, the head-mounted device is a headset, and the head-mounted device includes a left sound emitting unit and a right sound emitting unit; the first receiving device is closer to the left sound emitting unit than to the right sound emitting unit; the second receiving device is closer to the right sound emitting unit than to the left sound emitting unit; or the head-mounted device is a pair of glasses, and the head-mounted device includes a left leg and a right leg; the first receiving device is closer to the left leg than to the right leg; and the second receiving device is closer to the right leg than to the left leg.
[0060] In some possible implementation manners, the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device; and in the aspect of determining, by the one or more processing units, that the data transmission condition is met based on the first time and the second time, the one or more processing units are specifically configured to: determine that an absolute value of a difference between the first time and the second time is less than a preset value.
[0061] In some possible implementation manners, the head-mounted device further includes a third receiving device, the third receiving device and the first receiving device and the second receiving device are respectively located at different positions of the head-mounted device, so that the first receiving device and the third receiving device present a front-back different positional relationship in a face orientation direction of the user when the head-mounted device is worn; the one or more processing units are further configured to: obtain a third time, the third time being obtained according to a time at which the first target signal is received by the third receiving device; and in a case where the one or more processing units determine that the data transmission condition is met based on the first time and the second time, the one or more processing units are specifically configured to: control the sending unit to send the first indication information to the user equipment based on that the data transmission condition is met based on the first time and the second time, and the first time and the third time satisfy a preset size relationship.
[0062] In some possible implementation manners, the first receiving device and the second receiving device are symmetrically arranged on left and right sides of the head-mounted device; the one or more processing units are further configured to: detect the second target signal sent by the user equipment; obtain a fourth time, the fourth time being obtained according to a time at which the second target signal is received by the first receiving device; obtain a fifth time, the fifth time being obtained according to a time at which the second target signal is received by the second receiving device; and in a case where the one or more processing units determine that the data transmission condition is met based on the first time and the second time, the one or more processing units are specifically configured to: determine that an absolute value of a difference between the first time and the second time is less than a preset value, and an absolute value of a difference between the fourth time and the fifth time is less than the preset value.
[0063] In some possible implementation manners, before the one or more processing units detect the first target signal sent by the user equipment, the one or more processing units are further configured to detect a second preset event; and in response to the second preset event, the one or more processing units are configured to send a target request message of the first target signal to the user equipment.
[0064] In some possible implementation manners, the second preset event includes: a control operation on a key on the head-mounted device.
[0065] In a sixth aspect, the embodiments of the present application provide a head-mounted device, and beneficial effects can be referred to the description of the third aspect, which will not be repeated here. The second device has functions to implement behaviors in the method instances of the third aspect. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In one possible design, the head-mounted device includes a first receiving device and a second receiving device, the first receiving device and the second receiving device are located at different positions of the head-mounted device, and the head-mounted device includes: one or more processing units, a sending unit and a receiving unit; the one or more processing units are configured to detect a first target signal sent by a user device; in response to detecting the first target signal, the sending unit is controlled to send, to the user device, a first time point, the first time point being obtained according to a time at which the first receiving device receives the first target signal; in response to detecting the first target signal, the sending unit is controlled to send, to the user device, a second time point, the second time point being obtained according to a time at which the second receiving device receives the first target signal; and the receiving unit is configured to receive a target data stream transmitted by the user device, the target data stream being transmitted by the user device to the head-mounted device when a data transmission condition is met at the first time point and the second time point.
[0066] In some possible implementation manners, the head-mounted device is an earphone, and the head-mounted device includes a left sound emitting unit and a right sound emitting unit; the first receiving device is closer to the left sound emitting unit than to the right sound emitting unit; the second receiving device is closer to the right sound emitting unit than to the left sound emitting unit; or the head-mounted device is a pair of glasses, and the head-mounted device includes a left leg and a right leg; the first receiving device is closer to the left leg than to the right leg; and the second receiving device is closer to the right leg than to the left leg.
[0067] In some possible implementation manners, before the one or more processing units detect the first target signal sent by the user device, the one or more processing units are further configured to detect a second preset event; and in response to the second preset event, the sending unit is controlled to send, to the user device, a target request message for the first target signal.
[0068] In some possible implementation manners, the second preset event includes a control operation on a key on the head-mounted device.
[0069] In a seventh aspect, the embodiments of the present application provide a data stream transmission method, applied to a first device, including:
[0070] sending a first target signal;
[0071] receive first indication information, the first indication information being sent to the first device when a data transmission condition is met at a first time and a second time, the first time being obtained by the second device according to a time at which a first receiving device of the second device receives the first target signal, and the second time being obtained by the second device according to a time at which a second receiving device of the second device receives the first target signal;
[0072] in response to receiving the first indication information, performing transmission of a target data stream to the second device.
[0073] In the embodiments of the present application, the first device can be any user device with the capability of playing or receiving and sending audio and video data, and the capability of voice or video call. The second device is a head-mounted device with the capability of receiving and playing a data stream, such as receiving and playing audio data. It can be seen that when the first device needs to transmit data to the second device, the first device does not directly transmit data to the second device, but sends a first target signal to the second device. When the first indication information sent by the second device is received, that is, when it is known that the data transmission condition is met, the first device performs transmission of a target data stream to the second device, thereby improving the transmission accuracy of the data stream between the first device and the second device and the user experience. Moreover, the second device determines whether the data transmission condition is met, thereby reducing the computing pressure of the first device.
[0074] In some possible embodiments, the second device is a headset, and the second device includes a left sound emitting unit and a right sound emitting unit. The first receiving device is closer to the left sound emitting unit than to the right sound emitting unit. The second receiving device is closer to the right sound emitting unit than to the left sound emitting unit. Alternatively, the second device is a pair of glasses, and the second device includes a left leg and a right leg. The first receiving device is closer to the left leg than to the right leg. The second receiving device is closer to the right leg than to the left leg.
[0075] In some possible embodiments, the method further includes: sending a second target signal.
[0076] Correspondingly, the second device receives the second target signal and obtains a fourth time and a fifth time, wherein the fourth time is obtained according to a time when the first receiving device receives the second target signal, and the fifth time is obtained according to a time when the second receiving device receives the second target signal; then, the second device determines whether the data transmission condition is met according to the first time, the second time, the fourth time and the fifth time. Therefore, the first device transmits two target signals so as to make the second device comprehensively determine whether the data transmission condition is met, so that the result determined by the second device is more accurate, and the precision of data transmission between the first device and the second device is improved.
[0077] In some possible implementation manners, before the first target signal is transmitted, the method further includes: detecting a first preset event; the first preset event includes at least one of the following: a video playing event used for indicating video playing; an audio playing event used for indicating audio playing; a call incoming event; a call outgoing event; or receiving target request information transmitted by the second device.
[0078] It can be seen that in this embodiment, when the first preset event is triggered on the first device, the first device can automatically transmit the first target signal to the second device to perform target data stream transmission with the second device, without manual control of the first device and the second device by the user, so that the convenience of data transmission is improved and the user experience is improved.
[0079] In some possible implementation manners, the transmitting the target data stream to the second device in response to receiving the first indication information includes: in response to receiving the first indication information and obtaining a switching instruction of the user, transmitting the target data stream to the second device.
[0080] It can be seen that in this embodiment, when the first device indicates that the data transmission condition is met, the first device can further output prompt information to prompt the user to confirm whether to perform target data stream transmission, and only when the switching instruction is received, the target data is transmitted to the second device. After the confirmation of the user, the data stream transmission at this time meets the demand of the user and has high precision.
[0081] In some possible implementation manners, after the target data stream is transmitted to the second device, the method further includes: displaying a switching list on the first device, the switching list being used to display device identifiers of at least one candidate user device; obtaining an operation instruction for a device identifier of a first candidate user device in the at least one candidate user device; and in response to the operation instruction, transmitting indication information to the first candidate user device, the indication information being used to instruct the first candidate user device to perform data stream transmission to the second device.
[0082] For example, when the second device is currently transmitting a data stream with the computer, a phone call comes in, and the phone is not next to the user, the user can select the phone's icon on the computer, so that the connection of the earphone can be switched to the phone, and the user can answer the phone call without taking the phone, thereby improving the user experience. As can be seen, in the embodiment, after the first device transmits a data stream with the second device, the switching list can also be displayed on the first device, so that the user can manually switch to any device in the switching list, thereby improving the convenience of switching the connection of the second device.
[0083] In an eighth aspect, an embodiment of the present application provides a user device, comprising: a processing unit, a sending unit and a receiving unit;
[0084] The sending unit is configured to send a first target signal.
[0085] The receiving unit is configured to receive first indication information, the first indication information being sent to the user device when a first time and a second time satisfy a data transmission condition, the first time being obtained by a head-mounted device according to a time when a first receiving device of the head-mounted device receives the first target signal, and the second time being obtained by the head-mounted device according to a time when a second receiving device of the head-mounted device receives the first target signal.
[0086] The processing unit is configured to transmit a target data stream to the head-mounted device in response to receiving the first indication information.
[0087] In some possible implementation manners, the head-mounted device is an earphone, the head-mounted device comprises a left sound emitting unit and a right sound emitting unit, the first receiving device is closer to the left sound emitting unit than to the right sound emitting unit, the second receiving device is closer to the right sound emitting unit than to the left sound emitting unit, or the head-mounted device is glasses, the head-mounted device comprises a left leg and a right leg, the first receiving device is closer to the left leg than to the right leg, and the second receiving device is closer to the right leg than to the left leg.
[0088] In some possible implementation manners, before the receiving unit receives the first indication information, the sending unit is further configured to send a second target signal.
[0089] In some possible implementation manners, before the sending unit sends the first target signal, the processing unit is further configured to: detect a first preset event; the first preset event includes at least one of the following: a video playing event, used to indicate video playing; an audio playing event, used to indicate audio playing; a call incoming event; a call outgoing event; or control the receiving unit to receive target request information sent by the head-mounted device.
[0090] In some possible implementation manners, in the transmission of the target data stream to the head-mounted device by the processing unit in response to the reception of the first indication information, the processing unit is specifically configured to: in response to the reception of the first indication information and the acquisition of the switching instruction of the user, transmit the target data stream to the head-mounted device.
[0091] In some possible implementation manners, after the transmission of the target data stream to the head-mounted device by the processing unit, the processing unit is further configured to: instruct to display a switching list on the first device, the switching list being used to display device identifiers of at least one candidate user device; acquire an operation instruction for a device identifier of a first candidate user device in the at least one candidate user device; and in response to the operation instruction, send indication information to the first candidate user device, the indication information being used to instruct the first candidate user device to transmit a data stream to the head-mounted device.
[0092] In a ninth aspect, an embodiment of the present application provides a computer readable medium storing program code for execution by a device, the program code being used to implement the method in the first aspect or the second aspect or the third aspect or the seventh aspect in cooperation with the receiving unit and / or the sending unit.
[0093] In a tenth aspect, an embodiment of the present application provides a computer program product containing instructions, which, when executed on a user device or a head-mounted device, cause the user device or the head-mounted device to implement the method in the first aspect or the second aspect or the third aspect or the seventh aspect.
[0094] In an eleventh aspect, an embodiment of the present application provides a chip including a processor and a data interface, the processor reading instructions stored on a memory through the data interface, and implementing the method in the first aspect or the second aspect or the third aspect or the seventh aspect.
[0095] Optionally, as an implementation manner, the chip can further include a memory, the memory storing instructions, and the processor being configured to execute the instructions stored on the memory, and the processor being configured to implement the method in the first aspect or the second aspect or the third aspect or the seventh aspect when the instructions are executed. BRIEF DESCRIPTION OF DRAWINGS
[0096] Figure 1 An architecture diagram of a data stream transmission system provided for an embodiment of the present application;
[0097] Figure 2 A flowchart of a data stream transmission method provided for an embodiment of the present application;
[0098] Figure 3 A schematic diagram of triggering a second preset event on a head-mounted device provided for an embodiment of the present application;
[0099] Figure 4 A schematic diagram of triggering a first preset event on a user device provided for an embodiment of the present application;
[0100] Figure 5 A schematic diagram of two microphones receiving a first target signal provided for an embodiment of the present application;
[0101] Figure 6 A schematic diagram of symmetrically arranging two receiving devices provided for an embodiment of the present application;
[0102] Figure 7 A flowchart of another data stream transmission method provided for an embodiment of the present application;
[0103] Figure 8a A schematic diagram of arranging a third receiving device provided for an embodiment of the present application;
[0104] Figure 8b Another schematic diagram of arranging a third receiving device provided for an embodiment of the present application;
[0105] Figure 9 A schematic diagram of three receiving devices receiving a first target signal provided for an embodiment of the present application;
[0106] Figure 10 Another schematic diagram of three receiving devices receiving a first target signal provided for an embodiment of the present application;
[0107] Figure 11 A schematic diagram of a mirror position provided for an embodiment of the present application;
[0108] Figure 12 A schematic diagram of outputting prompt information on a user device provided for an embodiment of the present application;
[0109] Figure 13 A schematic diagram of inputting a switching instruction provided for an embodiment of the present application;
[0110] Figure 14 A schematic diagram of outputting a device list on a user device provided for an embodiment of the present application;
[0111] Figure 15 A scene schematic diagram of triggering a first preset event for data transmission by a user equipment is provided for an embodiment of the present application;
[0112] Figure 16 A scene schematic diagram of triggering a second preset event for data transmission by a head-mounted device is provided for an embodiment of the present application;
[0113] Figure 17 A structure schematic diagram of a user equipment is provided for an embodiment of the present application;
[0114] Figure 18 A structure schematic diagram of a head-mounted device is provided for an embodiment of the present application;
[0115] Figure 19 Another structure schematic diagram of a head-mounted device is provided for an embodiment of the present application;
[0116] Figure 20 A structure schematic diagram of a communication apparatus is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0117] Firstly, the first device involved in the present application can be a user equipment, and the subsequent description is based on the first device as a user equipment, wherein the user equipment can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical treatment; the second device involved in the present application can be a head-mounted device, and the subsequent description is based on the second device as a head-mounted device. Optionally, the head-mounted device includes but is not limited to a headset, glasses or a helmet, for example, the head-mounted device can be a wireless headset, virtual reality (VR) glasses or a VR helmet. The head-mounted device includes a first receiving device and a second receiving device, and the first receiving device and the second receiving device are located at different positions of the head-mounted device. Optionally, the first receiving device and the second receiving device can be symmetrically arranged on the head-mounted device, or can be asymmetrically arranged on the head-mounted device. The so-called symmetric arrangement of the first receiving device and the second receiving device can be understood as complete symmetric arrangement, that is, the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device in a mirror image manner, or can be understood as asymmetrically arranged on the left and right sides of the head-mounted device, for example, the first receiving device is arranged at a position 1, and the mirror image position corresponding to the position 1 is a position 2, the second receiving device is not arranged at the position 2, but arranged near the position 2, and this arrangement can also be called symmetric arrangement. Therefore, the present application does not limit the positions of the first receiving device and the second receiving device.
[0118] Optionally, when the head-mounted device is a headset, the head-mounted device further includes a left sound emitting unit and a right sound emitting unit, and the distance between the first receiving device and the left sound emitting unit is less than the distance between the first receiving device and the right sound emitting unit; the distance between the second receiving device and the right sound emitting unit is less than the distance between the second receiving device and the left sound emitting unit. Optionally, when the head-mounted device is glasses, the head-mounted device further includes a left temple and a right temple, wherein the distance between the first receiving device and the left temple is less than the distance between the first receiving device and the right temple; the distance between the second receiving device and the right temple is less than the distance between the second receiving device and the left temple.
[0119] In addition, the data flow transmission process is mainly described by taking the head-mounted device as a headset as an example in the present application.
[0120] The technical solutions in the present application will be described below with reference to the accompanying drawings.
[0121] Reference Figure 1 , Figure 1A schematic diagram of a data stream transmission system is provided in the embodiments of the present application. As shown in Figure 1 The data stream transmission system includes a head-mounted device 10 and a user device 20, wherein the head-mounted device 10 includes a first receiving device 101 and a second receiving device 102.
[0122] For example, the user device 20 detects a first preset event, and sends a first target signal to the head-mounted device 10.
[0123] Optionally, the head-mounted device 10 acquires a first time and a second time in response to detecting the first target signal, wherein the first time is obtained according to a time at which the first receiving device 101 receives the first target signal, and the second time is obtained according to a time at which the second receiving device 102 receives the first target signal; when the head-mounted device 10 determines that a data transmission condition is met based on the first time and the second time, the head-mounted device 10 sends first indication information to the user device 20, the first indication information being used to instruct the user device 20 to transmit a target data stream to the head-mounted device 10; and the user device 20 transmits the target data stream to the head-mounted device 10 in response to the first indication information. Correspondingly, the head-mounted device 10 acquires the target data stream transmitted by the user device 20.
[0124] Optionally, the head-mounted device 10 acquires the first time and the second time in response to detecting the first target signal, and sends the first time and the second time to the user device 20; when the user device 20 determines that the data transmission condition is met based on the first time and the second time, the user device 20 transmits the target data stream to the head-mounted device 10. Correspondingly, the head-mounted device 10 acquires the target data stream transmitted by the user device 20.
[0125] It can be seen that, in the embodiments of the present application, when the user device 20 detects the first preset event, the user device 20 sends the first target signal to the head-mounted device 10, and the user device 20 transmits the target data stream to the head-mounted device 10 only when the user device 20 or the head-mounted device 10 determines that the data transmission condition is met based on the first time and the second time, instead of directly transmitting the data stream to the head-mounted device 10 when detecting the key event, thereby improving the accuracy of data stream transmission and improving the user experience.
[0126] Referring to Figure 2 , Figure 2 A flowchart of a data stream transmission method is provided in the embodiments of the present application. The method is applied to Figure 1 a data stream transmission system as shown in the figure. The method includes the following steps:
[0127] 201: The user device sends a first target signal to the head-mounted device.
[0128] Optionally, the user equipment detects a first preset event before sending the first signal, wherein the first preset event can be triggered directly on the user equipment or can be obtained from the head-mounted device side.
[0129] For example, when the first preset event is triggered on the user equipment, the first preset event can be at least one of the following: a video playing event for indicating video playing; or an audio playing event for indicating audio playing, wherein the audio includes voice messages and music, and other audios; or a call incoming event; or a call outgoing event; wherein the call includes voice call and video call. When the first preset event is execution of the above specific event on the user equipment, the implementable manner of the present scheme can be that the user equipment sends an indication information to the head-mounted device to trigger the head-mounted device to start performing detection of a specific type of signal (the first target signal) after detecting the first preset event, and then sends the first target signal to the head-mounted device. The indication information can be an arbitrary agreed message, such as a request message. Because the transmission of the message needs to pre-establish a short-range wireless connection, such as a Bluetooth connection, between the user equipment and the head-mounted device, in the implementation of the present scheme, the user equipment can send the indication information to the head-mounted device with which the short-range wireless connection is established, or to the head-mounted device in the surrounding area after detecting or connecting with the head-mounted device.
[0130] The first preset event can also be receiving the target request information sent by the head-mounted device, wherein the target request information is an arbitrary designated information agreed by the head-mounted device and the user equipment, and the user equipment sends the first target signal to the head-mounted device after receiving the target request information, and the target request information can be used to request the user equipment to send the first target signal to the head-mounted device. In this case, when the head-mounted device sends the target request information, the head-mounted device will simultaneously or subsequently start detection of the first target signal and wait for receiving the first target signal sent by the user equipment in response to the target request information. Similarly, the transmission of the target request information needs to pre-establish a Bluetooth connection. Therefore, in the specific implementation, the head-mounted device can send the target request information to the user equipment with which the connection is established, or start a short-range wireless connection establishment process to attempt to connect with the user equipment in the surrounding area and then send the target request information.
[0131] Further, when the first preset event is receiving the target request information sent by the head-mounted device, the head-mounted device also detects a second preset event before sending the target request information. Correspondingly, the head-mounted device sends the target request message to the user equipment in response to the second preset event.
[0132] For example, the second preset event includes a control operation on a button on the head-mounted device, where the control operation on the button on the head-mounted device can be clicking the button on the head-mounted device or holding the button on the head-mounted device without releasing. The button can be an existing button on the head-mounted device, such as a power-on button, a volume adjustment button, or the like; or the button can be a newly added button for triggering the second preset event, and the type of the button is not limited.
[0133] Optionally, when the head-mounted device has a touch panel, the second preset event can also be a touch operation on the touch panel of the head-mounted device. For example, the touch operation can be a preset operation on the touch panel, such as detecting a double-click operation on the touch panel or a "S" drawing operation on the touch panel; or a touch operation on a virtual function button on the touch panel, and the type of the preset operation is not limited.
[0134] Optionally, when the head-mounted device has a voice recognition module, the second preset event can also be a voice instruction for instructing the user device to transmit the target data stream. The voice instruction can be a voice instruction for instructing the head-mounted device to transmit the target data stream to the user device, such as a voice instruction of "establishing a connection with the user device" or "transmitting a data stream to the user device", and the type of the voice instruction is not limited.
[0135] For example, as shown in Figure 3 the head-mounted device is an earphone, and a button is newly added to the earphone. When a user holds the button without releasing, the earphone can detect the second preset event and send a target request message to the user device.
[0136] In addition, after the head-mounted device detects the second preset event, the head-mounted device can first determine at least one candidate user device according to a preset rule, and send a target request message to each candidate user device, where the user device is one of the at least one candidate user device.
[0137] For example, the head-mounted device takes a user device that has established a connection with the head-mounted device as at least one candidate user device; or takes a user device in the same local area network as the head-mounted device as at least one candidate user device; or takes a device within a preset range of the head-mounted device as at least one candidate user device, such as a user device within a range of R radius centered on the head-mounted device; or takes a user device within the preset range of the head-mounted device and in a bright screen state as at least one candidate user device.
[0138] The first target signal can have different forms based on the type of hardware on the head-mounted device. For example, when the head-mounted device has a receiver, the first target signal can be a command signal, such as an electromagnetic wave signal, which the user device can send to the head-mounted device through an antenna. For another example, when the head-mounted device has a microphone, the first target signal can be an ultrasonic signal, which the user device can send to the head-mounted device through a sound emitting unit. The ultrasonic signal can be a Chirp signal with a frequency of 17 KHz to 22 KHz. The application does not limit the type of the first target signal.
[0139] As shown in FIG. 1, a user wears a headset. When the user starts playing a video on a tablet, a first preset event is triggered. The tablet sends indication information to the headset, instructing the headset to detect a first target signal. Then, the tablet sends the first target signal to the headset through a sound emitting unit. Figure 4
[0140] 202: The head-mounted device detects the first target signal.
[0141] For example, the head-mounted device detects the first target signal based on the indication information sent by the user device. It should be noted that, since the head-mounted device has multiple receiving devices, the signals received by each receiving device need to be detected to determine whether the first target signal is received by each receiving device. As shown in FIG. 2, the head-mounted device needs to detect the signals received by a first receiving device to determine whether the first target signal is received by the first receiving device, and detect the signals received by a second receiving device to determine whether the first target signal is received by the second receiving device. Figure 5
[0142] For example, the way of detecting the first target signal is different based on the type of the first target signal. Optionally, when the first target signal is a command signal, the indication information is carried in the first target signal, which is used to indicate that the first target signal is the above-mentioned specific type of signal. Therefore, the head-mounted device receives the first target signal, analyzes the first target signal to obtain the indication information, and detects the first target signal according to the indication information. Optionally, when the first target signal is an ultrasonic signal, the head-mounted device performs matched filtering on the received ultrasonic signal and a stored ultrasonic signal template, and takes the ultrasonic signal with a matched value greater than a threshold value as the first target signal.
[0143] 203: The head-mounted device sends a first time and a second time to the user device in response to detecting the first target signal. The first time is obtained according to the time when the first receiving device receives the first target signal, and the second time is obtained according to the time when the second receiving device receives the first target signal.
[0144] The first time can be the time when the first receiving device receives the first target signal, or can be obtained by processing the time when the first receiving device receives the first target signal, for example, adding an offset value to the time when the first receiving device receives the first target signal to obtain the first time. Similarly, the second time and the third time, the fourth time, and the fifth time are obtained in the same way as the first time, and will not be described again. It should be noted that if the first time and the second time are obtained by processing the time when the first target signal is received, the same processing should be performed on the time when the first target signal is received by the first receiving device and the time when the first target signal is received by the second receiving device, for example, the same offset value is added. In this application, the first time, the second time, the third time, the fourth time, and the fifth time are all the times when the target signal is received by the receiving device on the head-mounted device.
[0145] For example, for the instruction signal, the head-mounted device can first cache the time when the signal instruction received by the first receiving device and the second receiving device is received, and when a certain instruction signal is parsed as the first target signal, the time when the first receiving device receives the first target signal and the time when the second receiving device receives the second target signal are read from the cache to obtain the first time and the second time.
[0146] For example, for the ultrasonic signal, the head-mounted device performs matched filtering on the ultrasonic signal received by the first receiving device and the stored ultrasonic signal template to obtain a matching result, wherein the matching result in the time domain coordinate system is: the horizontal coordinate is the time, that is, the time when the ultrasonic signal is received, and the vertical coordinate is the matching degree between the ultrasonic signal received by the first receiving device and the stored ultrasonic signal template. Then, when the matching degree is greater than a threshold, the first target signal is detected, and the time when the matching degree is greater than the threshold is taken as the first time. Similarly, the second time is obtained in the same way as the first time, and will not be described again.
[0147] 204: When the user device determines that the data transmission condition is met based on the first time and the second time, the head-mounted device is transmitted with the target data stream.
[0148] For example, the user device obtains the absolute value of the difference between the first time and the second time, and when the absolute value is less than a preset value, it is determined that the data transmission condition is met, wherein determining that the data transmission condition is met can be understood as determining that the head-mounted device is facing the user device. The size of the preset value is related to the relative position of the first receiving device and the second receiving device on the head-mounted device. For example, when the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device, the preset value is close to 0, that is, when the first receiving device and the second receiving device simultaneously receive the first target signal, it is determined that the head-mounted device is facing the user device. For example,Figure 6 As shown, the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device, which can be understood as being symmetrically arranged on the left and right sides of the median axial cutting line of the head-mounted device or the left and right sides of the median vertical plane. For example, when the first receiving device and the second receiving device are not symmetrically arranged, a preset value can be set according to the distance between the first receiving device and the second receiving device and the center of the head-mounted device. In this application, the first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device as an example.
[0149] Further, after the user equipment determines that the data transmission condition is met, the user equipment transmits the target data stream to the head-mounted device, wherein the target data stream can be audio data. The audio data is transmitted through the connection between the user equipment and the head-mounted device, such as Bluetooth connection.
[0150] As can be seen, in the embodiment of the application, when the user equipment has a demand for playing audio and video or calling, the first target signal is first sent to the head-mounted device, and whether the data transmission condition is met is judged based on the first time and the second time, and if the data transmission condition is met, the data stream is transmitted to the head-mounted device, instead of directly transmitting the data stream to the head-mounted device. Therefore, the data stream transmission method of the application is more in line with the real intention of the user, and the user experience is improved.
[0151] Referring to Figure 7 , Figure 7 Another data stream transmission method provided by the embodiment of the application is shown in the flowchart. The method is applied to Figure 1 the data stream transmission system shown. The embodiment of the application is repeated with the above Figure 2 embodiment shown in the embodiment, which will not be described here. The method includes the following steps:
[0152] 701: The user equipment detects the first preset event.
[0153] 702: The user equipment sends the first target signal to the head-mounted device.
[0154] 703: The head-mounted device detects the first target signal.
[0155] 704: The head-mounted device obtains the first time and the second time, wherein the first time is obtained according to the time when the first receiving device receives the first target signal, and the second time is obtained according to the time when the second receiving device receives the first target signal.
[0156] 705: When the head-mounted device determines that the data transmission condition is met based on the first time and the second time, the first indication information is sent to the user equipment, wherein the first indication information is used to indicate the user equipment to transmit the target data stream to the head-mounted device.
[0157] For example, the head-mounted device determines the manner of satisfying the transmission condition in a similar way to the manner of determining the user equipment satisfying the transmission condition, and is not described again.
[0158] Optionally, the first indication information can be agreed by the head-mounted device and the user equipment, for example, can be indicated by a bit, such as an agreement bit "1" indicating that the data transmission condition is satisfied, and an agreement bit "0" indicating that the data transmission condition is not satisfied.
[0159] 706: The user equipment transmits the target data stream to the head-mounted device.
[0160] Optionally, the user equipment determines that the data transmission condition is satisfied based on the first indication information, and transmits the target data stream to the head-mounted device.
[0161] It can be seen that in the embodiment of the present application, when the user equipment has a demand to play audio, the user equipment sends the first target signal to the head-mounted device; then, the head-mounted device judges whether the data transmission condition is satisfied based on the first time and the second time, and if satisfied, sends the first indication information to the head-mounted device, which indicates to the head-mounted device that the data transmission demand is satisfied. Correspondingly, the user equipment transmits the data stream to the head-mounted device only after receiving the first indication information, rather than directly transmitting the data stream to the head-mounted device, so that the data stream transmission method of the present application is more in line with the real intention of the user, and improves the user experience. Moreover, the head-mounted device autonomously determines whether the data transmission condition is satisfied based on the first time and the second time, and sends the determination result to the user equipment, so that the user equipment can directly judge whether the head-mounted device satisfies the data transmission condition based on the determination result sent by the head-mounted device, which improves the data interaction efficiency and reduces the computing pressure of the user equipment.
[0162] In an embodiment of the present application, the head-mounted device further comprises a third receiving device, and the first receiving device, the second receiving device and the third receiving device are located at different positions of the head-mounted device, so that when the head-mounted device is worn, the first receiving device and the third receiving device present a front and back different position relationship in the user face orientation direction.
[0163] It should be noted that the first receiving device and the third receiving device present a front and back different position relationship in the user face orientation direction can be understood as that the perpendicular point of the third receiving device to the target straight line and the perpendicular point of the first receiving device to the target straight line present a front and back different position relationship, wherein the target straight line is a straight line parallel to the vertical plane of the central axis of the head-mounted device, that is, the target straight line can be understood as a straight line parallel to the face orientation. The perpendicular point of the third receiving device to the target straight line can be located before the perpendicular point of the first receiving device to the target straight line, or can be located after the perpendicular point of the first receiving device to the target straight line, which is not limited in the present application. For example,Figure 8a As shown, the vertical point A of the first receiving device to the target straight line and the vertical point B of the third receiving device to the target straight line present a front-and-back different positional relationship, and the point B is located before the point A.
[0164] Of course, since the first receiving device and the second receiving device are symmetrically arranged, the third receiving device and the second receiving device can also present a front-and-back different positional relationship in the user face orientation direction, similar to the first receiving device, and will not be described again.
[0165] Optionally, in order to be more accurate in judging the orientation of the head-mounted device, when the third receiving device and the first receiving device are arranged on the same side of the head-mounted device, as shown in Figure 8b As shown, the usual design is to make the first receiving device and the second receiving device parallel to the face orientation when wearing the head-mounted device; similarly, when the third receiving device and the second receiving device are arranged on the same side of the head-mounted device, the usual design is to make the line connecting the second receiving device and the third receiving device parallel to the face orientation when wearing the head-mounted device.
[0166] Therefore, when the head-mounted device further includes a third receiving device, and whether the data transmission condition is satisfied is determined by the user device, the head-mounted device will also obtain a third time, and send the third time to the user device, wherein the third time is obtained according to the time when the first target signal is received by the third receiving device. Correspondingly, when it is determined that the data transmission condition is satisfied based on the first time and the second time, and the first time and the third time satisfy the preset size relationship, i.e., it is determined that the head-mounted device is oriented to the user device, the transmission of the target data stream to the head-mounted device is performed.
[0167] Therefore, when the head-mounted device further includes a third receiving device, and whether the data transmission condition is satisfied is determined by the head-mounted device, the head-mounted device will also obtain a third time, wherein the third time is obtained according to the time when the first target signal is received by the third receiving device; based on the first time and the second time, it is determined that the data transmission condition is satisfied, and the first time and the third time satisfy the preset size relationship, i.e., it is determined that the head-mounted device is oriented to the user device, the first indication information is sent to the head-mounted device. Correspondingly, the user device performs the transmission of the target data stream to the head-mounted device based on the first indication information.
[0168] The way in which the head-mounted device is determined to be oriented to the user device by the user device based on the first time, the second time, and the third time will be described below in conjunction with the drawings. The way in which the head-mounted device is determined to be oriented to the user device by the head-mounted device is similar, and will not be described again.
[0169] As shown in Figure 9As shown, when the third receiving device is located on the same side as the first receiving device, and the perpendicular point from the third receiving device to the target line is located before the perpendicular point from the first receiving device to the target line, when the headset is worn, the third receiving device will receive the first target signal earlier than the first receiving device. Therefore, when the user device determines that the absolute value of the difference between the first and second moments is less than a threshold, and the first and third moments satisfy a predetermined magnitude relationship, i.e., the third moment is earlier than the first moment, the headset is determined to be facing the user device, and the target data stream is transmitted to the headset. Alternatively, the third receiving device may be located on the same side as the second receiving device, and the perpendicular point from the third receiving device to the target line is located before the perpendicular point from the first receiving device to the target line. When the headset is worn, the third receiving device will receive the first target signal earlier than the second receiving device. Therefore, when the user device determines that the absolute value of the difference between the first and second moments is less than a threshold, and the second and third moments satisfy a predetermined magnitude relationship, i.e., the third moment is earlier than the second moment, the headset is determined to be facing the user device, and the target data stream is transmitted to the headset.
[0170] like Figure 10 As shown, when the third receiving device is located on the same side as the first receiving device, and the perpendicular point from the third receiving device to the target line is located behind the perpendicular point from the first receiving device to the target line, when the user wears headphones, the third receiving device will receive the first target signal later than the first receiving device. Therefore, when the user device determines that the absolute value of the difference between the first and second moments is less than a threshold, and the first and third moments satisfy a predetermined magnitude relationship, i.e., the third moment is later than the first moment, the user device determines that the headset is facing the user device and transmits the target data stream to the headset. Alternatively, the third receiving device may be located on the same side as the second receiving device, and the perpendicular point from the third receiving device to the target line is located behind the perpendicular point from the first receiving device to the target line. When the user wears headphones, the third receiving device will receive the first target signal later than the second receiving device. Therefore, when the user device determines that the absolute value of the difference between the first and second moments is less than a threshold, and the second and third moments satisfy a predetermined magnitude relationship, i.e., the third moment is later than the second moment, the user device determines that the headset is facing the user device and transmits the target data stream to the headset.
[0171] It should be understood that the third receiving device is set up because the above method of determining whether the transmission condition is met is based only on the absolute value of the difference between the first moment and the second moment. Therefore, when the user is wearing headphones and facing away from the user device, the data transmission condition may also be met, and it is not possible to accurately determine whether the head-mounted device is facing the user device. Figure 11As shown, when the user wears the earphone and is in position 1 and position 2 (position 2 can be understood as the mirror position of position 1) respectively, the absolute value of the difference between the first time and the second time can be determined to be less than the threshold value, and the user is facing away from the mobile phone in position 2. In this case, the user is probably not willing to transmit the data stream with the mobile phone. Therefore, in order to avoid the mirror problem, a third receiving device is arranged on the head-mounted device, and based on the relative size relationship between the third time and the first time or the second time, it is determined that position 1 is the real condition for data transmission, and position 2 is only for the target data stream transmission in position 1, avoiding the problem of false transmission when the user wears the earphone and faces away from the user equipment, and improving the data transmission accuracy.
[0172] Although Figure 9 、 Figure 10 and Figure 11 several ways of setting the third receiving device are shown, but in actual application, the position and number of the third receiving device can be flexibly set, as long as each third receiving device can accurately determine whether the user wearing the earphone is facing the user equipment or facing away from the user equipment, and can avoid the mirror problem. For example, the third receiving device shown in Figure 9 and Figure 10 can be arranged on the head-mounted device at the same time, and whether the data transmission condition is met is determined based on the third time when each third receiving device receives the first target signal.
[0173] It should be understood that more receiving devices can also be arranged on the head-mounted device, and the way of determining whether the data transmission condition is met after arranging more receiving devices is similar to the way of arranging two or three receiving devices, that is, whether the data transmission condition is met is determined according to the time when the receiving device receives the target signal, which will not be repeated here.
[0174] In an embodiment of the present application, the user equipment can have multiple sending devices, such as multiple sound emitting units (left sound emitting unit and right sound emitting unit), and the user equipment can send multiple target signals to the head-mounted device through multiple sound emitting units. In the present application, two sending devices on the user equipment are taken as an example for description. Therefore, in addition to sending the first target signal to the head-mounted device, the user equipment also sends the second target signal to the head-mounted device.
[0175] Exemplarily, the head-mounted device is provided with a first receiving device and a second receiving device, and the user equipment sends the first target signal and the second target signal to the head-mounted device as an example to illustrate the data stream transmission process.
[0176] Optionally, if the user equipment determines whether the data transmission condition is met, the user equipment further indicates to the head-mounted device to send the second target signal, wherein the user equipment can indicate to send the second target signal through the indication information, or indicate to send the second target signal through new indication information, and the application does not limit the way of indicating to send the second target signal; the user equipment obtains the fourth time when the first receiving device receives the second target signal and the fifth time when the second receiving device receives the second target signal from the head-mounted device; when it is determined that the absolute value of the difference between the first time and the second time is within the preset range, and the absolute value of the difference between the fourth time and the fifth time is within the preset range, the user equipment performs the transmission of the target data stream to the head-mounted device.
[0177] Optionally, if the head-mounted device determines whether the transmission condition is met, the head-mounted device starts the detection of the second target signal based on the indication of the user equipment, and obtains the fourth time and the fifth time, wherein the fourth time is obtained according to the time when the first receiving device receives the second target signal, and the fifth time is obtained according to the time when the second receiving device receives the second target signal; when the head-mounted device determines that the absolute value of the difference between the first time and the second time is less than the preset value, and the absolute value of the difference between the fourth time and the fifth time is also less than the preset value, the head-mounted device sends the first indication information to the user equipment.
[0178] It should be understood that when more number of sending devices are arranged on the user equipment, more number of target signals can be sent, wherein for each target signal sent by each sending device, the user equipment or the head-mounted device obtains a determination result of whether the transmission condition is met corresponding to the target signal, which is determined according to the time when each receiving device on the head-mounted device receives the target signal; finally, the user equipment or the head-mounted device comprehensively determines whether the transmission condition is met according to the determination results of the multiple sending devices. For example, when the determination results of the multiple sending devices all indicate that the transmission condition is met, the user equipment or the head-mounted device determines that the transmission condition is met; when the ratio between the number of the determination results of the head-mounted device indicating that the transmission condition is met and the number of the multiple sending devices exceeds the preset ratio, the user equipment or the head-mounted device determines that the transmission condition is met. Therefore, the application does not limit the way of comprehensively determining the determination results of the multiple sending devices.
[0179] In an embodiment of the application, when it is determined that the data transmission condition is met based on the first time and the second time, and the switching instruction of the user is received, the user equipment performs the transmission of the target data stream to the head-mounted device, and the switching instruction is used to indicate that the user equipment is allowed to perform the transmission of the target data stream with the head-mounted device.
[0180] For example, when it is determined that the data transmission conditions are met, a prompt message can also be output to prompt the user whether to output the target data stream of the user device through the head-mounted device. If the user inputs a switching instruction to allow switching, the target data stream is transmitted to the head-mounted device. The prompt message can be output on the user device or on the head-mounted device, and this application does not limit this.
[0181] For example, Figure 12 As shown, a prompt message "Do you want to output audio through wireless headphones" is output in the form of a pop-up window on the user device. When the user clicks the "OK" button, the user device receives the user's switching instruction and transmits the target data stream to the wireless headphones based on the switching instruction.
[0182] For example, Figure 13 As shown, when the user presses the button, it triggers the process of establishing a connection between the user device and the headset. When the user device determines that the data transmission conditions are met, the headset outputs a voice prompt message "Should you output audio through the wireless headset?" When the user releases the button, the headset sends a switching instruction to the user device. The user device receives the switching instruction and transmits the data stream to the headset based on the switching instruction.
[0183] It can be seen that in the implementation method, when it is determined that the data transmission conditions are met, the user can also be prompted to actively confirm whether to transmit the target data stream. Only after receiving the user's switching instruction will the target data stream be transmitted to the head-mounted device, thereby further improving the accuracy of data stream transmission.
[0184] In one embodiment of the present application, after the user device transmits the target data stream to the head-mounted device, a switching list can also be displayed on the user device, wherein the switching list is used to display the device identification of at least one candidate user device, for example, the at least one candidate user device can be a user device that has established a connection with the head-mounted device; then, the user device obtains an operation instruction for the device identification of the first candidate user device among the at least one candidate user device, and in response to the operation instruction, the user device sends an indication information to the first candidate user device, and the indication information is used to instruct the first candidate user device to transmit the target data stream to the head-mounted device, wherein the first candidate user device is any one of the at least one candidate user device.
[0185] Exemplarily, the user device has a display module, and the feedback information can be output through the display module of the user device during the transmission of the target data stream by the user device and the head-mounted device. The feedback information is used to feed back the current output state of the head-mounted device. Exemplarily, a pop-up window including the feedback information can be output on the visual interface of the user device through the feedback module of the user device, as shown in Figure 14 The feedback information includes, but is not limited to, the following three parts:
[0186] 1. the name of the head-mounted device and / or the icon of the head-mounted device; 2. the status text; and 3. the switching button.
[0187] Optionally, the name of the head-mounted device and / or the icon of the head-mounted device are used to represent the basic information of the head-mounted device, as shown in Figure 14 The name of the head-mounted device indicates that the name of the head-mounted device is "Freebuds Studio", and the icon indicates that the head-mounted device is "earphone".
[0188] Optionally, the status text is used to represent the current working state of the head-mounted device.
[0189] Optionally, when the user clicks the switching button, a switching list is switched on the user device, and the switching list includes the device identifiers of at least one candidate user device. As shown in Figure 14 The at least one candidate user device includes the local device (i.e., the user device), P40 Pro, and Matebook X, and part or all of the candidate user devices in the device list can also be matched with a specific animation, which is used to indicate that the candidate user device is currently outputting audio.
[0190] Further, when the user device receives an operation instruction for the device identifier of a first candidate user device in the at least one candidate user device, such as a click operation for the device identifier of the first candidate user device, in response to the operation instruction, an indication information is sent to the first candidate user device, which is used to instruct the first candidate user device to transmit the target data stream to the head-mounted device. Correspondingly, the first candidate user device transmits the data stream to the head-mounted device based on the indication information. The user device and the first candidate user device are in the same local area network.
[0191] In an embodiment of the present application, the head-mounted device has two connection modes. One is a single connection mode, that is, the head-mounted device can only establish a connection with one user device and output the data stream transmitted by the user device. The other is a multi-connection mode, that is, the head-mounted device can establish a connection with multiple user devices, but only output the data stream transmitted by one user device.
[0192] It should be understood that if the head-mounted device works in the single-connection mode, after the user equipment sends the indication information to the first candidate user equipment, the user equipment needs to actively disconnect the connection with the head-mounted device, so that the first candidate user equipment establishes a connection with the head-mounted device and transmits the data stream to the head-mounted device; if the head-mounted device works in the multi-connection mode, after the user equipment sends the indication information to the first candidate user equipment, the user equipment can also continue to maintain the connection with the head-mounted device, but no longer transmits the data stream to the head-mounted device, or can actively disconnect the connection with the head-mounted device; for the first candidate user equipment, if a connection with the head-mounted device has not been established before, the first candidate user equipment needs to establish a connection with the head-mounted device first, and then transmit the target data stream to the head-mounted device; if a connection with the head-mounted device has been established before, the first candidate user equipment can directly transmit the target data stream to the head-mounted device.
[0193] For example, as shown in Figure 14 , the current head-mounted device is receiving the data stream transmitted by the computer. When the mobile phone "P40 Pro" rings, and the mobile phone is not beside the user, and the user does not want to take the mobile phone, the user can click "P40 Pro" in the device list displayed on the computer, which is equivalent to inputting a switching instruction of switching the connection of the head-mounted device to the mobile phone "P40 Pro", so that the computer sends indication information to the mobile phone. After the mobile phone receives the indication information, the mobile phone transmits the data stream to the earphone, that is, transmits the call audio to the earphone, so that the user answers the call of the mobile phone through the earphone.
[0194] It can be seen that by displaying the switching list on the user equipment, the user can actively switch the connection of the head-mounted device to other candidate user equipment which needs to output the data stream, so as to improve the flexibility of data stream transmission.
[0195] The process of data stream transmission between the mobile phone and the earphone of the application will be introduced in detail below in combination with the drawings.
[0196] Scenario 1: as Figure 15As shown, when the user starts playing a video on the mobile phone, the mobile phone indicates and sends a first target signal to the earphone in the connected state. Correspondingly, the earphone starts detecting the first target signal based on the indication of the mobile phone, and acquires a first time when the left microphone of the earphone receives the first target signal and a second time when the right microphone receives the second target signal when detecting the first target signal. Then, the earphone sends the first time and the second time to the mobile phone. The mobile phone determines that the data transmission condition is met based on the first time and the second time. In order to further ensure the accuracy of the connection, and moreover, the user's attention is mostly concentrated on the mobile phone at this time after clicking the operation of playing the video on the mobile phone, a window can be popped up on the mobile phone, and a prompt information of "whether to output audio through the wireless earphone" is displayed in the window. If the user clicks the virtual button "OK" on the mobile phone, the mobile phone will perform data stream transmission with the wireless earphone, that is, playing the video through the earphone. If the user clicks the virtual button "Ignore" on the mobile phone, the mobile phone will not perform data stream transmission with the wireless earphone, but play the video through the sound emitting unit.
[0197] Scenario 2: As shown, Figure 16 As shown, when the user presses the button on the earphone, the earphone searches for the mobile phone in the range and sends a target request information to the mobile phone, requesting the mobile phone to send a first target signal to the earphone. Then, after receiving the target request information, the mobile phone indicates and sends the first target signal to the earphone. Correspondingly, the earphone starts detecting the first target signal based on the indication of the mobile phone, and acquires a first time when the left microphone of the earphone receives the first target signal and a second time when the right microphone receives the second target signal when detecting the first target signal. Then, the earphone sends the first time and the second time to the mobile phone. The mobile phone determines that the data transmission condition is met based on the first time and the second time. In order to further ensure the accuracy of the connection, and moreover, the user is pressing the button on the wireless earphone, and the attention is more concentrated on the earphone, and may not pay attention to what is displayed on the mobile phone. Therefore, the mobile phone can output a prompt information through the earphone, which is used to prompt whether to connect the earphone to the mobile phone. If the user releases the button, the earphone sends an instruction for agreeing to establish a connection to the mobile phone, and at this time the mobile phone can perform data stream transmission to the earphone based on the instruction.
[0198] Based on the data stream transmission method provided in the embodiments of the present application, compared with the existing earphone and user equipment connection method, the user can have a better connection experience in the following several scenarios.
[0199] Scenario 1: the user is wearing earphones to watch a movie on a tablet (the earphones are connected to the tablet), at this time the phone rings, the user takes off the earphones and picks up the phone to answer the call, at this time the phone sends a first target signal to the earphones, and based on the first time and the second time at which the first target signal is received by the two microphones of the earphones, it is determined that the earphones are not facing the phone, so no data stream will be transmitted to the earphones, and no data mis-transmission will occur between the earphones and the phone, at this time the user can talk through the phone receiver, thereby improving the user's call experience;
[0200] Scenario 2: the user is wearing earphones to play a game on a phone (the earphones are connected to the phone), at this time someone nearby picks up the user's tablet to watch a video, at this time the tablet sends a first target signal to the earphones, and based on the first time and the second time at which the first target signal is received by the two microphones of the earphones, it is determined that the earphones are not facing the tablet, so the tablet will not transmit a data stream to the earphones, the connection between the earphones and the phone will be maintained, and no data mis-transmission will occur between the earphones and the tablet, thereby improving the user's game experience;
[0201] Scenario 3: the user is wearing earphones to watch a movie on a tablet, and picks up a phone to watch short videos, at this time the user is wearing the earphones to face the phone, so it is likely that the user device will determine that the earphones are facing the user device, therefore, the phone can first default to mute the short video and output a prompt message in the dialog box, prompting whether to switch the connection of the earphones to the phone, if the user confirms to switch, the earphones will be switched from the tablet to the phone and data stream transmission will be performed with the phone; if the user does not confirm to switch, the earphones will continue to be connected to the tablet and data stream transmission will be performed with the tablet. Therefore, when it is not certain whether to switch the connection, a prompt message can be output to achieve accurate switching and prevent data mis-transmission, thereby improving the user's viewing experience;
[0202] Scenario 4: the user is wearing earphones to watch a movie on a tablet, and feels bored, so the user pauses the video on the tablet and picks up a phone to watch short videos, at this time the phone will determine that the earphones are facing the phone and that there is audio output on the phone but no audio output on the tablet, therefore the phone can directly switch the connection of the earphones to the phone and perform data stream transmission with the earphones, thereby achieving automatic connection between the phone and the earphones without the need for manual operation by the user, thereby improving the user experience.
[0203] Referring to Figure 17 , Figure 17 A structural schematic diagram of a user device is provided for the embodiments of the present application. As shown in Figure 17 , the user device 1700 includes a processing unit 1701, a sending unit 1702 and a receiving unit 1703;
[0204] The sending unit 1702 is configured to send a first target signal.
[0205] The processing unit 1701 is configured to obtain a first time point, which is obtained according to a time when a first receiving device of the head-mounted device receives the first target signal; obtain a second time point, which is obtained according to a time when a second receiving device of the head-mounted device receives the first target signal; the first receiving device and the second receiving device are located at different positions of the head-mounted device.
[0206] When the processing unit 1701 determines that the data transmission condition is met based on the first time point and the second time point, the processing unit 1701 transmits the target data stream to the head-mounted device.
[0207] It should be understood that when the first target signal is an ultrasonic signal, the sending unit 1702 can be a functional unit of a transceiver for sending an ultrasonic signal, for example, the transceiver is a loudspeaker, in this case, the processing unit 1701 can control another sending unit (such as an antenna) to transmit the data stream to the head-mounted device; when the first target signal is a signal instruction, the sending unit 1702 can be a functional unit of a transceiver for sending a signal instruction, for example, the transceiver is an antenna, in this case, the processing unit 1701 can control the sending unit 1702 to transmit the data stream to the head-mounted device.
[0208] For more detailed description of the processing unit 1701, the sending unit 1702 and the receiving unit 1703, please refer to the related description in the above method embodiments, which will not be repeated here.
[0209] Reference Figure 18 , Figure 18 A structural schematic diagram of a head-mounted device provided by an embodiment of the present application is shown in FIG. 18. As shown in FIG. 18, the head-mounted device 1800 includes one or more processing units 1801, a sending unit 1802 and a receiving unit 1803. Figure 18
[0210] The one or more processing units 1801 are configured to detect a first target signal sent by a user device; obtain a first time point, which is obtained according to a time when the first receiving device receives the first target signal; obtain a second time point, which is obtained according to a time when the second receiving device receives the first target signal.
[0211] When the one or more processing units 1801 determine that the data transmission condition is met based on the first time point and the second time point, the sending unit 1802 is controlled to send first indication information to the user device.
[0212] The receiving unit 1803 is configured to receive the target data stream transmitted by the user device in response to the first indication message.
[0213] It should be understood that when the first target signal is an ultrasonic signal, then the one or more processing units 1801 include a processing unit for detecting the ultrasonic signal; when the first target signal is a signal instruction, then the one or more processing units include a processing unit for detecting the signal instruction by the user, such as a functional unit of a processor.
[0214] For more detailed descriptions of the one or more processing units 1801, the sending unit 1802, and the receiving unit 1803 described above, reference can be made to the related descriptions in the above method embodiments, which will not be described here.
[0215] Referring to Figure 19 , Figure 19 A structural schematic diagram of a head-mounted device provided by an embodiment of the present application is shown in FIG. 19. As shown in FIG. 19, the head-mounted device 1900 includes one or more processing units 1901, a sending unit 1902, and a receiving unit 1903. Figure 19
[0216] The one or more processing units 1901 are configured to detect a first target signal sent by a user device; in response to detecting the first target signal, control the sending unit 1902 to send a first time to the user device, the first time being obtained according to a time at which the first target signal is received by the first receiving device; in response to detecting the first target signal, control the sending unit 1902 to send a second time to the user device, the second time being obtained according to a time at which the first target signal is received by the second receiving device.
[0217] The receiving unit 1903 is configured to receive a target data stream transmitted by the user device, the target data stream being transmitted by the user device to the head-mounted device when the first time and the second time satisfy a data transmission condition.
[0218] It should be understood that when the first target signal is an ultrasonic signal, then the one or more processing units 1901 include a processing unit for detecting the ultrasonic signal; when the first target signal is a signal instruction, then the one or more processing units include a processing unit for detecting the signal instruction by the user, such as a functional unit of a processor.
[0219] For more detailed descriptions of the processing unit 1901, the sending unit 1902, and the receiving unit 1903 described above, reference can be made to the related descriptions in the above method embodiments, which will not be described here.
[0220] Referring to Figure 20 , Figure 20 FIG. 1 is a structural schematic diagram of a communication device provided by an embodiment of the present application. The communication device 2000 can be the user equipment or the head-mounted device as described above; or the communication device 2000 can be a chip or a chip system in the user equipment as described above; or the communication device 2000 can be a chip or a chip system in the head-mounted device as described above.
[0221] Figure 20 The communication device 2000 shown in the figure includes a memory 2001, a processor 2002, a communication interface 2003 and a bus 2004. The memory 2001, the processor 2002 and the communication interface 2003 are communicatively connected to each other through the bus 2004.
[0222] The memory 2001 can be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 2001 can store a program, and when the program stored in the memory 2001 is executed by the processor 2002, the processor 2002 and the communication interface 2003 are used to execute each step in the data stream transmission method of the embodiment of the present application.
[0223] The processor 2002 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits, used to execute a related program to implement the functions required by the units in the audio feature compensation device or the audio recognition device of the embodiment of the present application, or to execute the data stream transmission method of the method embodiment of the present application.
[0224] The processor 2002 can also be a chip that has a processing capability of signals. In implementation, each step in the data stream transmission method of the present application can be completed by integrated logic circuits of hardware in the processor 2002 or instructions in the form of software. The processor 2002 described above can also be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. Each method, step and logic block diagram disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware coding processor for execution, or a combination of hardware and software modules in the coding processor for execution. The software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, or other mature storage medium in the art. The storage medium is located in the storage 2001, and the processor 2002 reads information in the storage 2001, and combines hardware to complete the functions required by the units included in the user equipment or the head-mounted device in the embodiments of the present application, or executes each step in the data stream transmission method of the method embodiments of the present application.
[0225] The communication interface 2003 uses a transceiving device such as but not limited to a transceiver to realize communication between the communication device 2000 and other devices or communication networks.
[0226] The bus 2004 can include a path for transmitting information between each component (for example, the storage 2001, the processor 2002, the communication interface 2003) of the device communication device 2000.
[0227] It should be noted that although Figure 20 The communication device 2000 shown only shows the storage, the processor, the communication interface, but in the specific implementation process, those skilled in the art should understand that the communication device 2000 also includes other devices necessary for normal operation. At the same time, according to the specific needs, those skilled in the art should understand that the communication device 2000 can also include hardware devices for realizing other additional functions. In addition, those skilled in the art should understand that the communication device 2000 can also only include devices necessary for the embodiments of the present application, and does not have to include all the devices shown in the Figure 20
[0228] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely schematic. The division of the units is merely a logical function division. There can be another division manner for the 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. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0229] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. In actual implementation, some or all of the units can be selected according to the actual needs to achieve the purposes of the embodiments of the present application.
[0230] In addition, each functional unit in the embodiments of the present application can be integrated in one processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated in one unit.
[0231] In the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship between the associated objects, which means that there can be three kinds of relationships, for example, A and / or B, which can represent the following three cases: A exists alone, A and B exist together, B exists alone, where A and B can be singular or plural. In the literal description of the present application, the character " / ", generally represents that the front and rear associated objects are in an "or" relationship; in the formula of the present application, the character " / ", represents that the front and rear associated objects are in a "division" relationship.
[0232] It can be understood that the various numbers involved in the embodiments of the present application are only distinguished for convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the serial number of each process does not mean the execution order, and the execution order of each process should be determined according to its function and inherent logic.
[0233] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0234] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A data stream transmission method, characterized in that: Applied to a first device, the method includes: sending a first target signal; Acquire a first moment, where the first moment is obtained according to the time when the first receiving device of the second device receives the first target signal; Acquire a second moment, where the second moment is obtained according to the time when the second receiving device of the second device receives the first target signal; The first receiving device and the second receiving device are located at different positions of the second device, and the second device is a head-mounted device; When it is determined based on the first time and the second time that a data transmission condition is met, transmitting the target data stream to the second device; The second device further includes a third receiving device, wherein a perpendicular point between the third receiving device and a target straight line is in a different front-to-back position relationship than a perpendicular point between the first receiving device and the target straight line, wherein the target straight line is a straight line parallel to a plane perpendicular to a central axis of the second device; Acquire a third moment, where the third moment is obtained according to the time when the third receiving device receives the first target signal; The determining, based on the first time and the second time, that a data transmission condition is satisfied, and transmitting the target data stream to the second device includes: Based on the first moment and the second moment, it is determined that the data transmission condition is met, and the first moment and the third moment meet a preset size relationship, the target data stream is transmitted to the second device.
2. The method according to claim 1, characterized in that The second device is a headset, and the second device includes a left sound unit and a right sound unit; The distance between the first receiving device and the left sound unit is shorter than the distance between the first receiving device and the right sound unit; The distance between the second receiving device and the right sound unit is shorter than the distance between the second receiving device and the left sound unit; or, The second device is a pair of glasses, and the second device includes a left temple and a right temple; The distance between the first receiving device and the left temple is smaller than the distance between the first receiving device and the right temple; The distance between the second receiving device and the right temple is smaller than the distance between the second receiving device and the left temple.
3. The method according to claim 1, characterized in that The first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the second device; The determining, based on the first time and the second time, that a data transmission condition is satisfied includes: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than a preset value.
4. The method according to claim 3, further comprising: sending a second target signal; Acquire a fourth moment, where the fourth moment is obtained according to the time when the first receiving device receives the second target signal; Acquire a fifth moment, where the fifth moment is obtained according to the time when the second receiving device receives the second target signal; The determining, based on the first time and the second time, that a data transmission condition is satisfied includes: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than the preset value, and the absolute value of the difference between the fourth moment and the fifth moment is smaller than the preset value.
5. The method according to any one of claims 1 to 4, characterized in that Before sending the first target signal, the method further includes: A first preset event is detected; The first preset event includes at least one of the following: Video playback event, used to indicate video playback; Audio playback event, used to indicate audio playback; Incoming call event; Outgoing call event; or Receive target request information sent by the second device.
6. The method according to any one of claims 1 to 4, characterized in that The determining, based on the first time and the second time, that a data transmission condition is satisfied includes: Based on the first moment and the second moment, it is determined that a data transmission condition is met, and a switching instruction from the user is obtained.
7. The method according to any one of claims 1 to 4, characterized in that After transmitting the target data stream to the second device, the method further includes: displaying a switching list on the first device, where the switching list is used to display a device identification of at least one candidate user device; Obtaining an operation instruction for a device identifier of a first candidate user equipment among the at least one candidate user equipment; In response to the operation instruction, indication information is sent to the first candidate user equipment, where the indication information is used to instruct the first candidate user equipment to transmit a data stream to the second device.
8. A data stream transmission method, characterized in that: Applied to a second device, the second device is a head-mounted device, the second device includes a first receiving device and a second receiving device, the first receiving device and the second receiving device are located at different positions of the second device, and the method includes: detecting a first target signal sent by a first device; Acquire a first moment, where the first moment is obtained according to the time when the first receiving device receives the first target signal; Acquire a second moment, where the second moment is obtained according to the time when the second receiving device receives the first target signal; When it is determined based on the first moment and the second moment that a data transmission condition is met, sending first indication information to the first device; receiving a target data stream transmitted by the first device in response to the first indication information; The second device further includes a third receiving device, wherein a perpendicular point between the third receiving device and a target straight line is in a different front-to-back position relationship than a perpendicular point between the first receiving device and the target straight line, wherein the target straight line is a straight line parallel to a plane perpendicular to a central axis of the second device; and the method further includes: Acquire a third moment, where the third moment is obtained according to the time when the third receiving device receives the first target signal; The determining, based on the first time and the second time, that a data transmission condition is satisfied, and sending first indication information to the first device includes: Based on the first moment and the second moment, it is determined that the data transmission condition is met, and the first moment and the third moment meet a preset size relationship, and first indication information is sent to the first device.
9. The method according to claim 8, characterized in that The second device is a headset, and the second device includes a left sound unit and a right sound unit; The distance between the first receiving device and the left sound unit is shorter than the distance between the first receiving device and the right sound unit; The distance between the second receiving device and the right sound unit is shorter than the distance between the second receiving device and the left sound unit; or, The second device is a pair of glasses, and the second device includes a left temple and a right temple; The distance between the first receiving device and the left temple is smaller than the distance between the first receiving device and the right temple; The distance between the second receiving device and the right temple is smaller than the distance between the second receiving device and the left temple.
10. The method according to claim 8 or 9, characterized in that The first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the second device; and determining that the data transmission condition is satisfied based on the first moment and the second moment includes: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than a preset value.
11. The method according to claim 8 or 9, characterized in that The method further comprises: detecting a second target signal sent by the first device; Acquire a fourth moment, where the fourth moment is obtained according to the time when the first receiving device receives the second target signal; Acquire a fifth moment, where the fifth moment is obtained according to the time when the second receiving device receives the second target signal; The determining, based on the first time and the second time, that a data transmission condition is satisfied includes: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than a preset value, and that the absolute value of the difference between the fourth moment and the fifth moment is smaller than the preset value.
12. The method according to claim 8 or 9, characterized in that Before detecting the first target signal sent by the first device, the method further includes: A second preset event is detected; In response to the second preset event, a target request message of the first target signal is sent to the first device.
13. The method according to claim 12, characterized in that The second preset event includes: Control operations on buttons on the second device.
14. A data stream transmission method, characterized in that: Applied to a second device, where the second device is a head-mounted device, the second device includes a first receiving device and a second receiving device, where the first receiving device and the second receiving device are located at different positions of the second device, including: detecting a first target signal sent by a first device; In response to detecting the first target signal, sending a first moment to the first device, where the first moment is obtained according to the time when the first receiving device receives the first target signal; In response to detecting the first target signal, sending a second time to the first device, where the second time is obtained according to the time when the second receiving device receives the first target signal; receiving a target data stream transmitted by the first device, where the target data stream is transmitted from the first device to the second device when the first moment and the second moment meet a data transmission condition; The second device further includes a third receiving device, wherein a perpendicular point between the third receiving device and a target straight line is in a different front-to-back position relationship than a perpendicular point between the first receiving device and the target straight line, wherein the target straight line is a straight line parallel to a plane perpendicular to a central axis of the second device; and the method further includes: In response to detecting the first target signal, sending a third time to the first device, where the third time is obtained according to the time when the first target signal is received by the third receiving device; The target data stream is transmitted by the first device to the second device when the first moment and the second moment meet the data transmission conditions, including: the target data stream is transmitted by the first device to the second device when the first moment and the second moment meet the data transmission conditions, and the first moment and the third moment meet a preset size relationship.
15. The method according to claim 14, characterized in that The second device is a headset, and the second device includes a left sound unit and a right sound unit; The distance between the first receiving device and the left sound unit is shorter than the distance between the first receiving device and the right sound unit; The distance between the second receiving device and the right sound unit is shorter than the distance between the second receiving device and the left sound unit; or, The second device is a pair of glasses, and the second device includes a left temple and a right temple; The distance between the first receiving device and the left temple is smaller than the distance between the first receiving device and the right temple; The distance between the second receiving device and the right temple is smaller than the distance between the second receiving device and the left temple.
16. The method according to claim 14 or 15, characterized in that Before detecting the first target signal sent by the first device, the method further includes: A second preset event is detected; In response to the second preset event, a target request message of the first target signal is sent to the first device.
17. The method according to claim 16, characterized in that The second preset event includes: Control operations on buttons on the second device.
18. A user equipment, characterized in that: The user equipment includes a processing unit, a sending unit and a receiving unit; The sending unit is configured to send a first target signal; The processing unit is configured to obtain a first moment, where the first moment is obtained based on the time when a first receiving device of the head-mounted device receives the first target signal; and obtain a second moment, where the second moment is obtained based on the time when a second receiving device of the head-mounted device receives the first target signal; the first receiving device and the second receiving device are located at different positions of the head-mounted device; When the processing unit determines that a data transmission condition is met based on the first moment and the second moment, the processing unit transmits a target data stream to the head mounted device; The head-mounted device further includes a third receiving device, wherein a perpendicular point between the third receiving device and a target straight line is in a different front-to-back position relationship than a perpendicular point between the first receiving device and the target straight line, wherein the target straight line is a straight line parallel to a plane perpendicular to a central axis of the head-mounted device; the processing unit is further configured to: obtain a third moment, wherein the third moment is obtained based on a time at which the third receiving device receives the first target signal; In terms of the processing unit determining that a data transmission condition is satisfied based on the first moment and the second moment, and transmitting a target data stream to the head mounted device, the processing unit is specifically configured to: Based on the first moment and the second moment, it is determined that the data transmission condition is met, and the first moment and the third moment meet a preset size relationship, and the target data stream is transmitted to the head-mounted device.
19. The device according to claim 18, characterized in that The head-mounted device is a headset, and the head-mounted device includes a left sound unit and a right sound unit; The distance between the first receiving device and the left sound unit is shorter than the distance between the first receiving device and the right sound unit; The distance between the second receiving device and the right sound unit is shorter than the distance between the second receiving device and the left sound unit; or, The head-mounted device is a pair of glasses, and the head-mounted device includes a left temple and a right temple; The distance between the first receiving device and the left temple is smaller than the distance between the first receiving device and the right temple; The distance between the second receiving device and the right temple is smaller than the distance between the second receiving device and the left temple.
20. The apparatus according to claim 18, wherein The first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device; In terms of the processing unit determining that a data transmission condition is satisfied based on the first moment and the second moment, the processing unit is specifically configured to: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than a preset value.
21. The device according to claim 20, characterized in that The sending unit is further configured to send a second target signal; The processing unit is further configured to obtain a fourth moment, the fourth moment being obtained based on the time when the first receiving device receives the second target signal; and obtain a fifth moment, the fifth moment being obtained based on the time when the second receiving device receives the second target signal; In terms of the processing unit determining that a data transmission condition is satisfied based on the first moment and the second moment, the processing unit is specifically configured to: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than the preset value, and the absolute value of the difference between the fourth moment and the fifth moment is smaller than the preset value.
22. The device according to any one of claims 18 to 21, characterized in that Before the sending unit sends the first target signal, the processing unit is further configured to detect a first preset event; The first preset event includes at least one of the following: Video playback event, used to indicate video playback; Audio playback event, used to indicate audio playback; Incoming call event; Outgoing call event; or The receiving unit is controlled to receive target request information sent by the head mounted device.
23. The device according to any one of claims 18 to 21, characterized in that In terms of the processing unit determining that a data transmission condition is satisfied based on the first moment and the second moment, the processing unit is specifically configured to: Based on the first moment and the second moment, it is determined that a data transmission condition is met, and a switching instruction from the user is obtained.
24. The device according to any one of claims 18 to 21, characterized in that After the processing unit transmits the target data stream to the head mounted device, the processing unit is further configured to: Instructing to display a switching list on the user equipment, the switching list being used to display a device identification of at least one candidate user equipment; Obtaining an operation instruction for a device identifier of a first candidate user equipment among the at least one candidate user equipment; In response to the operation instruction, the sending unit is instructed to send indication information to the first candidate user equipment, where the indication information is used to instruct the first candidate user equipment to transmit a target data stream to the head mounted device.
25. A head-mounted device, characterized in that: The head-mounted device includes a first receiving device and a second receiving device, wherein the first receiving device and the second receiving device are located at different positions of the head-mounted device, and the head-mounted device includes: one or more processing units, a sending unit, and a receiving unit; The one or more processing units are configured to detect a first target signal sent by a user equipment; obtain a first moment, where the first moment is obtained according to the time when the first receiving device receives the first target signal; and obtain a second moment, where the second moment is obtained according to the time when the second receiving device receives the first target signal; When the one or more processing units determine that a data transmission condition is met based on the first time and the second time, controlling the sending unit to send first indication information to the user equipment; The receiving unit is configured to receive a target data stream transmitted by the user equipment in response to the first indication message; The head-mounted device further includes a third receiving device, wherein a perpendicular point between the third receiving device and a target straight line is in a different front-to-back position relationship than a perpendicular point between the first receiving device and the target straight line, wherein the target straight line is a straight line parallel to a plane perpendicular to a central axis of the head-mounted device; the one or more processing units are further configured to: obtain a third moment, wherein the third moment is obtained based on a time at which the third receiving device receives the first target signal; In terms of the one or more processing units determining that a data transmission condition is satisfied based on the first time and the second time, and controlling the sending unit to send the first indication information to the user equipment, the one or more processing units are specifically configured to: Based on the first moment and the second moment, it is determined that the data transmission condition is met, and the first moment and the third moment meet a preset size relationship, the sending unit is controlled to send first indication information to the user equipment.
26. The device according to claim 25, characterized in that The head-mounted device is a headset, and the head-mounted device includes a left sound unit and a right sound unit; The distance between the first receiving device and the left sound unit is shorter than the distance between the first receiving device and the right sound unit; The distance between the second receiving device and the right sound unit is shorter than the distance between the second receiving device and the left sound unit; or, The head-mounted device is a pair of glasses, and the head-mounted device includes a left temple and a right temple; The distance between the first receiving device and the left temple is smaller than the distance between the first receiving device and the right temple; The distance between the second receiving device and the right temple is smaller than the distance between the second receiving device and the left temple.
27. The device according to claim 25 or 26, characterized in that The first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device; In terms of determining, by the one or more processing units, that a data transmission condition is satisfied based on the first moment and the second moment, the one or more processing units are specifically configured to: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than a preset value.
28. The apparatus according to claim 25 or 26, characterized in that The first receiving device and the second receiving device are symmetrically arranged on the left and right sides of the head-mounted device; The one or more processing units are further configured to: detect a second target signal sent by the user equipment; obtain a fourth moment, where the fourth moment is obtained based on the time when the first receiving device receives the second target signal; and obtain a fifth moment, where the fifth moment is obtained based on the time when the second receiving device receives the second target signal. In terms of determining, by the one or more processing units, that a data transmission condition is satisfied based on the first moment and the second moment, the one or more processing units are specifically configured to: It is determined that the absolute value of the difference between the first moment and the second moment is smaller than a preset value, and that the absolute value of the difference between the fourth moment and the fifth moment is smaller than a preset value.
29. The device according to claim 28, characterized in that Before the one or more processing units detect the first target signal sent by the user equipment, the one or more processing units are further used to detect a second preset event; and send a target request message of the first target signal to the user equipment in response to the second preset event.
30. The device according to claim 29, characterized in that The second preset event includes: Control operations on buttons on the head-mounted device.
31. A head-mounted device, characterized in that: The head-mounted device includes a first receiving device and a second receiving device, wherein the first receiving device and the second receiving device are located at different positions of the head-mounted device, and the head-mounted device includes: one or more processing units, a sending unit, and a receiving unit; The one or more processing units are configured to detect a first target signal sent by a user equipment; in response to detecting the first target signal, control the sending unit to send a first time to the user equipment, where the first time is obtained according to the time when the first receiving device receives the first target signal; and in response to detecting the first target signal, control the sending unit to send a second time to the user equipment, where the second time is obtained according to the time when the second receiving device receives the first target signal; The receiving unit is configured to receive a target data stream transmitted by the user equipment, where the target data stream is transmitted by the user equipment to the head mounted device when the first moment and the second moment meet the data transmission condition; The head-mounted device further includes a third receiving device, wherein a perpendicular point between the third receiving device and a target straight line is in a different front-to-back position relationship than a perpendicular point between the first receiving device and the target straight line, wherein the target straight line is a straight line parallel to a plane perpendicular to a central axis of the head-mounted device; The sending unit is further configured to, in response to detecting the first target signal, send a third time to the user equipment, where the third time is obtained according to the time when the first target signal is received by the third receiving device; The target data stream is transmitted by the user device to the head-mounted device when the first moment and the second moment meet the data transmission conditions, including: the target data stream is transmitted by the user device to the head-mounted device when the first moment and the second moment meet the data transmission conditions, and the first moment and the third moment meet a preset size relationship.
32. The device according to claim 31, characterized in that The head-mounted device is a headset, and the head-mounted device includes a left sound unit and a right sound unit; The distance between the first receiving device and the left sound unit is shorter than the distance between the first receiving device and the right sound unit; The distance between the second receiving device and the right sound unit is shorter than the distance between the second receiving device and the left sound unit; or, The head-mounted device is a pair of glasses, and the head-mounted device includes a left temple and a right temple; The distance between the first receiving device and the left temple is smaller than the distance between the first receiving device and the right temple; The distance between the second receiving device and the right temple is smaller than the distance between the second receiving device and the left temple.
33. The device according to claim 31 or 32, characterized in that Before the one or more processing units detect the first target signal sent by the user equipment, the one or more processing units are also used to detect a second preset event; in response to the second preset event, control the sending unit to send a target request message of the first target signal to the user equipment.
34. The device according to claim 33, characterized in that The second preset event includes: Control operations on buttons on the head-mounted device.
Citation Information
Patent Citations
Pairing of Media Streaming Devices
US20170048613A1