CN109890022A - Data transfer control method, mobile terminal and computer readable storage medium - Google Patents

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

Info

Publication number
CN109890022A
CN109890022A CN201910247190.XA CN201910247190A CN109890022A CN 109890022 A CN109890022 A CN 109890022A CN 201910247190 A CN201910247190 A CN 201910247190A CN 109890022 A CN109890022 A CN 109890022A
Authority
CN
China
Prior art keywords
data
data command
wearable device
bluetooth channels
bluetooth
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.)
Granted
Application number
CN201910247190.XA
Other languages
Chinese (zh)
Other versions
CN109890022B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910247190.XA priority Critical patent/CN109890022B/en
Publication of CN109890022A publication Critical patent/CN109890022A/en
Application granted granted Critical
Publication of CN109890022B publication Critical patent/CN109890022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

This application provides a kind of data transfer control method, the method is applied to mobile terminal, which comprises foundation is connect with wearable device bluetooth communication;Determine the data command attribute for being sent to the data command of the wearable device;Corresponding Bluetooth channels are determined according to the data command attribute;The data command is transmitted to the wearable device according to the Bluetooth channels.Present invention also provides a kind of mobile terminal and computer readable storage mediums.In this manner, the data command with different attribute is sent by using unused Bluetooth channels, effectively can reduce the power consumption between wearable device and mobile terminal when carrying out bluetooth data communication, and take into account the efficiency of transmission in data transmission procedure.

Description

