Movatterモバイル変換


[0]ホーム

URL:


CN108990039B - Data transmission method and related device - Google Patents

Data transmission method and related device
Download PDF

Info

Publication number
CN108990039B
CN108990039BCN201810897875.4ACN201810897875ACN108990039BCN 108990039 BCN108990039 BCN 108990039BCN 201810897875 ACN201810897875 ACN 201810897875ACN 108990039 BCN108990039 BCN 108990039B
Authority
CN
China
Prior art keywords
data
adjacent
devices
target data
neighboring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810897875.4A
Other languages
Chinese (zh)
Other versions
CN108990039A (en
Inventor
胡亚东
柯世兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810897875.4ApriorityCriticalpatent/CN108990039B/en
Publication of CN108990039ApublicationCriticalpatent/CN108990039A/en
Application grantedgrantedCritical
Publication of CN108990039BpublicationCriticalpatent/CN108990039B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种数据传输方法及相关装置,应用于电子设备,所述电子设备和多个邻近设备建立有邻近感知网络NAN连接,包括向多个邻近设备发送目标数据获取请求,所述多个邻近设备携带有所述目标数据;接收来自所述多个邻近设备发送的反馈信息,所述反馈信息包括所述多个邻近设备的网络质量信息;根据所述反馈信息选取所述多个邻近设备中的至少一个邻近设备,从所述至少一个邻近设备中获取所述目标数据。本申请有利于电子设备通过NAN网络同时从多个邻近设备中获取目标数据,提高获取目标数据的效率和稳定性。

Figure 201810897875

The present application discloses a data transmission method and related apparatus, which are applied to electronic equipment. The electronic equipment establishes a proximity-aware network NAN connection with multiple neighboring devices, which includes sending a target data acquisition request to multiple neighboring devices. neighboring devices carry the target data; receive feedback information sent from the multiple neighboring devices, where the feedback information includes network quality information of the multiple neighboring devices; select the multiple neighboring devices according to the feedback information At least one neighboring device in the device obtains the target data from the at least one neighboring device. The present application is beneficial for the electronic device to simultaneously acquire target data from multiple adjacent devices through the NAN network, thereby improving the efficiency and stability of acquiring the target data.

Figure 201810897875

Description

Data transmission method and related device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data transmission method and a related apparatus.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, and the like), the electronic devices have more and more applications and more powerful functions, and the electronic devices are developed towards diversification and personalization, and become indispensable electronic products in the life of target objects. A Neighbor Awareness Network (NAN) is applied between electronic devices, where the NAN is a local area network in which NAN devices are directly or indirectly connected together, information may directly circulate, and multiple devices are connected to each other, and may share resources among the multiple devices.
Disclosure of Invention
The embodiment of the application provides a data transmission method and a related device, which are beneficial for electronic equipment to simultaneously obtain target data from a plurality of adjacent equipment through a NAN network and improve the efficiency and stability of data acquisition.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to an electronic device, where the electronic device and a plurality of neighboring devices establish a neighbor awareness network NAN connection, and the method includes:
sending a target data acquisition request to a plurality of adjacent devices, wherein the target data is carried by the plurality of adjacent devices;
receiving feedback information sent from the plurality of neighboring devices, the feedback information comprising network quality information of the plurality of neighboring devices;
and selecting at least one adjacent device from the plurality of adjacent devices according to the feedback information, and acquiring the target data from the at least one adjacent device.
In a second aspect, an embodiment of the present application provides a resource sharing apparatus applied to an electronic device, where the electronic device and a plurality of neighboring devices establish a neighbor awareness network NAN connection, the resource sharing apparatus includes a sending unit, a receiving unit, and a processing unit, where,
the sending unit is configured to send a target data acquisition request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data;
the receiving unit is configured to receive feedback information sent by the multiple neighboring devices, where the feedback information includes network quality information of the multiple neighboring devices;
the processing unit is configured to select at least one neighboring device from the multiple neighboring devices according to the feedback information, and acquire the target data from the at least one neighboring device.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
It can be seen that, in this embodiment of the application, an electronic device first sends a target data obtaining request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data, then receives feedback information sent by the plurality of neighboring devices, where the feedback information includes network quality information of the plurality of neighboring devices, and finally selects at least one of the plurality of neighboring devices according to the feedback information to obtain the target data from the at least one neighboring device. The electronic equipment can send the target data acquisition request to the plurality of adjacent equipment carrying the target data in the adjacent sensing network, and selects at least one adjacent equipment with good network quality according to the feedback information sent by the plurality of adjacent equipment, so that the target data can be acquired from the at least one adjacent equipment at the same time, and the efficiency and the stability of acquiring the target data are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
FIG. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
fig. 1C is a network architecture diagram of a NAN according to an embodiment of the present application;
fig. 1D is a schematic view of a scenario for starting a network function according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another data transmission method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another data transmission method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a resource sharing apparatus according to an embodiment of the present disclosure.
Detailed description of the invention
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
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 application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1A, currently, electronic devices such as smart phones are generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, and the one or more application programs are third-party application programs installed in the electronic devices.
The electronic device can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the electronic device is not limited herein. As shown in fig. 1B, for example that the electronic device runs an Android system, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
A Neighbor Awareness Network (NAN), also called a wireless fidelity identity (Wi-fidelity), is described in the embodiments of the present application by using the NAN. The NAN function is mainly used for realizing a real-time efficient discovery mechanism, so that the Wi-Fi function is expanded, and the application experience at the moment is improved. The device and the service are continuously discovered in the Wi-Fi range before connection is established, the device does not need to be connected to a mobile broadband network or a Wi-Fi infrastructure network, and a fast awareness networking mode of a component NAN can be achieved. The social application created by the new technology can be adopted, for example, people can be helped to find nearby friends, information or services meeting the requirements of the people, small-section information can be exchanged under the condition of no connection, for example, position information is carried in a discovery frame discover beacon, information exchange is carried out through interaction of the discovery frame, and the like. In addition, the environment sensing function is improved. Because the terminals do not need to rely on network connection to inform the surrounding experience of the users to the users through the NAN, as long as the Wi-Fi Aware discovers the terminals which also support the NAN function, the Wi-Fi Direct or infrastructure connection can be established, and then multiple experiences are provided. Thus, the NAN functionality may help users complete more tasks using the information they receive, from discovering information to eventual activities, supplementing the proximity-based experience.
Referring to fig. 1C, fig. 1C is a network architecture diagram of a NAN according to an embodiment of the present disclosure, where the network architecture diagram includes an electronic device, a first neighboring device, a second neighboring device, and a third neighboring device, although in practical applications, there may be more data neighboring devices. And the electronic equipment and the adjacent equipment in the NAN both support the NAN function, and the NAN function is started before the application is run. The NAN function may be triggered by similar actions like turning on a Wi-Fi switch or turning on a button for controlling the NAN function, as shown in fig. 1D, the neighbor awareness network and the wired network are in an on state, and the wireless network is in an off state; and the system can also be automatically started when the operation parameters meet certain conditions, wherein: the operating parameter may be a current location of the electronic device, for example: parking area, market, highway etc. the operating parameter also can be electronic equipment's foreground application, for example: applications including location services, applications involving neighboring networks, and the like, are not limited herein. When the proximity sensing network, the wireless network and the wired network are all started, which network is specifically used by the electronic equipment can be determined according to a preset priority order.
The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data transmission method according to an embodiment of the present application, which is applied to an electronic device, where the electronic device and a plurality of neighboring devices establish a neighbor aware network NAN connection. The data transmission method comprises the following steps:
s201, the electronic device sends a target data acquisition request to a plurality of adjacent devices, and the adjacent devices carry the target data.
The electronic device may send a target data acquisition request to a plurality of neighboring devices in a neighbor aware NAN network, where the plurality of neighboring devices are neighboring devices carrying target data, and thus may request the plurality of neighboring devices in the NAN to acquire the target data, where the acquisition request includes identification information of the electronic device, and the identification information is used to uniquely identify the electronic device, and further may inform the neighboring devices of identification information of devices that need to acquire the target data.
The target data may include video data, audio data, file data, picture data, and the like, without any limitation, and the electronic device may acquire the target data from a neighboring device, in which the target data is stored in a local storage space, faster than the target data acquired from the internet.
S202, the electronic device receives feedback information sent by the plurality of neighboring devices, wherein the feedback information comprises network quality information of the plurality of neighboring devices.
The electronic device receives feedback information sent by a plurality of neighboring devices, wherein the feedback information includes network quality information of the neighboring devices and also includes identification information of the neighboring devices, so that the electronic device can determine which neighboring devices have the target data and which neighboring devices do not have the target data.
The NAN network may include a plurality of NAN devices, and network qualities of different NAN devices may be different, where the network qualities may include a data transmission speed of the NAN devices or security of data transmission, and are not limited herein.
S203, the electronic device selects at least one adjacent device from the plurality of adjacent devices according to the feedback information, and acquires the target data from the at least one adjacent device.
The electronic equipment selects at least one adjacent device according to the feedback information sent by the adjacent devices, acquires the target data from the adjacent devices, and distributes the split target data to each adjacent device in the at least one adjacent device, so that the target data can be acquired from the at least one adjacent device in a parallel mode, and the data processing efficiency is improved.
It can be seen that, in this embodiment of the application, an electronic device first sends a target data obtaining request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data, then receives feedback information sent by the plurality of neighboring devices, where the feedback information includes network quality information of the plurality of neighboring devices, and finally selects at least one of the plurality of neighboring devices according to the feedback information to obtain the target data from the at least one neighboring device. The electronic equipment can send the target data acquisition request to the plurality of adjacent equipment carrying the target data in the adjacent sensing network, and selects at least one adjacent equipment with good network quality according to the feedback information sent by the plurality of adjacent equipment, so that the target data can be acquired from the at least one adjacent equipment at the same time, and the efficiency and the stability of acquiring the target data are improved.
In one possible example, the network quality information includes a security protocol employed by the plurality of neighboring devices during data transmission; the selecting at least one neighboring device from the plurality of neighboring devices according to the feedback information and acquiring the target data from the at least one neighboring device includes: splitting the target data according to the security requirement of the target data to obtain multiple copies of data, wherein the multiple copies of data correspond to different security levels; selecting at least one adjacent device of the plurality of adjacent devices, the safety of which meets a preset condition, according to a safety protocol adopted by the plurality of adjacent devices; matching the multiple data with the at least one adjacent device, wherein the data with high security level corresponds to the adjacent device with high security; and acquiring the multiple copies of data from the at least one adjacent device to obtain the target data.
The network quality information comprises a security protocol adopted by a plurality of adjacent devices in a data transmission process, the security protocol can be an encryption mode for transmitting data, such as an encryption method, the data encryption methods adopted by different adjacent devices in the data transmission process are possibly different, the security protocol can also be an encryption password, a default encryption password is arranged between the electronic device and the adjacent devices, the data can be checked only after the encryption password is input, the security of the adjacent devices in the data transmission process can be determined according to the security protocol of the adjacent devices, and therefore at least one adjacent device, the security of which meets preset conditions, in the plurality of adjacent devices is selected. For example, 3 neighboring devices are selected, and the security of the neighboring device 1 is greater than that of the neighboring device 2, and the security of the neighboring device 2 is greater than that of the neighboring device 3.
The method comprises the steps of splitting target data to obtain multiple data according to the security requirement of the target data, wherein each data corresponds to different security levels. For example, the target data is file data, a part of the file data may relate to confidential content, the file data is divided into file data a, file data B and file data C corresponding to a high security level, and the file data a, the file data B and the file data C are sequentially arranged from high to low in the security level. And matching the split target data with at least one adjacent device, wherein the file data A corresponds to the adjacent device 1, the file data B corresponds to the adjacent device 2, and the file data C corresponds to the adjacent device 3.
As can be seen, in this example, the target data is split into multiple pieces of data, each piece of data corresponds to a different security level, at least one neighboring device of the multiple neighboring devices, whose security meets a preset condition, is simultaneously selected, and the neighboring device with high security corresponds to the data with high security level, so that the multiple pieces of data can be simultaneously obtained from the at least one neighboring device to obtain the target data, and the security during data transmission is ensured.
In one possible example, the network quality information includes data transmission speeds of the plurality of neighboring devices; the selecting at least one neighboring device from the plurality of neighboring devices according to the feedback information and acquiring the target data from the at least one neighboring device includes: selecting at least one adjacent device of the plurality of adjacent devices, wherein the data transmission speed of the at least one adjacent device is greater than a preset speed; splitting the target data into a plurality of data sets according to the data transmission speed of the at least one adjacent device, wherein the data sets are different in data quantity; and acquiring the multiple copies of data from the at least one adjacent device to obtain the target data.
The electronic device selects at least one neighboring device from the plurality of neighboring devices, the data transmission speed of which is greater than a preset speed, and splits the target data into a plurality of data according to the data transmission speed of the at least one neighboring device, wherein each data corresponds to different data size.
As can be seen, in this example, at least one neighboring device with a data transmission speed greater than a preset speed is selected from the multiple neighboring devices, and the target data is split into multiple pieces of data, where the data size of each piece of data is different, so that the data with a large data size can correspond to the neighboring device with a high transmission speed, and thus, the target data can be acquired from the at least one neighboring device in parallel, which is beneficial to improving the data acquisition efficiency.
In one possible example, the splitting the target data into multiple pieces of data according to the data transmission speed of the at least one neighboring device includes: determining a speed proportional relationship of data transmission speed of each of the at least one neighboring device; splitting the target data according to the speed proportional relation to obtain multiple data sets, wherein the data quantity proportional relation of each data set in the multiple data sets is matched with the speed proportional relation, and each data set corresponds to one adjacent device; and informing the electronic equipment to acquire corresponding data from each of the at least one adjacent equipment to obtain the target data.
The electronic device may determine a speed proportional relationship of data transmission speeds of each neighboring device in the at least one neighboring device, so that the target data may be split into multiple data according to the speed proportional relationship, that is, a proportional relationship of data size of each data in the multiple data is equal to the speed proportional relationship, and each data corresponds to one neighboring device. For example, the speed ratio of the neighboring device 1, the neighboring device 2, and the neighboring device 3 is 3:1:5, the data size of the target data is 900 megabits, the target data is split into 3 parts, which are 300 megabits, 100 megabits, and 500 megabits in sequence, the neighboring device 1 transmits 300 megabits of data, the neighboring device 2 transmits 100 megabits of data, and the neighboring device 3 transmits 500 megabits of data, and thus, the ratio of each part of data matches the speed ratio, and the electronic device can acquire the target data in a short time.
It can be seen that, in this example, the data transmission speed of each neighboring device in at least one neighboring device is determined, the target data is split according to the speed proportional relationship to obtain multiple pieces of data, each piece of data corresponds to one neighboring device, and the data size is allocated according to the data transmission speed of each neighboring device, which is beneficial to effectively utilizing the data transmission speed of the neighboring devices, shortening the total time for acquiring the target data, and achieving that each piece of data is acquired in multiple neighboring devices at the same time.
In one possible example, the target data is video data; the acquiring the target data from the at least one neighboring device comprises: splitting the video data into a plurality of data shares, wherein each data share corresponds to the playing time sequence of the video; acquiring a data transmission speed of each of the at least one neighboring device; matching the plurality of data with each of the at least one neighboring device, wherein the playing time sequence of the data matched by the neighboring device with a first data transmission speed is earlier than the playing time sequence of the data matched by the neighboring device with a second data transmission speed in the matching relation, and the first data transmission speed is higher than the second data transmission speed; and acquiring data corresponding to each adjacent device from the at least one adjacent device to obtain the target data.
When the target data is video data, because the video data has a time sequence during playing, after the video data is split into a plurality of data, the playing time sequence of the data corresponding to each data is determined; for example, one video data with a playing time of 9 seconds, the split data 1 corresponds to 1-3 seconds of video data, the data 2 corresponds to 4-6 seconds of video data, and the data 3 corresponds to 7-9 seconds of video data.
After at least one adjacent device is selected from the multiple adjacent devices for data transmission, determining the data transmission speed of each adjacent device, and matching the split multiple data with each adjacent device, wherein the playing time sequence of the data matched by the adjacent device with the first data transmission speed in the matching relation is earlier than that of the data matched by the adjacent device with the second data transmission speed, and the first data transmission speed is higher than that of the data with the second data transmission speed, namely the adjacent device with the high transmission speed corresponds to the adjacent device with the earlier playing time sequence. For example, the data transmission speed is from high to low for the neighboring device 1, the neighboring device 2, and the neighboring device 3, so that the data 1 can be transmitted by the neighboring device 1, the data 2 can be transmitted by the neighboring device 2, and the data 3 can be transmitted by the neighboring device 3, so that the electronic device can receive the data 1, the data 2, and the data 3 in sequence.
As can be seen, in this example, when it is detected that the target data is video data, the video data may be split into multiple pieces of data, each piece of data corresponds to a different play time sequence, and data with a previous play time sequence corresponds to a neighboring device with a fast data transmission speed, which is beneficial for the electronic device to sequentially obtain the multiple pieces of data according to the play time sequence so as to obtain the target data, and simultaneously, the electronic device may obtain the video data while playing the video data.
In one possible example, the sending target data acquisition requests to a plurality of nearby devices includes: acquiring a connection record between the adjacent equipment and the electronic equipment in the adjacent perception network; determining an affinity value between the proximity device and the electronic device from the connection record; and sending the target data acquisition request to a plurality of adjacent devices of which the intimacy values are greater than a preset threshold value.
When the electronic device sends the target data acquisition request to the plurality of neighboring devices in the plurality of NANs, the electronic device may acquire connection records between the plurality of neighboring devices in the NANs and the electronic device, determine affinity values between the neighboring devices and the electronic device according to the connection records, the connection records include records of whether the neighboring devices are connected with the electronic device and perform data transmission, and connection times, and the electronic device may select the plurality of neighboring devices whose affinity values are greater than a preset threshold value and send the target data acquisition request to the plurality of neighboring devices.
As can be seen, in this example, the electronic device may obtain affinity values between the plurality of neighboring devices in the NAN and select the plurality of neighboring devices having affinity values greater than a preset threshold, so that the target data obtaining request may be sent to the plurality of neighboring devices, and since the affinity values between the plurality of neighboring devices and the electronic device are higher, the plurality of neighboring devices are reliable and secure neighboring devices, which is beneficial to improving the security and reliability of the output transmission process.
In one possible example, the receiving feedback information sent from the plurality of neighboring devices includes: determining distances and data transmission speeds between the electronic device and the plurality of neighboring devices; and confirming to receive feedback information sent by the plurality of adjacent devices when the adjacent devices with the distance within the preset range and the data transmission speed higher than the preset speed are detected.
The NAN network comprises a plurality of adjacent devices, the electronic device sends the target data acquisition requests to the adjacent devices in a broadcasting mode, the electronic device can acquire the distance between the electronic device and the adjacent devices and the data transmission speed, and when the electronic device detects that the distance between the adjacent devices and the electronic device is within a preset range and the output transmission speed is higher than the preset speed, the electronic device receives the feedback information sent by the adjacent devices, so that the adjacent devices sending the feedback information are screened, and the data transmission efficiency is improved.
As can be seen, in this example, the distance between the neighboring device that sends the feedback information and the electronic device is within the preset range, and the data transmission speed between the electronic device and the neighboring device is greater than the preset speed, so that the stability of the communication connection between the electronic device and the neighboring device can be ensured, which is beneficial to improving the reliability of data transmission in the data transmission process.
Referring to fig. 3, fig. 3 is a schematic flowchart of a data transmission method provided in an embodiment of the present application, and the method is applied to an electronic device, where the electronic device and a plurality of neighboring devices establish a neighbor aware network NAN connection. As shown in the figure, the data transmission method includes:
s301, the electronic device sends a target data acquisition request to a plurality of adjacent devices, and the adjacent devices carry the target data.
S302, the electronic device receives feedback information sent by the plurality of neighboring devices, wherein the feedback information includes network quality information of the plurality of neighboring devices, and the network quality information includes data transmission speeds of the plurality of neighboring devices.
S303, the electronic device selects at least one neighboring device of the plurality of neighboring devices whose data transmission speed is greater than a preset speed.
S304, the electronic device splits the target data into multiple data according to the data transmission speed of the at least one adjacent device, wherein the data volume of the multiple data is different.
S305, the electronic device acquires the multiple copies of data from the at least one neighboring device to obtain the target data.
It can be seen that, in this embodiment of the application, an electronic device first sends a target data obtaining request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data, then receives feedback information sent by the plurality of neighboring devices, where the feedback information includes network quality information of the plurality of neighboring devices, and finally selects at least one of the plurality of neighboring devices according to the feedback information to obtain the target data from the at least one neighboring device. The electronic equipment can send the target data acquisition request to the plurality of adjacent equipment carrying the target data in the adjacent sensing network, and selects at least one adjacent equipment with good network quality according to the feedback information sent by the plurality of adjacent equipment, so that the target data can be acquired from the at least one adjacent equipment at the same time, and the efficiency and the stability of acquiring the target data are improved.
In addition, at least one adjacent device with the data transmission speed higher than the preset speed is selected from the plurality of adjacent devices, the target data is split into a plurality of data, the data volume of each data is different, therefore, the data with the large data volume can correspond to the adjacent device with the high transmission speed, and therefore, the target data can be acquired from the at least one adjacent device in parallel, and meanwhile, the data acquisition efficiency is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a data transmission method provided in an embodiment of the present application, and the method is applied to an electronic device, where the electronic device and a plurality of neighboring devices establish a neighbor aware network NAN connection. As shown in the figure, the data transmission method includes:
s401, the electronic device sends a target data acquisition request to a plurality of adjacent devices, and the adjacent devices carry the target data.
S402, the electronic device receives feedback information sent by the plurality of adjacent devices, wherein the feedback information comprises network quality information of the plurality of adjacent devices, and the network quality information comprises data transmission speeds of the plurality of adjacent devices.
S403, the electronic device selects at least one neighboring device with a data transmission speed greater than a preset speed from the multiple neighboring devices.
S404, the electronic equipment determines the speed proportional relation of the data transmission speed of each adjacent equipment in the at least one adjacent equipment.
S405, the electronic device splits the target data according to the speed proportional relationship to obtain multiple data sets, wherein the data quantity proportional relationship of each data set in the multiple data sets is matched with the speed proportional relationship, and each data set corresponds to one adjacent device.
S406, the electronic device notifies the electronic device to obtain corresponding data from each of the at least one neighboring device to obtain the target data.
S407, the electronic device obtains the multiple copies of data from the at least one neighboring device to obtain the target data.
It can be seen that, in this embodiment of the application, an electronic device first sends a target data obtaining request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data, then receives feedback information sent by the plurality of neighboring devices, where the feedback information includes network quality information of the plurality of neighboring devices, and finally selects at least one of the plurality of neighboring devices according to the feedback information to obtain the target data from the at least one neighboring device. The electronic equipment can send the target data acquisition request to the plurality of adjacent equipment carrying the target data in the adjacent sensing network, and selects at least one adjacent equipment with good network quality according to the feedback information sent by the plurality of adjacent equipment, so that the target data can be acquired from the at least one adjacent equipment at the same time, and the efficiency and the stability of acquiring the target data are improved.
In addition, at least one adjacent device with the data transmission speed higher than the preset speed is selected from the plurality of adjacent devices, the target data is split into a plurality of data, the data volume of each data is different, therefore, the data with the large data volume can correspond to the adjacent device with the high transmission speed, and therefore, the target data can be acquired from the at least one adjacent device in parallel, and meanwhile, the data acquisition efficiency is improved.
In addition, the data transmission speed of each adjacent device in at least one adjacent device is determined, the target data is split according to the speed proportional relationship to obtain multiple data, each data corresponds to one adjacent device, the data volume is distributed according to the data transmission speed of each adjacent device, the data transmission speed of the adjacent devices is favorably and effectively utilized, the total time for obtaining the target data is shortened, and the data can be obtained from the adjacent devices at the same time.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 provided in the embodiments of the present application, where the electronic device 500 runs one or more application programs and an operating system, as shown in the figure, the electronic device 500 includes aprocessor 510, a memory 520, acommunication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by theprocessor 510, and the one or more programs 521 include instructions for performing the following steps;
sending a target data acquisition request to a plurality of adjacent devices, wherein the target data is carried by the plurality of adjacent devices;
receiving feedback information sent from the plurality of neighboring devices, the feedback information comprising network quality information of the plurality of neighboring devices;
and selecting at least one adjacent device from the plurality of adjacent devices according to the feedback information, and acquiring the target data from the at least one adjacent device.
It can be seen that, in this embodiment of the application, an electronic device first sends a target data obtaining request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data, then receives feedback information sent by the plurality of neighboring devices, where the feedback information includes network quality information of the plurality of neighboring devices, and finally selects at least one of the plurality of neighboring devices according to the feedback information to obtain the target data from the at least one neighboring device. The electronic equipment can send the target data acquisition request to the plurality of adjacent equipment carrying the target data in the adjacent sensing network, and selects at least one adjacent equipment with good network quality according to the feedback information sent by the plurality of adjacent equipment, so that the target data can be acquired from the at least one adjacent equipment at the same time, and the efficiency and the stability of acquiring the target data are improved.
In one possible example, the network quality information includes a security protocol employed by the plurality of neighboring devices during data transmission; in the aspect that at least one neighboring device of the plurality of neighboring devices is selected according to the feedback information and the target data is acquired from the at least one neighboring device, the instructions in the program are specifically configured to perform the following operations: splitting the target data according to the security requirement of the target data to obtain multiple copies of data, wherein the multiple copies of data correspond to different security levels; selecting at least one adjacent device of the plurality of adjacent devices, the safety of which meets a preset condition, according to a safety protocol adopted by the plurality of adjacent devices; matching the multiple data with the at least one adjacent device, wherein the data with high security level corresponds to the adjacent device with high security; and acquiring the multiple copies of data from the at least one adjacent device to obtain the target data.
In one possible example, the network quality information includes data transmission speeds of the plurality of neighboring devices; in the aspect that at least one neighboring device of the plurality of neighboring devices is selected according to the feedback information and the target data is acquired from the at least one neighboring device, the instructions in the program are specifically configured to perform the following operations: selecting at least one adjacent device of the plurality of adjacent devices, wherein the data transmission speed of the at least one adjacent device is greater than a preset speed; splitting the target data into a plurality of data sets according to the data transmission speed of the at least one adjacent device, wherein the data sets are different in data quantity; and acquiring the multiple copies of data from the at least one adjacent device to obtain the target data.
In one possible example, in the splitting of the target data into multiple pieces of data according to the data transmission speed of the at least one neighboring device, the instructions in the program are specifically configured to: determining a speed proportional relationship of data transmission speed of each of the at least one neighboring device; splitting the target data according to the speed proportional relation to obtain multiple data sets, wherein the data quantity proportional relation of each data set in the multiple data sets is matched with the speed proportional relation, and each data set corresponds to one adjacent device; and informing the electronic equipment to acquire corresponding data from each of the at least one adjacent equipment to obtain the target data.
In one possible example, the target data is video data; in the aspect of the obtaining the target data from the at least one neighboring device, the instructions in the program are specifically configured to: splitting the video data into a plurality of data shares, wherein each data share corresponds to the playing time sequence of the video; acquiring a data transmission speed of each of the at least one neighboring device; matching the plurality of data with each of the at least one neighboring device, wherein the playing time sequence of the data matched by the neighboring device with a first data transmission speed is earlier than the playing time sequence of the data matched by the neighboring device with a second data transmission speed in the matching relation, and the first data transmission speed is higher than the second data transmission speed; and acquiring data corresponding to each adjacent device from the at least one adjacent device to obtain the target data.
In one possible example, in the aspect of sending target data acquisition requests to multiple nearby devices, the instructions in the program are specifically configured to: acquiring a connection record between the adjacent equipment and the electronic equipment in the adjacent perception network; determining an affinity value between the proximity device and the electronic device from the connection record; and sending the target data acquisition request to a plurality of adjacent devices of which the intimacy values are greater than a preset threshold value.
In one possible example, in the aspect of receiving the feedback information sent from the plurality of neighboring devices, the instructions in the program are specifically configured to: determining distances and data transmission speeds between the electronic device and the plurality of neighboring devices; and confirming to receive feedback information sent by the plurality of adjacent devices when the adjacent devices with the distance within the preset range and the data transmission speed higher than the preset speed are detected.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, 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 can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. Theresource sharing apparatus 600 shown in fig. 6 is applied to the electronic device, the electronic device includes a microphone, the resource sharing apparatus includes a transmittingunit 601, a receivingunit 602 and aprocessing unit 603, wherein,
the sendingunit 601 is configured to send a target data obtaining request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data;
the receivingunit 602 is configured to receive feedback information sent by the multiple neighboring devices, where the feedback information includes network quality information of the multiple neighboring devices;
theprocessing unit 603 is configured to select at least one neighboring device from the multiple neighboring devices according to the feedback information, and obtain the target data from the at least one neighboring device.
The resource sharing apparatus may further include a storage unit 604 for storing program codes and data of the electronic device. The transmittingunit 601, the receivingunit 602, and theprocessing unit 603 may be processors, and the storage unit 604 may be a memory.
It can be seen that, in this embodiment of the application, an electronic device first sends a target data obtaining request to a plurality of neighboring devices, where the plurality of neighboring devices carry the target data, then receives feedback information sent by the plurality of neighboring devices, where the feedback information includes network quality information of the plurality of neighboring devices, and finally selects at least one of the plurality of neighboring devices according to the feedback information to obtain the target data from the at least one neighboring device. The electronic equipment can send the target data acquisition request to the plurality of adjacent equipment carrying the target data in the adjacent sensing network, and selects at least one adjacent equipment with good network quality according to the feedback information sent by the plurality of adjacent equipment, so that the target data can be acquired from the at least one adjacent equipment at the same time, and the efficiency and the stability of acquiring the target data are improved.
In one possible example, the network quality information includes a security protocol employed by the plurality of neighboring devices during data transmission; in the aspect that at least one neighboring device of the multiple neighboring devices is selected according to the feedback information, and the target data is acquired from the at least one neighboring device, theprocessing unit 603 is specifically configured to: splitting the target data according to the security requirement of the target data to obtain multiple copies of data, wherein the multiple copies of data correspond to different security levels; the method comprises the steps of selecting at least one piece of adjacent equipment, the safety of which meets a preset condition, from the plurality of pieces of adjacent equipment according to a safety protocol adopted by the plurality of pieces of adjacent equipment; the data processing device is used for matching the multiple data with the at least one adjacent device, and the data with high security level corresponds to the adjacent device with high security; and obtaining the target data from the plurality of copies of data obtained from the at least one neighboring device.
In one possible example, the network quality information includes data transmission speeds of the plurality of neighboring devices; in the aspect that at least one neighboring device of the multiple neighboring devices is selected according to the feedback information, and the target data is acquired from the at least one neighboring device, theprocessing unit 603 is specifically configured to: selecting at least one adjacent device of the plurality of adjacent devices, wherein the data transmission speed of the at least one adjacent device is greater than a preset speed; the target data is split into multiple data according to the data transmission speed of the at least one adjacent device, and the data quantity of the multiple data is different; and obtaining the target data from the plurality of copies of data obtained from the at least one neighboring device.
In one possible example, in terms of the splitting the target data into multiple pieces of data according to the data transmission speed of the at least one neighboring device, theprocessing unit 603 is specifically configured to: determining a speed proportional relationship of data transmission speed of each of the at least one neighboring device; the target data is split according to the speed proportional relationship to obtain multiple data sets, the data quantity proportional relationship of each data set in the multiple data sets is matched with the speed proportional relationship, and each data set corresponds to one adjacent device; and the electronic device is used for informing the electronic device to acquire corresponding data from each of the at least one adjacent device to obtain the target data.
In one possible example, the target data is video data; in the aspect of the acquiring the target data from the at least one neighboring device, theprocessing unit 603 is specifically configured to: splitting the video data into a plurality of data shares, wherein each data share corresponds to the playing time sequence of the video; and for obtaining a data transmission speed of each of the at least one neighboring device; the data transmission device is used for matching the plurality of data with each of the at least one adjacent device, the playing time sequence of the data matched with the adjacent device with a first data transmission speed in the matching relation is earlier than that matched with the adjacent device with a second data transmission speed, and the first data transmission speed is higher than the second data transmission speed; and the data acquisition module is used for acquiring the data corresponding to each adjacent device from the at least one adjacent device to obtain the target data.
In one possible example, in terms of the sending of the target data obtaining request to the multiple nearby devices, the sendingunit 601 is specifically configured to: acquiring a connection record between the adjacent equipment and the electronic equipment in the adjacent perception network; and means for determining an affinity value between the proximity device and the electronic device from the connection record; and the target data acquisition request is sent to a plurality of adjacent devices of which the intimacy values are greater than a preset threshold value.
In one possible example, in terms of the receiving feedback information sent from the multiple neighboring devices, the receivingunit 602 is specifically configured to: determining distances and data transmission speeds between the electronic device and the plurality of neighboring devices; and the data transmission device is used for confirming to receive the feedback information sent by the plurality of adjacent devices when the adjacent devices with the distance within the preset range and the data transmission speed greater than the preset speed are detected.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

