WO2022095581A1 - Data transmission method and terminal device - Google Patents
Data transmission method and terminal device Download PDFInfo
- Publication number
- WO2022095581A1 WO2022095581A1 PCT/CN2021/116899 CN2021116899W WO2022095581A1 WO 2022095581 A1 WO2022095581 A1 WO 2022095581A1 CN 2021116899 W CN2021116899 W CN 2021116899W WO 2022095581 A1 WO2022095581 A1 WO 2022095581A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- link
- transmission speed
- data
- mobile phone
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 314
- 238000000034 method Methods 0.000 title claims abstract description 90
- 238000004891 communication Methods 0.000 claims abstract description 203
- 230000006854 communication Effects 0.000 claims abstract description 203
- 238000004590 computer program Methods 0.000 claims description 24
- 230000000875 corresponding effect Effects 0.000 claims description 24
- 230000004044 response Effects 0.000 claims description 15
- 230000002596 correlated effect Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 23
- 238000007726 management method Methods 0.000 description 15
- 238000010295 mobile communication Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 13
- 238000012545 processing Methods 0.000 description 13
- 230000005236 sound signal Effects 0.000 description 13
- 230000015572 biosynthetic process Effects 0.000 description 7
- 238000003786 synthesis reaction Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000013475 authorization Methods 0.000 description 4
- 230000036541 health Effects 0.000 description 4
- 238000012216 screening Methods 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000008447 perception Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000036772 blood pressure Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000035485 pulse pressure Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
-
- 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the first terminal determines, according to the second selection notification, a sixth terminal from K seventh terminals included in the terminal set associated with the fifth terminal, where K is a positive integer greater than or equal to 1;
- the second terminal may acquire the transmission speed of the first link, the transmission speed between the eleventh link between the second terminal and the fourth terminal, and the transmission speed of the twelfth link between the first terminal and the fourth terminal If the average transmission speed of the eleventh link and the twelfth link is greater than the transmission speed of the first link, the second terminal may determine the fourth terminal as the third terminal, and accordingly, The second terminal may determine the eleventh link with the fourth terminal as the second link, and the twelfth link between the first terminal and the fourth terminal as the third link.
- the second terminal may retain the eleventh link between the second terminal and the fourth terminal except the third terminal, so as to save the time spent in disconnecting the eleventh link and further improve the efficiency .
- the second terminal may also cut off the eleventh link between the second terminal and other fourth terminals except the third terminal.
- the first terminal or other fourth terminals except the third terminal may also reserve the twelfth link between the first middle terminal and the other fourth terminals except the third terminal, so as to save the disconnection of the first terminal. Time spent on twelve links.
- the twelfth link between the first terminal and other fourth terminals except the third terminal may also be reserved between the first terminal and other fourth terminals except the third terminal.
- the twelfth communication link between mobile phone A (210 in FIG. 10 ) and mobile phone B (230 in FIG. 10 ) is a 4G/5G/Wi-Fi communication link
- mobile phone A and The first link between the smart watches (220 in FIG. 10 ) and the eleventh link between the mobile phone B and the smart watch are Bluetooth communication links. Since the Bluetooth protocol is a low-power communication protocol, the time spent on the twelfth link is negligible compared to the time spent on the first link or on the eleventh link, as long as the data is transmitted on the twelfth link.
- the first terminal can use the third link with each third terminal and the third terminal.
- the second link between the second terminal and the second terminal sends the first data to the second terminal, that is, the first terminal can transmit the first data to the second terminal through N third terminals respectively, and the second terminal can receive the first data at the first When the first data sent by a certain third terminal is reached, stop receiving the first data sent by other third terminals.
- the first terminal can transmit data based on M third links. speed, to determine the amount of data of the first part transmitted through each third link, or, the first terminal may transmit through each third link based on the transmission speed of the M third links and the transmission speed of the first link The data size of the first part and the data size of the second part.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Provided are a data transmission method and a terminal device, which relate to the technical field of terminals. The method comprises: a first terminal determining to transmit first data by means of a first link with a second terminal; and if the first terminal determines that the transmission speed on the first link is less than the average transmission speed on a second link and a third link, the first terminal sending at least part of the first data to the second terminal by means of the third link and the second link, wherein the second link is a communication link between a third terminal and the second terminal, and the third link is a communication link between the first terminal and the third terminal. By means of the technical solution provided in the present application, the efficiency of a first terminal transmitting first data to a second terminal can be improved.
Description
本申请要求于2020年11月04日提交国家知识产权局、申请号为202011218335.2、申请名称为“数据传输方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011218335.2 and the application name "Data Transmission Method and Terminal Equipment" filed with the State Intellectual Property Office on November 04, 2020, the entire contents of which are incorporated into this application by reference .
本申请涉及终端技术领域,尤其涉及一种数据传输方法及终端设备。The present application relates to the field of terminal technologies, and in particular, to a data transmission method and a terminal device.
近年来,各种终端设备不断普及,为了用户带来了极大的便利。两个终端设备之间可以进行通信,从而实现数据的互通和互换,比如,智能手表可以采集得到用户的健康数据,并向手机发送这些健康数据。In recent years, various terminal devices have been popularized, bringing great convenience to users. Two terminal devices can communicate to realize data exchange and exchange. For example, a smart watch can collect the user's health data and send the health data to the mobile phone.
现有技术,两个终端设备之间可以建立通信链路,然后一个终端设备或基于该通信链路向另一终端设备传输数据。但由于这两个终端设备之间的通信链路,严格受这两个终端设备的硬件条件和软件条件限制,因此该通信链路的往往会存在瓶颈,传输效率较低。In the prior art, a communication link may be established between two terminal devices, and then one terminal device transmits data to another terminal device or based on the communication link. However, since the communication link between the two terminal devices is strictly limited by the hardware and software conditions of the two terminal devices, there is often a bottleneck in the communication link and the transmission efficiency is low.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供一种数据传输方法及终端设备,从而提高了第一终端设备向第二终端传输第一数据的效率。In view of this, the present application provides a data transmission method and a terminal device, thereby improving the efficiency of transmitting the first data from the first terminal device to the second terminal.
为了实现上述目的,第一方面,本申请实施例提供一种数据传输方法,包括:In order to achieve the above purpose, in a first aspect, an embodiment of the present application provides a data transmission method, including:
第一终端确定通过与第二终端的第一链路传输第一数据;The first terminal determines to transmit the first data through the first link with the second terminal;
若所述第一终端确定所述第一链路的传输速度,小于第二链路和第三链路的平均传输速度,则所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据;If the first terminal determines that the transmission speed of the first link is lower than the average transmission speed of the second link and the third link, then the first terminal passes through the third link and the second link. the link sends at least part of the first data to the second terminal;
其中,所述第二链路为第三终端与所述第二终端之间的通信链路,所述第三链路为所述第一终端与所述第三终端之间的通信链路。The second link is a communication link between a third terminal and the second terminal, and the third link is a communication link between the first terminal and the third terminal.
需要说明的是,终端信息可以用于说明终端设备的身份,以便于其他终端设备基于该终端信息,与该终端信息对应的终端设备建立通信链路。例如,该终端信息可以包括设备标识,还可以包括终端设备的密码。可选地,该终端信息可以包括蓝牙名称和服务集标识(service set identifier,SSID)中的至少一个。It should be noted that the terminal information may be used to describe the identity of the terminal device, so that other terminal devices can establish a communication link with the terminal device corresponding to the terminal information based on the terminal information. For example, the terminal information may include a device identification, and may also include a password of the terminal device. Optionally, the terminal information may include at least one of a Bluetooth name and a service set identifier (SSID).
在本申请实施例中,当第一终端确定通过与第二终端的之间的第一链路发送第一数据时,如果第一链路的传输速度,小于第二终端与第三终端之间的第二链路和第一终端与第三终端之间的第三链路的平均传输速度,则第一终端可以经由第三链路和第二链路,向第二终端传输第一数据中的至少一部分数据。由于第一链路的传输速度小于第二链路和第三链路的平均传输速度,因此,第一终端通过第二链路和第三链路向第二终端传输该数据所占用的时长,小于第一终端过第一链路向第二终端传输该数据所占用的时长。也即是,第一终端与第二终端之间的数据传输,不再完全局限于第一终端和第二终端的硬件条件或软件条件限制,第一终端可以通过其他的第三终端,选 择传输速度更快的通信链路来向第二终端发送第一数据中的至少部分数据,从而一定程度或最大限度地减少向第二终端发送第一数据的时长,提高传输效率。In this embodiment of the present application, when the first terminal determines to send the first data through the first link with the second terminal, if the transmission speed of the first link is lower than that between the second terminal and the third terminal The average transmission speed of the second link and the third link between the first terminal and the third terminal, the first terminal can transmit the first data to the second terminal via the third link and the second link. at least part of the data. Since the transmission speed of the first link is lower than the average transmission speed of the second link and the third link, the time taken by the first terminal to transmit the data to the second terminal through the second link and the third link, It is less than the time taken by the first terminal to transmit the data to the second terminal through the first link. That is, the data transmission between the first terminal and the second terminal is no longer completely limited by the hardware conditions or software conditions of the first terminal and the second terminal, and the first terminal can select the transmission through other third terminals. A faster communication link is used to send at least part of the first data to the second terminal, thereby reducing the time period for sending the first data to the second terminal to a certain extent or to the maximum extent, and improving transmission efficiency.
可选地,在所述若所述第一终端确定所述第一链路的传输速度,小于第二链路和第三链路的平均传输速度,则所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据之前,所述方法还包括:Optionally, if the first terminal determines that the transmission speed of the first link is smaller than the average transmission speed of the second link and the third link, then the first terminal passes the third link. Before the link and the second link send at least part of the first data to the second terminal, the method further includes:
所述第一终端向所述第二终端发送第一选择通知,所述第一选择通知用于通知所述第二终端在与所述第一终端关联的终端集合包括的M个第四终端中确定所述第三终端,M≥1且M为正整数;The first terminal sends a first selection notification to the second terminal, where the first selection notification is used to notify the second terminal that the second terminal is among the M fourth terminals included in the terminal set associated with the first terminal Determine the third terminal, M≥1 and M is a positive integer;
所述第一终端接收所述第二终端根据所述第一选择通知发送的所述第三终端的终端信息。The first terminal receives the terminal information of the third terminal sent by the second terminal according to the first selection notification.
其中,第二终端可以获取第一链路的传输速度、第二终端与第四终端之间的第十一链路之间的传输速度、第一终端与第四终端之间的第十二链路的传输速度,如果第十一链路和第十二链路的平均传输速度,大于第一链路的传输速度,则第二终端可以将该第四终端确定为第三终端,相应的,第二终端可以将与该第四终端之间的第十一链路确定为第二链路,将第一终端与该第四终端之间的第十二链路确定为第三链路。在一些实施例中,如果存在一个以上的第四终端,该第四终端对应的第十一链路和第十二链路的平均传输速度大于第一链路的传输速度,则第二终端可以按照第十一链路和第十二链路的平均传输速度从高到低的顺序,从一个以上的第四终端中选择N个第四终端作为第三终端,M≥N≥1且N为正整数。The second terminal may acquire the transmission speed of the first link, the transmission speed between the eleventh link between the second terminal and the fourth terminal, and the transmission speed of the twelfth link between the first terminal and the fourth terminal If the average transmission speed of the eleventh link and the twelfth link is greater than the transmission speed of the first link, the second terminal may determine the fourth terminal as the third terminal, and accordingly, The second terminal may determine the eleventh link with the fourth terminal as the second link, and the twelfth link between the first terminal and the fourth terminal as the third link. In some embodiments, if there is more than one fourth terminal, and the average transmission speed of the eleventh link and the twelfth link corresponding to the fourth terminal is greater than the transmission speed of the first link, the second terminal may According to the order of the average transmission speed of the eleventh link and the twelfth link from high to low, select N fourth terminals from more than one fourth terminal as the third terminals, M≥N≥1 and N is positive integer.
需要说明的是,第一链路的传输速度可以由第一终端或第二终端对第一链路进行检测得到,第十一链路和第十二链路的平均传输速度可以根据第十一链路的传输速度和第二链路的传输速度确定,第十一链路的传输速度可以由第二终端或第四终端对第十一链路进行检测得到,第十二链路的传输速度可以由第四终端或第一终端对第十二链路进行检测得到。在一些实施例中,第二终端可以通过检测获取第一链路的传输速度和第十一链路的传输速度,并从第一终端或第四终端获取第十二链路的传输速度。当然,第二终端也可以从第一终端获取第一链路的传输速度,和/或,从第四终端获取第十一链路的传输速度。It should be noted that the transmission speed of the first link can be obtained by detecting the first link by the first terminal or the second terminal, and the average transmission speed of the eleventh link and the twelfth link can be determined according to the eleventh link. The transmission speed of the link and the transmission speed of the second link are determined, the transmission speed of the eleventh link can be obtained by detecting the eleventh link by the second terminal or the fourth terminal, and the transmission speed of the twelfth link The twelfth link may be detected by the fourth terminal or the first terminal. In some embodiments, the second terminal may acquire the transmission speed of the first link and the transmission speed of the eleventh link through detection, and acquire the transmission speed of the twelfth link from the first terminal or the fourth terminal. Certainly, the second terminal may also obtain the transmission speed of the first link from the first terminal, and/or obtain the transmission speed of the eleventh link from the fourth terminal.
在一些实施例中,第一终端与任一第四终端之间的第十二链路可以为基于第二预设通信协议的通信链路,该任一第四终端与第二终端之间的十一链路可以为基于第一预设通信协议的通信链路,第二预设通信协议所指示的最大传输速度与第一预设通信协议所指示的最大传输速度之间的差值,可以大于第一速度阈值。其中,第一速度阈值可以通过事先设置得到,当第二预设通信协议所指示的最大传输速度与第一预设通信协议所指示的最大传输速度之间的差值大于第一速度阈值时,相对于通过第十一链路传输数据的时长来说,通过第十二链路传输该数据的时长可以忽略不计。那么,只要第十一链路的传输速度大于第一链路的传输速度,就可以确保第一终端将该数据通过第十二链路和第十一链路传输至第二终端所用的时长,小于第一终端通过第一链路将该数据传输至第二终端所用的时长。因此,第二终端可以仅获取第一链路的传输速度和第十一链路的传输速度,并将N个第十一链路对应的第四终端确定为第三终端,这N个第十一链路的传输速度大于第一链路传输速度。在一些实施例中,在上述基础 上,第二中终端可以按照传输速度从高到低的顺序,确定N个第十一链路,并将N个第十一链路对应的第四终端确定为第三终端,其中,N个第十一链路的传输速度可以大于其余十一链路的传输速度。另外,当第二终端将某一第四终端确定为第三终端时,第二终端与该第四终端之间的第十一链路可以为第二链路,该第四终端与第一终端之间的第十二链路可以为第三链路。In some embodiments, the twelfth link between the first terminal and any fourth terminal may be a communication link based on the second preset communication protocol, and the twelfth link between the any fourth terminal and the second terminal The eleventh link may be a communication link based on the first preset communication protocol, and the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol may be greater than the first speed threshold. The first speed threshold can be obtained by setting in advance, and when the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol is greater than the first speed threshold, The duration of transmitting the data through the twelfth link is negligible relative to the duration of transmitting the data through the eleventh link. Then, as long as the transmission speed of the eleventh link is greater than the transmission speed of the first link, it can be ensured that the first terminal transmits the data to the second terminal through the twelfth link and the eleventh link. It is less than the duration used by the first terminal to transmit the data to the second terminal through the first link. Therefore, the second terminal may only acquire the transmission speed of the first link and the transmission speed of the eleventh link, and determine the fourth terminal corresponding to the N eleventh links as the third terminal, and the N tenth links The transmission speed of one link is greater than the transmission speed of the first link. In some embodiments, on the basis of the above, the second terminal may determine N eleventh links in the order of transmission speed from high to low, and determine the fourth terminal corresponding to the N eleventh links is the third terminal, wherein the transmission speed of the N eleventh links may be greater than the transmission speed of the remaining eleven links. In addition, when the second terminal determines a fourth terminal as the third terminal, the eleventh link between the second terminal and the fourth terminal may be the second link, and the fourth terminal and the first terminal The twelfth link between can be the third link.
相似的,若第二终端与任一第四终端之间的第十一链路为基于第二预设通信协议的通信链路,第一终端与该任一第四终端之间的第十二链路为基于第一预设通信协议的通信链路,第二终端也可以仅获取第一链路的传输速度和第十二链路的传输速度,从而将N个第十二链路对应的第四终端确定为第三终端,N个第二链路的传输速度可以大于第一链路传输速度。Similarly, if the eleventh link between the second terminal and any fourth terminal is a communication link based on the second preset communication protocol, the twelfth link between the first terminal and any fourth terminal is The link is a communication link based on the first preset communication protocol, and the second terminal may also only obtain the transmission speed of the first link and the transmission speed of the twelfth link, so as to convert the corresponding N twelfth links into The fourth terminal is determined as the third terminal, and the transmission speed of the N second links may be greater than the transmission speed of the first link.
需要说明的是,第二终端可以保留第二终端与除第三终端之外其他第四终端之间的第十一链路,以节省断开第十一链路所耗费的时间,进一步提高效率。It should be noted that the second terminal may retain the eleventh link between the second terminal and the fourth terminal except the third terminal, so as to save the time spent in disconnecting the eleventh link and further improve the efficiency .
可选地,在所述第一终端向所述第二终端发送第一选择通知之前,所述方法还包括:Optionally, before the first terminal sends the first selection notification to the second terminal, the method further includes:
所述第一终端向各第四终端发送关联请求;sending, by the first terminal, an association request to each fourth terminal;
所述第一终端接收各所述第四终端基于所述关联请求发送的关联响应,所述关联响应中携带各所述第四终端的终端信息;receiving, by the first terminal, an association response sent by each of the fourth terminals based on the association request, where the association response carries terminal information of each of the fourth terminals;
所述第一终端向所述第二终端发送各所述第四终端的终端信息。The first terminal sends the terminal information of each of the fourth terminals to the second terminal.
可选地,所述方法还包括:Optionally, the method further includes:
所述第一终端向各所述第四终端发送所述第二终端的终端信息。The first terminal sends the terminal information of the second terminal to each of the fourth terminals.
在一些实施例中,第四终端在接收到关联请求时,可以向用户发出第一关联提示信息,以提示用户即将作为第一终端的资源池,并在接收到用户的确认操作时向第一终端发送关联响应。也即是,在将第四终端作为第一终端的资源池之前,可以获取第四终端的用户的授权,以确保第四终端以及后续数据传输的安全性。相似的,第一终端和第二终端在存储第四终端的终端信息之前,也可以向用户发出第二关联提示信息,以提示用户即将将第四终端作为第一终端的资源池,并在接收到用户的确认操作时存储第四终端的终端信息。也即是,第一终端和第二终端也可以在确定将第四终端作为第一终端的资源池之前,获取用户授权,以确保后续数据传输的安全性。In some embodiments, when receiving the association request, the fourth terminal may send first association prompt information to the user to prompt the user to be the resource pool of the first terminal, and notify the first terminal when receiving the user's confirmation operation. The terminal sends an association response. That is, before using the fourth terminal as the resource pool of the first terminal, the authorization of the user of the fourth terminal may be obtained to ensure the security of the fourth terminal and subsequent data transmission. Similarly, before storing the terminal information of the fourth terminal, the first terminal and the second terminal may also send the second associated prompt information to the user to prompt the user that the fourth terminal will be used as the resource pool of the first terminal, and the The terminal information of the fourth terminal is stored when the user confirms the operation. That is, the first terminal and the second terminal may also obtain user authorization before determining that the fourth terminal is used as the resource pool of the first terminal, so as to ensure the security of subsequent data transmission.
其中,资源池可以用于向终端设备提供该资源池所关联的另一终端设备的数据。比如,当第四终端为第一终端的资源池时,第四终端可以用于向第二终端提供来自第一终端的数据。The resource pool may be used to provide the terminal device with data of another terminal device associated with the resource pool. For example, when the fourth terminal is the resource pool of the first terminal, the fourth terminal may be used to provide data from the first terminal to the second terminal.
还需要说明的是,当第一终端向第二终端发送第四终端的终端信息,或向第四终端发送第二终端的终端信息时,都可以使得第二终端与第四终端之间能够建立通信链路,且当当第四终端和第二终端都存储有对端的终端信息时,后续第四终端与第二终端可以自动建立通信链路,而不需要经过鉴权等其他操作,不仅效率更高,也能够减少用户感知,提高用户体验。It should also be noted that, when the first terminal sends the terminal information of the fourth terminal to the second terminal, or sends the terminal information of the second terminal to the fourth terminal, the second terminal and the fourth terminal can be established. Communication link, and when both the fourth terminal and the second terminal store the terminal information of the opposite terminal, the subsequent fourth terminal and the second terminal can automatically establish a communication link without the need for other operations such as authentication, which is not only more efficient. It can also reduce user perception and improve user experience.
可选地,所述第一数据包括第一部分和第二部分,所述至少部分为所述第一部分,所述方法还包括:Optionally, the first data includes a first part and a second part, the at least part is the first part, and the method further includes:
所述第一终端通过所述第一链路传输所述第二部分。The first terminal transmits the second portion over the first link.
可选地,在所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据之前,所述方法还包括;Optionally, before the first terminal sends at least part of the first data to the second terminal via the third link and the second link, the method further includes;
所述第一终端基于所述第二链路的传输速度,确定所述第一部分,所述第一部分的数据量大小与所述第二链路的传输速度成正相关;或,The first terminal determines the first part based on the transmission speed of the second link, and the data amount of the first part is positively correlated with the transmission speed of the second link; or,
所述第一终端基于所述第三链路的传输速度,确定所述第一部分,所述第一部分的数据量大小与所述第三链路的传输速度正相关;或,The first terminal determines the first part based on the transmission speed of the third link, and the data amount of the first part is positively related to the transmission speed of the third link; or,
所述第一终端基于所述第二链路的传输速度和所述第三链路的传输速度,确定所述第一部分,所述第一部分的数据量大小与所述第二链路的传输速度以及所述第三链路的传输速度正相关。The first terminal determines the first part based on the transmission speed of the second link and the transmission speed of the third link, the data size of the first part and the transmission speed of the second link and the transmission speed of the third link is positively correlated.
也即是,能够按照各链路的传输速度,合理分配通过该链路所传输的数据量,从而进一步提高传输效率。That is, according to the transmission speed of each link, the amount of data transmitted through the link can be reasonably allocated, thereby further improving the transmission efficiency.
其中,第一数据包括Q个不同的第一部分和P个第二部分,第一部分和第二部分中可以携带数据合成信息,该数据合成信息用于指示将Q个不同的第一部分和P个第二部分合成为第一数据,1≤Q=N,P为1或0。该数据合成信息可以包括第一数据的数据标识,以及该第一部分或第二部分在第一数据中的位置。那么第一终端分别通过N个第二链路和N个第三链路,向第二终端传输第一数据的Q个不同的第一部分,并通过第一链路传输第一数据的第二部分,相应的,第二终端可以在接收到Q个不同的第一部分和P个第二部分时,根据第一部分和第二部分中所携带的数据合成信息,将Q个不同的第一部分和P个第二部分合成为第一数据。The first data includes Q different first parts and P second parts, and the first part and the second part may carry data synthesis information, and the data synthesis information is used to indicate that the Q different first parts and the P second parts are to be combined. The two parts are combined into the first data, 1≤Q=N, and P is 1 or 0. The data synthesis information may include a data identifier of the first data, and a position of the first part or the second part in the first data. Then the first terminal transmits Q different first parts of the first data to the second terminal through the N second links and N third links respectively, and transmits the second part of the first data through the first link , correspondingly, when the second terminal receives the Q different first parts and the P second parts, according to the data synthesis information carried in the first part and the second part, the Q different first parts and the P The second part is synthesized into the first data.
可选地,在所述若所述第一终端确定所述第一链路的传输速度,小于第二链路和第三链路的平均传输速度,则所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据之前,所述方法还包括:Optionally, if the first terminal determines that the transmission speed of the first link is smaller than the average transmission speed of the second link and the third link, then the first terminal passes the third link. Before the link and the second link send at least part of the first data to the second terminal, the method further includes:
所述第一终端确定所述第一链路为基于预设近距离通信协议的通信链路。The first terminal determines that the first link is a communication link based on a preset short-range communication protocol.
其中,由于在近距离通信中,传输速度容易受终端设备之间的距离影响,稳定性较差,且某些近距离传输协议所支持的最大传输速度较低,因此第一终端可以在确定第一链路为基于预设近距离通信协议(如蓝牙协议或zigbee协议)的通信链路时,继续进行后续的步骤。Among them, because in short-range communication, the transmission speed is easily affected by the distance between terminal devices, the stability is poor, and the maximum transmission speed supported by some short-range transmission protocols is low, so the first terminal can determine the first When a link is a communication link based on a preset short-range communication protocol (such as a Bluetooth protocol or a zigbee protocol), the subsequent steps are continued.
在一些实施例中,第二链路和第三链路中的一个可以是基于第一预设通信协议的通信链路,另一个可以是基于第二预设通信协议的通信链路,第二预设通信协议所指示的最大传输速度与所述第一预设通信协议所指示的最大传输速度之间的差值,大于第一速度阈值,其中,第一预设通信协议可以包括预设近距离通信协议。In some embodiments, one of the second link and the third link may be a communication link based on a first preset communication protocol, the other may be a communication link based on a second preset communication protocol, and the second The difference between the maximum transmission speed indicated by the preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol is greater than the first speed threshold, wherein the first preset communication protocol may include a preset distance communication protocol.
例如,第一终端和第三终端可以包括手机,第二终端可以包括智能手表,第一链路和第二链路可以为蓝牙通信链路,可以为基于4G/5G/无线保真(wireless fidelity,Wi-Fi)协议的通信链路。For example, the first terminal and the third terminal may include a mobile phone, the second terminal may include a smart watch, and the first link and the second link may be a Bluetooth communication link, which may be based on 4G/5G/wireless fidelity , Wi-Fi) protocol communication link.
可选地,若第一终端并未接收到第二终端发送的第三终端的终端信息,则可能第二终端并未获取到第三终端,即第一链路的传输速度,大于或等于第二链路和第三链路的平均传输速度,因此,第一终端可以基于第一链路向第二终端发送第一数据。Optionally, if the first terminal has not received the terminal information of the third terminal sent by the second terminal, it may be that the second terminal has not acquired the third terminal, that is, the transmission speed of the first link is greater than or equal to the third terminal. The average transmission speed of the second link and the third link, therefore, the first terminal can send the first data to the second terminal based on the first link.
可选地,所述方法还包括:Optionally, the method further includes:
所述第一终端接收第五终端的第二选择通知;receiving, by the first terminal, a second selection notification from the fifth terminal;
所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,K≥1且K为正整数;The first terminal determines, according to the second selection notification, a sixth terminal from K seventh terminals included in the terminal set associated with the fifth terminal, where K≥1 and K is a positive integer;
所述第一终端向所述第五终端发送所述第六终端的终端信息;sending, by the first terminal, the terminal information of the sixth terminal to the fifth terminal;
其中,第五链路为所述第一终端与所述第六终端之间的通信链路,第六链路为所述第五终端与所述第六终端之间的通信链路,所述第一终端与所述第五终端之间的第四链路的传输速度,小于所述第五链路和所述第六链路的平均传输速度。The fifth link is a communication link between the first terminal and the sixth terminal, the sixth link is a communication link between the fifth terminal and the sixth terminal, and the The transmission speed of the fourth link between the first terminal and the fifth terminal is lower than the average transmission speed of the fifth link and the sixth link.
可选地,所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,包括:Optionally, according to the second selection notification, the first terminal determines a sixth terminal from K seventh terminals included in the terminal set associated with the fifth terminal, including:
所述第一终端获取所述第一终端与所述第五终端关联的终端集合中的K个第七终端的第七链路的传输速度,以及所述第一链路的传输速度;obtaining, by the first terminal, the transmission speed of the seventh link of the K seventh terminals in the terminal set associated with the first terminal and the fifth terminal, and the transmission speed of the first link;
所述第一终端将L个第七链路对应的第七终端确定为所述第六终端,其中,L个第七链路的传输速度大于所述第一链路的传输速度,K≥L≥1且L为正整数;The first terminal determines the seventh terminal corresponding to the L seventh links as the sixth terminal, wherein the transmission speed of the L seventh links is greater than the transmission speed of the first link, and K≥L ≥1 and L is a positive integer;
其中,所述第一终端与任一第七终端之间的第八链路为基于第一预设通信协议的通信链路,所述任一第七终端与所述第五终端之间的第七链路为基于第二预设通信协议的通信链路,所述第二预设通信协议所指示的最大传输速度与所述第一预设通信协议所指示的最大传输速度之间的差值,大于第一速度阈值。Wherein, the eighth link between the first terminal and any seventh terminal is a communication link based on the first preset communication protocol, and the eighth link between the any seventh terminal and the fifth terminal Seven links are communication links based on a second preset communication protocol, and the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol , greater than the first speed threshold.
需要说明的是,第一终端可以按照第七链路和第八链路的平均传输速度从高到低的顺序,从一个以上的第七终端中选择L个第七终端作为第六终端。It should be noted that, the first terminal may select L seventh terminals as sixth terminals from more than one seventh terminal in order of the average transmission speed of the seventh link and the eighth link from high to low.
可选地,在所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端之前,所述方法还包括:Optionally, before the first terminal determines a sixth terminal from the K seventh terminals included in the terminal set associated with the fifth terminal according to the second selection notification, the method further includes:
所述第一终端接收所述第五终端发送的所述K个第七终端的终端信息。The first terminal receives the terminal information of the K seventh terminals sent by the fifth terminal.
第二方面,本申请实施例提供一种数据传输方法,所述方法还包括:In a second aspect, an embodiment of the present application provides a data transmission method, the method further comprising:
第一终端接收第五终端的第二选择通知;the first terminal receives the second selection notification of the fifth terminal;
所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,K为大于或等于1的正整数;The first terminal determines, according to the second selection notification, a sixth terminal from K seventh terminals included in the terminal set associated with the fifth terminal, where K is a positive integer greater than or equal to 1;
所述第一终端向所述第五终端发送所述第六终端的终端信息,所述第六终端的终端信息用于所述第五终端,经由第六链路以及第五链路,向所述第一终端发送第二数据的至少部分数据;The first terminal sends the terminal information of the sixth terminal to the fifth terminal, the terminal information of the sixth terminal is used for the fifth terminal, and is sent to the fifth terminal via the sixth link and the fifth link. the first terminal sending at least part of the second data;
其中,所述第五链路为所述第一终端与所述第六终端之间的通信链路,所述第六链路为所述第五终端与所述第六终端之间的通信链路,所述第一终端与所述第五终端之间的第四链路的传输速度,小于所述第五链路和所述第六链路的平均传输速度。The fifth link is a communication link between the first terminal and the sixth terminal, and the sixth link is a communication link between the fifth terminal and the sixth terminal The transmission speed of the fourth link between the first terminal and the fifth terminal is lower than the average transmission speed of the fifth link and the sixth link.
可选地,所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,包括:Optionally, according to the second selection notification, the first terminal determines a sixth terminal from K seventh terminals included in the terminal set associated with the fifth terminal, including:
所述第一终端获取所述第一终端与所述第五终端关联的终端集合中的K个第七终端的第七链路的传输速度,以及所述第一链路的传输速度;obtaining, by the first terminal, the transmission speed of the seventh link of the K seventh terminals in the terminal set associated with the first terminal and the fifth terminal, and the transmission speed of the first link;
所述第一终端将L个第七链路对应的第七终端确定为所述第六终端,其中,L个第七链路的传输速度大于所述第一链路的传输速度,L为小于或等于M且大于或等于1的正整数;The first terminal determines the seventh terminal corresponding to the L seventh links as the sixth terminal, wherein the transmission speed of the L seventh links is greater than the transmission speed of the first link, and L is less than or a positive integer equal to M and greater than or equal to 1;
其中,所述第一终端与任一第七终端之间的第八链路为基于第一预设通信协议的 通信链路,所述任一第七终端与所述第五终端之间的第七链路为基于第二预设通信协议的通信链路,所述第二预设通信协议所指示的最大传输速度与所述第一预设通信协议所指示的最大传输速度之间的差值,大于第一速度阈值。Wherein, the eighth link between the first terminal and any seventh terminal is a communication link based on the first preset communication protocol, and the eighth link between the any seventh terminal and the fifth terminal Seven links are communication links based on a second preset communication protocol, and the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol , greater than the first speed threshold.
可选地,在所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端之前,所述方法还包括:Optionally, before the first terminal determines a sixth terminal from the K seventh terminals included in the terminal set associated with the fifth terminal according to the second selection notification, the method further includes:
所述第一终端接收所述第五终端发送的所述K个第七终端的终端信息。The first terminal receives the terminal information of the K seventh terminals sent by the fifth terminal.
第三方面,本申请实施例提供一种数据传输装置,该数据传输装置可以设置与终端设备中,且该数据传输装置可以用于实现第一方面任一项或第二方面任一项所述的方法。In a third aspect, an embodiment of the present application provides a data transmission apparatus, the data transmission apparatus can be set in a terminal device, and the data transmission apparatus can be used to implement any one of the first aspect or the second aspect. Methods.
第四方面,本申请实施例提供一种终端设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面中任一项或第二方面任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a terminal device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute any one of the first aspect or any of the second aspect when invoking the computer program. one of the methods described.
第五方面,本申请实施例提供一种芯片系统,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面中任一项或第二方面任一项所述的方法。In a fifth aspect, an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement any of the above first aspects. The method of any one of the one or second aspects.
其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。Wherein, the chip system may be a single chip or a chip module composed of multiple chips.
第六方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面中任一项或第二方面任一项所述的方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned first aspect or any one of the second aspect is implemented. method.
第七方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项或第二方面任一项所述的方法。In a seventh aspect, an embodiment of the present application provides a computer program product that, when the computer program product runs on a terminal device, enables the terminal device to execute the method described in any one of the first aspect or the second aspect.
可以理解的是,上述第二方面至第七方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the foregoing second aspect to the seventh aspect, reference may be made to the relevant descriptions in the foregoing first aspect, which will not be repeated here.
图1为本申请实施例所提供的一种终端设备的结构示意图;FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图2为本申请实施例所提供一种传输系统的结构示意图;2 is a schematic structural diagram of a transmission system provided by an embodiment of the present application;
图3为本申请实施例所提供的一种终端设备关联方法的流程图;3 is a flowchart of a method for associating a terminal device provided by an embodiment of the present application;
图4为本申请实施例提供的另一种传输系统的结构示意;FIG. 4 is a schematic structural diagram of another transmission system provided by an embodiment of the present application;
图5为本申请实施例提供的一种关联提示界面的示意图;5 is a schematic diagram of an association prompt interface provided by an embodiment of the present application;
图6为本申请实施例提供的另一种关联提示界面的示意图;6 is a schematic diagram of another association prompt interface provided by an embodiment of the present application;
图7为本申请实施例所提供的一种数据传输方法的流程图;7 is a flowchart of a data transmission method provided by an embodiment of the present application;
图8为本申请实施例提供的一种数据传输界面的示意图;8 is a schematic diagram of a data transmission interface provided by an embodiment of the present application;
图9为本申请实施例提供的另一种传输系统的结构示意;FIG. 9 is a schematic structural diagram of another transmission system provided by an embodiment of the present application;
图10为本申请实施例提供的另一种传输系统的结构示意;FIG. 10 is a schematic structural diagram of another transmission system provided by an embodiment of the present application;
图11为本申请实施例提供的一种传输提示信息显示界面的示意图;11 is a schematic diagram of a transmission prompt information display interface provided by an embodiment of the present application;
图12为本申请实施例提供的另一种传输系统的结构示意;FIG. 12 is a schematic structural diagram of another transmission system provided by an embodiment of the present application;
图13为本申请实施例所提供的另一种终端设备的结构示意图。FIG. 13 is a schematic structural diagram of another terminal device provided by an embodiment of the present application.
本申请实施例提供的数据传输方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、 笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等终端设备上,本申请实施例对终端设备的具体类型不作任何限制。The data transmission method provided by the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers On terminal devices such as (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), the embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
请参照图1,为本申请所提供的一种终端设备100的结构示意图。终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。Please refer to FIG. 1 , which is a schematic structural diagram of a terminal device 100 provided by the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the terminal device 100 . In other embodiments of the present application, the terminal device 100 may include more or less components than those shown in the drawings, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是终端设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the terminal device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。减少了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are reduced and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K, 使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the terminal device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the terminal device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the terminal device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminal devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the terminal device 100 . In other embodiments of the present application, the terminal device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the terminal device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还 可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如Wi-Fi网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the terminal device 100 including wireless local area networks (WLAN) (such as Wi-Fi networks), bluetooth (BT), global navigation satellite system (GNSS) ), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN, NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the terminal device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the terminal device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the terminal device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the terminal device 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal device 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。 Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the terminal device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 . The terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
为了便于理解本申请施例中的技术方案,下面首先对本申请实施例的应用场景予以介绍。In order to facilitate understanding of the technical solutions in the embodiments of the present application, the following first introduces the application scenarios of the embodiments of the present application.
随着终端技术的发展,终端设备的种类和数量都在不断增加。这些终端设备可以独立运行来实现某些功能,也可以与其他终端设备进行通信来实现数据的互通和互换。例如,在一些场景中,终端设备包括手机和智能手表,手机可以将歌曲发送到智能手表上,智能手表接收并播放该歌曲;或者,手机可以向智能手表发送图像,智能手表可以接收并将该图像设置为表盘背景;或者,智能手表可以采集用户的行走步数、脉搏或血压等健康数据,并将该健康数据发送给手机,手机可以对这些健康数据进行展示,也可以进一步对这些健康数据分析处理,向用户展示处理结果等等。可以看出,终端设备之间的数据传输是一项很重要的步骤。With the development of terminal technology, the types and numbers of terminal devices are increasing. These terminal devices can operate independently to realize certain functions, and can also communicate with other terminal devices to realize data intercommunication and exchange. For example, in some scenarios, the terminal device includes a mobile phone and a smart watch. The mobile phone can send a song to the smart watch, and the smart watch can receive and play the song; or, the mobile phone can send an image to the smart watch, and the smart watch can receive and play the song. The image is set as the dial background; alternatively, the smart watch can collect health data such as the user's walking steps, pulse or blood pressure, and send the health data to the mobile phone. Analyze processing, display processing results to users, etc. It can be seen that data transmission between terminal devices is a very important step.
请参照图2,为本申请实施例所提供的一种数据传输系统。该系统可以包括第一终端210、第二终端220以及至少一个第三终端230(图2中示出3个)。其中,第一终端210和第三终端230可以为手机,第二终端220可以为智能手表。第一终端210、第二终端220和第三终端230可以比如图1所示的终端设备100包括更多或更少的模块。在一些实施例中,第一终端210和第三终端230可以包括无线通信模块160和移动通信模块150,第二终端220可以不包括移动通信模块150。Please refer to FIG. 2 , which is a data transmission system provided by an embodiment of the present application. The system may include a first terminal 210, a second terminal 220, and at least one third terminal 230 (three are shown in FIG. 2). The first terminal 210 and the third terminal 230 may be mobile phones, and the second terminal 220 may be a smart watch. The first terminal 210 , the second terminal 220 and the third terminal 230 may include more or less modules than the terminal device 100 shown in FIG. 1 . In some embodiments, the first terminal 210 and the third terminal 230 may include the wireless communication module 160 and the mobile communication module 150 , and the second terminal 220 may not include the mobile communication module 150 .
在一些实施例中,当第一终端210需要向第二终端220发送数据时,第一终端210可以与第二终端220建立通信链路,然后将该数据通过该通信链路发送给第二终端220。可以理解的是,由于该通信链路严格受到第一终端210和第二终端220的硬件条件和软件条件的限制,因此该通信链路的传输速度也会存在瓶颈,比如第二终端220只能够建立蓝牙通信链路,那么无论第一终端210是否还能够建立除蓝牙通信链路之外的其他类型的通信链路,第一终端210和第二终端220都只能够通过蓝牙通信链路来传输数据,从而导致数据传输的效率较低。另外,第一终端210与第二终端220之间的通信链路的传输速度还可能会受第一终端210与第二终端220之间的距离影响,距离越大,该通信链路的传输速度越低。In some embodiments, when the first terminal 210 needs to send data to the second terminal 220, the first terminal 210 may establish a communication link with the second terminal 220, and then send the data to the second terminal through the communication link 220. It can be understood that, since the communication link is strictly limited by the hardware and software conditions of the first terminal 210 and the second terminal 220, there will also be a bottleneck in the transmission speed of the communication link. For example, the second terminal 220 can only Establish a Bluetooth communication link, then no matter whether the first terminal 210 can also establish other types of communication links other than the Bluetooth communication link, the first terminal 210 and the second terminal 220 can only transmit through the Bluetooth communication link data, resulting in inefficient data transmission. In addition, the transmission speed of the communication link between the first terminal 210 and the second terminal 220 may also be affected by the distance between the first terminal 210 and the second terminal 220. The greater the distance, the higher the transmission speed of the communication link. lower.
例如,第一终端210和第二终端220中设置有蓝牙模块。用户通过第一终端210拍摄了一张相片,并触发第一终端210通过蓝牙模块将该相片发送至第二终端220。第一终 端210通过蓝牙模块,建立与第二终端220之间的基于蓝牙协议的通信链路(即蓝牙通信链路),并通过该通信链路将该相片发送给第二终端220。但受第一终端210和第二终端220中蓝牙模块的硬件条件和软件条件限制,该通信链路的传输速度较低。而随着第一终端210与第二终端220之间距离的增大,该传输速度还会进一步降低。在这种情况下,显然无论对于用户还是对于第一终端210或第二终端220而言,并没有较好的补救措施。如果提升硬件条件或软件条件来改良传输速度,则需要相应的时间,第一终端210当下的数据传输需求不能被满足,且即便提升了第一终端210或第二终端220的硬件条件或软件条件,或者提醒用户将第一终端210靠近第二终端220之间的距离,第一终端210与第二终端220之间的数据传输仍然会严格受到第一终端210与第二终端220的限制,难以有效提升第一终端210向第二终端220发送数据的效率。For example, the first terminal 210 and the second terminal 220 are provided with a Bluetooth module. The user takes a photo through the first terminal 210 and triggers the first terminal 210 to send the photo to the second terminal 220 through the Bluetooth module. The first terminal 210 establishes a Bluetooth protocol-based communication link (ie, a Bluetooth communication link) with the second terminal 220 through the Bluetooth module, and sends the photo to the second terminal 220 through the communication link. However, limited by the hardware conditions and software conditions of the Bluetooth modules in the first terminal 210 and the second terminal 220, the transmission speed of the communication link is relatively low. However, as the distance between the first terminal 210 and the second terminal 220 increases, the transmission speed will further decrease. In this case, obviously, there is no better remedy for the user or the first terminal 210 or the second terminal 220 . If the hardware conditions or software conditions are improved to improve the transmission speed, corresponding time is required, the current data transmission requirements of the first terminal 210 cannot be satisfied, and even if the hardware conditions or software conditions of the first terminal 210 or the second terminal 220 are improved , or remind the user to move the first terminal 210 close to the distance between the second terminal 220, the data transmission between the first terminal 210 and the second terminal 220 will still be strictly limited by the first terminal 210 and the second terminal 220, and it is difficult to The efficiency of sending data from the first terminal 210 to the second terminal 220 is effectively improved.
为解决这一技术问题,本申请实施例提供了一种数据传输方法。当第一终端210确定通过与第二终端220的之间的第一链路发送第一数据时,如果第一链路的传输速度,小于第二终端220与第三终端230之间的第二链路和第一终端210与第三终端230之间的第三链路的平均传输速度,则可以通过第二链路以及第一终端210与第三终端230之间的第三链路,向第二终端220传输第一数据中的至少一部分数据。那么第二终端220可以接收第一数据的至少部分数据。To solve this technical problem, an embodiment of the present application provides a data transmission method. When the first terminal 210 determines to send the first data through the first link with the second terminal 220, if the transmission speed of the first link is less than the second terminal 220 and the third terminal 230 link and the average transmission speed of the third link between the first terminal 210 and the third terminal 230, then the second link and the third link between the first terminal 210 and the third terminal 230 can be transmitted to The second terminal 220 transmits at least a part of the first data. Then the second terminal 220 may receive at least part of the first data.
假设某数据的大小为1,第一链路的传输速度为x,第二链路的传输速度为y,第三链路的传输速度为z。由于在实际应用中,当第一终端210通过第三链路向第三终端230传输数据时,第三终端230也可以通过第二链路向第二终端220传输数据,即实际的数据传输过程可以不是串行的,因此,第一终端210通过第三链路和第二链路向第二终端220传输该数据的传输速度h大于或等于第二链路和第三链路的平均传输速度yz/(y+z),且h小于y或z。当第一终端210通过第二链路和第三链路向第二终端220传输该数据时,传输时长小于或等于(y+z)/yz、大于1/y或1/z,且该传输时长无限趋近于1/y和1/z中的较大值。那么可以看出,只要第三链路和第二链路的平均传输速度(y+z)/yz大于第一链路的传输速度x,第一终端210通过第三链路和第二链路向第二终端220传输该数据所用的时长,就会小于第一终端210通过第一链路向第二终端220传输该数据所用的时长。也即是,第一终端210与第二终端220之间的数据传输,不再完全局限于第一终端210和第二终端220的硬件条件或软件条件限制,第一终端210可以通过其他的第三终端230,选择传输速度更快的通信链路来向第二终端220发送第一数据中的至少部分数据,从而一定程度或最大限度地减少向第二终端220发送第一数据的时长,提高传输效率。Suppose the size of a certain data is 1, the transmission speed of the first link is x, the transmission speed of the second link is y, and the transmission speed of the third link is z. Because in practical applications, when the first terminal 210 transmits data to the third terminal 230 through the third link, the third terminal 230 can also transmit data to the second terminal 220 through the second link, that is, the actual data transmission process It may not be serial, therefore, the transmission speed h at which the first terminal 210 transmits the data to the second terminal 220 through the third link and the second link is greater than or equal to the average transmission speed of the second link and the third link yz/(y+z), and h is less than y or z. When the first terminal 210 transmits the data to the second terminal 220 through the second link and the third link, the transmission duration is less than or equal to (y+z)/yz, greater than 1/y or 1/z, and the transmission duration The duration infinitely approaches the larger of 1/y and 1/z. Then it can be seen that as long as the average transmission speed (y+z)/yz of the third link and the second link is greater than the transmission speed x of the first link, the first terminal 210 can pass the third link and the second link The time period used for transmitting the data to the second terminal 220 will be less than the time period used by the first terminal 210 for transmitting the data to the second terminal 220 through the first link. That is, the data transmission between the first terminal 210 and the second terminal 220 is no longer completely limited by the hardware conditions or software conditions of the first terminal 210 and the second terminal 220, and the first terminal 210 can pass other The third terminal 230 selects a communication link with a faster transmission speed to send at least part of the first data to the second terminal 220, so as to reduce the duration of sending the first data to the second terminal 220 to a certain extent or to a maximum extent, and improve the transmission efficiency.
在上述介绍中第一终端210是作为数据发送方,但可以理解的是,在实际应用中,第一终端220也可以作为数据接收方。请继续参照图2,在一些实施例中,该数据传输系统还包括第五终端240和至少一个第六终端250(图2仅示出1个)。前述相似的,第五终端240也可以在确定需要通过与第一终端210之间的第四链路传输第二数据,且确定第四链路的传输速度小于第五链路和第六链路的平均传输速度时,通过第六链路和第五链路向第一终端210传输第二数据的至少部分数据,其中,第五链路为第一终端210与第六终端250之间的通信链路,第六链路为第五终端240与第六终端250之间的通信链路。In the above description, the first terminal 210 is used as a data sender, but it can be understood that, in practical applications, the first terminal 220 can also be used as a data receiver. Please continue to refer to FIG. 2 , in some embodiments, the data transmission system further includes a fifth terminal 240 and at least one sixth terminal 250 (only one is shown in FIG. 2 ). Similar to the foregoing, the fifth terminal 240 may also determine that the second data needs to be transmitted through the fourth link with the first terminal 210, and determine that the transmission speed of the fourth link is lower than that of the fifth link and the sixth link When the average transmission speed of The sixth link is a communication link between the fifth terminal 240 and the sixth terminal 250 .
请继续参照图2,在一些实施例中,数据传输系统还可以包括第八终端260,第八 终端260与第二终端220之间的通信链路为第九链路,第八终端260与第一终端210之间的通信链路为第十通信链路。第八终端260作为数据发送方,第二终端220作为数据接收方,第一终端210作为数据转发方。当第八终端260确定向第二终端220发送第三数据时,可以按照前述中与第一终端210作为数据发送方相似的方式,通过第九链路和第一链路,向第二终端220发送第三数据的至少部分数据,那么前述中的第一数据可以是第一终端210接收到的来自第八终端260的第三数据的至少部分数据。Please continue to refer to FIG. 2, in some embodiments, the data transmission system may further include an eighth terminal 260, the communication link between the eighth terminal 260 and the second terminal 220 is a ninth link, and the eighth terminal 260 and the The communication link between a terminal 210 is the tenth communication link. The eighth terminal 260 acts as a data sender, the second terminal 220 acts as a data receiver, and the first terminal 210 acts as a data forwarder. When the eighth terminal 260 determines to send the third data to the second terminal 220, it can send the third data to the second terminal 220 through the ninth link and the first link in a manner similar to that of the first terminal 210 as the data sender. If at least part of the third data is sent, the aforementioned first data may be at least part of the third data received by the first terminal 210 from the eighth terminal 260 .
需要说明的是,上述第一终端210、第二终端220、第三终端230、第五终端240、第六终端250和第八终端260的各部分功能可以由终端的处理器运行各自安装的应用程序(application,APP)来实现。It should be noted that, each part of the functions of the first terminal 210 , the second terminal 220 , the third terminal 230 , the fifth terminal 240 , the sixth terminal 250 and the eighth terminal 260 can be run by the processors of the terminals respectively installed applications Program (application, APP) to achieve.
还需要说明的是,本申请仅以上述图2为例,对本申请所提供的数据传输系统进行介绍,但并不对第一终端210、第二终端220、第三终端230、第五终端240、第六终端250和第八终端260的类型构成任何限定。可以理解的是,在实际应用中,第一终端210、第二终端220、第三终端230、第五终端240、第六终端250和第八终端260并不限于手机或智能手表。It should also be noted that this application only takes the above-mentioned FIG. 2 as an example to introduce the data transmission system provided in this application, but does not describe the first terminal 210 , the second terminal 220 , the third terminal 230 , the fifth terminal 240 , The types of the sixth terminal 250 and the eighth terminal 260 constitute any limitation. It can be understood that, in practical applications, the first terminal 210 , the second terminal 220 , the third terminal 230 , the fifth terminal 240 , the sixth terminal 250 and the eighth terminal 260 are not limited to mobile phones or smart watches.
由上述图2可知,第一终端210需要与至少一个第三终端230关联,然后便可以通过第三终端230向第二终端220传输数据,因此,下面也将按照终端设备关联以及数据传输的顺序,以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。It can be seen from the above FIG. 2 that the first terminal 210 needs to be associated with at least one third terminal 230, and then data can be transmitted to the second terminal 220 through the third terminal 230. Therefore, the following will also follow the sequence of terminal device association and data transmission. , the technical solutions of the present application will be described in detail with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
请参照图3,为本申请实施例所提供的一种终端设备关联方法的流程图。需要说明的是,该方法可以用于图1或图2所示的任一终端设备中,且该方法并不以图3以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:Please refer to FIG. 3 , which is a flowchart of a method for associating a terminal device provided by an embodiment of the present application. It should be noted that the method can be used in any terminal device shown in FIG. 1 or FIG. 2 , and the method is not limited to the specific order described in FIG. 3 and the following. It should be understood that in other embodiments , the order of some steps in this method can be exchanged with each other according to actual needs, or some of the steps can also be omitted or deleted. The method includes the following steps:
S301,第一终端向第四终端发送关联请求。S301, the first terminal sends an association request to a fourth terminal.
其中,第一终端可以通过搜索或者其他方式,获取到第四终端的终端信息,从而基于该终端信息与第四终端建立通信链路,并通过该通信链路向第四终端发送关联请求。该关联请求可以请求将第四终端与第一终端关联,从而将第四终端设置为第一终端的资源池,该关联请求中可以携带第一终端的终端信息。Wherein, the first terminal may obtain terminal information of the fourth terminal by searching or other methods, thereby establishing a communication link with the fourth terminal based on the terminal information, and sending an association request to the fourth terminal through the communication link. The association request may request to associate the fourth terminal with the first terminal, thereby setting the fourth terminal as the resource pool of the first terminal, and the association request may carry terminal information of the first terminal.
需要说明的是,终端信息可以用于说明终端设备的身份,以便于其他终端设备基于该终端信息,与该终端信息对应的终端设备建立通信链路。例如s,该终端信息可以包括设备标识,还可以包括终端设备的密码。可选地,该终端信息可以包括蓝牙名称和SSID中的至少一个。It should be noted that the terminal information may be used to describe the identity of the terminal device, so that other terminal devices can establish a communication link with the terminal device corresponding to the terminal information based on the terminal information. For example, s, the terminal information may include the device identification, and may also include the password of the terminal device. Optionally, the terminal information may include at least one of a Bluetooth name and an SSID.
还需要说明的是,资源池可以用于向终端设备提供该资源池所关联的另一终端设备的数据。比如,当第四终端为第一终端的资源池时,第四终端可以用于向第二终端提供来自第一终端的数据。It should also be noted that the resource pool may be used to provide the terminal device with data of another terminal device associated with the resource pool. For example, when the fourth terminal is the resource pool of the first terminal, the fourth terminal may be used to provide data from the first terminal to the second terminal.
S302,第四终端基于该关联请求向第一终端发送关联响应。S302, the fourth terminal sends an association response to the first terminal based on the association request.
其中,第四终端可以在接收到关联请求时,可以向第四终端方发送关联响应,该关联响应中可以携带第四终端的终端信息。The fourth terminal may send an association response to the fourth terminal party when receiving the association request, and the association response may carry terminal information of the fourth terminal.
在一些实施例中,第四终端在接收到关联请求时,可以向用户发出第一关联提示 信息,以提示用户即将作为第一终端的资源池,并在接收到用户的确认操作时向第一终端发送关联响应。也即是,在将第四终端作为第一终端的资源池之前,可以获取第四终端的用户的授权,以确保第四终端以及后续数据传输的安全性。In some embodiments, when receiving the association request, the fourth terminal may send first association prompt information to the user to prompt the user to be the resource pool of the first terminal, and notify the first terminal when receiving the user's confirmation operation. The terminal sends an association response. That is, before using the fourth terminal as the resource pool of the first terminal, the authorization of the user of the fourth terminal may be obtained to ensure the security of the fourth terminal and subsequent data transmission.
S303,第一终端向第四终端发送第二终端的终端信息,并向第二终端发送第四终端的终端信息。S303, the first terminal sends the terminal information of the second terminal to the fourth terminal, and sends the terminal information of the fourth terminal to the second terminal.
其中,第一终端可以通过与第四终端之间的通信链路,向第四终端发送第二终端的终端信息。第一终端也可以按照与第四终端建立通信链路相似的方式,与第二终端建立通信链路,并通过与第二终端之间的通信链路,向第二终端发送第四终端的终端信息。The first terminal may send the terminal information of the second terminal to the fourth terminal through the communication link with the fourth terminal. The first terminal may also establish a communication link with the second terminal in a manner similar to establishing a communication link with the fourth terminal, and send the terminal of the fourth terminal to the second terminal through the communication link with the second terminal. information.
第一终端和第二终端在存储第四终端的终端信息之前,也可以向用户发出第二关联提示信息,以提示用户即将将第四终端作为第一终端的资源池,并在接收到用户的确认操作时存储第四终端的终端信息。也即是,第一终端和第二终端也可以在确定将第四终端作为第一终端的资源池之前,获取用户授权,以确保后续数据传输的安全性。Before storing the terminal information of the fourth terminal, the first terminal and the second terminal may also send second associated prompt information to the user to remind the user that the fourth terminal will be used as the resource pool of the first terminal, and after receiving the user's The terminal information of the fourth terminal is stored when the operation is confirmed. That is, the first terminal and the second terminal may also obtain user authorization before determining that the fourth terminal is used as the resource pool of the first terminal, so as to ensure the security of subsequent data transmission.
第二终端可以在接收第一终端发送的第四终端的终端信息时,将第四终端的终端信息与第一终端的终端信息对应存储。相似的,第一终端在获取到第四终端的终端信息时,可以存储第四终端的终端信息,第四终端在获取到第二终端的终端信息时,可以存储第二终端的终端信息。在一些实施例中,第一终端或第二终端,可以不存储第四终端的终端信息。在另一些实施例中,第一终端或第二终端,可以将第四终端的终端信息与第一终端的终端信息,存储至于资源池关联关系中,该资源池关联关系可以用于指示与任意终端所关联的终端集合。When receiving the terminal information of the fourth terminal sent by the first terminal, the second terminal may store the terminal information of the fourth terminal in correspondence with the terminal information of the first terminal. Similarly, the first terminal may store the terminal information of the fourth terminal when acquiring the terminal information of the fourth terminal, and the fourth terminal may store the terminal information of the second terminal when acquiring the terminal information of the second terminal. In some embodiments, the first terminal or the second terminal may not store the terminal information of the fourth terminal. In other embodiments, the first terminal or the second terminal may store the terminal information of the fourth terminal and the terminal information of the first terminal in the resource pool association relationship, and the resource pool association relationship may be used to indicate the relationship with any The terminal set associated with the terminal.
需要说明的是,当第四终端和第二终端都存储有对端的终端信息时,后续第四终端与第二终端可以自动建立通信链路,而不需要经过鉴权等其他操作,不仅效率更高,也能够减少用户感知,提高用户体验。It should be noted that when both the fourth terminal and the second terminal store the terminal information of the opposite terminal, the subsequent fourth terminal and the second terminal can automatically establish a communication link without the need for other operations such as authentication, which is not only more efficient. It can also reduce user perception and improve user experience.
在一些实施例中,由于第四终端或第二终端只要有一个终端设备有另一终端设备的终端信息,都可以建立第四终端与第二终端之间的通信连接,因此第一终端可以不向第四终端发送第二终端的终端信息,或者,第一终端可以不向第二终端发送第四终端的终端信息。In some embodiments, since the fourth terminal or the second terminal can establish a communication connection between the fourth terminal and the second terminal as long as one terminal device has the terminal information of the other terminal device, the first terminal may not The terminal information of the second terminal is sent to the fourth terminal, or the first terminal may not send the terminal information of the fourth terminal to the second terminal.
例如,请参照图4,手机A(图4中的210)搜索智能手表(图4中的220)的蓝牙名称并基于智能手表的蓝牙名称与智能手表建立蓝牙通信链路,手机A还可以搜索手机B的SSID并通过手机B(图4中的230)的SSID与手机B建立Wi-Fi通信链路。手机A可以显示关联提示界面如图5所示,在该关联提示界面中包括搜索到的设备列表,该设备列表中包括手机B以及可以用于显示更多设备的下拉菜单,该关联提示界面还包括确定按钮、取消按钮和“什么是资源池”等帮助按钮。当手机A基于手机B左侧的复选框接收到用户的选定操作并基于确定按钮接收到用户的点击操作时,可以通过与手机B之间的Wi-Fi通信链路向手机B发送关联请求,以请求将手机B作为手机A的资源池。另外,当手机A基于帮助按钮接收到用户的点击操作时,可以向用户显示更多的关于资源池的解释信息。手机B接收手机A发送的关联请求并显示关联提示界面如图6所示。在图6中,手机B通过弹窗提示用户即将与手机A建立关联,是否确定作为手机A的资源池,还提供了同意按钮和拒绝按钮,在该弹窗的底部还显示有什么是资源池等帮助按钮。 当手机B基于同意按钮接收到用户的点击操作时,即通过与手机A之间的Wi-Fi通信链路向手机A发送关联响应;当手机B基于拒绝按钮接收到用户的点击操作时,可以不对手机A的关联请求进行响应;当手机B基于帮助按钮接收到用户的点击操作时,可以向用户显示更多的关于资源池的解释信息。手机A在接收到手机B的关联响应时,可以通过与智能手表之间的蓝牙通信链路,将手机B的蓝牙名称和密码发送给智能手表,通过与手机B之间的Wi-Fi通信链路,将智能手表的蓝牙名称和密码发送给手机B,从而使得手机B和智能手表分别获取到对端的终端信息。For example, referring to FIG. 4, mobile phone A (210 in FIG. 4) searches for the Bluetooth name of the smart watch (220 in FIG. 4) and establishes a Bluetooth communication link with the smart watch based on the Bluetooth name of the smart watch, and mobile phone A can also search The SSID of the mobile phone B and establishes a Wi-Fi communication link with the mobile phone B through the SSID of the mobile phone B (230 in FIG. 4 ). Mobile phone A can display the association prompt interface as shown in Figure 5, the association prompt interface includes a list of searched devices, the device list includes mobile phone B and a drop-down menu that can be used to display more devices, and the association prompt interface also Includes an OK button, a Cancel button, and help buttons such as "What is a Resource Pool". When mobile phone A receives the user's selection operation based on the checkbox on the left side of mobile phone B and receives the user's click operation based on the OK button, it can send an association to mobile phone B through the Wi-Fi communication link with mobile phone B Request to request to use mobile phone B as the resource pool of mobile phone A. In addition, when the mobile phone A receives the user's click operation based on the help button, more explanatory information about the resource pool can be displayed to the user. The mobile phone B receives the association request sent by the mobile phone A and displays the association prompt interface as shown in FIG. 6 . In Figure 6, mobile phone B prompts the user to establish an association with mobile phone A through a pop-up window, whether it is determined to be the resource pool of mobile phone A, and also provides an agree button and a reject button, and what is the resource pool is also displayed at the bottom of the pop-up window. Wait for the help button. When mobile phone B receives the user's click operation based on the agree button, it sends an association response to mobile phone A through the Wi-Fi communication link with mobile phone A; when mobile phone B receives the user's click operation based on the reject button, it can Do not respond to the association request of mobile phone A; when mobile phone B receives the user's click operation based on the help button, it can display more explanatory information about the resource pool to the user. When mobile phone A receives the association response from mobile phone B, it can send the Bluetooth name and password of mobile phone B to the smart watch through the Bluetooth communication link with the smart watch. The Bluetooth name and password of the smart watch are sent to the mobile phone B, so that the mobile phone B and the smart watch can obtain the terminal information of the opposite end respectively.
第一终端可以通过执行上述S301-S303,与M个第四终端相关联,M≥1且M为正整数,从而得到第一终端关联的终端集合,该终端集合包括M个第四终端。第四终端可以作为第一终端的资源池,那么后续第一终端便可以通过第四终端向第二终端发送数据。当然,在一些实施例中,第一终端和第二终端可以将第四终端的终端信息删除,从而不再将第四终端作为第一终端的资源池。相应的,第四终端也可以将第二终端的终端信息删除,以不再作为第一终端的资源池。The first terminal can be associated with M fourth terminals by performing the above S301-S303, where M≧1 and M is a positive integer, so as to obtain a terminal set associated with the first terminal, where the terminal set includes M fourth terminals. The fourth terminal can be used as the resource pool of the first terminal, and then the first terminal can send data to the second terminal through the fourth terminal subsequently. Of course, in some embodiments, the first terminal and the second terminal may delete the terminal information of the fourth terminal, so that the fourth terminal is no longer used as the resource pool of the first terminal. Correspondingly, the fourth terminal may also delete the terminal information of the second terminal so as not to be used as the resource pool of the first terminal.
例如,智能手表分别获取到手机A发送的手机B、手机C、手机D和手机E的蓝牙名称,将手机B、手机C、手机D和手机E的蓝牙名称,存储在如下表1所示的资源池关联关系中。For example, the smart watch obtains the Bluetooth names of mobile phone B, mobile phone C, mobile phone D, and mobile phone E sent by mobile phone A, respectively, and stores the Bluetooth names of mobile phone B, mobile phone C, mobile phone D, and mobile phone E in the following table 1. Resource pool association.
表1Table 1
源端source | 资源池端Resource pool side |
手机Amobile phone A | 手机B、手机C、手机D和手机EPhone B, Phone C, Phone D, and Phone E |
手机Bmobile phone B | 手机C和手机DPhone C and Phone D |
手机Emobile phone | 手机F和手机GPhone F and Phone G |
…… | ……... |
如上表1所示,该资源池关联关系包括源端和资源池端,其中,源端可以为数据原始来源的终端设备,资源池端为与源端关联的其他终端设备。比如,表1第二行即可以说明手机B、手机C、手机D和手机E为手机A的资源池。As shown in Table 1 above, the resource pool association relationship includes a source end and a resource pool end, where the source end may be the terminal device from which the data is originally sourced, and the resource pool end is other terminal devices associated with the source end. For example, the second row of Table 1 can indicate that mobile phone B, mobile phone C, mobile phone D, and mobile phone E are resource pools of mobile phone A.
需要说明的是,本申请实施例仅以上述表1对资源池关联关系进行说明,上述表1并不对资源池关联关系构成任何限定。It should be noted that, in this embodiment of the present application, only the above-mentioned Table 1 is used to describe the resource pool association relationship, and the above-mentioned Table 1 does not constitute any limitation on the resource pool association relationship.
请参照图7,为本申请实施例所提供的一种数据传输方法的流程图。需要说明的是,该方法可以用于图1或图2所示的任一终端设备中,且该方法并不以图3以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:Please refer to FIG. 7 , which is a flowchart of a data transmission method provided by an embodiment of the present application. It should be noted that the method can be used in any terminal device shown in FIG. 1 or FIG. 2 , and the method is not limited to the specific order described in FIG. 3 and the following. It should be understood that in other embodiments , the order of some steps in this method can be exchanged with each other according to actual needs, or some of the steps can also be omitted or deleted. The method includes the following steps:
S701,第一终端确定通过与第二终端的第一链路传输第一数据。S701, the first terminal determines to transmit the first data through the first link with the second terminal.
其中,第一数据可以是第二终端当前存储的任何数据。Wherein, the first data may be any data currently stored by the second terminal.
在一些实施例中,第一终端可以在基于第一数据接收到向第二终端的传输指令时,确定通过与第二终端之间的第一链路传输第一数据,该传输指令可以用于指示第一链路的属性信息,其中,第一链路的属性信息可以包括第一链路所基于的通信协议和加密方式至少一个,当然,在实际应用中,第一链路的属性信息还可以包括更多与第一链路相关的信息,本申请实施例对此第一链路的属性信息所包括的内容不做具体限定。In some embodiments, the first terminal may determine to transmit the first data through the first link with the second terminal when receiving a transmission instruction to the second terminal based on the first data, and the transmission instruction may be used for Indicates attribute information of the first link, where the attribute information of the first link may include at least one of a communication protocol and an encryption method on which the first link is based. Of course, in practical applications, the attribute information of the first link also includes More information related to the first link may be included, and this embodiment of the present application does not specifically limit the content included in the attribute information of the first link.
例如,请参照图8,用户通过手机A浏览相册,并选择了一张图像,手机A在检测 到针对该图像的选择操作时,弹出显示窗口,该显示窗口顶部显示有当前通过蓝牙搜索到的“我的手表”、“手机B”和“手机C”,底部显示有其他可选的分享方式。当手机A基于“我的手表”接收到用户的选择操作时,即可以确定通过手机A与我的手表之间的通信链路传输该图像。For example, referring to FIG. 8 , the user browses the album through mobile phone A and selects an image, when mobile phone A detects the selection operation for the image, a display window pops up, and the top of the display window displays the current search results through Bluetooth. "My Watch," "Phone B," and "Phone C," with other options for sharing at the bottom. When the mobile phone A receives the user's selection operation based on "my watch", it can be determined that the image is transmitted through the communication link between the mobile phone A and my watch.
在另一些实施例中,第一终端可以在接收其他终端设备(如第八终端)发送的第二终端的终端信息和第一数据时,确定通过与第二终端的第一链路传输第一数据。In other embodiments, the first terminal may determine to transmit the first terminal through the first link with the second terminal when receiving terminal information and first data of the second terminal sent by other terminal devices (eg, the eighth terminal). data.
当然,在实际应用中,第一终端也可以通过其他方式来确定通过与第二终端的第一链路传输第一数据,本申请实施例对第一终端确定通过与第二终端的第一链路传输第一数据的方式,不做具体限定。Of course, in practical applications, the first terminal may also determine to transmit the first data through the first link with the second terminal in other ways. In this embodiment of the present application, the first terminal determines to transmit the first data through the first link with the second terminal. The method for transmitting the first data via the channel is not specifically limited.
S702,第一终端向第二终端发送第一选择通知。S702, the first terminal sends a first selection notification to the second terminal.
其中,第一选择通知用于通知第二终端在与第一终端关联的终端集合包括的M个第四终端中确定第三终端。The first selection notification is used to notify the second terminal to determine the third terminal among the M fourth terminals included in the terminal set associated with the first terminal.
为了避免第一终端向第二终端传输第一数据的效率,完全受第一终端和第二终端的硬件条件和软件条件限制的问题,第一终端可以向第二终端发送第一选择通知,以获取到其他可能用于第一数据传输的第三终端。In order to avoid the problem that the efficiency of transmitting the first data from the first terminal to the second terminal is completely limited by the hardware and software conditions of the first terminal and the second terminal, the first terminal may send a first selection notification to the second terminal to Obtain other third terminals that may be used for the first data transmission.
第一终端可以基于第二终端的终端信息,与第二终端建立第一链路,并通过第一链路向第二终端发送第一选择通知,第一选择通知中可以携带第一终端的终端信息。The first terminal may establish a first link with the second terminal based on the terminal information of the second terminal, and send a first selection notification to the second terminal through the first link, where the first selection notification may carry the terminal of the first terminal information.
在一些实施例中,第一终端关联的终端集合存储在第一终端,因此,第一终端可以向第二终端发送与第一终端关联的终端集合。In some embodiments, the set of terminals associated with the first terminal is stored in the first terminal, so the first terminal may send the set of terminals associated with the first terminal to the second terminal.
在一些实施例中,第一终端可以向第二终端发送第一筛选信息,第一筛选信息可以用指示第二终端获取第三终端的方式或指示对第三终端的限制,比如,第一筛选信息可以包括第一数目阈值,第一数目阈值用于指示第二终端在与第一终端关联的终端集合中确定N个第三终端,M≥N≥1且N为正整数。当然,在实际应用中,第一筛选信息也可以包括更多或更少信息,从而指示第二终端更精准地获取第三终端,进而提高后续第一数据的传输效果,包括更好的传输速度、传输质量或安全性。In some embodiments, the first terminal may send first screening information to the second terminal, and the first screening information may be in a manner of instructing the second terminal to acquire the third terminal or indicating restrictions on the third terminal, for example, the first screening The information may include a first number threshold for instructing the second terminal to determine N third terminals in the terminal set associated with the first terminal, where M≧N≧1 and N is a positive integer. Of course, in practical applications, the first screening information may also include more or less information, so as to instruct the second terminal to acquire the third terminal more accurately, thereby improving the subsequent transmission effect of the first data, including better transmission speed , transmission quality or security.
需要说明的是,第一终端或第二终端可以是通过前述图3所示的终端关联方法得到的第一终端关联的终端集合,也可以是通过其他方式来获取得到,本申请实施例对获取第一终端关联的终端集合的方式不做具体限定。It should be noted that, the first terminal or the second terminal may be a set of terminals associated with the first terminal obtained by the terminal association method shown in FIG. 3, or may be obtained by other methods. The manner of the terminal set associated with the first terminal is not specifically limited.
在一些实施例中,第一终端可以在确定第一终端、第二终端、第一链路或第一数据,满足预设传输条件时,向第二终端发送第一选择通知。其中,预设传输条件用于触发第一终端通过第一终端的资源池,向第二终端发送第一数据的至少部分数据。In some embodiments, the first terminal may send the first selection notification to the second terminal when it is determined that the first terminal, the second terminal, the first link or the first data satisfy a preset transmission condition. The preset transmission condition is used to trigger the first terminal to send at least part of the first data to the second terminal through the resource pool of the first terminal.
需要说明的是,预设传输条件可以通过事先设置得到。在一些实施例中,由于在近距离通信中,传输速度容易受终端设备之间的距离影响,稳定性较差,且某些近距离传输协议所支持的最大传输速度较低,因此第一终端可以在确定第一链路为基于预设近距离通信协议(如蓝牙协议或zigbee协议)的通信链路时,向第二终端发送第一数据选择通知。在一些实施例中,第一终端可以在确定第一数据的大小大于预设数据量大小时,向第二终端发送第一数据。在一些实施例中,第一终端可以在确定第一终端或第二终端的终端标识为第一预设终端标识时,向第二终端发送第一选择通知。当然,在实际应用中,预设传输条件可以包括更多或更少的信息,本申请实施例对此预 设传输条件的具体内容不做限定。It should be noted that the preset transmission conditions can be obtained by setting in advance. In some embodiments, since in short-range communication, the transmission speed is easily affected by the distance between terminal devices, the stability is poor, and the maximum transmission speed supported by some short-range transmission protocols is low, so the first terminal When it is determined that the first link is a communication link based on a preset short-range communication protocol (such as a Bluetooth protocol or a zigbee protocol), a first data selection notification may be sent to the second terminal. In some embodiments, the first terminal may send the first data to the second terminal when it is determined that the size of the first data is greater than the preset data size. In some embodiments, the first terminal may send the first selection notification to the second terminal when it is determined that the terminal identifier of the first terminal or the second terminal is the first preset terminal identifier. Of course, in practical applications, the preset transmission condition may include more or less information, and the specific content of the preset transmission condition is not limited in this embodiment of the present application.
S703,第二终端从与第一终端关联的终端集合获取第三终端的终端信息。S703, the second terminal acquires terminal information of the third terminal from the terminal set associated with the first terminal.
第二终端可以在接收到第一终端发送的第一选择通知时,从与第一终端关联的终端集合包括的M个第四终端中,确定第三终端,进而获取到第三终端的终端信息。在一些实施例中,第二终端可以接收第一终端发送的与第一终端关联的终端集合;在另一些实施例中,第二终端可以从本端获取与第一终端关联的终端集合,其中第二终端所存储的与第一终端关联的终端集合,可以由第二终端事先(比如从第一终端)获取得到。When receiving the first selection notification sent by the first terminal, the second terminal may determine the third terminal from the M fourth terminals included in the terminal set associated with the first terminal, and then obtain the terminal information of the third terminal . In some embodiments, the second terminal may receive the terminal set associated with the first terminal sent by the first terminal; in other embodiments, the second terminal may obtain the terminal set associated with the first terminal from the local terminal, wherein The set of terminals associated with the first terminal stored by the second terminal may be acquired by the second terminal in advance (for example, from the first terminal).
其中,第二终端可以获取第一链路的传输速度、第二终端与第四终端之间的第十一链路之间的传输速度、第一终端与第四终端之间的第十二链路的传输速度,如果第十一链路和第十二链路的平均传输速度,大于第一链路的传输速度,则第二终端可以将该第四终端确定为第三终端,相应的,第二终端可以将与该第四终端之间的第十一链路确定为第二链路,将第一终端与该第四终端之间的第十二链路确定为第三链路。在一些实施例中,如果存在一个以上的第四终端,该第四终端对应的第十一链路和第十二链路的平均传输速度大于第一链路的传输速度,则第二终端可以按照第十一链路和第十二链路的平均传输速度从高到低的顺序,从一个以上的第四终端中选择N个第四终端作为第三终端,N≥1。The second terminal may acquire the transmission speed of the first link, the transmission speed between the eleventh link between the second terminal and the fourth terminal, and the transmission speed of the twelfth link between the first terminal and the fourth terminal If the average transmission speed of the eleventh link and the twelfth link is greater than the transmission speed of the first link, the second terminal may determine the fourth terminal as the third terminal, and accordingly, The second terminal may determine the eleventh link with the fourth terminal as the second link, and the twelfth link between the first terminal and the fourth terminal as the third link. In some embodiments, if there is more than one fourth terminal, and the average transmission speed of the eleventh link and the twelfth link corresponding to the fourth terminal is greater than the transmission speed of the first link, the second terminal may According to the order of the average transmission speed of the eleventh link and the twelfth link from high to low, N fourth terminals are selected from more than one fourth terminal as the third terminals, N≥1.
需要说明的是,第一链路的传输速度可以由第一终端或第二终端对第一链路进行检测得到,第十一链路和第十二链路的平均传输速度可以根据第十一链路的传输速度和第二链路的传输速度确定,第十一链路的传输速度可以由第二终端或第四终端对第十一链路进行检测得到,第十二链路的传输速度可以由第四终端或第一终端对第十二链路进行检测得到。在一些实施例中,第二终端可以通过检测获取第一链路的传输速度和第十一链路的传输速度,并从第一终端或第四终端获取第十二链路的传输速度。当然,第二终端也可以从第一终端获取第一链路的传输速度,和/或,从第四终端获取第十一链路的传输速度。It should be noted that the transmission speed of the first link can be obtained by detecting the first link by the first terminal or the second terminal, and the average transmission speed of the eleventh link and the twelfth link can be determined according to the eleventh link. The transmission speed of the link and the transmission speed of the second link are determined, the transmission speed of the eleventh link can be obtained by detecting the eleventh link by the second terminal or the fourth terminal, and the transmission speed of the twelfth link The twelfth link may be detected by the fourth terminal or the first terminal. In some embodiments, the second terminal may acquire the transmission speed of the first link and the transmission speed of the eleventh link through detection, and acquire the transmission speed of the twelfth link from the first terminal or the fourth terminal. Certainly, the second terminal may also obtain the transmission speed of the first link from the first terminal, and/or obtain the transmission speed of the eleventh link from the fourth terminal.
在一些实施例中,第一终端与任一第四终端之间的第十二链路可以为基于第二预设通信协议的通信链路,该任一第四终端与第二终端之间的十一链路可以为基于第一预设通信协议的通信链路,第二预设通信协议所指示的最大传输速度与第一预设通信协议所指示的最大传输速度之间的差值,可以大于第一速度阈值。其中,第一速度阈值可以通过事先设置得到,当第二预设通信协议所指示的最大传输速度与第一预设通信协议所指示的最大传输速度之间的差值大于第一速度阈值时,相对于通过第十一链路传输数据的时长来说,通过第十二链路传输该数据的时长可以忽略不计。那么,只要第十一链路的传输速度大于第一链路的传输速度,就可以确保第一终端将该数据通过第十二链路和第十一链路传输至第二终端所用的时长,小于第一终端通过第一链路将该数据传输至第二终端所用的时长。因此,第二终端可以仅获取第一链路的传输速度和第十一链路的传输速度,并将N个第十一链路对应的第四终端确定为第三终端,这N个第十一链路的传输速度大于第一链路传输速度。在一些实施例中,在上述基础上,第二中终端可以按照传输速度从高到低的顺序,确定N个第十一链路,并将N个第十一链路对应的第四终端确定为第三终端,其中,N个第十一链路的传输速度可以大 于其余十一链路的传输速度。另外,当第二终端将某一第四终端确定为第三终端时,第二终端与该第四终端之间的第十一链路可以为第二链路,该第四终端与第一终端之间的第十二链路可以为第三链路。In some embodiments, the twelfth link between the first terminal and any fourth terminal may be a communication link based on the second preset communication protocol, and the twelfth link between the any fourth terminal and the second terminal The eleventh link may be a communication link based on the first preset communication protocol, and the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol may be greater than the first speed threshold. The first speed threshold can be obtained by setting in advance, and when the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol is greater than the first speed threshold, The duration of transmitting the data through the twelfth link is negligible relative to the duration of transmitting the data through the eleventh link. Then, as long as the transmission speed of the eleventh link is greater than the transmission speed of the first link, it can be ensured that the first terminal transmits the data to the second terminal through the twelfth link and the eleventh link. It is less than the duration used by the first terminal to transmit the data to the second terminal through the first link. Therefore, the second terminal may only acquire the transmission speed of the first link and the transmission speed of the eleventh link, and determine the fourth terminal corresponding to the N eleventh links as the third terminal, and the N tenth links The transmission speed of one link is greater than the transmission speed of the first link. In some embodiments, on the basis of the above, the second terminal may determine N eleventh links in the order of transmission speed from high to low, and determine the fourth terminal corresponding to the N eleventh links is the third terminal, wherein the transmission speed of the N eleventh links may be greater than the transmission speed of the remaining eleven links. In addition, when the second terminal determines a fourth terminal as the third terminal, the eleventh link between the second terminal and the fourth terminal may be the second link, and the fourth terminal and the first terminal The twelfth link between can be the third link.
例如,第一预设通信协议可以包括前述中的预设近距离通信协议,如蓝牙协议或zigbee协议,第二预设通信协议可以包括基于移动通信协议(如4G或5G)或Wi-Fi协议。For example, the first preset communication protocol may include the aforementioned preset short-range communication protocols, such as the Bluetooth protocol or the zigbee protocol, and the second preset communication protocol may include a mobile communication protocol (such as 4G or 5G) or a Wi-Fi protocol. .
相似的,若第二终端与任一第四终端之间的第十一链路为基于第二预设通信协议的通信链路,第一终端与该任一第四终端之间的第十二链路为基于第一预设通信协议的通信链路,第二终端也可以仅获取第一链路的传输速度和第十二链路的传输速度,从而将N个第十二链路对应的第四终端确定为第三终端,N个第二链路的传输速度可以大于第一链路传输速度。Similarly, if the eleventh link between the second terminal and any fourth terminal is a communication link based on the second preset communication protocol, the twelfth link between the first terminal and any fourth terminal is The link is a communication link based on the first preset communication protocol, and the second terminal may also only obtain the transmission speed of the first link and the transmission speed of the twelfth link, so as to convert the corresponding N twelfth links into The fourth terminal is determined as the third terminal, and the transmission speed of the N second links may be greater than the transmission speed of the first link.
需要说明的是,第二终端可以保留第二终端与除第三终端之外其他第四终端之间的第十一链路,以节省断开第十一链路所耗费的时间,进一步提高效率。当然,第二终端也可以切断第二终端与除第三终端之外其他第四终端之间的第十一链路。相似的,第一终端或除第三终端之外其他第四终端,也可以保留第一中终端与除第三终端之外其他第四终端之间的第十二链路,从而节省断开第十二链路所耗费的时间。当然,第一终端和除第三终端之外其他第四终端,也可以保留第一终端与除第三终端之外其他第四终端之间的第十二链路。It should be noted that the second terminal may retain the eleventh link between the second terminal and the fourth terminal except the third terminal, so as to save the time spent in disconnecting the eleventh link and further improve the efficiency . Of course, the second terminal may also cut off the eleventh link between the second terminal and other fourth terminals except the third terminal. Similarly, the first terminal or other fourth terminals except the third terminal may also reserve the twelfth link between the first middle terminal and the other fourth terminals except the third terminal, so as to save the disconnection of the first terminal. Time spent on twelve links. Of course, the twelfth link between the first terminal and other fourth terminals except the third terminal may also be reserved between the first terminal and other fourth terminals except the third terminal.
在一些实施例中,第二终端可以在确定第三终端时,切断与其他第四终端之间的第十一链路,第二终端还可以指示该其他第四终端或第一终端,切断该其他第四终端与第一终端之间的第十二链路。In some embodiments, the second terminal may cut off the eleventh link with the other fourth terminal when determining the third terminal, and the second terminal may also instruct the other fourth terminal or the first terminal to cut off the The twelfth link between the other fourth terminal and the first terminal.
在一些实施例中,若第二终端在确定第三终端时忽略第一终端与各第四终端之间的第十二链路的传输速度,则第二终端可以在每获取到与一个第四终端之间的第十一链路的传输速度时,就切断与该第四终端之间的第十一链路,第二终端还可以指示该第四终端或第一终端,切断与该第四终端之间的第十二链路。In some embodiments, if the second terminal ignores the transmission speed of the twelfth link between the first terminal and each fourth terminal when determining the third terminal, the second terminal can When the transmission speed of the eleventh link between the terminals is increased, the eleventh link with the fourth terminal is cut off. The second terminal may also instruct the fourth terminal or the first terminal to cut off the link with the fourth terminal. Twelfth link between terminals.
例如,请参照图9,智能手表(图9中的220)在接收到手机A(图9中的210)发送的第一选择通知时,确定手机A关联的终端集合中包括手机B(图9中的271)、手机C(图9中的272)和手机D(图中的273)。智能手表检测得到智能手表与手机A之间的蓝牙通信链路的传输速度为60k/s(千字节/每秒),智能手表与手机B之间的蓝牙通信链路的传输速度为40k/s,智能手表与手机C之间的蓝牙通信链路的传输速度为120k/s,智能手表与手机D之间的蓝牙通信链路的传输速度为80k/s。由于智能手表与手机C之间的蓝牙通信链路的传输速度最大,因此智能手表将手机C确定为第三终端,切断智能手表分别与手机A、手机B和手机D之间的蓝牙通信链路。For example, referring to FIG. 9 , when the smart watch (220 in FIG. 9 ) receives the first selection notification sent by mobile phone A (210 in FIG. 9 ), it determines that the terminal set associated with mobile phone A includes mobile phone B ( FIG. 9 ). 271 in Figure 9), mobile phone C (272 in Figure 9), and mobile phone D (273 in Figure 9). The smart watch detects that the transmission speed of the Bluetooth communication link between the smart watch and mobile phone A is 60k/s (kilobytes per second), and the transmission speed of the Bluetooth communication link between the smart watch and mobile phone B is 40k/s s, the transmission speed of the Bluetooth communication link between the smart watch and the mobile phone C is 120k/s, and the transmission speed of the Bluetooth communication link between the smart watch and the mobile phone D is 80k/s. Since the transmission speed of the Bluetooth communication link between the smart watch and mobile phone C is the highest, the smart watch determines mobile phone C as the third terminal and cuts off the Bluetooth communication link between the smart watch and mobile phone A, mobile phone B and mobile phone D respectively. .
在一些实施例中,若第二终端在确定第三终端时忽略第一终端与各第四终端之间的第十二链路的传输速度,则第二终端可以在获取到第二终端与一个第四终端之间的第十一链路的传输速度,大于第二终端与另一个第四终端之间的第十一链路的传输速度时,第二终端切断传输速度较低的第十一链路,第二终端还可以指示第一终端或传输速度较低的第十一链路对应的第四终端,切断该传输较低的第十一链路。In some embodiments, if the second terminal ignores the transmission speed of the twelfth link between the first terminal and each fourth terminal when determining the third terminal, the second terminal may obtain the second terminal and one When the transmission speed of the eleventh link between the fourth terminals is greater than the transmission speed of the eleventh link between the second terminal and another fourth terminal, the second terminal cuts off the eleventh link with a lower transmission speed link, the second terminal may further instruct the first terminal or the fourth terminal corresponding to the eleventh link with a lower transmission speed to cut off the eleventh link with a lower transmission speed.
在一些实施例中,由于传输速度受终端设备的硬件条件限制,且终端设备的硬件更新周期比较低,甚至某些终端设备在整个生命周期中都不会对硬件进行更新,即对 于不同的终端设备来说,该终端设备的终端标识(如终端名称和终端型号等),与该终端设备所支持的传输速度是相关的。因此,为了提高确定第三终端的效率,第二终端在从与第一终端关联的终端集合确定第三终端时,可以不必获取第四终端与第二终端之间的第十一链路的传输速度,也不必获取第四终端与第一终端之间的第十二链路的传输速度,而是获取第一终端关联的终端集合所包括的各第四终端的终端信息,该终端信息包括终端标识,将第二预设终端标识对应的第四终端确定为第三终端。In some embodiments, since the transmission speed is limited by the hardware conditions of the terminal device, and the hardware update cycle of the terminal device is relatively low, even some terminal devices will not update the hardware in the entire life cycle, that is, for different terminal devices In terms of equipment, the terminal identification (such as terminal name and terminal model, etc.) of the terminal equipment is related to the transmission speed supported by the terminal equipment. Therefore, in order to improve the efficiency of determining the third terminal, when the second terminal determines the third terminal from the terminal set associated with the first terminal, it may not be necessary to acquire the transmission of the eleventh link between the fourth terminal and the second terminal It is not necessary to obtain the transmission speed of the twelfth link between the fourth terminal and the first terminal, but to obtain the terminal information of each fourth terminal included in the terminal set associated with the first terminal, where the terminal information includes the terminal identifier, and the fourth terminal corresponding to the second preset terminal identifier is determined as the third terminal.
例如,智能手表确定与手机A关联的终端集合包括手机B、手机C、手机D和手机E,其中,手机B的型号为mt30,手机C的型号为no1,手机D的型号为mt20,手机E的型号为ooace,且智能手表确定第二预设终端标识为mt30,那么智能手表可以将手机B确定为第三终端。需要说明的是,上述mt30、no1、mt20和ooace,仅是为对本申请实施例进行说明而虚构的终端型号,上述mt30、no1、mt20和ooace并不对本申请实施例中的终端构成任何限定。For example, the smart watch determines that the terminal set associated with mobile phone A includes mobile phone B, mobile phone C, mobile phone D, and mobile phone E, wherein the model of mobile phone B is mt30, the model of mobile phone C is no1, the model of mobile phone D is mt20, and the model of mobile phone E is mt20. The model of B is ooace, and the smart watch determines that the second preset terminal identifier is mt30, then the smart watch can determine the mobile phone B as the third terminal. It should be noted that the above mt30, no1, mt20 and ooace are only fictitious terminal models for describing the embodiments of the present application, and the above mt30, no1, mt20 and ooace do not constitute any limitations on the terminals in the embodiments of the present application.
另外,在一些实施例中,可以由第一终端执行与前述S703相似的步骤,从与第一终端关联的终端集合获取第三终端的终端信息,相应的,可以省略下述S704。In addition, in some embodiments, steps similar to the foregoing S703 may be performed by the first terminal to obtain terminal information of the third terminal from the terminal set associated with the first terminal, and accordingly, the following S704 may be omitted.
S704,第二终端向第一终端发送第三终端的终端信息。S704, the second terminal sends the terminal information of the third terminal to the first terminal.
第二终端可以向第一终端发送第三终端的终端信息,那么当第一终端接收到第三终端的终端信息时,即可以确定后续向第二终端传输数据的各第三终端。The second terminal may send the terminal information of the third terminal to the first terminal, then when the first terminal receives the terminal information of the third terminal, it may determine each third terminal that subsequently transmits data to the second terminal.
在一些实施例中,第二终端在向第一终端发送第三终端的终端信息后,或者第一终端在接收到第三终端的终端信息时,可以切断第一终端与第二终端之间的第一链路。In some embodiments, after the second terminal sends the terminal information of the third terminal to the first terminal, or when the first terminal receives the terminal information of the third terminal, the communication between the first terminal and the second terminal may be cut off. first link.
例如,请参照图10,手机A(图10中的210)与手机B(图10中的230)之间的第十二通信链路为4G/5G/Wi-Fi通信链路,手机A与智能手表(图10中的220)之间的第一链路以及手机B与智能手表之间的第十一链路为蓝牙通信链路。由于蓝牙协议是一种低功耗的通信协议,相对于数据在第一链路或第十一链路传输所耗费的时长,数据在第十二链路传输所耗费的时长可以忽略不计,只要第十一链路的传输速度大于第一链路,则手机A通过第十二链路和第十一链路向智能手表发送数据的效率,就会高于手机A通过第一链路向智能手表发送该数据的效率。因此,当智能手表检测得到第一链路的传输速度为30k/s,第十一链路的传输速度为80k/s时,由于80k/s>30k/s,所以智能手表向手机A发送手机B的终端信息,之后,切断与手机A之间的第一链路,从而使得后续手机A通过第十二链路和第十一链路,向智能手表传输数据。For example, referring to FIG. 10 , the twelfth communication link between mobile phone A (210 in FIG. 10 ) and mobile phone B (230 in FIG. 10 ) is a 4G/5G/Wi-Fi communication link, and mobile phone A and The first link between the smart watches (220 in FIG. 10 ) and the eleventh link between the mobile phone B and the smart watch are Bluetooth communication links. Since the Bluetooth protocol is a low-power communication protocol, the time spent on the twelfth link is negligible compared to the time spent on the first link or on the eleventh link, as long as the data is transmitted on the twelfth link. The transmission speed of the eleventh link is higher than that of the first link, so the efficiency of mobile phone A sending data to the smart watch through the twelfth link and the eleventh link will be higher than that of mobile phone A sending data to the smart watch through the first link. The efficiency with which the watch sends this data. Therefore, when the smartwatch detects that the transmission speed of the first link is 30k/s and the transmission speed of the eleventh link is 80k/s, since 80k/s>30k/s, the smartwatch sends the mobile phone to mobile phone A. terminal information of B, and then cut off the first link with the mobile phone A, so that the subsequent mobile phone A transmits data to the smart watch through the twelfth link and the eleventh link.
在一些实施例中,第二终端可以向第一终端发送第一链路的传输速度、第二链路的传输速度和第三链路的传输速度,以便于第一终端基于第一链路的传输速度、第二链路的传输速度和第三链路的传输速度,更加精确地控制第一数据的传输过程。In some embodiments, the second terminal may send the transmission speed of the first link, the transmission speed of the second link and the transmission speed of the third link to the first terminal, so that the first terminal based on the transmission speed of the first link The transmission speed, the transmission speed of the second link, and the transmission speed of the third link more precisely control the transmission process of the first data.
S705,第一终端输出传输提示信息。S705, the first terminal outputs transmission prompt information.
通过传输提示信息,提示用户即将通过资源池发送第一数据的至少部分数据,可以真实地向用户展示数据传输的具体路径,从而便于确保数据的安全性,也可以有利用用户进一步对即将发生的数据传输操作进行管控或其他操作,比如暂停传输或者根据后续的传输过程进行调试等等。By transmitting the prompt information, the user is reminded that at least part of the first data is about to be sent through the resource pool, and the specific path of data transmission can be truly shown to the user, so as to ensure the security of the data. Data transmission operations are controlled or other operations, such as suspending transmission or debugging according to the subsequent transmission process, etc.
请参照图11,手机A接收到智能手表发送的手机B的终端信息,因此可以向用户显示传输提示信息:“即将通过手机B向我的手表发送数据”。另外,手机A还可以显示“确 定”、“拒绝”和“取消”三个按钮。如果手机A基于“确定”按钮接收到用户的点击操作,则可以继续执行后续步骤。如果手机A基于“拒绝”按钮接收到用户的点击操作,则可以通过第一连接向第二终端发送第一数据,即不再通过资源池发送第一数据的至少部分数据。如果手机A基于“取消”按钮接收到用户的点击操作,则可以取消对第一数据的发送。Referring to FIG. 11 , mobile phone A receives the terminal information of mobile phone B sent by the smart watch, so it can display the transmission prompt message to the user: "I will send data to my watch through mobile phone B". In addition, the mobile phone A can also display three buttons "OK", "Reject" and "Cancel". If the mobile phone A receives the user's click operation based on the "OK" button, it can continue to perform the subsequent steps. If the mobile phone A receives the user's click operation based on the "reject" button, the first data may be sent to the second terminal through the first connection, that is, at least part of the first data will no longer be sent through the resource pool. If the mobile phone A receives the user's click operation based on the "Cancel" button, the sending of the first data can be canceled.
在一些实施例中,手机A可以在S702之前,按照与S705相似或相同的方式,显示传输提示信息,以提示用户即将通过资源池发送第一数据的至少部分数据。In some embodiments, before S702, the mobile phone A may display transmission prompt information in a manner similar to or the same as that of S705, to prompt the user that at least part of the first data is about to be sent through the resource pool.
另外,在一些实施例中,也可以省略S705,一方面减少与用户的交互,使得传输过程更加简洁高效,另一方面,可以避免用户感知到第一数据的具体传输路径,向用户提供与直接通过第一终端向第二终端发送第一数据相同的用户体验,即优化用户体验。In addition, in some embodiments, S705 can also be omitted. On the one hand, the interaction with the user is reduced, so that the transmission process is more concise and efficient; Sending the first data to the second terminal by the first terminal has the same user experience, that is, optimizing the user experience.
S706,第一终端经由第三链路和第二链路向第二终端传输第一数据中的至少部分数据。S706, the first terminal transmits at least part of the first data to the second terminal via the third link and the second link.
由前述可知,第一终端通过第二链路以及第三链路向第二终端传输数据的速度,大于第一终端通过第一链路向第二终端传输数据的速度,因此,当第一终端需要向第二终端传输第一数据时,可以通过第二链路和第三链路向第二终端传输第一数据的至少部分数据,从而提高向第二终端传输第一数据的效率。It can be seen from the foregoing that the speed at which the first terminal transmits data to the second terminal through the second link and the third link is greater than the speed at which the first terminal transmits data to the second terminal through the first link. Therefore, when the first terminal transmits data to the second terminal through the first link When the first data needs to be transmitted to the second terminal, at least part of the first data can be transmitted to the second terminal through the second link and the third link, thereby improving the efficiency of transmitting the first data to the second terminal.
在一些实施例中,第一终端可以通过第二链路和第三链路,向第二终端传输第一数据,以最大程度提高传输第一数据的效率。而在另一些实施例中,第一数据包括Q个不同的第一部分和P个第二部分,其中,1≤Q=N,P为1或0,N为第三终端的数目。第一终端分别通过N个第二链路和N个第三链路,向第二终端传输第一数据的Q个不同的第一部分,并通过第一链路传输第一数据的第二部分,相应的,第二终端可以在接收到Q个不同的第一部分和P个第二部分时,将Q个不同的第一部分和P个第二部分合成为第一数据。In some embodiments, the first terminal may transmit the first data to the second terminal through the second link and the third link, so as to maximize the efficiency of transmitting the first data. In other embodiments, the first data includes Q different first parts and P second parts, where 1≤Q=N, P is 1 or 0, and N is the number of third terminals. The first terminal transmits Q different first parts of the first data to the second terminal through the N second links and N third links respectively, and transmits the second part of the first data through the first link, Correspondingly, when receiving the Q different first parts and the P second parts, the second terminal may combine the Q different first parts and the P second parts into the first data.
若第三终端的数目N>1,且第一终端通过第三终端向第一终端发送第一数据,则第一终端可以通过与各第三终端之间的第三链路以及该第三终端与第二终端之间的第二链路,向第二终端发送第一数据,即第一终端可以分别通过N个第三终端向第二终端传输第一数据,第二终端可以在最先接收到某一个第三终端发送的第一数据时,停止接收其他第三终端发送的第一数据。If the number of third terminals N>1, and the first terminal sends the first data to the first terminal through the third terminal, the first terminal can use the third link with each third terminal and the third terminal The second link between the second terminal and the second terminal sends the first data to the second terminal, that is, the first terminal can transmit the first data to the second terminal through N third terminals respectively, and the second terminal can receive the first data at the first When the first data sent by a certain third terminal is reached, stop receiving the first data sent by other third terminals.
若第三终端的数目N>1,第一终端通过第三终端向第一终端发送第一数据的Q个不同的第一部分,Q=N,P=0,则第一终端可以分别通过与各第三终端之间的第三链路以及各第三终端与第二终端之间的第二链路,向第二终端发送Q个不同的第一部分,第二终端接收来自N个终端的Q个不同的第一部分,并将Q个不同的第一部分合成为第一数据。当然,如果P=1,第一终端还可以通过第一链路向第二终端发送第二部分,相应的,第二终端可以将Q个不同的第一部分和1个第二部分合成为第一数据。If the number of third terminals N>1, the first terminal sends Q different first parts of the first data to the first terminal through the third terminal, Q=N, P=0, then the first terminal can communicate with each The third link between the third terminals and the second link between each third terminal and the second terminal send Q different first parts to the second terminal, and the second terminal receives Q pieces from the N terminals different first parts, and synthesizing Q different first parts into first data. Of course, if P=1, the first terminal can also send the second part to the second terminal through the first link. Correspondingly, the second terminal can combine Q different first parts and one second part into the first part data.
需要说明的是,在实际应用中,N可以大于Q,在这种情况下,第一终端通过至少两个第三终端向第一终端发送第一数据的至少两个第一部分可以相同,第二终端可以在最先接收到来自其中一个第三终端的第一部分之后,不再接收来自该至少两个第三终端中其他第三终端发送的相同该第一部分。It should be noted that, in practical applications, N may be greater than Q. In this case, at least two first parts of the first data sent by the first terminal to the first terminal through at least two third terminals may be the same, and the second The terminal may, after first receiving the first part from one of the third terminals, no longer receive the same first part sent from the other third terminals among the at least two third terminals.
还需要说明的是,第一部分和第二部分中可以携带数据合成信息,该数据合成信息用于指示将Q个不同的第一部分和P个第二部分合成为第一数据。该数据合成信息可以包括第一数据的数据标识,以及该第一部分或第二部分在第一数据中的位置。It should also be noted that the first part and the second part may carry data synthesis information, where the data synthesis information is used to indicate that Q different first parts and P second parts are synthesized into first data. The data synthesis information may include a data identifier of the first data, and a position of the first part or the second part in the first data.
还需要说明的是,第一数据方可以包括多个数据包,相应的,第一部分或第二部分可以包括至少一个数据包。It should also be noted that the first data party may include multiple data packets, and correspondingly, the first part or the second part may include at least one data packet.
例如,请参照图12,手机A(图12中的210)从智能手表(图12中的220)获取到手机B(图12中的231)和手机C(图12中的232)的终端信息,即确定第三终端包括手机B和手机C。第一数据包括0-9等10个数据包。因此,手机A通过与手机B之间的Wi-Fi通信链路,向手机B发送第一数据包的数据包2、数据包5、数据包括6和数据包7,手机B通过与智能手表之间的蓝牙通信链路,将数据包2、数据包5、数据包括6和数据包7发送给智能手表,相似的,手机A通过与手机C之间的Wi-Fi通信链路,向手机C发送第一数据包括的数据包0、数据包1、数据包3、数据包4、数据包8和数据包9,手机C通过与智能手表之间的蓝牙通信链路,将数据包0、数据包1、数据包3、数据包4、数据包8和数据包9发送给智能手表。智能手表接收来自手机B的数据包2、数据包5、数据包括6和数据包7,以及来自手机C的数据包0、数据包1、数据包3、数据包4、数据包8、数据包9,并将数据包2、数据包5、数据包括6、数据包7、数据包0、数据包1、数据包3、数据包4、数据包8和数据包9合成为第一数据。又或者,第一数据还包括数据包10、数据包11和数据包12,手机A可以通过与智能手表之间的蓝牙通信链路,将数据包10、数据包11和数据包12发送给智能手表,那么智能手表可以接收来自手机A的数据包10、数据包11和数据包12,将数据包2、数据包5、数据包括6数据包7、数据包0、数据包1、数据包3、数据包4、数据包8、数据包9、数据包10、数据包11和数据包12合成为第一数据。在一些实施例中,智能手表可以分别通过不同的蓝牙模块来接收不同终端设备的数据,以进一步提高接收数据的效率。For example, referring to Fig. 12, mobile phone A (210 in Fig. 12) obtains the terminal information of mobile phone B (231 in Fig. 12) and mobile phone C (232 in Fig. 12) from the smart watch (220 in Fig. 12) , that is, it is determined that the third terminal includes mobile phone B and mobile phone C. The first data includes 10 data packets such as 0-9. Therefore, mobile phone A sends data packet 2, data packet 5, data packet 6 and data packet 7 of the first data packet to mobile phone B through the Wi-Fi communication link with mobile phone B. The Bluetooth communication link between the two devices sends data packet 2, data packet 5, data packet 6 and data packet 7 to the smart watch. Similarly, mobile phone A sends mobile phone C to mobile phone C through the Wi-Fi communication link with mobile phone C The data packet 0, the data packet 1, the data packet 3, the data packet 4, the data packet 8 and the data packet 9 included in the first data are sent, and the mobile phone C sends the data packet 0, data packet Packet 1, Packet 3, Packet 4, Packet 8 and Packet 9 are sent to the smart watch. The smart watch receives data packet 2, data packet 5, data packet 6 and data packet 7 from mobile phone B, and data packet 0, data packet 1, data packet 3, data packet 4, data packet 8, data packet from mobile phone C 9, and combine data packet 2, data packet 5, data packet 6, data packet 7, data packet 0, data packet 1, data packet 3, data packet 4, data packet 8 and data packet 9 into the first data. Alternatively, the first data further includes data packet 10, data packet 11 and data packet 12, and mobile phone A can send data packet 10, data packet 11 and data packet 12 to the smart watch through the Bluetooth communication link with the smart watch watch, then the smart watch can receive data packets 10, 11 and 12 from mobile phone A, and include data packets 2, 5, and 6 data packets 7, data packets 0, data packets 1, and data packets 3 , packet 4, packet 8, packet 9, packet 10, packet 11, and packet 12 are combined into first data. In some embodiments, the smart watch can receive data from different terminal devices through different Bluetooth modules, so as to further improve the efficiency of receiving data.
在一些实施例中,第一终端可以基于第二链路的传输速度和第三链路的传输速度中的至少一个,确定经第二链路和第三链路传输的第一部分。其中,若第一终端基于第二链路的传输速度,确定所述第一部分,则第一部分的数据量大小与第二链路的传输速度成正相关;若第一终端基于第三链路的传输速度,确定第一部分,则第一部分的数据量大小与第三链路的传输速度正相关;若第一终端基于第二链路的传输速度和第三链路的传输速度,确定第一部分,则第一部分的数据量大小与第二链路的传输速度以及第三链路的传输速度正相关。也即是通过按照各链路的传输速度,合理分配通过该链路所传输的数据量,进一步提高传输效率。In some embodiments, the first terminal may determine the first portion transmitted via the second link and the third link based on at least one of the transmission speed of the second link and the transmission speed of the third link. Wherein, if the first terminal determines the first part based on the transmission speed of the second link, the data volume of the first part is positively correlated with the transmission speed of the second link; if the first terminal is based on the transmission speed of the third link speed, determine the first part, then the data size of the first part is positively related to the transmission speed of the third link; if the first terminal determines the first part based on the transmission speed of the second link and the transmission speed of the third link, then The data size of the first part is positively related to the transmission speed of the second link and the transmission speed of the third link. That is, by rationally distributing the amount of data transmitted through the link according to the transmission speed of each link, the transmission efficiency is further improved.
若相对于数据在第二链路传输所耗费的时长来说,该数据在第三链路传输所耗费的时长可以忽略不计,那么第一终端可以基于M个第二链路的传输速度,确定通过各第二链路传输的第一部分的数据量大小,或者,第一终端可以基于M个第二链路的传输速度和第一链路的传输速度,通过各第二链路传输的第一部分的数据量大小以及第二部分的数据量大小。If the time spent for data transmission on the third link is negligible relative to the time spent for data transmission on the second link, the first terminal may determine, based on the transmission speeds of the M second links, The size of the data amount of the first part transmitted through each second link, or the first terminal may transmit the first part through each second link based on the transmission speed of the M second links and the transmission speed of the first link The size of the data size and the size of the data size of the second part.
例如,请继续参照图12,手机A与手机B以及手机C之间的第三链路为Wi-Fi通信链路,而手机B和手机C与智能手表之间的第二链路为蓝牙通信链路,因此相对于手机B或手机C通过蓝牙通信链路向智能手表传输数据所耗费的时长,手机A向手机B或手机 C传输数据所耗费的时长可以忽略不计。所以手机A可以基于手机B和手机C分别与智能手表之间的蓝牙通信链路,分别确定通过手机B和手机C所传输的第一部分的数据量大小。手机A确定手机B与智能手表之间的蓝牙通信链路的传输速度40k/s,手机C与智能手表之间的蓝牙通信链路的传输速度为60k/s,因此,将第一数据所包括的10个数据包划分为两个第一部分,其中,与手机B对应的第一部分包括数据包2、数据包5、数据包括6和数据包7等4个数据包,与手机C对应的第一部分包括数据包0、数据包1、数据包3、数据包4、数据包8和数据包9等10个数据包。For example, please continue to refer to FIG. 12 , the third link between mobile phone A, mobile phone B and mobile phone C is Wi-Fi communication link, and the second link between mobile phone B and mobile phone C and smart watch is Bluetooth communication Therefore, compared to the time it takes for mobile phone B or mobile phone C to transmit data to the smartwatch through the Bluetooth communication link, the time it takes for mobile phone A to transmit data to mobile phone B or mobile phone C is negligible. Therefore, based on the Bluetooth communication links between the mobile phone B and the mobile phone C and the smart watch, the mobile phone A can determine the size of the first part of the data transmitted through the mobile phone B and the mobile phone C, respectively. The mobile phone A determines that the transmission speed of the Bluetooth communication link between the mobile phone B and the smart watch is 40k/s, and the transmission speed of the Bluetooth communication link between the mobile phone C and the smart watch is 60k/s. Therefore, the first data includes The 10 data packets are divided into two first parts, wherein the first part corresponding to the mobile phone B includes four data packets including data packet 2, data packet 5, data packet 6 and data packet 7, and the first part corresponding to the mobile phone C There are 10 data packets including data packet 0, data packet 1, data packet 3, data packet 4, data packet 8 and data packet 9.
相似的,若相对于数据在第三链路传输所耗费的时长来说,该数据在第二链路传输所耗费的时长可以忽略不计,那么第一终端可以基于M个第三链路的传输速度,确定通过各第三链路传输的第一部分的数据量大小,或者,第一终端可以基于M个第三链路的传输速度和第一链路的传输速度,通过各第三链路传输的第一部分的数据量大小以及第二部分的数据量大小。Similarly, if the time spent in data transmission on the second link is negligible compared to the time spent in data transmission on the third link, then the first terminal can transmit data based on M third links. speed, to determine the amount of data of the first part transmitted through each third link, or, the first terminal may transmit through each third link based on the transmission speed of the M third links and the transmission speed of the first link The data size of the first part and the data size of the second part.
当然,无论数据在第二链路传输所耗费的时长,与该数据在第三链路传输所耗费的时长之间的差别如何,第一终端都可以获取各第三终端与第二终端之间的第二链路的传输速度,以及各第三终端与第一终端之间的第三链路的传输速度,从而确定与各第三终端对应的第二链路和第三链路的平均传输速度,进而根据各第三终端对应的平均传输速度,确定各第三终端所传输的第一部分的数据量大小,各第三终端所传输的第一数据的数据量大小。Of course, no matter what the difference is between the duration of data transmission on the second link and the duration of data transmission on the third link, the first terminal can obtain the data between each third terminal and the second terminal. The transmission speed of the second link and the transmission speed of the third link between each third terminal and the first terminal, so as to determine the average transmission of the second link and the third link corresponding to each third terminal The data volume of the first part transmitted by each third terminal and the data volume of the first data transmitted by each third terminal are determined according to the average transmission speed corresponding to each third terminal.
例如,第一数据的数据量大小为10MB(兆字节),请再次参考图9。手机A与智能手表之间的蓝牙通信链路的传输速度为60k/s,手机C与智能手表之间的蓝牙通信链路的传输速度为120k/s。如果手机A直接通过手机A与智能手表之间的蓝牙通信链路传输第一数据,则需要耗费10*1024/60=170s。如果手机C直接通过手机C与智能手表之间的蓝牙通信链路传输第一数据,则需要耗费10*1024/120=85s。其中,手机A可以通过Wi-Fi通信链路将第一数据发送给手机C,耗时远远小于85s,因此可以忽略。另外,智能手表分别与手机A、手机B、手机C以及手机D建立蓝牙通信链路,耗时为2s*4=8s;智能手表分别检测智能手表与手机A、手机B、手机C以及手机D之间的蓝牙通信连接的传输速度,耗时2s*4=8s;智能手表断开分别与手机A、手机B以及手机D之间的蓝牙通信链路,耗时2s*3=6s;手机A与手机C建立连接Wi-Fi通信链路,耗时2s;手机A事先分别建立与手机B、手机C以及手机D之间的关联关系,即将手机B、手机C以及手机D作为手机A的资源池,耗时10*3=30s。且由于手机A只需要在某一次建立与手机B、手机C以及手机D之间的关联关系,就可以永久将手机B、手机C以及手机D作为手机A的资源池,所以这部分耗时可以忽略,那么在本申请实施例中,手机A通过手机C将第一数据发送给智能手表的总共耗时可以为85s+8s+8s+6s+2s=109s,而若智能手表不断开分别与手机A、手机B以及手机D之间的蓝牙通信链路,该总耗时还可以再节省6s,即耗时可以缩短至103s。可见第一数据的传输时间从170s降低至109s或103s,显著提升了传输效率。For example, the data size of the first data is 10MB (megabytes), please refer to FIG. 9 again. The transmission speed of the Bluetooth communication link between the mobile phone A and the smart watch is 60k/s, and the transmission speed of the Bluetooth communication link between the mobile phone C and the smart watch is 120 k/s. If the mobile phone A directly transmits the first data through the Bluetooth communication link between the mobile phone A and the smart watch, it takes 10*1024/60=170s. If the mobile phone C directly transmits the first data through the Bluetooth communication link between the mobile phone C and the smart watch, it takes 10*1024/120=85s. Among them, the mobile phone A can send the first data to the mobile phone C through the Wi-Fi communication link, which takes far less than 85s, so it can be ignored. In addition, the smart watch establishes a Bluetooth communication link with mobile phone A, mobile phone B, mobile phone C and mobile phone D respectively, which takes 2s*4=8s; The transmission speed of the Bluetooth communication connection between the two takes 2s*4=8s; the smart watch disconnects the Bluetooth communication link with mobile phone A, mobile phone B and mobile phone D, which takes 2s*3=6s; mobile phone A It takes 2s to establish a Wi-Fi communication link with mobile phone C; mobile phone A establishes associations with mobile phone B, mobile phone C, and mobile phone D in advance, that is, mobile phone B, mobile phone C, and mobile phone D are used as mobile phone A resources pool, which takes 10*3=30s. And because mobile phone A only needs to establish an association relationship with mobile phone B, mobile phone C, and mobile phone D at a certain time, it can permanently use mobile phone B, mobile phone C, and mobile phone D as the resource pool of mobile phone A, so this part of the time consumption can be If ignored, in the embodiment of the present application, the total time required for the mobile phone A to send the first data to the smart watch through the mobile phone C may be 85s+8s+8s+6s+2s=109s. A. For the Bluetooth communication link between the mobile phone B and the mobile phone D, the total time-consuming can be saved by another 6s, that is, the time-consuming can be shortened to 103s. It can be seen that the transmission time of the first data is reduced from 170s to 109s or 103s, which significantly improves the transmission efficiency.
在一些实施例中,当第二终端接收到第一数据时,可以切断(或指示第三终端切断)第二链路,指示第一终端或第三终端切断第三链路。且如果当前第一链路已经断开,则第二终端可以再次建立第一链路。也即是,第二终端可以在第一数据传输完成 时,将第一终端、第二终端和第三终端之间的连接关系,恢复至传输第一数据之前的状态,一方面便于后续第一终端与第二终端进行其他可能的交互操作,提高交互效率,另一方面也能够以进一步减少用户感知,提高用户体验。In some embodiments, when the second terminal receives the first data, it may cut off (or instruct the third terminal to cut off) the second link, and instruct the first terminal or the third terminal to cut off the third link. And if the current first link has been disconnected, the second terminal may establish the first link again. That is, when the first data transmission is completed, the second terminal can restore the connection relationship between the first terminal, the second terminal and the third terminal to the state before the transmission of the first data, which is convenient for subsequent first data transmission. The terminal and the second terminal perform other possible interactive operations to improve the interaction efficiency. On the other hand, it can further reduce user perception and improve user experience.
在一些实施例中,若第一终端并未接收到第二终端发送的第三终端的终端信息,则可能第二终端并未获取到第三终端,即第一链路的传输速度,大于或等于第二链路和第三链路的平均传输速度,因此,第一终端可以基于第一链路向第二终端发送第一数据。In some embodiments, if the first terminal has not received the terminal information of the third terminal sent by the second terminal, it may be that the second terminal has not acquired the third terminal, that is, the transmission speed of the first link is greater than or equal to It is equal to the average transmission speed of the second link and the third link, therefore, the first terminal can transmit the first data to the second terminal based on the first link.
需要说明的是,上述第一终端、第二终端或第三终端可以互换,比如,第一终端可以执行上述第二终端所执行的操作,来接收来自其他终端设备的数据;第一终端可以执行上述第三终端所执行的操作,来向其他终端设备转发数据。It should be noted that the above-mentioned first terminal, second terminal or third terminal can be interchanged. For example, the first terminal can perform the operations performed by the above-mentioned second terminal to receive data from other terminal devices; the first terminal can Perform the operations performed by the third terminal to forward data to other terminal devices.
在一些实施例中,第一终端可以接收第五终端的第二选择通知,第一终端根据第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,K≥1且K为正整数,第一终端向第五终端发送第六终端的终端信息,其中,第六终端的终端信息用于第五终端,经由第六链路以及第五链路,向第一终端发送第二数据的至少部分数据,第五链路为第一终端与第六终端之间的通信链路,第六链路为第五终端与第六终端之间的通信链路,所一终端与第五终端之间的第四链路的传输速度,小于第五链路和第六链路的平均传输速度。In some embodiments, the first terminal may receive a second selection notification from the fifth terminal, and the first terminal determines the first selection from the K seventh terminals included in the terminal set associated with the fifth terminal according to the second selection notification. Six terminals, K≥1 and K is a positive integer, the first terminal sends the terminal information of the sixth terminal to the fifth terminal, wherein the terminal information of the sixth terminal is used for the fifth terminal, via the sixth link and the fifth link route, sending at least part of the second data to the first terminal, the fifth link is the communication link between the first terminal and the sixth terminal, and the sixth link is the communication link between the fifth terminal and the sixth terminal The link, the transmission speed of the fourth link between the terminal and the fifth terminal, is smaller than the average transmission speed of the fifth link and the sixth link.
其中,第一终端可以事先接收第五终端发送的K个第七终端的终端信息。The first terminal may receive in advance the terminal information of the K seventh terminals sent by the fifth terminal.
在一些实施例中,第一终端可以获取第一终端与第五终端关联的终端集合中的K个第七终端的第七链路的传输速度,以及第一链路的传输速度,第一终端将L个第七链路对应的第七终端确定为第六终端,其中,L个第七终端的传输速度大于第一链路的传输速度,K≥L≥1且L为正整数,其中,第一终端与任一第七终端之间的第八链路为基于第一预设通信协议的通信链路,任一第七终端与第五终端之间的第七链路为基于第二预设通信协议的通信链路,第二预设通信协议所指示的最大传输速度与第一预设通信协议所指示的最大传输速度之间的差值,大于第一速度阈值。当然,若第一终端与任一第七终端之间的第八链路为基于第二预设通信协议的通信链路,任一第七终端与第五终端之间的第七链路为基于第一预设通信协议的通信链路,则第一终端也可以将L个第八链路对应的第七终端确定为第六终端,其中,L个第八链路的传输速度大于第一链路的传输速度。In some embodiments, the first terminal may obtain the transmission speed of the seventh link of the K seventh terminals in the terminal set associated with the first terminal and the fifth terminal, and the transmission speed of the first link, the first terminal The seventh terminals corresponding to the L seventh links are determined as the sixth terminal, wherein the transmission speed of the L seventh terminals is greater than the transmission speed of the first link, K≥L≥1 and L is a positive integer, wherein, The eighth link between the first terminal and any seventh terminal is a communication link based on the first preset communication protocol, and the seventh link between any seventh terminal and the fifth terminal is based on the second preset communication protocol. Assuming the communication link of the communication protocol, the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol is greater than the first speed threshold. Of course, if the eighth link between the first terminal and any seventh terminal is a communication link based on the second preset communication protocol, the seventh link between any seventh terminal and the fifth terminal is a communication link based on the second preset communication protocol. The communication link of the first preset communication protocol, the first terminal may also determine the seventh terminal corresponding to the L eighth links as the sixth terminal, wherein the transmission speed of the L eighth links is greater than that of the first link the transmission speed of the road.
在一些实施例中,第一终端可以按照传输速度从高到低的顺序,确定L个传输速度大于第一链路的传输的第七链路所对应的第七终端,将获取到的L个第七终端确定为第六终端。In some embodiments, the first terminal may, in order of transmission speed from high to low, determine the L seven terminals corresponding to the seventh link whose transmission speed is greater than that of the first link, and use the acquired L The seventh terminal is determined to be the sixth terminal.
在本申请实施例中,当第一终端确定通过与第二终端的之间的第一链路发送第一数据时,如果第一链路的传输速度,小于第二终端与第三终端之间的第二链路和第一终端与第三终端之间的第三链路的平均传输速度,则第一终端可以经由第三链路和第二链路,向第二终端传输第一数据中的至少一部分数据。由于第一链路的传输速度小于第二链路和第三链路的平均传输速度,因此,第一终端通过第二链路和第三链路向第二终端传输该数据所占用的时长,小于第一终端过第一链路向第二终端传输该数据所占用的时长。也即是,第一终端与第二终端之间的数据传输,不再完全局限于第一 终端和第二终端的硬件条件或软件条件限制,第一终端可以通过其他的第三终端,选择传输速度更快的通信链路来向第二终端发送第一数据中的至少部分数据,从而一定程度或最大限度地减少向第二终端发送第一数据的时长,提高传输效率。In this embodiment of the present application, when the first terminal determines to send the first data through the first link with the second terminal, if the transmission speed of the first link is lower than that between the second terminal and the third terminal The average transmission speed of the second link and the third link between the first terminal and the third terminal, the first terminal can transmit the first data to the second terminal via the third link and the second link. at least part of the data. Since the transmission speed of the first link is lower than the average transmission speed of the second link and the third link, the time taken by the first terminal to transmit the data to the second terminal through the second link and the third link, It is less than the time taken by the first terminal to transmit the data to the second terminal through the first link. That is, the data transmission between the first terminal and the second terminal is no longer completely limited by the hardware conditions or software conditions of the first terminal and the second terminal, and the first terminal can select the transmission through other third terminals. A faster communication link is used to send at least part of the first data to the second terminal, thereby reducing the time period for sending the first data to the second terminal to a certain extent or to the maximum extent, and improving transmission efficiency.
基于同一发明构思,作为对上述方法的实现,本申请实施例提供了一种数据传输装置,该装置可以设置在终端设备中,该装置实施例与前述方法实施例对应,为便于阅读,本装置实施例不再对前述方法实施例中的细节内容进行逐一赘述,但应当明确,本实施例中的装置能够对应实现前述方法实施例中的全部内容。Based on the same inventive concept, as an implementation of the above method, an embodiment of the present application provides a data transmission apparatus, which can be set in a terminal device. The apparatus embodiment corresponds to the foregoing method embodiment. For ease of reading, this apparatus The embodiments will not repeat the detailed contents in the foregoing method embodiments one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiments.
基于同一发明构思,本申请实施例还提供了一种终端设备。图13为本申请实施例提供的终端设备1300的结构示意图,如图13所示,本实施例提供的终端设备1300包括:存储器1310和处理器1320,存储器1310用于存储计算机程序;处理器1320用于在调用计算机程序时执行上述方法实施例所述的方法。Based on the same inventive concept, an embodiment of the present application also provides a terminal device. FIG. 13 is a schematic structural diagram of a terminal device 1300 provided by an embodiment of the present application. As shown in FIG. 13 , the terminal device 1300 provided by this embodiment includes: a memory 1310 and a processor 1320. The memory 1310 is used to store computer programs; the processor 1320 The method is used to execute the method described in the above method embodiment when the computer program is invoked.
本实施例提供的终端设备可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。The terminal device provided in this embodiment may execute the foregoing method embodiments, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
基于同一发明构思,本申请实施例还提供了一种芯片系统。该所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述方法实施例所述的方法。Based on the same inventive concept, an embodiment of the present application also provides a chip system. The chip system includes a processor coupled with a memory, and the processor executes a computer program stored in the memory, so as to implement the method described in the above method embodiments.
其中,该芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。Wherein, the chip system may be a single chip, or a chip module composed of multiple chips.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
本申请实施例还提供一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现上述方法实施例所述的方法。The embodiments of the present application further provide a computer program product, when the computer program product runs on a terminal device, the terminal device executes the method described in the above method embodiments.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable storage medium may include at least: any entity or device capable of carrying computer program codes to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM), random access Memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/equipment embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. scope.
Claims (13)
- 一种数据传输方法,其特征在于,包括:A data transmission method, comprising:第一终端确定通过与第二终端的第一链路传输第一数据;The first terminal determines to transmit the first data through the first link with the second terminal;若所述第一终端确定所述第一链路的传输速度,小于第二链路和第三链路的平均传输速度,则所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据;If the first terminal determines that the transmission speed of the first link is lower than the average transmission speed of the second link and the third link, then the first terminal passes through the third link and the second link. the link sends at least part of the first data to the second terminal;其中,所述第二链路为第三终端与所述第二终端之间的通信链路,所述第三链路为所述第一终端与所述第三终端之间的通信链路。The second link is a communication link between a third terminal and the second terminal, and the third link is a communication link between the first terminal and the third terminal.
- 根据权利要求1所述的方法,其特征在于,在所述若所述第一终端确定所述第一链路的传输速度,小于第二链路和第三链路的平均传输速度,则所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据之前,所述方法还包括:The method according to claim 1, wherein, if the first terminal determines that the transmission speed of the first link is lower than the average transmission speed of the second link and the third link, then the Before the first terminal sends at least part of the first data to the second terminal via the third link and the second link, the method further includes:所述第一终端向所述第二终端发送第一选择通知,所述第一选择通知用于通知所述第二终端在与所述第一终端关联的终端集合包括的M个第四终端中确定所述第三终端,M为大于或等于1的正整数;The first terminal sends a first selection notification to the second terminal, where the first selection notification is used to notify the second terminal that the second terminal is among the M fourth terminals included in the terminal set associated with the first terminal determining the third terminal, where M is a positive integer greater than or equal to 1;所述第一终端接收所述第二终端根据所述第一选择通知发送的所述第三终端的终端信息。The first terminal receives the terminal information of the third terminal sent by the second terminal according to the first selection notification.
- 根据权利要求2所述的方法,其特征在于,在所述第一终端向所述第二终端发送第一选择通知之前,所述方法还包括:The method according to claim 2, wherein before the first terminal sends a first selection notification to the second terminal, the method further comprises:所述第一终端向各第四终端发送关联请求;sending, by the first terminal, an association request to each fourth terminal;所述第一终端接收各所述第四终端基于所述关联请求发送的关联响应,所述关联响应中携带各所述第四终端的终端信息;receiving, by the first terminal, an association response sent by each of the fourth terminals based on the association request, where the association response carries terminal information of each of the fourth terminals;所述第一终端向所述第二终端发送各所述第四终端的终端信息。The first terminal sends the terminal information of each of the fourth terminals to the second terminal.
- 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:所述第一终端向各所述第四终端发送所述第二终端的终端信息。The first terminal sends the terminal information of the second terminal to each of the fourth terminals.
- 根据权利要求1或2所述的方法,其特征在于,所述第一数据包括第一部分和第二部分,所述至少部分为所述第一部分,所述方法还包括:The method according to claim 1 or 2, wherein the first data includes a first part and a second part, the at least part is the first part, and the method further comprises:所述第一终端通过所述第一链路传输所述第二部分。The first terminal transmits the second portion over the first link.
- 根据权利要求5所述的方法,其特征在于,在所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据之前,所述方法还包括;The method according to claim 5, wherein the first terminal sends at least part of the first data to the second terminal via the third link and the second link Before, the method further comprises;所述第一终端基于所述第二链路的传输速度,确定所述第一部分,所述第一部分的数据量大小与所述第二链路的传输速度成正相关;或,The first terminal determines the first part based on the transmission speed of the second link, and the data amount of the first part is positively correlated with the transmission speed of the second link; or,所述第一终端基于所述第三链路的传输速度,确定所述第一部分,所述第一部分的数据量大小与所述第三链路的传输速度正相关;或,The first terminal determines the first part based on the transmission speed of the third link, and the data amount of the first part is positively related to the transmission speed of the third link; or,所述第一终端基于所述第二链路的传输速度和所述第三链路的传输速度,确定所述第一部分,所述第一部分的数据量大小与所述第二链路的传输速度以及所述第三链路的传输速度正相关。The first terminal determines the first part based on the transmission speed of the second link and the transmission speed of the third link, the data size of the first part and the transmission speed of the second link and the transmission speed of the third link is positively correlated.
- 根据权利要求1-6任一所述的方法,其特征在于,在所述若所述第一终端确定所述第一链路的传输速度,小于第二链路和第三链路的平均传输速度,则所述第一终端经由所述第三链路和所述第二链路向所述第二终端发送所述第一数据中的至少部分数据之前,所述方法还包括:The method according to any one of claims 1-6, characterized in that, if the first terminal determines that the transmission speed of the first link is lower than the average transmission speed of the second link and the third link speed, before the first terminal sends at least part of the first data to the second terminal via the third link and the second link, the method further includes:所述第一终端确定所述第一链路为基于预设近距离通信协议的通信链路。The first terminal determines that the first link is a communication link based on a preset short-range communication protocol.
- 根据权利要求1-7任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-7, wherein the method further comprises:所述第一终端接收第五终端的第二选择通知;receiving, by the first terminal, a second selection notification from the fifth terminal;所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,K为大于或等于1的正整数;The first terminal determines, according to the second selection notification, a sixth terminal from K seventh terminals included in the terminal set associated with the fifth terminal, where K is a positive integer greater than or equal to 1;所述第一终端向所述第五终端发送所述第六终端的终端信息;sending, by the first terminal, the terminal information of the sixth terminal to the fifth terminal;其中,第五链路为所述第一终端与所述第六终端之间的通信链路,第六链路为所述第五终端与所述第六终端之间的通信链路,所述第一终端与所述第五终端之间的第四链路的传输速度,小于所述第五链路和所述第六链路的平均传输速度。The fifth link is a communication link between the first terminal and the sixth terminal, the sixth link is a communication link between the fifth terminal and the sixth terminal, and the The transmission speed of the fourth link between the first terminal and the fifth terminal is lower than the average transmission speed of the fifth link and the sixth link.
- 根据权利要求8所述的方法,其特征在于,所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,包括:The method according to claim 8, wherein the first terminal determines a sixth terminal from K seventh terminals included in a terminal set associated with the fifth terminal according to the second selection notification, include:所述第一终端获取所述第一终端与所述第五终端关联的终端集合中的K个第七终端的第七链路的传输速度,以及所述第一链路的传输速度;obtaining, by the first terminal, the transmission speed of the seventh link of the K seventh terminals in the terminal set associated with the first terminal and the fifth terminal, and the transmission speed of the first link;所述第一终端将L个第七链路对应的第七终端确定为所述第六终端,其中,L个第七链路的传输速度大于所述第一链路的传输速度,L为小于或等于M且大于或等于1的正整数;The first terminal determines the seventh terminal corresponding to the L seventh links as the sixth terminal, wherein the transmission speed of the L seventh links is greater than the transmission speed of the first link, and L is less than or a positive integer equal to M and greater than or equal to 1;其中,所述第一终端与任一第七终端之间的第八链路为基于第一预设通信协议的通信链路,所述任一第七终端与所述第五终端之间的第七链路为基于第二预设通信协议的通信链路,所述第二预设通信协议所指示的最大传输速度与所述第一预设通信协议所指示的最大传输速度之间的差值,大于第一速度阈值。Wherein, the eighth link between the first terminal and any seventh terminal is a communication link based on the first preset communication protocol, and the eighth link between the any seventh terminal and the fifth terminal Seven links are communication links based on a second preset communication protocol, and the difference between the maximum transmission speed indicated by the second preset communication protocol and the maximum transmission speed indicated by the first preset communication protocol , greater than the first speed threshold.
- 根据权利要求9所述的方法,其特征在于,在所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端之前,所述方法还包括:The method according to claim 9, wherein, according to the second selection notification, at the first terminal, a sixth terminal is determined from K seventh terminals included in a terminal set associated with the fifth terminal Before, the method further includes:所述第一终端接收所述第五终端发送的所述K个第七终端的终端信息。The first terminal receives the terminal information of the K seventh terminals sent by the fifth terminal.
- 一种数据传输方法,其特征在于,所述方法还包括:A data transmission method, characterized in that the method further comprises:第一终端接收第五终端的第二选择通知;the first terminal receives the second selection notification of the fifth terminal;所述第一终端根据所述第二选择通知,从与所述第五终端关联的终端集合包括的K个第七终端中确定第六终端,K为大于或等于1的正整数;The first terminal determines, according to the second selection notification, a sixth terminal from K seventh terminals included in the terminal set associated with the fifth terminal, where K is a positive integer greater than or equal to 1;所述第一终端向所述第五终端发送所述第六终端的终端信息,所述第六终端的终端信息用于所述第五终端,经由第六链路以及第五链路,向所述第一终端发送第二数据的至少部分数据;The first terminal sends the terminal information of the sixth terminal to the fifth terminal, the terminal information of the sixth terminal is used for the fifth terminal, and is sent to the fifth terminal via the sixth link and the fifth link. the first terminal sending at least part of the second data;其中,所述第五链路为所述第一终端与所述第六终端之间的通信链路,所述第六链路为所述第五终端与所述第六终端之间的通信链路,所述第一终端与所述第五终端之间的第四链路的传输速度,小于所述第五链路和所述第六链路的平均传输速度。The fifth link is a communication link between the first terminal and the sixth terminal, and the sixth link is a communication link between the fifth terminal and the sixth terminal The transmission speed of the fourth link between the first terminal and the fifth terminal is lower than the average transmission speed of the fifth link and the sixth link.
- 一种终端设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时执行如权利要求1-10任一项或如权利要求11所述的方法。A terminal device, characterized in that it includes: a memory and a processor, the memory is used for storing a computer program; the processor is used for executing any one of claims 1-10 or as claimed in claim 1 when invoking the computer program The method described in claim 11.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-10任一项或如权利要求11所述的方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method as claimed in any one of claims 1-10 or as claimed in claim 11 is implemented.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011218335.2A CN114449492B (en) | 2020-11-04 | 2020-11-04 | Data transmission method and terminal equipment |
CN202011218335.2 | 2020-11-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022095581A1 true WO2022095581A1 (en) | 2022-05-12 |
Family
ID=81361776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/116899 WO2022095581A1 (en) | 2020-11-04 | 2021-09-07 | Data transmission method and terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114449492B (en) |
WO (1) | WO2022095581A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107113713A (en) * | 2014-12-19 | 2017-08-29 | 三星电子株式会社 | Apparatus and method for providing repeater selection into device communication system in device |
CN107135526A (en) * | 2016-02-29 | 2017-09-05 | 中兴通讯股份有限公司 | A kind of method of determination D2D via nodes, base station |
CN108093459A (en) * | 2017-12-29 | 2018-05-29 | 上海京颐科技股份有限公司 | The data transmission method and device of medical terminal, storage medium, terminal |
CN110461020A (en) * | 2019-08-16 | 2019-11-15 | 展讯通信(上海)有限公司 | Relay selection method and device for auxiliary link, storage medium and terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6529186B2 (en) * | 2014-04-29 | 2019-06-12 | ▲華▼▲為▼▲終▼端(深セン)有限公司 | Data transmission method and terminal |
CN111629024A (en) * | 2020-04-02 | 2020-09-04 | 北京大米科技有限公司 | Data transmission control method and device, storage medium and electronic equipment |
CN111629452A (en) * | 2020-04-02 | 2020-09-04 | 北京大米科技有限公司 | Data transmission control method and device, storage medium and electronic equipment |
-
2020
- 2020-11-04 CN CN202011218335.2A patent/CN114449492B/en active Active
-
2021
- 2021-09-07 WO PCT/CN2021/116899 patent/WO2022095581A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107113713A (en) * | 2014-12-19 | 2017-08-29 | 三星电子株式会社 | Apparatus and method for providing repeater selection into device communication system in device |
CN107135526A (en) * | 2016-02-29 | 2017-09-05 | 中兴通讯股份有限公司 | A kind of method of determination D2D via nodes, base station |
CN108093459A (en) * | 2017-12-29 | 2018-05-29 | 上海京颐科技股份有限公司 | The data transmission method and device of medical terminal, storage medium, terminal |
CN110461020A (en) * | 2019-08-16 | 2019-11-15 | 展讯通信(上海)有限公司 | Relay selection method and device for auxiliary link, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN114449492A (en) | 2022-05-06 |
CN114449492B (en) | 2023-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113228701B (en) | Audio data synchronization method and device | |
WO2020244623A1 (en) | Air-mouse mode implementation method and related device | |
CN111132234B (en) | Data transmission method and corresponding terminal | |
WO2021043219A1 (en) | Bluetooth reconnection method and related apparatus | |
WO2021185141A1 (en) | Wi-fi aware link establishment method and system, electronic device, and storage medium | |
CN112312366B (en) | Method, electronic equipment and system for realizing functions through NFC (near field communication) tag | |
CN114079893B (en) | Bluetooth communication method, terminal device and computer-readable storage medium | |
CN114079892A (en) | Bluetooth communication method, wearable device and system | |
WO2020124371A1 (en) | Method and device for establishing data channels | |
CN114554012B (en) | Methods for answering incoming calls, electronic equipment and storage media | |
CN114489533A (en) | Screen projection method and device, electronic equipment and computer readable storage medium | |
WO2022206825A1 (en) | Method and system for adjusting volume, and electronic device | |
WO2021043250A1 (en) | Bluetooth communication method, and related device | |
WO2022048371A1 (en) | Cross-device audio playing method, mobile terminal, electronic device and storage medium | |
CN111010693A (en) | A method and electronic device for providing wireless fidelity WiFi network access service | |
CN112099741A (en) | Display screen position identification method, electronic device and computer-readable storage medium | |
CN111935705A (en) | Data service management method and device, computer readable medium and terminal equipment | |
CN114845297A (en) | Application program access method, electronic device and storage medium | |
CN115119336B (en) | Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium | |
WO2022095581A1 (en) | Data transmission method and terminal device | |
WO2023061217A1 (en) | Data transmission method and apparatus | |
CN116261124A (en) | Data transmission method, device, electronic device and intelligent terminal | |
CN115412387A (en) | A kind of audio playing method, system and electronic equipment | |
CN113923684A (en) | Uplink data distribution method, terminal equipment and chip system | |
CN113453327A (en) | Transmission power control method, terminal, chip system and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21888280 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21888280 Country of ref document: EP Kind code of ref document: A1 |