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

Mobile terminal, deceleration switching point calibration method and related products 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)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (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 products

技术领域technical field

本申请涉及移动终端技术领域,具体涉及一种移动终端、减速切换点校准方法及相关产品。The present application relates to the technical field of mobile terminals, in particular to a mobile terminal, a method for calibrating a deceleration switching point, and related products.

背景技术Background technique

目前市面上的一些移动终端已经配置滑动式摄像头,或者配置滑动模组来承载摄像头、闪光灯等器件,对于该类滑动式结构,移动终端对滑动模组的控制稳定性和准确度会直接影响相关器件的使用体验,因此有必要优化滑动模组的控制策略来满足用户的多样性使用需求。At present, some mobile terminals on the market have been equipped with sliding cameras, or are equipped with sliding modules to carry cameras, flashes and other devices. For such sliding structures, the control stability and accuracy of the mobile terminals on the sliding modules will directly affect related Therefore, it is necessary to optimize the control strategy of the sliding module to meet the diverse needs of users.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种移动终端、减速切换点校准方法及相关产品,以期提高移动终端控制滑动模组的精确度和稳定性。Embodiments of the present application provide a mobile terminal, a method for calibrating a deceleration switching point, and related products, so as to improve the accuracy and stability of the mobile terminal controlling the 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, the application processor is connected to the position sensor, and the application processor controls the position sensor through the position sensor. The sliding of the sliding module; wherein,

所述位置传感器,用于采集多个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;The position sensor is used to collect multiple data groups, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;

所述应用处理器,用于从所述多个数据组中筛选至少一个数据组;以及用于根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值。the application processor, for screening at least one data set from the plurality of data sets; and for updating a deceleration point value of the position sensor according to the at least one data set, the deceleration point value being used to represent The sensor value of the deceleration switching point of the sliding module during 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 the sliding of the sliding module through a position sensor, and the method include:

获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;Acquiring at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;

根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值。The deceleration point value of the position sensor is updated according to the at least one data set, and the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is all value of the position sensor.

第三方面,本申请实施例提供一种减速切换点校准装置,应用于移动终端,所述移动终端包括滑动模组,所述移动终端通过位置传感器控制所述滑动模组的滑动,所述装置包括处理单元和通信单元,其中,In a third aspect, an embodiment of the present application provides a deceleration switching point calibration device, which is applied to a mobile terminal, where the mobile terminal includes a sliding module, and the mobile terminal controls the sliding of the sliding module through a position sensor, and the device including a processing unit and a communication unit, wherein,

所述处理单元,用于通过所述通信单元获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;以及根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值。The processing unit is configured to acquire at least one data group collected by the position sensor through the communication unit, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or sliding-in process; and updating the deceleration point value of the position sensor according to the at least one data set, the deceleration point value being used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, 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, wherein the one or more programs are stored in the memory, and are configured by the above Executed by an application processor, the above program includes instructions for executing steps in any method in the first aspect of the embodiments of the present application.

第五方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the computer program as described in the first embodiment of the present application. Some or all of the steps described in either method of the second aspect.

第六方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a sixth aspect, an embodiment of 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 execute as implemented in the present application. Examples include some or all of the steps described in any method of the second aspect. The computer program product may be a software installation package.

可以看出,本申请实施例中,移动终端首先获取通过位置传感器采集的至少一个数据组,每个数据组对应滑动模组的一次有效的滑动过程,滑动过程为滑出过程或滑入过程,其次,根据至少一个数据组更新位置传感器的减速点数值,减速点数值用于表示滑动模组在滑动过程中的减速切换点的传感器数值,传感器数值为位置传感器的数值。可见,移动终端能够根据位置传感器的数据组对减速切换点的减速点数值进行动态更新,从而避免一直沿用预配置的减速点数值而无法有效补偿因外界因素影响而导致的传感器检测偏差,具体可以避免因位置传感器误差导致的不到位或者杂音大的问题,有利于提高移动终端控制滑动模组的准确度和稳定性。It can be seen that, in the embodiment of the present application, the mobile terminal first acquires at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process, Secondly, the deceleration point value of the position sensor is updated according to at least one data set, the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is the value of the position sensor. It can be seen that 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 as to avoid using the pre-configured deceleration point value all the time and cannot effectively compensate the sensor detection deviation caused by the influence of external factors. Avoiding the problem of in-position or large noise caused by the error of the position sensor is beneficial to improve the accuracy and stability of the mobile terminal controlling the sliding module.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请实施例提供的一种移动终端的结构示意图;1 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;

图2是本申请实施例提供的一种减速切换点校准方法的流程示意图;2 is a schematic flowchart of a method for calibrating a deceleration switching point provided by an embodiment of the present application;

图3是本申请实施例提供的另一种减速切换点校准方法的流程示意图;3 is a schematic flowchart of another deceleration switching point calibration method provided by an embodiment of the present application;

图4是本申请实施例提供的另一种减速切换点校准方法的流程示意图;4 is a schematic flowchart of another deceleration switching point calibration method provided by an embodiment of the present application;

图5是本申请实施例提供的一种移动终端的结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;

图6是本申请实施例提供的一种减速切换点校准装置的功能单元组成框图。FIG. 6 is a block diagram of functional units of a deceleration switching point calibration device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work 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 the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。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 present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment). Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on.

目前,手机可以采用自由伸缩的滑动模组,其内部由camera模组构成。由滑动模组搭载摄像头闪光灯等,在手机主板驱动下,带动摄像头模组滑出/滑入终端本体。当滑块纵向完全滑出终端本体后,会打开camera功能,进入拍照模式,调用滑块搭载的闪光灯等,以供应用正常运行,或者手动控制滑块滑出或者收回。整个滑动过程可以通过两个霍尔传感器精确控制,出厂前经过精密治具的校准得到到位前所需位置对应的霍尔值,以此作为三级变速中最后阶段的减速切换点。这个位置的霍尔值直接决定了滑动模组的到位情况和杂音情况。At present, the mobile phone can use a freely retractable sliding module, and its interior is composed of a camera module. The sliding module is equipped with camera flash, etc., driven by the mainboard of the mobile phone, to drive the camera module to slide out/into the terminal body. When the slider is completely slid out of the terminal body vertically, the camera function will be turned on, the photo mode will be entered, and the flash mounted on the slider will be called, so that the application can run normally, or the slider can be manually controlled to slide out or retract. The entire sliding process can be precisely controlled by two Hall sensors. The Hall value corresponding to the required position before the factory is calibrated by the precision jig before the factory is obtained, which is used as the deceleration switching point in the final stage of the three-stage speed change. The Hall value of this position directly determines the position and noise of the sliding module.

实际情况是,手机在出厂后,在用户手中的状态为不可控状态,跌落导致结构上的形变使得磁铁位置变化,从而导致霍尔传感器检测到的值发生变化;高温高湿等极限条件使得磁铁的磁通量存在永久性变化的可能性,上述因素会导致滑动模组初始位置和末位置的霍尔值发生较大变化,造成提前减速(不到位)和延后减速(杂音大)的不良。The actual situation is that after the mobile phone leaves the factory, the state in the user's hand is uncontrollable. The structural deformation caused by the drop causes the position of the magnet to change, which causes the value detected by the Hall sensor to change; extreme conditions such as high temperature and high humidity make the magnet There is a possibility of permanent change in the magnetic flux of the sliding module. The above factors will cause the Hall value at the initial position and the end position of the sliding module to change greatly, resulting in the failure of early deceleration (not in place) and delayed deceleration (big noise).

针对上述问题,本申请实施例提出一种减速切换点校准方法,下面对本申请实施例进行详细介绍。In view of the above problems, an embodiment of the present application proposes a method for calibrating a deceleration switching point, and the embodiment of the present application will be described in detail below.

请参阅图1,图1是本申请实施例提供了一种移动终端1000的结构示意图,所述移动终端包括:应用处理器1100、滑动模组1200和位置传感器1300,所述应用处理器连接所述位置传感器,所述应用处理器通过所述位置传感器控制所述滑动模组的滑动;其中,Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a mobile terminal 1000 provided by an embodiment of the present application. The mobile terminal includes: an application processor 1100, a sliding module 1200, and a position sensor 1300. The application processor is connected to the the position sensor, the application processor controls the sliding of the sliding module through the position sensor; wherein,

所述位置传感器1300,用于采集多个数据组,每个数据组对应所述滑动模组1200的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;The position sensor 1300 is used to collect multiple data groups, each data group 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;

所述应用处理器1100,用于从所述多个数据组中筛选至少一个数据组;以及用于根据所述至少一个数据组更新所述位置传感器1300的减速点数值,所述减速点数值用于表示所述滑动模组1200在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值。The application processor 1100 is configured to filter at least one data group from the plurality of data groups; and is configured to update the deceleration point value of the position sensor 1300 according to the at least one data group, the deceleration point value using is the sensor value representing the deceleration switching point of the sliding module 1200 during the sliding process, and the sensor value is the value of the position sensor.

其中,所述至少一个数据组的组数可以是50、100等,此处不做唯一限定,具体可以综合考量计算能力、校准精度等因素进行灵活设置。The number of groups of the at least one data group may be 50, 100, etc., which is not uniquely limited here, and may be flexibly set by comprehensively considering factors such as computing power and calibration accuracy.

其中,所述滑块模组可以设置有任意以下一种器件:相机模组,虹膜传感器、结构光传感器等,此处不做唯一限定。Wherein, the slider module may be provided with any of the following devices: a camera module, an iris sensor, a structured light sensor, etc., which are not uniquely limited here.

其中,应用处理器1100是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。其中,应用处理器主要处理操作系统、用户界面和应用程序等。Among them, the application processor 1100 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory, and invokes the software programs and/or modules stored in the memory. Data, perform various functions of the mobile terminal and process data, so as to carry out overall monitoring of the mobile terminal. Among them, the application processor mainly deals with the operating system, user interface, and application programs.

可以看出,本申请实施例中,移动终端能够根据位置传感器的数据组对减速切换点的减速点数值进行动态更新,从而避免一直沿用预配置的减速点数值而无法有效补偿因外界因素影响而导致的传感器检测偏差,具体可以避免因位置传感器误差导致的不到位或者杂音大的问题,有利于提高移动终端控制滑动模组的准确度和稳定性。It can be seen that, in the embodiment of the present 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 as to avoid using the preconfigured deceleration point value all the time and cannot effectively compensate for the influence of external factors. The resulting sensor detection deviation can specifically avoid the problem of in-position or large noise caused by the error of the position sensor, which is beneficial to improve the accuracy and stability of the mobile terminal controlling the sliding module.

在一个可能的示例中,所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;在所述根据所述至少一个数据组更新所述位置传感器的减速点数值方面,所述应用处理器具体1100用于:根据所述至少一个数据组确定所述第一数值的第一均值;以及用于在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值。In a possible example, each data set includes a first numerical value, and the first numerical value corresponds to the end position of the sliding process; when updating the deceleration points of the position sensor according to the at least one data set In terms of value, the application processor 1100 is specifically configured to: determine a first mean value of the first value according to the at least one data set; When the difference is greater than the first preset threshold, the deceleration point value is updated according to the first average value.

其中,所述第一预设阈值具体可以由开发人员基于数据分析得到影响用户使用体验情况下,位置传感器在终止位置处的误差值,例如可以是20等经验数值,此处不做唯一限定。Wherein, the first preset threshold can be specifically obtained by the developer based on data analysis, the error value of the position sensor at the termination position when the user experience is affected, for example, an empirical value such as 20, which is not uniquely limited here.

