CN105072560B - A kind of data transmission method and device - Google Patents
A kind of data transmission method and device Download PDFInfo
- Publication number
- CN105072560B CN105072560B CN201510396881.8A CN201510396881A CN105072560B CN 105072560 B CN105072560 B CN 105072560B CN 201510396881 A CN201510396881 A CN 201510396881A CN 105072560 B CN105072560 B CN 105072560B
- Authority
- CN
- China
- Prior art keywords
- wireless communication
- communication module
- module
- target terminal
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of data transmission method and terminals.The present invention is when carrying out data transmission, by the unlatching situation for detecting the wireless communication module of target terminal automatically, and it is selected a wireless communication module to be attached from multiple wireless communication modules of unlatching according to preset rules and is transmitted with data, realize foundation, the data transmission of the detection and data transmission channel that communicate wirelessly module automatically when carrying out data transmission, to save the cumbersome of artificial wireless connection setting, foolproof sharing data, is convenient for the user to use.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of data transmission methods and device.
Background technique
Present intelligent terminal or device are more more and more universal, and the content of terminal storage is also more and more abundant, and people are often two
The transmission of data, data transfer mode multiplicity, however, when two terminals carry out data transmission are carried out between a or more terminal
It is typically necessary user and carries out the checking of transmission mode of terminal support, accordingly connection setting manually, then just setting
The transmission of data is carried out between terminal, current this data transfer mode complex steps increase the burden of user.
Summary of the invention
The present invention provides a kind of data transmission method and devices, to communicate wirelessly the detection and data of module automatically
Foundation, the data transmission of transmission channel, save the cumbersome of artificial wireless connection setting, are convenient for the user to use.
On the one hand, a kind of data transmission method is provided, comprising:
Receive data transfer instruction;
Whether multiple wireless communication modules of detection target terminal are separately turned on, if depositing in the multiple wireless communication module
In the wireless communication module of unlatching, then a wireless telecommunications are selected from the wireless communication module of the unlatching according to preset rules
Module;
Data transmission channel is established with the wireless communication module of selection, and according to the data transfer instruction in the data
Carry out data transmission in transmission channel.
Preferably, described to select a wireless telecommunications mould from the wireless communication module of the unlatching according to preset rules
Block, comprising:
Detect the size of data to be transmitted, and/or the transmission range between the target terminal;
According to the size of the data to be transmitted detected and/or the transmission range and preset number to be transmitted
According to size, the corresponding relationship between transmission range and wireless communication module, selected from the wireless communication module of the unlatching
One wireless communication module.
Preferably, the wireless communication module includes bluetooth module, close range wireless communication module and Wireless Fidelity communication
Module.
Preferably, whether multiple wireless communication modules of the detection target terminal are separately turned on, if the multiple wireless
There is the channel radio modeling block opened in communication module, is then selected from the wireless communication module of the unlatching according to preset rules
One wireless communication module, comprising:
Detect whether the target terminal opens Wireless Fidelity communication module, if so, the Wireless Fidelity is selected to communicate
Module;If it is not,
Then detect whether the target terminal opens close range wireless communication module, if so, judgement is whole with the target
The transmission range at end and size of data to be transmitted whether within a preset range, if the transmission range and data to be transmitted are big
It is small in the preset range, then select the close range wireless communication module;
If not opening the close range wireless communication module or the transmission range and size of data to be transmitted not in institute
It states in preset range, then detects whether the target terminal opens bluetooth module, if so, selecting the bluetooth module.
Preferably, the wireless communication module with selection establishes data transmission channel, and is referred to according to data transmission
Order carries out data transmission on the data transmission channel
The message transmission rate on the data transmission channel is detected, if the message transmission rate is lower than scheduled rate,
Then detect whether the target terminal opens the second wireless communication module, if so, establishing with second wireless communication module
Second data transmission channel;
Carried out data transmission by second data transmission channel with the target terminal.
On the other hand, a kind of data transmission device is provided, comprising:
Receiving module, for receiving data transmission instruction;
Selecting module, whether multiple wireless communication modules for detecting target terminal are separately turned on, if the multiple nothing
There is the wireless communication module opened in line communication module, is then selected from the wireless communication module of the unlatching according to preset rules
Select a wireless communication module;
Module is established, the wireless communication module for selecting with the selecting module establishes data transmission channel;
Transmission module, for enterprising in the data transmission channel for establishing module foundation according to the data transfer instruction
The transmission of row data.
Preferably, the selecting module includes:
First detection unit, for detecting the size of data to be transmitted, and/or the transmission distance between the target terminal
From;
First selecting unit, the size of the data to be transmitted for being detected according to the first detection unit, and/
Or the corresponding pass between the size of the transmission range and preset data to be transmitted, transmission range and wireless communication module
System selects a wireless communication module from the wireless communication module of the unlatching.
Preferably, the wireless communication module includes bluetooth module, close range wireless communication module and Wireless Fidelity communication
Module.
Preferably, the selecting module includes:
Second detection unit, for detecting whether the target terminal opens Wireless Fidelity communication module;
Second selecting unit, if detecting that the Wireless Fidelity communication module is opened for the second detection unit,
Select the Wireless Fidelity communication module;
Third detection unit, if detecting that the Wireless Fidelity communication module is not opened for the second detection unit,
Then detect whether the target terminal opens close range wireless communication module;
Judging unit is sentenced if detecting that the close range wireless communication module is opened for the third detection unit
Within a preset range whether disconnected and the target terminal transmission range and size of data to be transmitted;
Third selecting unit, if judging the transmission range and size of data to be transmitted in institute for the judging unit
It states in preset range, then selects the close range wireless communication module;
4th detection unit, if detecting that the close range wireless communication module is not opened for the third detection unit
It opens or the judging unit judges that the transmission range and size of data to be transmitted not in the preset range, then detect
Whether the target terminal opens bluetooth module;
4th selecting unit, if opening bluetooth module for target terminal described in the 4th detection unit detection road,
Select the bluetooth module.
Preferably, described device further include:
5th detection unit, for detecting the message transmission rate on the data transmission channel;
6th detection unit, if detecting the message transmission rate lower than default speed for the 5th detection unit
Rate, then detect whether the target terminal opens the second wireless communication module;
If it is described establish module and be also used to the 6th detection unit detect that the target terminal opens the second channel radio
Module is interrogated, then establishes the second data transmission channel with second wireless communication module;
The transmission module is also used to carry out data transmission by second data transmission channel with the target terminal.
As it can be seen that a kind of data transmission method and device that provide according to the present invention, when carrying out data transmission, by automatic
The unlatching situation of the wireless communication module of target terminal is detected, and according to preset rules from multiple wireless communication modules of unlatching
It selects a wireless communication module to be attached to transmit with data, realizes and communicated wirelessly automatically when carrying out data transmission
The detection of module and foundation, the data transmission of data transmission channel, so that the cumbersome of artificial wireless connection setting is saved, it is foolproof
Sharing data is convenient for the user to use.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of data transmission method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another data transmission method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another data transmission method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of data transmission device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another data transmission device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another data transmission device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
A kind of data transmission method, comprising:
Receive data transfer instruction;
Whether multiple wireless communication modules of detection target terminal are separately turned on, if depositing in the multiple wireless communication module
In the wireless communication module of unlatching, then a wireless telecommunications are selected from the wireless communication module of the unlatching according to preset rules
Module;
Data transmission channel is established with the wireless communication module of selection, and according to the data transfer instruction in the data
Carry out data transmission in transmission channel.
Specifically, referring to Fig. 1, being somebody's turn to do for a kind of flow diagram of data transmission method provided in an embodiment of the present invention
Method the following steps are included:
Step S101 receives data transfer instruction.
Source data transmitting device or source terminal receive the data transfer instruction inside user or device, and instruction will be inside device
Data in storage or external storage equipment are transferred to target terminal, which may, for example, be the click behaviour of user
Work or the gesture operation of user etc..The data transfer instruction can be one, be also possible to separated multiple.
Whether step S102, the multiple wireless communication modules for detecting target terminal are separately turned on.
It should be noted that wireless communication module described in the embodiment of the present invention includes that bluetooth module, near radio are logical
Interrogate module and Wireless Fidelity communication module.Present terminal generally can be carried out various wireless communication, such as bluetooth, wireless to protect
Very (Wireless Fidelity, abbreviation Wi-Fi), and wireless near field communication (Near Field Communication, referred to as
NFC) etc., but since it is considered that terminal power consumption etc., these wireless communication modules are usually to close, but user is often made
Wireless communication module then may be always on.Therefore, source terminal can by some wireless communication module attempt with
The corresponding wireless communication module of target terminal is communicated, so that whether the wireless communication module for detecting target terminal is opened
It opens, and whether the wireless communication module for detecting target terminal one by one is opened.
Step S103, if there is the wireless communication module opened in the multiple wireless communication module, according to default rule
A wireless communication module is then selected from the wireless communication module of the unlatching.
If detecting that target terminal has one or more wireless communication modules opened, due to various side wireless communications
There is the characteristic of transmission aspect in formula, if any communication exist to size of data to be transmitted, transmission range etc. it is certain
Limitation, can according to preset rules from one or more wireless communication modules of unlatching select a wireless communication module.
When specific implementation, " one is selected from the wireless communication module of the unlatching according to preset rules in step S103
Wireless communication module " can include:
Step A detects the size of data to be transmitted, and/or the transmission range between the target terminal;
Step B, according to the size of the data to be transmitted detected and/or the transmission range and it is preset to
The corresponding relationship between the size, transmission range and wireless communication module of data is transmitted, from the wireless communication module of the unlatching
One wireless communication module of middle selection.
There are one or more wireless communication modules opened if detecting in multiple wireless communication modules of target terminal,
It need to select a wireless communication module from this multiple wireless communication module according to preset rules, and preset rules and number to be transmitted
According to size or source terminal and target terminal between transmission range it is related, therefore, it is necessary to detect the size of data to be transmitted,
And the transmission range between source terminal and target terminal, since data to be transmitted is stored in the local or plug-in storage of source terminal
In equipment, therefore, the size of data to be transmitted can detecte, and can be using prior art detection source terminal and target terminal
Between transmission range, such as infrared technology.
There are preset corresponding relationships for the size of each wireless communication module and data to be transmitted, transmission range, if inspection
The size of the data to be transmitted measured in the range of the size of data to be transmitted corresponding with some wireless communication module, and/
Or transmission range is in the range of transmission range corresponding with some wireless communication module, then it can be to be transmitted according to what is detected
The size and/or transmission range and the corresponding relationship of data, find corresponding wireless communication module.
Step S104 establishes data transmission channel with the wireless communication module of selection, and according to the data transfer instruction
Carry out data transmission on the data transmission channel.
After choosing wireless communication module, source terminal is established data by the wireless communication module and target terminal of selection and is passed
The data transmission channel in defeated channel, different wireless communication modules, foundation may be different, after establishing data transmission channel, root
Carry out data transmission on the data transmission channel according to data transfer instruction.
It detects, select above, establishing channel, the process of data transmission is all automatically performed.
When carrying out data transmission, the unlatching situation of the wireless communication module by detecting target terminal automatically, and according to
Preset rules select a wireless communication module to be attached and data transmission, realization from multiple wireless communication modules of unlatching
The detection of module and the foundation of data transmission channel, data transmission are communicated wirelessly when carrying out data transmission automatically, from
And artificial cumbersome, the foolproof sharing data for being wirelessly connected setting is saved, it is convenient for the user to use.
Referring to Fig. 2, for the flow diagram of another data transmission method provided in an embodiment of the present invention, this method packet
Include following steps:
Step S201 receives data transfer instruction.
Whether step S202, the multiple wireless communication modules for detecting target terminal are separately turned on.
Step S203, if there is the wireless communication module opened in the multiple wireless communication module, according to default rule
A wireless communication module is then selected from the wireless communication module of the unlatching.
Step S204 establishes data transmission channel with the wireless communication module of selection, and according to the data transfer instruction
Carry out data transmission on the data transmission channel.
For the present embodiment unlike embodiment illustrated in fig. 1, the present embodiment further includes wireless communication module and data transmission
The automatic switchover in channel, other are identical as the step S104 of embodiment illustrated in fig. 1, and details are not described herein.
Step S205 detects the message transmission rate on the data transmission channel.
Source terminal can also in real time or periodically detect on the data transmission channel for transmitting data data transmission
Rate, it is whether too small to understand current data transfer rate.
Step S206 detects whether the target terminal opens the if the message transmission rate is lower than scheduled rate
Two wireless communication modules.
If detecting the message transmission rate on present data transmission channel lower than scheduled rate, then it represents that be no longer appropriate for adopting
Data are transmitted with current communication, then further whether detection target terminal opens other wireless telecommunications moulds
Block.The detection process can be leading to again for the step S202 of the step S102 or the present embodiment similar to embodiment illustrated in fig. 1
The wireless communication module that the process detection attempted is opened is crossed, is also possible to check target terminal according to the result that step S202 is detected
Whether have and opens other wireless communication modules.
Step S207, if the target terminal opens the second wireless communication module, with second wireless communication module
Establish the second data transmission channel.
Step S208 is carried out data transmission by second data transmission channel with the target terminal.
If detecting other wireless communication modules of unlatching, it is logical that new data transmission is established with the wireless communication module
Data are transmitted and are switched on new data transmission channel by original data transmission channel by road, without cutting off original number
According to transmission.
When carrying out data transmission, the unlatching situation of the wireless communication module by detecting target terminal automatically, and according to
Preset rules select a wireless communication module to be attached and data transmission, realization from multiple wireless communication modules of unlatching
The detection of module and the foundation of data transmission channel, data transmission are communicated wirelessly when carrying out data transmission automatically, from
And artificial cumbersome, the foolproof sharing data for being wirelessly connected setting is saved, it is convenient for the user to use;And feelings can be transmitted according to data
Condition communicates wirelessly the switching of module and data transmission channel automatically.
Referring to Fig. 3, being the flow diagram of another data transmission method provided in an embodiment of the present invention, this method packet
Include following steps:
Step S301 receives data transfer instruction.
This step is identical as the step S101 of embodiment illustrated in fig. 1, the step S201 of embodiment illustrated in fig. 2, herein no longer
It repeats.
Step S302, detects whether the target terminal opens Wireless Fidelity communication module, if so, going to step
S303;If it is not, then carrying out to step S304.
Step S303 selects the Wireless Fidelity communication module.
Step S304, detects whether the target terminal opens close range wireless communication module, if so, going to step
S305;If it is not, then going to step S307.
Step S305, whether judgement is with the transmission range of the target terminal and size of data to be transmitted in preset range
It is interior, if so, proceeding to step S306;If it is not, then going to step S307.
Step S306 selects the close range wireless communication module.
Step S307, if the target terminal does not open the close range wireless communication module, or with the target terminal
Transmission range and size of data to be transmitted not in the preset range, then detect whether the target terminal opens bluetooth
Module, if so, selecting the bluetooth module.
Step S308 establishes data transmission channel with the wireless communication module of selection, and according to the data transfer instruction
Carry out data transmission on the data transmission channel.
The present embodiment is related to three wireless communication modules, i.e., Wireless Fidelity communication module, close range wireless communication module and
Bluetooth module, according to the superiority and inferiority of each communication, when detecting the wireless communication module of unlatching, to three wireless telecommunications moulds
Block has the sequencing of a detection, if detecting that source terminal and target terminal can carry out Wireless Fidelity Wi-Fi communication,
Carried out data transmission with target terminal by Wi-Fi, this is because Wi-Fi communication transfer speeds are very fast, the data packet of transmission is big
It is small unlimited, usually speed biggish data can be transmitted faster, it is therefore preferable that Wi-Fi is transmitted;And if detecting target end
Wireless Fidelity communication module is not opened at end, then next whether detection target terminal opens close range wireless communication module, low coverage
From wireless communication module such as NFC module, but close range wireless communication modes have the distance of transmission and the size of data to be transmitted
Certain limitation, therefore, if target terminal has turned on close range wireless communication module, also need detection transmit distance and to
Transmit data size whether all within a preset range, if target terminal does not open close range wireless communication module, although or
The size of the distance or data to be transmitted that open close range wireless communication module, but transmit within a preset range, then cannot not
Selection close range wireless communication modes carry out data transmission, such as NFC is suitable only for transmitting lesser data, such as a network address,
A string of texts etc., but NFC pairing is most fast;Finally, detecting whether target terminal opens bluetooth module again, opened if detected
Bluetooth module can carry out Bluetooth communication.
Optionally, the present embodiment also can detect the message transmission rate on the data transmission channel, if the data pass
Defeated rate is lower than scheduled rate, then detects whether the target terminal opens the second wireless communication module, if the result of detection is
It is then to establish the second data transmission channel with second wireless communication module, passes through second data transmission channel and institute
Target terminal is stated to carry out data transmission.
When carrying out data transmission, the unlatching situation of the wireless communication module by detecting target terminal automatically, and according to
Preset rules select a wireless communication module to be attached and data transmission, realization from multiple wireless communication modules of unlatching
The detection of module and the foundation of data transmission channel, data transmission are communicated wirelessly when carrying out data transmission automatically, from
And artificial cumbersome, the foolproof sharing data for being wirelessly connected setting is saved, it is convenient for the user to use;And feelings can be transmitted according to data
Condition communicates wirelessly the switching of module and data transmission channel automatically.
A kind of data transmission device, comprising:
Receiving module, for receiving data transmission instruction;
Selecting module, whether multiple wireless communication modules for detecting target terminal are separately turned on, if the multiple nothing
There is the wireless communication module opened in line communication module, is then selected from the wireless communication module of the unlatching according to preset rules
Select a wireless communication module;
Module is established, the wireless communication module for selecting with the selecting module establishes data transmission channel;
Transmission module, for enterprising in the data transmission channel for establishing module foundation according to the data transfer instruction
The transmission of row data.
Specifically, referring to Fig. 4, being somebody's turn to do for a kind of structural schematic diagram of data transmission device provided in an embodiment of the present invention
Device 1000 includes:
Receiving module 11, for receiving data transmission instruction.
Receiving module 11 receives the data transfer instruction inside user or device, and instruction is by device storage inside or plug-in deposits
Data in storage equipment are transferred to target terminal, which may, for example, be clicking operation or the user of user
Gesture operation etc..The data transfer instruction can be one, be also possible to separated multiple.
Selecting module 12, whether multiple wireless communication modules for detecting target terminal are separately turned on, if the multiple
There is the wireless communication module opened in wireless communication module, then according to preset rules from the wireless communication module of the unlatching
Select a wireless communication module.
Present terminal generally can be carried out various wireless communication, such as bluetooth, Wireless Fidelity Wi-Fi, closely without
Line communicate such as NFC, but since it is considered that terminal power consumption etc., these wireless communication modules be usually closing, but for
The wireless communication module that family is commonly used then may be always on.Therefore, selecting module 12 can pass through some channel radio
News module is attempted wireless communication module corresponding with target terminal and is communicated, to detect the wireless telecommunications of target terminal
Whether module opens, and whether the wireless communication module for detecting target terminal one by one is opened.
If detecting that target terminal has one or more wireless communication modules opened, due to various side wireless communications
There is the characteristic of transmission aspect in formula, if any communication exist to size of data to be transmitted, transmission range etc. it is certain
Limitation, selecting module 12 can according to preset rules from one or more wireless communication modules of unlatching select a channel radio
Interrogate module.
When specific implementation, selecting module 12 may include first detection unit and first selecting unit.
First detection unit, whether multiple wireless communication modules for detecting target terminal are separately turned on, if described more
There is the wireless communication module opened in a wireless communication module, then detect the size of data to be transmitted, and/or with the target
Transmission range between terminal.
There are one or more wireless communication modules opened if detecting in multiple wireless communication modules of target terminal,
It need to select a wireless communication module from this multiple wireless communication module according to preset rules, and preset rules and number to be transmitted
According to size or source terminal and target terminal between transmission range it is related, therefore, first detection unit needs to detect to be transmitted
Transmission range between the size and source terminal and target terminal of data, since data to be transmitted is stored in source terminal local
Or in plug-in storage equipment, therefore, the size of data to be transmitted can detecte, and can be whole using prior art detection source
Transmission range between end and target terminal, such as infrared technology.
First selecting unit, the size of the data to be transmitted for being detected according to the first detection unit, and/
Or the corresponding pass between the size of the transmission range and preset data to be transmitted, transmission range and wireless communication module
System selects a wireless communication module from the wireless communication module of the unlatching.
The size of each wireless communication module and data to be transmitted, transmission range there are preset corresponding relationship, if
Size of the size for the data to be transmitted that one detection unit detects in data to be transmitted corresponding with some wireless communication module
In the range of and/or transmission range in the range of transmission range corresponding with some wireless communication module, then first choice list
Member can be found corresponding according to the size and/or transmission range and the corresponding relationship of the data to be transmitted detected
Wireless communication module.
Module 13 is established, the wireless communication module for selecting with the selecting module establishes data transmission channel.
Transmission module 14, for according to the data transfer instruction it is described establish module foundation data transmission channel
Carry out data transmission.
After selecting module 12 chooses wireless communication module, establishes module 13 and pass through the wireless telecommunications that selecting module 12 selects
Module and target terminal establish data transmission channel, and the data transmission channel of different wireless communication modules, foundation may be different,
After establishing data transmission channel, the data transfer instruction that transmission module 14 is received according to receiving module transmits logical in the data
Carry out data transmission on road.
When receiving module receives data transfer instruction, selecting module detects the wireless communication module of target terminal automatically
Unlatching situation, and select a wireless communication module from multiple wireless communication modules of unlatching according to preset rules, and by
Establish module and transmission module be attached respectively with data transmit, realize and carry out channel radio automatically when carrying out data transmission
The detection of module and the foundation of data transmission channel, data transmission are interrogated, to save artificial cumbersome, the fool for being wirelessly connected setting
Formula sharing data, is convenient for the user to use.
Referring to Fig. 5, for the structural schematic diagram of another data transmission device provided in an embodiment of the present invention, the device
2000 include:
Receiving module 21, for receiving data transmission instruction.
Selecting module 22, whether multiple wireless communication modules for detecting target terminal are separately turned on, if the multiple
There is the wireless communication module opened in wireless communication module, then according to preset rules from the wireless communication module of the unlatching
Select a wireless communication module.
Module 23 is established, the wireless communication module for selecting with the selecting module establishes data transmission channel.
Transmission module 24, for according to the data transfer instruction it is described establish module foundation data transmission channel
Carry out data transmission.
For the present embodiment unlike embodiment illustrated in fig. 4, the present embodiment further includes wireless communication module and data transmission
The automatic switchover in channel, the function of other modules and the respective modules of embodiment illustrated in fig. 4 are identical, and details are not described herein.
5th detection unit 25, for detecting the message transmission rate on the data transmission channel.
5th detection unit 25 can also be real-time or be periodically detected on the data transmission channel for transmitting data
Message transmission rate, it is whether too small to understand current data transfer rate.
6th detection unit 26, if detecting the message transmission rate lower than default speed for the 5th detection unit
Rate, then detect whether the target terminal opens the second wireless communication module.
If the 5th detection unit 25 detects that the message transmission rate on present data transmission channel is lower than scheduled rate,
It indicates to be no longer appropriate for using current communication transmission data, then the 6th detection unit 26 further detects target terminal
Whether other wireless communication modules are opened.The detection can be the wireless telecommunications opened again through the process detection of trial
Module is also possible to check whether target terminal has other wireless telecommunications moulds of unlatching according to the result that first detection unit detects
Block.
If the module 23 of establishing is also used to the 6th detection unit to detect that the target terminal opens second wireless
Communication module then establishes the second data transmission channel with second wireless communication module.
The transmission module 24 is also used to carry out data biography by second data transmission channel and the target terminal
It is defeated.
If the 6th detection unit 26 detects other wireless communication modules of unlatching, module 23 and the wireless telecommunications are established
Module establishes new data transmission channel, and data transmission is switched to new number by original data transmission channel by transmission module 24
According in transmission channel, transmitted without cutting off original data.
When receiving module receives data transfer instruction, selecting module detects the wireless communication module of target terminal automatically
Unlatching situation, and select a wireless communication module from multiple wireless communication modules of unlatching according to preset rules, and by
Establish module and transmission module be attached respectively with data transmit, realize and carry out channel radio automatically when carrying out data transmission
The detection of module and the foundation of data transmission channel, data transmission are interrogated, to save artificial cumbersome, the fool for being wirelessly connected setting
Formula sharing data, is convenient for the user to use.
Referring to Fig. 6, being the structural schematic diagram of another data transmission device provided in an embodiment of the present invention, the device
3000 include:
Receiving module 31, for receiving data transmission instruction.
Selecting module 32, whether multiple wireless communication modules for detecting target terminal are separately turned on, if the multiple
There is the wireless communication module opened in wireless communication module, then according to preset rules from the wireless communication module of the unlatching
Select a wireless communication module.
In the present embodiment, selecting module 32 includes:
Second detection unit 321, for detecting whether the target terminal opens Wireless Fidelity communication module;
Second selecting unit 322, if detecting that the Wireless Fidelity communication module is opened for the second detection unit,
Then select the Wireless Fidelity communication module;
Third detection unit 323, if detecting that the Wireless Fidelity communication module is not opened for the second detection unit
It opens, then detects whether the target terminal opens close range wireless communication module;
Judging unit 324, if detecting that the close range wireless communication module is opened for the third detection unit,
Within a preset range whether the transmission range and size of data to be transmitted of judgement and the target terminal;
Third selecting unit 325, if judging the transmission range and size of data to be transmitted for the judging unit
In the preset range, then the close range wireless communication module is selected;
4th detection unit 326, if detecting the close range wireless communication module not for the third detection unit
It opens or the judging unit judges that the transmission range and size of data to be transmitted not in the preset range, are then examined
Survey whether the target terminal opens bluetooth module;
4th selecting unit 327, if detecting that the target terminal opens bluetooth module for the 4th detection unit,
Then select the bluetooth module.
Module 33 is established, establishes data transmission channel for the wireless communication module with selection.
Transmission module 34, for being carried out data transmission on the data transmission channel according to the data transfer instruction.
The present embodiment is related to three wireless communication modules, i.e., Wireless Fidelity communication module, close range wireless communication module and
Bluetooth module, according to the superiority and inferiority of each communication, when detecting the wireless communication module of unlatching, to three wireless telecommunications moulds
Block has the sequencing of a detection, if detecting that source terminal and target terminal can carry out Wireless Fidelity Wi-Fi communication,
Carried out data transmission with target terminal by Wi-Fi, this is because Wi-Fi communication transfer speeds are very fast, the data packet of transmission is big
It is small unlimited, usually speed biggish data can be transmitted faster, it is therefore preferable that Wi-Fi is transmitted;And if detecting target end
Wireless Fidelity communication module is not opened at end, then next whether detection target terminal opens close range wireless communication module, low coverage
From wireless communication module such as NFC module, but close range wireless communication modes have the distance of transmission and the size of data to be transmitted
Certain limitation, therefore, if target terminal has turned on close range wireless communication module, also need detection transmit distance and to
Transmit data size whether all within a preset range, if target terminal does not open close range wireless communication module, although or
The size of the distance or data to be transmitted that open close range wireless communication module, but transmit within a preset range, then cannot not
Selection close range wireless communication modes carry out data transmission, such as NFC is suitable only for transmitting lesser data, such as a network address,
A string of texts etc., but NFC pairing is most fast;Finally, detecting whether target terminal opens bluetooth module again, opened if detected
Bluetooth module can carry out Bluetooth communication.
Optionally, the present embodiment may also include that
5th detection unit, for detecting the message transmission rate on the data transmission channel;
6th detection unit, if detecting the message transmission rate lower than default speed for the 5th detection unit
Rate, then detect whether the target terminal opens the second wireless communication module;
If the module 33 of establishing is also used to the 6th detection unit to detect that the target terminal opens second wireless
Communication module then establishes the second data transmission channel with second wireless communication module;
The transmission module 34 is also used to carry out data biography by second data transmission channel and the target terminal
It is defeated.
When receiving module receives data transfer instruction, selecting module detects the wireless communication module of target terminal automatically
Unlatching situation, and select a wireless communication module from multiple wireless communication modules of unlatching according to preset rules, and by
Establish module and transmission module be attached respectively with data transmit, realize and carry out channel radio automatically when carrying out data transmission
The detection of module and the foundation of data transmission channel, data transmission are interrogated, to save artificial cumbersome, the fool for being wirelessly connected setting
Formula sharing data, is convenient for the user to use.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with
It is realized with hardware realization or firmware realization or their combination mode.It when implemented in software, can be by above-mentioned function
Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.Meter
Calculation machine readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another
Any medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.With
For this but be not limited to: computer-readable medium may include random access memory (Random Access Memory,
RAM), read-only memory (Read-Only Memory, ROM), Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, magnetic disk storage medium or other magnetic storage apparatus or can be used in
Carry or storage have instruction or data structure form desired program code and can by computer access any other
Medium.Furthermore.Any connection appropriate can become computer-readable medium.For example, if software is using coaxial cable, light
Fine optical cable, twisted pair, Digital Subscriber Line (Digital Subscriber Line, DSL) or such as infrared ray, radio and
The wireless technology of microwave etc is transmitted from website, server or other remote sources, then coaxial cable, optical fiber cable, double
The wireless technology of twisted wire, DSL or such as infrared ray, wireless and microwave etc includes in the fixing of affiliated medium.Such as this hair
Used in bright, disk (Disk) and dish (disc) include compress optical disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD),
Floppy disk and Blu-ray Disc, the usually magnetic replicate data of which disk, and dish is then with laser come optical replicate data.Group above
Conjunction should also be as including within the protection scope of computer-readable medium.
In short, being not intended to limit of the invention the foregoing is merely the preferred embodiment of technical solution of the present invention
Protection scope.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in
Within protection scope of the present invention.
Claims (2)
1. a kind of data transmission method characterized by comprising
Receive data transfer instruction;
Whether multiple wireless communication modules of detection target terminal are separately turned on, and open if existing in the multiple wireless communication module
The wireless communication module opened then selects a wireless telecommunications mould according to preset rules from the wireless communication module of the unlatching
Block;
Data transmission channel is established with the wireless communication module of selection, and is transmitted according to the data transfer instruction in the data
Carry out data transmission on channel;
Whether multiple wireless communication modules of the detection target terminal are separately turned on, if depositing in the multiple wireless communication module
In the wireless communication module of unlatching, then a wireless telecommunications are selected from the wireless communication module of the unlatching according to preset rules
Module, comprising:
The wireless communication module opened by one is attempted wireless communication module corresponding with target terminal and is communicated, thus
Whether the wireless communication module of detection target terminal is opened, and the other wireless communication modules for detecting target terminal one by one are
No unlatching;
Detect the size of data to be transmitted, and/or the transmission range between the target terminal;
According to the size of the data to be transmitted detected and/or the transmission range and preset data to be transmitted
Corresponding relationship between size, transmission range and wireless communication module selects one from the wireless communication module of the unlatching
Wireless communication module;
The wireless communication module with selection establishes data transmission channel, and according to the data transfer instruction in the data
Carry out data transmission in transmission channel include:
The message transmission rate on the data transmission channel is detected, if the message transmission rate is lower than scheduled rate, is examined
Survey whether the target terminal opens the second wireless communication module, if so, establishing second with second wireless communication module
Data transmission channel;
Carried out data transmission by second data transmission channel with the target terminal;
The wireless communication module opened by one is attempted wireless communication module corresponding with target terminal and is communicated,
To detect whether the wireless communication module of target terminal is opened, and other wireless telecommunications moulds of target terminal are detected one by one
Whether block is opened, comprising:
Detect whether the target terminal opens Wireless Fidelity communication module, if so, selecting the Wireless Fidelity communication module;
If it is not,
Then detect whether the target terminal opens close range wireless communication module, if so, judgement and the target terminal
Transmission range and size of data to be transmitted whether within a preset range, if the transmission range and size of data to be transmitted exist
In the preset range, then the close range wireless communication module is selected;
If not opening the close range wireless communication module or the transmission range and size of data to be transmitted not described pre-
If in range, then detecting whether the target terminal opens bluetooth module, if so, selecting the bluetooth module.
2. a kind of data transmission device characterized by comprising
Receiving module, for receiving data transmission instruction;
Selecting module, whether multiple wireless communication modules for detecting target terminal are separately turned on, if the multiple channel radio
The wireless communication module for existing in module and opening is interrogated, then selects one from the wireless communication module of the unlatching according to preset rules
A wireless communication module;
Module is established, the wireless communication module for selecting with the selecting module establishes data transmission channel;
Transmission module, for according to the data transfer instruction it is described establish module foundation the enterprising line number of data transmission channel
According to transmission;
The selecting module includes:
First detection unit, for attempting wireless telecommunications corresponding with target terminal by the wireless communication module of a unlatching
Module is communicated, so that whether the wireless communication module for detecting target terminal is opened, and detects target terminal one by one
Whether other wireless communication modules are opened;And the size of data to be transmitted is detected, and/or the transmission between the target terminal
Distance;
First selecting unit, the size of the data to be transmitted for being detected according to the first detection unit and/or institute
The corresponding relationship between the size, transmission range and wireless communication module of transmission range and preset data to be transmitted is stated, from
A wireless communication module is selected in the wireless communication module of the unlatching
5th detection unit, for detecting the message transmission rate on the data transmission channel;
6th detection unit, if detecting that the message transmission rate is lower than scheduled rate for the 5th detection unit,
Detect whether the target terminal opens the second wireless communication module;
If it is described establish module and be also used to the 6th detection unit detect that the target terminal opens the second wireless telecommunications mould
Block then establishes the second data transmission channel with second wireless communication module;
The transmission module is also used to carry out data transmission by second data transmission channel with the target terminal;
The selecting module includes:
Second detection unit, for detecting whether the target terminal opens Wireless Fidelity communication module;
Second selecting unit selects if detecting that the Wireless Fidelity communication module is opened for the second detection unit
The Wireless Fidelity communication module;
Third detection unit is examined if detecting that the Wireless Fidelity communication module is not opened for the second detection unit
Survey whether the target terminal opens close range wireless communication module;
Judging unit, if detecting that the close range wireless communication module is opened for the third detection unit, judgement with
Within a preset range whether the transmission range of the target terminal and size of data to be transmitted;
Third selecting unit, if judging the transmission range and size of data to be transmitted described pre- for the judging unit
If in range, then selecting the close range wireless communication module;
4th detection unit, if detect that the close range wireless communication module is not opened for the third detection unit, or
The judging unit judges that the transmission range and size of data to be transmitted not in the preset range, then detect the mesh
Whether mark terminal opens bluetooth module;
4th selecting unit selects if detecting that the target terminal opens bluetooth module for the 4th detection unit
The bluetooth module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510396881.8A CN105072560B (en) | 2015-07-07 | 2015-07-07 | A kind of data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510396881.8A CN105072560B (en) | 2015-07-07 | 2015-07-07 | A kind of data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105072560A CN105072560A (en) | 2015-11-18 |
CN105072560B true CN105072560B (en) | 2019-05-17 |
Family
ID=54501815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510396881.8A Active CN105072560B (en) | 2015-07-07 | 2015-07-07 | A kind of data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105072560B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681728B (en) * | 2016-02-19 | 2019-12-17 | 华为技术有限公司 | Video processing method and device |
CN107318168B (en) * | 2017-06-21 | 2020-07-24 | 深圳市盛路物联通讯技术有限公司 | Method and system for controlling communication of terminal equipment of Internet of things |
EP3852341B1 (en) | 2020-01-20 | 2023-08-30 | Shenzhen Transsion Holdings Co., Ltd. | Information sharing method, device and non-transitory computer readable storage medium thereof |
CN111327517A (en) * | 2020-01-20 | 2020-06-23 | 深圳传音控股股份有限公司 | Information sharing method, terminal and readable storage medium |
CN115052184A (en) * | 2022-06-02 | 2022-09-13 | 北京达佳互联信息技术有限公司 | Content sharing method and device, electronic equipment, storage medium and program product |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN103428672A (en) * | 2013-08-19 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for transmitting data |
CN103781187A (en) * | 2012-10-19 | 2014-05-07 | 华为终端有限公司 | File transmission controlling method and terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101754421A (en) * | 2009-12-23 | 2010-06-23 | 宇龙计算机通信科技(深圳)有限公司 | File transmission method based on Bluetooth transmission protocol, system and mobile terminal |
JP5177911B2 (en) * | 2010-05-06 | 2013-04-10 | Necアクセステクニカ株式会社 | Wireless communication device management method and wireless communication device |
-
2015
- 2015-07-07 CN CN201510396881.8A patent/CN105072560B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN103781187A (en) * | 2012-10-19 | 2014-05-07 | 华为终端有限公司 | File transmission controlling method and terminal |
CN103428672A (en) * | 2013-08-19 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for transmitting data |
Also Published As
Publication number | Publication date |
---|---|
CN105072560A (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105072560B (en) | A kind of data transmission method and device | |
CN108966307A (en) | A kind of method, apparatus and communication terminal of data transmission | |
CN104301905B (en) | Smart home ad hoc network method based on supervision of election strategy and system | |
CN108733005A (en) | A kind of method and device of control smart machine linkage | |
CN107155204B (en) | Bluetooth and Wifi switching method and system | |
CN105828402B (en) | A kind of blind reorientation method and core net, base station | |
CN108770008A (en) | Configuration method, device and the storage medium that household appliance networks | |
CN105357116A (en) | Method of multiple terminals for accessing server and intelligent terminal | |
CA2934967C (en) | Techniques for optimizing a mesh network | |
CN105792099B (en) | Neighbouring heuristic approach | |
CN109041140A (en) | It is switched fast wireless network methods, Intelligent hardware and terminal device | |
CN107370685A (en) | A kind of internet-of-things terminal cut-in method and device | |
CN107820289A (en) | A kind of WIFI network switching method, device, terminal and medium | |
CN110505712A (en) | A kind of method and terminal for transmitting file | |
CN105848235A (en) | Communication control method and device | |
CN104881015B (en) | A kind of information processing method and smart home control device | |
CN105320433B (en) | The short distance data transmission method and its mobile terminal of mobile terminal | |
CN111314185A (en) | Ad hoc network method, ad hoc network response method, controlled equipment and gateway | |
CN104601658A (en) | Data download method, device and system | |
CN109219155A (en) | Connection status optimization in mobile environment equipment | |
CN111698736A (en) | Intelligent household electrical appliance network switching method and device, computer equipment and server | |
CN205051434U (en) | Automatic communication control system of power distribution network | |
CN108346274A (en) | Detect method, apparatus, remote controler, UAV system and the medium of unmanned plane | |
CN106506504A (en) | A kind of intelligent protocol conversion method and device | |
CN111246400A (en) | Signal quality detection method, device, storage medium, electronic device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building Patentee after: MEIZU TECHNOLOGY Co.,Ltd. Address before: 519080 Technology Innovation Coast Meizu science and technology building, Xiangzhou District, Zhuhai, Guangdong Patentee before: Meizu Technology (China) Co.,Ltd. |