







技术领域technical field
本申请涉及电子技术领域,具体涉及一种数据传输方法及相关产品。The present application relates to the field of electronic technology, in particular to a data transmission method and related products.
背景技术Background technique
随着电子设备(如:手机、平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。通过电子设备进行照片、文件等已成为用户常用的现有技术,但现有技术局限于邻近感知网络(neighbor awareness network,NAN)设备之间的连接多采用直接连接进行数据传输,在设备距离较远,网速较差等情况下无法进行高速传输。With the widespread application of electronic devices (such as mobile phones, tablet computers, etc.), electronic devices can support more and more applications, and their functions are becoming more and more powerful. Electronic devices are developing in the direction of diversification and personalization. Indispensable electronic supplies. Taking photos, files, etc. through electronic devices has become a common existing technology for users, but the existing technology is limited to the connection between the proximity awareness network (NAN) devices. Direct connection is mostly used for data transmission. High-speed transmission cannot be performed in the case of long distance, poor network speed, etc.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种数据传输方法及相关产品,本申请有利于提高电子设备进行数据传输的数据传输质量和安全性。The embodiments of the present application provide a data transmission method and related products, and the present application is conducive to improving the data transmission quality and security of data transmission performed by an electronic device.
第一方面,本申请实施例提供了一种数据传输方法,应用于第一邻近感知网络NAN中第一NAN设备,所述方法包括:In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first NAN device in a first proximity-aware network NAN, and the method includes:
获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路;Acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量;determining a first transmission quality value of the first transmission link, where the transmission quality value is used to represent the channel quality of the transmission link;
若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备;If the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay in the first NAN equipment;
根据所述第二传输链路进行数据传输。Data transmission is performed according to the second transmission link.
第二方面,本申请实施例提供了一种数据传输装置,应用于第一邻近感知网络NAN中第一NAN设备,所述数据传输装置包括:In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a first NAN device in a first proximity-aware network NAN, and the data transmission apparatus includes:
获取单元,用于获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路;an acquisition unit, configured to acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device ;
确定单元,用于确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量;a determining unit, configured to determine a first transmission quality value of the first transmission link, where the transmission quality value is used to represent the channel quality of the transmission link;
选择单元,用于若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备;A selection unit, configured to select a second transmission link according to a preset transmission link update policy if the first transmission quality value is lower than a preset threshold, where the second transmission link includes at least one of the first NANs NAN relay equipment in;
传输单元,用于根据所述第二传输链路进行数据传输。A transmission unit, configured to perform data transmission according to the second transmission link.
第三方面,本申请实施例提供了一种电子设备,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。In a third aspect, embodiments of the present application provide an electronic device, including: a processor and a memory; and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the program comprising instructions for some or all of the steps as described in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤的指令。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program causes a computer to execute the first aspect of the embodiment of the present application instructions for some or all of the steps described in .
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the Part or all of the steps described in the first aspect of the application embodiment. The computer program product may be a software installation package.
实施本申请实施例,具有如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:
可以看出,本申请实施例中所描述的数据传输方法及相关产品,应用于第一邻近感知网络NAN中第一NAN设备,首先获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路,其次,确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量,然后,若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备,最后,根据所述第二传输链路进行数据传输。可见,在NAN网络中,通过提供一种中继设备转发的手段,在两个设备之间直连链路质量差的时候转换为通过中继站的方式传输数据,提高设备之间数据传输的整体质量,提高设备移动的灵活性。It can be seen that the data transmission method and related products described in the embodiments of this application are applied to the first NAN device in the first proximity-aware network NAN, and the second NAN device and the first transmission link in the first NAN are first obtained. , the first transmission link is the transmission link for data transmission between the first NAN device and the second NAN device, and secondly, determine the first transmission quality value of the first transmission link, the transmission quality value Used to indicate the channel quality of the transmission link, and then, if the first transmission quality value is lower than the preset threshold, select a second transmission link according to the preset transmission link update policy, and the second transmission link includes At least one NAN relay device in the first NAN, finally, performs data transmission according to the second transmission link. It can be seen that in the NAN network, by providing a means of relay device forwarding, when the quality of the direct link between two devices is poor, it is converted to data transmission through the relay station, which improves the overall quality of data transmission between devices. , to improve the flexibility of device movement.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本申请实施例提供的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图2A是本申请实施例提供的一种数据传输方法的流程示意图;2A is a schematic flowchart of a data transmission method provided by an embodiment of the present application;
图2B是本申请实施例提供的一种数据传输的设备传输示意图;FIG. 2B is a schematic diagram of device transmission for data transmission provided by an embodiment of the present application;
图3是本申请实施例公开的另一种数据传输方法的流程示意图;3 is a schematic flowchart of another data transmission method disclosed in an embodiment of the present application;
图4是本申请实施例公开的另一种数据传输方法的流程示意图;4 is a schematic flowchart of another data transmission method disclosed in an embodiment of the present application;
图5是本申请实施例公开的一种电子设备的结构示意图;5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
图6是本申请实施例公开的一种数据传输装置的功能单元组成框图;FIG. 6 is a block diagram of functional units of a data transmission device disclosed in an embodiment of the present application;
图7是本申请实施例提供的另一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为电子设备。The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to wireless modems, as well as various forms of user equipment (user equipment). equipment, UE), a mobile station (mobile station, MS), a terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as electronic devices.
下面对本申请实施例进行详细介绍。The embodiments of the present application will be described in detail below.
请参阅图1,图1是本申请实施例提供的一种电子设备100的结构示意图,上述电子设备100包括:壳体110、设置于所述壳体110内的电路板120、定位装置130和设置于所述壳体110上的显示屏140,所述电路板120上设置有处理器121,所述定位装置130与所述处理器121连接,所述处理器121连接所述显示屏140。Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of an
下面对本申请实施例进行详细介绍。The embodiments of the present application will be described in detail below.
请参阅图2A,图2A是本申请实施例提供的一种数据传输方法的流程示意图,本实施例中所描述的数据传输方法,应用于如图1的电子设备,该数据传输方法包括:Please refer to FIG. 2A . FIG. 2A is a schematic flowchart of a data transmission method provided by an embodiment of the present application. The data transmission method described in this embodiment is applied to the electronic device as shown in FIG. 1 , and the data transmission method includes:
S201,获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路。S201: Acquire a second NAN device and a first transmission link in a first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device.
S202,确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量。S202: Determine a first transmission quality value of the first transmission link, where the transmission quality value is used to represent the channel quality of the transmission link.
其中,信号质量是由网速,信号强度RSSI,断线情况,综合这些因素加权得到的。Among them, the signal quality is weighted by network speed, signal strength RSSI, disconnection, and these factors.
S203,若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备。S203, if the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN in the first NAN relay equipment.
其中,预设阈值为电子设备在出厂时由厂商设定。The preset threshold is set by the manufacturer when the electronic device is shipped from the factory.
S204,根据所述第二传输链路进行数据传输。S204: Perform data transmission according to the second transmission link.
可以看出,本申请实施例中所描述的数据传输方法及相关产品,应用于第一邻近感知网络NAN中第一NAN设备,首先获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路,其次,确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量,然后,若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备,最后,根据所述第二传输链路进行数据传输。可见,在NAN网络中,通过提供一种中继设备转发的手段,在两个设备之间直连链路质量差的时候转换为通过中继站的方式传输数据,提高设备之间数据传输的整体质量,提高设备移动的灵活性。It can be seen that the data transmission method and related products described in the embodiments of this application are applied to the first NAN device in the first proximity-aware network NAN, and the second NAN device and the first transmission link in the first NAN are first obtained. , the first transmission link is the transmission link for data transmission between the first NAN device and the second NAN device, and secondly, determine the first transmission quality value of the first transmission link, the transmission quality value Used to indicate the channel quality of the transmission link, and then, if the first transmission quality value is lower than the preset threshold, select a second transmission link according to the preset transmission link update policy, and the second transmission link includes At least one NAN relay device in the first NAN, finally, performs data transmission according to the second transmission link. It can be seen that in the NAN network, by providing a means of relay device forwarding, when the quality of the direct link between two devices is poor, it is converted to data transmission through the relay station, which improves the overall quality of data transmission between devices. , to improve the flexibility of device movement.
可选地,电子设备可创建一个NAN群组,并设定该NAN群组的群标识信息,电子设备可向附近的NAN设备发送信标(Beacon),附近的NAN设备在接收到电子设备发送的Beacon后,可向电子设备发送加入NAN群组的请求,电子设备可根据接收到的请求建立NAN群组,从而,在该NAN群组中,电子设备可与三个NAN设备进行消息交互,数据传输等等。Optionally, the electronic device can create a NAN group, and set the group identification information of the NAN group, and the electronic device can send a beacon (Beacon) to a nearby NAN device. After the Beacon is set, it can send a request to join the NAN group to the electronic device, and the electronic device can establish a NAN group according to the received request. Thus, in the NAN group, the electronic device can interact with three NAN devices. data transfer, etc.
在一个可能的示例中,所述根据预设传输链路更新策略选择第二传输链路,包括:获取第一NAN中的至少一个第三NAN设备,所述第三NAN设备为所述第一NAN中的NAN中继设备;向所述第三NAN设备发送广播指令;通过所述广播指令获取到第二传输链路集合中的至少一个第二传输质量值,所述第二传输链路集合包括所述第二NAN设备和所述至少一个第三NAN设备进行数据传输的至少一个传输链路;对所述至少一个第二传输质量值进行筛选,得到第二传输链路。In a possible example, the selecting the second transmission link according to the preset transmission link update policy includes: acquiring at least one third NAN device in the first NAN, where the third NAN device is the first NAN device. A NAN relay device in the NAN; sending a broadcast instruction to the third NAN device; acquiring at least one second transmission quality value in a second transmission link set through the broadcast instruction, the second transmission link set Including at least one transmission link for data transmission by the second NAN device and the at least one third NAN device; screening the at least one second transmission quality value to obtain a second transmission link.
其中,广播指令用于得到中继设备与第二设备之间的链路质量情况。The broadcast instruction is used to obtain the link quality between the relay device and the second device.
举例来说,如图2B所示,在在NAN网络中,第一NAN设备为电子设备,中继设备有三个NAN设备,第二NAN设备为目标设备,在电子设备与中继设备之间的传输链路确定后,通过筛选三个中继设备与目标设备之间每个链路的传输质量,得到目标链路,进行传输。For example, as shown in FIG. 2B, in a NAN network, the first NAN device is an electronic device, the relay device has three NAN devices, the second NAN device is a target device, and the connection between the electronic device and the relay device is After the transmission link is determined, by screening the transmission quality of each link between the three relay devices and the target device, the target link is obtained for transmission.
可见,本示例中,在NAN网络中,可通过中继设备进行数据传输,进一步的通过检测中继设备与第二NAN设备之间的多个链路质量,筛选出质量最好的链路,进行数据传输,能够提高设备之间数据传输的整体质量和传输的灵活性。It can be seen that in this example, in the NAN network, data transmission can be performed through the relay device, and further by detecting the quality of multiple links between the relay device and the second NAN device, the link with the best quality is screened out. Carrying out data transmission can improve the overall quality of data transmission between devices and the flexibility of transmission.
在一个可能的示例中,所述对所述至少一个第二传输质量值进行筛选,得到第二传输链路,包括:在所述至少一个第二传输质量值中,筛选出高于所述预设阈值的目标第二传输质量值;在所述第二传输链路集合中,获取所述目标第二传输质量值对应的目标传输链路,所述目标传输链路为第二传输链路。In a possible example, the filtering the at least one second transmission quality value to obtain the second transmission link includes: filtering out the at least one second transmission quality value higher than the predetermined transmission quality value. A target second transmission quality value of a threshold is set; in the second transmission link set, a target transmission link corresponding to the target second transmission quality value is obtained, and the target transmission link is a second transmission link.
其中,第二传输质量值与传输链路的对应关系为一对一。The correspondence between the second transmission quality value and the transmission link is one-to-one.
可见,本示例中,在NAN网络中,通过筛选出高过预设阈值的第二传输质量,即得到高质量的传输链路,能够提高设备之间数据传输的速度和传输的灵活性。It can be seen that, in this example, in the NAN network, by filtering out the second transmission quality higher than the preset threshold, that is, obtaining a high-quality transmission link, the speed and flexibility of data transmission between devices can be improved.
在一个可能的示例中,所述获取第一NAN中的至少一个第三NAN设备,包括:获取预设范围内的至少一个第三NAN设备,所述预设范围内的任意一个第三NAN设备的距离小于预设距离。In a possible example, the acquiring at least one third NAN device in the first NAN includes: acquiring at least one third NAN device within a preset range, and any third NAN device within the preset range The distance is less than the preset distance.
其中,预设范围可以为一米、三米、五米等,此处不做唯一限定。The preset range may be one meter, three meters, five meters, etc., which is not limited here.
可见,本示例中,在NAN网络中,在进行中继设备与第二NAN设备间的链路选择前,在所述预设范围内的任意一个第三NAN设备的距离小于预设距离,确保了该链路的传输质量值相同,保证了设备之间数据传输的稳定性和高效性。It can be seen that in this example, in the NAN network, before the link selection between the relay device and the second NAN device is performed, the distance of any third NAN device within the preset range is less than the preset distance, ensuring that The transmission quality value of the link is the same, which ensures the stability and efficiency of data transmission between devices.
可选的,第一NAN设备基于历史记录筛选筛选传输质量相同的多组传输链路;根据每组传输链路中包括的链路的数量,筛选出链路数量最多的一组传输链路;获取该组对应的多个中继设备。Optionally, the first NAN device screens and screens multiple groups of transmission links with the same transmission quality based on historical records; according to the number of links included in each group of transmission links, filters out a group of transmission links with the largest number of links; Obtain multiple relay devices corresponding to the group.
在一个可能的示例中,所述根据所述第二传输链路进行数据传输,包括:获取所述第二传输链路中的目标第三NAN设备;与所述目标第三NAN设备建立通信连接;指示所述目标第三NAN设备和所述第二NAN设备建立通信连接,通过所述目标第三NAN设备与所述第二NAN设备进行数据传输。In a possible example, the performing data transmission according to the second transmission link includes: acquiring a target third NAN device in the second transmission link; establishing a communication connection with the target third NAN device ; Instruct the target third NAN device and the second NAN device to establish a communication connection, and perform data transmission with the second NAN device through the target third NAN device.
可见,本示例中,在NAN网络中,通过连通第一NAN设备和中继设备及中继设备和第二NAN设备之间通道,确保了数据传输的通畅性和稳定性。It can be seen that, in this example, in the NAN network, the smoothness and stability of data transmission are ensured by connecting the channels between the first NAN device and the relay device and between the relay device and the second NAN device.
在一个可能的示例中,在所述根据所述第二传输链路进行数据传输之前,所述方法还包括:将所述第二传输链路与预设白名单进行匹配,得到匹配结果;若所述匹配结果为成功,则将所述第二传输链路进行传输。In a possible example, before the data transmission according to the second transmission link, the method further includes: matching the second transmission link with a preset whitelist to obtain a matching result; if If the matching result is successful, the second transmission link is transmitted.
其中,预设白名单可以为电子设备通过云端得到或者在出厂时通过厂商设定,此处不做唯一限定。The preset whitelist may be obtained by the electronic device through the cloud or set by the manufacturer at the factory, which is not uniquely limited here.
可选的,若匹配结果为失败,则重新在获取第二传输链路集合,进行重新检测。Optionally, if the matching result is failure, the second transmission link set is acquired again, and re-detection is performed.
可见,本示例中,在NAN网络中,通过对选择到的高质量的链路,进行安全性检查,能够确保在数据传输时,该链路传输的文件是安全的,提高了能够提高设备之间数据传输的保密性。It can be seen that in this example, in the NAN network, by performing security checks on the selected high-quality links, it can be ensured that the files transmitted by this link are safe during data transmission, which improves the ability to improve device reliability. Confidentiality of data transfers between them.
与所述图2A所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种数据传输方法的流程示意图,应用于第一邻近感知网络NAN中第一NAN设备。如图所示,本数据传输方法包括:Consistent with the embodiment shown in FIG. 2A , please refer to FIG. 3 , which is a schematic flowchart of a data transmission method provided by an embodiment of the present application, which is applied to a first NAN device in a first proximity-aware network NAN. As shown in the figure, the data transmission method includes:
S301,获取第一NAN中的第二NAN设备和第一传输链路。S301. Acquire a second NAN device and a first transmission link in the first NAN.
S302,确定所述第一传输链路的第一传输质量。S302: Determine the first transmission quality of the first transmission link.
S303,若所述第一传输质量值低于预设阈值时,获取第一NAN中的至少一个第三NAN设备。S303, if the first transmission quality value is lower than a preset threshold, acquire at least one third NAN device in the first NAN.
S304,向所述第三NAN设备发送广播指令。S304. Send a broadcast instruction to the third NAN device.
S305,通过所述广播指令获取到第二传输链路集合中的至少一个第二传输质量值。S305, at least one second transmission quality value in the second transmission link set is acquired through the broadcast instruction.
S306,对所述至少一个第二传输质量值进行筛选,得到第二传输链路。S306: Screen the at least one second transmission quality value to obtain a second transmission link.
S307,根据所述第二传输链路进行数据传输。S307: Perform data transmission according to the second transmission link.
可以看出,本申请实施例中所描述的数据传输方法及相关产品,应用于第一邻近感知网络NAN中第一NAN设备,首先获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路,其次,确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量,然后,若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备,最后,根据所述第二传输链路进行数据传输。可见,在NAN网络中,通过提供一种中继设备转发的手段,在两个设备之间直连链路质量差的时候转换为通过中继站的方式传输数据,提高设备之间数据传输的整体质量,提高设备移动的灵活性。It can be seen that the data transmission method and related products described in the embodiments of this application are applied to the first NAN device in the first proximity-aware network NAN, and the second NAN device and the first transmission link in the first NAN are first obtained. , the first transmission link is the transmission link for data transmission between the first NAN device and the second NAN device, and secondly, determine the first transmission quality value of the first transmission link, the transmission quality value Used to indicate the channel quality of the transmission link, and then, if the first transmission quality value is lower than the preset threshold, select a second transmission link according to the preset transmission link update policy, and the second transmission link includes At least one NAN relay device in the first NAN, finally, performs data transmission according to the second transmission link. It can be seen that in the NAN network, by providing a means of relay device forwarding, when the quality of the direct link between two devices is poor, it is converted to data transmission through the relay station, which improves the overall quality of data transmission between devices. , to improve the flexibility of device movement.
此外,在NAN网络中,可通过中继设备进行数据传输,进一步的通过检测中继设备与第二NAN设备之间的多个链路质量,筛选出质量最好的链路,进行数据传输,能够提高设备之间数据传输的整体质量和传输的灵活性。In addition, in the NAN network, data transmission can be performed through the relay device, and further by detecting the quality of multiple links between the relay device and the second NAN device, the link with the best quality can be selected for data transmission. It can improve the overall quality and flexibility of data transmission between devices.
与所述图2A所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种数据传输方法的流程示意图,应用于第一邻近感知网络NAN中第一NAN设备。如图所示,本数据传输方法包括:Consistent with the embodiment shown in FIG. 2A , please refer to FIG. 4 , which is a schematic flowchart of a data transmission method provided by an embodiment of the present application, which is applied to a first NAN device in a first proximity-aware network NAN. As shown in the figure, the data transmission method includes:
S401,获取第一NAN中的第二NAN设备和第一传输链路。S401: Acquire a second NAN device and a first transmission link in the first NAN.
S402,确定所述第一传输链路的第一传输质量值。S402: Determine a first transmission quality value of the first transmission link.
S403,若所述第一传输质量值低于预设阈值时,获取第一NAN中的至少一个第三NAN设备。S403, if the first transmission quality value is lower than a preset threshold, acquire at least one third NAN device in the first NAN.
S404,向所述第三NAN设备发送广播指令。S404. Send a broadcast instruction to the third NAN device.
S405,通过所述广播指令获取到第二传输链路集合中的至少一个第二传输质量值。S405. Acquire at least one second transmission quality value in the second transmission link set through the broadcast instruction.
S406,在所述至少一个第二传输质量值中,筛选出高于所述预设阈值的目标第二传输质量值。S406: From the at least one second transmission quality value, filter out a target second transmission quality value higher than the preset threshold.
S407,在所述第二传输链路集合中,获取所述目标第二传输质量值对应的目标传输链路,所述目标传输链路为第二传输链路。S407, in the second transmission link set, obtain a target transmission link corresponding to the target second transmission quality value, where the target transmission link is a second transmission link.
S408,获取所述第二传输链路中的目标第三NAN设备。S408: Acquire the target third NAN device in the second transmission link.
S409,与所述目标第三NAN设备建立通信连接。S409, establish a communication connection with the target third NAN device.
S410,指示所述目标第三NAN设备和所述第二NAN设备建立通信连接。S410: Instruct the target third NAN device to establish a communication connection with the second NAN device.
S411,通过所述目标第三NAN设备与所述第二NAN设备进行数据传输。S411: Perform data transmission with the second NAN device through the target third NAN device.
可以看出,本申请实施例中所描述的数据传输方法及相关产品,应用于第一邻近感知网络NAN中第一NAN设备,首先获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路,其次,确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量,然后,若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备,最后,根据所述第二传输链路进行数据传输。可见,在NAN网络中,通过提供一种中继设备转发的手段,在两个设备之间直连链路质量差的时候转换为通过中继站的方式传输数据,提高设备之间数据传输的整体质量,提高设备移动的灵活性。It can be seen that the data transmission method and related products described in the embodiments of this application are applied to the first NAN device in the first proximity-aware network NAN, and the second NAN device and the first transmission link in the first NAN are first obtained. , the first transmission link is the transmission link for data transmission between the first NAN device and the second NAN device, and secondly, determine the first transmission quality value of the first transmission link, the transmission quality value Used to indicate the channel quality of the transmission link, and then, if the first transmission quality value is lower than the preset threshold, select a second transmission link according to the preset transmission link update policy, and the second transmission link includes At least one NAN relay device in the first NAN, finally, performs data transmission according to the second transmission link. It can be seen that in the NAN network, by providing a means of relay device forwarding, when the quality of the direct link between two devices is poor, it is converted to data transmission through the relay station, which improves the overall quality of data transmission between devices. , to improve the flexibility of device movement.
此外,在NAN网络中,可通过中继设备进行数据传输,进一步的通过检测中继设备与第二NAN设备之间的多个链路质量,筛选出质量最好的链路,进行数据传输,能够提高设备之间数据传输的整体质量和传输的灵活性。In addition, in the NAN network, data transmission can be performed through the relay device, and further by detecting the quality of multiple links between the relay device and the second NAN device, the link with the best quality can be selected for data transmission. It can improve the overall quality and flexibility of data transmission between devices.
此外,在NAN网络中,通过筛选出高过预设阈值的第二传输质量,即得到高质量的传输链路,能够提高设备之间数据传输的速度和传输的灵活性。In addition, in the NAN network, by filtering out the second transmission quality higher than the preset threshold, that is, obtaining a high-quality transmission link, the speed and flexibility of data transmission between devices can be improved.
此外,在NAN网络中,通过连通第一NAN设备和中继设备及中继设备和第二NAN设备之间通道,确保了数据传输的通畅性和稳定性。In addition, in the NAN network, by connecting the first NAN device and the relay device and the channel between the relay device and the second NAN device, smoothness and stability of data transmission are ensured.
与所述图2A、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,如图所示,所述电子设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIG. 2A , FIG. 3 , and FIG. 4 , please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. The device 500 includes an application processor 510, a memory 520, a
获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路;Acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量;determining a first transmission quality value of the first transmission link, where the transmission quality value is used to represent the channel quality of the transmission link;
若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备;If the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay in the first NAN equipment;
根据所述第二传输链路进行数据传输。Data transmission is performed according to the second transmission link.
可以看出,本申请实施例中所描述的数据传输方法及相关产品,应用于第一邻近感知网络NAN中第一NAN设备,首先获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路,其次,确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量,然后,若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备,最后,根据所述第二传输链路进行数据传输。可见,在NAN网络中,通过提供一种中继设备转发的手段,在两个设备之间直连链路质量差的时候转换为通过中继站的方式传输数据,提高设备之间数据传输的整体质量,提高设备移动的灵活性。It can be seen that the data transmission method and related products described in the embodiments of this application are applied to the first NAN device in the first proximity-aware network NAN, and the second NAN device and the first transmission link in the first NAN are first obtained. , the first transmission link is the transmission link for data transmission between the first NAN device and the second NAN device, and secondly, determine the first transmission quality value of the first transmission link, the transmission quality value Used to indicate the channel quality of the transmission link, and then, if the first transmission quality value is lower than the preset threshold, select a second transmission link according to the preset transmission link update policy, and the second transmission link includes At least one NAN relay device in the first NAN, finally, performs data transmission according to the second transmission link. It can be seen that in the NAN network, by providing a means of relay device forwarding, when the quality of the direct link between two devices is poor, it is converted to data transmission through the relay station, which improves the overall quality of data transmission between devices. , to improve the flexibility of device movement.
在一个可能的示例中,在所述根据预设传输链路更新策略选择第二传输链路方面,所述程序包括用于执行以下步骤的指令:获取第一NAN中的至少一个第三NAN设备,所述第三NAN设备为所述第一NAN中的NAN中继设备;向所述第三NAN设备发送广播指令;通过所述广播指令获取到第二传输链路集合中的至少一个第二传输质量值,所述第二传输链路集合包括所述第二NAN设备和所述至少一个第三NAN设备进行数据传输的至少一个传输链路;对所述至少一个第二传输质量值进行筛选,得到第二传输链路。In a possible example, in the aspect of selecting the second transmission link according to the preset transmission link update policy, the program includes an instruction for performing the following steps: acquiring at least one third NAN device in the first NAN , the third NAN device is a NAN relay device in the first NAN; sends a broadcast instruction to the third NAN device; obtains at least one second transmission link set through the broadcast instruction Transmission quality value, the second transmission link set includes at least one transmission link for data transmission by the second NAN device and the at least one third NAN device; screening the at least one second transmission quality value , to obtain the second transmission link.
在一个可能的示例中,在所述对所述至少一个第二传输质量值进行筛选,得到第二传输链路方面,所述程序包括用于执行以下步骤的指令:In a possible example, in the aspect of obtaining the second transmission link by filtering the at least one second transmission quality value, the program includes instructions for performing the following steps:
在所述至少一个第二传输质量值中,筛选出高于所述预设阈值的目标第二传输质量值;在所述第二传输链路集合中,获取所述目标第二传输质量值对应的目标传输链路,所述目标传输链路为第二传输链路。In the at least one second transmission quality value, filter out a target second transmission quality value higher than the preset threshold; in the second transmission link set, obtain the target second transmission quality value corresponding to the The target transmission link is the second transmission link.
在一个可能的示例中,在所述获取第一NAN中的至少一个第三NAN设备方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of acquiring at least one third NAN device in the first NAN, the program includes instructions for performing the following steps:
获取在预设范围内的至少一个第三NAN设备,所述预设范围中任意一个第三NAN设备的距离小于预设距离。Acquire at least one third NAN device within a preset range, where the distance of any third NAN device in the preset range is smaller than the preset distance.
在一个可能的示例中,在所述根据所述第二传输链路进行数据传输方面,所述程序包括用于执行以下步骤的指令:In a possible example, in the aspect of data transmission according to the second transmission link, the program includes instructions for performing the following steps:
获取所述第二传输链路中的目标第三NAN设备;与所述目标第三NAN设备建立通信连接;指示所述目标第三NAN设备和所述第二NAN设备建立通信连接,通过所述目标第三NAN设备与所述第二NAN设备进行数据传输。Obtain the target third NAN device in the second transmission link; establish a communication connection with the target third NAN device; instruct the target third NAN device and the second NAN device to establish a communication connection, through the The target third NAN device performs data transmission with the second NAN device.
在一个可能的示例中,在所述根据所述第二传输链路进行数据传输之前,所述程序包括还用于执行以下步骤的指令:In a possible example, before the data transmission is performed according to the second transmission link, the program includes instructions for further performing the following steps:
将所述第二传输链路与预设白名单进行匹配,得到匹配结果;若所述匹配结果为成功,则将所述第二传输链路进行传输。Matching the second transmission link with a preset whitelist to obtain a matching result; if the matching result is successful, transmitting the second transmission link.
上述实施例主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing embodiments mainly introduce the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to realize the above-mentioned functions, the electronic device includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware 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 of the present application, the electronic device may be divided into functional units according to the method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例所实现的方法。如图6所示的数据传输生成装置600,应用于第一邻近感知网络NAN中第一NAN设备,所述数据传输装置600包括获取单元601、确定单元602、选择单元603和传输单元604,其中,The following are apparatus embodiments of the present invention, and the apparatus embodiments of the present invention are used to execute the methods implemented by the method embodiments of the present invention. The data
所述获取单元601,用于获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路;The acquiring
所述确定单元602,用于确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量;The determining
所述选择单元603,用于若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备;The selecting
所述传输单元604,用于根据所述第二传输链路进行数据传输。The
可以看出,本申请实施例中所描述的数据传输方法及相关产品,应用于第一邻近感知网络NAN中第一NAN设备,首先获取第一NAN中的第二NAN设备和第一传输链路,所述第一传输链路为所述第一NAN设备与所述第二NAN设备进行数据传输的传输链路,其次,确定所述第一传输链路的第一传输质量值,传输质量值用于表示传输链路的信道质量,然后,若所述第一传输质量值低于预设阈值时,根据预设传输链路更新策略选择第二传输链路,所述第二传输链路包括至少一个所述第一NAN中的NAN中继设备,最后,根据所述第二传输链路进行数据传输。可见,在NAN网络中,通过提供一种中继设备转发的手段,在两个设备之间直连链路质量差的时候转换为通过中继站的方式传输数据,提高设备之间数据传输的整体质量,提高设备移动的灵活性。It can be seen that the data transmission method and related products described in the embodiments of this application are applied to the first NAN device in the first proximity-aware network NAN, and the second NAN device and the first transmission link in the first NAN are first obtained. , the first transmission link is the transmission link for data transmission between the first NAN device and the second NAN device, and secondly, determine the first transmission quality value of the first transmission link, the transmission quality value Used to indicate the channel quality of the transmission link, and then, if the first transmission quality value is lower than the preset threshold, select a second transmission link according to the preset transmission link update policy, and the second transmission link includes At least one NAN relay device in the first NAN, finally, performs data transmission according to the second transmission link. It can be seen that in the NAN network, by providing a means of relay device forwarding, when the quality of the direct link between two devices is poor, it is converted to data transmission through the relay station, which improves the overall quality of data transmission between devices. , to improve the flexibility of device movement.
在一个可能的示例中,在所述根据预设传输链路更新策略选择第二传输链路方面,所述选择单元603具体用于:获取第一NAN中的至少一个第三NAN设备,所述第三NAN设备为所述第一NAN中的NAN中继设备;向所述第三NAN设备发送广播指令;通过所述广播指令获取到第二传输链路集合中的至少一个第二传输质量值,所述第二传输链路集合包括所述第二NAN设备和所述至少一个第三NAN设备进行数据传输的至少一个传输链路;对所述至少一个第二传输质量值进行筛选,得到第二传输链路。In a possible example, in the aspect of selecting the second transmission link according to the preset transmission link update policy, the selecting
在一个可能的示例中,在所述对所述至少一个第二传输质量值进行筛选,得到第二传输链路方面,所述选择单元603具体用于:在所述至少一个第二传输质量值中,筛选出高于所述预设阈值的目标第二传输质量值;在所述第二传输链路集合中,获取所述目标第二传输质量值对应的目标传输链路,所述目标传输链路为第二传输链路。In a possible example, in the aspect of filtering the at least one second transmission quality value to obtain the second transmission link, the selecting
在一个可能的示例中,在所述获取第一NAN中的至少一个第三NAN设备方面,所述选择单元603具体用于:获取在预设范围内的至少一个第三NAN设备,所述预设范围中任意一个第三NAN设备的距离小于预设距离。In a possible example, in the aspect of acquiring at least one third NAN device in the first NAN, the selecting
在一个可能的示例中,在所述根据所述第二传输链路进行数据传输方面,所述传输单元604具体用于:获取所述第二传输链路中的目标第三NAN设备;与所述目标第三NAN设备建立通信连接;指示所述目标第三NAN设备和所述第二NAN设备建立通信连接,通过所述目标第三NAN设备与所述第二NAN设备进行数据传输。In a possible example, in the aspect of data transmission according to the second transmission link, the
在一个可能的示例中,在所述根据所述第二传输链路进行数据传输之前,所述确定单元602还具体用于:将所述第二传输链路与预设白名单进行匹配,得到匹配结果;若所述匹配结果为成功,则将所述第二传输链路进行传输。In a possible example, before performing the data transmission according to the second transmission link, the determining
本申请实施例还提供了另一种电子设备,如图7所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(personal digital assistant,个人数字助理)、POS(point of sales,销售终端)、车载电脑等任意终端设备。This embodiment of the present application also provides another electronic device, as shown in FIG. 7 . For the convenience of description, only the part related to the embodiment of the present application is shown. If the specific technical details are not disclosed, please refer to the method of the embodiment of the present application. part. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant, personal digital assistant), a POS (point of sales, sales terminal), a car computer, and the like.
图7示出的是与本发明实施例提供的电子设备的部分结构的框图。如图7所示,电子设备710可以包括控制电路,该控制电路可以包括存储和处理电路720。该存储和处理电路720可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路720中的处理电路可以用于控制电子设备710的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。FIG. 7 is a block diagram showing a partial structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 7 ,
存储和处理电路720可用于运行电子设备710中的软件,例如互联网浏览应用程序,互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子设备710中的其它功能等,本申请实施例不作限制。Storage and
电子设备710还可以包括输入-输出电路730。输入-输出电路730可用于使电子设备710实现数据的输入和输出,即允许电子设备710从外部设备接收数据和也允许电子设备710将数据从电子设备710输出至外部设备。输入-输出电路730可以进一步包括传感器731。传感器731可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,超声波传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,和其它传感器等。
输入-输出电路730还可以包括一个或多个显示器,例如显示器732。显示器732可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器732可以包括触摸传感器阵列(即,显示器732可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。Input-
电子设备710还可以包括音频组件733。音频组件733可以用于为电子设备710提供音频输入和输出功能。电子设备10中的音频组件36可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。
通信电路734可以用于为电子设备710提供与外部设备通信的能力。通信电路734可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路734中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路734中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(near field communication,NFC)的电路。例如,通信电路734可以包括近场通信天线和近场通信收发器。通信电路734还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
电子设备710还可以进一步包括电池,电力管理电路和其它输入-输出单元735。输入-输出单元735可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The
用户可以通过输入-输出电路730输入命令来控制电子设备710的操作,并且可以使用输入-输出电路730的输出数据以实现接收来自电子设备710的状态信息和其它输出。A user may input commands through the input-
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种数据传输方法的部分或全部步骤。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part of any data transmission method described in the above method embodiments or all steps.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种数据传输方法的部分或全部步骤。The embodiments of the present application further provide a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the methods described in the foregoing method embodiments. Some or all of the steps of any method of data transfer.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, 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 or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, and can also be implemented in the form of software program modules.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software program module and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, disk or CD, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810857951.9ACN108683444B (en) | 2018-07-31 | 2018-07-31 | Data transmission method and related products |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810857951.9ACN108683444B (en) | 2018-07-31 | 2018-07-31 | Data transmission method and related products |
| Publication Number | Publication Date |
|---|---|
| CN108683444A CN108683444A (en) | 2018-10-19 |
| CN108683444Btrue CN108683444B (en) | 2020-12-22 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810857951.9AExpired - Fee RelatedCN108683444B (en) | 2018-07-31 | 2018-07-31 | Data transmission method and related products |
| Country | Link |
|---|---|
| CN (1) | CN108683444B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111132234B (en)* | 2018-11-01 | 2023-08-04 | 华为终端有限公司 | Data transmission method and corresponding terminal |
| CN109474896B (en)* | 2018-11-16 | 2022-04-22 | Tcl移动通信科技(宁波)有限公司 | Decentralized block chain implementation method, decentralized block chain implementation system and storage medium |
| CN111836329B (en)* | 2019-04-19 | 2022-04-22 | Oppo广东移动通信有限公司 | Data transmission method and related device |
| CN110290544A (en)* | 2019-05-24 | 2019-09-27 | 菜鸟智能物流控股有限公司 | Data transmission device and method and electronic equipment |
| WO2021120077A1 (en)* | 2019-12-19 | 2021-06-24 | aTELEFONAKTIEBOLAGET LM ERICSSON (PUBL) | Method for link selection, user equipment, network node, and telecommunication system |
| CN111726406A (en)* | 2020-06-16 | 2020-09-29 | 杭州涂鸦信息技术有限公司 | Data transmission method and related equipment |
| US20230060222A1 (en)* | 2021-08-24 | 2023-03-02 | Mediatek Inc. | Apparatuses and methods for extending service range of neighbor awareness networking (nan) communication |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103634812A (en)* | 2013-11-27 | 2014-03-12 | 西安电子科技大学 | Intra-cell device to device direct communication method based on user device relay |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101997593B (en)* | 2009-08-17 | 2014-04-02 | 上海交通大学 | Self-adaption relay type preferential selecting method and relay node |
| CN102036345B (en)* | 2009-09-24 | 2015-03-25 | 北京邮电大学 | Method for selecting distributed optimum relay from mobile multi-hop relay network |
| CN101860873A (en)* | 2010-05-21 | 2010-10-13 | 南京邮电大学 | A distributed relay selection method based on cross-layer information interaction |
| CN101883410B (en)* | 2010-07-20 | 2012-10-17 | 上海交通大学 | Relay node selection method for multi-relay wireless network |
| CN102740352B (en)* | 2011-04-07 | 2014-12-31 | 中国移动通信集团公司 | Adaptive cooperation method, terminal, base station, and relay equipment based on relay selection |
| CN102355661B (en)* | 2011-07-21 | 2015-06-17 | 北京邮电大学 | Non-regenerative-relay-mode-based relay forwarding control method and device |
| US9572195B2 (en)* | 2011-08-02 | 2017-02-14 | Google Technology Holdings LLC | Link sharing within a communication system |
| EP2670083B1 (en)* | 2012-05-28 | 2015-05-06 | Itron, Inc. | Efficient multicast in a smart grid |
| CN103763015B (en)* | 2014-02-10 | 2017-06-23 | 中国人民解放军理工大学 | It is a kind of to have transmission antenna system of selection in the multiple antennas junction network of direct connected link |
| CN106714329B (en)* | 2015-11-12 | 2021-03-02 | 华为技术有限公司 | Method and device for establishing data link |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103634812A (en)* | 2013-11-27 | 2014-03-12 | 西安电子科技大学 | Intra-cell device to device direct communication method based on user device relay |
| Title |
|---|
| 认知无线电系统的资源分配问题研究;周明月;《中国博士学位论文全文数据库》;20140915;全文* |
| Publication number | Publication date |
|---|---|
| CN108683444A (en) | 2018-10-19 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108683444B (en) | Data transmission method and related products | |
| CN109639367B (en) | Electromagnetic interference adjusting method and related product | |
| CN109743129B (en) | Electromagnetic interference control method and related product | |
| CN109274833B (en) | Electromagnetic interference adjusting method and related product | |
| CN109348055B (en) | Display control method, display control device, electronic device, and readable storage medium | |
| CN109120683B (en) | Data transmission method and related product | |
| CN108900231B (en) | Dynamic antenna adjustment method and related products | |
| CN109067984B (en) | Data transmission method, electronic device, and computer-readable storage medium | |
| CN108834132B (en) | Data transmission method and equipment and related medium product | |
| CN110475020B (en) | Equipment control method and related products | |
| EP3713279B1 (en) | Adjacent cell rrm measurement control method, mobile communication terminal, and network side device | |
| CN108833683B (en) | Dynamic antenna adjustment implementation method and related product | |
| CN106101776B (en) | Volume adjusting method, intelligent device and sound box | |
| CN110505014A (en) | data transmission control method and related product | |
| CN106603740A (en) | Network connection abnormality processing method and terminal equipment | |
| CN108834013B (en) | Wearable equipment electric quantity balancing method and related product | |
| CN111522613B (en) | Screen capturing method and electronic equipment | |
| CN108683800B (en) | Mobile terminal, position detection method and related products | |
| CN108235803A (en) | Message record merging and displaying method and terminal equipment | |
| CN106484563A (en) | A kind of data migration method and terminal unit | |
| CN108966290B (en) | Network connection method and related products | |
| CN108900385B (en) | Network connection method and related products | |
| CN109195226B (en) | Data transmission method and apparatus, electronic device and computer-readable storage medium | |
| CN110891262A (en) | Bluetooth pairing method, system and terminal equipment | |
| CN106453845A (en) | Data transmission method and equipment |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20201222 | |
| CF01 | Termination of patent right due to non-payment of annual fee |