可见,本示例中,由于位置传感器出现误差时,会导致滑动模组提前减速或者延后减速,均会使得滑动模组的终止位置的传感器数值出现误差,该误差通过差值运行准确得到,并基于经验值即第一预设阈值准确识别出影响用户体验的情况,从而精准定位需要进行减速切换点位置的减速点数值校准的误差场景,提高误差场景定位准确度,从而提高校准准确度。It can be seen that in this example, due to the error of the position sensor, the sliding module will decelerate in advance or delay the deceleration, which will cause an error in the sensor value of the end position of the sliding module. The error is accurately obtained through the difference operation, and Based on the empirical value, that is, the first preset threshold, the situation that affects the user experience is accurately identified, so as to accurately locate the error scene that requires the deceleration point numerical calibration of the deceleration switching point position, and improve the positioning accuracy of the error scene, thereby improving the calibration accuracy.

在一个可能的示例中,在所述根据所述第一均值更新所述减速点数值方面,所述应用处理器1100具体用于:根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。In a 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: update the deceleration point value according to the first average value and a second preset threshold The second preset threshold is a preconfigured sensor value associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to the stroke of the sliding module after deceleration during the sliding process.

其中,第二预设阈值可以通过计算得到,或者通过实验得到,此处不做唯一限定。Wherein, the second preset threshold can be obtained by calculation, or obtained by experiment, which is not uniquely limited here.

可见,本示例中,移动终端在定位出误差场景后,能够基于实际场景的终止位置的传感器数值和第二预设阈值准确计算出新的减速点数值,从而补偿位置传感器的误差,提高控制滑动模组的准确度和稳定性。It can be seen that in this example, after locating the error scene, the mobile terminal can accurately calculate the new deceleration point value based on the sensor value at the end position of the actual scene and the second preset threshold, thereby compensating for the error of the position sensor and improving the control sliding The accuracy and stability of the mod.

在一个可能的示例中,所述有效的滑动过程是指所述滑动模组1200在所述滑动过程中的终止位置的传感器数值大于预校准的减速点数值。In a possible example, the valid 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 a specific implementation, when the mobile terminal detects that the first value in the currently collected data set is greater than the pre-calibrated deceleration point value, the mobile terminal may determine that the current sliding process includes a deceleration movement process, and thus determines that it is valid data once.

可见,本示例中,移动终端可以通过数值比对筛选出所属滑动过程包括减速过程中的数据组,从而提高采样数据的纯度,提高校准准确度。It can be seen that, in this example, the mobile terminal can filter out the data groups belonging to the sliding process including the deceleration process through numerical comparison, thereby improving the purity of the sampled data and the calibration accuracy.

在一个可能的示例中,所述位置传感器1300为用于控制所述滑动模组1200的多个位置传感器中的任意一个位置传感器;In a possible example, the position sensor 1300 is any one of a plurality of position sensors used to control the sliding module 1200;

所述滑动过程或所述滑入过程包括三级变速过程,所述三级变速过程包括加速切换点和所述减速切换点。The sliding process or the sliding-in process includes a three-stage shifting process, and the three-stage shifting process includes an acceleration switching point and the deceleration switching point.

可见,本示例中,移动终端可以针对出现问题的任意一个位置位置传感器进行校准,灵活便捷,且针对滑动模组的控制过程采用三级变速控制,即先加速再减速,提高滑动速度的同时提高滑动过程的稳定性。It can be seen that in this example, the mobile terminal can be calibrated for any position sensor that has a problem, which is flexible and convenient, and the control process of the sliding module adopts three-stage variable speed control, that is, acceleration and deceleration first, and the sliding speed is increased at the same time. Stability of the sliding process.

请参阅图2,图2是本申请实施例提供了一种减速切换点校准方法的流程示意图,应用于如图1任一项所述的移动终端,所述移动终端包括滑动模组,所述移动终端通过位置传感器控制所述滑动模组的滑动;如图所示,本减速切换点校准方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a method for calibrating a deceleration switching point provided by an embodiment of the present application, which is applied to the mobile terminal described in any one of FIG. 1. The mobile terminal includes a sliding module, and the The mobile terminal controls the sliding of the sliding module through the position sensor; as shown in the figure, the method for calibrating the deceleration switching point includes:

S201,移动终端获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;S201, the mobile terminal acquires at least one data group collected by the position sensor, each data group 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, acquiring, by the mobile terminal, at least one data group collected by the position sensor includes: acquiring, by the mobile terminal, multiple data groups collected by the position sensor; screening all data groups from the multiple data groups The sliding process includes the data set of the deceleration process. Improve sampling data purity and improve calibration accuracy.

其中,所述至少一个数据组的组数可以是50、100等,此处不做唯一限定,具体可以综合考量计算能力、校准精度等因素进行灵活设置。The number of groups of the at least one data group may be 50, 100, etc., which is not uniquely limited here, and may be flexibly set by comprehensively considering factors such as computing power and calibration accuracy.

S202,所述移动终端根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值。S202, the mobile terminal updates the deceleration point value of the position sensor according to the at least one data group, where the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, The sensor value is the value of the position sensor.

可以看出,本申请实施例中,移动终端首先获取通过位置传感器采集的至少一个数据组,每个数据组对应滑动模组的一次有效的滑动过程,滑动过程为滑出过程或滑入过程,其次,根据至少一个数据组更新位置传感器的减速点数值,减速点数值用于表示滑动模组在滑动过程中的减速切换点的传感器数值,传感器数值为位置传感器的数值。可见,移动终端能够根据位置传感器的数据组对减速切换点的减速点数值进行动态更新,从而避免一直沿用预配置的减速点数值而无法有效补偿因外界因素影响而导致的传感器检测偏差,具体可以避免因位置传感器误差导致的不到位或者杂音大的问题,有利于提高移动终端控制滑动模组的准确度和稳定性。It can be seen that, in the embodiment of the present application, the mobile terminal first acquires at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process, Secondly, the deceleration point value of the position sensor is updated according to at least one data set, the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is the value of the position sensor. It can be seen that 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 as to avoid using the pre-configured deceleration point value all the time and cannot effectively compensate the sensor detection deviation caused by the influence of external factors. Avoiding the problem of in-position or large noise caused by the error of the position sensor is beneficial to improve the accuracy and stability of the mobile terminal controlling the sliding module.

