US10992856B2ActiveUtilityA1

Method for detecting position of movable structure, detection component, and electronic device

34
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTDPriority: Mar 20, 2018Filed: Nov 2, 2018Granted: Apr 27, 2021
Est. expiryMar 20, 2038(~11.7 yrs left)· nominal 20-yr term from priority
H04N 23/665H04N 23/61H04N 23/57H04N 23/51G01D 5/02H04M 1/0237H04M 1/0264H04M 1/026H04M 1/0266H04M 1/0235H04M 1/03H04N 5/2252H04N 5/23227H04N 5/2257H04N 5/23218
34
PatentIndex Score
0
Cited by
26
References
13
Claims

Abstract

The present disclosure provides a method for detecting a position of a movable structure. The movable structure is applicable to an electronic device including a body and a detection component, and configured to move between a first position at which the movable structure is received in the body and a second position at which the movable structure extends out of the body. The detection component includes at least one distance sensor disposed on the movable structure. The at least one distance sensor is configured to be received in the body when the movable structure is at the first position and to protrude beyond the body when the movable structure is at the second position. The method includes: receiving a detection signal value outputted by the at least one distance sensor; and determining a position of the movable structure relative to the body according to the detection signal value.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
       1. A method for detecting a position of a movable structure, wherein the movable structure is applicable to an electronic device, the electronic device comprises a body and a detection component, the movable structure is configured to move between a first position at which the movable structure is received in the body and a second position at which the movable structure extends out of the body, the detection component comprises at least one distance sensor disposed on the movable structure, the at least one distance sensor is configured to be received in the body when the movable structure is at the first position and to protrude beyond the body when the movable structure is at the second position, wherein the method comprises:
 receiving a detection signal value outputted by the at least one distance sensor; 
 determining a position of the movable structure relative to the body according to the detection signal value; 
 wherein determining the position of the movable structure relative to the body according to the detection signal value comprises:
 acquiring a database, the database comprising a plurality of preset signal values and a plurality of nominal positions having a one-to-one correspondence with the plurality of preset signal values; and 
 querying the database with the detection signal value to acquire the position of movable structure relative to the body; 
 
 wherein the method further comprises:
 controlling the movable structure to move to each nominal position; and 
 acquiring a signal value outputted by the at least one distance sensor corresponding to the nominal position as the preset signal value corresponding to the nominal position; 
 
 wherein the method further comprises at least one of following operations:
 associating the plurality of preset signal values with the plurality of nominal positions to generate a query table; and 
 performing a fitting on the plurality of preset signal values and the plurality of nominal positions to generate a relation curve. 
 
 
     
     
       2. The method according to  claim 1 , wherein determining whether the movable structure moves to the preset position comprises:
 receiving a plurality of detection signal values outputted by the at least one distance sensor in a preset time period; 
 determining a preset signal value corresponding to the preset position; 
 determining whether the preset signal value is consistent with at least one of the plurality of detection signal values; and 
 when the preset signal value is inconsistent with each of the plurality of detection signal values, determining that the movable structure does not move to the preset position. 
 
     
     
       3. The method according to  claim 1 , further comprising:
 receiving a user input; and 
 controlling the movable structure to continue moving to the preset position according to the user input. 
 
     
     
       4. The method according to  claim 1 , further comprising:
 receiving a user input; and 
 controlling the movable structure to move to the first position according to the user input. 
 
     
     
       5. The method according to  claim 1 , further comprising:
 receiving a user input; 
 controlling the movable structure to move to a preset position according to the user input. 
 
     
     
       6. The method according to  claim 5 , further comprising:
 determining whether the movable structure moves to the preset position; and 
 when the movable structure does not move to the preset position, outputting an alarm signal. 
 
     
     
       7. An electronic device, comprising:
 a body; 
 a movable structure, configured to move between a first position at which the movable structure is received in the body and a second position at which the movable structure extends out of the body; 
 at least one distance sensor, disposed on the movable structure, and configured to be received in the body when the movable structure is at the first position and to protrude beyond the body when the movable structure is at the second position; 
 a processor, configured to:
 receive a detection signal value outputted by the at least one distance sensor; and 
 determine a position of the movable structure relative to the body according to the detection signal value; 
 
 wherein the processor is further configured to:
 acquire a database, the database comprising a plurality of preset signal values and a plurality of nominal positions having a one-to-one correspondence with the plurality of preset signal values; and 
 query the database with the detection signal value to acquire the position of movable structure relative to the body; 
 
 wherein the processor is further configured to:
 control the movable structure to move to each nominal position; and 
 acquire a signal value outputted by the at least one distance sensor corresponding to the nominal position as the preset signal value corresponding to the nominal position; 
 
 wherein the processor is further configured to perform at least one of following operations:
 associating the plurality of preset signal values with the plurality of nominal positions to generate a query table; and 
 performing fitting on the plurality of preset signal values and the plurality of nominal positions to generate a relation curve. 
 
 
     
     
       8. The electronic device according to  claim 7 , wherein the processor is further configured to:
 receive a plurality of detection signal values outputted by the at least one distance sensor in a preset time period; 
 determine a preset signal value corresponding to the preset position; 
 determine whether the preset signal value is consistent with at least one of the plurality of detection signal values; and 
 when the preset signal value is inconsistent with each of the plurality of detection signal values, determine that the movable structure does not move to the preset position. 
 
     
     
       9. The electronic device according to  claim 7 , wherein the processor is further configured to:
 receive a user input; and 
 control the movable structure to continue moving to the preset position according to the user input. 
 
     
     
       10. The electronic device according to  claim 7 , wherein the processor is further configured to:
 receive a user input; and 
 control the movable structure to move to the first position according to the user input. 
 
     
     
       11. The electronic device according to  claim 7 , wherein the processor is further configured to:
 receive a user input; 
 control the movable structure to move to a preset position according to the user input. 
 
     
     
       12. The electronic device according to  claim 11 , wherein the processor is further configured to:
 determine whether the movable structure moves to the preset position; and 
 when the movable structure does not move to the preset position, output an alarm signal. 
 
     
     
       13. An electronic device, comprising: a body, a movable structure, a driving motor, a detection component; wherein
 the driving motor is configured to drive the movable structure to move between a first position at which the movable structure is received in the body and a second position at which the movable structure extends out of the body in response to a predetermined trigger signal; and 
 the detection component comprises at least one distance sensor disposed on the movable structure, wherein the at least one distance sensor is configured to be received in the body when the movable structure is at the first position and to protrude beyond the body when the movable structure is at the second position, the detection component is configured to detect a position of the movable structure based on a detection signal value outputted by the at least one distance sensor by acquiring a database, the database comprising a plurality of preset signal values and a plurality of nominal positions having a one-to-one correspondence with the plurality of preset signal values and querying the database with the detection signal value to acquire the position of movable structure relative to the body; 
 wherein the detection component comprises a first distance sensor and a second distance sensor, wherein the first distance sensor and the second distance sensor are spaced apart from each other on the movable structure along a moving direction of the movable structure towards the body; 
 wherein the driving motor is further configured to drive the movable structure to move to each nominal position and the detection component is further configured to acquire a signal value outputted by the at least one distance sensor corresponding to the nominal position as the preset signal value corresponding to the nominal position and to associate the plurality of preset signal values with the plurality of nominal positions to generate a query table or to perform a fitting on the plurality of preset signal values and the plurality of nominal positions to generate a relation curve.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.