Data transfer control method, mobile terminal and computer readable storage medium
Technical field
This application involves network communication technology field more particularly to a kind of data transfer control methods, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the continuous improvement and development of wearable device, wearable device has been increasingly becoming the portable of people Electronic equipment.But the use of the function of wearable device is mainly realized by the cooperation with mobile terminal.Due to can The requirement of the size and weight of this body structure of wearable device, so that the battery capacity in wearable device can not reach as moved Dynamic terminal is the same, to maintain it to be worked for a long time.The consumption of battery capacity is mainly derived from wearable device operation The power problems of application program.Therefore, power problems become the maximum pain spot in wearing field, first when developing business function What is first weighed be exactly the function is much to the expenditure of power consumption, wherein the bluetooth between wearable device and mobile terminal It is that emphasis considers object that brought power consumption is transmitted in instruction.
In summary, it would be desirable to which a kind of scheme not only considers power consumption, but also is optimal in efficiency.
Summary of the invention
The main purpose of the application is to propose a kind of data transfer control method, mobile terminal and computer-readable storage Medium, it is desirable to provide reduce the power consumption between wearable device and mobile terminal when carrying out bluetooth data communication, and take into account number According to the efficiency of transmission in transmission process.
To achieve the above object, this application provides a kind of data transfer control method, the method is applied to mobile whole End, which comprises foundation is connect with wearable device bluetooth communication;Determine that the data for being sent to the wearable device refer to The data command attribute of order;Corresponding Bluetooth channels are determined according to the data command attribute;It is transmitted according to the Bluetooth channels The data command is to the wearable device.
Optionally, the data command attribute includes data command type, and described determined according to the data command corresponds to Bluetooth channels the step of, comprising: determine be sent to the wearable device data command data command type;According to number Corresponding Bluetooth channels are determined according to instruction type.
Optionally, the data command type is determined previously according to transmission quantity threshold value, wherein the data command type packet The transmission quantity for including data command is less than the primary sources instruction of the transmission quantity threshold value and the transmission quantity of data command is greater than institute State the secondary sources instruction of transmission quantity threshold value.
Optionally, the Bluetooth channels include BR Bluetooth channels and BLE Bluetooth channels.
Optionally, described the step of corresponding Bluetooth channels are determined according to the data command type, comprising: when the number When instructing according to instruction type for primary sources, determine that corresponding Bluetooth channels are BLE Bluetooth channels;When the data command class When type is that secondary sources instruct, determine that corresponding Bluetooth channels are BR Bluetooth channels.
Optionally, described foundation the step of connect with wearable device bluetooth communication be by the foundation of GATT agreement with it is described The BLE Bluetooth communication of wearable device connects.
Optionally, described to transmit the data according to the Bluetooth channels when the Bluetooth channels are BR Bluetooth channels The step of instruction to wearable device, comprising: determining to establish BR Bluetooth channels with the wearable device, control disconnects institute State the connection of BLE Bluetooth communication;The data command, which is transmitted, according to the BR Bluetooth channels refers to the wearable device.
Optionally, the switching channel instruction that the wearable device is sent by the BLE Bluetooth channels is received;Response institute Switching channel instruction is stated, establishes BR Bluetooth channels with the wearable device, control disconnects the BLE Bluetooth communication connection;It is logical It crosses the BR Bluetooth channels and receives the data information that the wearable device is sent.
The application also provides a kind of mobile terminal, and the mobile terminal includes: touch screen;Processor;
Memory is connected to the processor, and the memory includes control instruction, when the processor reads the control When system instruction, controls the mobile terminal and realize above-mentioned data transfer control method.
The application also provides a kind of computer readable storage medium, and the computer readable storage medium has one or more Program, one or more of programs are executed by one or more processors, to realize above-mentioned data transfer control method.
Data transfer control method, mobile terminal and computer readable storage medium provided by the present application are established mobile whole Bluetooth communication between end and wearable device connects, and refers to sending data to opposite end by mobile terminal or wearable device When enabling, corresponding Bluetooth channels are determined according to the attribute of the data command of transmission, wherein different Bluetooth channels have different Efficiency of transmission and power consumption send the data command with different attribute by using unused Bluetooth channels, can effectively exist The power consumption between wearable device and mobile terminal when carrying out bluetooth data communication is reduced, and is taken into account in data transmission procedure Efficiency of transmission.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing each embodiment one optional mobile terminal of the application;
Fig. 2 is the communications network system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart for the data transfer control method that one embodiment of the application provides;
Fig. 4 is the structural schematic diagram for the wearable device that one embodiment of the application provides;
Fig. 5 is the structural schematic diagram for the mobile terminal that one embodiment of the application provides.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), 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 short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Fig. 3 is the flow chart of the embodiment of a data transfer control method provided by the present application.The method one of the embodiment Denier is triggered by user, then the process in the embodiment passes through mobile terminal automatic running, wherein each step is when operation It can be and successively carried out according to the sequence in such as flow chart, be also possible to multiple steps according to the actual situation while carrying out, herein And without limitation.Data transfer control method provided by the present application includes the following steps:
Step S310, foundation are connect with wearable device bluetooth communication;
Step S330 determines the data command attribute for being sent to the data command of the wearable device;
Step S350 determines corresponding Bluetooth channels according to the data command attribute;
Step S370 transmits the data command to the wearable device according to the Bluetooth channels.
By above embodiment, the bluetooth communication connection between mobile terminal and wearable device is established, is moved passing through When dynamic terminal or wearable device send data command to opposite end, determined according to the attribute of the data command of transmission corresponding blue Tooth channel, wherein different Bluetooth channels have different efficiency of transmission and power consumption, send by using unused Bluetooth channels Data command with different attribute can reduced effectively between wearable device and mobile terminal in progress blue-teeth data Power consumption when communication, and take into account the efficiency of transmission in data transmission procedure.
Above-mentioned steps are specifically described below in conjunction with specific embodiment.
In step s310, it establishes and is connect with wearable device bluetooth communication.
Specifically, bluetooth connection option is provided in the set interface of mobile terminal, user in set interface by opening Bluetooth function is opened, so that the signal of mobile scanning terminal wearable device and carrying out establishing connection.It is provided in the embodiment of the present application Wearable device include the mobile terminals such as Intelligent bracelet, smartwatch and smart phone.With the continuous hair of Screen Technology Exhibition, the appearance of the screens form such as flexible screen, Folding screen, the mobile terminals such as smart phone can also be used as wearable device.Such as Fig. 4 Shown, the wearable device provided in the embodiment of the present application may include: BR unit, RF (Radio Frequency, radio frequency) list Member, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display unit, user input unit, The components such as interface unit, memory, processor and power supply.Wherein, initially connect in foundation and the bluetooth communication of wearable device When connecing, corresponding initial Bluetooth interface channel is determined according to business function.In the present embodiment, it presets and passes through The foundation of GATT agreement is connect with the BLE Bluetooth communication of the wearable device, can be specifically achieved by the steps of:
Step S3101 sends broadcast singal by the wearable device to broadcast interval;
Step S3102 determines that mobile terminal receives broadcast singal, controls to wearable device and send connection request;
Step S3103 determines that the confirmation instruction for receiving the response connection request of wearable device transmission, foundation are mobile eventually End is connect with the GATT Bluetooth communication of wearable device.
Specifically, in step S3101, before mobile terminal establishes connection with wearable device, wearable device is needed It first to be broadcasted, i.e., wearable device constantly sends broadcast singal, and t is broadcast interval.Bluetooth chip is sent in broadcast singal Radio-frequency module is opened in period control, and Bluetooth protocol, each broadcast event includes three broadcast packets, i.e., respectively 37,/38,/39 3 Identical information is broadcasted on a channel simultaneously.In step S3102, wearable device constantly sends broadcast singal to mobile whole End, control mobile terminal want Bluetooth function to open radio frequency reception window, when the radio frequency reception window of mobile terminal is sent out with broadcast When the launch window successful match sent, mobile terminal receives the broadcast singal of wearable device, and wearable device is sent Connection request order is to carry out transmission connection request.In step S3103, wearable device receives broadcast singal Afterwards, data packet is replied to mobile terminal, when mobile terminal receives data packet, connection is i.e. it is believed that be successfully established.
In step S330, the data command attribute for being sent to the data command of the wearable device is determined.Wherein, number Refer to the parameter information for constituting data command according to instruction attributes, in the present embodiment, data command attribute is data command Type.Wherein, in the present embodiment, the type of data command is to be determined according to the transmission quantity of data command, preparatory root The data command type is determined according to transmission quantity threshold value.For example, transmission quantity threshold value is 200 bytes, pre-defines transmission quantity Data command less than 200 bytes is primary sources instruction, and the data command that transmission quantity is greater than 200 bytes is secondary sources Instruction.When specific implementation, when mobile terminal or wearable device send data command to opposite end, the number of data command is obtained Determine that corresponding transmission quantity, transmission quantity determine corresponding data command attribute according to amount.In other embodiments, data command category Property can directly be data command transmission quantity.In other embodiments, data command attribute is to be made according to data command It is determined with the stage, for example, the data command of required transmission is he first-class numbert during Bluetooth communication connection is established According to instruction, after the completion of foundation, the data command of required transmission is the second class during specific business function information communication Data command.
By above embodiment, the data command transmitted between mobile terminal and wearable device is classified, into And by the way that power consumption can be effectively reduced using different types of Bluetooth channels according to the data command of not type.
In step S350, corresponding Bluetooth channels are determined according to the data command attribute.
Specifically, the Bluetooth channels include BR Bluetooth channels and BLE Bluetooth channels.It include two kinds of differences in Bluetooth communication Agreement, be Basic Rate (BR) and Low Energy (LE) respectively, wherein LE is also often often connected in Bluetooth It is collectively referred to as BLE, that is, bluetooth technology with low power consumption.In the Bluetooth channels course of work established by BLE, using blue less than BR The broadcast channel in tooth channel makes main device scan less channel, and sends data from equipment also by less channel, into And reduce power consumption required for sending data.In other respects, BLE is spaced using longer broadcast, reduces radio-frequency module Working time.In the present embodiment, data command attribute is data command type, and step S350 can be real as follows It is existing:
Step S3501 determines the data command type for being sent to the data command of the wearable device;
Step S3502 determines corresponding Bluetooth channels according to data command type.
Specifically, in step S3501, mobile terminal obtains the transmission quantity of data command when generating data command, into And determine data command type, for example, when data command transmission quantity is less than 200 byte, determine that data command is first Class data command determines data command for secondary sources instruction when data command transmission quantity is greater than 200 byte.Step S3502 is specifically included: when the data command type is that primary sources instruct, determining that corresponding Bluetooth channels are BLE blue Tooth channel;When the data command type is that secondary sources instruct, determine that corresponding Bluetooth channels are BR Bluetooth channels.
In step S370, the data command is transmitted to the wearable device according to the Bluetooth channels.
Specifically, according to determining Bluetooth channels corresponding with data command attribute carry out send data command it Before, it needs to detect the Bluetooth channels type currently having built up and whether currently determining Bluetooth channels type is identical, if phase Together, then data directly are sent by the Bluetooth channels currently having built up;If the Bluetooth channels type currently having built up with Currently determining Bluetooth channels type is not identical.In order to avoid needing the class to data command when sending data command every time Caused power wastage is compared with currently determining Bluetooth channels type in type, currently-established Bluetooth channels type, In present embodiment, detection time interval is preset, every time when control Bluetooth channels switch over, records switching time point T1, when will test the time interval of current point in time T2 and switching time point T1 and meeting detection time interval, detection trigger is true Fixed Bluetooth channels corresponding with currently transmitted data command, and with the type for the Bluetooth channels currently having built up whether phase It is same to be compared.
Specifically, it is determined that the Bluetooth channels currently having built up be BLE Bluetooth channels, and with current data instruction attributes phase When corresponding Bluetooth channels are BR Bluetooth channels, step S370 can be achieved by the steps of:
Step S3701, determining to establish BR Bluetooth channels with the wearable device, control disconnects the BLE Bluetooth communication Connection;
Step S3702 transmits the data command according to the BR Bluetooth channels and refers to the wearable device.
If the Bluetooth channels currently having built up are BR Bluetooth channels, and indigo plant corresponding with current data instruction attributes When tooth channel is BLE Bluetooth channels, step S370 can be carried out as follows:
Step S3703, determining to establish BLE Bluetooth channels with the wearable device, control disconnects the BR Bluetooth communication Connection;
Step S3704 transmits the data command according to the BLE Bluetooth channels and refers to the wearable device.
By above embodiment, realizes and corresponding Bluetooth channels are established according to different data command control, pass through Information transmission is carried out with the Bluetooth channels of different power consumption and efficiency of transmission, is effectively reduced wearable device and mobile terminal Power consumption.
Further, the accurate fit degree for guaranteeing Bluetooth channels and data command, when the data that wearable device is sent refer to Enable be secondary sources instruct, and the Bluetooth channels currently established be BLE Bluetooth channels when, method provided herein is also wrapped It includes:
Step a receives the switching channel instruction that the wearable device is sent by the BLE Bluetooth channels;
Step b, responds the switching channel instruction, establishes BR Bluetooth channels with the wearable device, control disconnects institute State the connection of BLE Bluetooth communication;
Step c receives the data information that the wearable device is sent by the BR Bluetooth channels.
By above embodiment, the bluetooth communication connection between mobile terminal and wearable device is established, is moved passing through When dynamic terminal or wearable device send data command to opposite end, determined according to the attribute of the data command of transmission corresponding blue Tooth channel, wherein different Bluetooth channels have different efficiency of transmission and power consumption, send by using unused Bluetooth channels Data command with different attribute can reduced effectively between wearable device and mobile terminal in progress blue-teeth data Power consumption when communication, and take into account the efficiency of transmission in data transmission procedure.
Fig. 5 is the structure composition schematic diagram of mobile terminal 100 provided by the embodiments of the present application, and mobile terminal 100 includes: touching Touch panel 1071;Processor 110;Memory 109 is connect with the processor 110, and the memory 109 includes control instruction, When the processor 110 reads the control instruction, controls the mobile terminal 100 and realizes following steps:
Foundation is connect with wearable device bluetooth communication;Determine the data for being sent to the data command of the wearable device Instruction attributes;Corresponding Bluetooth channels are determined according to the data command attribute;The data are transmitted according to the Bluetooth channels It instructs to the wearable device.
Optionally, the data command attribute includes data command type, and described determined according to the data command corresponds to Bluetooth channels the step of, comprising: determine be sent to the wearable device data command data command type;According to number Corresponding Bluetooth channels are determined according to instruction type.
Optionally, the data command type is determined previously according to transmission quantity threshold value, wherein the data command type packet The transmission quantity for including data command is less than the primary sources instruction of the transmission quantity threshold value and the transmission quantity of data command is greater than institute State the secondary sources instruction of transmission quantity threshold value.
Optionally, the Bluetooth channels include BR Bluetooth channels and BLE Bluetooth channels.
Optionally, described the step of corresponding Bluetooth channels are determined according to the data command type, comprising: when the number When instructing according to instruction type for primary sources, determine that corresponding Bluetooth channels are BLE Bluetooth channels;When the data command class When type is that secondary sources instruct, determine that corresponding Bluetooth channels are BR Bluetooth channels.
Optionally, described foundation the step of connect with wearable device bluetooth communication be by the foundation of GATT agreement with it is described The BLE Bluetooth communication of wearable device connects.
Optionally, described to transmit the data according to the Bluetooth channels when the Bluetooth channels are BR Bluetooth channels The step of instruction to wearable device, comprising: determining to establish BR Bluetooth channels with the wearable device, control disconnects institute State the connection of BLE Bluetooth communication;The data command, which is transmitted, according to the BR Bluetooth channels refers to the wearable device.
Optionally, the switching channel instruction that the wearable device is sent by the BLE Bluetooth channels is received;Response institute Switching channel instruction is stated, establishes BR Bluetooth channels with the wearable device, control disconnects the BLE Bluetooth communication connection;It is logical It crosses the BR Bluetooth channels and receives the data information that the wearable device is sent.
By above-mentioned mobile terminal, the bluetooth communication connection between mobile terminal and wearable device is established, is moved passing through When dynamic terminal or wearable device send data command to opposite end, determined according to the attribute of the data command of transmission corresponding blue Tooth channel, wherein different Bluetooth channels have different efficiency of transmission and power consumption, send by using unused Bluetooth channels Data command with different attribute can reduced effectively between wearable device and mobile terminal in progress blue-teeth data Power consumption when communication, and take into account the efficiency of transmission in data transmission procedure.
The embodiment of the present application also provides a kind of computer readable storage medium, and computer readable storage medium has one or more A program, one or more programs are executed by one or more processors, to realize following steps: being established blue with wearable device Tooth communication connection;Determine the data command attribute for being sent to the data command of the wearable device;According to the data command Attribute determines corresponding Bluetooth channels;The data command is transmitted to the wearable device according to the Bluetooth channels.
Optionally, the data command attribute includes data command type, and described determined according to the data command corresponds to Bluetooth channels the step of, comprising: determine be sent to the wearable device data command data command type;According to number Corresponding Bluetooth channels are determined according to instruction type.
Optionally, the data command type is determined previously according to transmission quantity threshold value, wherein the data command type packet The transmission quantity for including data command is less than the primary sources instruction of the transmission quantity threshold value and the transmission quantity of data command is greater than institute State the secondary sources instruction of transmission quantity threshold value.
Optionally, the Bluetooth channels include BR Bluetooth channels and BLE Bluetooth channels.
Optionally, described the step of corresponding Bluetooth channels are determined according to the data command type, comprising: when the number When instructing according to instruction type for primary sources, determine that corresponding Bluetooth channels are BLE Bluetooth channels;When the data command class When type is that secondary sources instruct, determine that corresponding Bluetooth channels are BR Bluetooth channels.
Optionally, described foundation the step of connect with wearable device bluetooth communication be by the foundation of GATT agreement with it is described The BLE Bluetooth communication of wearable device connects.
Optionally, described to transmit the data according to the Bluetooth channels when the Bluetooth channels are BR Bluetooth channels The step of instruction to wearable device, comprising: determining to establish BR Bluetooth channels with the wearable device, control disconnects institute State the connection of BLE Bluetooth communication;The data command, which is transmitted, according to the BR Bluetooth channels refers to the wearable device.
Optionally, the switching channel instruction that the wearable device is sent by the BLE Bluetooth channels is received;Response institute Switching channel instruction is stated, establishes BR Bluetooth channels with the wearable device, control disconnects the BLE Bluetooth communication connection;It is logical It crosses the BR Bluetooth channels and receives the data information that the wearable device is sent.
By above-mentioned computer readable storage medium, the bluetooth communication established between mobile terminal and wearable device connects It connects, when sending data command to opposite end by mobile terminal or wearable device, according to the attribute of the data command of transmission Determine corresponding Bluetooth channels, wherein different Bluetooth channels have different efficiency of transmission and power consumption, by using unused Bluetooth channels send the data command with different attribute, can effectively reduce between wearable device and mobile terminal Power consumption when bluetooth data communication is carried out, and takes into account the efficiency of transmission in data transmission procedure.
The embodiment of the present application also provides a kind of computer readable storage mediums.Here computer readable storage medium is deposited Contain one or more program.Wherein, computer readable storage medium may include volatile memory, such as arbitrary access Memory;Memory also may include nonvolatile memory, such as read-only memory, flash memory, hard disk or solid-state are hard Disk;Memory can also include the combination of the memory of mentioned kind.
Corresponding technical characteristic in the respective embodiments described above do not cause scheme contradiction or it is not implementable under the premise of, can Mutually to use.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the application.
Embodiments herein is described above in conjunction with attached drawing, but the application be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also it make very much Form, these are belonged within the protection of the application.

