CN107222847B - Data transmission method, device and terminal - Google Patents

Data transmission method, device and terminal Download PDF

Info

Publication number
CN107222847B
CN107222847B CN201710495966.0A CN201710495966A CN107222847B CN 107222847 B CN107222847 B CN 107222847B CN 201710495966 A CN201710495966 A CN 201710495966A CN 107222847 B CN107222847 B CN 107222847B
Authority
CN
China
Prior art keywords
terminal
connection
target
target terminal
parameters
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.)
Expired - Fee Related
Application number
CN201710495966.0A
Other languages
Chinese (zh)
Other versions
CN107222847A (en
Inventor
李海泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710495966.0A priority Critical patent/CN107222847B/en
Publication of CN107222847A publication Critical patent/CN107222847A/en
Application granted granted Critical
Publication of CN107222847B publication Critical patent/CN107222847B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters

Abstract

The embodiment of the invention discloses a data transmission method, a device and a terminal, wherein the method comprises the following steps: establishing a first connection with each terminal in the target terminal set; when user data needs to be sent to each terminal in a target terminal set, acquiring connection information of each terminal in the target terminal set through first connection established between each terminal in the target terminal set and each terminal; acquiring transmission capability parameters of each terminal in the target terminal set according to the connection information; selecting a second terminal according to the transmission capability parameters of each terminal; and establishing a second connection with the second terminal, and transmitting the user data through the second connection, wherein the second connection comprises a transmission channel different from the first connection, and the transmission rate of the terminal can be improved.

Description

Data transmission method, device and terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, an apparatus, and a terminal.
Background
Currently, terminals (such as smart phones, tablet computers, wearable devices, etc.) have become indispensable communication tools for people.
Data, such as files, pictures, videos, etc., often need to be transmitted between terminals. Before transmitting data, the terminal needs to establish a data connection in order to transmit data over the data connection. Therefore, how to better and efficiently transmit data through a communication connection between terminals becomes a hot point of research.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a data transmission device and a terminal, which can improve the transmission efficiency of the terminal.
A first aspect of an embodiment of the present invention provides a terminal connection method, which is applied to a first terminal, and includes:
establishing a first connection with each terminal in the target terminal set;
when user data needs to be sent to each terminal in a target terminal set, acquiring connection information of each terminal in the target terminal set through first connection established between each terminal in the target terminal set and each terminal;
acquiring transmission capability parameters of each terminal in the target terminal set according to the connection information;
selecting a second terminal according to the transmission capability parameters of each terminal;
and establishing a second connection with the second terminal, and transmitting the user data through the second connection, wherein the second connection comprises a transmission path different from the first connection.
In a second aspect, an embodiment of the present invention further provides a data transmission apparatus, including:
the establishing module is used for establishing first connection with each terminal in the target terminal set;
the first acquisition module is used for acquiring the connection information of each terminal in a target terminal set through first connection established between the first acquisition module and each terminal in the target terminal set when user data needs to be sent to each terminal in the target terminal set;
the second acquisition module is used for acquiring the transmission capability parameters of all the terminals in the target terminal set according to the connection information;
the processing module is used for selecting a second terminal according to the transmission capability parameters of each terminal;
the establishing module is further configured to establish a second connection with the second terminal;
the processing module is further configured to transmit the user data over a second connection, where the second connection includes a transmission path different from the first connection.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a communication interface, an output device, and a memory, where the processor, the communication interface, the output device, and the memory are connected to each other, where the memory is used to store an application program code that supports the terminal to execute the foregoing method, and the processor is configured to execute the foregoing method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture for data transmission processing according to an embodiment of the present invention
Fig. 2 is a schematic diagram of another network architecture for data transmission processing according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a data transmission method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating another data transmission method according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a further data transmission method according to another embodiment of the present invention;
fig. 7 is a schematic block diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described below with reference to the accompanying drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a network architecture for data transmission processing according to an embodiment of the present invention. Data transmission between terminals is often required by establishing a direct communication connection. The embodiment of the present invention takes two terminals as an example, the network architecture includes a first terminal 101 and a second terminal 102, the first terminal 101 and the second terminal 102 may interact with related data through a first connection and a second connection, and both the first connection and the second connection may be direct connection communication connections. The direct communication connection refers to a connection between the first terminal and the second terminal for direct communication without the aid of a third-party device.
The first terminal 101 and the second terminal 102 may be various types of smart terminals, for example, smart phones, tablet computers, wearable devices, computers, Personal Digital Assistants (PDAs), Mobile Internet Devices (MIDs), and other terminals capable of performing data transmission with other terminals. The second terminal 102 may be a terminal determined from the set of target terminals.
It should be noted that the energy consumption value of the first connection during data interaction may be smaller than the energy consumption value of the second connection during data interaction, or the energy consumption value of the first connection during data interaction may be smaller than the energy consumption value of the terminal and the terminal during data interaction for establishing the second connection.
For convenience of understanding, in the embodiment of the present invention, the first connection is described by taking a bluetooth connection as an example, but in other embodiments, the first connection may also be other connections similar to the bluetooth connection, for example, an NFC connection, and the present invention is not limited in this respect.
Similarly, the second connection may be a WiFi connection in the embodiment of the present invention, but in other embodiments, the first connection may also be another connection similar to the WiFi connection and different from the first connection, which is not limited in this respect.
The first terminal 101 and the second terminal 102 may first establish a first connection, and interact connection data of a second connection on the basis of the first connection, where the connection data may include data such as a user name and an access password of a WiFi hotspot, and based on the second connection data, the first terminal 101 and the second terminal 102 may establish the second connection. The first terminal 101 may actively turn on the WiFi hotspot function of the first terminal 101 after establishing the first connection, so as to establish a second connection with the second terminal 102, or may trigger the second terminal 102 to turn on the WiFi hotspot function through the first connection, so that the first terminal 101 accesses the second terminal 102 to complete establishment of the second connection.
In an embodiment, as shown in fig. 1, when a user of a first terminal 101 needs to transmit user data to a second terminal 102, a direct connection communication button for managing a transmission mode on the first terminal 101 may be configured on the first terminal 101, and after the direct connection communication mode of the first terminal 101 is started by clicking the button, the first terminal 101 may automatically start a first transmission function corresponding to bluetooth and a second transmission function corresponding to WiFi. Similarly, the user of the second terminal 102 may also turn on a direct connection communication button of the second terminal 102, and automatically turn on a first transmission function corresponding to bluetooth and a second transmission function corresponding to WiFi. Then, the user of the first terminal 101 may determine the second terminal 102 from at least one terminal scanned by the first terminal 101 through bluetooth, and the first terminal 101 establishes the bluetooth connection with the second terminal 102.
In one embodiment, when the second connection needs to be established, the first terminal 101 may also first detect its own power value, and if the power value is greater than a preset percentage (e.g., 90%) of the power, the first terminal 101 may also directly establish the WiFi connection. If the power value is less than or equal to the preset percentage of the power (e.g., 90%), the first terminal 101 may first establish the bluetooth connection and then establish a WiFi connection based on the bluetooth connection to complete the establishment of the second connection.
In one embodiment, the first terminal 101 may interact with the second terminal 102 through the bluetooth connection to establish connection data of a WiFi connection, and after the connection data is interacted, the first terminal 101 and the second terminal 102 may establish the WiFi connection according to the connection data. The first terminal 101 and the second terminal 102 may then transmit the user data over the WiFi connection.
Therefore, the embodiment of the invention can interact the connection data for establishing the WiFi connection (i.e. the second connection) through the Bluetooth connection (i.e. the first connection), the connection data can be, for example, the user name and the access password of the terminal which is a WiFi hotspot, and then the WiFi connection (i.e. the second connection) is established according to the connection data, so that the energy consumption of the terminal is saved to a certain extent, the WiFi connection (i.e. the second connection) can ensure a faster transmission speed, and meanwhile, the transmission efficiency of the terminal in transmitting the user data is also improved.
Please refer to fig. 2, which is a schematic diagram of a network architecture for data transmission processing according to the present invention. In the embodiment of the present invention, for example, a first terminal needs to send user data to five target terminals, and the network architecture includes a first terminal 201 and a target terminal set 202.
In this embodiment of the present invention, the target terminal set 202 includes 5 target terminals, which are target terminal 01, target terminal 02, target terminal 03, target terminal 04, and target terminal 05, but this does not mean that in other possible embodiments, the number of the target terminals is fixed to 5, and in other embodiments, for example, the number of the target terminals may also be 10, 20, and the like, which is not limited in this invention.
In some cases, a certain terminal connected first by the first terminal 201 performs data transmission, but the terminal connected to the first terminal may have limited transmission capability, so that when the terminal connected first transmits data, the transmission speed is slow and the time consumption is long, and thus the waiting time of other terminals is correspondingly prolonged, and the data transmission efficiency is reduced.
In the embodiment of the present invention, the first terminal 201 may respectively establish direct communication connections with the target terminal 01, the target terminal 02, the target terminal 03, the target terminal 04, and the target terminal 05, for example, establish a WiFi P2P communication connection, or use the first terminal 201 as a WiFi hotspot, and access other terminals to the hotspot, so as to implement direct communication between each terminal and the first terminal 201; or the first terminal 201 establishes direct communication connection with each target terminal through near field communication such as bluetooth, infrared, NFC, and the like.
In one embodiment, the first terminal 201 may receive an operation of a user to turn on an integrated switch, which may be used to turn on all transmission modes (e.g., bluetooth, WiFi, etc.) of the first terminal 201 for establishing the first connection and the second connection. After the integrated switch is turned on according to the operation, the first terminal 101 may scan terminals that are within a scanning range and that have a direct communication function turned on. The first terminal 101 displays the scanned terminal in a list item on a display interface, and when a selection operation of a user on the list item is received, a target terminal set in the list item is determined according to the selection operation.
The list item may include the terminal scanned by the first terminal 201 and the transmission speed identifier corresponding to each scanned terminal. The transmission speed flag may indicate how fast the transmission speed of the scanned terminal is.
In an embodiment, when the first terminal 201 needs to send the user data to the target terminals in the target set, the connection may be established and the user data may be sent according to the time sequence of receiving the connection requests of the target terminals, that is, the first terminal 201 first receives the connection request of which target terminal, and first establishes a connection with which target terminal, and transmits the user data according to the connection.
In one embodiment, when the first terminal 201 needs to send user data to 5 target terminals in the set of target terminals 201, first, a current data transmission state of the first terminal 201 itself is detected, and if the data transmission state cannot support the first terminal to simultaneously perform group sending of user data to the 5 target terminals (for example, terminal number limitation during group sending, etc.), connection information corresponding to each of the 5 target terminals is obtained.
The connection information may include respective corresponding second connection signal strengths (for example, respective corresponding signal strengths when bluetooth connections are established with the 5 target terminals) between the first terminal 201 and the 5 target terminals in the target terminal set 202, respective corresponding physical channel identifiers of the 5 target terminals, and respective corresponding system information of the 5 terminals.
In one embodiment, the first terminal 201 may use the second connection signal strength as a main parameter, and obtain the respective corresponding second connection signal strengths between the 5 target terminals in the target terminal set 202. The first terminal 201 first determines an initial transmission capability parameter corresponding to each of the 5 target terminals according to the second connection signal strength, and if the initial transmission capability parameter meets a preset difference condition, the initial transmission capability parameter may be directly used as the transmission capability parameter corresponding to each of the 5 target terminals.
In an embodiment, if the initial transmission capability parameter does not satisfy the preset difference condition, the first terminal 101 may obtain auxiliary parameters such as the physical channel identifier and the system information from the connection information, and determine the transmission capability parameters corresponding to the 5 target terminals according to the main parameter and the auxiliary parameter.
In one embodiment, the determining whether the initial transmission capability parameter satisfies the preset difference condition may be sorting the initial transmission capability parameters. If the sorting result indicates that the differences between the initial transmission capability parameters adjacent to the sorting position are within the preset range, the first terminal 201 may determine that the initial transmission capability parameters do not satisfy the preset difference condition. If the sorting result indicates that some or all of the differences between the initial transmission capability parameters adjacent to the sorting position are not within the preset range, the first terminal 201 may determine that the initial transmission capability parameters satisfy the preset difference condition.
In an embodiment, the first terminal 201 may obtain the corresponding weighting factor, for example, 5, using the second connection signal strength as a main parameter; then, the first terminal 201 may use the physical channel identifier and the system information as auxiliary parameters and obtain their respective corresponding weighting coefficients, for example, the weighting coefficient of the physical channel identifier is 4.
The first terminal may determine the system type and the system version number according to the system information. In one embodiment, if the system type and the system version number of the target terminal 01 are the same as those of the first terminal 201, the weighting coefficient of the system information of the target terminal 01 may be 3; if the system type of the target terminal 02 is different from that of the first terminal 201, the weighting factor of the system information of the target terminal 02 may be 2.
In an embodiment, the first terminal performs a weighted calculation on the 5 target terminals according to the connection information of each of the 5 target terminals and a weighting coefficient corresponding to the connection information, for example, a formula of the weighted calculation is a composite score ═ second rssi × 5+ pdcch id × 4+ system information × 3, and obtains a composite score of each of the 5 target terminals, thereby determining a transmission capability parameter of each of the five target terminals. For example, the target terminal 01 has a composite score of 80, a transmission level of B, the target terminal 02 has a composite score of 70, a transmission level of C, the target terminal 03 has a composite score of 82, a transmission level of B, the target terminal 04 has a composite score of 60, a transmission level of D, the target terminal 04 has a composite score of 90, and a transmission level of a. The composite score may be used directly as a transmission capability parameter or the transmission rank may be used as a transmission capability parameter.
In one embodiment, the first terminal 201 may select the target terminal with the transmission level B or higher as the second terminal, that is, the target terminal 01, the target terminal 03, and the target terminal 04 are all the second terminals, and then the terminal may establish a second connection (for example, a bluetooth connection, etc.) with the 3 second terminals respectively and transmit the user data over the second connection. After the user data of the second terminal is transmitted, the first terminal 201 establishes a connection with the target terminal 02 and the target terminal 05, and transmits the user data.
In one embodiment, the first terminal 201 may select the second terminal from high to low according to the composite score, or select the target terminal with the composite score in a certain score range as the second terminal. For example, the first terminal 201 may select a target terminal with a score range of 80 or more as the second terminal, or the first terminal may sequentially select the second terminals within the limit of the number of terminals of the first terminal during the mass texting according to the composite score from high to low.
Fig. 3 is a flowchart illustrating a data transmission method provided on the basis of the network architecture for data transmission processing shown in fig. 2 according to an embodiment of the present invention. The data transmission method shown in fig. 3 includes the following steps:
s201, when user data needs to be sent to each terminal in a target terminal set, a first terminal acquires connection information of each terminal in the target terminal set through first connection established between the first terminal and each terminal in the target terminal set.
It should be noted that the user data may be documents, photos, videos, audios, address books, network addresses, and the like. The first terminal supports sending the user data, and the first terminal can send the user data to each terminal in the target terminal set.
It should be noted that, before user data needs to be sent to each terminal in the target terminal set, the first terminal may also establish a first connection with each terminal in the target terminal set.
Optionally, before the first terminal acquires the connection information of each terminal through the first connection established between the first terminal and each terminal in the target terminal set when the first terminal needs to send user data to each terminal in the target terminal set, the method may further include: scanning a terminal which is in a scanning range of the first terminal and has a direct connection communication function; displaying a terminal list in a display interface, wherein list items of the terminal list comprise a terminal identifier scanned by the first terminal and a transmission speed identifier; receiving selection operation on the list item, and determining a target terminal set in the list item according to the selection operation
The first connection may be a direct connection communication connection, for example, establishing WiFi P2P communication, or taking the first terminal as a WiFi hotspot, and accessing other terminals to the hotspot, so as to implement direct connection communication between each terminal and the first terminal; or the first terminal establishes direct communication connection with each target terminal through near field communication such as Bluetooth, infrared and NFC.
In a specific implementation, the first terminal may be preset with an integrated switch, and the integrated switch may be used to turn on the first terminal portion or all transmission modes (e.g., bluetooth, WiFi, etc.). When receiving an operation of opening the integrated switch by a user, the first terminal automatically starts a transmission mode of the first connection and a transmission mode of the second connection, and can scan the terminal which is in a scanning range and also starts a direct connection communication function.
In one embodiment, the first terminal displays the scanned terminal in a list item on a display interface, and when a selection operation of a user on the list item is received, a target terminal set in the list item is determined according to the selection operation.
The list item may include terminals scanned by the first terminal and transmission speed identifiers corresponding to the scanned terminals. The transmission speed identifier may be used to indicate the speed of the scanned terminal, and the user may know the transmission speed of the scanned terminal according to the transmission speed identifier.
The user data sent by the first terminal to each terminal in the target terminal set may be the same data or different data, which is not limited herein.
The connection information may include a terminal identifier of each terminal, system information of each terminal, a signal strength of a transmission data connection (i.e., a second connection) established by each terminal in advance, a physical channel parameter (which may include a physical channel identifier, a physical channel transmission rate, interference-free information, and the like) of each terminal, and the like.
S102, the first terminal acquires the transmission capability parameters of all terminals in the target terminal set according to the connection information.
It should be noted that, the first terminal may perform a comprehensive score on each terminal in the target terminal set according to the connection information, and then determine, according to which transmission capability parameter range the comprehensive score falls in, a terminal corresponding to the comprehensive score as the transmission capability parameter. For example, the transmission capability parameter a ranges from 90 to 100 points of the composite score, the transmission capability parameter B ranges from 80 to 89 points of the composite score, the transmission capability parameter C ranges from 70 to 79 points of the composite score, and so on, if the composite score of a certain terminal in the target terminal set is 95 points, the transmission capability parameter corresponding to the certain terminal is a.
Specifically, the specific manner in which the first terminal performs the comprehensive rating on each terminal in the target terminal set according to the connection information may be that, according to each parameter in the connection information of each terminal, the first terminal performs weighting calculation according to a weighting coefficient corresponding to each parameter, so as to obtain the comprehensive rating of each terminal.
S103, the first terminal selects a second terminal according to the transmission capability parameters of all the terminals, and transmits the user data through a second connection.
Wherein the second connection comprises a different transmission path than the first connection.
Before transmitting the user data through the second connection, the first terminal may also establish the second connection with the second terminal.
It should be noted that the first connection and the second connection may be connections established based on different transmission modes, for example, the first connection is a bluetooth connection based on a bluetooth transmission mode, and the second connection is a WiFi connection established based on a transmission mode of a WiFi hotspot.
It should be further noted that the second connection may be a connection newly established with the second terminal according to the connection parameters of the first connection interaction after the second terminal is selected by the first terminal.
In a specific implementation, the first terminal may select a terminal with a transmission capability parameter within a preset level range from the target terminal set as the second terminal, and then may simultaneously establish a second connection with the second terminal, and transmit user data over the second connection, so as to improve the transmission rate of the first terminal.
The first terminal may determine a preset level range according to the transmission capability parameter of each terminal, where the preset level range may be a level range set by a user or a level range defaulted by the terminal. For example, if the predetermined rank range is B or higher, the first terminal may select a terminal with transmission capability parameters above B and B as the second terminal from the target terminal set.
In some possible embodiments, if the number of the second terminals exceeds the highest number of terminals that the first terminal presets to transmit data at the same time, the first terminal may preferentially select the second terminal with the higher composite score and transmit the user data through the second connection. Or, if the number of the second terminals exceeds the maximum number of terminals preset by the first terminal when data is simultaneously transmitted, the first terminal may also randomly select the terminal with the maximum number of terminals from the second terminals, and transmit the user data through the second connection.
Wherein, the above-mentioned comprehensive score can also be directly used as a transmission capability parameter, or the above-mentioned transmission grade can be used as a transmission capability parameter.
In the embodiment of the invention, when the first terminal needs to send the user data to each terminal in the target terminal set, the second terminal is selected from the target terminal set according to the transmission capability parameters of each terminal, and the user data is transmitted through the second connection.
Please refer to fig. 4, which is a flowchart illustrating another data transmission method according to an embodiment of the present invention. The data transmission method shown in fig. 4 includes the following steps:
s401, when the first terminal needs to send user data to each terminal in the target terminal set, the current data transmission state is detected.
It should be noted that the current data transmission state detected by the first terminal may be a traffic value required by the first terminal to transmit the user data, or the number of terminals when the first terminal may need to transmit data simultaneously.
S402, when the current data transmission state does not meet the preset group sending condition, the first terminal acquires the connection information of each terminal through the first connection established between the first terminal and each terminal in the target terminal set.
It should be noted that the preset mass sending condition may be set by the user or may be defaulted by the first terminal. Specifically, the preset group sending condition may be that the number of the terminals accessed in the group sending is not more than 5, or may also be that the total flow rate value in the group sending is not more than 100M, and the like, and of course, the value of this example may be adjusted due to the performance of the first terminal, and is not limited herein.
Specifically, the first terminal may first determine whether the current data state meets a preset group sending condition. If the current data state does not meet the preset group sending condition, the first terminal can acquire the connection information of each terminal through the first connection established between the first terminal and each terminal in the target terminal set; if the current data state meets the preset group sending condition, the first terminal can establish a second connection with each terminal in the target terminal set, and transmit user data on the second connection.
For example, the first terminal may detect that the number of terminals in the current data transmission state is 6 when data may need to be simultaneously transmitted, and then the number of terminals accessed during group transmission preset by the first terminal cannot exceed 5, at this time, the first terminal may determine that the current data transmission state does not satisfy the preset condition, and may obtain connection information of each terminal through a first connection established with each terminal in the target terminal set.
The connection information may include a primary parameter and a secondary parameter.
Optionally, the first terminal may obtain, according to the connection information, transmission capability parameters of each terminal in the target terminal set, where the transmission capability parameters include: acquiring main parameters from the connection information; determining initial transmission capacity parameters of each terminal according to the obtained main parameters; if the initial transmission capability parameter meets the preset difference condition, taking the initial transmission capability parameter as the transmission capability parameter of each corresponding terminal; if the initial transmission capability parameter does not meet the preset difference condition, acquiring an auxiliary parameter from the connection information; and determining the transmission capability parameters of each corresponding terminal according to the main parameters and the auxiliary parameters.
For example, the first terminal may first obtain the main parameter from the connection information, then may directly use the main parameter as an initial transmission capability parameter of each terminal, then sequence the initial transmission capability parameters, then perform difference operation on the initial transmission capability parameters at adjacent positions according to the sequenced positions, if the differences obtained by the operation are all within a preset range, the first terminal may consider that the initial transmission capability parameters are not enough to judge the transmission capability of the corresponding terminal, may then obtain the auxiliary parameters of each terminal in the target terminal set, and determine the transmission capability parameters of each corresponding terminal according to the main parameter and the auxiliary parameters.
In some possible embodiments, if part or all of the calculated difference is not within the preset range, the first terminal may regard the main parameter as being sufficient to determine the transmission capability of the corresponding terminal, may directly take the initial transmission capability parameter as the transmission capability parameter, and directly perform step S306.
Optionally, the main parameter may include respective corresponding second connection signal strengths between the first terminal and each terminal in the target terminal set; the auxiliary parameters may include system information and/or physical channel identifiers of the respective terminals in the target terminal set.
For example, when there is a channel identifier of the indicated WiFi 5G frequency and there is a channel identifier type of the indicated WiFi 2.4G frequency in the physical channel identifier, the first terminal may directly use the channel identifier of the indicated WiFi 5G frequency as the physical channel identifier in the auxiliary parameters, and select a higher first weighting coefficient for the auxiliary parameters of the physical channel identifier of the target terminal. In other embodiments, this may also be determined as shown in FIG. 5 below.
It should be noted that the second connection signal strength may be a signal strength when the first terminal establishes a second connection with each terminal in the target terminal set, and the signal strength may be represented by a specific value, for example, 3,5,10, etc., and the higher the signal strength is, the larger the data is.
It should be noted that the system information may be information of the system of each terminal in the target terminal set, and may include, for example, a system type, a system version number, and the like.
It should be further noted that the physical channel identifier may be a physical channel identifier that is respectively and correspondingly matched with each terminal in the target terminal set. The physical channel identifier may be multiple for each terminal in the target terminal set, and the first terminal may obtain one of the physical channel identifiers from the multiple physical channel identifiers as an auxiliary parameter of the connection information, which may be specifically described in fig. 5:
s501, channel evaluation scoring is carried out from a physical channel adapted by the target terminal in the target terminal set according to channel occupation information, channel transmission rate and anti-interference information.
It should be noted that each terminal in the set of target terminals may be the target terminal. That is, the first terminal may perform the steps shown in S501 and S502 with each terminal in the set of target terminals as the target terminal.
The channel occupation information may refer to whether a physical channel adapted to the target terminal is currently occupied. The channel transmission rate may refer to a transmission rate of a physical channel adapted to the target terminal. The anti-interference information may refer to strength of a physical channel adapted to the target terminal against a peripheral interference source.
Specifically, the first terminal may compare channel occupancy information, channel transmission rate, and interference resistance information of each physical channel from each physical channel adapted to the target terminal in the target terminal set to perform addition operation, so as to obtain a channel estimation score.
For example, there are two physical channels adapted to the target terminal, one is a physical channel of a 2.4G frequency band, and the other is a physical channel of a 5G frequency band, the channel occupancy information of the physical channel of the 2.4G frequency band is unoccupied, the score is 5, the channel transmission rate of the physical channel of the 2.4G frequency band is 2M/s, the score is 3, and the interference resistance information of the physical channel of the 2.4G frequency band is 4, so the channel assessment score of the channel occupancy information of the physical channel of the 2.4G frequency band may be 12; the channel occupation information of the physical channel of the 5G frequency band is occupied and has a score of 0, the channel transmission rate of the physical channel of the 5G frequency band is 20M/s and has a score of 6, and the anti-interference information of the physical channel of the 5G frequency band is 5, so that the channel evaluation score of the channel occupation information of the physical channel of the 5G frequency band can be 11.
In some possible embodiments, the first terminal may also obtain, from each physical channel adapted to the target terminal in the target terminal set, a channel occupancy information score, a channel transmission rate score, and an interference avoidance information score of each physical channel, and then perform weighting operation according to respective weighting coefficients corresponding to the channel occupancy information, the channel transmission rate, and the interference avoidance information, to obtain a channel estimation score.
For example, there are two physical channels adapted to the target terminal, one is a physical channel in a 2.4G frequency band, and the other is a physical channel in a 5G frequency band, the channel occupancy information of the physical channel in the 2.4G frequency band is unoccupied, the score is 5, and the corresponding weighting coefficient is 3; the channel transmission rate of the physical channel of the 2.4G frequency band is 2M/s, the score is 3, and the corresponding weighting coefficient is 5; the interference rejection information of the physical channel of the 2.4G band is divided into 4, and the corresponding weighting factor is 2, so the channel estimation score of the channel occupancy information of the physical channel of the 2.4G band may be 5 × 3+3 × 5+4 × 2 — 38. The channel occupation information of the physical channel of the 5G frequency band is occupied, the score is 0, and the corresponding weighting coefficient is 3; the channel transmission rate of the physical channel of the 5G frequency band is 20M/s, the score is 5, and the corresponding weighting coefficient is 4; the interference rejection information of the physical channel of the 5G band is given by 5, and the corresponding weighting factor is 2, so the channel estimation score of the channel occupancy information of the physical channel of the 5G band may be 0 × 3+5 × 4+2 × 5 ═ 30.
S502, selecting the physical channel identification as an auxiliary parameter in the connection information of the target terminal according to the channel grading result.
It should be noted that the physical channel identifier may be an identifier for identifying a physical channel selected by the terminal.
Specifically, the first terminal may select, as an auxiliary parameter in the connection information of the target terminal, a physical channel identifier corresponding to a physical channel with a highest channel score in the channel scoring results.
And S403, the first terminal acquires the main parameters in the connection information and the weighting coefficients corresponding to the auxiliary parameters.
Specifically, when the main parameter is the second connection signal strength corresponding to each terminal in the first terminal and the target terminal set, and the auxiliary parameter is the system information and the physical channel identifier of each terminal in the target terminal set, the terminal may obtain the weighting coefficient corresponding to the second connection signal strength, the weighting coefficient corresponding to the system information, and the weighting coefficient corresponding to the physical channel identifier.
It should be noted that the weighting coefficients corresponding to the second connection signal strengths of the target terminals may all be the same value, and the weighting coefficients corresponding to the physical channel identifiers of the target terminals may also all be the same value. However, in some possible embodiments, the weighting coefficients corresponding to the second connection signal strengths may also be different due to differences between the target terminals, and similarly, the weighting coefficients corresponding to the physical channel identifiers may also be different due to differences between the target terminals, which is not limited in this disclosure.
The system information may include a system type and a system version number.
It should be further noted that, the first terminal may obtain the weighting coefficient corresponding to the system information according to the difference between the system type in the system information and the system type of the first terminal and the system version number of the first terminal, and according to the difference between the system version number and the system version number of the first terminal, and the specific manner may refer to fig. 6:
s601, if the system type of the target terminal in the target terminal set is the same as the system type of the first terminal, and the system version number of the target terminal is the same as the system version number of the first terminal, the first terminal determines a first system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter.
It should be noted that the system type may include an android system type, an apple system type, a saiban system type, and the like, and the system version number may be a current system version number of the target terminal.
For example, if the system type of the first terminal is an android system type, the system version number of the first terminal is 6.0.1, then the system type of the target terminal is also an android system type, and the system version number of the target terminal is also 6.0.1, the first terminal may determine a first system weighting coefficient (for example, 3) as the weighting coefficient corresponding to the system information in the auxiliary parameter.
S602, if the system type of the target terminal is the same as that of the first terminal and the system version number of the target terminal is different from that of the first terminal, the first terminal determines a second system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter.
For example, if the system type of the first terminal is an android system type, the system version number of the first terminal is 6.0.1, then the system type of the target terminal is also an android system type, but the system version number of the target terminal is 5.0.1, the first terminal may determine a second system weighting coefficient (for example, 2) as the weighting coefficient corresponding to the system information in the auxiliary parameter.
S603, if the system type of the target terminal is different from that of the first terminal, the first terminal determines a third system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter.
For example, if the system type of the first terminal is an android system type, and then the system type of the target terminal is an apple system type, the first terminal may determine a first system weighting coefficient (for example, 1) as a weighting coefficient corresponding to the system information in the auxiliary parameter.
S404, the first terminal performs weighted calculation on the main parameters and the auxiliary parameters according to the weighting coefficients to obtain comprehensive scores of the terminals.
For example, the first terminal performs weighting calculation on the target terminal according to the respective connection information of each target terminal and a weighting coefficient corresponding to the connection information (for example, second connection signal strength 5+ physical channel identifier 4+ system information 3), and obtains a respective composite score of the target terminal.
S405, the first terminal determines the transmission capability parameters of all terminals in the target terminal set according to the comprehensive scores.
Wherein, the comprehensive score can be directly used as the transmission capability parameter, and can also be used as the transmission capability parameter by the transmission capability grade.
For example, the transmission capability level a ranges from 90 to 100 points of the composite score, the transmission capability level B ranges from 80 to 89 points of the composite score, the transmission capability level C ranges from 70 to 79 points of the composite score, and so on, if the composite score of a certain terminal in the target terminal set is 95 points, the transmission capability level corresponding to the certain terminal is a.
S406, the first terminal selects a second terminal according to the transmission capability parameters of each terminal, and transmits the user data through a second connection.
Wherein the second connection comprises a different transmission path than the first connection.
In the embodiment of the invention, when the first terminal needs to send user data to each terminal in the target terminal set, under the condition that the current data transmission state is detected not to meet the mass sending condition, the main parameters and the auxiliary parameters of each terminal in the target terminal set are subjected to weighting operation according to the respective corresponding weighting coefficients, the transmission capability parameter of each terminal is determined, finally, the second terminal is selected from the target terminal set according to the transmission capability parameter, the user data is transmitted through the second connection, and the second terminal with high transmission capability parameter is preferentially selected to transmit the user data through the weighting operation of each terminal in the target terminal set, so that the transmission time is saved, and the transmission efficiency of the terminal is improved.
Referring to fig. 7, fig. 7 is a schematic block diagram of a data transmission device according to an embodiment of the present invention, where the data transmission device described in this embodiment includes:
an establishing module 701, configured to establish a first connection with each terminal in a target terminal set;
a first obtaining module 702, configured to obtain connection information of each terminal in a target terminal set through a first connection established between the terminal and each terminal in the target terminal set when user data needs to be sent to each terminal in the target terminal set.
A second obtaining module 703, configured to obtain, according to the connection information, a transmission capability parameter of each terminal in the target terminal set.
And the processing module 704 is configured to select a second terminal according to the transmission capability parameter of each terminal.
The establishing module 701 is further configured to establish a second connection with the second terminal.
The processing module 704 is further configured to transmit the user data over a second connection, where the second connection includes a transmission path different from the first connection.
The first obtaining module 702, the second obtaining module 703 and the establishing module 701 may be specifically integrated or disposed in a communication interface of the terminal, and the processing module 603 may be specifically integrated or disposed in a processor of the terminal.
Optionally, the first obtaining module 702 is specifically configured to detect a current data transmission state when user data needs to be sent to each terminal in the target terminal set; and when the current data transmission state does not meet the preset group sending condition, acquiring the connection information of each terminal through the first connection established between each terminal and each terminal in the target terminal set.
Optionally, the apparatus further comprises: a scanning module 705, configured to scan a terminal that is within a scanning range of the first terminal and has a direct connection communication function turned on.
A display module 706, configured to display a terminal list in a display interface, where a list item of the terminal list includes a terminal identifier scanned by the first terminal and a transmission speed identifier.
A determining module 707, configured to receive a selection operation on the list item, and determine a target terminal set in the list item according to the selection operation.
Optionally, the connection information includes: a primary parameter and a secondary parameter.
Optionally, the second obtaining module 703 is specifically configured to obtain a main parameter from the connection information; determining initial transmission capacity parameters of each terminal according to the obtained main parameters; if the initial transmission capability parameter meets the preset difference condition, taking the initial transmission capability parameter as the transmission capability parameter of each corresponding terminal; if the initial transmission capability parameter does not meet the preset difference condition, acquiring an auxiliary parameter from the connection information; and determining the transmission capability parameters of each corresponding terminal according to the main parameters and the auxiliary parameters.
Optionally, the second obtaining module 703 is specifically configured to obtain weighting coefficients corresponding to the main parameter and each auxiliary parameter; performing weighted calculation on the main parameters and the auxiliary parameters according to the weighting coefficients to obtain comprehensive scores of the terminals; and determining the transmission capability parameters of all the terminals in the target terminal set according to the comprehensive scores.
Optionally, the main parameters include: and the second connection signal strength respectively corresponds to each terminal in the target terminal set.
The auxiliary parameters include system information and/or physical channel identifiers of each terminal in the target terminal set.
Optionally, the first obtaining module 702 is specifically configured to perform channel estimation scoring according to channel occupancy information, channel transmission rate, and anti-interference information from a physical channel adapted to a target terminal in the target terminal set; and selecting the physical channel identification as an auxiliary parameter in the connection information of the target terminal according to the channel grading result.
Optionally, the system information includes: system type, system version number.
Optionally, the second obtaining module 703 is specifically configured to, if the system type of the target terminal in the target terminal set is the same as that of the first terminal, and the system version number of the target terminal is the same as that of the first terminal, determine, by the first terminal, a first system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter; if the system type of the target terminal is the same as that of the first terminal and the system version number of the target terminal is different from that of the first terminal, the first terminal determines a second system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter; and if the system type of the target terminal is different from that of the first terminal, the first terminal determines a third system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter.
In the embodiment of the invention, when user data needs to be sent to each terminal in the target terminal set, the second terminal is selected from the target terminal set according to the transmission capability parameters of each terminal, and the user data is transmitted through the second connection.
Fig. 8 is a schematic block diagram of a terminal according to an embodiment of the present invention. The terminal described in this embodiment includes: at least one communication interface 1000; at least one processor 2000, such as a CPU; at least one memory 3000; at least one output device 4000, the communication interface 1000, the processor 2000, the memory 3000, and the output device 4000 are connected by a bus.
It should be understood that, in the embodiment of the present invention, the communication interface 1000 may be an interface for communicating with other terminals, and may include a radio frequency module, a bluetooth module, a wireless network card, and the like, and the output device 4000 may include a display (LCD, and the like).
The Processor 2000 may be a Central Processing Unit (CPU), and may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 3000 may include a read-only memory and a random access memory, and provides instructions and data to the processor 2000. A portion of the memory 3000 may also include non-volatile random access memory. For example, the memory 3000 may also store device type information.
Specifically, the communication interface 1000 is configured to establish a first connection with each terminal in the target terminal set.
The processor 2000 is configured to, when user data needs to be sent to each terminal in the target terminal set, obtain connection information of each terminal in the target terminal set through a first connection established between the communication interface 1000 and each terminal in the target terminal set.
The processor 2000 is further configured to obtain transmission capability parameters of each terminal in the target terminal set according to the connection information, and select a second terminal according to the transmission capability parameters of each terminal.
The communication interface 1000 is further configured to establish a second connection with the second terminal.
The communication interface 1000 is configured to transmit the user data through a second connection.
Wherein the second connection comprises a different transmission path than the first connection.
Optionally, the processor 2000 is further configured to scan a terminal that is within a scanning range of the first terminal and has a direct connection communication function turned on; the terminal list display device is used for displaying a terminal list in a display interface, wherein list items of the terminal list comprise a terminal identifier scanned by the first terminal and a transmission speed identifier; receiving a selection operation on the list item, and determining a target terminal set in the list item according to the selection operation.
Optionally, the processor 2000 is specifically configured to detect a current data transmission state when user data needs to be sent to each terminal in the target terminal set; when the current data transmission state does not satisfy the preset group sending condition, the connection information of each terminal is obtained through the first connection established between the communication interface 1000 and each terminal in the target terminal set.
Optionally, the connection information includes: a primary parameter and a secondary parameter.
Optionally, the processor 2000 is specifically configured to obtain a main parameter from the connection information; determining initial transmission capacity parameters of each terminal according to the obtained main parameters; if the initial transmission capability parameter meets the preset difference condition, taking the initial transmission capability parameter as the transmission capability parameter of each corresponding terminal; if the initial transmission capability parameter does not meet the preset difference condition, acquiring an auxiliary parameter from the connection information; and determining the transmission capability parameters of each corresponding terminal according to the main parameters and the auxiliary parameters.
Optionally, the processor 2000 is specifically configured to obtain weighting coefficients corresponding to the main parameters and the auxiliary parameters from the memory 3000, perform weighting calculation on the main parameters and the auxiliary parameters according to the weighting coefficients to obtain a composite score of each terminal, and determine a transmission capability parameter of each terminal in the target terminal set according to the composite score.
Optionally, the main parameters include: the first terminal and each terminal in the target terminal set respectively correspond to a second connection signal strength; the auxiliary parameters include system information and/or physical channel identifiers of each terminal in the target terminal set.
Optionally, the processor 2000 is specifically configured to perform channel estimation scoring according to channel occupancy information, channel transmission rate, and anti-interference information from a physical channel adapted to a target terminal in the target terminal set, and select a physical channel identifier as an auxiliary parameter in connection information of the target terminal according to a channel scoring result.
Optionally, the system information includes: system type, system version number.
Optionally, the processor 2000 is specifically configured to obtain, through the memory 3000, a weighting coefficient corresponding to the system information in the auxiliary parameter.
Optionally, the processor 2000 is specifically configured to, if a system type of a target terminal in the target terminal set is the same as that of the first terminal, and a system version number of the target terminal is the same as that of the first terminal, determine, by the first terminal, a first system weighting coefficient as a weighting coefficient corresponding to system information in the auxiliary parameter; if the system type of the target terminal is the same as that of the first terminal and the system version number of the target terminal is different from that of the first terminal, the first terminal determines a second system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter; and if the system type of the target terminal is different from that of the first terminal, the first terminal determines a third system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter.
In the embodiment of the invention, when user data needs to be sent to each terminal in the target terminal set, the second terminal is selected from the target terminal set according to the transmission capability parameters of each terminal, and the user data is transmitted through the second connection.
In another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, can implement: establishing a first connection with each terminal in the target terminal set; when user data needs to be sent to each terminal in a target terminal set, acquiring connection information of each terminal in the target terminal set through first connection established between each terminal in the target terminal set and each terminal; acquiring transmission capability parameters of each terminal in the target terminal set according to the connection information; selecting a second terminal according to the transmission capability parameters of each terminal; and establishing a second connection with the second terminal, and transmitting the user data through the second connection, wherein the second connection comprises a transmission path different from the first connection.
It should be noted that, for specific processes executed by the processor of the computer-readable storage medium, reference may be made to the data transmission methods described in the first embodiment and the second embodiment, which are not described herein again.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The above description is only a part of the embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A data transmission method, applied to a first terminal, the method comprising:
establishing a first connection with each terminal in the target terminal set;
when user data needs to be sent to each terminal in a target terminal set, acquiring connection information of each terminal in the target terminal set through first connection established between each terminal in the target terminal set and each terminal; the connection information includes: a primary parameter and a secondary parameter; the main parameters comprise respective corresponding second connection signal strength between the first terminal and each terminal in the target terminal set; the auxiliary parameters comprise system information and/or physical channel identifiers of all terminals in the target terminal set;
acquiring the weighting coefficients corresponding to the main parameters and the auxiliary parameters according to the connection information;
performing weighted calculation on the main parameters and the auxiliary parameters according to the weighting coefficients to obtain comprehensive scores of the terminals;
determining the transmission capacity parameters of all terminals in the target terminal set according to the comprehensive scores, and selecting the terminal with the transmission capacity parameter within the preset grade range as the second terminal;
and establishing a second connection with the second terminal, and transmitting the user data through the second connection, wherein the second connection comprises a transmission path different from the first connection.
2. The method as claimed in claim 1, wherein before obtaining the connection information of each terminal through the first connection established between the terminal and each terminal in the target terminal set when the user data needs to be sent to each terminal in the target terminal set, further comprising:
scanning a terminal which is in a scanning range of the first terminal and has a direct connection communication function;
displaying a terminal list in a display interface, wherein list items of the terminal list comprise a terminal identifier scanned by the first terminal and a transmission speed identifier;
receiving a selection operation on the list item, and determining a target terminal set in the list item according to the selection operation.
3. The method as claimed in claim 2, wherein the obtaining the connection information of each terminal in the target terminal set through the first connection established with each terminal in the target terminal set when user data needs to be sent to each terminal in the target terminal set comprises:
when user data needs to be sent to each terminal in a target terminal set, detecting the current data transmission state;
and when the current data transmission state does not meet the preset group sending condition, acquiring the connection information of each terminal through the first connection established between each terminal and each terminal in the target terminal set.
4. The method of any of claims 1 to 3, wherein the connection information comprises: a primary parameter and a secondary parameter;
the acquiring transmission capability parameters of each terminal in the target terminal set according to the connection information includes:
acquiring main parameters from the connection information;
determining initial transmission capacity parameters of each terminal according to the obtained main parameters;
if the initial transmission capability parameter meets the preset difference condition, taking the initial transmission capability parameter as the transmission capability parameter of each corresponding terminal;
if the initial transmission capability parameter does not meet the preset difference condition, acquiring an auxiliary parameter from the connection information;
and determining the transmission capability parameters of each corresponding terminal according to the main parameters and the auxiliary parameters.
5. The method of claim 1, wherein the primary parameters comprise: the first terminal and each terminal in the target terminal set respectively correspond to a second connection signal strength;
the auxiliary parameters include system information and/or physical channel identifiers of each terminal in the target terminal set.
6. The method of claim 5, wherein obtaining a physical channel identity as an auxiliary parameter for connection information comprises:
performing channel evaluation scoring according to channel occupation information, channel transmission rate and anti-interference information from a physical channel adapted to a target terminal in the target terminal set;
and selecting the physical channel identifier as an auxiliary parameter in the connection information of the target terminal according to the channel scoring result.
7. The method of claim 5, wherein the system information comprises: system type, system version number;
obtaining the weighting coefficients corresponding to the system information in the auxiliary parameters from the weighting coefficients corresponding to the main parameters and the auxiliary parameters, including:
if the system types of the target terminals in the target terminal set are the same, and the system version numbers of the target terminals are the same as the system version numbers, determining a first system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter;
if the system type of the target terminal is the same as the system type of the target terminal and the system version number of the target terminal is different from the system version number of the target terminal, determining a second system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter;
and if the system type of the target terminal is different from that of the first terminal, determining a third system weighting coefficient as a weighting coefficient corresponding to the system information in the auxiliary parameter.
8. A data transmission apparatus, comprising:
the establishing module is used for establishing first connection with each terminal in the target terminal set;
the first acquisition module is used for acquiring the connection information of each terminal in a target terminal set through first connection established between the first acquisition module and each terminal in the target terminal set when user data needs to be sent to each terminal in the target terminal set; the connection information includes: a primary parameter and a secondary parameter; the main parameters comprise respective corresponding second connection signal strength between the first terminal and each terminal in the target terminal set; the auxiliary parameters comprise system information and/or physical channel identifiers of all terminals in the target terminal set;
the second obtaining module is used for obtaining the weighting coefficients corresponding to the main parameters and the auxiliary parameters according to the connection information; performing weighted calculation on the main parameters and the auxiliary parameters according to the weighting coefficients to obtain comprehensive scores of the terminals; determining the transmission capacity parameters of all terminals in the target terminal set according to the comprehensive scores, and selecting the terminal with the transmission capacity parameter within the preset grade range as the second terminal;
the processing module is used for selecting a second terminal according to the transmission capability parameters of each terminal;
the establishing module is further configured to establish a second connection with the second terminal;
the processing module is further configured to transmit the user data over a second connection, where the second connection includes a transmission path different from the first connection.
9. The apparatus of claim 8, wherein the first obtaining module is specifically configured to detect a current data transmission state when user data needs to be sent to each terminal in the target terminal set, and obtain connection information of each terminal through a first connection established between the first obtaining module and each terminal in the target terminal set when the current data transmission state does not satisfy a preset group sending condition.
10. A terminal comprising a processor, a communication interface, an output device and a memory, the processor, the communication interface, the output device and the memory being interconnected, wherein the memory is configured to store application program code and the processor is configured to invoke the program code to perform the method of any of claims 1-7.
11. A computer-readable storage medium, in which a computer program is stored, characterized in that the computer program comprises program instructions, which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN201710495966.0A 2017-06-26 2017-06-26 Data transmission method, device and terminal Expired - Fee Related CN107222847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710495966.0A CN107222847B (en) 2017-06-26 2017-06-26 Data transmission method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710495966.0A CN107222847B (en) 2017-06-26 2017-06-26 Data transmission method, device and terminal

Publications (2)

Publication Number Publication Date
CN107222847A CN107222847A (en) 2017-09-29
CN107222847B true CN107222847B (en) 2020-01-14

Family

ID=59950608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710495966.0A Expired - Fee Related CN107222847B (en) 2017-06-26 2017-06-26 Data transmission method, device and terminal

Country Status (1)

Country Link
CN (1) CN107222847B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257831B (en) * 2018-08-10 2020-09-29 维沃移动通信有限公司 Method for establishing connection between terminals and terminal
CN111278001B (en) * 2019-01-18 2022-04-12 维沃移动通信有限公司 Terminal capability negotiation method, terminal equipment and network side equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244676A (en) * 2010-05-14 2011-11-16 Lg电子株式会社 Electronic device and method of sharing contents thereof with other devices
CN105472038A (en) * 2016-01-07 2016-04-06 腾讯科技(深圳)有限公司 Control method, control apparatus and control system for file transmission
CN105898838A (en) * 2016-03-29 2016-08-24 联想(北京)有限公司 Signal connection method, signal processing method, electronic equipment and electronic apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244676A (en) * 2010-05-14 2011-11-16 Lg电子株式会社 Electronic device and method of sharing contents thereof with other devices
CN105472038A (en) * 2016-01-07 2016-04-06 腾讯科技(深圳)有限公司 Control method, control apparatus and control system for file transmission
CN105898838A (en) * 2016-03-29 2016-08-24 联想(北京)有限公司 Signal connection method, signal processing method, electronic equipment and electronic apparatus

Also Published As

Publication number Publication date
CN107222847A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN106658652B (en) Method and device for connecting WiFi hotspot
US20130067535A1 (en) Apparatus and method for controlling a network connection
EP3890403A1 (en) Method and apparatus for connecting short-range wireless communication in terminal
US9572190B2 (en) Device and method for associating with WiFi networks
US10785713B2 (en) Device and method for accessing multiple networks in wireless communication system
CN106557311B (en) Electronic device and method for performing wireless communication
US9984226B2 (en) Screen sharing server, method of sharing screen, and program for screen sharing server
EP3562257B1 (en) Wireless fidelity (wi-fi) connection method and related product
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
US9706586B2 (en) Wireless communication device and method
CN104363666A (en) Method and device for setting up wireless connection between electronic devices and external device
CN110933733B (en) Network distribution method, device, computer equipment and storage medium
EP2868053A1 (en) Techniques for transferring a data payload utilizing near-field communication
WO2018076132A1 (en) Beam measurement method and apparatus
US10945197B2 (en) Electronic device for providing AP list and method for operating electronic device
CN108924908B (en) WiFi scanning method and device and electronic device
US20140286323A1 (en) Wireless network system and connecting method thereof
CN107222847B (en) Data transmission method, device and terminal
US20140315591A1 (en) Communication terminal device, communication system, and method of controlling communication terminal device
EP3070909B1 (en) Synchronization of an apparatus with two groups of communication apparatuses and exchange of data
EP3177097A1 (en) Method for establishing network connection by means of wps, and mobile wi-fi device
KR20150134266A (en) Device and method for transmitting file
CN110602738B (en) Network connection method and device and electronic device
CN108337741B (en) Method, apparatus and computer-readable storage medium for establishing communication connection
CN107819761B (en) Data processing method and device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114