Detection method, first electronic device and second electronic device
By detecting the triggered first sensor signal in the first electronic device and generating a detection signal, combined with the use of vibration signals and direction sensors, the problem of high error detection rate of terminal equipment contact detection in the prior art is solved, more accurate contact relationship judgment is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411732148.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-04
AI Technical Summary
The prior art methods are not perfect when detecting whether the terminal has equipment contact, and it is prone to mis-checking and affecting the user experience.
By detecting the triggered first sensor signal in the first electronic device, a detection signal is generated, and upon receiving the reply signal, a contact relationship between the target object and the first electronic device is determined. The method includes generating a vibration signal using a vibration unit and sensing a reply signal through a direction sensor to perform a secondary confirmation.
Reduces the occurrence of contact relationship misdetection, reduces the false detection rate, and improves the user experience.
Smart Images

Figure CN119759224A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of detection technology, and in particular to a detection method, a first electronic device, and a second electronic device. Background Art
[0002] During use, a terminal can usually come into contact with different devices (e.g., a stylus, keyboard, etc.), thereby changing the display / usage state of the terminal to meet the needs of the user. Currently, the method for the terminal to detect whether there is a device in contact is not perfect, and it is easy to make false detections, thus affecting the user experience. Summary of the invention
[0003] In view of this, the present disclosure provides a detection method, a first electronic device and a second electronic device.
[0004] According to a first aspect of the present disclosure, a detection method is provided, which is applied to a first electronic device, and the method includes: in response to detecting a first trigger signal that triggers a first sensor, generating a detection signal, and the detection signal can be responded to when it is touched by a target object; when a reply signal is received, determining that the target object and the first electronic device are in a contact relationship, and the reply signal is sent in response to receiving the detection signal.
[0005] According to an embodiment of the present disclosure, generating a detection signal includes: controlling a first vibration unit of a first electronic device to generate multiple first vibration signals to obtain a detection signal; wherein the first vibration signal has a first frequency and a first time interval, and the first time interval represents a time difference between two adjacent first vibration signals.
[0006] According to an embodiment of the present disclosure, when a reply signal is received, determining that the target object and the first electronic device are in contact relationship includes: when a first direction sensor of the first electronic device senses the reply signal, determining that the target object and the first electronic device are in contact relationship.
[0007] A second aspect of the present disclosure provides a detection method, which is applied to a second electronic device, and the method includes: upon receiving a detection signal from a first electronic device, generating a reply signal, and sending the reply signal to the first electronic device; wherein the detection signal is generated by the first electronic device in response to detecting a first trigger signal that triggers a first sensor, the detection signal can be responded to when contacted by a target object, and the reply signal is used by the first electronic device to determine whether the target object and the first electronic device are in a contact relationship.
[0008] According to an embodiment of the present disclosure, generating a reply signal when a detection signal is received includes: generating a reply signal when a second direction sensor of the second electronic device senses the detection signal.
[0009] According to an embodiment of the present disclosure, when a detection signal is received, a reply signal is generated, and the method also includes: in response to receiving the detection signal, a second vibration unit of the second electronic device generates multiple second vibration signals to obtain a reply signal; wherein the second vibration signal has a second frequency and a second time interval, and the second time interval represents the time difference between two adjacent second vibration signals; the detection signal has a first frequency and a first time interval, the first frequency is the same as or different from the second frequency, and the first time interval is the same as or different from the second time interval.
[0010] The third aspect of the present disclosure provides a first electronic device, comprising: a first sensor, for detecting a first trigger signal; a first controller, electrically connected to the first sensor, the first controller being configured to generate a detection signal in response to detecting the first trigger signal that triggers the first sensor, the detection signal being responsive when contacted by a target object; wherein the first controller is configured to determine that the target object and the first electronic device are in a contact relationship when a reply signal is received, the reply signal being sent in response to receiving the detection signal.
[0011] According to an embodiment of the present disclosure, the device further includes: a first vibrator, the first vibrator is electrically connected to a first controller, and the first controller controls the first vibrator to generate a detection signal including a plurality of first vibration signals.
[0012] According to an embodiment of the present disclosure, it includes a first body and a second body, the first body is rotatably connected to the second body, and when the target object is the first body, the first controller is used to determine that the first body and the second body are in contact relationship when a reply signal is received.
[0013] The fourth aspect of the present disclosure also provides a second electronic device, including: a third sensor, the third sensor is used to receive a detection signal from a first electronic device, and a second controller, in response to the detection signal, generates a reply signal that the first electronic device can respond to; wherein the detection signal is generated by the first electronic device in response to detecting a first trigger signal that triggers the first sensor, the detection signal can be responded to when it is contacted by a target object, and the reply signal is used by the first electronic device to determine that the target object and the first electronic device are in a contact relationship.
[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0016] Figure 1A flow chart schematically illustrates a detection method applied to a first electronic device according to an embodiment of the present disclosure;
[0017] Figure 2A One of the application scenario diagrams of the detection method according to an embodiment of the present disclosure is schematically shown;
[0018] Figure 2B The second application scenario diagram of the detection method according to the embodiment of the present disclosure is schematically shown;
[0019] Figure 3 A judgment flow chart of a detection method applied to a first electronic device according to an embodiment of the present disclosure is schematically shown;
[0020] Figure 4 A judgment flow chart of a detection method applied to a second electronic device according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 5 A schematic diagram schematically shows a first electronic device according to an embodiment of the present disclosure;
[0022] Fig. 6A One of the application schematic diagrams of the first electronic device according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 6B A second application schematic diagram of the first electronic device according to an embodiment of the present disclosure is schematically shown;
[0024] Figure 7 A schematic diagram schematically shows a second electronic device according to an embodiment of the present disclosure;
[0025] Figure 8 One of the schematic diagrams of an electronic device according to an embodiment of the present disclosure is schematically shown;
[0026] Fig. 9 A second schematic diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0027] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0028] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0029] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0030] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0031] The embodiments of the present disclosure provide a detection method, a first electronic device, and a second electronic device. Before introducing the technical solution provided by the embodiments of the present disclosure, the related technologies involved in the present disclosure are first described.
[0032] In the related art, a terminal can usually come into contact with different devices (e.g., a stylus, keyboard, etc.) or the same device (folding display screen, etc.) during use, thereby changing the display / usage state of the terminal to meet the needs of the user. Currently, the method for the terminal to detect whether there is any device contact is not perfect, and it is easy to make false detections, thus affecting the user experience.
[0033] Exemplarily, the stylus can be connected to the electronic device by magnetic attraction. After the stylus has been adsorbed to the electronic device, the electronic device can communicate with the stylus or charge the stylus. The usual method of detecting stylus adsorption is that the electronic device can have a built-in magnetic induction sensor (such as a Hall sensor) to detect changes in the magnetic field. When the stylus is adsorbed on the electronic device, the magnetic field will change, and the Hall sensor can sense the change in the intensity of the magnetic field, thereby determining whether the stylus is adsorbed on the device. However, in addition to the stylus being able to change the magnetic field, other magnetic objects approaching the electronic device can also cause changes in the magnetic field, resulting in false detection.
[0034] Before further describing the embodiments of the present disclosure in detail, the nouns and terms involved in the embodiments of the present disclosure are described. The nouns and terms involved in the embodiments of the present disclosure are subject to the following interpretations.
[0035] An orientation sensor (also called an attitude sensor or angle sensor) in an electronic device is a sensor used to detect the orientation, tilt angle, rotation angle, or orientation of a device relative to a reference direction. These sensors can sense changes in the device relative to the earth's gravity or a reference direction. For example, accelerometers, gyroscopes, magnetometers, etc.
[0036] The embodiment of the present disclosure provides a detection method, which is applied to a first electronic device, and the method includes: in response to detecting a first trigger signal that triggers a first sensor, generating a detection signal, and the detection signal can be responded to when it is touched by a target object; in the case of receiving a reply signal, determining that the target object and the first electronic device meet a contact relationship, and the reply signal is sent in response to receiving the detection signal. A secondary detection is set on the basis of the first contact relationship detection performed by the first sensor to reconfirm the contact relationship, thereby reducing the occurrence of false detection of the contact relationship, reducing the false detection rate, and improving the user experience.
[0037] The following will be passed Figure 1~Figure 4 The detection method of the disclosed embodiment is described in detail.
[0038] Figure 1 The flowchart of the detection method applied to the first electronic device according to the embodiment of the present disclosure is schematically shown. Figure 2A One of the application scenario diagrams of the detection method according to an embodiment of the present disclosure is schematically shown. Figure 2B The second application scenario diagram of the detection method according to the embodiment of the present disclosure is schematically shown.
[0039] like Figure 1 As shown, an embodiment of the present disclosure discloses a detection method, which is applied to a first electronic device. The detection method of this embodiment includes operations S210 to S220.
[0040] In operation S210, in response to detecting a first trigger signal that triggers a first sensor, a detection signal is generated, the detection signal being responsive when contacted by a target object.
[0041] Exemplarily, the first electronic device may be a mobile phone, a tablet computer, a wearable device such as a smart watch, a smart bracelet, a Bluetooth headset, etc., a smart home device such as a TV, a smart screen, a game console, a smart speaker, a smart projector, a smart TV box, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The disclosed embodiments do not impose any special restrictions on the specific device form of the electronic device.
[0042] The target object may be a device that has a communication relationship with the first electronic device. For example, the target object may be an accessory device equipped with the first electronic device. Figure 2A , the first electronic device may be a tablet computer, and the corresponding target object may be an electronic pen, which may be, but is not limited to, an inductive pen, a capacitive pen, or an electromagnetic pen. Capacitive pens may include passive capacitive pens and active capacitive pens. The first electronic device may also be a display part of a desktop computer, and the corresponding target object may also be a camera. The target object may also be a keyboard, etc. The target object may also be a part of the first electronic device. For example, referring to Figure 2B In the case where the first electronic device is a folding screen mobile phone, the target object may be one of the folding screens of the folding screen mobile phone. In the case where the first electronic device is a Bluetooth headset (including a headset compartment and a headset body), the target object may be the headset body of the Bluetooth headset.
[0043] The first sensor may be a sensor for detecting whether the object is in contact with the first electronic device. The contact relationship may be that there is a certain contact surface between the first electronic device and the object, and the relative position between the two is fixed when there is a certain contact surface. For example, the first sensor may be a Hall sensor, a sound sensor, an infrared sensor, a contact sensor, etc. Here, the first sensor can be triggered when the object is a target object, and can also be triggered when the object is a non-target object. For example, when the first sensor is a Hall sensor, the stylus pen adsorbed on the tablet computer can change the magnetic field to trigger the Hall sensor. A magnetic magnet adsorbed on the tablet computer can also change the magnetic field to trigger the Hall sensor.
[0044] The first trigger signal may be a signal generated by the first sensor when the first sensor detects that the object is in contact with the first electronic device.
[0045] For example, the first electronic device is the display part of a desktop computer, and the object is a camera. When the first sensor is a sound sensor, the first trigger signal for detecting whether to trigger the first sensor can be: the user speaks: the camera is connected (first trigger signal), and the sound sensor triggers the sound sensor when receiving the voice. When the first sensor is an infrared sensor, the first trigger signal for detecting whether to trigger the first sensor can be: the target position where the camera is installed on the display part can emit infrared rays, and when the camera is installed at the target position, it can block the infrared rays (first trigger signal), and the infrared sensor will detect the camera position, thereby triggering the infrared sensor.
[0046] For example, the first electronic device is a foldable screen mobile phone, and the object is one of the display screens of the foldable screen mobile phone. When the first sensor is a contact sensor, the first trigger signal for detecting whether to trigger the first sensor can be: when the two display screens of the foldable screen mobile phone are folded, the contact surface (first trigger signal) between one display screen and the other display screen will trigger the contact sensor.
[0047] The detection signal may be a signal generated by the first electronic device when the first trigger signal is detected. For example, the detection signal may be a vibration signal, an optical signal, an electrical signal, and the like.
[0048] When the object contacts the first electronic device, the first sensor of the first electronic device can be triggered to generate a first trigger signal. When the first electronic device detects the first trigger signal, it responds and generates a corresponding detection signal.
[0049] For example, the first electronic device is a tablet computer, the target object is a stylus pen, and the first sensor is a Hall sensor. When the stylus pen is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it can respond to the signal and generate a detection signal.
[0050] For example, the first electronic device mentioned above is a folding screen mobile phone, the target object is one of the display screens, and the first sensor is a contact sensor. When one display screen in the folding screen mobile phone is folded with another display screen, the contact surface of the two display screens will trigger the contact sensor to generate a first trigger signal. When the folding screen mobile phone detects the first trigger signal, it can respond to the signal and generate a detection signal. It should be noted here that the body where any of the two display screens of the first electronic device is located can respond to the first trigger signal. For example, the folding screen mobile phone includes a first body and a second body. When the first body and the second body are folded relative to each other, the first body can respond to the first trigger signal and generate a detection signal; or the second body can respond to the first trigger signal and generate a detection signal.
[0051] In operation S220, when a reply signal is received, it is determined that the target object and the first electronic device satisfy a contact relationship, and the reply signal is sent in response to receiving the detection signal.
[0052] Exemplarily, the reply signal may be a signal generated by the target object in response to receiving the detection signal when the target object is in contact with the first electronic device. For example, the reply signal may be a vibration signal, a light signal, an electrical signal, etc. The reply signal may be the same as the detection signal or different from the detection signal. For example, when the detection signal is a vibration signal, the reply signal may be a vibration signal or a light signal. This is not limited in the embodiments of the present disclosure.
[0053] It should be noted that when the target object is in contact with the first electronic device, the target object can respond to the detection signal upon receiving the detection signal and generate a reply signal. When the target object is not in contact with the first electronic device, the target object cannot respond to the detection signal upon receiving the detection signal and cannot generate a reply signal.
[0054] The first trigger signal may be triggered when the target object and the first electronic device meet a contact relationship, or may be triggered when the non-target object and the electronic device meet a contact relationship. However, when the object is a target object, it can respond to the detection signal and generate a reply signal. When the object is a non-target object, it cannot respond to the detection signal and cannot generate a reply signal.
[0055] When the first electronic device receives the reply signal, it can be determined that the object that triggers the first sensor is the target object, and that the target object and the first electronic device meet a contact relationship.
[0056] For example, the first electronic device is a tablet computer, the target object is a stylus pen, and the first sensor is a Hall sensor. When the stylus pen is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it can respond to the signal and generate a detection signal. When the stylus pen receives the detection signal, it can generate a reply signal. When the tablet computer receives the reply signal, it is determined that the stylus pen is adsorbed on the tablet computer.
[0057] If the magnet is attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. The tablet computer can respond to the first trigger signal and generate a detection signal. The magnet cannot receive the detection signal and cannot generate a reply signal. If the tablet computer cannot receive the reply signal, it is determined that the stylus is not attracted to the tablet computer, but other magnetic objects are attracted to the tablet computer.
[0058] For example, the first electronic device mentioned above is a folding screen mobile phone, the target object is one of the display screens (first body), and the first sensor is a contact sensor. When one display screen (first body) in the folding screen mobile phone is folded with another display screen (second body), the contact surface of the two display screens will trigger the contact sensor to generate a first trigger signal. When the first body detects the first trigger signal, it can respond to the model and generate a detection signal. When the second body receives the detection signal, it can generate a reply signal. When the first body receives the reply signal, it is determined that a fold occurs between the second body and the first body.
[0059] If the tablet computer covers the first body, the contact surface between the tablet computer and the first body will trigger the contact sensor to generate a first trigger signal. When the first body detects the first trigger signal, it can respond to the signal and generate a detection signal. The tablet computer cannot receive the detection signal and cannot generate a reply signal. When the tablet computer cannot receive the reply signal, it is determined that the second body and the first body are not folded relative to each other, but other objects are covering the tablet computer.
[0060] It should be noted here that the detection signal and the reply signal may be signals generated by two devices respectively, or may be signals generated by two different parts of the same device.
[0061] It is understandable that a secondary detection is set based on the first contact relationship detection performed by the first sensor to reconfirm the contact object and determine that it is a target object that has a communication relationship with the electronic device, thereby reducing the occurrence of false detection of contact relationships, reducing the false detection rate, and improving user experience.
[0062] As described above, in operation S210, a detection signal is generated. In one achievable manner, the operation may further include:
[0063] The first vibration unit of the first electronic device is controlled to generate a plurality of first vibration signals to obtain a detection signal.
[0064] The first vibration signal has a first frequency and a first time interval, and the first time interval represents a time difference between two adjacent first vibration signals.
[0065] Exemplarily, the first vibration unit may be a device capable of generating vibrations, such as a vibration motor, etc. Here, the first vibration unit may be originally designed for the first electronic device, and no additional first vibration unit needs to be added.
[0066] When the detection signal is a vibration signal, if the first sensor of the first electronic device is triggered by the object to generate a first trigger signal, when the first electronic device detects the first trigger signal, the first electronic device controls the first vibration unit to generate multiple first vibration signals.
[0067] For example, the first electronic device is a tablet computer, the target object is a stylus, and the first sensor is a Hall sensor. When the stylus is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it controls the vibration motor in the tablet computer to generate multiple first vibration signals. When the stylus receives multiple first vibration signals, it can generate a reply signal. When the tablet computer receives the reply signal, it is determined that the stylus is adsorbed on the tablet computer.
[0068] The first frequency represents the number of repetitions of the first vibration signal per unit time. For example, a first vibration signal may represent the number of vibrations of a tablet computer within 1 second. The first time interval represents the time difference between two adjacent first vibration signals. There is a certain time difference between two adjacent first vibration signals. For example, a first vibration signal is generated every 3 seconds.
[0069] It should be noted that the embodiment of the present disclosure does not impose any specific limitation on the first frequency and the first time interval of the first vibration signal, and they can be specifically set according to the actual structure between the first electronic device and the target object.
[0070] It is understandable that this detection method can use the original hardware of the electronic device to perform secondary detection operations. No new hardware needs to be added, and the cost is low.
[0071] As described above, in operation S220, when a reply signal is received, it is determined that the target object and the first electronic device meet a contact relationship. In an achievable manner, the operation may further include:
[0072] When the first direction sensor of the first electronic device senses the reply signal, it is determined that the target object and the first electronic device meet a contact relationship.
[0073] Exemplarily, the first direction sensor may be a sensor for detecting the direction, tilt angle, rotation angle, or orientation of the device relative to a reference direction. For example, the first direction sensor may be an acceleration sensor, a gyroscope, a magnetometer, and the like.
[0074] The reply signal may be a signal of the same type as the first vibration signal, that is, the reply signal may be a second vibration signal.
[0075] For example, let's continue to use the above-mentioned first electronic device as a tablet computer, the target object as a stylus, and the first sensor as a Hall sensor as an example. When the stylus is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it controls the vibration motor in the tablet computer to generate multiple first vibration signals. When the stylus receives multiple first vibration signals, it can generate a second vibration signal. When the acceleration sensor of the tablet computer senses the second vibration signal, it is determined that the stylus is adsorbed on the tablet computer.
[0076] It is understandable that this detection method can further use the original hardware of the electronic device for secondary detection operations. No new hardware needs to be added, and the cost is low.
[0077] In order to facilitate the understanding of the detection method applied to the first electronic device, Figure 3 A detection method applied to the first electronic device is described.
[0078] Figure 3 The following schematically shows a judgment flow chart of a detection method applied to a first electronic device according to an embodiment of the present disclosure.
[0079] like Figure 3 As shown, the embodiment of the present disclosure discloses a detection method, which is applied to a first electronic device. The method may include operations S310 to S360.
[0080] In operation S310 , in response to detecting a first trigger signal that triggers a first sensor, a detection signal is generated.
[0081] In operation S320, it is determined whether a reply signal is received.
[0082] In operation S330, if a reply signal is received, the target object is determined to be the second electronic device. If no reply signal is received, the waiting state is maintained.
[0083] In operation S340, a target time interval between generating the detection signal and receiving the reply signal is determined.
[0084] In operation S350, it is determined whether the target time interval is less than a preset threshold.
[0085] In operation S360, if the target time interval is less than the preset threshold, it is determined that the second electronic device is attached to the first electronic device. If the target time interval is not less than the preset threshold, the waiting state is maintained.
[0086] Exemplarily, the waiting state of the first electronic device may be a state of the first electronic device before detecting the first trigger signal.
[0087] The target time interval can be understood as the time difference between the first electronic device generating a detection signal and receiving a reply signal. In the case where the detection signal is a plurality of first vibration signals, the time when the detection signal is generated may be the moment when the first vibration signal is emitted. In the case where the reply signal is a plurality of second vibration signals, the time when the reply signal is received may be the moment when the tablet computer receives the first reply signal.
[0088] Continue to use the above-mentioned first electronic device as a tablet computer, the target object as a stylus pen, and the first sensor as a Hall sensor as an example for explanation. When the stylus pen is magnetically attracted to the tablet computer, the Hall sensor senses the change of the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it controls the vibration motor in the tablet computer to generate a detection signal (for example, multiple first vibration signals). When the stylus pen receives the detection signal, it can generate a reply signal (for example, multiple second vibration signals). When the acceleration sensor of the tablet computer senses the reply signal, it is determined that the object adsorbed on the tablet computer is the stylus pen. When the acceleration sensor of the tablet computer does not sense the reply signal, it is determined that the object adsorbed on the tablet computer is not the stylus pen, and the state of the tablet computer remains unchanged. According to the target time interval between the time when the tablet computer generates the detection signal and the time when the tablet computer receives the reply signal. When the target time interval is less than the preset threshold (for example, 2s), it is determined that the stylus pen is magnetically attracted to the tablet computer; when the target time interval is greater than the preset threshold (for example, 2s), it is determined that the stylus pen is not magnetically attracted to the tablet computer, and the state of the tablet computer remains unchanged.
[0089] It should be noted that the embodiments of the present disclosure do not specifically limit the preset threshold value, and the preset threshold value can be set according to specific application scenarios.
[0090] The present disclosure embodiment discloses a detection method, which is applied to a second electronic device. The detection method of this embodiment includes:
[0091] When receiving the detection signal from the first electronic device, a reply signal is generated and sent to the first electronic device.
[0092] Among them, the detection signal is generated by the first electronic device in response to detecting the first trigger signal that triggers the first sensor. The detection signal can be responded when the target object touches it, and the reply signal is used by the first electronic device to determine that the target object and the first electronic device meet the contact relationship.
[0093] Exemplarily, the second electronic device can be understood as a target object, that is, the second electronic device can be a device that has a communication relationship with the first electronic device. For example, the second electronic device can be an accessory device equipped with the first electronic device.
[0094] For example, continue to refer to Figure 2A The first electronic device may be a tablet computer, and the corresponding second electronic device may be an electronic pen. The first electronic device may also be a display part of a desktop computer, and the corresponding second electronic device may also be a camera. The second electronic device may also be a keyboard, etc. The second electronic device may also be a part of the first electronic device.
[0095] For example, continue to refer to Figure 2B In the case where the first electronic device is a folding screen mobile phone, the second electronic device may be one of the folding screens of the folding screen mobile phone. That is, the first electronic device may be the first body of the folding screen mobile phone with a first display screen, and the second electronic device may be the second body of the folding screen mobile phone with a second display screen. In the case where the first electronic device is a Bluetooth headset (including a headset compartment and a headset body), the first electronic device may be the headset compartment of the Bluetooth headset, and the second electronic device may be the headset body of the Bluetooth headset.
[0096] The detection signal is generated by the first electronic device in response to detecting the first trigger signal that triggers the first sensor, and the detection signal can be responded to when the target object touches it. For details about the detection signal, please refer to Figure 1 The instructions shown are not repeated here.
[0097] For example, let's continue to use the above-mentioned first electronic device as a tablet computer, the second electronic device as a stylus, and the first sensor as a Hall sensor as an example. When the stylus is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it can respond to the signal and generate a detection signal. When the stylus receives the detection signal generated by the tablet computer, the stylus generates a reply signal and sends the reply signal to the tablet computer. If the stylus can generate a reply signal based on the detection signal generated by the first electronic device, it indicates that the stylus is magnetically fixed to the tablet computer.
[0098] As described above, in the case of receiving a detection signal from the first electronic device, the operation of generating a reply signal may further include, in an achievable manner:
[0099] When the second direction sensor of the second electronic device senses the detection signal, a reply signal is generated.
[0100] Exemplarily, the second direction sensor may be a sensor for detecting the direction, tilt angle, rotation angle, or orientation of the device relative to a reference direction. For example, the first direction sensor may be an acceleration sensor, a gyroscope, a magnetometer, and the like.
[0101] The reply signal may be a vibration signal, an electrical signal, an optical signal, etc. The reply signal may be of the same type as the detection signal or may be of a different type.
[0102] For example, in the case where the detection signal is a plurality of first vibration signals, the first electronic device is a tablet computer, the second electronic device is a stylus, and the first sensor is a Hall sensor. When the stylus is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it controls the vibration motor in the tablet computer to generate a plurality of first vibration signals (detection signals). When the acceleration sensor (second direction sensor) of the stylus senses a plurality of first vibration signals, it can generate a reply signal. When the stylus generates a reply signal, it is determined that the stylus is adsorbed on the tablet computer.
[0103] As described above, in the case of receiving a detection signal from the first electronic device, the operation of generating a reply signal may further include:
[0104] In response to receiving the detection signal, the second vibration unit of the second electronic device generates a plurality of second vibration signals to obtain a reply signal.
[0105] The second vibration signal has a second frequency and a second time interval, and the second time interval represents a time difference between two adjacent second vibration signals.
[0106] The detection signal has a first frequency and a first time interval, the first frequency is the same as or different from the second frequency, and the first time interval is the same as or different from the second time interval.
[0107] Exemplarily, the second vibration unit may be a device capable of generating vibrations, such as a vibration motor, etc. Here, the second vibration unit may be originally designed for the second electronic device, and no additional second vibration unit needs to be added.
[0108] When the second electronic device receives the detection signal sent by the first electronic device, it can respond based on the detection signal, that is, the second electronic device controls the second vibration unit to generate multiple second vibration signals (reply signals).
[0109] For example, let's continue to use the above-mentioned first electronic device as a tablet computer, the second electronic device as a stylus, and the first sensor as a Hall sensor as an example. When the stylus is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it controls the vibration motor in the tablet computer to generate multiple first vibration signals. When the stylus receives multiple first vibration signals, it can respond, and the stylus controls the vibration motor in the stylus to generate multiple second vibration signals. When the tablet computer receives multiple second vibration signals, it is determined that the stylus is adsorbed on the tablet computer.
[0110] The second frequency represents the number of repetitions of the second vibration signal per unit time. For example, a second vibration signal can represent the number of vibrations of a tablet computer within 2 seconds. The second time interval represents the time difference between two adjacent second vibration signals. There is a certain time difference between two adjacent second vibration signals. For example, a second vibration signal is generated every 3 seconds.
[0111] It should be noted that the second frequency and the second time interval of the second vibration signal are not specifically limited in the disclosed embodiment, and can be specifically set according to the actual structure between the second electronic device and the first electronic device. At the same time, when the detection signal and the reply signal are the same type of signals, the frequency and time interval generated by the detection signal and the reply signal can be the same or different.
[0112] In order to facilitate the understanding of the detection method applied to the first electronic device, Figure 4 A detection method applied to the first electronic device is described.
[0113] Figure 4The judgment flow chart of the detection method applied to the second electronic device according to the embodiment of the present disclosure is schematically shown.
[0114] like Figure 4 As shown, the embodiment of the present disclosure discloses a detection method, which is applied to a second electronic device. The method may include operations S410 to S430.
[0115] In operation S410, it is determined whether a detection signal is received from a first electronic device.
[0116] In operation S420, if a detection signal is received from the first electronic device, a reply signal is generated and sent to the first electronic device. If a detection signal is not received from the first electronic device, the waiting state is maintained.
[0117] In operation S430, it is determined that the second electronic device satisfies a contact relationship with the first electronic device.
[0118] Exemplarily, the waiting state of the second electronic device may be a state of the second electronic device before receiving the detection signal.
[0119] For example, let's continue to use the above-mentioned first electronic device as a tablet computer, the second electronic device as a stylus, and the first sensor as a Hall sensor as an example for explanation. When the stylus is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it controls the vibration motor in the tablet computer to generate multiple first vibration signals. When the stylus receives multiple first vibration signals, the stylus can respond, and the stylus controls the vibration motor in the stylus to generate multiple second vibration signals. When the tablet computer receives multiple second vibration signals, it is determined that the stylus is adsorbed on the tablet computer. When the stylus does not receive multiple first vibration signals, the state of the stylus remains unchanged.
[0120] Figure 5 A schematic diagram of a first electronic device according to an embodiment of the present disclosure is schematically shown.
[0121] like Figure 5 As shown, the embodiment of the present disclosure further discloses a first electronic device. The first electronic device 100 of this embodiment includes: a first sensor 101 and a first controller 102 .
[0122] The first sensor 101 is used to detect a first trigger signal.
[0123] The first controller 102 is electrically connected to the first sensor 101 . The first controller 102 is used to generate a detection signal in response to detecting a first trigger signal that triggers the first sensor 101 . The detection signal can be responded to when being touched by a target object.
[0124] The first controller 101 is used to determine that the target object and the first electronic device 100 meet a contact relationship when receiving a reply signal, and the reply signal is sent in response to receiving the detection signal.
[0125] Exemplarily, the first sensor 101 and the first controller 102 are integrated into the first electronic device 100 .
[0126] For details about the first sensor 101, the first trigger signal, and the detection signal, please refer to Figure 1 The instructions shown are not repeated here.
[0127] For example, the first electronic device 100 is a tablet computer, the target object is a stylus pen, and the first sensor 101 is a Hall sensor. When the stylus pen is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the first controller 102 of the tablet computer detects the first trigger signal, it controls the tablet computer to generate a detection signal. When the stylus pen receives the detection signal, it can generate a reply signal. When the first controller 102 of the tablet computer receives the reply signal, it determines that the stylus pen is adsorbed on the tablet computer.
[0128] In some embodiments, for example Figure 5 The first electronic device 100 shown may further include: a second sensor 103 .
[0129] The second sensor 103 is integrated in the first electronic device 100 . The second sensor 103 is electrically connected to the first controller 102 . The second sensor 103 is used to receive a reply signal.
[0130] Exemplarily, the second sensor 103 may be a direction sensor. The second sensor 103 may refer to the description of the first direction sensor, which will not be described again.
[0131] In some embodiments, for example Figure 5 The first electronic device 100 shown may further include: a first vibrator 104 .
[0132] The first vibrator 104 is electrically connected to the first controller 102 , and the first controller 102 controls the first vibrator 104 to generate a detection signal including a plurality of first vibration signals.
[0133] Exemplarily, the first vibrator 104 may be integrated into the first electronic device 100. The first vibrator 104 may refer to the description of the first vibration unit described above, which will not be repeated here.
[0134] In some embodiments, Fig. 6A As shown, the first electronic device of this embodiment includes: a first body 104 and a second body 105 .
[0135] The first body 104 is rotatably connected to the second body 105 . When the target object is the first body 104 , the first controller 102 is used to determine that the first body 104 and the second body 105 are in contact with each other upon receiving a reply signal.
[0136] Exemplarily, when the target object is a part of the first electronic device, the first electronic device may be a foldable terminal device. For example, a foldable screen mobile phone, two display screens (first body, second body) are rotatably connected to be unfolded or folded. For example, a laptop computer, a display screen part (first body) and a keyboard part (second body) of the laptop computer are rotatably connected to be unfolded or folded.
[0137] Take the first electronic device as a folding screen mobile phone as an example for explanation. The first body 104 may be the part of the folding screen mobile phone with a first display screen, and the second body 105 may be the part of the folding screen mobile phone with a second display screen. The first display screen and the second display screen are rotatably connected.
[0138] In the case where the first electronic device is a folding screen mobile phone, the first sensor may be a contact sensor, and the first controller may be a controller shared by the first body and the second body. When the first body is folded relative to the second body, the contact surface between the first body and the second body triggers the contact sensor to generate a first trigger signal. The first controller can respond to the signal when the first trigger signal is detected, and control the first vibrator on the first body to generate a detection signal (multiple first vibration signals), and send the multiple first vibration signals to the second body. When the second body receives multiple first vibration signals, the first controller can control the second vibrator of the second body to generate a reply signal (for example, multiple second vibration signals). When the first direction sensor (second sensor) of the first body receives the reply signal (multiple second vibration signals), it determines that the first body and the second body are in a folded state.
[0139] If the first body and the second body have corresponding controllers respectively, it can be understood by referring to the description that the first electronic device is a tablet computer and the second electronic device is a stylus.
[0140] Figure 6B A second application schematic diagram of the first electronic device according to an embodiment of the present disclosure is schematically shown.
[0141] In some embodiments, the first electronic device has a first contact surface 100A, and the target object has a second contact surface 200A. When the first contact surface 100A is in contact with the second contact surface 200A, the position of the target object relative to the first body is fixed.
[0142] For example, refer to Figure 6B , the first electronic device 100 is a tablet computer, and the target object is a stylus pen. When the stylus pen is magnetically attracted to the tablet computer, the second contact surface 200A of the stylus pen contacts the first contact surface 100A of the tablet computer, and the relative position between the stylus pen and the tablet computer is fixed. Thus, the stylus pen and the tablet computer meet the contact relationship.
[0143] Figure 7 A schematic diagram of a second electronic device according to an embodiment of the present disclosure is schematically shown.
[0144] like Figure 7 As shown, the embodiment of the present disclosure further discloses a second electronic device. The second electronic device 200 of this embodiment includes: a third sensor 201 and a first controller 202 .
[0145] The third sensor 201 is used to receive a detection signal from the first electronic device.
[0146] The second controller 202 generates a reply signal to which the first electronic device can respond in response to the detection signal.
[0147] Among them, the detection signal is generated by the first electronic device in response to detecting the first trigger signal that triggers the first sensor. The detection signal can be responded when the target object touches it, and the reply signal is used by the first electronic device to determine that the target object and the first electronic device meet the contact relationship.
[0148] Exemplarily, the third sensor 201 may refer to the description of the second direction sensor, which will not be described again.
[0149] In the case where the detection signal is a plurality of first vibration signals, the first electronic device is a tablet computer, the second electronic device is a stylus, and the first sensor is a Hall sensor. When the stylus is magnetically attracted to the tablet computer, the Hall sensor senses the change in the magnetic field and generates a first trigger signal. When the tablet computer detects the first trigger signal, it controls the vibration motor in the tablet computer to generate a plurality of first vibration signals (detection signals). When the acceleration sensor (third sensor, i.e., the second direction sensor) of the stylus senses a plurality of first vibration signals, the second controller can control the stylus to generate a reply signal. When the stylus generates a reply signal, it is determined that the stylus is adsorbed on the tablet computer.
[0150] In some embodiments, continue to refer to Figure 7 The second electronic device 200 also includes: a second vibrator 203.
[0151] The second vibrator is electrically connected to the second controller. When receiving a detection signal from the first electronic device, the first controller controls the second vibrator to generate a reply signal.
[0152] Here, the description of the second vibrator 203 may refer to the description of the second vibration unit mentioned above and will not be repeated here.
[0153] Figure 8 One of the schematic diagrams of an electronic device according to an embodiment of the present disclosure is schematically shown; Fig. 9 A second schematic diagram of an electronic device according to an embodiment of the present disclosure is schematically shown.
[0154] Based on the first electronic device 100 and the second electronic device 200 described above, the embodiment of the present disclosure further discloses an electronic device, which includes the first electronic device 100 and the second electronic device 200.
[0155] In some embodiments, the first electronic device 100 and the second electronic device 200 are detachably connected.
[0156] For example, refer to Figure 8 The first electronic device 100 may be an earphone compartment of a Bluetooth headset, and the second electronic device 200 may be an earphone body of the Bluetooth headset. The earphone body can be fixed in the earphone compartment by magnetic attraction.
[0157] Reference Fig. 9 The first electronic device 100 may also be a tablet computer, and the second electronic device 200 may be a keyboard. The keyboard may be fixed to the tablet computer by magnetic attraction.
[0158] For example, the first electronic device 100 can be an earphone compartment of a Bluetooth headset, and the second electronic device 200 can be an earphone body of a Bluetooth headset. When the earphone body is placed in the earphone compartment, the contact surface between the earphone compartment and the earphone body can trigger the contact sensor to generate a first trigger signal. When the earphone compartment detects the first trigger signal, it can generate a detection signal and send it to the earphone body. After receiving the detection signal, the earphone body can generate a reply signal and send it to the earphone compartment. When the earphone compartment receives the reply signal, it determines that the earphone body is magnetically fixed in the earphone compartment.
[0159] In some other embodiments, the first electronic device 100 and the second electronic device 200 are integrally provided, and the first electronic device 100 and the second electronic device 200 are rotatably connected.
[0160] For example, the first electronic device 100 may be a display screen of a notebook computer, and the second electronic device 200 may be a keyboard of the notebook computer. The keyboard is rotatably connected to the display screen, so that the notebook computer can be opened and closed.
[0161] When the keyboard is folded and in contact with the display screen, the contact surface of the display screen and the keyboard can trigger the contact sensor to generate a first trigger signal. When the laptop detects the first trigger signal, it can control the display screen to generate a detection signal and send it to the keyboard. After the laptop receives the detection signal, it can control the keyboard to generate a reply signal and send it to the display screen. When the laptop receives the reply signal, it determines that the keyboard and the display screen are in a folded state.
[0162] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0163] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A detection method, applied to a first electronic device, comprising: In response to detecting a first trigger signal that triggers the first sensor, generating a detection signal, wherein the detection signal can be responded to when contacted by a target object; In case of receiving a reply signal, it is determined that the target object and the first electronic device satisfy a contact relationship, and the reply signal is sent in response to receiving the detection signal.
2. The method according to claim 1, generating a detection signal, comprising: Controlling a first vibration unit of the first electronic device to generate a plurality of first vibration signals to obtain a detection signal; The first vibration signal has a first frequency and a first time interval, and the first time interval represents a time difference between two adjacent first vibration signals.
3. The method according to claim 2, wherein, upon receiving a reply signal, determining that the target object and the first electronic device satisfy a contact relationship comprises: When the first direction sensor of the first electronic device senses the reply signal, it is determined that the target object and the first electronic device are in contact with each other.
4. A detection method, applied to a second electronic device, the method comprising: When receiving a detection signal from a first electronic device, generating a reply signal and sending the reply signal to the first electronic device; Among them, the detection signal is generated by the first electronic device in response to detecting a first trigger signal that triggers the first sensor, the detection signal can be responded to when touched by a target object, and the reply signal is used by the first electronic device to determine that the target object and the first electronic device are in contact.
5. The method according to claim 4, generating a reply signal when the detection signal is received, comprises: When the second direction sensor of the second electronic device senses the detection signal, a reply signal is generated.
6. The method according to claim 5, generating a reply signal when the detection signal is received, further comprising: In response to receiving the detection signal, the second vibration unit of the second electronic device generates a plurality of second vibration signals to obtain a reply signal; The second vibration signal has a second frequency and a second time interval, and the second time interval represents a time difference between two adjacent second vibration signals; The detection signal has a first frequency and a first time interval, the first frequency is the same as or different from the second frequency, and the first time interval is the same as or different from the second time interval.
7. A first electronic device, comprising: A first sensor, used for detecting a first trigger signal; a first controller electrically connected to the first sensor, the first controller being configured to generate a detection signal in response to detecting a first trigger signal that triggers the first sensor, the detection signal being responsive when contacted by a target object; The first controller is used to determine that the target object and the first electronic device are in contact relationship when receiving a reply signal, and the reply signal is sent in response to receiving the detection signal.
8. The device according to claim 7, further comprising: The first vibrator, The first vibrator is electrically connected to the first controller, and the first controller controls the first vibrator to generate the detection signal including a plurality of first vibration signals.
9. The first electronic device according to claim 7, comprising a first body and a second body, wherein the first body is rotatably connected to the second body, When the target object is the first body, the first controller is used to determine that the first body and the second body meet a contact relationship when receiving a reply signal.
10. A second electronic device, comprising: a third sensor, the third sensor being used to receive a detection signal from the first electronic device, A second controller, in response to the detection signal, generates a reply signal to which the first electronic device can respond; Among them, the detection signal is generated by the first electronic device in response to detecting a first trigger signal that triggers the first sensor, the detection signal can be responded to when touched by a target object, and the reply signal is used by the first electronic device to determine that the target object and the first electronic device are in contact.