Claims (10)

1. a kind of data transfer control method, which is characterized in that the method is applied to mobile terminal, which comprises
Foundation is connect with wearable device bluetooth communication;
Determine the data command attribute for being sent to the data command of the wearable device;
Corresponding Bluetooth channels are determined according to the data command attribute;
The data command is transmitted to the wearable device according to the Bluetooth channels.
2. data transmission method as described in claim 1, which is characterized in that the data command attribute includes data command class Type, described the step of corresponding Bluetooth channels are determined according to the data command, comprising:
Determine the data command type for being sent to the data command of the wearable device;
Corresponding Bluetooth channels are determined according to data command type.
3. data transmission method as claimed in claim 2, which is characterized in that determine the data previously according to transmission quantity threshold value Instruction type, wherein the data command type includes that the transmission quantity of data command is less than the first kind of the transmission quantity threshold value The secondary sources that the transmission quantity of data command and data command is greater than the transmission quantity threshold value instruct.
4. data transfer control method as claimed in claim 2, which is characterized in that the Bluetooth channels include BR Bluetooth channels With BLE Bluetooth channels.
5. data transfer control method as claimed in claim 4, which is characterized in that described true according to the data command type The step of fixed corresponding Bluetooth channels, comprising:
When the data command type is that primary sources instruct, determine that corresponding Bluetooth channels are BLE Bluetooth channels;
When the data command type is that secondary sources instruct, determine that corresponding Bluetooth channels are BR Bluetooth channels.
6. data transmission method as described in claim 1, which is characterized in that the foundation connects with wearable device bluetooth communication The step of connecing connect to be established by GATT agreement with the BLE Bluetooth communication of the wearable device.
7. data transmission method as claimed in claim 6, which is characterized in that when the Bluetooth channels are BR Bluetooth channels, Described the step of transmitting the data command to the wearable device according to the Bluetooth channels, comprising:
Determining to establish BR Bluetooth channels with the wearable device, control disconnects the BLE Bluetooth communication connection;
The data command, which is transmitted, according to the BR Bluetooth channels refers to the wearable device.
8. data transmission method as claimed in claim 6, which is characterized in that the method also includes:
Receive the switching channel instruction that the wearable device is sent by the BLE Bluetooth channels;
The switching channel instruction is responded, establishes BR Bluetooth channels with the wearable device, it is logical that control disconnects the BLE bluetooth Letter connection;
The data information that the wearable device is sent is received by the BR Bluetooth channels.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Touch screen;
Processor;
Memory is connected to the processor, and the memory includes control instruction, is referred to when the processor reads the control When enabling, controls the mobile terminal and realize any one of claim 1-8 data transfer control method.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium has one or more journeys Sequence, one or more of programs are executed by one or more processors, to realize any item data transmission of claim 1 to 8 Control method.
CN201910247190.XA 2019-03-29 2019-03-29 Data transmission control method, mobile terminal and computer readable storage medium Active CN109890022B (en)

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 true CN109890022A (en) 2019-06-14
CN109890022B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246399A (en) * 2020-02-18 2020-06-05 Oppo(重庆)智能科技有限公司 Method for discovering Bluetooth device and related product
CN112399358A (en) * 2020-11-05 2021-02-23 北京小米移动软件有限公司 Telephone notification method, device, system, equipment and medium
CN112468175A (en) * 2020-10-16 2021-03-09 清华大学 Implantable medical device, communication method, terminal and storage medium
CN113056033A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Bluetooth connection method and device, wearable device and computer-readable storage medium
CN115550891A (en) * 2021-06-29 2022-12-30 华为技术有限公司 Service data transmission method and related equipment

