CN109120787B - Mobile terminal, deceleration switching point calibration method and related product - Google Patents

Mobile terminal, deceleration switching point calibration method and related product Download PDF

Info

Publication number
CN109120787B
CN109120787B CN201810949528.1A CN201810949528A CN109120787B CN 109120787 B CN109120787 B CN 109120787B CN 201810949528 A CN201810949528 A CN 201810949528A CN 109120787 B CN109120787 B CN 109120787B
Authority
CN
China
Prior art keywords
value
sliding
deceleration
position sensor
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810949528.1A
Other languages
Chinese (zh)
Other versions
CN109120787A (en
Inventor
张洲川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810949528.1A priority Critical patent/CN109120787B/en
Publication of CN109120787A publication Critical patent/CN109120787A/en
Application granted granted Critical
Publication of CN109120787B publication Critical patent/CN109120787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a mobile terminal, a speed reduction switching point calibration method and a related product, which are applied to the mobile terminal, wherein the mobile terminal comprises a sliding module, the sliding of the sliding module is controlled by the mobile terminal through a position sensor, and the method comprises the following steps: acquiring at least one data set acquired by a position sensor, wherein each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process; and updating the numerical value of the deceleration point of the position sensor according to at least one data set, wherein the numerical value of the deceleration point is used for representing the numerical value of the sensor at the deceleration switching point of the sliding module in the sliding process, and the numerical value of the sensor is the numerical value of the position sensor. The embodiment of the application is favorable for improving the accuracy and the stability of the sliding module controlled by the mobile terminal.

Description

Mobile terminal, deceleration switching point calibration method and related product
Technical Field
The application relates to the technical field of mobile terminals, in particular to a mobile terminal, a speed reduction switching point calibration method and a related product.
Background
Some mobile terminals on the market have been disposed with sliding cameras at present, or have been disposed with sliding module and bear devices such as camera, flash light, to this type of sliding structure, mobile terminal can directly influence the use experience of relevant device to sliding module's control stability and degree of accuracy, therefore it is necessary to optimize sliding module's control strategy and satisfy user's diversified user demand.
Disclosure of Invention
The embodiment of the application provides a mobile terminal, a speed reduction switching point calibration method and a related product, so as to improve the accuracy and stability of the mobile terminal for controlling a sliding module.
In a first aspect, an embodiment of the present application provides a mobile terminal, including an application processor, a sliding module, and a position sensor, where the application processor is connected to the position sensor, and the application processor controls sliding of the sliding module through the position sensor; wherein,
the position sensor is used for acquiring a plurality of data sets, each data set corresponds to one effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;
the application processor is used for screening at least one data group from the plurality of data groups; and the deceleration point value is used for updating the deceleration point value of the position sensor according to the at least one data group, the deceleration point value is used for representing the sensor value of the deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor.
In a second aspect, an embodiment of the present application provides a method for calibrating a deceleration switching point, which is applied to a mobile terminal, where the mobile terminal includes a sliding module, and the mobile terminal controls sliding of the sliding module through a position sensor, and the method includes:
acquiring at least one data set acquired by the position sensor, wherein each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;
and updating a deceleration point value of the position sensor according to the at least one data set, wherein the deceleration point value is used for representing a sensor value of a deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor.
In a third aspect, an embodiment of the present application provides a deceleration switching point calibration apparatus, which is applied to a mobile terminal, where the mobile terminal includes a sliding module, and the mobile terminal controls sliding of the sliding module through a position sensor, and the apparatus includes a processing unit and a communication unit, where,
the processing unit is used for acquiring at least one data set acquired by the position sensor through the communication unit, each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process; and updating a deceleration point value of the position sensor according to the at least one data set, wherein the deceleration point value is used for representing a sensor value of a deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including an application processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the application processor, and the program includes instructions for executing the steps in any of the methods of the first aspect of the embodiments of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a sixth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in this application embodiment, mobile terminal first acquires at least one data set that passes through position sensor collection, and every data set corresponds an effectual slip process of sliding module, and the slip process is the roll-off process or the process of sliding in, and secondly, updates position sensor's deceleration point numerical value according to at least one data set, and the deceleration point numerical value is used for expressing the sensor numerical value of the deceleration switch point of sliding module in the slip process, and sensor numerical value is position sensor's numerical value. Therefore, the mobile terminal can dynamically update the numerical value of the deceleration point of the deceleration switching point according to the data set of the position sensor, so that the situation that the sensor detection deviation caused by the influence of external factors cannot be effectively compensated by continuously using the numerical value of the preconfigured deceleration point is avoided, the problem that the position is not reached or the noise is large due to the error of the position sensor can be specifically avoided, and the accuracy and the stability of the mobile terminal for controlling the sliding module are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for calibrating a deceleration switching point according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another deceleration switching point calibration method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another deceleration switching point calibration method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 6 is a block diagram of functional units of a deceleration switching point calibration apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like.
At present, the mobile phone can adopt a freely telescopic sliding module, and the inside of the mobile phone is composed of a camera module. The sliding module carries a camera flash lamp and the like, and the camera module is driven to slide out of/into the terminal body by the mobile phone mainboard. After the sliding block longitudinally and completely slides out of the terminal body, the camera function can be opened, a photographing mode is entered, and a flash lamp and the like carried by the sliding block are called so as to be used for normal operation, or the sliding block is manually controlled to slide out or retract. The whole sliding process can be accurately controlled through the two Hall sensors, and a Hall value corresponding to a required position before delivery is obtained through calibration of a precise jig and serves as a deceleration switching point at the final stage in three-stage speed change. The hall value at this position directly determines the in-place condition and the noise condition of the sliding module.
The actual situation is that after the mobile phone leaves the factory, the state of the mobile phone in the hand of the user is an uncontrollable state, and the mobile phone falls off to cause structural deformation so as to change the position of the magnet, thereby causing the value detected by the Hall sensor to change; extreme conditions such as high temperature and high humidity may cause permanent changes in the magnetic flux of the magnet, which may cause large changes in the hall values at the initial and final positions of the slide module, resulting in disadvantages of early deceleration (non-position) and late deceleration (large noise).
In view of the above problem, an embodiment of the present application provides a method for calibrating a deceleration switching point, and the following describes the embodiment of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal 1000 according to an embodiment of the present application, where the mobile terminal includes: the sliding module comprises an application processor 1100, a sliding module 1200 and a position sensor 1300, wherein the application processor is connected with the position sensor and controls the sliding of the sliding module through the position sensor; wherein,
the position sensor 1300 is configured to acquire a plurality of data sets, each data set corresponds to an effective sliding process of the sliding module 1200, and the sliding process is a sliding-out process or a sliding-in process;
the application processor 1100, configured to screen at least one data group from the plurality of data groups; and a value of the deceleration point for updating the position sensor 1300 according to the at least one data set, where the value of the deceleration point is used to represent a sensor value of a deceleration switching point of the sliding module 1200 during the sliding process, and the sensor value is the value of the position sensor.
The number of the at least one data set may be 50, 100, etc., which is not limited herein, and may be flexibly set by comprehensively considering the calculation capability, the calibration accuracy, etc.
Wherein, the slider module can be provided with any one of following device: camera modules, iris sensors, structured light sensors, and the like, without being limited thereto.
The application processor 1100 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby integrally monitoring the mobile terminal. The application processor mainly processes an operating system, a user interface, an application program and the like.
It can be seen that, in the embodiment of the application, the mobile terminal can dynamically update the deceleration point value of the deceleration switching point according to the data set of the position sensor, so that the situation that the sensor detection deviation caused by the influence of external factors cannot be effectively compensated by continuously using the preconfigured deceleration point value is avoided, the problem that the position is not reached or noise is large due to the error of the position sensor is specifically avoided, and the accuracy and the stability of the mobile terminal for controlling the sliding module are improved.
In one possible example, each of the data sets includes a first value corresponding to an end position of the sliding process; in said updating the value of the deceleration point of the position sensor according to the at least one data set, the application processor 1100 is specifically configured to: determining a first mean of the first values from the at least one data set; and the deceleration point value is updated according to the first mean value when the difference value between the first mean value and the pre-calibrated first value is larger than a first preset threshold value.
Specifically, the first preset threshold may be obtained by a developer based on data analysis, where an error value of the position sensor at the termination position, which may be an empirical value such as 20, is obtained, and is not limited herein.
It can be seen that, in this example, when error appears in the position sensor, can lead to the slip module to slow down in advance or delay the speed reduction, all can make the sensor numerical value of the termination point of slip module appear the error, this error is accurately obtained through the difference operation to based on empirical value promptly the first condition of predetermineeing the threshold value accuracy and discerning the influence user experience, thereby accurate location needs to carry out the error scene of the speed reduction point numerical value calibration of speed reduction switch point position, improve error scene positioning accuracy, thereby improve the calibration accuracy.
In one possible example, in the aspect of updating the deceleration point value according to the first average value, the application processor 1100 is specifically configured to: and updating the numerical value of the deceleration point according to the first average value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is associated with the low-speed movement stroke of the sliding module in a pre-configuration mode, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
The second preset threshold may be obtained by calculation or by experiment, and is not limited herein.
Therefore, in this example, after the mobile terminal locates the error scene, the new deceleration point value can be accurately calculated based on the sensor value of the termination position of the actual scene and the second preset threshold value, so as to compensate the error of the position sensor and improve the accuracy and stability of controlling the sliding module.
In one possible example, the effective sliding process means that the sensor value of the end position of the sliding module 1200 during the sliding process is greater than the pre-calibrated deceleration point value.
In specific implementation, when the mobile terminal detects that a first numerical value in a currently acquired data set is larger than a pre-calibrated deceleration point numerical value, it can be determined that the sliding process includes a deceleration motion process, so that the sliding process is determined to be effective data.
Therefore, in the example, the mobile terminal can screen out the data group in the sliding process including the deceleration process through numerical value comparison, so that the purity of the sampling data is improved, and the calibration accuracy is improved.
In one possible example, the position sensor 1300 is any one of a plurality of position sensors for controlling the sliding module 1200;
the sliding process or the sliding-in process includes a three-stage shift process including an acceleration switching point and the deceleration switching point.
Therefore, in the example, the mobile terminal can be calibrated for any position sensor with problems, the calibration is flexible and convenient, three-level variable speed control is adopted for the control process of the sliding module, namely, the acceleration and the deceleration are carried out firstly, and the stability of the sliding process is improved while the sliding speed is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for calibrating a deceleration switching point, which is applied to the mobile terminal shown in any one of fig. 1, where the mobile terminal includes a sliding module, and the mobile terminal controls sliding of the sliding module through a position sensor; as shown in the figure, the deceleration switching point calibration method includes:
s201, the mobile terminal acquires at least one data set acquired through the position sensor, each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;
in a specific implementation, the acquiring, by the mobile terminal, at least one data set acquired by the position sensor includes: the mobile terminal acquires a plurality of data sets acquired by the position sensor; and screening the data sets of which the sliding process comprises a deceleration process from the plurality of data sets. The purity of the sampling data is improved, and the calibration accuracy is improved.
The number of the at least one data set may be 50, 100, etc., which is not limited herein, and may be flexibly set by comprehensively considering the calculation capability, the calibration accuracy, etc.
S202, the mobile terminal updates the numerical value of the deceleration point of the position sensor according to the at least one data group, the numerical value of the deceleration point is used for representing the numerical value of the sensor at the deceleration switching point of the sliding module in the sliding process, and the numerical value of the sensor is the numerical value of the position sensor.
It can be seen that, in this application embodiment, mobile terminal first acquires at least one data set that passes through position sensor collection, and every data set corresponds an effectual slip process of sliding module, and the slip process is the roll-off process or the process of sliding in, and secondly, updates position sensor's deceleration point numerical value according to at least one data set, and the deceleration point numerical value is used for expressing the sensor numerical value of the deceleration switch point of sliding module in the slip process, and sensor numerical value is position sensor's numerical value. Therefore, the mobile terminal can dynamically update the numerical value of the deceleration point of the deceleration switching point according to the data set of the position sensor, so that the situation that the sensor detection deviation caused by the influence of external factors cannot be effectively compensated by continuously using the numerical value of the preconfigured deceleration point is avoided, the problem that the position is not reached or the noise is large due to the error of the position sensor can be specifically avoided, and the accuracy and the stability of the mobile terminal for controlling the sliding module are improved.
In one possible example, each of the data sets includes a first value corresponding to an end position of the sliding process; the mobile terminal updating the value of the deceleration point of the position sensor according to the at least one data set, including: the mobile terminal determines a first mean value of the first numerical value according to the at least one data group; and when detecting that the difference value between the first average value and the pre-calibrated first value is greater than a first preset threshold value, updating the numerical value of the deceleration point according to the first average value.
Specifically, the first preset threshold may be obtained by a developer based on data analysis, where an error value of the position sensor at the termination position, which may be an empirical value such as 20, is obtained, and is not limited herein.
It can be seen that, in this example, when error appears in the position sensor, can lead to the slip module to slow down in advance or delay the speed reduction, all can make the sensor numerical value of the termination point of slip module appear the error, this error is accurately obtained through the difference operation to based on empirical value promptly the first condition of predetermineeing the threshold value accuracy and discerning the influence user experience, thereby accurate location needs to carry out the error scene of the speed reduction point numerical value calibration of speed reduction switch point position, improve error scene positioning accuracy, thereby improve the calibration accuracy.
In one possible example, the updating, by the mobile terminal, the deceleration point value according to the first average value includes: and the mobile terminal updates the numerical value of the deceleration point according to the first mean value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is associated with the low-speed movement stroke of the sliding module in a pre-configuration mode, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
The second preset threshold may be obtained by calculation or by experiment, and is not limited herein.
Therefore, in this example, after the mobile terminal locates the error scene, the new deceleration point value can be accurately calculated based on the sensor value of the termination position of the actual scene and the second preset threshold value, so as to compensate the error of the position sensor and improve the accuracy and stability of controlling the sliding module.
In one possible example, the effective sliding process means that the sensor value of the end position of the sliding module in the sliding process is larger than the pre-calibrated deceleration point value.
In specific implementation, when the mobile terminal detects that a first numerical value in a currently acquired data set is larger than a pre-calibrated deceleration point numerical value, it can be determined that the sliding process includes a deceleration motion process, so that the sliding process is determined to be effective data.
Therefore, in the example, the mobile terminal can screen out the data group in the sliding process including the deceleration process through numerical value comparison, so that the purity of the sampling data is improved, and the calibration accuracy is improved.
In one possible example, the position sensor is any one of a plurality of position sensors for controlling the slide module;
the sliding process or the sliding-in process includes a three-stage shift process including an acceleration switching point and the deceleration switching point.
Therefore, in the example, the mobile terminal can be calibrated for any position sensor with problems, the calibration is flexible and convenient, three-level variable speed control is adopted for the control process of the sliding module, namely, the acceleration and the deceleration are carried out firstly, and the stability of the sliding process is improved while the sliding speed is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a method for calibrating a slow-down switching point according to an embodiment of the present application, applied to the mobile terminal shown in fig. 1, where the mobile terminal includes a sliding module, and the mobile terminal controls the sliding of the sliding module through a position sensor, and as shown in the figure, the method for calibrating a slow-down switching point includes:
s301, the mobile terminal acquires at least one data set acquired through the position sensor, each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process; each data set comprises a first numerical value, and the first numerical value corresponds to the termination position of the sliding process;
s302, the mobile terminal determines a first mean value of the first numerical value according to the at least one data group;
and S303, when the mobile terminal detects that the difference value between the first average value and the pre-calibrated first value is greater than a first preset threshold value, updating the numerical value of the deceleration point according to the first average value.
It can be seen that, in this application embodiment, mobile terminal first acquires at least one data set that passes through position sensor collection, and every data set corresponds an effectual slip process of sliding module, and the slip process is the roll-off process or the process of sliding in, and secondly, updates position sensor's deceleration point numerical value according to at least one data set, and the deceleration point numerical value is used for expressing the sensor numerical value of the deceleration switch point of sliding module in the slip process, and sensor numerical value is position sensor's numerical value. Therefore, the mobile terminal can dynamically update the numerical value of the deceleration point of the deceleration switching point according to the data set of the position sensor, so that the situation that the sensor detection deviation caused by the influence of external factors cannot be effectively compensated by continuously using the numerical value of the preconfigured deceleration point is avoided, the problem that the position is not reached or the noise is large due to the error of the position sensor can be specifically avoided, and the accuracy and the stability of the mobile terminal for controlling the sliding module are improved.
In addition, when error appears in the position sensor, can lead to the slip module to slow down or postpone the speed reduction in advance, all can make the sensor numerical value of the termination point of slip module appear the error, this error is accurately obtained through the difference operation to based on empirical value promptly first preset threshold value accurately discerns the condition that influences user experience, thereby accurate location needs to carry out the error scene of the speed reduction point numerical value calibration of speed reduction switch point position, improve error scene positioning accuracy, thereby improve calibration accuracy.
Referring to fig. 4, fig. 4 is a schematic flow chart of a method for calibrating a slow-down switching point according to an embodiment of the present application, applied to the mobile terminal shown in fig. 1, where the mobile terminal includes a sliding module, and the mobile terminal controls the sliding of the sliding module through a position sensor, and as shown in the figure, the method for calibrating a slow-down switching point includes:
s401, the mobile terminal collects a plurality of data sets, each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;
s402, the mobile terminal screens at least one data group from the plurality of data groups; each data set comprises a first numerical value, and the first numerical value corresponds to the termination position of the sliding process;
s403, the mobile terminal determines a first mean value of the first numerical value according to the at least one data group;
s404, when detecting that the difference value between the first mean value and a pre-calibrated first value is greater than a first preset threshold value, the mobile terminal updates the numerical value of the deceleration point according to the first mean value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is pre-configured and is associated with the low-speed movement stroke of the sliding module, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
It can be seen that, in this application embodiment, mobile terminal first acquires at least one data set that passes through position sensor collection, and every data set corresponds an effectual slip process of sliding module, and the slip process is the roll-off process or the process of sliding in, and secondly, updates position sensor's deceleration point numerical value according to at least one data set, and the deceleration point numerical value is used for expressing the sensor numerical value of the deceleration switch point of sliding module in the slip process, and sensor numerical value is position sensor's numerical value. Therefore, the mobile terminal can dynamically update the numerical value of the deceleration point of the deceleration switching point according to the data set of the position sensor, so that the situation that the sensor detection deviation caused by the influence of external factors cannot be effectively compensated by continuously using the numerical value of the preconfigured deceleration point is avoided, the problem that the position is not reached or the noise is large due to the error of the position sensor can be specifically avoided, and the accuracy and the stability of the mobile terminal for controlling the sliding module are improved.
In addition, when error appears in the position sensor, can lead to the slip module to slow down or postpone the speed reduction in advance, all can make the sensor numerical value of the termination point of slip module appear the error, this error is accurately obtained through the difference operation to based on empirical value promptly first preset threshold value accurately discerns the condition that influences user experience, thereby accurate location needs to carry out the error scene of the speed reduction point numerical value calibration of speed reduction switch point position, improve error scene positioning accuracy, thereby improve calibration accuracy.
In addition, after an error scene is positioned, the mobile terminal can accurately calculate a new deceleration point value based on the sensor value of the termination position of the actual scene and a second preset threshold value, so that the error of the position sensor is compensated, and the accuracy and the stability of the sliding module are improved.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal 500 according to an embodiment of the present application, and as shown in the drawing, the mobile terminal 500 includes a processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the processor 510, and the one or more programs 521 include instructions for performing the following steps;
acquiring at least one data set acquired by the position sensor, wherein each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;
and updating a deceleration point value of the position sensor according to the at least one data set, wherein the deceleration point value is used for representing a sensor value of a deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor.
Wherein the communication interface 530 may be a local area network wireless communication module.
It can be seen that, in this application embodiment, mobile terminal first acquires at least one data set that passes through position sensor collection, and every data set corresponds an effectual slip process of sliding module, and the slip process is the roll-off process or the process of sliding in, and secondly, updates position sensor's deceleration point numerical value according to at least one data set, and the deceleration point numerical value is used for expressing the sensor numerical value of the deceleration switch point of sliding module in the slip process, and sensor numerical value is position sensor's numerical value. Therefore, the mobile terminal can dynamically update the numerical value of the deceleration point of the deceleration switching point according to the data set of the position sensor, so that the situation that the sensor detection deviation caused by the influence of external factors cannot be effectively compensated by continuously using the numerical value of the preconfigured deceleration point is avoided, the problem that the position is not reached or the noise is large due to the error of the position sensor can be specifically avoided, and the accuracy and the stability of the mobile terminal for controlling the sliding module are improved.
In one possible example, each of the data sets includes a first value corresponding to an end position of the sliding process; in said updating the value of the deceleration point of the position sensor according to said at least one data set, the instructions of the program are specifically adapted to perform the following operations: determining a first mean of the first values from the at least one data set; and the deceleration point value is updated according to the first mean value when the difference value between the first mean value and the pre-calibrated first value is larger than a first preset threshold value.
In one possible example, in said updating the deceleration point value according to the first mean value, the instructions in the program are specifically configured to: and updating the numerical value of the deceleration point according to the first average value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is associated with the low-speed movement stroke of the sliding module in a pre-configuration mode, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
In one possible example, the effective sliding process means that the sensor value of the end position of the sliding module in the sliding process is larger than the pre-calibrated deceleration point value.
In one possible example, the position sensor is any one of a plurality of position sensors for controlling the slide module;
the sliding process or the sliding-in process includes a three-stage shift process including an acceleration switching point and the deceleration switching point.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram showing functional units of a deceleration switching point calibration apparatus 600 according to an embodiment of the present application. The apparatus 600 for calibrating a deceleration switching point is applied to a mobile terminal as shown in fig. 1, the mobile terminal including a sliding module, the mobile terminal controlling sliding of the sliding module through a position sensor, the apparatus 600 for calibrating a deceleration switching point including a processing unit 601 and a communication unit 602, wherein,
the processing unit 601 is configured to obtain, through the communication unit, at least one data set acquired by the position sensor, where each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a slide-out process or a slide-in process; and updating a deceleration point value of the position sensor according to the at least one data set, wherein the deceleration point value is used for representing a sensor value of a deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor.
The apparatus for calibrating a slow-down switching point may further include a storage unit 603 for storing program codes and data of the mobile terminal. The processing unit 601 may be an application processor, the communication unit 602 may be a global communication bus, a transceiver, etc., and the storage unit 603 may be a memory.
It can be seen that, in this application embodiment, mobile terminal first acquires at least one data set that passes through position sensor collection, and every data set corresponds an effectual slip process of sliding module, and the slip process is the roll-off process or the process of sliding in, and secondly, updates position sensor's deceleration point numerical value according to at least one data set, and the deceleration point numerical value is used for expressing the sensor numerical value of the deceleration switch point of sliding module in the slip process, and sensor numerical value is position sensor's numerical value. Therefore, the mobile terminal can dynamically update the numerical value of the deceleration point of the deceleration switching point according to the data set of the position sensor, so that the situation that the sensor detection deviation caused by the influence of external factors cannot be effectively compensated by continuously using the numerical value of the preconfigured deceleration point is avoided, the problem that the position is not reached or the noise is large due to the error of the position sensor can be specifically avoided, and the accuracy and the stability of the mobile terminal for controlling the sliding module are improved.
In one possible example, each of the data sets includes a first value corresponding to an end position of the sliding process; in the aspect of the updating the value of the deceleration point of the position sensor according to the at least one data set, the processing unit 601 is specifically configured to: determining a first mean of the first values from the at least one data set; and when detecting that the difference value between the first mean value and the pre-calibrated first numerical value is greater than a first preset threshold value, updating the numerical value of the deceleration point according to the first mean value.
In one possible example, in the aspect of updating the deceleration point value according to the first average value, the processing unit 601 is specifically configured to: and updating the numerical value of the deceleration point according to the first average value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is associated with the low-speed movement stroke of the sliding module in a pre-configuration mode, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
In one possible example, the effective sliding process means that the sensor value of the end position of the sliding module in the sliding process is larger than the pre-calibrated deceleration point value.
In one possible example, the position sensor is any one of a plurality of position sensors for controlling the slide module;
the sliding process or the sliding-in process includes a three-stage shift process including an acceleration switching point and the deceleration switching point.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A mobile terminal is characterized by comprising an application processor, a sliding module and a position sensor, wherein the application processor is connected with the position sensor and controls the sliding of the sliding module through the position sensor; wherein,
the position sensor is used for acquiring a plurality of data sets, each data set corresponds to one effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;
the application processor is used for screening at least one data group from the plurality of data groups; the deceleration point value is used for representing the sensor value of a deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor;
wherein each data set comprises a first numerical value, and the first numerical value corresponds to the termination position of the sliding process; in said updating the value of the deceleration point of the position sensor according to the at least one data set, the application processor is specifically configured to: determining a first mean of the first values from the at least one data set; and updating the deceleration point value according to the first mean value when detecting that the difference value between the first mean value and a pre-calibrated first value is greater than a first preset threshold value;
wherein, in said updating the deceleration point value according to the first mean, the application processor is specifically configured to: and updating the numerical value of the deceleration point according to the first average value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is associated with the low-speed movement stroke of the sliding module in a pre-configuration mode, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
2. The mobile terminal according to claim 1, wherein the effective sliding process means that the sensor value of the end position of the sliding module in the sliding process is greater than the pre-calibrated deceleration point value.
3. The mobile terminal according to any of claims 1-2, wherein the position sensor is any one of a plurality of position sensors for controlling the sliding module;
the sliding process or the sliding-in process includes a three-stage shift process including an acceleration switching point and the deceleration switching point.
4. A deceleration switching point calibration method is applied to a mobile terminal, the mobile terminal comprises a sliding module, the mobile terminal controls the sliding of the sliding module through a position sensor, and the method comprises the following steps:
acquiring at least one data set acquired by the position sensor, wherein each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;
updating a deceleration point value of the position sensor according to the at least one data set, wherein the deceleration point value is used for representing a sensor value of a deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor;
wherein each data set comprises a first numerical value, and the first numerical value corresponds to the termination position of the sliding process; said updating a deceleration point value of said position sensor based on said at least one data set comprises:
determining a first mean of the first values from the at least one data set;
when the difference value between the first mean value and a pre-calibrated first numerical value is larger than a first preset threshold value, updating the numerical value of the deceleration point according to the first mean value;
wherein the updating the deceleration point value according to the first mean value includes:
and updating the numerical value of the deceleration point according to the first average value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is associated with the low-speed movement stroke of the sliding module in a pre-configuration mode, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
5. The method according to claim 4, wherein the effective sliding process is characterized in that the sensor value of the end position of the sliding module in the sliding process is larger than the pre-calibrated deceleration point value.
6. The method according to any one of claims 4 to 5, wherein the position sensor is any one of a plurality of position sensors for controlling the slide module;
the sliding process or the sliding-in process includes a three-stage shift process including an acceleration switching point and the deceleration switching point.
7. A deceleration switching point calibration device is applied to a mobile terminal, the mobile terminal comprises a sliding module, the mobile terminal controls the sliding of the sliding module through a position sensor, the device comprises a processing unit and a communication unit, wherein,
the processing unit is used for acquiring at least one data set acquired by the position sensor through the communication unit, each data set corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process; updating a deceleration point value of the position sensor according to the at least one data set, wherein the deceleration point value is used for representing a sensor value of a deceleration switching point of the sliding module in the sliding process, and the sensor value is the value of the position sensor;
wherein each data set comprises a first numerical value, and the first numerical value corresponds to the termination position of the sliding process; said updating a deceleration point value of said position sensor based on said at least one data set comprises:
determining a first mean of the first values from the at least one data set;
when the difference value between the first mean value and a pre-calibrated first numerical value is larger than a first preset threshold value, updating the numerical value of the deceleration point according to the first mean value;
wherein the updating the deceleration point value according to the first mean value includes:
and updating the numerical value of the deceleration point according to the first average value and a second preset threshold value, wherein the second preset threshold value is a sensor numerical value which is associated with the low-speed movement stroke of the sliding module in a pre-configuration mode, and the low-speed movement stroke corresponds to the stroke of the sliding module after deceleration in the sliding process.
8. A mobile terminal comprising an application processor, a memory, a communication interface, and one or more programs stored in the memory and configured for execution by the application processor, the programs comprising instructions for performing the steps in the method of any of claims 4-6.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of the claims 4-6.
CN201810949528.1A 2018-08-20 2018-08-20 Mobile terminal, deceleration switching point calibration method and related product Active CN109120787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810949528.1A CN109120787B (en) 2018-08-20 2018-08-20 Mobile terminal, deceleration switching point calibration method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810949528.1A CN109120787B (en) 2018-08-20 2018-08-20 Mobile terminal, deceleration switching point calibration method and related product

Publications (2)

Publication Number Publication Date
CN109120787A CN109120787A (en) 2019-01-01
CN109120787B true CN109120787B (en) 2020-12-29

Family

ID=64853370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810949528.1A Active CN109120787B (en) 2018-08-20 2018-08-20 Mobile terminal, deceleration switching point calibration method and related product

Country Status (1)

Country Link
CN (1) CN109120787B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113865632B (en) * 2020-06-30 2024-05-07 北京小米移动软件有限公司 Method, device, system and medium for calibrating internal magnetic field of electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202309797U (en) * 2011-10-26 2012-07-04 杭州安费诺飞凤通信部品有限公司 Ejecting device of camera on portable electronic equipment terminal
CN105049602A (en) * 2015-06-05 2015-11-11 广东小天才科技有限公司 Method and device for calibrating mobile terminal
CN107092772A (en) * 2017-03-01 2017-08-25 深圳怡化电脑股份有限公司 The determination method and its device of a kind of sensor characteristic curve
CN107607898A (en) * 2017-09-04 2018-01-19 维沃移动通信有限公司 A kind of calibration method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5140364B2 (en) * 2007-09-28 2013-02-06 京セラ株式会社 Mobile terminal, display switching method, display switching program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202309797U (en) * 2011-10-26 2012-07-04 杭州安费诺飞凤通信部品有限公司 Ejecting device of camera on portable electronic equipment terminal
CN105049602A (en) * 2015-06-05 2015-11-11 广东小天才科技有限公司 Method and device for calibrating mobile terminal
CN107092772A (en) * 2017-03-01 2017-08-25 深圳怡化电脑股份有限公司 The determination method and its device of a kind of sensor characteristic curve
CN107607898A (en) * 2017-09-04 2018-01-19 维沃移动通信有限公司 A kind of calibration method and mobile terminal

Also Published As

Publication number Publication date
CN109120787A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN109246304B (en) Mobile terminal, calibration method and related product
EP3627823B1 (en) Image selection method and related product
CN108764056B (en) Brightness adjusting method and related product
EP3276301B1 (en) Mobile terminal and method for calculating a bending angle
WO2015143892A1 (en) Video processing method, device and system
CN109040348B (en) Electronic device, drive control method and related product
CN110009004B (en) Image data processing method, computer device, and storage medium
CN107831996A (en) Recognition of face starts method and Related product
EP3883308A1 (en) Bandwidth part configuration method and device
CN105528162A (en) Mobile terminal control method, mobile terminal control device and mobile terminal
CN108829277B (en) Electronic device, speed control method and related product
CN109814961A (en) List controls method, apparatus, electronic equipment and storage medium
CN109120787B (en) Mobile terminal, deceleration switching point calibration method and related product
CN109061611B (en) Proximity sensor calibration method and related device
CN111757008A (en) Focusing method, device and computer readable storage medium
US20160150207A1 (en) Sound signal processing method and apparatus, and mobile terminal
CN108037987B (en) Application program control method, device and storage medium
CN110800277B (en) Call processing method and related product
CN109032648B (en) Application program updating method, mobile terminal and storage medium
CN107273006A (en) A kind of method for information display, equipment and computer-readable recording medium
CN107835336B (en) Dual-camera frame synchronization method and device, user terminal and storage medium
CN110970002B (en) Display screen brightness adjusting method and related device
CN109357608B (en) Calibration system and calibration jig
EP4061057A1 (en) Access method and apparatus for access point, electronic device, and storage medium
CN116737290A (en) Finger joint knocking event identification method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant