Wearing detection method, device, equipment, storage medium and computer program product
By detecting and converting the electrical signals on the conductive sheet and combining them with the detection results from the proximity sensor, the problem of inaccurate wear detection in existing technologies has been solved, achieving higher detection accuracy.
Patent Information
- Application Number
- CN202210158026.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-02-21
AI Technical Summary
When using close-range sensors to detect the wearing of electronic devices in existing technologies, there are problems with inaccurate detection results. In particular, when the wearer's hair or eyeglass frames are black, it is difficult to accurately determine the wearing status, or when the HMD is blocked by other objects, it is easy to make a misjudgment.
The electrical signals on the conductive plates installed on the electronic device are detected and converted into target values. The difference in electrical signals on the conductive plates is used to determine whether the device is being worn. The results are combined with the detection results of the proximity sensor for a comprehensive judgment.
It improves the accuracy of wear detection, reduces false positives caused by the wearer's inability to reflect infrared light or other objects blocking the light, and enhances the reliability of detection.
Smart Images

Figure CN116660999B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of terminals, and in particular to a wearing detection method and device, a terminal, a storage medium, and a computer program product. BACKGROUND
[0002] Currently, a proximity sensor is often used in the prior art to detect whether an electronic device is worn. In the detection process, the proximity sensor can continuously emit infrared light outward. When an obstacle blocks the infrared light emitted by the proximity sensor, part or all of the infrared light is reflected to the proximity sensor. Then, the proximity sensor can determine whether the electronic device is worn according to the infrared light reflected by the obstacle. For example, in the process of detecting whether a head-mounted display (HMD) is worn by using the proximity sensor, the proximity sensor can determine the distance between the wearer and the HMD by the emission value and the reception value of the infrared light. If the determination result is that the wearer is close to the HMD, it is determined that the HMD is worn. If the determination result is that the wearer is far away from the HMD, it is determined that the HMD is not worn.
[0003] However, the above detection scheme has the problem of inaccurate detection result. For example, because black hair and black glasses frames basically do not reflect infrared light, when the wearer has black hair or wears black glasses frames, it is difficult to determine whether the wearer is close to the HMD, and thus it is difficult to determine whether the HMD is worn. Or when the HMD is blocked by other objects, the infrared light emitted by the proximity sensor is also reflected, and thus the HMD is easily misjudged as being worn. SUMMARY
[0004] The present application provides a wearing detection method, device, terminal, storage medium, and computer program product to more accurately detect whether an electronic device is worn.
[0005] In a first aspect, a wearing detection method is provided, comprising: detecting an electric signal on each of N conductive sheets; converting the electric signal on each of the conductive sheets into a target value; and determining whether an electronic device is worn according to the target value corresponding to each of the conductive sheets.
[0006] In a second aspect, a wearing detection device is provided, comprising: a detection module, a conversion module, and a determination module. The detection module is configured to detect an electric signal on each of N conductive sheets. The conversion module is configured to convert the electric signal on each of the conductive sheets into a target value. The determination module is configured to determine whether an electronic device is worn according to the target value corresponding to each of the conductive sheets.
[0007] In a third aspect, an electronic device is provided, comprising a processor and a memory for storing a computer program, the processor being configured to invoke and run the computer program stored in the memory to perform the method according to the first aspect or any implementation thereof.
[0008] In a fourth aspect, a computer readable storage medium is provided, configured to store a computer program, the computer program causing a computer to perform the method according to the first aspect or any implementation thereof.
[0009] In a fifth aspect, a computer program product is provided, comprising computer program instructions, the computer program instructions causing a computer to perform the method according to the first aspect or any implementation thereof.
[0010] In a sixth aspect, a computer program is provided, the computer program causing a computer to perform the method according to the first aspect or any implementation thereof.
[0011] According to the technical solution of the present application, the electronic device can first detect the electrical signal on each of the N conductive sheets installed, where N is an integer greater than or equal to 1, then convert the electrical signal on each conductive sheet into a target value, and finally determine whether the electronic device is worn according to the target value corresponding to each conductive sheet. Because the electrical signals on the conductive sheets detected when the electronic device is in a worn state and in an unworn state such as being blocked by other objects are quite different, the target values converted from the electrical signals on the conductive sheets are also quite different, and there is no misjudgment caused by the wearer not reflecting the infrared light emitted by the proximity sensor or other objects blocking the electronic device reflecting the infrared light emitted by the proximity sensor in the prior art. Therefore, the technical solution of the present application can accurately detect whether the electronic device is worn. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0013] Figure 1 An application scenario diagram is provided for the embodiments of the present application.
[0014] Figure 2 A flowchart of a wearing detection method is provided for the embodiments of the present application.
[0015] Figure 3 A connection mode schematic diagram of a conductive sheet and a capacitive sensor is provided for the embodiments of the present application.
[0016] Figure 4 Another connection mode schematic diagram of the conductive sheet and the capacitive sensor provided by the embodiment of the present application is provided.
[0017] Figure 5 A schematic diagram of a wearing detection device provided by the embodiment of the present application is provided.
[0018] Figure 6 A schematic block diagram of the electronic device 600 provided by the embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0020] It should be noted that the terms "first", "second", and the like in the specification of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server including a series of steps or units need not be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0021] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration, and any embodiment or aspect described in the embodiments of the present application as "exemplary" or "for example" should not be construed as being more preferred or advantageous than other embodiments or aspects. Rather, the use of "exemplary" or "for example" is intended to present concepts in a particular manner. In the embodiments of the present application, the words "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server including a series of steps or units need not be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0022] As described above, the prior art often uses a proximity sensor to detect whether an electronic device is worn, for example, the proximity sensor can be used to detect whether an HMD is worn. In the detection process, the proximity sensor can determine the distance between the wearer and the HMD through the emission value and the receiving value of the infrared light, and then determine whether the HMD is worn. However, the above detection scheme has the problem of inaccurate detection results, for example: because black hair and black glasses frames basically do not reflect infrared light, when the wearer's hair is black or the wearer wears black glasses frames, it is difficult to determine whether the wearer is close to the HMD, and thus it is difficult to determine whether the HMD is worn. Or when the HMD is blocked by other objects, it will also reflect the infrared light emitted by the proximity sensor, thus easily misjudging that the HMD is worn.
[0023] To solve the above technical problems, the application concept of the present application is that the electronic device can detect the electrical signal on the installed conductive sheet, and determine whether the electronic device is worn according to the target value converted from the electrical signal.
[0024] It should be understood that the technical solution of the present application can be applied to the following scenarios, but is not limited to:
[0025] Exemplarily, Figure 1 An application scenario graph is provided for the embodiments of the present application, as shown in the figure, Figure 1 The application scenario can include an electronic device 110, which is installed with a conductive sheet, a master control platform, etc.
[0026] It should be understood that, Figure 1 An exemplary conductive sheet is given, in fact, the electronic device 110 can be installed with N conductive sheets, N is an integer greater than or equal to 1, and the present application does not limit this.
[0027] In some implementable ways, the conductive sheet installed on the electronic device 110 can be copper foil or gold, etc. which can be used to induct electrical signals such as capacitance, or can be a flexible printed circuit (FPC), and the present application does not limit this. As for the master control platform installed on the electronic device 110, the present application will be introduced in the following embodiments, and will not be repeated here.
[0028] In some implementable ways, the electronic device 110 can be a Bluetooth headset, or an HMD, and the present application does not limit this.
[0029] It should be understood that, Figure 1 The number of electronic devices in the figure is only exemplary, in fact, according to the actual situation, any number of electronic devices can be set, and the present application does not limit this.
[0030] After introducing the application scenarios of the embodiments of this application, the technical solution of this application will be described in detail below:
[0031] Figure 2 This is a flowchart illustrating a wear detection method provided in an embodiment of this application. This method can be performed by, for example... Figure 1 The electronic device 110 shown performs, but is not limited to, such as Figure 2 As shown, the method may include the following steps:
[0032] S201: An electronic device detects the electrical signal on each of N conductive plates;
[0033] S202: The electronic device converts the electrical signal on each conductive sheet into a target value;
[0034] S203: The electronic device determines whether it is being worn based on the target value corresponding to each conductive sheet.
[0035] The electronic device is equipped with N conductive plates, where N is an integer greater than or equal to 1.
[0036] It should be understood that conductive pads can be used to sense electrical signals. When the wearer wears the electronic device, the conductive pad on the device senses a larger electrical signal; when the wearer is not wearing the electronic device, the conductive pad senses a smaller electrical signal. The electrical signal can be capacitance.
[0037] In some feasible implementations, an electronic device can detect electrical signals on each of the N conductive sheets by any of the following methods, but is not limited to:
[0038] In one method, the electronic device may include: N connecting lines, N capacitive sensors, and N conductive plates. Each connecting line is connected to a capacitive sensor and a conductive plate at both ends. The electrical signal detected by the electronic device on each of the N conductive plates includes the electrical signal corresponding to the connecting line to which each conductive plate is connected.
[0039] For example, assuming N is an integer equal to 1, meaning the electronic device has a conductive plate installed, the connection between the conductive plate and the capacitive sensor can be as follows: Figure 3 As shown in (a), a conductive plate installed on an electronic device can be connected to a capacitive sensor via a connecting wire. The electrical signal detected by the electronic device on the conductive plate is the electrical signal transmitted on the connecting wire.
[0040] For example, assuming N is an integer greater than 1, such as N equals 2, the electronic device has two conductive plates installed, and the connection between the conductive plates and the capacitive sensor can be as follows: Figure 3As shown in (b), conductive sheet 1 and conductive sheet 2 are installed on the electronic device. Conductive sheet 1 is connected to capacitive sensor 1 through connecting line 1, and conductive sheet 2 is connected to capacitive sensor 2 through connecting line 2. Then, the electrical signal on conductive sheet 1 detected by the electronic device includes: electrical signal 1 transmitted on connecting line 1, and the electrical signal on conductive sheet 2 detected by the electronic device includes: electrical signal 2 transmitted on connecting line 2.
[0041] Method 2: The electronic device may include: N capacitive sensors, N first connecting lines, N second connecting lines, and N conductive plates. Each first connecting line is connected to a capacitive sensor and a conductive plate at both ends, and each second connecting line is connected to a capacitive sensor at one end and left unconnected at the other end. Then, the electrical signal detected by the electronic device on each of the N conductive plates includes: a first electrical signal and a second electrical signal on each conductive plate. The first electrical signal corresponds to the first connecting line connected to each conductive plate, and the second electrical signal corresponds to the second connecting line connected to each capacitive sensor.
[0042] For example, assuming N is an integer equal to 1, meaning the electronic device has a conductive plate installed, the connection between the conductive plate and the capacitive sensor can be as follows: Figure 4 As shown in (a), a first connecting line connects a capacitive sensor and a conductive plate to its two ends, respectively. A second connecting line connects a capacitive sensor to one end and leaves the other end unconnected. The electrical signal detected by the electronic device on the conductive plate includes: a first electrical signal transmitted on the first connecting line and a second electrical signal transmitted on the second connecting line.
[0043] For example, assuming N is an integer greater than 1, such as N equals 2, that is, when the electronic device is equipped with two conductive plates, the connection method between the conductive plates and the capacitive sensor can be as follows: Figure 4 As shown in (b), the two ends of the first connecting line 1 are connected to the capacitive sensor 1 and the conductive sheet 1, respectively. One end of the second connecting line 1 is connected to the capacitive sensor 1, and the other end is not connected. The two ends of the first connecting line 2 are connected to the capacitive sensor 2 and the conductive sheet 2, respectively. One end of the second connecting line 2 is connected to the capacitive sensor 2, and the other end is not connected. Then, the electrical signals on the conductive sheet 1 detected by the electronic device include: the first electrical signal 1 transmitted on the first connecting line 1 and the second electrical signal 1 transmitted on the second connecting line 1. The electrical signals on the conductive sheet 2 detected by the electronic device include: the first electrical signal 2 transmitted on the first connecting line 2 and the second electrical signal 2 transmitted on the second connecting line 2.
[0044] In some feasible implementations, the conductive sheet and the capacitive sensor can be positioned as close as possible within the electronic device, meaning the connecting wire between the conductive sheet and the capacitive sensor can be as short as possible. This reduces interference introduced by the long-distance transmission of electrical signals, i.e., analog signals.
[0045] It should be understood that this application does not limit the method by which the electronic device detects the electrical signal on each of the N conductive sheets, nor does it limit the connection method between the conductive sheets and the capacitive sensor.
[0046] In some implementations, electronic devices can convert electrical signals on a conductive sheet into target values using a capacitive sensor connected to the conductive sheet, wherein the capacitive sensor includes an analog-to-digital converter (ADC).
[0047] It should be understood that an ADC can convert a continuous analog signal into a discrete digital signal through steps such as sampling, quantization, and encoding. For example, an ADC can convert an analog signal such as a capacitor into a digital signal such as a target value such as a target capacitance.
[0048] In some possible implementations, it is assumed that the connection between the conductive sheet mounted on the electronic device and the capacitive sensor is as follows: Figure 3 As shown in (a), the target value corresponding to the conductive sheet includes the target value corresponding to the electrical signal transmitted on the connecting line. Assume the connection method between the conductive sheet installed on the electronic device and the capacitive sensor is as follows: Figure 3 As shown in (b), the target value 1 corresponding to the conductive sheet 1 includes the target value 1 corresponding to the electrical signal 1 transmitted on the connecting line 1, and the target value 2 corresponding to the conductive sheet 2 includes the target value 2 corresponding to the electrical signal 2 transmitted on the connecting line 2.
[0049] In other possible implementations, it is assumed that the connection between the conductive sheet mounted on the electronic device and the capacitive sensor is as follows: Figure 4 As shown in (a), the target values corresponding to the conductive sheet include: the first value corresponding to the first electrical signal and the second value corresponding to the second electrical signal. Assume the connection between the conductive sheet installed on the electronic device and the capacitive sensor is as follows: Figure 4 As shown in (b), the target values corresponding to conductive sheet 1 include: the first value 1 corresponding to the first electrical signal 1 and the second value 1 corresponding to the second electrical signal 1. The target values corresponding to conductive sheet 2 include: the first value 2 corresponding to the first electrical signal 2 and the second value 2 corresponding to the second electrical signal 2.
[0050] In some possible implementations, the electronic device can determine whether it is being worn based on the target value corresponding to each conductive sheet using any of the following methods, but not limited to:
[0051] Method 1: Assume the electronic device includes N connecting wires, N capacitive sensors, and N conductive plates. Each connecting wire is connected to a capacitive sensor and a conductive plate at its two ends. After converting the electrical signal on each conductive plate into a target value using the above method, the electronic device can first determine the preset threshold corresponding to each conductive plate. Then, the electronic device can determine whether the electronic device is being worn by comparing the preset threshold corresponding to each conductive plate with its corresponding target value.
[0052] For example, when the electronic device is not worn, it can detect the electrical signal ai on each conductive plate, i = 1, 2, ..., N, and convert the electrical signal ai on each conductive plate into a target value Ai. Similarly, when the electronic device is worn, it can detect the electrical signal bi on each conductive plate and convert the electrical signal bi on each conductive plate into a target value Bi. Then, the preset threshold corresponding to each conductive plate can be Ci, where Ai < Ci ≤ Bi.
[0053] For example, assuming N is an integer equal to 1, meaning the electronic device has a conductive plate installed, the connection between the conductive plate and the capacitive sensor can be as follows: Figure 3 As shown in (a) above. When the electronic device is not worn, it can detect the electrical signal on the conductive plate and convert it into a target value A1. Similarly, when the electronic device is worn, it can detect the electrical signal on the conductive plate and convert it into a target value B1. The electronic device can determine the preset threshold corresponding to the conductive plate as C1, where A1 < C1 ≤ B1. Suppose that the electronic device detects the electrical signal d1 on the conductive plate and converts it into a target value D1. If D1 < C1, it can be determined that the electronic device is not worn; if D1 ≥ C1, it can be determined that the electronic device is worn.
[0054] For example, assuming N is an integer greater than 1, meaning the electronic device has multiple conductive pads, after determining the preset threshold for each conductive pad, the electronic device can determine the number of conductive pads whose target value is greater than the preset threshold. If this number is greater than the preset number, it can be determined that the electronic device is being worn; if the number is less than or equal to the preset number, it can be determined that the electronic device is not being worn. For example, when N equals 2, meaning the electronic device has two conductive pads, the connection method between the conductive pads and the capacitive sensor can be as follows: Figure 3As shown in (b) in FIG. 1, for the conductive sheet 1, when the electronic device is not worn, the electronic device can detect the electrical signal a1 on the conductive sheet 1 and convert the electrical signal a1 into a target value A1, and when the electronic device is worn, the electronic device can detect the electrical signal b1 on the conductive sheet 1 and convert the electrical signal b1 into a target value B1, and the electronic device can determine that the preset threshold 1 corresponding to the conductive sheet 1 is C1, where A1 < C1 < B1. Similarly, for the conductive sheet 2, when the electronic device is not worn, the electronic device can detect the electrical signal a2 on the conductive sheet 2 and convert the electrical signal a2 into a target value A2, and when the electronic device is worn, the electronic device can detect the electrical signal b2 on the conductive sheet 2 and convert the electrical signal b2 into a target value B2, and the electronic device can determine that the preset threshold 2 corresponding to the conductive sheet 2 is C2, where A2 < C2 < B2. Assuming that at this time the electronic device detects the electrical signals c1 and c2 on the conductive sheet 1 and the conductive sheet 2 respectively, and then the electronic device can convert the electrical signals d1 and d2 into target values D1 and D2 respectively, where D1 > C1 and D2 > C2, the electronic device can determine that the preset number is 1, obviously, the number of the conductive sheets corresponding to the target values greater than the preset threshold is 2, and greater than the preset number 1, and it can be determined that the electronic device is worn.
[0055] In the second mode, it is assumed that the electronic device includes N capacitive sensors, N first connecting lines, N second connecting lines, and N conductive sheets, where the two ends of each first connecting line are connected to one capacitive sensor and one conductive sheet respectively, one end of each second connecting line is connected to one capacitive sensor, and the other end is not connected. After the electronic device converts the electrical signals on each conductive sheet into target values, i.e., first values and second values, by the above method, the electronic device can determine the difference between the first value and the second value corresponding to each conductive sheet, and then the electronic device can determine whether the electronic device is worn according to the difference corresponding to each conductive sheet.
[0056] It should be understood that the electrical signal transmitted on the first connecting line connecting the conductive sheet and the capacitive sensor is mainly in the form of an analog signal, and the analog signal form of the electrical signal is more susceptible to interference during transmission, or when the wearer is close to the first connecting line, the first connecting line will also sense a part of the electrical signal, thereby interfering with the electronic device wearing detection. Therefore, a second connecting line equal in length and consistent in transmission direction with the first connecting line can be added, where one end of the second connecting line is connected to a capacitive sensor and the other end is not connected. Similar interference will exist on the second connecting line as on the first connecting line. Therefore, the interference from the outside can be offset by the difference between the first value corresponding to the first connecting line and the second value corresponding to the second connecting line, thereby further improving the accuracy of the wearing detection.
[0057] For example, before the electronic device determines the difference between the first and second values corresponding to each conductive sheet using the above method, the electronic device can first determine a preset threshold. For instance, when the electronic device is not worn, it can first detect the first electrical signal ai and the second electrical signal bi on each conductive sheet, i = 1, 2, ..., N, and convert the first electrical signal ai and the second electrical signal bi into the first value Ai and the second value Bi, respectively. Similarly, when the electronic device is worn, it can detect the first electrical signal ci and the second electrical signal di on each conductive sheet, i = 1, 2, ..., N, and convert the first electrical signal ci and the second electrical signal di into the first value Ci and the second value Di, respectively. Then, the preset threshold corresponding to each conductive sheet can be Ei, where Ai - Bi < Ei ≤ Ci - Di.
[0058] For example, assuming N is an integer equal to 1, after the electronic device determines the difference between the first and second values corresponding to this conductive pad, the electronic device can compare this difference with a predetermined preset threshold. If the difference is greater than the preset threshold, it is determined that the electronic device is being worn; if the difference is less than or equal to the preset threshold, it is determined that the electronic device is not being worn. For example, when a conductive pad is installed in the electronic device, the connection between the conductive pad and the capacitive sensor can be as follows: Figure 4 As shown in (a) above. When the electronic device is not worn, it can first detect the first electrical signal a1 and the second electrical signal b1 on the conductive sheet, and convert the first electrical signal a1 and the second electrical signal b1 into the first value A1 and the second value B1, respectively. Then, the electronic device can determine that the difference between the first value A1 and the second value B1 corresponding to the conductive sheet is A1-B1. Similarly, when the electronic device is worn, it can determine that the difference between the first value C1 and the second value D1 corresponding to the conductive sheet is C1-D1. Then, the preset threshold corresponding to the conductive sheet can be E1, where A1-B1 < E1 ≤ C1-D1. Suppose that the electronic device detects the first electrical signal f1 and the second electrical signal g1 on the conductive sheet at this time, and converts the first electrical signal f1 and the second electrical signal g1 into the first value F1 and the second value G1, respectively. If F1-G1 < E1, it can be determined that the electronic device is not worn.
[0059] For example, assuming that N is an integer greater than 1, i.e., the electronic device is provided with a plurality of conductive sheets, after the electronic device determines the preset threshold corresponding to each conductive sheet, the electronic device can determine the number of first conductive sheets in the plurality of conductive sheets, wherein the first conductive sheet is a conductive sheet corresponding to a difference greater than the preset threshold, and if the number of first conductive sheets is greater than a preset number, it is determined that the electronic device is worn, and if the number of first conductive sheets is less than or equal to the preset number, it is determined that the electronic device is not worn. For example, when N is equal to 2, i.e., the electronic device is provided with two conductive sheets, the connection mode between the conductive sheet and the capacitive sensor can be as shown in (b) of FIG. 1. Figure 4 Similar to the method used when N is equal to 1, assuming that the electronic device determines that the preset threshold corresponding to the first conductive sheet 1 is E1, the preset threshold corresponding to the second conductive sheet 2 is E2, the preset number is 2, the electronic device determines that the difference between the first value F1 and the second value G1 corresponding to the first conductive sheet 1 is F1-G1, and the difference between the first value F2 and the second value G2 corresponding to the second conductive sheet 2 is F2-G2, if F1-G1
[0060] It should be understood that the present application does not limit the method of determining the preset threshold in the above-mentioned mode 1 and mode 2, and does not limit the method used by the electronic device to determine whether the electronic device is worn according to the target value corresponding to each conductive sheet.
[0061] In other implementations, the electronic device can determine whether the electronic device is worn according to the target value corresponding to each conductive sheet and the proximity sensor. If the electronic device determines that the electronic device is worn according to the target value corresponding to each conductive sheet and the proximity sensor, it is determined that the electronic device is worn, and if the electronic device determines that the electronic device is not worn according to the target value corresponding to each conductive sheet or the proximity sensor, it is determined that the electronic device is not worn.
[0062] For example, assuming that the electronic device determines that the electronic device is worn based on the above-mentioned mode 1, and determines that the electronic device is not worn according to the proximity sensor, it is determined that the electronic device is not worn.
[0063] It should be understood that, when the electronic device determines whether the electronic device is worn according to the proximity sensor, the proximity sensor can continuously emit infrared light outward, when there is an obstacle shielding the infrared light emitted by the proximity sensor, part or all of the infrared light is reflected to the proximity sensor, and then the proximity sensor can detect whether the electronic device is worn according to the infrared light reflected by the obstacle, for example, if the proximity sensor receives the energy of the ground reflected infrared light greater than a preset value, it can be determined that the electronic device is worn; if the proximity sensor receives the energy of the ground reflected infrared light less than or equal to the preset value, it can be determined that the electronic device is not worn.
[0064] It should be understood that the application does not limit the order of the two judgment methods of determining whether the electronic device is worn according to the target value corresponding to each conductive sheet and determining whether the electronic device is worn according to the proximity sensor, for example, the electronic device can first determine whether the electronic device is worn according to the target value corresponding to each conductive sheet, then determine whether the electronic device is worn according to the proximity sensor, and finally determine whether the electronic device is worn by combining the judgment results of the two.
[0065] In some implementations, the electronic device can include a master control platform, and the electronic device can use the master control platform to determine whether the electronic device is worn according to the above method, wherein the master control platform can be a central processing unit (CPU) or a micro control unit (MPU), and the application does not limit this.
[0066] For example, assuming that the electronic device converts the electrical signal on each conductive sheet into a target value through the capacitance sensor, the capacitance sensor can transmit the target value to the master control platform through an interface such as an inter-integrated circuit (I2C), and then the master control platform can determine whether the electronic device is worn according to the above method.
[0067] It should be understood that I2C is a kind of serial communication bus, which is widely used for communication between MPU, sensor array, display and the like. I2C only needs two buses to transmit information between devices connected to the bus, and the devices on the bus can be divided into master devices and slave devices. If the master device wants to receive the data of the slave device, the master device can address the slave device first, then the master device can receive the data sent by the slave device, and finally the master device can terminate the receiving process. For example, the master device can be a master platform, and the slave device can be a capacitive sensor. When the master platform needs to receive the target value in the capacitive sensor, the master device can address the capacitive sensor first, then the master platform can receive the target value sent by the capacitive sensor, and when the master platform finishes receiving, the master platform can terminate the receiving process.
[0068] In some implementations, the area of the conductive sheet installed on the electronic device should be as large as possible. If the area of the conductive sheet is too small, the electrical signal that can be sensed will be less, and when the conductive sheet is touched by a finger or other metal, the electronic device is easily mistaken as being worn. For example, N conductive sheets installed can be selected to satisfy: the sum of the areas of the N conductive sheets is greater than a first preset area, or the area of each of the N conductive sheets is greater than a second preset area.
[0069] In some implementations, if the electronic device is an HMD, the HMD includes a face-wearing mask part and a strap part, and the N conductive sheets installed on the HMD can be arranged on the strap part. Because the strap part has the largest contact area with the wearer when the HMD is worn, the electrical signal that the conductive sheet can sense will be larger, thereby improving the detection accuracy.
[0070] In some implementations, if it is judged that the electronic device is worn, the electronic device can be turned on to facilitate the wearer to use; if it is judged that the electronic device is not worn, the electronic device can be turned off to reduce energy consumption. For example, if it is judged that the HMD is worn, the system of the HMD can be woken up and the screen can be turned on; if it is judged that the HMD is not worn, the HMD can enter a sleep state and the screen can be turned off.
[0071] In summary, the technical solution provided by the above embodiments brings at least the following beneficial effects: On the one hand, the electronic device can first detect the electrical signal on each of the N conductive sheets installed, where N is an integer greater than or equal to 1. Then, the electrical signal on each conductive sheet can be converted into a target value. Finally, based on the target value corresponding to each conductive sheet, it can be determined whether the electronic device is being worn. Because the detected electrical signals on the conductive sheets are significantly different when the electronic device is in a worn state and in a non-worn state such as being blocked by other objects, the target values converted from the electrical signals on the conductive sheets are also significantly different. This avoids the misjudgment caused by the wearer's inability to reflect the infrared light emitted by the proximity sensor or other objects blocking the electronic device reflecting the infrared light emitted by the proximity sensor, as is the case in the prior art. Therefore, the technical solution of this application can more accurately detect whether the electronic device is being worn.
[0072] On the other hand, electronic devices can determine whether they are being worn based on the difference between the first and second values corresponding to each conductive element. Since the first connecting line between the conductive elements and the capacitive sensor primarily transmits analog electrical signals, which are easily interfered with during transmission, or when the wearer approaches the first connecting line, the line may also sense some electrical signals, thus interfering with the wear detection. Therefore, a second connecting line of the same length and direction of transmission as the first connecting line can be added. One end of the second connecting line is connected to the capacitive sensor, while the other end remains unconnected. Similar interference exists on the second connecting line as on the first connecting line. This interference can be counteracted by subtracting the first value corresponding to the first connecting line from the second value corresponding to the second connecting line, thereby further improving the accuracy of wear detection.
[0073] On the other hand, the electronic device can determine whether it is being worn based on the target value corresponding to each conductive sheet and the proximity sensor. Only when both methods confirm that the electronic device is being worn can it be determined that the electronic device is being worn, thereby further improving the accuracy of wear detection.
[0074] On the other hand, electronic devices can have larger conductive pads installed, resulting in a stronger electrical signal detected by the pads when the device is worn. This reduces the likelihood of misidentification as the device is being worn when a finger or other metal object touches it, further improving the accuracy of wear detection. Furthermore, when the electronic device is an HMD (Hardware-Mounted Device), the conductive pad can be installed on the strap. Since the strap has the largest contact area with the wearer when the HMD is worn, the conductive pad can detect a stronger electrical signal, further enhancing detection accuracy.
[0075] Figure 5 This is a schematic diagram of a wear detection device provided in an embodiment of this application. The wear detection device can be as follows: Figure 1 The electronic device 110 shown includes a wear detection device comprising:
[0076] Detection module 501 is used to detect the electrical signal on each of the N conductive sheets;
[0077] The conversion module 502 is used to convert the electrical signal on each conductive sheet into a target value;
[0078] The judgment module 503 is used to determine whether the electronic device is being worn based on the target value corresponding to each conductive sheet.
[0079] The wear detection device is equipped with N conductive plates, where N is an integer greater than or equal to 1.
[0080] In some implementations, the wear detection device further includes: N capacitive sensors, N first connecting wires, and N second connecting wires. Each first connecting wire is connected to a capacitive sensor and a conductive plate at both ends, and each second connecting wire is connected to a capacitive sensor at one end and left unconnected at the other end. Correspondingly, the electrical signal on each conductive plate includes: a first electrical signal and a second electrical signal, wherein the first electrical signal corresponds to the first connecting wire to which each conductive plate is connected, and the second electrical signal corresponds to the second connecting wire to which each capacitive sensor is connected. The target value corresponding to each conductive plate includes: a first value corresponding to the first electrical signal and a second value corresponding to the second electrical signal.
[0081] In some implementations, the determination module 503 is specifically used to: determine the difference between the first value and the second value corresponding to each conductive sheet; and determine whether the electronic device is being worn based on the difference corresponding to each conductive sheet.
[0082] In some possible implementations, if N conductive sheets are multiple conductive sheets, then the determination module 503 is specifically used to: determine the number of first conductive sheets among the multiple conductive sheets, wherein the first conductive sheet is the conductive sheet whose difference is greater than a preset threshold; if the number of first conductive sheets is greater than a preset number, then determine that the electronic device is being worn; if the number of first conductive sheets is less than or equal to the preset number, then determine that the electronic device is not being worn.
[0083] In some possible implementations, if N conductive sheets constitute a second conductive sheet, then the determination module 503 is specifically used to: determine if the difference corresponding to the second conductive sheet is greater than a preset threshold, then determine if the electronic device is being worn; and determine if the difference corresponding to the second conductive sheet is less than or equal to the preset threshold, then determine if the electronic device is not being worn.
[0084] In some implementations, the determination module 503 is specifically used to determine whether the electronic device is being worn based on the target value corresponding to each conductive sheet and the proximity sensor.
[0085] In some implementations, the determination module 503 is specifically used to: determine that the electronic device is being worn if it is determined that the electronic device is being worn based on the target value corresponding to each conductive sheet and the proximity sensor; and determine that the electronic device is not being worn based on the target value corresponding to each conductive sheet or the proximity sensor.
[0086] In some feasible implementations, the target value is the target capacitance.
[0087] In some possible implementations, the sum of the areas of the N conductive sheets is greater than a first preset area, or each of the N conductive sheets is greater than a second preset area.
[0088] In some implementations, the detection device is a head-mounted display (HMD), which includes a face mask and a strap; N conductive pads are disposed on the back of the head.
[0089] It should be understood that this device embodiment and the method embodiment on the electronic device side can correspond to each other, and similar descriptions can be referred to the method embodiment corresponding to the electronic device. To avoid repetition, further details are omitted here.
[0090] Specifically, Figure 5 The wear detection device shown can perform the method embodiment described above on the electronic device side, and Figure 5 The aforementioned and other operations and / or functions of each module in the wear detection device shown are respectively for implementing the corresponding processes of the above-described electronic device side method embodiments, and will not be described in detail here for the sake of brevity.
[0091] The above-described embodiments of the electronic device method of this application, in conjunction with the accompanying drawings, are described from the perspective of functional modules. It should be understood that these functional modules can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application can be directly manifested as execution by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above-described method embodiments.
[0092] Figure 6 This is a schematic block diagram of an electronic device 600 provided in an embodiment of this application. The electronic device 600 may be the electronic device described in this application.
[0093] like Figure 6 As shown, the electronic device 600 may include:
[0094] The system includes a memory 610 and a processor 620. The memory 610 stores computer programs and transfers the program code to the processor 620. In other words, the processor 620 can retrieve and run the computer program from the memory 610 to implement the methods described in the embodiments of this application.
[0095] For example, the processor 620 can be used to execute the above-described method embodiments according to instructions in the computer program.
[0096] In some embodiments of this application, the processor 620 may include, but is not limited to:
[0097] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0098] In some embodiments of this application, the memory 610 includes, but is not limited to:
[0099] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0100] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 610 and executed by the processor 620 to perform the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.
[0101] like Figure 6 As shown, the electronic device may also include:
[0102] Transceiver 630, which can be connected to processor 620 or memory 610.
[0103] The processor 620 can control the transceiver 630 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 630 may include a transmitter and a receiver. The transceiver 630 may further include antennas, and the number of antennas may be one or more.
[0104] It should be understood that the various components in the electronic device are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.
[0105] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods described in the above method embodiments.
[0106] This application also provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform the method described in the above method embodiments.
[0107] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0108] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for detecting wearability, characterized in that, The method is applied to an electronic device, which is equipped with N conductive plates, where N is an integer greater than or equal to 1. The electronic device includes N capacitive sensors, N first connecting lines and N second connecting lines. Each first connecting line is connected to a capacitive sensor and a conductive plate at both ends, and each second connecting line is connected to a capacitive sensor at one end and left unconnected at the other end. The method includes: The electrical signal on each of the N conductive sheets is detected. The electrical signal on each conductive sheet includes a first electrical signal and a second electrical signal on each conductive sheet. The first electrical signal corresponds to the first connection line connected to each conductive sheet, and the second electrical signal corresponds to the second connection line connected to each of the capacitance sensors. The electrical signal on each conductive sheet is converted into a target value, and the target value corresponding to each conductive sheet includes: a first value corresponding to the first electrical signal and a second value corresponding to the second electrical signal; Determine the difference between the first and second values corresponding to each conductive sheet; Based on the difference between each conductive sheet, it is determined whether the electronic device is being worn.
2. The method according to claim 1, characterized in that, If the N conductive sheets are multiple conductive sheets, then determining whether the electronic device is being worn based on the difference between each conductive sheet includes: Determine the number of first conductive sheets among the plurality of conductive sheets, wherein the first conductive sheet is the conductive sheet whose difference is greater than a preset threshold. If the number of the first conductive sheets is greater than the preset number, then it is determined that the electronic device is being worn; If the number of the first conductive sheets is less than or equal to the preset number, it is determined that the electronic device is not being worn.
3. The method according to claim 1, characterized in that, If the N conductive sheets constitute a second conductive sheet, then determining whether the electronic device is being worn based on the difference between each conductive sheet includes: If the difference corresponding to the second conductive sheet is greater than a preset threshold, it is determined that the electronic device is being worn; If the difference corresponding to the second conductive sheet is less than or equal to the preset threshold, it is determined that the electronic device is not being worn.
4. The method according to any one of claims 1-3, characterized in that, The step of determining whether the electronic device is being worn based on the target value corresponding to each conductive sheet includes: The electronic device is determined to be worn based on the target value corresponding to each conductive sheet and the proximity sensor.
5. The method according to claim 4, characterized in that, The step of determining whether the electronic device is being worn based on the target value corresponding to each conductive sheet and the proximity sensor includes: If it is determined that the electronic device is being worn based on the target value corresponding to each conductive sheet and the proximity sensor, then it is determined that the electronic device is being worn. If it is determined from the target value corresponding to each conductive sheet or the proximity sensor that the electronic device is not being worn, then it is determined that the electronic device is not being worn.
6. The method according to any one of claims 1-3, characterized in that, The target value is the target electrical capacity.
7. The method according to any one of claims 1-3, characterized in that, The sum of the areas of the N conductive sheets is greater than a first preset area, or each of the N conductive sheets is greater than a second preset area.
8. The method according to any one of claims 1-3, characterized in that, The electronic device is a head-mounted display (HMD), which includes a face mask and a strap. The N conductive sheets are disposed on the strap portion.
9. A wear detection device, characterized in that, include: The detection module is used to detect the electrical signal on each of the N conductive sheets, where N is an integer greater than or equal to 1. The electrical signal on each conductive sheet includes a first electrical signal and a second electrical signal. The first electrical signal corresponds to the first connection line connected to each conductive sheet, and the second electrical signal corresponds to the second connection line connected to each of the N capacitive sensors. A conversion module is used to convert the electrical signal on each conductive sheet into a target value, wherein the target value corresponding to each conductive sheet includes: a first value corresponding to the first electrical signal and a second value corresponding to the second electrical signal; The judgment module is used to determine the difference between the first value and the second value corresponding to each conductive sheet; and to determine whether the electronic device is being worn based on the difference corresponding to each conductive sheet. In this configuration, each of the N first connecting lines is connected at both ends to one of the N capacitive sensors and one of the N conductive sheets, respectively. Each of the N second connecting lines is connected at one end to one of the N capacitive sensors, and the other end is not connected.
10. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the wear detection method according to any one of claims 1-8 by executing the executable instructions.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the wearing detection method according to any one of claims 1-8.
12. A computer program product containing instructions, characterized in that, When the computer program product is run on an electronic device, the electronic device performs the wear detection method according to any one of claims 1-8.
Citation Information
Patent Citations
Unlocking method and device of wearable equipment, electronic equipment and storage medium
CN113343187A
Bone conduction speaker and bone conduction earphone with wearing detection function
TWM616700U