Citations (9)

* Cited by examiner, † Cited by third party
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
CN106658366A (en) * 2016-11-30 2017-05-10 建荣半导体(深圳)有限公司 Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment
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
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113056033A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Bluetooth connection method and device, wearable device and computer-readable storage medium
CN113056033B (en) * 2019-12-26 2023-01-03 Oppo广东移动通信有限公司 Bluetooth connection method and device, wearable device and computer-readable storage medium
CN111246399A (en) * 2020-02-18 2020-06-05 Oppo(重庆)智能科技有限公司 Method for discovering Bluetooth device and related product
CN111246399B (en) * 2020-02-18 2022-07-22 Oppo(重庆)智能科技有限公司 Method for discovering Bluetooth device and related product
CN112468175A (en) * 2020-10-16 2021-03-09 清华大学 Implantable medical device, communication method, terminal and storage medium
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
CN115550891A (en) * 2021-06-29 2022-12-30 华为技术有限公司 Service data transmission method and related equipment

Also Published As

Publication number Publication date
CN109890022B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN107277216A (en) A kind of volume adjusting method, terminal and computer-readable recording medium
CN109890022A (en) Data transfer control method, mobile terminal and computer readable storage medium
CN107707450A (en) A kind of method, apparatus and computer-readable recording medium for transmitting file
CN109982402A (en) Terminal voice call method, mobile terminal and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN109379735A (en) ESIM card operating method, mobile terminal and eSIM card apparatus
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN109299039A (en) A kind of file management method, equipment and computer readable storage medium
CN110086993A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN110096375A (en) A kind of Application sharing data method, device and computer readable storage medium
CN108900779A (en) Initial automatic exposure convergence method, mobile terminal and computer readable storage medium
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN107911422A (en) A kind of switching handling method, terminal and computer-readable recording medium
CN109445660A (en) A kind of wearable device control method, mobile terminal and wearable device
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN109389394A (en) A kind of multi-screen payment control method, equipment and computer readable storage medium
CN108900503A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN107608629A (en) A kind of data migration method, terminal and computer-readable recording medium
CN107679080A (en) A kind of multimedia data recording method, terminal and computer-readable recording medium
CN106998553A (en) A kind of equipment identities recognition methods, computer equipment and storage medium
CN109089258A (en) ESIM card operating method, mobile terminal and eSIM card apparatus
CN109947523A (en) Replicate method of attaching, terminal and computer readable storage medium
CN109561221A (en) A kind of call control method, equipment and computer readable storage medium
CN109462829A (en) A kind of call transfer method, equipment and computer readable storage medium
CN109711850A (en) A kind of safe payment method, equipment 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