CN107770811B - Data processing method, mobile terminal and computer readable storage medium - Google Patents

Data processing method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107770811B
CN107770811B CN201710978703.5A CN201710978703A CN107770811B CN 107770811 B CN107770811 B CN 107770811B CN 201710978703 A CN201710978703 A CN 201710978703A CN 107770811 B CN107770811 B CN 107770811B
Authority
CN
China
Prior art keywords
bluetooth module
data
controlling
mobile terminal
preset
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
CN201710978703.5A
Other languages
Chinese (zh)
Other versions
CN107770811A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710978703.5A priority Critical patent/CN107770811B/en
Publication of CN107770811A publication Critical patent/CN107770811A/en
Application granted granted Critical
Publication of CN107770811B publication Critical patent/CN107770811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic or resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0215Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices
    • H04W28/0221Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices power availability or consumption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a data processing method, a mobile terminal and a computer readable storage medium, wherein the data processing method comprises the following steps: when the Bluetooth module is in an activation mode, controlling the Bluetooth module to enter a first preset duration of periodic sleep; after the sleep time reaches a first preset time, controlling the Bluetooth module to process the data packet in a second preset time; the first preset duration is longer than the second preset duration. The invention can reduce the data packet processing amount of the Bluetooth module in the active mode, thereby reducing the standby power consumption of the Bluetooth and prolonging the standby time of the mobile terminal.

Description

