CN110290278A - Data transmission method, device, storage medium and terminal based on bluetooth - Google Patents
Data transmission method, device, storage medium and terminal based on bluetooth Download PDFInfo
- Publication number
- CN110290278A CN110290278A CN201910711037.8A CN201910711037A CN110290278A CN 110290278 A CN110290278 A CN 110290278A CN 201910711037 A CN201910711037 A CN 201910711037A CN 110290278 A CN110290278 A CN 110290278A
- Authority
- CN
- China
- Prior art keywords
- data
- bluetooth
- wifi module
- wireless network
- module
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Abstract
The embodiment of the present application discloses a kind of data transmission method based on bluetooth, device, storage medium and terminal.Wherein, the bluetooth module Yu WiFi module of terminal share same root antenna, when detecting that terminal transmits data by bluetooth module, determine whether current WiFi module has been connected to wireless network;When WiFi module has been connected to wireless network, and destination application belonging to terminal current interface passes through wireless network transmissions data, judge whether the first data volume of remaining data to be transmitted is more than preset threshold;If the first data volume is less than preset threshold, WiFi module is closed.WiFi module is closed to release the occupancy to antenna when passing through bluetooth data transmission, so that bluetooth module is monopolized antenna resources, effectively improve efficiency when passing through bluetooth data transmission by the program.
Description
Technical field
This application involves field of terminal technology more particularly to a kind of data transmission method based on bluetooth, device, storage Jie
Matter and terminal.
Background technique
Currently, in order to save the device layout space inside mobile terminal, it is common that use WiFi (WIreless
FIdelity, Wireless Fidelity) and the shared same antenna of bluetooth, and time-division slot uses.Therefore, as WiFi and concurrent bluetooth, effect
Rate is necessarily affected.Especially when carrying out data transmission using Bluetooth transmission, due to being influenced by WiFi, it is easy to cause indigo plant
Tooth data transmission efficiency is unstable.
Summary of the invention
The embodiment of the present application provides a kind of data transmission method based on bluetooth, device, storage medium and terminal, Ke Yiti
Rise efficiency when carrying out data transmission by bluetooth.
In a first aspect, the embodiment of the present application provides a kind of data transmission method based on bluetooth, it is applied to terminal, the end
The bluetooth module and WiFi module at end share same root antenna, which comprises
When detecting that terminal transmits data by bluetooth module, determine whether current WiFi module has been connected to wireless network
Network;
When the WiFi module has been connected to wireless network, and destination application belonging to the terminal current interface is just
When by the wireless network transmissions data, judge whether the first data volume of remaining data to be transmitted is more than preset threshold;
If first data volume is less than preset threshold, the WiFi module is closed.
Second aspect, the embodiment of the present application provide a kind of data transmission device based on bluetooth, are applied to terminal, packet
It includes:
The bluetooth module and WiFi module of the terminal share same root antenna, and described device includes:
Determination unit, for whether determining current WiFi module when detecting that terminal transmits data by bluetooth module
It has been connected to wireless network;
Judging unit, for being connected to wireless network when the WiFi module, and belonging to the terminal current interface
When destination application passes through the wireless network transmissions data, judge whether the first data volume of remaining data to be transmitted surpasses
Cross preset threshold;
Closedown module closes the WiFi module if being less than preset threshold for first data volume.
The third aspect is stored with a plurality of finger the embodiment of the present application also provides a kind of storage medium in the storage medium
It enables, described instruction is suitable for being loaded by processor to execute the above-mentioned data transmission method based on bluetooth.
Fourth aspect, the embodiment of the present application also provides a kind of terminal, including processor, memory, bluetooth module and
WiFi module, the processor is electrically connected with the memory, the bluetooth module and the WiFi module respectively, described to deposit
Reservoir is for storing instruction and data;Processor is for executing the above-mentioned data transmission method based on bluetooth.
During the application is implemented, the bluetooth module of terminal and WiFi module share same root antenna, when detecting that terminal passes through
When bluetooth module transmits data, determine whether current WiFi module has been connected to wireless network;When WiFi module be connected to whether there is or not
Gauze network, and when destination application belonging to terminal current interface passes through wireless network transmissions data, judge remaining to be passed
Whether the first data volume of transmission of data is more than preset threshold;If the first data volume is less than preset threshold, WiFi module is closed.
WiFi module is closed to release the occupancy to antenna when passing through bluetooth data transmission, bluetooth module is made to monopolize day by the program
Line resource effectively improves efficiency when passing through bluetooth data transmission.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a flow diagram of the data transmission method provided by the embodiments of the present application based on bluetooth.
Fig. 2 is another flow diagram of the data transmission method provided by the embodiments of the present application based on bluetooth.
Fig. 3 is the application scenarios schematic diagram of the data transmission method provided by the embodiments of the present application based on bluetooth.
Fig. 4 is the first structure diagram of the data transmission device provided by the embodiments of the present application based on bluetooth.
Fig. 5 is the second structural schematic diagram of the data transmission device provided by the embodiments of the present application based on bluetooth.
Fig. 6 is the third structural schematic diagram of the data transmission device provided by the embodiments of the present application based on bluetooth.
Fig. 7 is the 4th structural schematic diagram of the data transmission device provided by the embodiments of the present application based on bluetooth.
Fig. 8 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.
Fig. 9 is another structural schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of data transmission method based on bluetooth, device, storage medium and terminal.Below will
It is described in detail respectively.
In one embodiment, a kind of data transmission method based on bluetooth is provided, be applied to smart phone, tablet computer,
In the terminal devices such as laptop.In the embodiment of the present application, terminal device has bluetooth module and WiFi module, and bluetooth
Module and WiFi module share same root antenna.With reference to Fig. 1, should the detailed process of data transmission method based on bluetooth can be as
Under:
101, when detect terminal by bluetooth module transmit data when, determine current WiFi module whether be connected to whether there is or not
Gauze network.
Wherein, by bluetooth module transmit data data type can there are many, such as digital data, byte type number
According to, text-type data etc..In addition, terminal can be the external bluetooth of terminal reception and set by bluetooth data transmission in the present embodiment
The data that preparation is sent can also be to send data to external bluetooth equipment with terminal.For example, when detecting terminal unlatching bluetooth transmission
When file to external bluetooth equipment, current network state can be checked, to determine whether to be connected with WiFi network.
It should be noted that external bluetooth equipment can be smart phone, laptop, TV bluetooth-capable
Equipment, Baffle Box of Bluetooth etc., the application is not specifically limited in this embodiment.
In the present embodiment, the wireless network that WiFi module is connected to may include WiFi network, be also possible to WiFi heat
Point (such as mobile phone Wi-Fi hotspot).
102, when WiFi module has been connected to wireless network, and destination application belonging to terminal current interface passes through
When wireless network transmissions data, judge whether the first data volume of remaining data to be transmitted is more than preset threshold.
Likewise, terminal can be terminal and receive the data that external equipment is sent by wireless network transmissions data, it can also
It is to send data to external equipment with terminal.
In the present embodiment, if detection WiFi module has been connected to wireless network, and terminal display screen is unlocked (is in
The working condition of bright screen), it is determined that the destination application belonging to the current interface that display screen is shown is corresponding.In the present embodiment,
Different application, such as office application, social application, game application, shopping class application etc. are installed in terminal, this is not done
It is specific to limit.It should be noted that terminal desktop is substantially also an application program.
If the wireless network that WiFi module connection is used in identified destination application receives data or sends number
According to, then detect obtain the remaining data to be transmitted of the destination application data volume (i.e. the first data volume).Then, it can incite somebody to action
First data volume is compared with preset threshold, and different operations is executed based on different comparison results.
In some embodiments, the data transmission method can with the following steps are included:
(11) when WiFi module has been connected to wireless network, and destination application belonging to terminal current interface does not pass through
When wireless network transmissions data, determination is currently at operating status and the application program by wireless network transmissions data;
(12) the corresponding severity level of application program is determined;
(13) if severity level is lower than pre-set level, WiFi module is closed.
Specifically, destination application is regarded as active user's application program currently in use to a certain extent.If
The application program that user is being currently used is not using wireless network, then can be by closing.But in order to avoid transporting from the background
In capable application program, some more important application programs are just occupying the case where wireless network handles data and is interrupted hair
It is raw, therefore in the present embodiment, it may further determine that and be currently at operating status and the application by wireless network transmissions data
The severity level of program.If severity level degree reaches specified level (the as application program of higher level), WiFi is kept
The wireless network connection of module.If severity level degree is not up to specified level (the as other application program of lower level), break
Open the wireless network connection of WiFi module.
Wherein, the severity level of application program is pre-set according to user's actual need.For example, can will handle official business
Class, game class etc. relatively less allow the application program being interrupted to be set as higher level, and for quilts such as shopping class, reading classes
Lesser application program is influenced after interruption, and lower rank is set.
In some embodiments, which can also include pressing process dimly:
(21) when WiFi module has been not attached to wireless network, judge whether WiFi module is in the open state;
(22) if so, WiFi module is closed, with the wireless network signal around tabu search.
Specifically, in order to improve positioning accuracy, mobile terminal is permitted since mobile terminal can largely support WiFi to position
Perhaps application program and service monitor the WLAN (Wireless Local Area Network, Wireless LAN) of surrounding at any time.
WiFi module can do from the background irregularly executes scanning, search for around the work of wlan network influence bluetooth to occupy antenna
The data transmission efficiency of module.Therefore, when WiFi module has been not attached to wireless network, if WiFi module is in opening state
State, it may be considered that WiFi module executes the scan operation of wlan network on backstage.WiFi module can then be closed at this time, with
Forbid background scanning, release WiFi module to the occupancy of antenna, to reduce the influence to bluetooth module data transmission efficiency.
If 103, the first data volume is less than preset threshold, WiFi module is closed.
Specifically, lesser value can be set by above-mentioned preset threshold.When the data volume of remaining data to be transmitted is less than
Preset threshold then shows that the data volume of tape remaining transmission is smaller, even if without using wireless network and by the way of data traffic
Data are transmitted, too many data traffic will not be expended.Therefore, if the first data volume is less than preset threshold, WiFi mould is closed
Block has certain reasonability.
When specific, in order to which while reducing influence of the WiFi module to bluetooth module, guarantee target application as far as possible is passed
Defeated data are not also influenced by wireless network disconnection, can switch to data traffic come it is to be processed to being corresponded in destination application
Data to be transmitted is handled.That is, in some embodiments, after closing WiFi module, the number of terminal can also be opened
Remaining data to be transmitted is handled according to flow.
In some embodiments, it after determining that the first data volume of remaining data to be transmitted is less than preset threshold, closes
It closes before WiFi module, which can also include following below scheme:
(31) the second data volume when transmitting data by bluetooth module is obtained;
(32) prediction completes the first duration of the first data volume of transmitting-receiving and completes to transmit the second of the second data transfers
Duration;
(33) if the first duration is greater than the second duration, the step of closing WiFi module is executed
Specifically, preferentially WiFi module can be allowed to work when the time of bluetooth data transmission is longer, pass through wireless network
After quickly data are transmitted, the data transmission that WiFi module executes bluetooth module is turned off, to efficiently utilize the time.
And if by the time to be expended of wireless network transmissions data it is longer when (i.e. the first duration be greater than second when
It is long), then WiFi module can be first closed, preferentially bluetooth module is allowed to work.Quickly data are transmitted by way of bluetooth
Afterwards, restart WiFi module connection wireless network to carry out the processing of related data.
In some embodiments, which can also include following below scheme:
(41) if the first data volume is more than preset threshold, it is determined that the number that the data correspondence of the first data volume of transmission need to expend
According to flow information;
(42) information alert interface is at least generated based on data traffic information, wherein information alert is at least shown in interface
There is data traffic information and whether closes the selection control of WiFi module.
Specifically, the first data volume is more than preset threshold, then show that completing data transmission needs more data traffic.
User can be fed back information at this time, the flow, simultaneously for reminding user to need to expend by way of generating information alert interface
Option is provided for user, to transfer to user to choose whether to continue to use wireless network transmissions data.
In practical application, which can be shown in interface in the form of text or pattern, the selection control
It can be shown in the form of button.
Further, which can also show remaining data traffic set meal situation in terminal, with
Just the better equilibrium selection of user.
In some embodiments, after closing WiFi module, which can also include following below scheme:
(51) when detecting the data completion transmission transmitted by bluetooth module, start WiFi module;
(52) corresponding wireless network is connected to by WiFi module, and based on the wireless network being currently connected to described
Untreated data are handled in remaining data to be transmitted.
Specifically, can start WiFi module when bluetooth module completes data transmission and be connected to corresponding wireless network
The data not being transmitted before processing.
From the foregoing, it will be observed that this programme when passing through bluetooth data transmission, can close WiFi module to cut off terminal connection
WiFi network and its WlAN scanning function.To make bluetooth module monopolize antenna resources, effectively to release the occupancy to antenna
Improve efficiency when passing through bluetooth data transmission.
In some embodiments, the content that application scheme is protected in order to facilitate understanding, it will thus provide another kind is based on bluetooth
Data transmission method, and be described in detail.Specifically refer to Fig. 2, should data transmission method based on bluetooth, specifically can be with
Including following below scheme:
201, when detect terminal by bluetooth module transmit data when, judge current WiFi module whether be connected to whether there is or not
Gauze network;If so, step 202 is executed, it is no to then follow the steps 208.
For example, can check current net when detecting that terminal opens Bluetooth function transmission file to external bluetooth equipment
Network state, to determine whether to be connected with WiFi network.
202, judge that destination application belonging to terminal current interface passes through wireless network transmissions data;If so, holding
Otherwise row step 203 executes step 207.
Specifically, when WiFi module has been connected to wireless network, and terminal display screen is unlocked (i.e. in the work of bright screen
State), it is determined that the destination application belonging to the current interface that display screen is shown is corresponding.Then the target application journey is determined again
Whether sequence just uses wireless network.
Wherein, destination application is regarded as active user's application program currently in use to a certain extent.
203, whether the first data volume for judging remaining data to be transmitted is more than preset threshold;If so, step 204 is executed,
It is no to then follow the steps 208.
If the wireless network that WiFi module connection is used in identified destination application receives data or sends number
According to, then detect obtain the remaining data to be transmitted of the destination application data volume (i.e. the first data volume).Then, it can incite somebody to action
First data volume is compared with preset threshold, and different operations is executed based on different comparison results.
Wherein, the first data volume is more than preset threshold, then shows that completing data transmission needs more data traffic.The
One data volume is less than preset threshold, then shows that completing data transmission needs less data flow.
204, the data traffic information that the data correspondence of the first data volume of transmitting-receiving need to expend is determined.
Specifically, the data traffic information that need to be expended can be obtained based on the corresponding relationship between data volume and data traffic.
Wherein, which can be pre-set rule.For example, the data of transmission 100Mb, need to expend 100M data flow
Amount.
205, information alert interface is at least generated based on data traffic information, wherein information alert is at least shown in interface
There is data traffic information and whether closes the selection control of WiFi module.
Specifically, the first data volume is more than preset threshold, then show that completing data transmission needs more data traffic.
User can be fed back information at this time, the flow, simultaneously for reminding user to need to expend by way of generating information alert interface
Option is provided for user, to transfer to user to choose whether to continue to use wireless network transmissions data.
In practical application, which can be shown in interface in the form of text or pattern, the selection control
It can be shown in the form of button.For example, current interface is showing the downloading interface of certain application program with reference to Fig. 3, this applies journey
The compressed package files of WiFi network downloading RAR format are used in sequence, and show download progress with progress bar, and show lower information carrying
It ceases " (250MB/350MB) in downloading ... ".It detects at this time and needs to transmit file by bluetooth module, then the information alert interface
Can show text information are as follows: " send current file need consumption data flow be 100M, if continue close WiFi? ";Button is then
It includes two buttons that text information, which can be corresponded to, and a button closes WiFi ("Yes" button as shown in Figure 3) for confirming, separately
One button refusal closes WiFi ("No" button as shown in Figure 3).
206, it receives user and passes through the WiFi module out code of selection control triggering.
Specifically, if user determine close WiFi, can by selection control clicked, Touching controlling lamp operate, triggering
The out code of WiFi module.
207, judge whether WiFi module is in the open state;If so, executing step 208;Otherwise terminate process.
Specifically, if WiFi module is in the open state, can recognize when WiFi module has been not attached to wireless network
The scan operation of wlan network is executed on backstage for WiFi module.
208, WiFi module is closed.
Specifically, when the first data volume of remaining data to be transmitted be more than preset threshold when or receive user triggering
WiFi module out code when or WiFi module when being not attached to wireless network, but WiFi module is in opening state
When state, WiFi module can be closed.
209, start WiFi module when detecting that the data transmitted by bluetooth module complete transmission, and pass through
WiFi module is connected to corresponding wireless network, and based on the wireless network being currently connected to not locating in remaining data to be transmitted
The data of reason are handled.
Specifically, can start WiFi module when bluetooth module completes data transmission and be connected to corresponding wireless network
The data not being transmitted before processing.
From the foregoing, it will be observed that this programme when passing through bluetooth data transmission, can close WiFi module to cut off terminal connection
WiFi network and its WlAN scanning function.To make bluetooth module monopolize antenna resources, effectively to release the occupancy to antenna
Improve efficiency when passing through bluetooth data transmission.
In the another embodiment of the application, a kind of data transmission device based on bluetooth is also provided, it should the number based on bluetooth
It can be integrated in the terminal in the form of software or hardware according to transmitting device.The terminal can specifically include mobile phone, tablet computer, pen
Remember this apparatus such as computer, and there is bluetooth module and WiFi module, and bluetooth module and WiFi module share same root antenna.Such as
Shown in Fig. 4, being somebody's turn to do the data transmission device 300 based on bluetooth may include: determination unit 301, the first judging unit 302 and closes
Close unit 303, in which:
Network determination unit 301, for determining current WiFi mould when detecting that terminal transmits data by bluetooth module
Whether block has been connected to wireless network;
First judging unit 302, for being connected to wireless network, and the terminal current interface when the WiFi module
When affiliated destination application passes through the wireless network transmissions data, the first data volume of remaining data to be transmitted is judged
It whether is more than preset threshold;
Closedown module 303 closes the WiFi module if being less than preset threshold for first data volume.
In some embodiments, with reference to Fig. 5, which can also include:
Acquiring unit 304, for closing after determining that the first data volume of remaining data to be transmitted is less than preset threshold
It closes before the WiFi module, obtains the second data volume when transmitting data by bluetooth module;
Predicting unit 305, for predicting to complete the first duration of transmission first data volume and complete described in transmission
Second duration of the second data transfers;
Closing unit 303 specifically can be used for closing the WiFi mould when first duration is greater than the second duration
Block.
With continued reference to Fig. 5, in some embodiments, which can also include opening unit 306, for closing
After WiFi module, the data traffic for opening terminal handles remaining data to be transmitted.
In some embodiments, which can also include:
Second judgment unit, for whether judging the WiFi module when WiFi module has been not attached to wireless network
It is in the open state;
Closedown module 303 closes WiFi module if specifically can be used for when condition judgment module, which is determined as, is, to prohibit
The only wireless network signal around search.
In some embodiments, which can also include:
Using determination unit, for being connected to wireless network, and target belonging to terminal current interface when WiFi module
When application program is not by the wireless network transmissions data, determination is currently at operating status and is passed by the wireless network
The application program of transmission of data;
Level deciding unit, for determining the corresponding severity level of the application program;
Closing unit 303 closes WiFi module if specifically can be used for the severity level lower than pre-set level.
With reference to Fig. 6, in some embodiments, which can also include:
Start unit 306, for being passed when detecting by the bluetooth module after closing the WiFi module
After defeated data complete transmission, start WiFi module;
Processing unit 307 for being connected to corresponding wireless network by the WiFi module, and is based on being currently connected to
Wireless network untreated data in the remaining data to be transmitted are handled.
With reference to Fig. 7, in some embodiments, which can also include:
Flow determination unit 308, if being more than preset threshold for first data volume, it is determined that transmission first number
The data traffic information that need to be expended according to the data correspondence of amount;
Prompt unit 309, at least flow information to generate information alert interface based on the data, wherein the letter
The data traffic information is at least shown in breath prompting interface and whether closes the selection control of the WiFi module.
From the foregoing, it will be observed that the data transmission device provided by the embodiments of the present application based on bluetooth, when detecting that terminal passes through indigo plant
When tooth module transfer data, determine whether current WiFi module has been connected to wireless network;When WiFi module has been connected to wirelessly
Network, and when destination application belonging to terminal current interface passes through wireless network transmissions data, judge remaining to be transmitted
Whether the first data volume of data is more than preset threshold;If the first data volume is less than preset threshold, WiFi module is closed.It should
Scheme closes WiFi module when passing through bluetooth data transmission to cut off the WiFi network of terminal connection and its WlAN and scan
Function.To make bluetooth module monopolize antenna resources to release to the occupancy of antenna, effectively improve when passing through bluetooth data transmission
Efficiency.
A kind of terminal is also provided in the another embodiment of the application, which can be smart phone, tablet computer etc. eventually
End equipment.As shown in figure 8, terminal 400 includes processor 401, memory 402, bluetooth module 407, WiFi module 408.Wherein,
Processor 401 is electrically connected with memory 402, bluetooth module 407, WiFi module 408 respectively.
Processor 401 is the control centre of terminal 400, utilizes each portion of various interfaces and the entire terminal of connection
Point, by the application of operation or load store in memory 402, and the data being stored in memory 402 are called, executed
The various functions and processing data of terminal, to carry out integral monitoring to terminal.
In the present embodiment, the processor 401 in terminal 400 can be according to following step, will be one or more
The corresponding instruction of the process of application is loaded into memory 402, and is run and be stored in memory 402 by processor 401
Using to realize various functions:
When detecting that terminal transmits data by bluetooth module, determine whether current WiFi module has been connected to wireless network
Network;
When the WiFi module has been connected to wireless network, and destination application belonging to the terminal current interface is just
When by the wireless network transmissions data, judge whether the first data volume of remaining data to be transmitted is more than preset threshold;
If first data volume is less than preset threshold, the WiFi module is closed.
In some embodiments, it after determining that the first data volume of remaining data to be transmitted is less than preset threshold, closes
It closes before the WiFi module, processor 401 can execute following operation:
Obtain the second data volume when transmitting data by bluetooth module;
Prediction is completed to transmit the first duration of first data volume and completes to transmit second data transfers
Second duration;
When first duration is greater than the second duration, processor 401 can then execute the operation for closing WiFi module.
In some embodiments, after closing the WiFi module, processor 401 can execute following operation:
The data traffic for opening terminal handles the remaining data to be transmitted.
In some embodiments, when the WiFi module has been not attached to wireless network, processor 401 can execute with
Lower operation:
Judge whether the WiFi module is in the open state;
If so, the WiFi module is closed, with the wireless network signal around tabu search.
In some embodiments, when the WiFi module has been connected to wireless network, and belonging to the terminal current interface
Destination application not by the wireless network transmissions data when, processor 401 can execute following operation and can also hold
The following operation of row:
Determination is currently at operating status and by the application program of the wireless network transmissions data;
Determine the corresponding severity level of the application program;
If the severity level is lower than pre-set level, the WiFi module is closed.
In some embodiments, it after closing the WiFi module, and detects and is passed by the bluetooth module
When defeated data complete transmission, processor 401 can execute following operation:
Start the WiFi module;
It is connected to corresponding wireless network by the WiFi module, and based on the wireless network being currently connected to described
Untreated data are handled in remaining data to be transmitted.
In some embodiments, if first data volume is more than preset threshold, processor 401 can execute following behaviour
Make:
It determines and transmits the data traffic information that the data correspondence of first data volume need to expend;
At least flow information generates information alert interface based on the data, wherein in the information alert interface at least
It shows the data traffic information and whether closes the selection control of the WiFi module.
Memory 402 can be used for storing application and data.Including in the application that memory 402 stores can be in the processor
The instruction of execution.Using various functional modules can be formed.Processor 401 is stored in the application of memory 402 by operation, from
And perform various functions application and data processing.
Bluetooth module 407 can be used for realizing the transmitting-receiving of Bluetooth signal in short-distance wireless communication.It is divided into bluetooth number by function
According to module and blue tooth voice module.As replace data cable short-distance wireless communication technology, bluetooth supports point to point and
Various data and voice devices in family or office are wirelessly linked to be a piconet by the communication of point-to-multipoint
(Pico-net), several piconets can also further realize interconnection, form a distributed network (scatter-net),
It is easily communicated to realize quick between these connection equipment.
WiFi module 408 also known as serial ports Wi-Fi module, belong to Internet of Things transport layer, and function is to turn serial ports or Transistor-Transistor Logic level
For the embedded module for meeting Wi-Fi wireless network communication standards, built-in wireless network protocol IEEE802.11b.g.n protocol stack
And ICP/IP protocol stack.Traditional hardware device insertion Wi-Fi module directly can be connected to internet using Wi-Fi, be real
The important component of the Internet of Things application such as existing wireless intelligent house, M2M.
It should be noted that in the embodiment of the present application, bluetooth module and WiFi module share same root antenna.
In some embodiments, as shown in figure 9, terminal 400 further include: display screen 403, control circuit 404, radio circuit
405, input unit 406 and power supply 409.Wherein, processor 401 respectively with display screen 403, control circuit 404, radio circuit
405, input unit 406 and power supply 409 are electrically connected.
Display screen 403 can be used for showing information input by user or be supplied to the information of user and the various figures of terminal
Shape user interface, these graphical user interface can be made of image, text, icon, video and any combination thereof.
Control circuit 404 and display screen 403 are electrically connected, and show information for controlling display screen 403.
Radio circuit 405 is used for transceiving radio frequency signal, to establish nothing with the network equipment or other terminals by wireless communication
Line communication, the receiving and transmitting signal between the network equipment or other terminals.
Input unit 406 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and
Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Wherein,
Input unit 406 may include fingerprint recognition mould group.
Power supply 409 is used to power to all parts of terminal 400.In some embodiments, power supply 409 can pass through power supply
Management system and processor 401 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown in Fig. 9, terminal 400 can also include camera, loudspeaker, sensor etc., and details are not described herein.
From the foregoing, it will be observed that terminal provided by the embodiments of the present application, when passing through bluetooth data transmission, WiFi module is closed to cut
The WiFi network and its WlAN scanning function of disconnected terminal connection.To make bluetooth module monopolize day to release the occupancy to antenna
Line resource effectively improves efficiency when passing through bluetooth data transmission.
In some embodiments, a kind of storage medium is additionally provided, a plurality of instruction is stored in the storage medium, the instruction
Suitable for being loaded by processor to execute any of the above-described data transmission method based on bluetooth.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Above to data transmission method, device, storage medium and the terminal provided by the embodiment of the present application based on bluetooth
It is described in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, the above reality
The explanation for applying example is merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art,
According to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion in this specification
Hold the limitation that should not be construed as to the application.
Claims (10)
1. a kind of data transmission method based on bluetooth, be applied to terminal, which is characterized in that the bluetooth module of the terminal with
WiFi module shares same root antenna, which comprises
When detecting that terminal transmits data by bluetooth module, determine whether current WiFi module has been connected to wireless network;
When the WiFi module has been connected to wireless network, and destination application belonging to the terminal current interface passes through
When the wireless network transmissions data, judge whether the first data volume of remaining data to be transmitted is more than preset threshold;
If first data volume is less than preset threshold, the WiFi module is closed.
2. the data transmission method according to claim 1 based on bluetooth, which is characterized in that determining remaining number to be transmitted
According to the first data volume be less than preset threshold after, close before the WiFi module, the method also includes:
Obtain the second data volume when transmitting data by bluetooth module;
Prediction is completed to transmit the first duration of first data volume and completes to transmit the second of second data transfers
Duration;
If the step of first duration is greater than the second duration, executes the closing WiFi module.
3. the data transmission method according to claim 1 based on bluetooth, which is characterized in that closing the WiFi module
Later, the method also includes:
The data traffic for opening the terminal handles the remaining data to be transmitted.
4. the data transmission method according to claim 1 based on bluetooth, which is characterized in that the method also includes:
When the WiFi module has been not attached to wireless network, judge whether the WiFi module is in the open state;
If so, the WiFi module is closed, with the wireless network signal around tabu search.
5. the data transmission method according to claim 1 based on bluetooth, which is characterized in that the method also includes:
When the WiFi module has been connected to wireless network, and destination application belonging to the terminal current interface does not pass through
When the wireless network transmissions data, determination is currently at operating status and the application journey by the wireless network transmissions data
Sequence;
Determine the corresponding severity level of the application program;
If the severity level is lower than pre-set level, the WiFi module is closed.
6. the data transmission method according to claim 1-5 based on bluetooth, which is characterized in that described in closing
After WiFi module, the method also includes:
When detecting the data completion transmission transmitted by the bluetooth module, start the WiFi module;
It is connected to corresponding wireless network by the WiFi module, and based on the wireless network being currently connected to the residue
Untreated data are handled in data to be transmitted.
7. the data transmission method according to claim 1 based on bluetooth, which is characterized in that the method also includes:
If first data volume is more than preset threshold, it is determined that the number that the data correspondence of transmission first data volume need to expend
According to flow information;
At least flow information generates information alert interface based on the data, wherein at least shows in the information alert interface
There is the data traffic information and whether closes the selection control of the WiFi module.
8. a kind of data transmission device based on bluetooth, be applied to terminal, which is characterized in that the bluetooth module of the terminal with
WiFi module shares same root antenna, and described device includes:
Network determination unit, for whether determining current WiFi module when detecting that terminal transmits data by bluetooth module
It has been connected to wireless network;
First judging unit, for being connected to wireless network when the WiFi module, and belonging to the terminal current interface
When destination application passes through the wireless network transmissions data, judge whether the first data volume of remaining data to be transmitted surpasses
Cross preset threshold;
Closedown module closes the WiFi module if being less than preset threshold for first data volume.
9. a kind of storage medium, which is characterized in that be stored with a plurality of instruction in the storage medium, described instruction is suitable for by handling
Device is loaded to execute the data transmission method according to claim 1-7 based on bluetooth.
10. a kind of terminal, which is characterized in that including processor, memory, bluetooth module and WiFi module, the processor point
It is not electrically connected with the memory, the bluetooth module and the WiFi module, memory sum number for storing instruction
According to;The processor is for executing the data transmission method according to claim 1-7 based on bluetooth.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910711037.8A CN110290278A (en) | 2019-08-02 | 2019-08-02 | Data transmission method, device, storage medium and terminal based on bluetooth |
PCT/CN2019/120917 WO2021022720A1 (en) | 2019-08-02 | 2019-11-26 | Bluetooth-based data transmission method, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910711037.8A CN110290278A (en) | 2019-08-02 | 2019-08-02 | Data transmission method, device, storage medium and terminal based on bluetooth |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110290278A true CN110290278A (en) | 2019-09-27 |
Family
ID=68024756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910711037.8A Pending CN110290278A (en) | 2019-08-02 | 2019-08-02 | Data transmission method, device, storage medium and terminal based on bluetooth |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110290278A (en) |
WO (1) | WO2021022720A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111065080A (en) * | 2019-12-20 | 2020-04-24 | 深圳市椰壳信息科技有限公司 | Data transmission method based on Bluetooth router and Bluetooth router |
WO2021022720A1 (en) * | 2019-08-02 | 2021-02-11 | 惠州Tcl移动通信有限公司 | Bluetooth-based data transmission method, storage medium and terminal |
CN113676881A (en) * | 2021-08-06 | 2021-11-19 | Oppo广东移动通信有限公司 | Device control method, device, electronic device and storage medium |
CN113691668A (en) * | 2021-08-17 | 2021-11-23 | Oppo广东移动通信有限公司 | Device control method, device, chip, electronic device and storage medium |
CN117221990A (en) * | 2023-11-09 | 2023-12-12 | 钦原科技有限公司 | Standby data network connection control method for mobile terminal equipment |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113840269B (en) * | 2021-08-06 | 2023-11-14 | 深圳Tcl新技术有限公司 | Multimedia data transmission method and device, electronic equipment and storage medium |
CN114080077B (en) * | 2021-11-30 | 2024-01-12 | 深圳市飞天鹰科技有限公司 | LED controller with WIFI and Bluetooth modes |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302824A (en) * | 2016-10-31 | 2017-01-04 | 努比亚技术有限公司 | wireless WiFi control method, device and mobile terminal |
CN107148055A (en) * | 2017-04-27 | 2017-09-08 | 努比亚技术有限公司 | A kind of traffic management and control method, mobile terminal and computer-readable recording medium |
CN109151784A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Method for connecting network, device and electronic equipment |
CN109152057A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Timeslice distribution method, device and electronic equipment |
CN109274407A (en) * | 2018-08-14 | 2019-01-25 | Oppo广东移动通信有限公司 | Data transmission method, device, electronic equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8340034B1 (en) * | 2009-11-11 | 2012-12-25 | Marvell International Ltd. | Bluetooth and wireless LAN arbitration |
US8750188B2 (en) * | 2010-12-01 | 2014-06-10 | Deutsche Telekom Ag | System support for accessing and switching among multiple wireless interfaces on mobile devices |
CN103378884A (en) * | 2012-04-23 | 2013-10-30 | 联想(北京)有限公司 | Communication terminal and data communication control method |
CN107222777B (en) * | 2017-07-19 | 2019-02-26 | 深圳创维数字技术有限公司 | A kind of set-top box WiFi and Bluetooth coexistence optimization method and device |
CN109041026B (en) * | 2018-08-14 | 2020-08-11 | 深圳创维数字技术有限公司 | Antenna ratio setting method and device, user equipment and storage medium |
CN110290278A (en) * | 2019-08-02 | 2019-09-27 | 惠州Tcl移动通信有限公司 | Data transmission method, device, storage medium and terminal based on bluetooth |
-
2019
- 2019-08-02 CN CN201910711037.8A patent/CN110290278A/en active Pending
- 2019-11-26 WO PCT/CN2019/120917 patent/WO2021022720A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302824A (en) * | 2016-10-31 | 2017-01-04 | 努比亚技术有限公司 | wireless WiFi control method, device and mobile terminal |
CN107148055A (en) * | 2017-04-27 | 2017-09-08 | 努比亚技术有限公司 | A kind of traffic management and control method, mobile terminal and computer-readable recording medium |
CN109151784A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Method for connecting network, device and electronic equipment |
CN109152057A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Timeslice distribution method, device and electronic equipment |
CN109274407A (en) * | 2018-08-14 | 2019-01-25 | Oppo广东移动通信有限公司 | Data transmission method, device, electronic equipment and storage medium |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021022720A1 (en) * | 2019-08-02 | 2021-02-11 | 惠州Tcl移动通信有限公司 | Bluetooth-based data transmission method, storage medium and terminal |
CN111065080A (en) * | 2019-12-20 | 2020-04-24 | 深圳市椰壳信息科技有限公司 | Data transmission method based on Bluetooth router and Bluetooth router |
CN111065080B (en) * | 2019-12-20 | 2023-07-18 | 深圳市椰壳信息科技有限公司 | Data transmission method based on Bluetooth router and Bluetooth router |
CN113676881A (en) * | 2021-08-06 | 2021-11-19 | Oppo广东移动通信有限公司 | Device control method, device, electronic device and storage medium |
CN113676881B (en) * | 2021-08-06 | 2024-05-07 | Oppo广东移动通信有限公司 | Equipment control method, device, electronic equipment and storage medium |
CN113691668A (en) * | 2021-08-17 | 2021-11-23 | Oppo广东移动通信有限公司 | Device control method, device, chip, electronic device and storage medium |
WO2023020240A1 (en) * | 2021-08-17 | 2023-02-23 | Oppo广东移动通信有限公司 | Device control method and apparatus, and chip, electronic device and storage medium |
CN117221990A (en) * | 2023-11-09 | 2023-12-12 | 钦原科技有限公司 | Standby data network connection control method for mobile terminal equipment |
CN117221990B (en) * | 2023-11-09 | 2024-02-13 | 钦原科技有限公司 | Standby data network connection control method for mobile terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2021022720A1 (en) | 2021-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110290278A (en) | Data transmission method, device, storage medium and terminal based on bluetooth | |
US10390297B2 (en) | Communication apparatus | |
CN105843761B (en) | Function execution means | |
CN107682844B (en) | Communication device | |
US9116653B2 (en) | Terminal apparatus and scanner interacting to perform scan functions using different communication schemes | |
US9104355B2 (en) | Terminal apparatus and printer interacting to perform print functions using different communication schemes | |
CN102771064B (en) | Electronic equipment and method of operation thereof | |
CN107360635B (en) | Data transmission method, device, terminal and computer readable storage medium | |
CN110035004B (en) | User name card sharing method, friend adding method and related device | |
CN105392103B (en) | The control method of information processing unit and information processing unit | |
US9111207B2 (en) | Terminal apparatus interacting with a function executing apparatus to perform print and scan functions using various communication schemes | |
US20150092231A1 (en) | Wireless Communication Apparatus | |
CN105557036A (en) | Efficient automatic sharing of network access among devices | |
CN105472038A (en) | Control method, control apparatus and control system for file transmission | |
CN107402791B (en) | Application processing method and device, storage medium and terminal | |
CN108696847A (en) | Communication equipment, non-transitory computer readable recording medium and the method executed by communication equipment | |
US20190373541A1 (en) | Electronic device supporting multiple wireless communication protocols and method therefor | |
CN110312286A (en) | Method for switching network, communication device and communication equipment | |
CN108432292A (en) | A kind of WiFi connection methods and equipment | |
CN103401898A (en) | Method for transmitting data between mobile terminals and mobile terminals | |
CN114629932A (en) | Electronic equipment and cooperation method between electronic equipment | |
CN107277756B (en) | A kind of data transmission method, device, terminal and computer readable storage medium | |
CN106453908A (en) | Double-card network switching method and apparatus based on call and mobile terminal | |
EP2945298A1 (en) | Communication method and apparatus for nfc device, and nfc device | |
CN105657160A (en) | Method for carrying out data exchange based on gestures among electronic devices |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190927 |