在一个可能的示例中,所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;所述移动终端根据所述至少一个数据组更新所述位置传感器的减速点数值,包括:所述移动终端根据所述至少一个数据组确定所述第一数值的第一均值;在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值。In a possible example, each data set includes a first value, and the first value corresponds to the end position of the sliding process; the mobile terminal updates the deceleration of the position sensor according to the at least one data set point value, including: the mobile terminal determining a first average value of the first value according to the at least one data set; after detecting that the difference between the first average value and the pre-calibrated first value is greater than a first preset value When the threshold is set, the deceleration point value is updated according to the first average value.

其中,所述第一预设阈值具体可以由开发人员基于数据分析得到影响用户使用体验情况下,位置传感器在终止位置处的误差值,例如可以是20等经验数值,此处不做唯一限定。Wherein, the first preset threshold can be specifically obtained by the developer based on data analysis, the error value of the position sensor at the termination position when the user experience is affected, for example, an empirical value such as 20, which is not uniquely limited here.

可见,本示例中,由于位置传感器出现误差时,会导致滑动模组提前减速或者延后减速,均会使得滑动模组的终止位置的传感器数值出现误差,该误差通过差值运行准确得到,并基于经验值即第一预设阈值准确识别出影响用户体验的情况,从而精准定位需要进行减速切换点位置的减速点数值校准的误差场景,提高误差场景定位准确度,从而提高校准准确度。It can be seen that in this example, due to the error of the position sensor, the sliding module will decelerate in advance or delay the deceleration, which will cause an error in the sensor value of the end position of the sliding module. The error is accurately obtained through the difference operation, and Based on the empirical value, that is, the first preset threshold, the situation that affects the user experience is accurately identified, so as to accurately locate the error scene that requires the deceleration point numerical calibration of the deceleration switching point position, and improve the positioning accuracy of the error scene, thereby improving the calibration accuracy.

在一个可能的示例中,所述移动终端根据所述第一均值更新所述减速点数值,包括:所述移动终端根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。In a possible example, the mobile terminal updating the deceleration point value according to the first average value includes: the mobile terminal updating the deceleration point value according to the first average value and a second preset threshold, so The second preset threshold is a preconfigured sensor value associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to the stroke of the sliding module after deceleration during the sliding process.

其中,第二预设阈值可以通过计算得到,或者通过实验得到,此处不做唯一限定。Wherein, the second preset threshold can be obtained by calculation, or obtained by experiment, which is not uniquely limited here.

可见,本示例中,移动终端在定位出误差场景后,能够基于实际场景的终止位置的传感器数值和第二预设阈值准确计算出新的减速点数值,从而补偿位置传感器的误差,提高控制滑动模组的准确度和稳定性。It can be seen that in this example, after locating the error scene, the mobile terminal can accurately calculate the new deceleration point value based on the sensor value at the end position of the actual scene and the second preset threshold, thereby compensating for the error of the position sensor and improving the control sliding The accuracy and stability of the mod.

在一个可能的示例中,所述有效的滑动过程是指所述滑动模组在所述滑动过程中的终止位置的传感器数值大于预校准的减速点数值。In a possible example, the valid sliding process means that the sensor value of the termination position of the sliding module during the sliding process is greater than the pre-calibrated deceleration point value.

具体实现中,移动终端在检测到当前采集的数据组中的第一数值大于预校准的减速点数值时,可以确定本次滑动过程包括减速运动过程,从而确定为一次有效数据。In a specific implementation, when the mobile terminal detects that the first value in the currently collected data set is greater than the pre-calibrated deceleration point value, the mobile terminal may determine that the current sliding process includes a deceleration movement process, and thus determines that it is valid data once.

可见,本示例中,移动终端可以通过数值比对筛选出所属滑动过程包括减速过程中的数据组,从而提高采样数据的纯度,提高校准准确度。It can be seen that, in this example, the mobile terminal can filter out the data groups belonging to the sliding process including the deceleration process through numerical comparison, thereby improving the purity of the sampled data and the calibration accuracy.

在一个可能的示例中,所述位置传感器为用于控制所述滑动模组的多个位置传感器中的任意一个位置传感器;In a possible example, the position sensor is any one of a plurality of position sensors used to control the sliding module;

所述滑动过程或所述滑入过程包括三级变速过程,所述三级变速过程包括加速切换点和所述减速切换点。The sliding process or the sliding-in process includes a three-stage shifting process, and the three-stage shifting process includes an acceleration switching point and the deceleration switching point.

可见,本示例中,移动终端可以针对出现问题的任意一个位置位置传感器进行校准,灵活便捷,且针对滑动模组的控制过程采用三级变速控制,即先加速再减速,提高滑动速度的同时提高滑动过程的稳定性。It can be seen that in this example, the mobile terminal can be calibrated for any position sensor that has a problem, which is flexible and convenient, and the control process of the sliding module adopts three-stage variable speed control, that is, acceleration and deceleration first, and the sliding speed is increased at the same time. Stability of the sliding process.

与上述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种减速切换点校准方法的流程示意图,应用于如图1所述的移动终端,所述移动终端包括滑动模组,所述移动终端通过位置传感器控制所述滑动模组的滑动,如图所示,本减速切换点校准方法包括:Consistent with the embodiment shown in FIG. 2 above, please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a method for calibrating a deceleration switching point provided by an embodiment of the present application, which is applied to the mobile terminal shown in FIG. 1 . The mobile terminal includes a sliding module, and the mobile terminal controls the sliding of the sliding module through a position sensor. As shown in the figure, the method for calibrating the deceleration switching point includes:

S301,移动终端获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;S301, the mobile terminal acquires at least one data group collected by the position sensor, each data group 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 includes a first numerical value, and the first numerical value corresponds to the termination position of the sliding process;