Data processing method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a data processing method, a mobile terminal, and a computer-readable storage medium.
Background
At present, in a mobile phone, when a traditional bluetooth is in a standby state, a unified sleep-wake-up frequency needs to be achieved through negotiation with a remote device, so that a sniff mode (breathing mode) is entered, transmission of data packets is further reduced, and an effective power consumption reduction effect is achieved.
However, since both parties need to negotiate to achieve a uniform sleep-wakeup frequency, if one party disagrees, the bluetooth cannot enter the sniff mode, which results in large power consumption of bluetooth.
Disclosure of Invention
The invention aims to provide a data processing method, a mobile terminal and a computer readable storage medium, so as to solve the problem of high power consumption of Bluetooth in the prior art.
In order to solve the technical problem, the invention is realized as follows: a data processing method is applied to a mobile terminal with a Bluetooth module, the mobile terminal is connected with a remote device through the Bluetooth module, and the data processing method comprises the following steps:
when the Bluetooth module is in an activation mode, controlling the Bluetooth module to enter a first preset duration of periodic sleep;
after the sleep time reaches a first preset time, controlling the Bluetooth module to process the data packet in a second preset time;
the first preset time length is longer than the second preset time length.
In a first aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal has a bluetooth module, and the mobile terminal is connected to a remote device through the bluetooth module, and the mobile terminal includes:
the first control module is used for controlling the Bluetooth module to enter periodic sleep with a first preset duration when the Bluetooth module is in an active mode;
the second control module is used for controlling the Bluetooth module to process the data packet in a second preset time after the sleep time reaches the first preset time;
the first preset time length is longer than the second preset time length.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the data processing method described above.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the data processing method described above.
The embodiment of the invention can reduce the data packet processing amount of the Bluetooth module in the active mode, thereby reducing the standby power consumption of the Bluetooth and prolonging the standby time of the mobile terminal.
Drawings
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a specific application flow of a data processing method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an embodiment of the present invention in which Bluetooth operates in an active mode;
FIG. 4 is a schematic diagram of Bluetooth operation under sleep control according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a data processing method aiming at the problem of larger Bluetooth power consumption in the prior art, which can be applied to a mobile terminal with a Bluetooth module, wherein the mobile terminal is connected with a remote device through the Bluetooth module, as shown in figure 1, the data processing method comprises the following steps:
step 11: and when the Bluetooth module is in an activation mode, controlling the Bluetooth module to enter a first preset time period of periodic sleep.
Specifically, when the bluetooth module cannot enter the sniff mode, the bluetooth module is controlled to enter a self-sleep state; correspondingly, step 11 may specifically include: when the Bluetooth module is in an active mode and the Bluetooth module fails to negotiate a sleep wakeup frequency with a remote device, controlling the Bluetooth module to keep connection with the remote device and controlling the Bluetooth module to enter a periodic sleep with a first preset duration;
in more detail, when the bluetooth module is in the active mode and the bluetooth module fails to negotiate the sleep wakeup frequency with the remote device, the step of controlling the bluetooth module to maintain the connection with the remote device and to enter the periodic sleep of the first preset duration may include:
when the Bluetooth module is in an active mode and is in a connection state with a remote device, if the data exchange frequency between the Bluetooth module and the remote device in a third preset time is lower than a first preset threshold, controlling the Bluetooth module and the remote device to perform sleep wakeup frequency negotiation; and if the negotiation fails, controlling the Bluetooth module to keep the connection with the remote equipment, and controlling the Bluetooth module to enter the periodic sleep with the first preset duration.
Step 12: and after the sleep time reaches a first preset time, controlling the Bluetooth module to process the data packet in a second preset time.
That is, after the sleep time of the bluetooth module reaches the preset sleep time, the bluetooth module is controlled to work for a certain time in order to prevent the bluetooth module from being disconnected with the remote device.
The first preset time length is longer than the second preset time length. Specifically, the first preset duration and the second preset duration are obtained according to a bluetooth core protocol and connection timeout disconnection information (the connection timeout disconnection information may specifically be a time threshold of connection timeout disconnection, and in a connection process, if time during which there is no data interaction between the bluetooth module and the remote device reaches the time threshold, the connection between the bluetooth module and the remote device is disconnected); preferably, the first preset time period is 40 time slots, and the second preset time period is 1 time slot.
The data processing method provided by the embodiment of the invention controls the Bluetooth module to enter the periodic sleep of a first preset duration when the Bluetooth module is in the activation mode; after the sleep time reaches the first preset time, the Bluetooth module is controlled to process the data packet in the second preset time, so that the data packet processing amount of the Bluetooth module in the active mode can be reduced, the power consumption of Bluetooth standby is reduced, and the standby time of the mobile terminal is prolonged.
Further, in the sleep process of the bluetooth module, the data processing method further includes: and when the preset type of data interaction is monitored, controlling the Bluetooth module to stop the periodic sleep and controlling the Bluetooth module to process the preset type of data.
That is, the bluetooth module may be awakened in time to perform data transmission under a preset condition, and the preset type of data may be object exchange data, bluetooth media audio data, or synchronous connection-oriented data.
Further, after controlling the bluetooth module to process the preset type of data, the data processing method further includes: and if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value within a third preset time, returning to the step of controlling the Bluetooth module to enter the periodic sleep of the first preset time when the Bluetooth module is in the activation mode.
The method can be specifically as follows: if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value within a third preset time length, controlling the Bluetooth module and the remote equipment to carry out sleep wakeup frequency negotiation; if the negotiation is successful, controlling the Bluetooth module to enter corresponding periodic sleep awakening according to the negotiated sleep awakening frequency; if the negotiation fails, returning to the operation of controlling the bluetooth module to enter the periodic sleep with the first preset duration when the bluetooth module is in the active mode (specifically, returning to the operation of controlling the bluetooth module to maintain the connection with the remote device and controlling the bluetooth module to enter the periodic sleep with the first preset duration).
That is, after the bluetooth module is awakened to process data under the preset condition, the bluetooth module is controlled to enter active sleep again when the condition is met, so that the standby power consumption of the bluetooth is reduced to the maximum extent.
Therefore, the scheme provided by the embodiment of the invention well solves the problem that the power consumption of the Bluetooth cannot be reduced when the Bluetooth cannot enter the sniff mode in the prior art.
The data processing method provided by the embodiment of the invention is further explained below.
In view of the above technical problems, an embodiment of the present invention provides a data processing method, which mainly includes: when the IOT of the remote equipment does not agree with or does not support the sniff mode, the mobile terminal controls the Bluetooth module to actively and periodically sleep for a certain time under the condition of ensuring normal connection of a link, so that the power consumption of Bluetooth standby is reduced; as shown in fig. 2, the method includes:
step 21: a Bluetooth module of the mobile terminal is in an idle state;
the bluetooth module of the mobile terminal is connected with the IOT device, but frequent data exchange is not performed within 30s (a third preset time period) (the data exchange frequency is lower than a first preset threshold, for example, no file sharing or song playing event is performed).
Step 22: entering a sniff mode after negotiation, entering a step 23 after negotiation is successful, and entering a step 24 after negotiation is failed;
step 23: the Bluetooth module of the mobile terminal enters a low-power mode;
step 24: the Bluetooth module of the mobile terminal sleeps for a certain period;
the bluetooth module of the mobile terminal and the IOT device may not negotiate the unified sleep-wake-up frequency and may not enter the sniffmode, and the bluetooth module of the mobile terminal still needs to operate in an Active mode (Active mode/normal mode), as shown in fig. 3;
in this embodiment, in order to reduce the standby power consumption of bluetooth, under the condition of ensuring normal connection (it may be set that data interaction between TX and RX needs to be performed within 5s, and if no data interaction lasts for more than 5s, connection timeout is broken), the bluetooth module of the mobile terminal actively periodically sleeps for a period of 40 slots (a sleep time determined by combining 5s of the preset time and the bluetooth core protocol), and then alternates data of one slot period (an interaction time determined by combining 5s of the preset time and the bluetooth core protocol; one slot time is 0.625ms according to the bluetooth core protocol), so as to reduce the transmission of data packets, as shown in fig. 4.
Step 25: the Bluetooth module is not in an idle state, and the Bluetooth module of the mobile terminal enters a normal mode to process data.
When the bluetooth module of the mobile terminal and the IOT device perform interaction of object exchange obex data, or interaction of bluetooth media audio a2dp data, or interaction of synchronous connection oriented sco data, the mobile terminal will be switched to a normal operating mode (for example, sharing a file or playing a song event) immediately.
It can also be understood that when there is obex data, a2dp data or sco data to be interacted with, the bluetooth module can be woken up to stop the bluetooth module from sleeping.
As can be seen from the above, in the solution provided in the embodiment of the present invention, for the situation that, in order to pursue quality improvement, more and more IOT devices in the current market do not support or disagree with the IOT devices entering the sniff mode, and therefore the bluetooth module of the mobile terminal cannot enter the sniff mode during standby, the standby power consumption of the bluetooth module can be effectively reduced through the above measures, and the test result shows that the power consumption can be reduced by about 15 mA.
An embodiment of the present invention further provides a mobile terminal, where the mobile terminal has a bluetooth module, and the mobile terminal is connected to a remote device through the bluetooth module, as shown in fig. 5, and the mobile terminal includes:
the first control module 51 is configured to control the bluetooth module to enter a first preset-duration periodic sleep when the bluetooth module is in an active mode;
the second control module 52 is configured to control the bluetooth module to process the data packet within a second preset time period after the sleep time reaches the first preset time period;
the first preset time length is longer than the second preset time length.
The mobile terminal provided by the embodiment of the invention controls the Bluetooth module to enter the periodic sleep of a first preset duration when the Bluetooth module is in the activation mode; after the sleep time reaches a first preset time, controlling the Bluetooth module to process the data packet in a second preset time; the processing amount of the data packet of the Bluetooth module in the active mode can be reduced, so that the power consumption of the Bluetooth standby mode is reduced, and the standby time of the mobile terminal is prolonged.
Specifically, the first control module includes: and the first control submodule is used for controlling the Bluetooth module to keep connection with the remote equipment and controlling the Bluetooth module to enter periodic sleep with a first preset duration when the Bluetooth module is in an active mode and the Bluetooth module fails to negotiate the sleep wakeup frequency with the remote equipment.
More specifically, the first control sub-module includes: the first control unit is used for controlling the Bluetooth module and the remote equipment to carry out sleep wake-up frequency negotiation if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value within a third preset time length when the Bluetooth module is in an active mode and is in a connection state with the remote equipment;
and the second control unit is used for controlling the Bluetooth module to keep the connection with the remote equipment and controlling the Bluetooth module to enter the periodic sleep with the first preset duration if the negotiation fails.
Further, the mobile terminal further includes: and the third control module is used for controlling the Bluetooth module to stop the periodic sleep and controlling the Bluetooth module to process the data of the preset type when the Bluetooth module monitors the data interaction of the preset type in the sleep process.
Further, the mobile terminal further includes: and the fourth control module is used for returning to the state that the Bluetooth module is in the activation mode and controlling the Bluetooth module to enter the operation of the periodic sleep for the first preset time length if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value in a third preset time length after controlling the Bluetooth module to process the preset type of data.
The fourth control module may be specifically configured to: if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value within a third preset time length, controlling the Bluetooth module and the remote equipment to carry out sleep wakeup frequency negotiation; if the negotiation is successful, controlling the Bluetooth module to enter corresponding periodic sleep awakening according to the negotiated sleep awakening frequency; if the negotiation fails, returning to the operation of controlling the bluetooth module to enter the periodic sleep with the first preset duration when the bluetooth module is in the active mode (specifically, returning to the operation of controlling the bluetooth module to maintain the connection with the remote device and controlling the bluetooth module to enter the periodic sleep with the first preset duration).
The preset type of data may be object exchange data, bluetooth media audio data, or synchronous connection-oriented data.
In this embodiment, the first preset duration and the second preset duration may be obtained according to a bluetooth core protocol and connection timeout disconnection information. Preferably, the first preset time period is 40 time slots, and the second preset time period is 1 time slot.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
Therefore, the scheme provided by the embodiment of the invention can reduce the data packet processing amount of the Bluetooth module in the active mode, thereby reducing the standby power consumption of the Bluetooth and prolonging the standby time of the mobile terminal.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 60 includes, but is not limited to: radio frequency unit 61, network module 62, audio output unit 63, input unit 64, sensor 65, display unit 66, user input unit 67, interface unit 68, memory 69, processor 610, and power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The mobile terminal 60 is provided with a bluetooth module, the mobile terminal is connected with a remote device through the bluetooth module, and the processor 610 is configured to control the bluetooth module to enter a first preset-duration periodic sleep when the bluetooth module is in an active mode; after the sleep time reaches a first preset time, controlling the Bluetooth module to process the data packet in a second preset time; the first preset time length is longer than the second preset time length.
In the embodiment of the invention, when the Bluetooth module is in an active mode, the Bluetooth module is controlled to enter the periodic sleep of a first preset duration; after the sleep time reaches a first preset time, controlling the Bluetooth module to process the data packet in a second preset time; the processing amount of the data packet of the Bluetooth module in the active mode can be reduced, so that the power consumption of the Bluetooth standby mode is reduced, and the standby time of the mobile terminal is prolonged (the sending of the data packet can be reduced when the Bluetooth module is in the active mode, so that the power consumption of the Bluetooth standby mode is reduced, and the problem that the power consumption of the Bluetooth cannot be reduced when the Bluetooth cannot enter the sniff mode in the prior art is solved).
Specifically, the processor 610 is specifically configured to, when the bluetooth module is in the active mode and the bluetooth module fails to negotiate the sleep wakeup frequency with the remote device, control the bluetooth module to maintain the connection with the remote device, and control the bluetooth module to enter the periodic sleep with the first preset duration.
More specifically, the processor 610 is specifically configured to, when the bluetooth module is in the active mode and is in a connection state with the remote device, control the bluetooth module and the remote device to perform a sleep wake-up frequency negotiation if a data exchange frequency between the bluetooth module and the remote device is lower than a first preset threshold within a third preset duration; and if the negotiation fails, controlling the Bluetooth module to keep the connection with the remote equipment, and controlling the Bluetooth module to enter the periodic sleep with the first preset duration.
Further, the processor 610 is further configured to control the bluetooth module to stop the periodic sleep and control the bluetooth module to process the data of the preset type when monitoring that the data of the preset type is interacted during the sleep of the bluetooth module.
Further, the processor 610 is further configured to, after controlling the bluetooth module to process the data of the preset type, if a data exchange frequency between the bluetooth module and a remote device is lower than a first preset threshold in a third preset duration, return to the step of controlling the bluetooth module to enter the periodic sleep of the first preset duration when the bluetooth module is in the active mode.
Optionally, the preset type of data is object exchange data, bluetooth media audio data, or synchronous connection-oriented data.
Optionally, the first preset duration and the second preset duration are obtained according to a bluetooth core protocol and connection timeout disconnection information.
Optionally, the first preset time duration is 40 time slots, and the second preset time duration is 1 time slot.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 61 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 61 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 61 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 62, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 63 may convert audio data received by the radio frequency unit 61 or the network module 62 or stored in the memory 69 into an audio signal and output as sound. Also, the audio output unit 63 may also provide audio output related to a specific function performed by the mobile terminal 60 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 63 includes a speaker, a buzzer, a receiver, and the like.
The input unit 64 is used to receive an audio or video signal. The input Unit 64 may include a Graphics Processing Unit (GPU) 641 and a microphone 642, and the Graphics processor 641 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 66. The image frames processed by the graphic processor 641 may be stored in the memory 69 (or other storage medium) or transmitted via the radio frequency unit 61 or the network module 62. The microphone 642 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 61 in case of the phone call mode.
The mobile terminal 60 also includes at least one sensor 65, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 661 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 661 and/or a backlight when the mobile terminal 60 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 65 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 66 is used to display information input by the user or information provided to the user. The Display unit 66 may include a Display panel 661, and the Display panel 661 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 67 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 67 includes a touch panel 671 and other input devices 672. The touch panel 671, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 671 (e.g., operations by a user on or near the touch panel 671 using a finger, a stylus, or any other suitable object or attachment). The touch panel 671 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 671 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 671, the user input unit 67 may also include other input devices 672. In particular, the other input devices 672 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 671 can be overlaid on the display panel 661, and when the touch panel 671 detects a touch operation on or near the touch panel 671, the touch panel 671 can be transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 can provide a corresponding visual output on the display panel 661 according to the type of the touch event. Although the touch panel 671 and the display panel 661 are shown as two separate components in fig. 6 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 671 and the display panel 661 can be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 68 is an interface for connecting an external device with the mobile terminal 60. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 68 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 60 or may be used to transmit data between the mobile terminal 60 and external devices.
The memory 69 may be used to store software programs as well as various data. The memory 69 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 69 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 69 and calling data stored in the memory 69, thereby performing overall monitoring of the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 60 may also include a power supply 611 (e.g., a battery) for powering the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system that provides management of charging, discharging, and power consumption.
In addition, the mobile terminal 60 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 69, and a computer program stored in the memory 69 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (16)

1. A data processing method is applied to a mobile terminal with a Bluetooth module, wherein the mobile terminal is connected with a remote device through the Bluetooth module, and the data processing method comprises the following steps:
when the Bluetooth module is in an activation mode, controlling the Bluetooth module to enter a first preset duration of periodic sleep;
after the sleep time reaches a first preset time, controlling the Bluetooth module to process the data packet in a second preset time;
the first preset time length is longer than the second preset time length;
when the Bluetooth module is in an active mode, the step of controlling the Bluetooth module to enter a first preset duration of periodic sleep comprises:
when the Bluetooth module is in an active mode and the Bluetooth module fails to negotiate a sleep wakeup frequency with a remote device, the Bluetooth module is controlled to keep connection with the remote device and is controlled to enter a first preset time period of periodic sleep.
2. The data processing method of claim 1, wherein the step of controlling the bluetooth module to maintain a connection with a remote device and to enter into a first preset-duration periodic sleep when the bluetooth module is in an active mode and the bluetooth module fails to negotiate a sleep wakeup frequency with the remote device comprises:
when the Bluetooth module is in an active mode and is in a connection state with a remote device, if the data exchange frequency between the Bluetooth module and the remote device in a third preset time is lower than a first preset threshold, controlling the Bluetooth module and the remote device to perform sleep wakeup frequency negotiation;
and if the negotiation fails, controlling the Bluetooth module to keep the connection with the remote equipment, and controlling the Bluetooth module to enter the periodic sleep with the first preset duration.
3. The data processing method of claim 1, wherein during the sleep of the bluetooth module, the data processing method further comprises:
and when the preset type of data interaction is monitored, controlling the Bluetooth module to stop the periodic sleep and controlling the Bluetooth module to process the preset type of data.
4. The data processing method of claim 3, wherein after controlling the Bluetooth module to process the preset type of data, the data processing method further comprises:
and if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value within a third preset time, returning to the step of controlling the Bluetooth module to enter the periodic sleep of the first preset time when the Bluetooth module is in the activation mode.
5. A data processing method according to claim 3, wherein the data of the predetermined type is object exchange data, bluetooth media audio data or synchronous connection oriented data.
6. The data processing method according to any one of claims 1 to 5, wherein the first predetermined duration and the second predetermined duration are obtained according to a Bluetooth core protocol and connection timeout disconnection information.
7. The data processing method of claim 6, wherein the first predetermined duration is 40 time slots, and the second predetermined duration is 1 time slot.
8. A mobile terminal, characterized in that the mobile terminal has a Bluetooth module, the mobile terminal is connected with a remote device through the Bluetooth module, the mobile terminal comprises:
the first control module is used for controlling the Bluetooth module to enter periodic sleep with a first preset duration when the Bluetooth module is in an active mode;
the second control module is used for controlling the Bluetooth module to process the data packet in a second preset time after the sleep time reaches the first preset time;
the first preset time length is longer than the second preset time length;
the first control module includes:
and the first control submodule is used for controlling the Bluetooth module to keep connection with the remote equipment and controlling the Bluetooth module to enter periodic sleep with a first preset duration when the Bluetooth module is in an active mode and the Bluetooth module fails to negotiate the sleep wakeup frequency with the remote equipment.
9. The mobile terminal of claim 8, wherein the first control sub-module comprises:
the first control unit is used for controlling the Bluetooth module and the remote equipment to carry out sleep wake-up frequency negotiation if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value within a third preset time length when the Bluetooth module is in an active mode and is in a connection state with the remote equipment;
and the second control unit is used for controlling the Bluetooth module to keep the connection with the remote equipment and controlling the Bluetooth module to enter the periodic sleep with the first preset duration if the negotiation fails.
10. The mobile terminal of claim 8, wherein the mobile terminal further comprises:
and the third control module is used for controlling the Bluetooth module to stop the periodic sleep and controlling the Bluetooth module to process the data of the preset type when the Bluetooth module monitors the data interaction of the preset type in the sleep process.
11. The mobile terminal of claim 10, wherein the mobile terminal further comprises:
and the fourth control module is used for returning to the state that the Bluetooth module is in the activation mode and controlling the Bluetooth module to enter the operation of the periodic sleep for the first preset time length if the data exchange frequency between the Bluetooth module and the remote equipment is lower than a first preset threshold value in a third preset time length after controlling the Bluetooth module to process the preset type of data.
12. The mobile terminal of claim 10, wherein the predetermined type of data is object exchange data, bluetooth media audio data, or synchronous connection oriented data.
13. The mobile terminal according to any of claims 8 to 12, wherein the first predetermined duration and the second predetermined duration are obtained according to a bluetooth core protocol and connection timeout disconnection information.
14. The mobile terminal of claim 13, wherein the first predetermined duration is 40 timeslots and the second predetermined duration is 1 timeslot.
15. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the data processing method according to any one of claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 7.
CN201710978703.5A 2017-10-19 2017-10-19 Data processing method, mobile terminal and computer readable storage medium Active CN107770811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710978703.5A CN107770811B (en) 2017-10-19 2017-10-19 Data processing method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710978703.5A CN107770811B (en) 2017-10-19 2017-10-19 Data processing method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107770811A CN107770811A (en) 2018-03-06
CN107770811B true CN107770811B (en) 2020-03-24

Family

ID=61268984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710978703.5A Active CN107770811B (en) 2017-10-19 2017-10-19 Data processing method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107770811B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102545966A (en) * 2010-10-29 2012-07-04 美国博通公司 Host device, method and system
CN105430547A (en) * 2015-10-23 2016-03-23 小米科技有限责任公司 Dormancy method and apparatus of bluetooth earphones

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8135346B2 (en) * 2008-12-04 2012-03-13 Broadcom Corporation Method and system for a reduced USB polling rate to save power on a Bluetooth host
US9848026B2 (en) * 2015-06-05 2017-12-19 Apple Inc. Simultaneous wireless connections with improved efficiency

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102545966A (en) * 2010-10-29 2012-07-04 美国博通公司 Host device, method and system
CN105430547A (en) * 2015-10-23 2016-03-23 小米科技有限责任公司 Dormancy method and apparatus of bluetooth earphones

Also Published As

Publication number Publication date
CN107770811A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
WO2019196707A1 (en) Mobile terminal control method and mobile terminal
WO2019120087A1 (en) Processing method for reducing power consumption and mobile terminal
US20210089270A1 (en) Prompting method and mobile terminal
CN109710150B (en) Key control method and terminal
CN108712566B (en) Voice assistant awakening method and mobile terminal
CN108322599B (en) Network access method and mobile terminal
US20210105651A1 (en) Measurement gap processing method, terminal, and network node
WO2021036528A1 (en) Control method for terminal device and terminal device
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN109413726B (en) Power consumption control method and mobile terminal
CN109412986B (en) Communication channel setting method and mobile terminal
EP3761724A1 (en) Power configuration method and terminal
CN108811037B (en) Data transmission method and communication equipment
CN107770811B (en) Data processing method, mobile terminal and computer readable storage medium
CN108632468B (en) Method for adjusting CABC level and mobile terminal
CN107864294B (en) Do not disturb mode starting method and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN109981888B (en) Wake-up timer control method, terminal and computer readable storage medium
CN108287755B (en) Application program control method and mobile terminal
CN112543079B (en) PDCCH monitoring control method and related equipment
CN109445667B (en) Screen mode switching method and device
CN110210197B (en) Screen sensitivity adjusting method and mobile terminal
CN107846287B (en) Power supply control method and mobile terminal
CN110621057B (en) Information transmission method, network equipment and terminal
CN110086497B (en) Signal transmission method and terminal equipment

Legal Events

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