CN110022600B - Driving current adjusting method and device, storage medium and mobile terminal - Google Patents
Driving current adjusting method and device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN110022600B CN110022600B CN201910281807.XA CN201910281807A CN110022600B CN 110022600 B CN110022600 B CN 110022600B CN 201910281807 A CN201910281807 A CN 201910281807A CN 110022600 B CN110022600 B CN 110022600B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- preset
- driving current
- current
- signal strength
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/04—Transmission power control [TPC]
- H04W52/18—TPC being performed according to specific parameters
- H04W52/24—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
- H04W52/245—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
本申请公开了一种驱动电流的调节方法、装置、存储介质及移动终端。该方法包括:获取第一驱动电流,其中,所述第一驱动电流是当前用于驱动所述预设第一器件的电流;获取第二移动终端的预设第二器件的工作状态;根据所述工作状态,确定第二驱动电流;若所述第一驱动电流和所述第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整所述第一驱动电流,得到调整后的驱动电流;按照所述调整后的驱动电流驱动所述预设第一器件。本申请可以在蓝牙的信号强度瞬间变差时,避免移动终端掉电的情况出现。
The present application discloses a driving current adjustment method, device, storage medium and mobile terminal. The method includes: acquiring a first driving current, wherein the first driving current is a current currently used to drive the preset first device; acquiring a working state of a preset second device of the second mobile terminal; If the difference between the first driving current and the second driving current is greater than the preset first threshold, the first driving current is adjusted according to the preset range, and the adjusted drive current; drive the preset first device according to the adjusted drive current. The present application can avoid the situation that the mobile terminal is powered off when the signal strength of the Bluetooth is instantaneously deteriorated.
Description
技术领域technical field
本申请属于通信技术领域,尤其涉及一种驱动电流的调节方法、装置、存储介质及移动终端。The present application belongs to the field of communication technologies, and in particular, relates to a driving current adjustment method, device, storage medium and mobile terminal.
背景技术Background technique
蓝牙,是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换。目前,当一移动终端与另一移动终端蓝牙配对连接之后,当一移动终端出现故障,或者两台移动终端之间存在如墙壁等障碍物时,会导致另一移动终端接收到的蓝牙信号强度瞬间变差,从而导致另一移动终端瞬间增大蓝牙的驱动电流,进而导致另一移动终端的电池掉电。Bluetooth, a wireless technology standard, enables short-range data exchange between fixed devices, mobile devices, and building personal area networks. At present, after a mobile terminal is paired with another mobile terminal via Bluetooth, when a mobile terminal fails, or there is an obstacle such as a wall between the two mobile terminals, the strength of the Bluetooth signal received by the other mobile terminal will be affected. It becomes worse in an instant, thereby causing another mobile terminal to instantly increase the driving current of the Bluetooth, thereby causing the battery of the other mobile terminal to lose power.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种驱动电流的调节方法、装置、存储介质及移动终端,可以在蓝牙的信号强度瞬间变差时,避免移动终端掉电的情况出现。The embodiments of the present application provide a driving current adjustment method, device, storage medium and mobile terminal, which can prevent the mobile terminal from being powered off when the signal strength of Bluetooth is instantaneously deteriorated.
本申请实施例提供一种驱动电流的调节方法,包括:An embodiment of the present application provides a method for adjusting a driving current, including:
获取第一驱动电流,其中,所述第一驱动电流是当前用于驱动所述预设第一器件的电流;acquiring a first drive current, wherein the first drive current is the current currently used to drive the preset first device;
获取第二移动终端的预设第二器件的工作状态;acquiring the working state of the preset second device of the second mobile terminal;
根据所述工作状态,确定第二驱动电流;determining a second driving current according to the working state;
若所述第一驱动电流和所述第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整所述第一驱动电流,得到调整后的驱动电流;If the difference between the first drive current and the second drive current is greater than a preset first threshold, adjusting the first drive current according to a preset range to obtain an adjusted drive current;
按照所述调整后的驱动电流驱动所述预设第一器件。The preset first device is driven according to the adjusted driving current.
本申请实施例提供一种驱动电流的调节方法,包括:An embodiment of the present application provides a method for adjusting a driving current, including:
获取第二移动终端的预设第二器件的第一工作状态;acquiring the first working state of the preset second device of the second mobile terminal;
获取第二移动终端的预设第二器件的第二工作状态;acquiring the second working state of the preset second device of the second mobile terminal;
若所述第一工作状态和所述第二工作状态满足预设条件,则获取驱动电流,其中,所述驱动电流是当前用于驱动所述预设第一器件的电流;If the first working state and the second working state satisfy a preset condition, obtaining a drive current, where the drive current is the current currently used to drive the preset first device;
按照预设幅度调整所述驱动电流,得到调整后的驱动电流;Adjust the drive current according to the preset amplitude to obtain the adjusted drive current;
按照所述调整后的驱动电流驱动所述预设第一器件。The preset first device is driven according to the adjusted driving current.
本申请实施例提供一种驱动电流的调节装置,包括:An embodiment of the present application provides a device for adjusting a driving current, including:
第一获取模块,用于获取第一驱动电流,其中,所述第一驱动电流是当前用于驱动所述预设第一器件的电流;a first obtaining module, configured to obtain a first driving current, wherein the first driving current is the current currently used to drive the preset first device;
第二获取模块,用于获取第二移动终端的预设第二器件的工作状态;a second obtaining module, configured to obtain the working state of the preset second device of the second mobile terminal;
确定模块,用于根据所述工作状态,确定第二驱动电流;a determining module, configured to determine the second driving current according to the working state;
调整模块,用于若所述第一驱动电流和所述第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整所述第一驱动电流,得到调整后的驱动电流;an adjustment module, configured to adjust the first drive current according to a preset range to obtain an adjusted drive current if the difference between the first drive current and the second drive current is greater than a preset first threshold;
驱动模块,用于按照所述调整后的驱动电流驱动所述预设第一器件。A driving module, configured to drive the preset first device according to the adjusted driving current.
本申请实施例提供一种驱动电流的调节装置,包括:An embodiment of the present application provides a device for adjusting a driving current, including:
第一获取模块,用于获取第二移动终端的预设第二器件的第一工作状态;a first obtaining module, configured to obtain a first working state of a preset second device of the second mobile terminal;
第二获取模块,用于获取第二移动终端的预设第二器件的第二工作状态;a second acquiring module, configured to acquire the second working state of the preset second device of the second mobile terminal;
第三获取模块,用于若所述第一工作状态和所述第二工作状态满足预设条件,则获取驱动电流,其中,所述驱动电流是当前用于驱动所述预设第一器件的电流;A third obtaining module, configured to obtain a drive current if the first working state and the second working state satisfy a preset condition, where the drive current is the current used to drive the preset first device current;
调整模块,用于按照预设幅度调整所述驱动电流,得到调整后的驱动电流;an adjustment module, configured to adjust the drive current according to a preset range to obtain the adjusted drive current;
驱动模块,用于按照所述调整后的驱动电流驱动所述预设第一器件。A driving module, configured to drive the preset first device according to the adjusted driving current.
本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的驱动电流的调节方法中的流程。The embodiments of the present application provide a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer is made to execute the process of the driving current adjustment method provided by the embodiments of the present application.
本申请实施例还提供一种移动终端,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的驱动电流调节方法中的流程。An embodiment of the present application further provides a mobile terminal, including a memory and a processor, where the processor is configured to execute the process of the driving current adjustment method provided by the embodiment of the present application by invoking a computer program stored in the memory.
本申请实施例中,在与第一移动终端的蓝牙配对连接的第二移动终端的蓝牙的信号强度瞬间变差时,第一移动终端并不直接瞬间增大驱动第一移动终端的蓝牙的驱动电流,而是使得驱动第一移动终端的蓝牙的驱动电流按照预设幅度缓和地增大,在保证蓝牙具有一定的信号强度的基础上,避免了第一移动终端掉电的情况出现。In the embodiment of the present application, when the Bluetooth signal strength of the second mobile terminal paired and connected with the Bluetooth of the first mobile terminal deteriorates instantaneously, the first mobile terminal does not directly and instantaneously increase the driving force of the Bluetooth of the first mobile terminal. Instead, the driving current of the bluetooth driving the first mobile terminal is gently increased according to a preset amplitude, and on the basis of ensuring that the bluetooth has a certain signal strength, the power failure of the first mobile terminal is avoided.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The technical solutions of the present application and the beneficial effects thereof will be apparent through the detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.
图1是本申请实施例提供的驱动电流的调节方法的第一种流程示意图。FIG. 1 is a first schematic flowchart of a method for adjusting a driving current provided by an embodiment of the present application.
图2是本申请实施例提供的驱动电流的调节方法的第二种流程示意图。FIG. 2 is a schematic flowchart of a second method for adjusting a driving current provided by an embodiment of the present application.
图3是本申请实施例提供的驱动电流的调节方法的第三种流程示意图。FIG. 3 is a schematic flowchart of a third method for adjusting a driving current provided by an embodiment of the present application.
图4是本申请实施例提供的驱动电流的调节方法的第四种流程示意图。FIG. 4 is a schematic flowchart of a fourth method for adjusting a driving current provided by an embodiment of the present application.
图5是本申请实施例提供的驱动电流的调节装置的第一种结构示意图。FIG. 5 is a schematic diagram of the first structure of the device for adjusting the driving current provided by the embodiment of the present application.
图6是本申请实施例提供的驱动电流的调节装置的第二种结构示意图。FIG. 6 is a schematic diagram of a second structure of the device for adjusting the driving current provided by the embodiment of the present application.
图7是本申请实施例提供的移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.
可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等电子设备。It can be understood that, the execution body of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
需要说明的是,本申请实施例中所提到的“掉电”是指由于断电、失电、或电的质量达不到要求而导致用电设备不能正常工作的现象。It should be noted that the "power failure" mentioned in the embodiments of the present application refers to the phenomenon that the electrical equipment cannot work normally due to power failure, loss of power, or the quality of the power does not meet the requirements.
请参阅图1,图1是本申请实施例提供的驱动电流的调节方法的第一种流程示意图,流程可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a first method for adjusting a driving current provided by an embodiment of the present application. The process may include:
101,获取第一驱动电流,该第一驱动电流是当前用于驱动第一移动终端的预设第一器件的电流。101. Obtain a first driving current, where the first driving current is a current currently used to drive a preset first device of the first mobile terminal.
比如,首先,第一移动终端和第二移动终端可以建立连接。然后,第一移动终端可以获取第一驱动电流。其中,该第一驱动电流是当前用于驱动第一移动终端的预设第一器件的电流。For example, first, the first mobile terminal and the second mobile terminal can establish a connection. Then, the first mobile terminal can obtain the first driving current. Wherein, the first driving current is a current that is currently used to drive a preset first device of the first mobile terminal.
例如,该第一驱动电流是用于驱动第一移动终端的蓝牙的电流。For example, the first driving current is a current for driving the Bluetooth of the first mobile terminal.
102,获取第二移动终端的预设第二器件的工作状态。102. Acquire a working state of a preset second device of the second mobile terminal.
比如,第一移动终端可以获取第二移动终端的预设第二器件的工作状态。For example, the first mobile terminal may acquire the working state of the preset second device of the second mobile terminal.
103,根据预设第二器件的工作状态,确定第一驱动电流。103. Determine a first driving current according to a preset working state of the second device.
在第一移动终端获取到第二移动终端的预设第二器件的工作状态之后,第一移动终端可以根据该预设第二器件的工作状态,确定第二驱动电流。After the first mobile terminal acquires the preset working state of the second device of the second mobile terminal, the first mobile terminal may determine the second driving current according to the preset working state of the second device.
其中,每一预设第二器件的工作状态与一驱动电流一一对应。即第一移动终端获取的预设第二器件的工作状态不同,第一移动终端对应得到的第一驱动电流也不同。Wherein, the working state of each preset second device corresponds to a driving current one-to-one. That is, the working states of the preset second devices obtained by the first mobile terminal are different, and the corresponding first driving currents obtained by the first mobile terminal are also different.
例如,可以预先设置预设第二器件的工作状态与驱动电流的对应关系。当第一移动终端获取到预设第二器件的工作状态时,便可以根据预设第二器件的工作状态与驱动电流的对应关系,确定第一移动终端获取到的预设第二器件的工作状态所对应的第二驱动电流。For example, the corresponding relationship between the working state of the second device and the driving current may be preset. When the first mobile terminal obtains the preset working state of the second device, it can determine the preset working state of the second device obtained by the first mobile terminal according to the corresponding relationship between the preset working state of the second device and the driving current The second drive current corresponding to the state.
在一些实施例中,第一移动终端可以在根据预设第二器件的工作状态,确定第二驱动电流的同时,获取第一驱动电流。In some embodiments, the first mobile terminal may acquire the first driving current while determining the second driving current according to the preset working state of the second device.
在另一些实施例中,第一移动终端可以在获取第二移动终端的预设第二器件的工作状态的同时,获取第一驱动电流。In other embodiments, the first mobile terminal may acquire the first driving current while acquiring the working state of the preset second device of the second mobile terminal.
在一些实施例中,第一移动终端可以在获取第二移动终端的预设第二器件的工作状态之前,获取第一驱动电流。In some embodiments, the first mobile terminal may acquire the first driving current before acquiring the working state of the preset second device of the second mobile terminal.
在另一些实施例中,第一移动终端可以在根据预设第二器件的工作状态,确定第一驱动电流之后,获取第一驱动电流。In other embodiments, the first mobile terminal may obtain the first driving current after determining the first driving current according to the preset working state of the second device.
即,在本实施例中,可以根据实际需求确定什么时候获取第一驱动电流,此处不作具体限制。That is, in this embodiment, when to obtain the first driving current can be determined according to actual requirements, which is not specifically limited here.
104,若第一驱动电流和第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整第一驱动电流,得到调整后的驱动电流。104. If the difference between the first driving current and the second driving current is greater than a preset first threshold, adjust the first driving current according to a preset amplitude to obtain an adjusted driving current.
比如,第一移动终端在得到第一驱动电流和第二驱动电流之后,便会比较第一驱动电流与第二驱动电流是否相等。若第一驱动电流与第二驱动电流相等,便不做处理。若第一驱动电流与第二驱动电流不相等,第一移动终端便计算第一驱动电流和第二驱动电流的差值是否大于预设第一阈值。若第一驱动电流和第二驱动电流的差值大于预设第一阈值,第一移动终端便按照预设幅度调整第一驱动电流;若第一驱动电流和第二驱动电流的差值小于或等于预设第一阈值,第一移动终端可以不做处理,或者可以直接采用第二驱动电流驱动第一移动终端的预设第一器件。For example, after obtaining the first driving current and the second driving current, the first mobile terminal compares whether the first driving current and the second driving current are equal. If the first driving current is equal to the second driving current, no processing is performed. If the first driving current and the second driving current are not equal, the first mobile terminal calculates whether the difference between the first driving current and the second driving current is greater than the preset first threshold. If the difference between the first drive current and the second drive current is greater than the preset first threshold, the first mobile terminal adjusts the first drive current according to the preset range; if the difference between the first drive current and the second drive current is less than or When it is equal to the preset first threshold, the first mobile terminal may not perform processing, or may directly use the second driving current to drive the preset first device of the first mobile terminal.
也即,在第一驱动电流和第二驱动电流的差值大于预设第一阈值时,第一移动终端便按照预设幅度调整第一驱动电流,得到调整后的驱动电流。That is, when the difference between the first driving current and the second driving current is greater than the preset first threshold, the first mobile terminal adjusts the first driving current according to the preset amplitude to obtain the adjusted driving current.
其中,预设第一阈值和预设幅度可以根据实际需求设置,此处不做具体限制。Wherein, the preset first threshold value and the preset range can be set according to actual requirements, and no specific limitation is made here.
需要说明的是,预设幅度的取值不应过大,以避免调整后的驱动电流与第一驱动电流的差值过大,从而造成第一移动终端掉电的情况出现。It should be noted that the value of the preset amplitude should not be too large, so as to avoid that the difference between the adjusted driving current and the first driving current is too large, thereby causing the first mobile terminal to lose power.
105,按照调整后的驱动电流驱动预设第一器件。105. Drive the preset first device according to the adjusted driving current.
比如,第一移动终端在得到调整后的驱动电流之后,便可以按照调整后的驱动电流驱动预设第一器件。For example, after obtaining the adjusted driving current, the first mobile terminal can drive the preset first device according to the adjusted driving current.
在一些实施例中,可以设置一预设按钮,当第一移动终端的电池电量过低时,用户可以点击该预设按钮,第一移动终端即执行本实施例所述的驱动电流的调节方法。或者,可以设置当第一移动终端的电池电量过低时,第一移动终端自动开启本实施例所述的驱动电流的调节方法。In some embodiments, a preset button may be set. When the battery power of the first mobile terminal is too low, the user may click the preset button, and the first mobile terminal will execute the driving current adjustment method described in this embodiment. . Alternatively, it may be set that when the battery power of the first mobile terminal is too low, the first mobile terminal automatically starts the driving current adjustment method described in this embodiment.
可以理解的是,本实施例提供的驱动电流的调节方法,包括:获取第一驱动电流,该第一驱动电流是当前用于驱动预设第一器件的电流;获取第二移动终端的预设第二器件的工作状态;根据该工作状态,确定第二驱动电流;若第一驱动电流和第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整第一驱动电流,得到调整后的驱动电流;按照调整后的驱动电流驱动预设第一器件;可以使得预设第一器件的驱动电流缓和地增大,避免第一移动终端掉电的情况出现。It can be understood that the method for adjusting the driving current provided in this embodiment includes: acquiring a first driving current, where the first driving current is the current currently used to drive the preset first device; acquiring a preset value of the second mobile terminal The working state of the second device; the second driving current is determined according to the working state; if the difference between the first driving current and the second driving current is greater than the preset first threshold, the first driving current is adjusted according to the preset amplitude to obtain The adjusted drive current; the preset first device is driven according to the adjusted drive current; the drive current of the preset first device can be increased gently, so as to avoid the occurrence of power failure of the first mobile terminal.
请参阅图2,图2是本申请实施例提供的驱动电流的调节方法的第二种流程示意图,在该流程中,将以预设第一器件为第一移动终端的蓝牙,预设第二器件为第二移动终端的蓝牙为例对本申请实施例提供的驱动电流的调节方法作进一步的说明。其中,该流程可以包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of the second method for adjusting the driving current provided by the embodiment of the present application. In this process, the preset first device is the Bluetooth of the first mobile terminal, and the second preset The method for adjusting the driving current provided in the embodiment of the present application is further described by taking the bluetooth whose device is the second mobile terminal as an example. Among them, the process can include:
201,第一移动终端获取第一驱动电流,该第一驱动电流是当前用于驱动第一移动终端的蓝牙的电流;201. The first mobile terminal obtains a first driving current, where the first driving current is the current currently used to drive the Bluetooth of the first mobile terminal;
比如,首先,第一移动终端和第二移动终端可以建立连接。For example, first, the first mobile terminal and the second mobile terminal can establish a connection.
例如,第一移动终端和第二移动终端都开启蓝牙,然后第一移动终端搜索开启蓝牙的第二移动终端。第一移动终端在搜索到第二移动终端时,便向第二移动终端发送配对连接请求。当第二移动终端接收到该配对连接请求时,便可以根据该配对连接请求与第一移动终端进行配对连接。从而最终使得第一移动终端和第二移动终端建立连接。For example, both the first mobile terminal and the second mobile terminal have Bluetooth enabled, and then the first mobile terminal searches for the second mobile terminal with Bluetooth enabled. When searching for the second mobile terminal, the first mobile terminal sends a pairing connection request to the second mobile terminal. When the second mobile terminal receives the pairing connection request, it can perform a pairing connection with the first mobile terminal according to the pairing connection request. Therefore, the connection between the first mobile terminal and the second mobile terminal is finally established.
在第一移动终端与第二移动终端建立连接之后,第一移动终端可以获取第一驱动电流。其中,该第一驱动电流是当前用于驱动第一移动终端的蓝牙的电流。After the first mobile terminal establishes the connection with the second mobile terminal, the first mobile terminal may obtain the first driving current. Wherein, the first driving current is the current currently used to drive the Bluetooth of the first mobile terminal.
其中,该流程201可以包括:第一移动终端每隔一段预设时间获取第一驱动电流。Wherein, the
为了减轻第一移动终端的处理负载,增加第一移动终端的电池续航。可以设置一段预设时间,使得第一移动终端不需要时时刻刻获取第一驱动电流,而是可以每隔该预设时间获取第一驱动电流。例如,该段预设时间可以为20毫秒,10毫秒或者100毫秒等等,此处不作具体限制,以实际需求为准。In order to reduce the processing load of the first mobile terminal, the battery life of the first mobile terminal is increased. A preset period of time may be set, so that the first mobile terminal does not need to acquire the first driving current all the time, but may acquire the first driving current every preset time. For example, the preset time period may be 20 milliseconds, 10 milliseconds, or 100 milliseconds, etc., which is not limited here, and is subject to actual requirements.
202,第一移动终端获取第二移动终端的蓝牙的信号强度值,该信号强度值用于表示第二移动终端的蓝牙的工作状态。202. The first mobile terminal acquires a signal strength value of the Bluetooth of the second mobile terminal, where the signal strength value is used to indicate the working state of the Bluetooth of the second mobile terminal.
在获取到第一驱动电流之后,第一移动终端可以获取第二移动终端的蓝牙的信号强度值。After acquiring the first driving current, the first mobile terminal may acquire the Bluetooth signal strength value of the second mobile terminal.
203,第一移动终端根据第二移动终端的蓝牙的信号强度值,确定第二驱动电流。203. The first mobile terminal determines the second driving current according to the signal strength value of the Bluetooth of the second mobile terminal.
其中,该流程203可以包括:第一移动终端根据第二移动终端的蓝牙的信号强度值,以及第二移动终端的蓝牙的信号强度值与驱动电流的预设对应关系,确定第二驱动电流。The
比如,第一移动终端可以预先设置第二移动终端的蓝牙的信号强度值与驱动电流的预设对应关系。在获取到第二移动终端的蓝牙的信号强度值之后,第一移动终端便可以根据第二移动终端的蓝牙的信号强度值,以及第二移动终端的蓝牙的信号强度值与驱动电路的预设对应关系,确定第二驱动电流。For example, the first mobile terminal may preset a preset corresponding relationship between the Bluetooth signal strength value of the second mobile terminal and the driving current. After acquiring the bluetooth signal strength value of the second mobile terminal, the first mobile terminal can obtain the bluetooth signal strength value of the second mobile terminal according to the bluetooth signal strength value of the second mobile terminal, the bluetooth signal strength value of the second mobile terminal and the preset value of the driving circuit According to the corresponding relationship, the second driving current is determined.
例如,在一些实施例中,第二移动终端的蓝牙的信号强度值与驱动电流的预设对应关系可以按如表1所示进行建立。For example, in some embodiments, the preset corresponding relationship between the Bluetooth signal strength value of the second mobile terminal and the driving current may be established as shown in Table 1.
表1第二移动终端的蓝牙的信号强度与驱动电流的对应关系Table 1 Corresponding relationship between the Bluetooth signal strength and the driving current of the second mobile terminal
其中,dbm表示信号强度的单位。I1~I10仅仅只是对驱动电流的大小进行一个示意性的表示,并不用于直接表示驱动电流值的大小,即在I1~I10中,I1表示的电流值最小,I10表示的电流值最大,以此类推。Among them, dbm represents the unit of signal strength. I 1 to I 10 are only a schematic representation of the magnitude of the drive current, and are not used to directly express the magnitude of the drive current value. That is, among I 1 to I 10 , the current value represented by I 1 is the smallest, and I 10 represents the magnitude of the drive current. The current value is the largest, and so on.
例如,信号强度大于-10dbm时,对应的驱动电流可以为10mA;信号强度大于-20dbm,小于或等于-10dbm时,对应的驱动电流可以为30mA。For example, when the signal strength is greater than -10dbm, the corresponding driving current may be 10mA; when the signal strength is greater than -20dbm and less than or equal to -10dbm, the corresponding driving current may be 30mA.
需要说明的是,表1只是对本实施例中第二移动终端的蓝牙的信号强度值与驱动电流的预设对应关系的一种示例,并不用以限制本申请。也就是说,第二移动终端的蓝牙的信号强度值与驱动电流的预设对应关系还可以是其他形式的,例如,可以根据实际情况建立第二移动终端的蓝牙的信号强度值与驱动电流的预设对应关系,等等,此处不作具体限制。It should be noted that Table 1 is only an example of the preset correspondence between the Bluetooth signal strength value of the second mobile terminal and the driving current in this embodiment, and is not intended to limit the present application. That is to say, the preset correspondence between the Bluetooth signal strength value of the second mobile terminal and the driving current may also be in other forms. For example, the relationship between the Bluetooth signal strength value of the second mobile terminal and the driving current may be established according to the actual situation. The preset corresponding relationship, etc., are not specifically limited here.
在一些实施例中,第一移动终端可以在根据第二移动终端的蓝牙的信号强度值,确定第二驱动电流的同时,获取第一驱动电流。In some embodiments, the first mobile terminal may acquire the first driving current while determining the second driving current according to the Bluetooth signal strength value of the second mobile terminal.
在另一些实施例中,第一移动终端可以在获取第二移动终端的蓝牙的信号强度值的同时,获取第一驱动电流。In other embodiments, the first mobile terminal may acquire the first driving current while acquiring the Bluetooth signal strength value of the second mobile terminal.
在一些实施例中,第一移动终端可以在获取第二移动终端的蓝牙的信号强度值之前,获取第一驱动电流。In some embodiments, the first mobile terminal may acquire the first driving current before acquiring the Bluetooth signal strength value of the second mobile terminal.
在另一些实施例中,第一移动终端可以在根据第二移动终端的蓝牙的信号强度值,确定第二驱动电流之后,获取第一驱动电流。In other embodiments, the first mobile terminal may acquire the first driving current after determining the second driving current according to the signal strength value of Bluetooth of the second mobile terminal.
即,在本实施例中,可以根据实际需求确定获取第一驱动电流的时间,此处不作具体限制。That is, in this embodiment, the time for obtaining the first driving current may be determined according to actual requirements, which is not specifically limited here.
204,若第二驱动电流大于第一驱动电流,且第一驱动电流和第二驱动电流的差值大于预设第一阈值,则第一移动终端按照预设幅度增大第二驱动电流,得到调整后的驱动电流。204. If the second drive current is greater than the first drive current, and the difference between the first drive current and the second drive current is greater than the preset first threshold, the first mobile terminal increases the second drive current according to the preset amplitude to obtain: Adjusted drive current.
比如,第一移动终端在得到第一驱动电流和第二驱动电流之后,便会比较第一驱动电流与第二驱动电流是否相等。若第一驱动电流与第二驱动电流相等,便不做处理。若第一驱动电流与第二驱动电流不相等,第一移动终端便判断第二驱动电流是否大于第一驱动电流,且第一驱动电流和第二驱动电流的差值是否大于预设第一阈值。若第二驱动电流大于第一驱动电流,且第一驱动电流和第二驱动电流的差值大于预设第一阈值,第一移动终端便按照预设幅度调增大第一驱动电流。For example, after obtaining the first driving current and the second driving current, the first mobile terminal compares whether the first driving current and the second driving current are equal. If the first driving current is equal to the second driving current, no processing is performed. If the first driving current and the second driving current are not equal, the first mobile terminal determines whether the second driving current is greater than the first driving current, and whether the difference between the first driving current and the second driving current is greater than the preset first threshold . If the second driving current is greater than the first driving current, and the difference between the first driving current and the second driving current is greater than the preset first threshold, the first mobile terminal increases the first driving current according to the preset amplitude.
也即,在第二驱动电流大于第一驱动电流,且第一驱动电流和第二驱动电流的差值大于预设第一阈值时,第一移动终端便按照预设幅度增大第一驱动电流,得到调整后的驱动电流。That is, when the second driving current is greater than the first driving current, and the difference between the first driving current and the second driving current is greater than the preset first threshold, the first mobile terminal increases the first driving current according to the preset amplitude , get the adjusted drive current.
其中,预设第一阈值和预设幅度可以根据实际需求设置,此处不做具体限制。Wherein, the preset first threshold value and the preset range can be set according to actual requirements, and no specific limitation is made here.
需要说明的是,预设幅度的取值不应过大,以避免调整后的驱动电流与第一驱动电流的差值过大,从而造成第一移动终端掉电的情况出现。It should be noted that the value of the preset amplitude should not be too large, so as to avoid that the difference between the adjusted driving current and the first driving current is too large, thereby causing the first mobile terminal to lose power.
205,第一移动终端按照调整后的驱动电流驱动第一移动终端的蓝牙。205. The first mobile terminal drives the Bluetooth of the first mobile terminal according to the adjusted driving current.
比如,第一移动终端在得到调整后的驱动电流之后,便可以按照调整后的驱动电流驱动蓝牙。For example, after obtaining the adjusted driving current, the first mobile terminal can drive the Bluetooth according to the adjusted driving current.
可以理解的是,本实施例中,在与第一移动终端的蓝牙配对连接的第二移动终端的蓝牙的信号强度瞬间变差时,第一移动终端并不直接瞬间增大驱动第一移动终端的蓝牙的驱动电流,而是使得驱动第一移动终端的蓝牙的驱动电流按照预设幅度缓和地增大,在保证蓝牙具有一定的信号强度的基础上,避免了第一移动终端掉电的情况出现。It can be understood that, in this embodiment, when the Bluetooth signal strength of the second mobile terminal that is paired and connected with the Bluetooth of the first mobile terminal is deteriorated instantaneously, the first mobile terminal does not directly and instantaneously increase and drive the first mobile terminal. The driving current of the Bluetooth that drives the first mobile terminal is increased gently according to the preset amplitude, and the power failure of the first mobile terminal is avoided on the basis of ensuring that the Bluetooth has a certain signal strength. Appear.
在一些实施例中,该驱动电流的调节方法还可以包括:若第二驱动电流小于第一驱动电流,且第一驱动电流和第二驱动电流的差值大于预设阈值,则按照预设幅度减小第二驱动电流,得到调整后的驱动电流。In some embodiments, the method for adjusting the driving current may further include: if the second driving current is smaller than the first driving current, and the difference between the first driving current and the second driving current is greater than a preset threshold The second driving current is reduced to obtain the adjusted driving current.
在一些实施例中,该驱动电流的调节方法还可以包括:若第一驱动电流等于第二驱动电流,则维持当前驱动第一移动终端的第一驱动电流不变。In some embodiments, the method for adjusting the driving current may further include: if the first driving current is equal to the second driving current, maintaining the first driving current currently driving the first mobile terminal unchanged.
请参阅图3,图3是本申请实施例提供的驱动电流的调节方法的第三种流程示意图,流程可以包括:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of a third method for adjusting the driving current provided by the embodiment of the present application. The process may include:
301,获取第二移动终端的预设第二器件的第一工作状态。301. Acquire a first working state of a preset second device of a second mobile terminal.
302,获取第二移动终端的预设第二器件的第二工作状态。302. Acquire a second working state of a preset second device of the second mobile terminal.
可以理解的是,在获取第二移动终端的预设第二器件的工作状态之前,第一移动终端和第二移动终端需要建立连接。It can be understood that, before acquiring the working state of the preset second device of the second mobile terminal, the first mobile terminal and the second mobile terminal need to establish a connection.
在第一移动终端和第二移动终端建立连接之后,第一移动终端可以获取第二移动终端的预设第二器件的第一工作状态。After the connection between the first mobile terminal and the second mobile terminal is established, the first mobile terminal may acquire the first working state of the preset second device of the second mobile terminal.
在第一移动终端获取到第二移动终端的预设第二器件的第一工作状态之后,第一移动终端可以获取第二移动终端的预设第二器件的第二工作状态。After the first mobile terminal acquires the first working state of the preset second component of the second mobile terminal, the first mobile terminal may acquire the second working state of the preset second component of the second mobile terminal.
303,若第一工作状态和第二工作状态满足预设条件,则获取驱动电流,该驱动电流是当前用于驱动第一移动终端的预设第一器件的电流。303. If the first working state and the second working state satisfy the preset conditions, obtain a drive current, where the drive current is a current currently used to drive the preset first device of the first mobile terminal.
在第一移动终端获取到第一工作状态和第二工作状态之后,第一移动终端可以判断第一工作状态和第二工作状态是否满足预设条件。若第一工作状态和第二工作状态满足预设条件,第一移动终端便获取驱动电流。After the first mobile terminal acquires the first working state and the second working state, the first mobile terminal can determine whether the first working state and the second working state satisfy the preset conditions. If the first working state and the second working state satisfy the preset conditions, the first mobile terminal obtains the driving current.
其中,该驱动电流是当前用于驱动第一移动终端的预设第一器件的电流。Wherein, the driving current is the current currently used to drive the preset first device of the first mobile terminal.
例如,该驱动电流是用于驱动第一移动终端的蓝牙的电流。For example, the driving current is a current for driving the Bluetooth of the first mobile terminal.
在一些实施例中,第一移动终端可以在获取第二移动终端的预设第二器件的第一工作状态的同时,获取驱动电流。In some embodiments, the first mobile terminal may acquire the driving current while acquiring the first working state of the preset second device of the second mobile terminal.
在另一些实施例中,第一移动终端可以在获取第二移动的预设第二器件的第二工作状态的同时,获取驱动电流。In other embodiments, the first mobile terminal may acquire the driving current while acquiring the second working state of the second moving preset second device.
即,在本实施例中,可以根据实际需求确定获取驱动电流的时间,此处不作具体限制。That is, in this embodiment, the time for obtaining the driving current may be determined according to actual requirements, which is not specifically limited here.
304,按照预设幅度调整驱动电流,得到调整后的驱动电流。304. Adjust the driving current according to the preset amplitude to obtain the adjusted driving current.
比如,第一移动终端按照预设幅度调整第二驱动电流,得到调整后的驱动电流。For example, the first mobile terminal adjusts the second driving current according to a preset range to obtain the adjusted driving current.
其中,预设阈值和预设幅度可以根据实际需求设置,此处不做具体限制。Among them, the preset threshold value and the preset amplitude can be set according to actual needs, and no specific limitation is made here.
需要说明的是,预设幅度的取值不应过大,以避免调整后的驱动电流与第二驱动电流的差值过大,从而造成第一移动终端掉电的情况出现。It should be noted that the value of the preset amplitude should not be too large, so as to avoid that the difference between the adjusted driving current and the second driving current is too large, thereby causing the first mobile terminal to lose power.
305,按照调整后的驱动电流驱动预设第一器件。305. Drive the preset first device according to the adjusted driving current.
比如,第一移动终端在得到调整后的驱动电流之后,便可以按照调整后的驱动电流驱动预设第一器件。For example, after obtaining the adjusted driving current, the first mobile terminal can drive the preset first device according to the adjusted driving current.
可以理解的是,本实施例提供的前一段电流的调节方法,包括:获取第二移动终端的预设第二器件的第一工作状态;获取第二移动终端的预设第二器件的第二工作状态;若第一工作状态和第二工作状态满足预设条件,则获取驱动电流,该驱动电流是当前用于驱动预设第一器件的电流;按照预设幅度调整驱动电流,得到调整后的驱动电流;按照调整后的驱动电流驱动预设第一器件;可以使得预设第一器件的驱动电流缓和地增大,避免第一移动终端掉电的情况出现。It can be understood that, the method for adjusting the current of the previous stage provided by this embodiment includes: acquiring the first working state of the preset second device of the second mobile terminal; acquiring the second working state of the preset second device of the second mobile terminal; working state; if the first working state and the second working state meet the preset conditions, the drive current is obtained, and the drive current is the current currently used to drive the preset first device; the drive current is adjusted according to the preset amplitude, and the adjusted drive current is obtained. The drive current of the preset first device is driven according to the adjusted drive current; the drive current of the preset first device can be increased gently, so as to avoid the power failure of the first mobile terminal.
请参阅图4,图4是本申请实施例提供的驱动电流的调节方法的第四种流程示意图,在该流程中,将以预设第一器件为第一移动终端的蓝牙,预设第二器件为第二移动终端的蓝牙为例对本申请实施例提供的驱动电流的调节方法作进一步的说明。其中,该流程可以包括:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a fourth method for adjusting a driving current provided by an embodiment of the present application. In this process, the preset first device is the Bluetooth of the first mobile terminal, and the second preset The method for adjusting the driving current provided in the embodiment of the present application is further described by taking the bluetooth whose device is the second mobile terminal as an example. Among them, the process can include:
401,第一移动终端获取第二移动终端的蓝牙的第一信号强度值,该第一信号强度值用于表示第二移动终端的蓝牙的第一工作状态。401. The first mobile terminal acquires a first signal strength value of the Bluetooth of the second mobile terminal, where the first signal strength value is used to represent the first working state of the Bluetooth of the second mobile terminal.
可以理解的是,在第一移动终端获取第二移动终端的蓝牙的第一信号强度值之前,第一移动终端需要与第二移动终端建立连接。It can be understood that, before the first mobile terminal acquires the first Bluetooth signal strength value of the second mobile terminal, the first mobile terminal needs to establish a connection with the second mobile terminal.
例如,第一移动终端和第二移动终端都开启蓝牙,然后第一移动终端搜索开启蓝牙的第二移动终端。第一移动终端在搜索到第二移动终端时,便向第二移动终端发送配对连接请求。当第二移动终端接收到该配对连接请求时,便可以根据该配对连接请求与第一移动终端进行配对连接。从而最终使得第一移动终端和第二移动终端建立连接。For example, both the first mobile terminal and the second mobile terminal have Bluetooth enabled, and then the first mobile terminal searches for the second mobile terminal with Bluetooth enabled. When searching for the second mobile terminal, the first mobile terminal sends a pairing connection request to the second mobile terminal. When the second mobile terminal receives the pairing connection request, it can perform a pairing connection with the first mobile terminal according to the pairing connection request. Therefore, the connection between the first mobile terminal and the second mobile terminal is finally established.
在第一移动终端与第二移动终端建立连接之后,第一移动终端可以获取第二移动终端的蓝牙的第一信号强度值。After the first mobile terminal establishes a connection with the second mobile terminal, the first mobile terminal may acquire the first signal strength value of Bluetooth of the second mobile terminal.
其中,该流程401可以包括:第一移动终端每隔一段预设时间获取第二移动终端的蓝牙的第一信号强度值。Wherein, the
为了减轻第一移动终端的处理负载,增加第一移动终端的电池续航。可以设置一段预设时间,使得第一移动终端不需要时时刻刻获取第二移动终端的蓝牙的第一信号强度值,而是可以每隔该预设时间获取第二移动终端的蓝牙的第一信号强度值。例如,该段预设时间可以为20毫秒,10毫秒或者100毫秒等等,此处不作具体限制,以实际需求为准。In order to reduce the processing load of the first mobile terminal, the battery life of the first mobile terminal is increased. A preset time can be set so that the first mobile terminal does not need to obtain the first signal strength value of the Bluetooth of the second mobile terminal all the time, but can obtain the first signal strength of the Bluetooth of the second mobile terminal every preset time. Signal strength value. For example, the preset time period may be 20 milliseconds, 10 milliseconds, or 100 milliseconds, etc., which is not limited here, and is subject to actual requirements.
402,第一移动终端获取第二移动终端的蓝牙的第二信号强度值,该第二信号强度值用于表示第二移动终端的蓝牙的第二工作状态。402. The first mobile terminal acquires a second signal strength value of the Bluetooth of the second mobile terminal, where the second signal strength value is used to represent the second working state of the Bluetooth of the second mobile terminal.
在第一移动终端获取到第二移动终端的蓝牙的第一信号强度值之后,第一移动终端可以获取第二移动终端的蓝牙的第二信号强度值。After the first mobile terminal acquires the first Bluetooth signal strength value of the second mobile terminal, the first mobile terminal may acquire the second Bluetooth signal strength value of the second mobile terminal.
在本实施例中,可以设置获取第一信号强度值与获取第二信号强度值的间隔时间。例如,该间隔时间可以为5毫秒,20毫秒或者100毫秒等等,此处不作具体限制,以实际需求为准。In this embodiment, the interval between acquiring the first signal strength value and acquiring the second signal strength value may be set. For example, the interval time may be 5 milliseconds, 20 milliseconds, or 100 milliseconds, etc., which is not limited here, and is subject to actual requirements.
403,若第一信号强度值大于第二信号强度值,且第一信号强度值和第二信号强度值的差值大于预设第二阈值,则第一移动终端获取驱动电流,该驱动电流是当前用于驱动第一移动终端的蓝牙的电流。403. If the first signal strength value is greater than the second signal strength value, and the difference between the first signal strength value and the second signal strength value is greater than a preset second threshold, the first mobile terminal obtains a driving current, where the driving current is The current used to drive the Bluetooth of the first mobile terminal.
在第一移动终端获取到第一信号强度值与第二信号强度值之后,第一移动终端可以判断第一信号强度值是否大于第二信号强度值,并且判断第一信号强度值和第二信号强度值的差值是否大于预设第二阈值。若第一信号强度值大于第二信号强度值,且第一信号强度值和第二信号强度值的差值大于预设第二阈值,则第一移动终端获取驱动电流。After the first mobile terminal acquires the first signal strength value and the second signal strength value, the first mobile terminal can determine whether the first signal strength value is greater than the second signal strength value, and determine whether the first signal strength value and the second signal strength value are Whether the difference between the intensity values is greater than a preset second threshold. If the first signal strength value is greater than the second signal strength value, and the difference between the first signal strength value and the second signal strength value is greater than a preset second threshold, the first mobile terminal obtains the driving current.
其中,预设第二阈值可以根据实际需求设置,此处不做具体限制。The preset second threshold may be set according to actual requirements, and no specific limitation is made here.
404,第一移动终端按照预设幅度增大驱动电流,得到调整后的驱动电流。404. The first mobile terminal increases the drive current according to a preset range to obtain the adjusted drive current.
比如,第一移动终端在获取到驱动电流之后,便按照预设幅度增大驱动电流,得到调整后的驱动电流。For example, after acquiring the driving current, the first mobile terminal increases the driving current according to a preset range to obtain the adjusted driving current.
其中,预设幅度可以根据实际需求设置,此处不做具体限制。The preset range can be set according to actual needs, and no specific limitation is made here.
需要说明的是,预设幅度的取值不应过大,以避免调整后的驱动电流与第二驱动电流的差值过大,从而造成第一移动终端掉电的情况出现。It should be noted that the value of the preset amplitude should not be too large, so as to avoid that the difference between the adjusted driving current and the second driving current is too large, thereby causing the first mobile terminal to lose power.
405,第一移动终端按照调整后的驱动电流驱动第一移动终端的蓝牙。405. The first mobile terminal drives the Bluetooth of the first mobile terminal according to the adjusted driving current.
比如,第一移动终端在得到调整后的驱动电流之后,便可以按照调整后的驱动电流驱动蓝牙。For example, after obtaining the adjusted driving current, the first mobile terminal can drive the Bluetooth according to the adjusted driving current.
可以理解的是,本实施例中,在与第一移动终端的蓝牙配对连接的第二移动终端的蓝牙的信号强度瞬间变差时,第一移动终端并不直接瞬间增大驱动第一移动终端的蓝牙的驱动电流,而是使得驱动第一移动终端的蓝牙的驱动电流按照预设幅度缓和地增大,在保证蓝牙具有一定的信号强度的基础上,避免了第一移动终端掉电的情况出现。It can be understood that, in this embodiment, when the Bluetooth signal strength of the second mobile terminal that is paired and connected with the Bluetooth of the first mobile terminal is deteriorated instantaneously, the first mobile terminal does not directly and instantaneously increase and drive the first mobile terminal. The driving current of the Bluetooth that drives the first mobile terminal is increased gently according to the preset amplitude, and the first mobile terminal is prevented from powering down on the basis of ensuring that the Bluetooth has a certain signal strength. Appear.
请参阅图5,图5为本申请实施例提供的驱动电流的调节装置的第一种结构示意图。该驱动电流的调节装置包括:第一获取模块501,第二获取模块502,确定模块503,调整模块504和驱动模块505。Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a first structure of a driving current adjusting device provided by an embodiment of the present application. The device for adjusting the driving current includes: a first acquiring
第一获取模块501,用于获取第一驱动电流,其中,所述第一驱动电流是当前用于驱动所述预设第一器件的电流。The first obtaining
第二获取模块502,用于获取第二移动终端的预设第二器件的工作状态。The second obtaining
确定模块503,用于根据所述工作状态,确定第二驱动电流。The determining
调整模块504,用于若所述第一驱动电流和所述第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整所述第一驱动电流,得到调整后的驱动电流。The
驱动模块505,用于按照所述调整后的驱动电流驱动所述预设第一器件。The
在一些实施例中,所述调整模块504可以用于:若所述第二驱动电流大于所述第一驱动电流,且所述第一驱动电流和所述第二驱动电流的差值大于预设阈值,则按照预设幅度增大所述第一驱动电流,得到调整后的驱动电流。In some embodiments, the
在一些实施例中,所述预设第二器件为第二移动终端的蓝牙,所述第二获取模块502可以用于:获取第二移动终端的蓝牙的信号强度值,其中,所述信号强度值用于表示所述第二移动终端的蓝牙的工作状态;In some embodiments, the preset second device is the Bluetooth of the second mobile terminal, and the second obtaining
所述确定模块503可以用于:根据所述信号强度值,确定第二驱动电流。The determining
在一些实施例中,所述确定模块503可以用于:根据所述信号强度值,以及所述信号强度值与驱动电流的预设对应关系,确定第二驱动电流。In some embodiments, the determining
在一些实施例中,所述第一获取模块501可以用于:每隔一段预设时间获取第一驱动电流。In some embodiments, the first obtaining
请参阅图6,图6为本申请实施例提供的驱动电流的调节装置的第二种结构示意图。该驱动电流的调节装置包括:第一获取模块601,第二获取模块602,第三获取模块603,调整模块604和驱动模块605。Please refer to FIG. 6 . FIG. 6 is a schematic diagram of a second structure of the driving current adjusting device provided by the embodiment of the present application. The device for adjusting the driving current includes: a first obtaining
第一获取模块601,用于获取第二移动终端的预设第二器件的第一工作状态。The first obtaining
第二获取模块602,用于获取第二移动终端的预设第二器件的第二工作状态。The second obtaining
第三获取模块603,用于若所述第一工作状态和所述第二工作状态满足预设条件,则获取驱动电流,其中,所述驱动电流是当前用于驱动所述预设第一器件的电流。A third obtaining
调整模块604,用于按照预设幅度调整所述驱动电流,得到调整后的驱动电流。The
驱动模块605,用于按照所述调整后的驱动电流驱动所述预设第一器件。The
在一些实施例中,所述预设第二器件为第二移动终端的蓝牙,所述第一获取模块601可以用于:获取第二移动终端的蓝牙的第一信号强度值,其中,所述第一信号强度值用于表示所述第二移动终端的蓝牙的第一工作状态;In some embodiments, the preset second device is the Bluetooth of the second mobile terminal, and the
所述第二获取模块602可以用于:获取第二移动终端的蓝牙的第二信号强度值,其中,所述第二信号强度值用于表示所述第二移动终端的蓝牙的第二工作状态;The second obtaining
所述第三获取模块603可以用于:若所述第一信号强度值大于所述第二信号强度值,且所述第一信号强度值和所述第二信号强度值的差值大于预设第二阈值,则获取驱动电流。The third obtaining
所述调整模块604可以用于:按照预设幅度增大所述驱动电流,得到调整后的驱动电流。The
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的驱动电流的调节方法中的流程。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the method for adjusting the driving current provided by the present embodiment. process.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill 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 storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
本申请实施例还提供一种移动终端,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的驱动电流的调节方法中的流程。An embodiment of the present application further provides a mobile terminal, including a memory and a processor, where the processor is configured to execute the process of the driving current adjustment method provided by the present embodiment by invoking a computer program stored in the memory.
图7示出了本发明实施例提供的移动终端的结构示意图,该移动终端可以用于实施上述实施例中提供的驱动电流的调节方法、装置、存储介质及移动终端。该移动终端1200可以为智能手机或平板电脑。FIG. 7 shows a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention, and the mobile terminal can be used to implement the driving current adjustment method, apparatus, storage medium, and mobile terminal provided in the foregoing embodiments. The mobile terminal 1200 may be a smart phone or a tablet computer.
如图7所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图7中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 7 , the mobile terminal 1200 may include an RF (Radio Frequency, radio frequency)
RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced DataGSM Environment,EDGE),宽带码分多址技术(Wideband Code Division MultipleAccess,WCDMA),码分多址技术(Code Division Access,CDMA)、时分多址技术(TimeDivision Multiple Access,TDMA),无线保真技术(Wireless Fidelity,Wi-Fi)(如美国电气和电子工程师协会标准IEEE 802.11a,IEEE 802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over Internet Protocol,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The
存储器120可用于存储软件程序以及模块,如上述实施例中驱动电流的调节方法、装置、存储介质及移动终端对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至移动终端1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合,存储器120可以为如上所述的存储介质。The
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图7中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。其中,上述实施例中移动终端的显示界面可以用该显示单元140表示,可以将当前移动支付信息与当前商铺信息关联在一起的内容显示在所述移动终端1200的显示单元140上,即显示界面显示的显示内容可以由显示单元140进行显示。The
移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 1200 may further include at least one
音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。The
移动终端1200通过传输模块170(例如蓝牙模块1701)可以帮助用户收发文件等,它为用户提供了无线短距离通信等。The mobile terminal 1200 can help the user to send and receive files and the like through the transmission module 170 (eg, the Bluetooth module 1701 ), and it provides the user with wireless short-distance communication and the like.
处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;在一些实施例中,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The
具体的,处理器180包括有:算术逻辑运算单元(Arithmetic Logic Unit,ALU)、应用处理器、全球定位系统(Global Positioning System,GPS)与控制及状态总线(Bus)(图中未示出)。Specifically, the
移动终端1200还包括给各个部件供电的电源190(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 1200 also includes a power source 190 (such as a battery) for powering various components. In some embodiments, the power source can be logically connected to the
尽管未示出,移动终端1200还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。Although not shown, the mobile terminal 1200 may further include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be repeated here.
具体在本实施例中,移动终端1200的显示单元140是触摸屏显示器,移动终端1200还包括有存储器120,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器120中,且经配置以由一个或者一个以上处理器180执行一个或者一个以上程序包含用于进行以下操作的指令:Specifically in this embodiment, the
获取第一驱动电流,其中,所述第一驱动电流是当前用于驱动所述预设第一器件的电流;acquiring a first drive current, wherein the first drive current is the current currently used to drive the preset first device;
获取第二移动终端的预设第二器件的工作状态;acquiring the working state of the preset second device of the second mobile terminal;
根据所述工作状态,确定第二驱动电流;determining a second driving current according to the working state;
若所述第一驱动电流和所述第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整所述第一驱动电流,得到调整后的驱动电流;If the difference between the first drive current and the second drive current is greater than a preset first threshold, adjusting the first drive current according to a preset range to obtain an adjusted drive current;
按照所述调整后的驱动电流驱动所述预设第一器件。The preset first device is driven according to the adjusted driving current.
在一些实施例中,所述若所述第一驱动电流和所述第二驱动电流的差值大于预设第一阈值,则按照预设幅度调整所述第一驱动电流,得到调整后的驱动电流,包括:In some embodiments, if the difference between the first driving current and the second driving current is greater than a preset first threshold, adjusting the first driving current according to a preset amplitude to obtain an adjusted driving current current, including:
若所述第二驱动电流大于所述第一驱动电流,且所述第一驱动电流和所述第二驱动电流的差值大于预设阈值,则按照预设幅度增大所述第一驱动电流,得到调整后的驱动电流。If the second drive current is greater than the first drive current, and the difference between the first drive current and the second drive current is greater than a preset threshold, the first drive current is increased by a preset range , get the adjusted drive current.
在一些实施例中,所述预设第二器件为第二移动终端的蓝牙,所述获取第二移动终端的预设第二器件的工作状态,包括:In some embodiments, the preset second device is Bluetooth of the second mobile terminal, and the acquiring the working state of the preset second device of the second mobile terminal includes:
获取第二移动终端的蓝牙的信号强度值,其中,所述信号强度值用于表示所述第二移动终端的蓝牙的工作状态;acquiring the signal strength value of the Bluetooth of the second mobile terminal, wherein the signal strength value is used to represent the working state of the Bluetooth of the second mobile terminal;
所述根据所述工作状态,确定第二驱动电流,包括:The determining of the second driving current according to the working state includes:
根据所述信号强度值,确定第二驱动电流。A second drive current is determined according to the signal strength value.
在一些实施例中,所述根据所述信号强度值,确定第二驱动电流,包括:In some embodiments, the determining the second driving current according to the signal strength value includes:
根据所述信号强度值,以及所述信号强度值与驱动电流的预设对应关系,确定第二驱动电流。The second driving current is determined according to the signal strength value and the preset corresponding relationship between the signal strength value and the driving current.
在一些实施例中,所述获取第一驱动电流,包括:In some embodiments, the obtaining the first driving current includes:
每隔一段预设时间获取第一驱动电流。The first driving current is obtained every preset time.
如图7所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图7中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 7 , the mobile terminal 1200 may include an RF (Radio Frequency, radio frequency)
RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced DataGSM Environment,EDGE),宽带码分多址技术(Wideband Code Division MultipleAccess,WCDMA),码分多址技术(Code Division Access,CDMA)、时分多址技术(TimeDivision Multiple Access,TDMA),无线保真技术(Wireless Fidelity,Wi-Fi)(如美国电气和电子工程师协会标准IEEE 802.11a,IEEE 802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over Internet Protocol,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The
存储器120可用于存储软件程序以及模块,如上述实施例中驱动电流的调节方法、装置、存储介质及移动终端对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至移动终端1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合,存储器120可以为如上所述的存储介质。The
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图7中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。其中,上述实施例中移动终端的显示界面可以用该显示单元140表示,即显示界面显示的显示内容可以由显示单元140进行显示。The
移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 1200 may further include at least one
音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。The
移动终端1200通过传输模块170(例如蓝牙模块1701)可以帮助用户收发文件等,它为用户提供了无线短距离通讯等。The mobile terminal 1200 can help the user to send and receive files through the transmission module 170 (eg, the Bluetooth module 1701 ), and it provides the user with wireless short-distance communication and the like.
处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;在一些实施例中,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The
具体的,处理器180包括有:算术逻辑运算单元(Arithmetic Logic Unit,ALU)、应用处理器、全球定位系统(Global Positioning System,GPS)与控制及状态总线(Bus)(图中未示出)。Specifically, the
移动终端1200还包括给各个部件供电的电源190(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 1200 also includes a power source 190 (such as a battery) for powering various components. In some embodiments, the power source can be logically connected to the
尽管未示出,移动终端1200还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。Although not shown, the mobile terminal 1200 may further include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be repeated here.
具体在本实施例中,移动终端1200的显示单元140是触摸屏显示器,移动终端1200还包括有存储器120,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器120中,且经配置以由一个或者一个以上处理器180执行一个或者一个以上程序包含用于进行以下操作的指令:Specifically in this embodiment, the
获取第二移动终端的预设第二器件的第一工作状态;acquiring the first working state of the preset second device of the second mobile terminal;
获取第二移动终端的预设第二器件的第二工作状态;acquiring the second working state of the preset second device of the second mobile terminal;
若所述第一工作状态和所述第二工作状态满足预设条件,则获取驱动电流,其中,所述驱动电流是当前用于驱动所述预设第一器件的电流;If the first working state and the second working state satisfy a preset condition, obtaining a drive current, where the drive current is the current currently used to drive the preset first device;
按照预设幅度调整所述驱动电流,得到调整后的驱动电流;Adjust the drive current according to the preset amplitude to obtain the adjusted drive current;
按照所述调整后的驱动电流驱动所述预设第一器件。The preset first device is driven according to the adjusted driving current.
在一些实施例中,所述预设第二器件为第二移动终端的蓝牙,所述获取第二移动终端的预设第二器件的第一工作状态,包括:In some embodiments, the preset second device is Bluetooth of the second mobile terminal, and the acquiring the first working state of the preset second device of the second mobile terminal includes:
获取第二移动终端的蓝牙的第一信号强度值,其中,所述第一信号强度值用于表示所述第二移动终端的蓝牙的第一工作状态;acquiring a first signal strength value of the Bluetooth of the second mobile terminal, wherein the first signal strength value is used to represent the first working state of the Bluetooth of the second mobile terminal;
所述获取第二移动终端的预设第二器件的第二工作状态,包括:The acquiring the second working state of the preset second device of the second mobile terminal includes:
获取第二移动终端的蓝牙的第二信号强度值,其中,所述第二信号强度值用于表示所述第二移动终端的蓝牙的第二工作状态;acquiring a second signal strength value of the Bluetooth of the second mobile terminal, wherein the second signal strength value is used to represent the second working state of the Bluetooth of the second mobile terminal;
所述若所述第一工作状态和所述第二工作状态满足预设条件时,则获取驱动电流,包括:If the first working state and the second working state satisfy a preset condition, obtaining the driving current includes:
若所述第一信号强度值大于所述第二信号强度值,且所述第一信号强度值和所述第二信号强度值的差值大于预设第二阈值,则获取驱动电流;If the first signal strength value is greater than the second signal strength value, and the difference between the first signal strength value and the second signal strength value is greater than a preset second threshold, obtaining a driving current;
所述按照预设幅度调整所述驱动电流,得到调整后的驱动电流,包括:The adjusting the drive current according to the preset amplitude to obtain the adjusted drive current includes:
按照预设幅度增大所述驱动电流,得到调整后的驱动电流。The driving current is increased according to a preset range to obtain the adjusted driving current.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。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.
以上对本申请实施例所提供的一种驱动电流的调节方法、装置、存储介质及移动终端进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的技术方案及其核心思想;本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例的技术方案的范围。The method, device, storage medium, and mobile terminal for adjusting a driving current provided by the embodiments of the present application are described above in detail. The principles and implementations of the present application are described with specific examples. The description is only used to help understand the technical solution of the present application and its core idea; those of ordinary skill in the art should understand that it is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements to some of the technical features. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910281807.XA CN110022600B (en) | 2019-04-09 | 2019-04-09 | Driving current adjusting method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910281807.XA CN110022600B (en) | 2019-04-09 | 2019-04-09 | Driving current adjusting method and device, storage medium and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110022600A CN110022600A (en) | 2019-07-16 |
| CN110022600B true CN110022600B (en) | 2022-05-06 |
Family
ID=67190889
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910281807.XA Active CN110022600B (en) | 2019-04-09 | 2019-04-09 | Driving current adjusting method and device, storage medium and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110022600B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112256610B (en) * | 2020-10-19 | 2022-05-06 | Tcl通讯(宁波)有限公司 | Connection control method, system, storage medium and mobile terminal |
| CN113328671B (en) * | 2021-06-16 | 2022-07-29 | 青岛海信日立空调系统有限公司 | Air conditioning system |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103259921A (en) * | 2013-03-01 | 2013-08-21 | 衡阳加一电子科技有限公司 | Device paring method and device |
| CN103576569A (en) * | 2012-08-08 | 2014-02-12 | 联想(北京)有限公司 | Automatic adjusting method, equipment and system |
| CN104135741A (en) * | 2014-07-08 | 2014-11-05 | 福建联迪商用设备有限公司 | Method of Bluetooth low energy communication, Bluetooth devices and system |
| CN105071500A (en) * | 2015-09-07 | 2015-11-18 | 小米科技有限责任公司 | Terminal, charging method and device of terminal |
| CN105334420A (en) * | 2014-06-27 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN106332132A (en) * | 2015-07-03 | 2017-01-11 | 中兴通讯股份有限公司 | Communication terminal for performance adjustment of self-adaptable Bluetooth and method |
| CN106413070A (en) * | 2016-10-19 | 2017-02-15 | 广东欧珀移动通信有限公司 | A power adjustment method and mobile terminal |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9063540B2 (en) * | 2009-04-07 | 2015-06-23 | Fisher Controls International Llc | Methods and apparatus to limit a change of a drive value in an electro-pneumatic controller |
| CN107004154A (en) * | 2015-11-03 | 2017-08-01 | 国民技术股份有限公司 | A kind of smart card and its reduction peak point current method |
| US20160284185A1 (en) * | 2016-06-01 | 2016-09-29 | Global Tracking Communications, Inc. | Active bluetooth le tag scanning and tracking for use in vehicle telematics applications |
| CN107706985A (en) * | 2017-10-31 | 2018-02-16 | 北京小米移动软件有限公司 | terminal charging method and device |
| CN109245195A (en) * | 2018-08-20 | 2019-01-18 | 奇酷互联网络科技(深圳)有限公司 | The method, apparatus and storage device of mobile terminal and charging process |
-
2019
- 2019-04-09 CN CN201910281807.XA patent/CN110022600B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103576569A (en) * | 2012-08-08 | 2014-02-12 | 联想(北京)有限公司 | Automatic adjusting method, equipment and system |
| CN103259921A (en) * | 2013-03-01 | 2013-08-21 | 衡阳加一电子科技有限公司 | Device paring method and device |
| CN105334420A (en) * | 2014-06-27 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN104135741A (en) * | 2014-07-08 | 2014-11-05 | 福建联迪商用设备有限公司 | Method of Bluetooth low energy communication, Bluetooth devices and system |
| CN106332132A (en) * | 2015-07-03 | 2017-01-11 | 中兴通讯股份有限公司 | Communication terminal for performance adjustment of self-adaptable Bluetooth and method |
| CN105071500A (en) * | 2015-09-07 | 2015-11-18 | 小米科技有限责任公司 | Terminal, charging method and device of terminal |
| CN106413070A (en) * | 2016-10-19 | 2017-02-15 | 广东欧珀移动通信有限公司 | A power adjustment method and mobile terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110022600A (en) | 2019-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106131345B (en) | Control method and device of proximity sensor and mobile terminal | |
| CN106301462B (en) | Radio frequency control circuit and mobile terminal | |
| CN106331359B (en) | A kind of speech signal collection method, device and terminal | |
| CN108900231B (en) | Dynamic antenna adjustment method and related products | |
| CN106340925A (en) | A charging control method, device and terminal | |
| WO2019011231A1 (en) | Method for reducing sar value of mobile terminal, storage medium and mobile terminal | |
| US20200241925A1 (en) | Method for automatically releasing resource occupied by process in background of terminal, storage medium, and terminal | |
| CN106982097A (en) | Radio frequency interference elimination method, device, storage medium and terminal | |
| CN106936516B (en) | Display state control method, storage medium and terminal | |
| CN107172671A (en) | A kind of channel switching method, device, storage medium and terminal | |
| WO2019011335A1 (en) | Mobile terminal and control method therefor, and readable storage medium | |
| CN106101776B (en) | Volume adjusting method, intelligent device and sound box | |
| CN105933944A (en) | Optimized use method, device and mobile terminal of 4G network | |
| WO2022183551A1 (en) | Base station control method and apparatus, and mobile terminal | |
| CN105792299A (en) | Optimal use method, device and mobile terminal of 3G network | |
| WO2019042478A1 (en) | Control method for input method soft keyboard of mobile terminal, storage medium, and mobile terminal | |
| CN110022600B (en) | Driving current adjusting method and device, storage medium and mobile terminal | |
| CN107528958A (en) | Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal | |
| CN105100361B (en) | The way of recording and device of mobile terminal | |
| CN106851806A (en) | A transmission power control method and mobile terminal | |
| CN106254673A (en) | Terminal fall detection method and device | |
| CN109831798B (en) | Signal acquisition method, system, storage medium and mobile terminal | |
| CN111898542A (en) | A display screen control method, device and terminal | |
| CN106227337A (en) | Method, device and terminal for adjusting screen brightness | |
| CN110062412A (en) | Wireless pairing method, system, storage medium and mobile terminal |
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 | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20231223 Address after: 361000 room 4101, No. 131, xinjingdongli, Haicang District, Xiamen City, Fujian Province Patentee after: Xiamen Jiupin sesame Information Technology Co.,Ltd. Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250514 Address after: No. 19-166, No.1 Guoxin Road, Jinjiang District, Chengdu City, Sichuan Province, China 610065 Patentee after: Sichuan Zhiju Kerui Technology Co.,Ltd. Country or region after: China Address before: 361000 room 4101, No. 131, xinjingdongli, Haicang District, Xiamen City, Fujian Province Patentee before: Xiamen Jiupin sesame Information Technology Co.,Ltd. Country or region before: China |