Translated fromChinese
1.一种数据传输方法,其特征在于,应用于电子设备,所述电子设备和多个邻近设备建立有邻近感知网络NAN连接,所述方法包括:1. A data transmission method, characterized in that, applied to an electronic device, the electronic device and a plurality of adjacent devices are connected with a proximity-aware network NAN, the method comprising:向多个邻近设备发送目标数据获取请求,所述多个邻近设备携带有所述目标数据;sending a target data acquisition request to a plurality of adjacent devices, the plurality of adjacent devices carrying the target data;接收来自所述多个邻近设备发送的反馈信息,所述反馈信息包括所述多个邻近设备的网络质量信息;receiving feedback information sent from the plurality of adjacent devices, the feedback information including network quality information of the plurality of adjacent devices;根据所述反馈信息选取所述多个邻近设备中的至少一个邻近设备,从所述至少一个邻近设备中获取所述目标数据;Select at least one adjacent device among the plurality of adjacent devices according to the feedback information, and acquire the target data from the at least one adjacent device;其中,in,所述网络质量信息包括所述多个邻近设备在数据传输过程中采用的安全协议;所述根据所述反馈信息选取所述多个邻近设备中的至少一个邻近设备,从所述至少一个邻近设备中获取所述目标数据,包括:根据所述目标数据的安全性要求,将所述目标数据进行拆分得到多份数据,所述多份数据对应不同的安全等级;根据所述多个邻近设备采用的安全协议,选取所述多个邻近设备中安全性满足预设条件的至少一个邻近设备;将所述多份数据和所述至少一个邻近设备进行匹配,所述安全等级高的数据对应安全性高的邻近设备;从所述至少一个邻近设备中获取所述多份数据得到所述目标数据;The network quality information includes a security protocol adopted by the plurality of adjacent devices during data transmission; the at least one adjacent device among the plurality of adjacent devices is selected according to the feedback information, and the at least one adjacent device is selected from the at least one adjacent device. The acquisition of the target data in the process includes: according to the security requirements of the target data, splitting the target data to obtain multiple pieces of data, and the multiple pieces of data correspond to different security levels; The adopted security protocol, select at least one adjacent device whose security meets preset conditions among the plurality of adjacent devices; match the multiple pieces of data with the at least one adjacent device, and the data with a high security level corresponds to the security A nearby device with high performance; obtain the target data by acquiring the multiple pieces of data from the at least one adjacent device;或者,or,所述网络质量信息包括所述多个邻近设备的数据传输速度;所述根据所述反馈信息选取所述多个邻近设备中的至少一个邻近设备,从所述至少一个邻近设备中获取所述目标数据,包括:选取所述多个邻近设备中数据传输速度大于预设速度的至少一个邻近设备;根据所述至少一个邻近设备的数据传输速度,将所述目标数据拆分成多份数据,所述多份数据的数据量不同;从所述至少一个邻近设备中获取所述多份数据得到所述目标数据;The network quality information includes the data transmission speed of the plurality of adjacent devices; the selection of at least one adjacent device among the plurality of adjacent devices according to the feedback information, and the acquisition of the target from the at least one adjacent device data, including: selecting at least one adjacent device whose data transmission speed is greater than a preset speed among the plurality of adjacent devices; splitting the target data into multiple pieces of data according to the data transmission speed of the at least one adjacent device, so that The data amounts of the multiple pieces of data are different; the target data is obtained by acquiring the multiple pieces of data from the at least one adjacent device;或者,or,所述目标数据为视频数据;所述从所述至少一个邻近设备中获取所述目标数据,包括:将所述视频数据拆分为多份数据,所述多份数据中每份数据对应有视频的播放时序;获取所述至少一个邻近设备中每个邻近设备的数据传输速度;将所述多份数据和所述至少一个邻近设备中的每个邻近设备进行匹配,且匹配关系中第一数据传输速度的邻近设备所匹配的数据的播放时序早于第二数据传输速度的邻近设备所匹配的数据的播放时序,所述第一数据传输速度大于所述第二数据传输速度;从所述至少一个邻近设备中获取每个邻近设备对应的数据,得到所述目标数据。The target data is video data; the acquiring the target data from the at least one adjacent device includes: dividing the video data into multiple pieces of data, and each piece of data in the multiple pieces of data corresponds to a video obtain the data transmission speed of each adjacent device in the at least one adjacent device; match the multiple pieces of data with each adjacent device in the at least one adjacent device, and in the matching relationship, the first data The playback timing of the data matched by the adjacent devices of the transmission speed is earlier than the playback timing of the data matched by the adjacent devices of the second data transmission speed, and the first data transmission speed is greater than the second data transmission speed; The data corresponding to each adjacent device is acquired from a neighboring device to obtain the target data.2.根据权利要求1所述的方法,其特征在于,所述根据所述至少一个邻近设备的数据传输速度,将所述目标数据拆分成多份数据,包括:2. The method according to claim 1, wherein, according to the data transmission speed of the at least one adjacent device, the target data is divided into multiple pieces of data, comprising:确定所述至少一个邻近设备中每个邻近设备的数据传输速度的速度比例关系;determining a speed proportional relationship of the data transmission speed of each of the at least one adjacent device;根据所述速度比例关系将所述目标数据进行拆分得到多份数据,所述多份数据中每份数据的数据量比例关系和所述速度比例关系匹配,每份数据对应一个邻近设备;Splitting the target data according to the speed proportional relationship to obtain multiple pieces of data, the data volume proportional relationship of each piece of data in the multiple pieces of data matches the speed proportional relationship, and each piece of data corresponds to a neighboring device;通知所述电子设备从所述至少一个邻近设备中的每个邻近设备中获取对应的数据以得到所述目标数据。Notifying the electronic device to acquire corresponding data from each of the at least one adjacent device to obtain the target data.3.根据权利要求1所述的方法,其特征在于,所述向多个邻近设备发送目标数据获取请求,包括:3. The method according to claim 1, wherein the sending a target data acquisition request to multiple adjacent devices comprises:获取所述邻近感知网络中的邻近设备与所述电子设备之间的连接记录;acquiring a connection record between a neighboring device in the proximity-aware network and the electronic device;根据所述连接记录确定所述邻近设备与所述电子设备之间的亲密度值;determining an affinity value between the neighboring device and the electronic device according to the connection record;向所述亲密度值大于预设阈值的多个邻近设备发送所述目标数据获取请求。The target data acquisition request is sent to a plurality of adjacent devices whose intimacy values are greater than a preset threshold.4.根据权利要求2所述的方法,其特征在于,所述向多个邻近设备发送目标数据获取请求,包括:4. The method according to claim 2, wherein the sending a target data acquisition request to multiple adjacent devices comprises:获取所述邻近感知网络中的邻近设备与所述电子设备之间的连接记录;acquiring a connection record between a neighboring device in the proximity-aware network and the electronic device;根据所述连接记录确定所述邻近设备与所述电子设备之间的亲密度值;determining an affinity value between the neighboring device and the electronic device according to the connection record;向所述亲密度值大于预设阈值的多个邻近设备发送所述目标数据获取请求。The target data acquisition request is sent to a plurality of adjacent devices whose intimacy values are greater than a preset threshold.5.根据权利要求1-4任一项所述的方法,其特征在于,所述接收来自所述多个邻近设备发送的反馈信息,包括:5. The method according to any one of claims 1-4, wherein the receiving feedback information sent from the multiple neighboring devices comprises:确定所述电子设备和所述多个邻近设备之间的距离以及数据传输速度;determining the distance and data transfer speed between the electronic device and the plurality of adjacent devices;在检测到所述距离在预设范围内且所述数据传输速度大于预设速度的邻近设备时,确认接收来自所述多个邻近设备发送的反馈信息。When detecting a neighboring device whose distance is within a preset range and the data transmission speed is greater than the preset speed, it is confirmed that feedback information sent from the multiple neighboring devices is received.6.一种资源共享装置,其特征在于,应用于电子设备,所述电子设备和多个邻近设备建立有邻近感知网络NAN连接,所述资源共享装置包括发送单元、接收单元和处理单元,其中,6. A resource sharing device, characterized in that, applied to an electronic device, the electronic device and a plurality of neighboring devices have established a proximity-aware network NAN connection, the resource sharing device comprises a sending unit, a receiving unit and a processing unit, wherein ,所述发送单元,用于向多个邻近设备发送目标数据获取请求,所述多个邻近设备携带有所述目标数据;the sending unit, configured to send a target data acquisition request to a plurality of adjacent devices, the plurality of adjacent devices carrying the target data;所述接收单元,用于接收来自所述多个邻近设备发送的反馈信息,所述反馈信息包括所述多个邻近设备的网络质量信息;the receiving unit, configured to receive feedback information sent from the multiple neighboring devices, where the feedback information includes network quality information of the multiple neighboring devices;所述处理单元,用于根据所述反馈信息选取所述多个邻近设备中的至少一个邻近设备,从所述至少一个邻近设备中获取所述目标数据;the processing unit, configured to select at least one adjacent device among the plurality of adjacent devices according to the feedback information, and obtain the target data from the at least one adjacent device;其中,in,所述网络质量信息包括所述多个邻近设备在数据传输过程中采用的安全协议;所述根据所述反馈信息选取所述多个邻近设备中的至少一个邻近设备,从所述至少一个邻近设备中获取所述目标数据,包括:根据所述目标数据的安全性要求,将所述目标数据进行拆分得到多份数据,所述多份数据对应不同的安全等级;根据所述多个邻近设备采用的安全协议,选取所述多个邻近设备中安全性满足预设条件的至少一个邻近设备;将所述多份数据和所述至少一个邻近设备进行匹配,所述安全等级高的数据对应安全性高的邻近设备;从所述至少一个邻近设备中获取所述多份数据得到所述目标数据;The network quality information includes a security protocol adopted by the plurality of adjacent devices during data transmission; the at least one adjacent device among the plurality of adjacent devices is selected according to the feedback information, and the at least one adjacent device is selected from the at least one adjacent device. The acquisition of the target data in the process includes: according to the security requirements of the target data, splitting the target data to obtain multiple pieces of data, and the multiple pieces of data correspond to different security levels; The adopted security protocol, select at least one adjacent device whose security meets preset conditions among the plurality of adjacent devices; match the multiple pieces of data with the at least one adjacent device, and the data with a high security level corresponds to the security A nearby device with high performance; obtain the target data by acquiring the multiple pieces of data from the at least one adjacent device;或者,or,所述网络质量信息包括所述多个邻近设备的数据传输速度;所述根据所述反馈信息选取所述多个邻近设备中的至少一个邻近设备,从所述至少一个邻近设备中获取所述目标数据,包括:选取所述多个邻近设备中数据传输速度大于预设速度的至少一个邻近设备;根据所述至少一个邻近设备的数据传输速度,将所述目标数据拆分成多份数据,所述多份数据的数据量不同;从所述至少一个邻近设备中获取所述多份数据得到所述目标数据;The network quality information includes the data transmission speed of the plurality of adjacent devices; the selection of at least one adjacent device among the plurality of adjacent devices according to the feedback information, and the acquisition of the target from the at least one adjacent device data, including: selecting at least one adjacent device whose data transmission speed is greater than a preset speed among the plurality of adjacent devices; splitting the target data into multiple pieces of data according to the data transmission speed of the at least one adjacent device, so that The data amounts of the multiple pieces of data are different; the target data is obtained by acquiring the multiple pieces of data from the at least one adjacent device;或者,or,所述目标数据为视频数据;所述从所述至少一个邻近设备中获取所述目标数据,包括:将所述视频数据拆分为多份数据,所述多份数据中每份数据对应有视频的播放时序;获取所述至少一个邻近设备中每个邻近设备的数据传输速度;将所述多份数据和所述至少一个邻近设备中的每个邻近设备进行匹配,且匹配关系中第一数据传输速度的邻近设备所匹配的数据的播放时序早于第二数据传输速度的邻近设备所匹配的数据的播放时序,所述第一数据传输速度大于所述第二数据传输速度;从所述至少一个邻近设备中获取每个邻近设备对应的数据,得到所述目标数据。The target data is video data; the acquiring the target data from the at least one adjacent device includes: dividing the video data into multiple pieces of data, and each piece of data in the multiple pieces of data corresponds to a video obtain the data transmission speed of each adjacent device in the at least one adjacent device; match the multiple pieces of data with each adjacent device in the at least one adjacent device, and in the matching relationship, the first data The playback timing of the data matched by the adjacent devices of the transmission speed is earlier than the playback timing of the data matched by the adjacent devices of the second data transmission speed, and the first data transmission speed is greater than the second data transmission speed; The data corresponding to each adjacent device is acquired from a neighboring device to obtain the target data.7.一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-5任一项所述的方法中的步骤的指令。7. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured by the processor Executing, the program includes instructions for performing the steps in the method of any of claims 1-5.8.一种计算机可读存储介质,其特征在于,8. A computer-readable storage medium, characterized in that,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-5任一项所述的方法。A computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method of any one of claims 1-5.
CN201810897875.4A2018-08-082018-08-08Data transmission method and related deviceActiveCN108990039B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810897875.4ACN108990039B (en)2018-08-082018-08-08Data transmission method and related device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810897875.4ACN108990039B (en)2018-08-082018-08-08Data transmission method and related device