S302,所述移动终端根据所述至少一个数据组确定所述第一数值的第一均值;S302, the mobile terminal determines a first mean value of the first value according to the at least one data group;

S303,所述移动终端在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值。S303: When detecting that the difference between the first average value and the pre-calibrated first value is greater than a first preset threshold, the mobile terminal updates the deceleration point value according to the first average value.

可以看出,本申请实施例中,移动终端首先获取通过位置传感器采集的至少一个数据组,每个数据组对应滑动模组的一次有效的滑动过程,滑动过程为滑出过程或滑入过程,其次,根据至少一个数据组更新位置传感器的减速点数值,减速点数值用于表示滑动模组在滑动过程中的减速切换点的传感器数值,传感器数值为位置传感器的数值。可见,移动终端能够根据位置传感器的数据组对减速切换点的减速点数值进行动态更新,从而避免一直沿用预配置的减速点数值而无法有效补偿因外界因素影响而导致的传感器检测偏差,具体可以避免因位置传感器误差导致的不到位或者杂音大的问题,有利于提高移动终端控制滑动模组的准确度和稳定性。It can be seen that, in the embodiment of the present application, the mobile terminal first acquires at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process, Secondly, the deceleration point value of the position sensor is updated according to at least one data set, the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is the value of the position sensor. It can be seen that 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 as to avoid using the pre-configured deceleration point value all the time and cannot effectively compensate the sensor detection deviation caused by the influence of external factors. Avoiding the problem of in-position or large noise caused by the error of the position sensor is beneficial to improve the accuracy and stability of the mobile terminal controlling the sliding module.

此外,由于位置传感器出现误差时,会导致滑动模组提前减速或者延后减速,均会使得滑动模组的终止位置的传感器数值出现误差,该误差通过差值运行准确得到,并基于经验值即第一预设阈值准确识别出影响用户体验的情况,从而精准定位需要进行减速切换点位置的减速点数值校准的误差场景,提高误差场景定位准确度,从而提高校准准确度。In addition, due to the error of the position sensor, the sliding module will decelerate in advance or delay the deceleration, which will cause an error in the sensor value of the end position of the sliding module. The first preset threshold accurately identifies the situation that affects the user experience, thereby accurately locating the error scene requiring deceleration point numerical calibration of the deceleration switching point position, and improving the positioning accuracy of the error scene, thereby improving the calibration accuracy.

与上述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种减速切换点校准方法的流程示意图,应用于如图1所述的移动终端,所述移动终端包括滑动模组,所述移动终端通过位置传感器控制所述滑动模组的滑动,如图所示,本减速切换点校准方法包括:Consistent with the embodiment shown in FIG. 2 above, please refer to FIG. 4 . FIG. 4 is a schematic flowchart of a method for calibrating a deceleration switching point provided by an embodiment of the present application, which is applied to the mobile terminal shown in FIG. 1 . The mobile terminal includes a sliding module, and the mobile terminal controls the sliding of the sliding module through a position sensor. As shown in the figure, the method for calibrating the deceleration switching point includes:

S401,移动终端采集多个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;S401, the mobile terminal collects multiple data groups, each data group 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,所述移动终端从所述多个数据组中筛选至少一个数据组;所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;S402, the mobile terminal screens at least one data group from the plurality of data groups; each data group includes a first numerical value, and the first numerical value corresponds to the termination position of the sliding process;

S403,所述移动终端根据所述至少一个数据组确定所述第一数值的第一均值;S403, the mobile terminal determines a first mean value of the first value according to the at least one data group;

S404,所述移动终端在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。S404: When detecting that the difference between the first mean value and the pre-calibrated first value is greater than a first preset threshold, the mobile terminal updates the deceleration point value according to the first mean value and the second preset threshold , the second preset threshold is a preconfigured sensor value associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to the stroke of the sliding module after deceleration during the sliding process.

可以看出,本申请实施例中,移动终端首先获取通过位置传感器采集的至少一个数据组,每个数据组对应滑动模组的一次有效的滑动过程,滑动过程为滑出过程或滑入过程,其次,根据至少一个数据组更新位置传感器的减速点数值,减速点数值用于表示滑动模组在滑动过程中的减速切换点的传感器数值,传感器数值为位置传感器的数值。可见,移动终端能够根据位置传感器的数据组对减速切换点的减速点数值进行动态更新,从而避免一直沿用预配置的减速点数值而无法有效补偿因外界因素影响而导致的传感器检测偏差,具体可以避免因位置传感器误差导致的不到位或者杂音大的问题,有利于提高移动终端控制滑动模组的准确度和稳定性。It can be seen that, in the embodiment of the present application, the mobile terminal first acquires at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process, Secondly, the deceleration point value of the position sensor is updated according to at least one data set, the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is the value of the position sensor. It can be seen that 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 as to avoid using the pre-configured deceleration point value all the time and cannot effectively compensate the sensor detection deviation caused by the influence of external factors. Avoiding the problem of in-position or large noise caused by the error of the position sensor is beneficial to improve the accuracy and stability of the mobile terminal controlling the sliding module.

此外,由于位置传感器出现误差时,会导致滑动模组提前减速或者延后减速,均会使得滑动模组的终止位置的传感器数值出现误差,该误差通过差值运行准确得到,并基于经验值即第一预设阈值准确识别出影响用户体验的情况,从而精准定位需要进行减速切换点位置的减速点数值校准的误差场景,提高误差场景定位准确度,从而提高校准准确度。In addition, due to the error of the position sensor, the sliding module will decelerate in advance or delay the deceleration, which will cause an error in the sensor value of the end position of the sliding module. The first preset threshold accurately identifies the situation that affects the user experience, thereby accurately locating the error scene requiring deceleration point numerical calibration of the deceleration switching point position, and improving the positioning accuracy of the error scene, thereby improving the calibration accuracy.

此外,移动终端在定位出误差场景后,能够基于实际场景的终止位置的传感器数值和第二预设阈值准确计算出新的减速点数值,从而补偿位置传感器的误差,提高控制滑动模组的准确度和稳定性。In addition, after locating the error scene, the mobile terminal can accurately calculate the new deceleration point value based on the sensor value of the end position of the actual scene and the second preset threshold, thereby compensating for the error of the position sensor and improving the accuracy of controlling the sliding module degree and stability.

与上述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种移动终端500的结构示意图,如图所示,所述移动终端500包括处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIG. 2 , FIG. 3 , and FIG. 4 above, please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a mobile terminal 500 provided by an embodiment of the present application. As shown in the figure, the mobile terminal 500 includes a processor 510, a memory 520, a communication interface 530, and one or more programs 521, wherein the one or more programs 521 are stored in the above-mentioned memory 520 and are configured to be executed by the above-mentioned processor 510, the One or more programs 521 include instructions for performing the following steps;

获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;Acquiring at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process;

根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值。The deceleration point value of the position sensor is updated according to the at least one data set, and the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is all value of the position sensor.

其中,所述通信接口530可以是局域网无线通信模块。The communication interface 530 may be a local area network wireless communication module.

可以看出,本申请实施例中,移动终端首先获取通过位置传感器采集的至少一个数据组,每个数据组对应滑动模组的一次有效的滑动过程,滑动过程为滑出过程或滑入过程,其次,根据至少一个数据组更新位置传感器的减速点数值,减速点数值用于表示滑动模组在滑动过程中的减速切换点的传感器数值,传感器数值为位置传感器的数值。可见,移动终端能够根据位置传感器的数据组对减速切换点的减速点数值进行动态更新,从而避免一直沿用预配置的减速点数值而无法有效补偿因外界因素影响而导致的传感器检测偏差,具体可以避免因位置传感器误差导致的不到位或者杂音大的问题,有利于提高移动终端控制滑动模组的准确度和稳定性。It can be seen that, in the embodiment of the present application, the mobile terminal first acquires at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process, Secondly, the deceleration point value of the position sensor is updated according to at least one data set, the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is the value of the position sensor. It can be seen that 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 as to avoid using the pre-configured deceleration point value all the time and cannot effectively compensate the sensor detection deviation caused by the influence of external factors. Avoiding the problem of in-position or large noise caused by the error of the position sensor is beneficial to improve the accuracy and stability of the mobile terminal controlling the sliding module.

在一个可能的示例中,所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;在所述根据所述至少一个数据组更新所述位置传感器的减速点数值方面,所述程序中的指令具体用于执行以下操作:根据所述至少一个数据组确定所述第一数值的第一均值;以及用于在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值。In a possible example, each data set includes a first numerical value, and the first numerical value corresponds to the end position of the sliding process; when updating the deceleration points of the position sensor according to the at least one data set In terms of value, the instructions in the program are specifically used to perform the following operations: determine a first mean value of the first value according to the at least one data set; When the difference of a value is greater than the first preset threshold, the deceleration point value is updated according to the first average value.

在一个可能的示例中,在所述根据所述第一均值更新所述减速点数值方面,所述程序中的指令具体用于执行以下操作:根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。In a possible example, in the aspect of updating the deceleration point value according to the first average value, the instructions in the program are specifically configured to perform the following operations: updating according to the first average value and a second preset threshold The deceleration point value, the second preset threshold value is a preconfigured sensor value associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to the sliding module after the sliding module decelerates during the sliding process. 's itinerary.

在一个可能的示例中,所述有效的滑动过程是指所述滑动模组在所述滑动过程中的终止位置的传感器数值大于预校准的减速点数值。In a possible example, the valid sliding process means that the sensor value of the termination position of the sliding module during the sliding process is greater than the pre-calibrated deceleration point value.

在一个可能的示例中,所述位置传感器为用于控制所述滑动模组的多个位置传感器中的任意一个位置传感器;In a possible example, the position sensor is any one of a plurality of position sensors used to control the sliding module;

所述滑动过程或所述滑入过程包括三级变速过程,所述三级变速过程包括加速切换点和所述减速切换点。The sliding process or the sliding-in process includes a three-stage shifting process, and the three-stage shifting process includes an acceleration switching point and the deceleration switching point.

上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to implement the above-mentioned functions, the mobile terminal includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in combination with the units and algorithm steps of each example described in the embodiments provided herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the mobile terminal may be divided into functional units according to the foregoing method examples. 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 above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.

图6是本申请实施例中所涉及的减速切换点校准装置600的功能单元组成框图。该减速切换点校准装置600应用于如图1所示的移动终端,所述移动终端包括滑动模组,所述移动终端通过位置传感器控制所述滑动模组的滑动,该减速切换点校准装置600包括处理单元601和通信单元602,其中,FIG. 6 is a block diagram of functional units of the deceleration switching point calibration device 600 involved in the embodiment of the present application. The deceleration switching point calibration device 600 is applied to a mobile terminal as shown in FIG. 1 , the mobile terminal includes a sliding module, and the mobile terminal controls the sliding of the sliding module through a position sensor, the deceleration switching point calibration device 600 It includes a processing unit 601 and a communication unit 602, wherein,

所述处理单元601,用于通过所述通信单元获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;以及根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值。The processing unit 601 is configured to acquire at least one data group collected by the position sensor through the communication unit, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is sliding out. process or sliding-in process; and updating the deceleration point value of the position sensor according to the at least one data set, the deceleration point value being used to represent the sensor value of the deceleration switching point of the sliding module in the sliding process , the sensor value is the value of the position sensor.

其中,所述减速切换点校准装置还可以包括存储单元603,用于存储移动终端的程序代码和数据。所述处理单元601可以是应用处理器,所述通信单元602可以是全局通信总线、收发器等,存储单元603可以是存储器。Wherein, the deceleration switching point calibration device 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 the embodiment of the present application, the mobile terminal first acquires at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process, Secondly, the deceleration point value of the position sensor is updated according to at least one data set, the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is the value of the position sensor. It can be seen that 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 as to avoid using the pre-configured deceleration point value all the time and cannot effectively compensate the sensor detection deviation caused by the influence of external factors. Avoiding the problem of in-position or large noise caused by the error of the position sensor is beneficial to improve the accuracy and stability of the mobile terminal controlling the sliding module.

