# US 2021/0286380 A1 · Method and Apparatus for Calibrating Sliding of Sliding Component

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286380 A1
- Document ID: US20210286380A1
- Status: Published application
- Kind: A1
- Application number: 17/331,568
- Filed: 2021-05-26
- Published: 2021-09-16
- Earliest claimed: 2018-11-30
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Peng Zhong; Jianrong Zheng
- Web page: https://patentgrep.com/patent/US20210286380A1

## CPC

- G05D 3/20: using a digital comparing device
- G06F 1/1624: {with sliding enclosures, e.g. sliding keyboard or display}
- G06F 1/1686: {the I/O peripheral being an integrated camera}
- H04M 1/0264: {for a camera module assembly}
- H04N 23/57: Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
- H04M 1/0237: {Sliding mechanism with one degree of freedom}
- G05D: SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for calibrating a sliding of a sliding component includes: obtaining a first detection signal value sent by the first Hall element and a second detection signal value sent by the second Hall element, corresponding to one or more first calibration positions reached during a sliding process of the sliding component; comparing the first detection signal value corresponding to each of the one or more first calibration positions with a preset first reference signal value, and comparing the second detection signal value corresponding to each of the one or more first calibration positions with a preset second reference signal value; and calibrating the first reference signal value based on the first detection signal value, and calibrating the second reference signal value based on the second detection signal value, in response that a number of times that comparison results belong to a preset abnormal range reaches a preset threshold.

## Claims

### Claim 1

A method for calibrating a sliding of a sliding component, wherein the sliding component is configured in an electronic device; the electronic device comprises a body, a detecting component and a driving component; the driving component is configured to control the sliding component to slide between a first position received in the body and a second position exposed from the body; the detecting component comprises a magnetic field generating element, a first Hall element and a second Hall element; the magnetic field generating element is fixed on the sliding component, the first Hall element and the second Hall element are fixed on the body; when the sliding component slides from the first position to the second position, the magnetic field generating element is far away from the first Hall element and close to the second Hall element; and the method comprises:
obtaining a first detection signal value sent by the first Hall element and a second detection signal value sent by the second Hall element, corresponding to one or more first calibration positions reached during a sliding process of the sliding component;
comparing the first detection signal value corresponding to each of the one or more first calibration positions with a preset first reference signal value, and comparing the second detection signal value corresponding to each of the one or more first calibration positions with a preset second reference signal value; and
calibrating the first reference signal value based on the first detection signal value, and calibrating the second reference signal value based on the second detection signal value, in response that a number of times that comparison results belong to a preset abnormal range reaches a preset threshold.

### Claim 2 (depends on 1)

The method as claimed in claim 1, in response that the number of times that the comparison results belong to the preset abnormal range reaches the preset threshold, further comprising:
controlling the sliding component to slide to one or more preset second calibration positions that have not been reached before, and obtaining a third detection signal value sent by the first Hall element corresponding to each of the one or more second calibration positions and a fourth detection signal value sent by the second Hall element corresponding to each of the one or more second calibration positions; and
calibrating a third reference signal value of the second calibration position based on the third detection signal value, and calibrating a fourth reference signal value of the second calibration position based on the fourth detection signal value.

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein the one or more first calibration positions comprise one or more of a sliding-out deceleration position, a sliding-out accelerating position, a sliding-out interruption position, a sliding-in deceleration position, a sliding-in accelerating position, and a sliding-in interruption position, of the sliding component.

### Claim 4 (depends on 2)

The method as claimed in claim 2, wherein controlling the sliding component to slide to the one or more preset second calibration positions that have not been reached before, and obtaining the third detection signal value sent by the first Hall element corresponding to each of the one or more second calibration positions and the fourth detection signal value sent by the second Hall element corresponding to each of the one or more second calibration positions, comprises:
sending a calibration notification in a pop-up window; and
controlling the driving component to drive the sliding component to slide back and forth between the first position and the second position with a highest driving force after obtaining a confirmed calibration instruction, and obtaining the third detection signal value and the fourth detection signal value detected by the first Hall element and the second Hall element when the sliding component slides to the corresponding second calibration position.

### Claim 5 (depends on 4)

The method as claimed in claim 4, wherein the calibration notification comprises a confirmation control, and the confirmed calibration instruction is obtained after a trigger operation on the confirmation control is received.

### Claim 6 (depends on 4)

The method as claimed in claim 4, wherein the calibration notification comprises information on causes of detected obstacles.

### Claim 7 (depends on 2)

The method as claimed in claim 2, further comprising:
counting third calibration positions corresponding to first detection signal values and second detection signal values; and
matching the third calibration positions with the first calibration positions, and determining second calibration positions that do not match the third calibration positions in the first calibration positions.

### Claim 8

An electronic device, wherein the electronic device comprises a body, a sliding component, a detecting component and a driving component; the driving component is configured to control the sliding component to slide between a first position received in the body and a second position exposed from the body; the detecting component comprises a magnetic field generating element, a first Hall element and a second Hall element; the magnetic field generating element is fixed on the sliding component, the first Hall element and the second Hall element are fixed on the body; when the sliding component slides from the first position to the second position, the magnetic field generating element is far away from the first Hall element and close to the second Hall element; and the electronic device further comprises:
a memory,
a processor electrically coupled to the sliding component, and
a computer program stored on the memory and for running on the processor, and
in which the processor is configured to, when executing the computer program:
obtain a first detection signal value sent by the first Hall element and a second detection signal value sent by the second Hall element, corresponding to one or more first calibration positions reached during a sliding process of the sliding component;
compare the first detection signal value corresponding to each of the one or more first calibration positions with a preset first reference signal value, and compare the second detection signal value corresponding to each of the one or more first calibration positions with a preset second reference signal value; and
calibrate the first reference signal value based on the first detection signal value, and calibrate the second reference signal value based on the second detection signal value, in response that a number of times that comparison results belong to a preset abnormal range reaches a preset threshold.