Publications (2)

Publication NumberPublication Date
CN108990039A CN108990039A (en)2018-12-11
CN108990039Btrue CN108990039B (en)2021-04-13

Family

ID=64556161

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810897875.4AActiveCN108990039B (en)2018-08-082018-08-08Data transmission method and related device

Country Status (1)

CountryLink
CN (1)CN108990039B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115499700B (en)*2022-08-262023-08-25深圳市旭联信息技术有限公司Screen transmission data processing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106465092A (en)*2014-06-022017-02-22高通股份有限公司 Peer discovery in proximity-aware networking (NAN)-assisted data link networks
CN107222554A (en)*2017-06-272017-09-29山东中创软件商用中间件股份有限公司A kind of document transmission method and system
CN107277134A (en)*2017-06-192017-10-20网宿科技股份有限公司A kind of data transmission method and system based on peer-to-peer network
CN107404541A (en)*2017-09-202017-11-28郑州云海信息技术有限公司A kind of method and system of peer-to-peer network transmission neighbor node selection
CN108462755A (en)*2018-03-282018-08-28网宿科技股份有限公司A kind of method and system of downloading data resource

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070288638A1 (en)*2006-04-032007-12-13British Columbia, University OfMethods and distributed systems for data location and delivery
US20170325230A1 (en)*2016-05-092017-11-09Qualcomm IncorporatedFrequency band and channel selection for a neighbor awareness network (nan) data link (ndl)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106465092A (en)*2014-06-022017-02-22高通股份有限公司 Peer discovery in proximity-aware networking (NAN)-assisted data link networks
CN107277134A (en)*2017-06-192017-10-20网宿科技股份有限公司A kind of data transmission method and system based on peer-to-peer network
CN107222554A (en)*2017-06-272017-09-29山东中创软件商用中间件股份有限公司A kind of document transmission method and system
CN107404541A (en)*2017-09-202017-11-28郑州云海信息技术有限公司A kind of method and system of peer-to-peer network transmission neighbor node selection
CN108462755A (en)*2018-03-282018-08-28网宿科技股份有限公司A kind of method and system of downloading data resource