在一个可能的示例中,所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;在所述根据所述至少一个数据组更新所述位置传感器的减速点数值方面,所述处理单元601具体用于:根据所述至少一个数据组确定所述第一数值的第一均值;以及在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值。In a possible example, each data set includes a first numerical value, and the first numerical value corresponds to the end position of the sliding process; when updating the deceleration points of the position sensor according to the at least one data set In terms of value, the processing unit 601 is specifically configured to: determine a first mean value of the first value according to the at least one data set; and when it is detected that the difference between the first mean value and the pre-calibrated first value is greater than When the first preset threshold is set, the deceleration point value is updated according to the first average value.

在一个可能的示例中,在所述根据所述第一均值更新所述减速点数值方面,所述处理单元601具体用于:根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。In a 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: update the deceleration point value according to the first average value and a second preset threshold The second preset threshold is a preconfigured sensor value associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to the stroke of the sliding module after deceleration during the sliding process.

在一个可能的示例中,所述有效的滑动过程是指所述滑动模组在所述滑动过程中的终止位置的传感器数值大于预校准的减速点数值。In a possible example, the valid sliding process means that the sensor value of the termination position of the sliding module during the sliding process is greater than the pre-calibrated deceleration point value.

在一个可能的示例中,所述位置传感器为用于控制所述滑动模组的多个位置传感器中的任意一个位置传感器;In a possible example, the position sensor is any one of a plurality of position sensors used to control the sliding module;

所述滑动过程或所述滑入过程包括三级变速过程,所述三级变速过程包括加速切换点和所述减速切换点。The sliding process or the sliding-in process includes a three-stage shifting process, and the three-stage shifting process includes an acceleration switching point and the deceleration switching point.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括移动终端。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes a mobile terminal.

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括移动终端。Embodiments of the present application further provide a computer program product, where 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 execute any one of the method embodiments described above. some or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes a mobile terminal.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.

Claims (9)

1.一种移动终端,其特征在于,包括应用处理器、滑动模组和位置传感器,所述应用处理器连接所述位置传感器,所述应用处理器通过所述位置传感器控制所述滑动模组的滑动;其中,1. A mobile terminal, characterized in that, comprising an application processor, a sliding module and a position sensor, the application processor is connected to the position sensor, and the application processor controls the sliding module through the position sensor of sliding; where, 所述位置传感器,用于采集多个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;The position sensor is used to collect multiple data groups, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process; 所述应用处理器,用于从所述多个数据组中筛选至少一个数据组;以及用于根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值;the application processor, for screening at least one data set from the plurality of data sets; and for updating a deceleration point value of the position sensor according to the at least one data set, the deceleration point value being used to represent The sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is the value of the position sensor; 其中,所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;在所述根据所述至少一个数据组更新所述位置传感器的减速点数值方面,所述应用处理器具体用于:根据所述至少一个数据组确定所述第一数值的第一均值;以及用于在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值;Wherein, each data group includes a first value, and the first value corresponds to the end position of the sliding process; in the aspect of updating the deceleration point value of the position sensor according to the at least one data group, the The application processor is specifically configured to: determine a first mean value of the first value according to the at least one data set; When setting the threshold, update the deceleration point value according to the first average value; 其中,在所述根据所述第一均值更新所述减速点数值方面,所述应用处理器具体用于:根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。Wherein, in the aspect of updating the deceleration point value according to the first average value, the application processor is specifically configured to: update the deceleration point value according to the first average value and the second preset threshold, and the first The two preset thresholds are preconfigured sensor values associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to the stroke of the sliding module after deceleration during the sliding process. 2.根据权利要求1所述的移动终端,其特征在于,所述有效的滑动过程是指所述滑动模组在所述滑动过程中的终止位置的传感器数值大于预校准的减速点数值。2 . The mobile terminal according to claim 1 , wherein the effective sliding process means that the sensor value of the termination position of the sliding module during the sliding process is greater than the pre-calibrated deceleration point value. 3 . 3.根据权利要求1-2任一项所述的移动终端,其特征在于,所述位置传感器为用于控制所述滑动模组的多个位置传感器中的任意一个位置传感器;3. The mobile terminal according to any one of claims 1-2, wherein the position sensor is any one of a plurality of position sensors used to control the sliding module; 所述滑动过程或所述滑入过程包括三级变速过程,所述三级变速过程包括加速切换点和所述减速切换点。The sliding process or the sliding-in process includes a three-stage shifting process, and the three-stage shifting process includes an acceleration switching point and the deceleration switching point. 4.一种减速切换点校准方法,其特征在于,应用于移动终端,所述移动终端包括滑动模组,所述移动终端通过位置传感器控制所述滑动模组的滑动,所述方法包括:4. A method for calibrating a deceleration switching point, characterized in that it is applied to a mobile terminal, wherein the mobile terminal comprises a sliding module, and the mobile terminal controls the sliding of the sliding module through a position sensor, the method comprising: 获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;Acquiring at least one data group collected by the position sensor, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or a sliding-in process; 根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值;The deceleration point value of the position sensor is updated according to the at least one data set, and the deceleration point value is used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, and the sensor value is all the value of the position sensor; 其中,所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;所述根据所述至少一个数据组更新所述位置传感器的减速点数值,包括:Wherein, each data group includes a first numerical value, and the first numerical value corresponds to the termination position of the sliding process; and the updating of the deceleration point value of the position sensor according to the at least one data group includes: 根据所述至少一个数据组确定所述第一数值的第一均值;determining a first mean value of the first value from the at least one data set; 在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值;When it is detected that the difference between the first average value and the pre-calibrated first value is greater than a first preset threshold, updating the deceleration point value according to the first average value; 其中,所述根据所述第一均值更新所述减速点数值,包括:Wherein, the updating of the deceleration point value according to the first mean value includes: 根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。The deceleration point value is updated according to the first average value and the second preset threshold value, the second preset threshold value is a preconfigured sensor value associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to The stroke of the sliding module after deceleration during the sliding process. 5.根据权利要求4所述的方法,其特征在于,所述有效的滑动过程是指所述滑动模组在所述滑动过程中的终止位置的传感器数值大于预校准的减速点数值。5 . The method according to claim 4 , wherein the effective sliding process means that the sensor value of the termination position of the sliding module during the sliding process is greater than the pre-calibrated deceleration point value. 6 . 6.根据权利要求4-5任一项所述的方法,其特征在于,所述位置传感器为用于控制所述滑动模组的多个位置传感器中的任意一个位置传感器;6. The method according to any one of claims 4-5, wherein the position sensor is any one of a plurality of position sensors used to control the sliding module; 所述滑动过程或所述滑入过程包括三级变速过程,所述三级变速过程包括加速切换点和所述减速切换点。The sliding process or the sliding-in process includes a three-stage shifting process, and the three-stage shifting process includes an acceleration switching point and the deceleration switching point. 7.一种减速切换点校准装置,其特征在于,应用于移动终端,所述移动终端包括滑动模组,所述移动终端通过位置传感器控制所述滑动模组的滑动,所述装置包括处理单元和通信单元,其中,7. A deceleration switching point calibration device, characterized in that it 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 device comprises a processing unit and communication unit, where, 所述处理单元,用于通过所述通信单元获取通过所述位置传感器采集的至少一个数据组,每个数据组对应所述滑动模组的一次有效的滑动过程,所述滑动过程为滑出过程或滑入过程;以及根据所述至少一个数据组更新所述位置传感器的减速点数值,所述减速点数值用于表示所述滑动模组在所述滑动过程中的减速切换点的传感器数值,所述传感器数值为所述位置传感器的数值;The processing unit is configured to acquire at least one data group collected by the position sensor through the communication unit, each data group corresponds to an effective sliding process of the sliding module, and the sliding process is a sliding-out process or sliding-in process; and updating the deceleration point value of the position sensor according to the at least one data set, the deceleration point value being used to represent the sensor value of the deceleration switching point of the sliding module during the sliding process, The sensor value is the value of the position sensor; 其中,所述每个数据组包括第一数值,所述第一数值对应所述滑动过程的终止位置;所述根据所述至少一个数据组更新所述位置传感器的减速点数值,包括:Wherein, each data group includes a first numerical value, and the first numerical value corresponds to the termination position of the sliding process; and the updating of the deceleration point value of the position sensor according to the at least one data group includes: 根据所述至少一个数据组确定所述第一数值的第一均值;determining a first mean value of the first value from the at least one data set; 在检测到所述第一均值与预校准的第一数值的差值大于第一预设阈值时,根据所述第一均值更新所述减速点数值;When it is detected that the difference between the first average value and the pre-calibrated first value is greater than a first preset threshold, updating the deceleration point value according to the first average value; 其中,所述根据所述第一均值更新所述减速点数值,包括:Wherein, the updating of the deceleration point value according to the first mean value includes: 根据所述第一均值和第二预设阈值更新所述减速点数值,所述第二预设阈值为预配置的关联所述滑动模组的低速运动行程的传感器数值,所述低速运动行程对应所述滑动模组在所述滑动过程中减速后的行程。The deceleration point value is updated according to the first average value and the second preset threshold value, the second preset threshold value is a preconfigured sensor value associated with the low-speed motion stroke of the sliding module, and the low-speed motion stroke corresponds to The stroke of the sliding module after deceleration during the sliding process. 8.一种移动终端,其特征在于,包括应用处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述应用处理器执行,所述程序包括用于执行如权利要求4-6任一项所述的方法中的步骤的指令。8. A mobile terminal, characterized by comprising an application processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured by the application The processor executes the program comprising instructions for performing the steps in the method of any of claims 4-6. 9.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求4-6任一项所述的方法。9. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 4-6.
CN201810949528.1A 2018-08-20 2018-08-20 Mobile terminal, deceleration switching point calibration method and related products 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 products

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 products

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 products

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
CN109547647B (en) Electrostatic interference control method and related product
EP3264266B1 (en) Method for positioning sounding location, and terminal device
CN107532900A (en) One kind determines calibration parameter method and mobile device
CN108021242A (en) Gyroscope data processing method, mobile terminal and computer readable storage medium
CN110517676A (en) Voice awakening method, terminal, server and storage medium
EP3826246B1 (en) Device and method for processing data packets
CN104954631A (en) Video processing method, device and system
CN109040348B (en) Electronic device, drive control method, and related products
CN109760049B (en) Mechanical arm calibration method and device and mechanical arm
CN108989492A (en) Electronic device and drive detection method
US20190268541A1 (en) Photographing direction deviation detection method, apparatus, device, and storage medium
CN109120787B (en) Mobile terminal, deceleration switching point calibration method and related products
CN109246304B (en) Mobile terminal, calibration method and related product
US11020853B2 (en) Robot, method for controlling motion of a robot and non-transitory readable medium
US11265639B2 (en) Method for earbud switching, wearable device, and storage medium
CN112612745A (en) Data transmission method and device, electronic equipment and readable storage medium
CN109061611A (en) Proximity sensor calibration method and relevant apparatus
CN108833670B (en) Backlight adjusting method and related device
CN109870172B (en) Pedometer detection method, device, equipment and storage medium
CN109587317B (en) A calibration method, device and computer storage medium
CN110225106B (en) Data transmission method, device and storage medium
CN109618026A (en) Electronic device, sliding closure method, and related products
CN111432387A (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN109357608B (en) Calibration system and calibration jig
CN108810250A (en) fall detection method and related product

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