### Claim 9 (depends on 8)

The electronic device as claimed in claim 8, wherein the processor is further configured to:
in response that the number of times that the comparison results belong to the preset abnormal range reaches the preset threshold, control the sliding component to slide to one or more preset second calibration positions that have not been reached before,
obtain a third detection signal value sent by the first Hall element corresponding to each of the one or more second calibration positions and a fourth detection signal value sent by the second Hall element corresponding to each of the one or more second calibration positions; and
calibrate a third reference signal value of the second calibration position based on the third detection signal value, and calibrate a fourth reference signal value of the second calibration position based on the fourth detection signal value.

### Claim 10 (depends on 8)

The electronic device as claimed in claim 8, wherein the one or more first calibration positions comprise one or more of a sliding-out deceleration position, a sliding-out accelerating position, a sliding-out interruption position, a sliding-in deceleration position, a sliding-in accelerating position, and a sliding-in interruption position, of the sliding component.

### Claim 11 (depends on 9)

The electronic device as claimed in claim 9, wherein the processor is further configured to:
send a calibration notification in a pop-up window; and
control the driving component to drive the sliding component to slide back and forth between the first position and the second position with a highest driving force after obtaining a confirmed calibration instruction, and obtain the third detection signal value and the fourth detection signal value detected by the first Hall element and the second Hall element when the sliding component slides to the corresponding second calibration position.

### Claim 12 (depends on 11)

The electronic device as claimed in claim 11, wherein the calibration notification comprises a confirmation control, and the confirmed calibration instruction is obtained after a trigger operation on the confirmation control is received.

### Claim 13 (depends on 11)

The electronic device as claimed in claim 11, wherein the calibration notification comprises information on causes of detected obstacles.

### Claim 14 (depends on 9)

The electronic device as claimed in claim 9, wherein the processor is further configured to:
count third calibration positions corresponding to first detection signal values and second detection signal values; and
match the third calibration positions with the first calibration positions, and determine second calibration positions that do not match the third calibration positions in the first calibration positions.

### Claim 15

A non-transitory computer-readable storage medium with a computer program stored thereon, wherein when the computer program is executed by a processor of an electronic device, a method for calibrating a sliding of a sliding component is performed,
in which the sliding component is configured in the electronic device; the electronic device comprises a body, a detecting component and a driving component; the driving component is configured to control the sliding component to slide between a first position received in the body and a second position exposed from the body; the detecting component comprises a magnetic field generating element, a first Hall element and a second Hall element; the magnetic field generating element is fixed on the sliding component, the first Hall element and the second Hall element are fixed on the body; when the sliding component slides from the first position to the second position, the magnetic field generating element is far away from the first Hall element and close to the second Hall element; and the method comprises:
obtaining a first detection signal value sent by the first Hall element and a second detection signal value sent by the second Hall element, corresponding to one or more first calibration positions reached during a sliding process of the sliding component;
comparing the first detection signal value corresponding to each of the one or more first calibration positions with a preset first reference signal value, and comparing the second detection signal value corresponding to each of the one or more first calibration positions with a preset second reference signal value; and
calibrating the first reference signal value based on the first detection signal value, and calibrating the second reference signal value based on the second detection signal value, in response that a number of times that comparison results belong to a preset abnormal range reaches a preset threshold.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium as claimed in claim 15, wherein the method further comprises:
in response that the number of times that the comparison results belong to the preset abnormal range reaches the preset threshold, controlling the sliding component to slide to one or more preset second calibration positions that have not been reached before, and obtaining a third detection signal value sent by the first Hall element corresponding to each of the one or more second calibration positions and a fourth detection signal value sent by the second Hall element corresponding to each of the one or more second calibration positions; and
calibrating a third reference signal value of the second calibration position based on the third detection signal value, and calibrating a fourth reference signal value of the second calibration position based on the fourth detection signal value.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium as claimed in claim 15, wherein the one or more first calibration positions comprise one or more of a sliding-out deceleration position, a sliding-out accelerating position, a sliding-out interruption position, a sliding-in deceleration position, a sliding-in accelerating position, and a sliding-in interruption position, of the sliding component.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium as claimed in claim 16, wherein controlling the sliding component to slide to the one or more preset second calibration positions that have not been reached before, and obtaining the third detection signal value sent by the first Hall element corresponding to each of the one or more second calibration positions and the fourth detection signal value sent by the second Hall element corresponding to each of the one or more second calibration positions, comprises:
sending a calibration notification in a pop-up window; and
controlling the driving component to drive the sliding component to slide back and forth between the first position and the second position with a highest driving force after obtaining a confirmed calibration instruction, and obtaining the third detection signal value and the fourth detection signal value detected by the first Hall element and the second Hall element when the sliding component slides to the corresponding second calibration position.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium as claimed in claim 18, wherein the calibration notification comprises a confirmation control, and the confirmed calibration instruction is obtained after a trigger operation on the confirmation control is received,
or
wherein the calibration notification comprises information on causes of detected obstacles.

### Claim 20 (depends on 16)

The non-transitory computer-readable storage medium as claimed in claim 16, wherein the method further comprises:
counting third calibration positions corresponding to first detection signal values and second detection signal values; and
matching the third calibration positions with the first calibration positions, and determining second calibration positions that do not match the third calibration positions in the first calibration positions.