Also Published As

Publication numberPublication date
CN108990039A (en)2018-12-11

Similar Documents

PublicationPublication DateTitle
EP4007374B1 (en)Information processing method and apparatus, communication device and storage medium
US20190356743A1 (en)Electronic device for performing network connection based on data transmission of application and method thereof
CN109743783B (en) Data transmission control method and related products
CN108781473B (en)Method and equipment for sharing files among different terminals
CN109673001A (en)Data transfer control method and Related product
CN109040213B (en) File download method and related products
US9781579B2 (en)Method and device for realizing terminal WIFI talkback
WO2017125025A1 (en)Call method, device, system, and storage medium
US11134435B2 (en)Electronic device supporting multiple wireless communication protocols and method therefor
CN114390491B (en) A networking method, device and system
US20150133052A1 (en)Device selection
KR20160138170A (en)System and method to enhance the user experience of applications for proximity-based peer-to-peer mobile computing
US20170325092A1 (en)Discovery mechanism for service server connection
CN115278609A (en)Method for establishing shared service and related product
CN109275125B (en) Resource sharing method, apparatus, device and storage medium
CN114125942A (en)Network resource management method, device, terminal and storage medium
CN109803454B (en)Data transmission control method and related product
CN108990039B (en)Data transmission method and related device
CN114501490A (en)Service transfer method, terminal and network side equipment
CN112383617A (en)Method, device, terminal equipment and medium for long connection
CN109168158B (en) Resource downloading method and related device
US10003659B2 (en)Efficient group communications leveraging LTE-D discovery for application layer contextual communication
CN118450361A (en) Image content sharing method, device and head mounted display device
KR102060030B1 (en) Radio resource determination method and apparatus, and service server
CN108965466A (en)Information pushing method and related equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp