CN109890022B - Data transmission control method, mobile terminal and computer readable storage medium - Google Patents
Data transmission control method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109890022B CN109890022B CN201910247190.XA CN201910247190A CN109890022B CN 109890022 B CN109890022 B CN 109890022B CN 201910247190 A CN201910247190 A CN 201910247190A CN 109890022 B CN109890022 B CN 109890022B
- Authority
- CN
- China
- Prior art keywords
- data instruction
- data
- bluetooth channel
- bluetooth
- type
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 73
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000006854 communication Effects 0.000 claims abstract description 57
- 238000004891 communication Methods 0.000 claims abstract description 56
- 230000015654 memory Effects 0.000 claims description 21
- 238000001514 detection method Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000010295 mobile communication Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000007774 longterm Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000009295 sperm incapacitation Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The application provides a data transmission control method, which is applied to a mobile terminal and comprises the following steps: establishing Bluetooth communication connection with the wearable equipment; determining a data instruction attribute of a data instruction sent to the wearable device; determining a corresponding Bluetooth channel according to the data instruction attribute; and transmitting the data instruction to the wearable equipment according to the Bluetooth channel. The application also provides a mobile terminal and a computer readable storage medium. By adopting the mode, the data instructions with different attributes are sent through the unused Bluetooth channels, so that the power consumption of the wearable device and the mobile terminal in Bluetooth data communication can be effectively reduced, and the transmission efficiency in the data transmission process is also considered.
Description
Technical Field
The present application relates to the field of network communications technologies, and in particular, to a data transmission control method, a mobile terminal, and a computer readable storage medium.
Background
With the continuous improvement and development of wearable devices, wearable devices have gradually become portable electronic devices for people. However, the use of the functionality of the wearable device is mainly achieved by cooperation with the mobile terminal. Due to the size and weight requirements of the wearable device's own structure, the battery capacity in the wearable device cannot reach as much as the mobile terminal to maintain its long-term operation. The consumption of battery power is mainly due to the power consumption problem of the application program running on the wearable device. Therefore, the problem of power consumption is the biggest pain point in the wearing field, and when developing a business function, the trade-off is how much the function spends on power consumption, where the power consumption caused by bluetooth instruction transmission between the wearable device and the mobile terminal is the important consideration object.
In view of the foregoing, there is a need for a solution that both considers power consumption and is optimized in terms of efficiency.
Disclosure of Invention
The application mainly aims to provide a data transmission control method, a mobile terminal and a computer readable storage medium, and aims to reduce power consumption of a wearable device and the mobile terminal when Bluetooth data communication is performed and also consider transmission efficiency in a data transmission process.
To achieve the above object, the present application provides a data transmission control method, which is applied to a mobile terminal, the method comprising: establishing Bluetooth communication connection with the wearable equipment; determining a data instruction attribute of a data instruction sent to the wearable device; determining a corresponding Bluetooth channel according to the data instruction attribute; and transmitting the data instruction to the wearable equipment according to the Bluetooth channel.
Optionally, the data instruction attribute includes a data instruction type, and the step of determining a corresponding bluetooth channel according to the data instruction includes: determining a data instruction type of a data instruction sent to the wearable device; and determining a corresponding Bluetooth channel according to the data instruction type.
Optionally, the data instruction type is determined in advance according to a transmission amount threshold, wherein the data instruction type includes a first type of data instruction with a transmission amount of the data instruction smaller than the transmission amount threshold and a second type of data instruction with a transmission amount of the data instruction larger than the transmission amount threshold.
Optionally, the bluetooth channels include a BR bluetooth channel and a BLE bluetooth channel.
Optionally, the step of determining a corresponding bluetooth channel according to the data instruction type includes: when the data instruction type is a first type data instruction, determining that the corresponding Bluetooth channel is a BLE Bluetooth channel; and when the data instruction type is the second class data instruction, determining the corresponding Bluetooth channel as a BR Bluetooth channel.
Optionally, the step of establishing the bluetooth communication connection with the wearable device is to establish a BLE bluetooth communication connection with the wearable device through GATT protocol.
Optionally, when the bluetooth channel is a BR bluetooth channel, the step of transmitting the data instruction to the wearable device according to the bluetooth channel includes: determining to establish a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection; and transmitting the data instruction to the wearable equipment according to the BR Bluetooth channel.
Optionally, receiving a channel switching instruction sent by the wearable device through the BLE bluetooth channel; responding to the channel switching instruction, establishing a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection; and receiving data information sent by the wearable equipment through the BR Bluetooth channel.
The application also provides a mobile terminal, which comprises: a touch screen; a processor;
and the memory is connected with the processor and contains control instructions, and when the processor reads the control instructions, the mobile terminal is controlled to realize the data transmission control method.
The present application also provides a computer-readable storage medium having one or more programs executed by one or more processors to implement the above-described data transmission control method.
According to the data transmission control method, the mobile terminal and the computer readable storage medium, bluetooth communication connection between the mobile terminal and the wearable device is established, when a data instruction is sent to an opposite terminal through the mobile terminal or the wearable device, corresponding Bluetooth channels are determined according to the attribute of the sent data instruction, wherein different Bluetooth channels have different transmission efficiency and power consumption, and by adopting different Bluetooth channels to send the data instruction with different attribute, the power consumption of the wearable device and the mobile terminal in Bluetooth data communication can be effectively reduced, and the transmission efficiency in the data transmission process is also considered.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
FIG. 1 is a schematic diagram of an alternative mobile terminal hardware architecture for implementing various embodiments of the present application;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
fig. 3 is a flowchart of a data transmission control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a wearable device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present application may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 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 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the application.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (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 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 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 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present application, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present application is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present application are provided.
Fig. 3 is a flowchart of an embodiment of a data transmission control method according to the present application. Once triggered by a user, the process in this embodiment automatically operates through the mobile terminal, where each step may be performed sequentially as shown in the flowchart, or may be performed simultaneously according to a plurality of steps in actual situations, which is not limited herein. The data transmission control method provided by the application comprises the following steps:
step S310, establishing Bluetooth communication connection with the wearable device;
step S330, determining a data instruction attribute of a data instruction sent to the wearable device;
step S350, determining a corresponding Bluetooth channel according to the data instruction attribute;
step S370, transmitting the data command to the wearable device according to the bluetooth channel.
Through the above embodiment, the bluetooth communication connection between the mobile terminal and the wearable device is established, when the data instruction is sent to the opposite terminal through the mobile terminal or the wearable device, the corresponding bluetooth channel is determined according to the attribute of the sent data instruction, wherein different bluetooth channels have different transmission efficiency and power consumption, and the data instruction with different attribute is sent through adopting the unused bluetooth channel, so that the power consumption of the wearable device and the mobile terminal in bluetooth data communication can be effectively reduced, and the transmission efficiency in the data transmission process is also considered.
The above steps will be specifically described with reference to specific embodiments.
In step S310, a bluetooth communication connection with the wearable device is established.
Specifically, a bluetooth connection option is set in a setting interface of the mobile terminal, and a user starts a bluetooth function in the setting interface, so that the mobile terminal scans signals of the wearable device and establishes connection. The wearable device provided by the embodiment of the application comprises a mobile terminal such as an intelligent bracelet, an intelligent watch and an intelligent mobile phone. With the continuous development of screen technology, mobile terminals such as smart phones and the like can also be used as wearable devices due to the appearance of screen forms such as flexible screens, folding screens and the like. As shown in fig. 4, the wearable device provided in the embodiment of the present application may include: BR unit, RF (Radio Frequency) unit, wiFi module, audio output unit, A/V (audio/video) input unit, sensor, display unit, user input unit, interface unit, memory, processor, and power supply. When establishing the Bluetooth communication initial connection with the wearable equipment, determining a corresponding initial Bluetooth connection channel according to the service function. In this embodiment, the setting of establishing the BLE bluetooth communication connection with the wearable device through the GATT protocol may be specifically implemented by the following steps:
step S3101, transmitting, by the wearable device, a broadcast signal at a broadcast interval;
step S3102, determining that the mobile terminal receives the broadcast signal, and controlling to send a connection request to the wearable device;
step S3103, determining that a confirmation instruction sent by the wearable device in response to the connection request is received, and establishing GATT bluetooth communication connection between the mobile terminal and the wearable device.
Specifically, in step S3101, before the mobile terminal establishes a connection with the wearable device, the wearable device needs to broadcast first, that is, the wearable device continuously transmits a broadcast signal, and t is a broadcast interval. The bluetooth chip controls the radio frequency module to be turned on during the transmission of the broadcast signal, and the bluetooth protocol, each broadcast event contains three broadcast packets, i.e. the same information is broadcast simultaneously on three channels of 37/38/39, respectively. In step S3102, the wearable device continuously transmits a broadcast signal to the mobile terminal, controls the mobile terminal to have a bluetooth function to open a radio frequency receiving window, and when the radio frequency receiving window of the mobile terminal is successfully matched with the transmitting window of the broadcast transmission, the mobile terminal receives the broadcast signal of the wearable device, and the wearable device transmits a connection request command to perform a connection request. In step S3103, after receiving the broadcast signal, the wearable device replies a data packet to the mobile terminal, and when the mobile terminal receives the data packet, the connection may be considered to be established successfully.
In step S330, a data instruction attribute of a data instruction sent to the wearable device is determined. The data instruction attribute refers to parameter information constituting a data instruction, and in the present embodiment, the data instruction attribute is a type of a data instruction. In this embodiment, the type of the data instruction is determined according to the transmission amount of the data instruction, and the type of the data instruction is determined in advance according to the transmission amount threshold. For example, the transmission amount threshold is 200 bytes, and data instructions with transmission amount smaller than 200 bytes are predefined as first class data instructions, and data instructions with transmission amount larger than 200 bytes are predefined as second class data instructions. When the mobile terminal or the wearable device sends the data instruction to the opposite terminal, the data quantity of the data instruction is acquired to determine the corresponding transmission quantity, and the transmission quantity determines the corresponding data instruction attribute. In other embodiments, the data instruction attributes may be directly the amount of transmission of the data instruction. In other embodiments, the data command attribute is determined according to a usage stage of the data command, for example, the data command to be transmitted during the establishment of the bluetooth communication connection is a first type of data command, and after the establishment is completed, the data command to be transmitted during the specific service function information communication is a second type of data command.
Through the embodiment, the data instructions transmitted between the mobile terminal and the wearable equipment are classified, and further, the power consumption can be effectively reduced by using different types of Bluetooth channels according to different types of data instructions.
In step S350, a corresponding bluetooth channel is determined according to the data command attribute.
Specifically, the bluetooth channels include a BR bluetooth channel and a BLE bluetooth channel. Two different protocols are included in Bluetooth communication, basic Rate (BR) and Low Energy (LE), respectively, where LE is also often associated with Bluetooth, often referred to as BLE, i.e., bluetooth Low Energy technology. In the working process of the Bluetooth channel established through BLE, a broadcasting channel less than the BR Bluetooth channel is adopted, so that the master device scans fewer channels, and the slave device also transmits data through fewer channels, thereby reducing the power consumption required for transmitting the data. In other aspects, BLE employs longer broadcast intervals, reducing the operating time of the radio module. In this embodiment, the data instruction attribute is a data instruction type, and step S350 may be implemented by the following steps:
step S3501, determining a data instruction type of a data instruction sent to the wearable device;
step S3502, determining a corresponding bluetooth channel according to the data command type.
Specifically, in step S3501, when generating the data instruction, the mobile terminal obtains the transmission amount of the data instruction, and further determines the type of the data instruction, for example, when the transmission amount of the data instruction is less than 200 bytes, the data instruction is determined to be the first type of data instruction, and when the transmission amount of the data instruction is greater than 200 bytes, the data instruction is determined to be the second type of data instruction. Step S3502 specifically includes: when the data instruction type is a first type data instruction, determining that the corresponding Bluetooth channel is a BLE Bluetooth channel; and when the data instruction type is the second class data instruction, determining the corresponding Bluetooth channel as a BR Bluetooth channel.
In step S370, the data command is transmitted to the wearable device according to the bluetooth channel.
Specifically, before a data instruction is sent according to a determined bluetooth channel corresponding to the data instruction attribute, whether the type of the bluetooth channel which is established currently is the same as the type of the bluetooth channel which is determined currently is detected, and if so, the data is directly sent through the bluetooth channel which is established currently; if the currently established Bluetooth channel type is not the same as the currently determined Bluetooth channel type. In order to avoid the waste of power consumption caused by the comparison of the type of the data instruction, the type of the currently established Bluetooth channel and the type of the currently determined Bluetooth channel when the data instruction is transmitted each time, in the embodiment, a detection time interval is preset, a switching time point T1 is recorded each time when the Bluetooth channel is controlled to switch, when the time interval between the current time point T2 and the switching time point T1 is detected to meet the detection time interval, the detection is triggered to determine the Bluetooth channel corresponding to the currently transmitted data instruction, and whether the type of the currently established Bluetooth channel is the same or not is compared.
Specifically, when it is determined that the currently established bluetooth channel is a BLE bluetooth channel and the bluetooth channel corresponding to the current data instruction attribute is a BR bluetooth channel, step S370 may be implemented by:
step S3701, determining to establish a BR bluetooth channel with the wearable device, and controlling to disconnect the BLE bluetooth communication connection;
step S3702, transmitting the data command to the wearable device according to the BR bluetooth channel.
If the currently established bluetooth channel is a BR bluetooth channel and the bluetooth channel corresponding to the current data instruction attribute is a BLE bluetooth channel, step S370 may be performed by:
step S3703, determining to establish a BLE bluetooth channel with the wearable device, and controlling to disconnect the BR bluetooth communication connection;
step S3704, transmitting the data command to the wearable device according to the BLE bluetooth channel.
Through the embodiment, the corresponding Bluetooth channels are controlled and established according to different data instructions, and information transmission is carried out through the Bluetooth channels with different power consumption and transmission efficiency, so that the power consumption of the wearable equipment and the mobile terminal is effectively reduced.
Further, the accuracy of the matching degree of the Bluetooth channel and the data instruction is ensured, and when the data instruction sent by the wearable device is the second class data instruction and the currently established Bluetooth channel is the BLE Bluetooth channel, the method provided by the application further comprises the following steps:
step a, receiving a channel switching instruction sent by the wearable device through the BLE Bluetooth channel;
step b, responding to the channel switching instruction, establishing a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection;
and c, receiving data information sent by the wearable equipment through the BR Bluetooth channel.
Through the above embodiment, the bluetooth communication connection between the mobile terminal and the wearable device is established, when the data instruction is sent to the opposite terminal through the mobile terminal or the wearable device, the corresponding bluetooth channel is determined according to the attribute of the sent data instruction, wherein different bluetooth channels have different transmission efficiency and power consumption, and the data instruction with different attribute is sent through adopting the unused bluetooth channel, so that the power consumption of the wearable device and the mobile terminal in bluetooth data communication can be effectively reduced, and the transmission efficiency in the data transmission process is also considered.
Fig. 5 is a schematic structural diagram of a mobile terminal 100 according to an embodiment of the present application, where the mobile terminal 100 includes: a touch panel 1071; a processor 110; a memory 109 connected to the processor 110, wherein the memory 109 contains control instructions, and when the processor 110 reads the control instructions, the mobile terminal 100 is controlled to implement the following steps:
establishing Bluetooth communication connection with the wearable equipment; determining a data instruction attribute of a data instruction sent to the wearable device; determining a corresponding Bluetooth channel according to the data instruction attribute; and transmitting the data instruction to the wearable equipment according to the Bluetooth channel.
Optionally, the data instruction attribute includes a data instruction type, and the step of determining a corresponding bluetooth channel according to the data instruction includes: determining a data instruction type of a data instruction sent to the wearable device; and determining a corresponding Bluetooth channel according to the data instruction type.
Optionally, the data instruction type is determined in advance according to a transmission amount threshold, wherein the data instruction type includes a first type of data instruction with a transmission amount of the data instruction smaller than the transmission amount threshold and a second type of data instruction with a transmission amount of the data instruction larger than the transmission amount threshold.
Optionally, the bluetooth channels include a BR bluetooth channel and a BLE bluetooth channel.
Optionally, the step of determining a corresponding bluetooth channel according to the data instruction type includes: when the data instruction type is a first type data instruction, determining that the corresponding Bluetooth channel is a BLE Bluetooth channel; and when the data instruction type is the second class data instruction, determining the corresponding Bluetooth channel as a BR Bluetooth channel.
Optionally, the step of establishing the bluetooth communication connection with the wearable device is to establish a BLE bluetooth communication connection with the wearable device through GATT protocol.
Optionally, when the bluetooth channel is a BR bluetooth channel, the step of transmitting the data instruction to the wearable device according to the bluetooth channel includes: determining to establish a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection; and transmitting the data instruction to the wearable equipment according to the BR Bluetooth channel.
Optionally, receiving a channel switching instruction sent by the wearable device through the BLE bluetooth channel; responding to the channel switching instruction, establishing a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection; and receiving data information sent by the wearable equipment through the BR Bluetooth channel.
Through the mobile terminal, bluetooth communication connection between the mobile terminal and the wearable device is established, when a data instruction is sent to the opposite end through the mobile terminal or the wearable device, corresponding Bluetooth channels are determined according to the attribute of the sent data instruction, wherein different Bluetooth channels have different transmission efficiency and power consumption, and the data instruction with different attribute is sent through adopting the unused Bluetooth channels, so that the power consumption of the wearable device and the mobile terminal in Bluetooth data communication can be effectively reduced, and the transmission efficiency in the data transmission process is also considered.
The embodiment of the present application also provides a computer-readable storage medium having one or more programs executed by one or more processors to implement the steps of: establishing Bluetooth communication connection with the wearable equipment; determining a data instruction attribute of a data instruction sent to the wearable device; determining a corresponding Bluetooth channel according to the data instruction attribute; and transmitting the data instruction to the wearable equipment according to the Bluetooth channel.
Optionally, the data instruction attribute includes a data instruction type, and the step of determining a corresponding bluetooth channel according to the data instruction includes: determining a data instruction type of a data instruction sent to the wearable device; and determining a corresponding Bluetooth channel according to the data instruction type.
Optionally, the data instruction type is determined in advance according to a transmission amount threshold, wherein the data instruction type includes a first type of data instruction with a transmission amount of the data instruction smaller than the transmission amount threshold and a second type of data instruction with a transmission amount of the data instruction larger than the transmission amount threshold.
Optionally, the bluetooth channels include a BR bluetooth channel and a BLE bluetooth channel.
Optionally, the step of determining a corresponding bluetooth channel according to the data instruction type includes: when the data instruction type is a first type data instruction, determining that the corresponding Bluetooth channel is a BLE Bluetooth channel; and when the data instruction type is the second class data instruction, determining the corresponding Bluetooth channel as a BR Bluetooth channel.
Optionally, the step of establishing the bluetooth communication connection with the wearable device is to establish a BLE bluetooth communication connection with the wearable device through GATT protocol.
Optionally, when the bluetooth channel is a BR bluetooth channel, the step of transmitting the data instruction to the wearable device according to the bluetooth channel includes: determining to establish a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection; and transmitting the data instruction to the wearable equipment according to the BR Bluetooth channel.
Optionally, receiving a channel switching instruction sent by the wearable device through the BLE bluetooth channel; responding to the channel switching instruction, establishing a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection; and receiving data information sent by the wearable equipment through the BR Bluetooth channel.
Through the computer readable storage medium, bluetooth communication connection between the mobile terminal and the wearable device is established, when a data instruction is sent to the opposite end through the mobile terminal or the wearable device, corresponding Bluetooth channels are determined according to the attribute of the sent data instruction, wherein different Bluetooth channels have different transmission efficiency and power consumption, and by adopting unused Bluetooth channels to send the data instruction with different attribute, the power consumption of the wearable device and the mobile terminal in Bluetooth data communication can be effectively reduced, and the transmission efficiency in the data transmission process is also considered.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium here stores one or more programs. Wherein the computer readable storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid state disk; the memory may also comprise a combination of the above types of memories.
The corresponding technical features in the above embodiments can be used mutually without causing contradiction between schemes or incapacitation.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (6)
1. A data transmission control method, wherein the method is applied to a mobile terminal, the method comprising:
establishing Bluetooth communication connection with the wearable equipment;
determining a data instruction attribute of a data instruction sent to the wearable device, wherein the data instruction attribute comprises a data instruction type;
determining a corresponding bluetooth channel according to the data instruction attribute, including:
determining a data instruction type of a data instruction sent to the wearable device, wherein the data instruction type comprises a first type of data instruction with a transmission amount of the data instruction smaller than a transmission amount threshold value and a second type of data instruction with a transmission amount of the data instruction larger than the transmission amount threshold value;
determining a corresponding Bluetooth channel according to the data instruction type, including:
when the data instruction type is a first type data instruction, determining that the corresponding Bluetooth channel is a BLE Bluetooth channel;
when the data instruction type is the second class data instruction, determining that the corresponding Bluetooth channel is a BR Bluetooth channel;
presetting a detection time interval, recording a switching time point T1 each time when a Bluetooth channel is controlled to switch, triggering detection to determine whether the Bluetooth channel corresponding to a currently transmitted data instruction is the same as the type of the currently established Bluetooth channel or not when the time interval between the current time point T2 and the switching time point T1 is detected to meet the detection time interval;
detecting whether the type of the Bluetooth channel which is established at present is the same as the type of the Bluetooth channel which is determined at present, if so, directly transmitting data through the Bluetooth channel which is established at present;
and if the type of the Bluetooth channel which is established currently is different from the type of the Bluetooth channel which is determined currently, transmitting the data instruction to the wearable equipment according to the Bluetooth channel, wherein the Bluetooth channel is the Bluetooth channel corresponding to the type of the Bluetooth channel which is determined currently.
2. The data transmission control method according to claim 1, wherein the step of establishing a bluetooth communication connection with a wearable device is to establish a BLE bluetooth communication connection with the wearable device through GATT protocol.
3. The data transmission control method according to claim 2, wherein when the bluetooth channel is a BR bluetooth channel, the step of transmitting the data instruction to the wearable device according to the bluetooth channel comprises:
determining to establish a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection;
and transmitting the data instruction to the wearable equipment according to the BR Bluetooth channel.
4. The data transmission control method according to claim 2, characterized in that the method further comprises:
receiving a channel switching instruction sent by the wearable device through the BLE Bluetooth channel;
responding to the channel switching instruction, establishing a BR Bluetooth channel with the wearable equipment, and controlling to disconnect the BLE Bluetooth communication connection;
and receiving data information sent by the wearable equipment through the BR Bluetooth channel.
5. A mobile terminal, the mobile terminal comprising:
a touch screen;
a processor;
and the memory is connected with the processor and contains control instructions, and when the processor reads the control instructions, the mobile terminal is controlled to realize the data transmission control method of any one of claims 1-4.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has one or more programs that are executed by one or more processors to implement the data transmission control method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910247190.XA CN109890022B (en) | 2019-03-29 | 2019-03-29 | Data transmission control method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910247190.XA CN109890022B (en) | 2019-03-29 | 2019-03-29 | Data transmission control method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109890022A CN109890022A (en) | 2019-06-14 |
CN109890022B true CN109890022B (en) | 2023-12-08 |
Family
ID=66935124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910247190.XA Active CN109890022B (en) | 2019-03-29 | 2019-03-29 | Data transmission control method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109890022B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113056033B (en) * | 2019-12-26 | 2023-01-03 | Oppo广东移动通信有限公司 | Bluetooth connection method and device, wearable device and computer-readable storage medium |
CN111246399B (en) * | 2020-02-18 | 2022-07-22 | Oppo(重庆)智能科技有限公司 | Method for discovering Bluetooth device and related product |
CN112468175B (en) * | 2020-10-16 | 2023-05-09 | 清华大学 | Implantable medical device, communication method, terminal, and storage medium |
CN112399358A (en) * | 2020-11-05 | 2021-02-23 | 北京小米移动软件有限公司 | Telephone notification method, device, system, equipment and medium |
CN115550891B (en) * | 2021-06-29 | 2024-10-18 | 华为技术有限公司 | Service data transmission method and related equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105246029A (en) * | 2015-10-23 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Bluetooth communication method and system and electronic device |
CN105324943A (en) * | 2013-06-11 | 2016-02-10 | 美加狮有限公司 | Systems and methods for transmitting data using selected transmission technology from among other transmission technologies |
CN106658678A (en) * | 2016-10-28 | 2017-05-10 | 青岛海信移动通信技术股份有限公司 | Bluetooth connection method of wearable device, and device |
CN106658372A (en) * | 2016-12-13 | 2017-05-10 | 上海斐讯数据通信技术有限公司 | Low-power-consumption data transmission method and system, transmitting equipment, and receiving equipment |
CN106658366A (en) * | 2016-11-30 | 2017-05-10 | 建荣半导体(深圳)有限公司 | Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment |
CN106792954A (en) * | 2016-12-16 | 2017-05-31 | 中南大学 | A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment |
CN108513224A (en) * | 2018-04-25 | 2018-09-07 | 北京纽曼凤凰科技有限公司 | Wireless microphone based on Bluetooth BLE transmission |
CN108832952A (en) * | 2018-05-31 | 2018-11-16 | 努比亚技术有限公司 | A kind of wearable device, Bluetooth connecting method and computer readable storage medium |
CN109417758A (en) * | 2016-06-27 | 2019-03-01 | 华为技术有限公司 | A kind of method and terminal of bluetooth connection |
-
2019
- 2019-03-29 CN CN201910247190.XA patent/CN109890022B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105324943A (en) * | 2013-06-11 | 2016-02-10 | 美加狮有限公司 | Systems and methods for transmitting data using selected transmission technology from among other transmission technologies |
CN105246029A (en) * | 2015-10-23 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Bluetooth communication method and system and electronic device |
CN109417758A (en) * | 2016-06-27 | 2019-03-01 | 华为技术有限公司 | A kind of method and terminal of bluetooth connection |
CN106658678A (en) * | 2016-10-28 | 2017-05-10 | 青岛海信移动通信技术股份有限公司 | Bluetooth connection method of wearable device, and device |
CN106658366A (en) * | 2016-11-30 | 2017-05-10 | 建荣半导体(深圳)有限公司 | Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment |
CN106658372A (en) * | 2016-12-13 | 2017-05-10 | 上海斐讯数据通信技术有限公司 | Low-power-consumption data transmission method and system, transmitting equipment, and receiving equipment |
CN106792954A (en) * | 2016-12-16 | 2017-05-31 | 中南大学 | A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment |
CN108513224A (en) * | 2018-04-25 | 2018-09-07 | 北京纽曼凤凰科技有限公司 | Wireless microphone based on Bluetooth BLE transmission |
CN108832952A (en) * | 2018-05-31 | 2018-11-16 | 努比亚技术有限公司 | A kind of wearable device, Bluetooth connecting method and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109890022A (en) | 2019-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112004173B (en) | Bluetooth headset switching method, mobile terminal and computer readable storage medium | |
CN109890022B (en) | Data transmission control method, mobile terminal and computer readable storage medium | |
CN110784898B (en) | Network switching method, mobile terminal and computer readable storage medium | |
CN110175062B (en) | Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium | |
CN110087287B (en) | Control method and device for terminal network searching, mobile terminal and storage medium | |
CN108196750B (en) | Screen interface screenshot method and device and computer-readable storage medium | |
CN110365347B (en) | Power amplifier control method, device and computer readable storage medium | |
CN108512625B (en) | Anti-interference method for camera, mobile terminal and storage medium | |
CN109195213B (en) | Mobile terminal screen control method, mobile terminal and computer readable storage medium | |
CN109144705B (en) | Application management method, mobile terminal and computer readable storage medium | |
CN108958936B (en) | Application program switching method, mobile terminal and computer readable storage medium | |
CN108958695B (en) | Audio output method, device and computer readable storage medium | |
CN110069167B (en) | Touch point cleaning method, mobile terminal and computer readable storage medium | |
CN114126015A (en) | Power consumption control method, intelligent terminal and storage medium | |
CN110191477B (en) | Network search control method, terminal and computer readable storage medium | |
CN109389394B (en) | Multi-screen payment control method, equipment and computer readable storage medium | |
CN109711830B (en) | Quick display method and device for two-dimension code payment, mobile terminal and storage medium | |
CN112888084B (en) | Full-band communication method and device and mobile terminal | |
CN112667339B (en) | Screen refresh rate setting method, terminal and computer readable medium | |
CN111970738B (en) | Network switching control method, device and computer readable storage medium | |
CN112437472B (en) | Network switching method, equipment and computer readable storage medium | |
CN110427229B (en) | Application non-response processing method, mobile terminal and computer readable storage medium | |
CN109684020B (en) | Theme switching method, device and computer readable storage medium | |
CN109388947B (en) | Background management method, device and computer readable storage medium | |
CN109561221B (en) | Call control method, device and computer readable storage medium |
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 |