[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108990039B - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
CN108990039B
CN108990039B CN201810897875.4A CN201810897875A CN108990039B CN 108990039 B CN108990039 B CN 108990039B CN 201810897875 A CN201810897875 A CN 201810897875A CN 108990039 B CN108990039 B CN 108990039B
Authority
CN
China
Prior art keywords
data
adjacent
neighboring
devices
target data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810897875.4A priority Critical patent/CN108990039B/en
Publication of CN108990039A publication Critical patent/CN108990039A/en
Application granted granted Critical
Publication of CN108990039B publication Critical patent/CN108990039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data transmission method and a related device, which are applied to electronic equipment, wherein the electronic equipment and a plurality of adjacent equipment establish NAN connection of a neighbor awareness network, and the NAN connection comprises the steps of sending target data acquisition requests to the adjacent equipment, and the adjacent equipment carries the target data; 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. The method and the device are beneficial to the electronic equipment to obtain the target data from the adjacent equipment through the NAN network, and the efficiency and the stability of obtaining the target data are improved.

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 a processor 510, a memory 520, a communication 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 the processor 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. The resource 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 transmitting unit 601, a receiving unit 602 and a processing unit 603, wherein,
the sending unit 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 receiving unit 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;
the processing 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 transmitting unit 601, the receiving unit 602, and the processing 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, the processing 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, the processing 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, the processing 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, the processing 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 sending unit 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 receiving unit 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)

1. A data transmission method is applied to an electronic device, the electronic device and a plurality of adjacent devices establish connection of a Neighbor Awareness Network (NAN), and the method comprises 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;
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;
wherein,
the network quality information comprises security protocols adopted by the plurality of adjacent devices in a data transmission process; 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; acquiring the multiple copies of data from the at least one neighboring device to obtain the target data;
or,
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; acquiring the multiple copies of data from the at least one neighboring device to obtain the target data;
or,
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.
2. The method of claim 1, wherein the splitting the target data into multiple pieces of data according to the data transmission speed of the at least one neighboring device comprises:
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.
3. The method of claim 1, wherein sending target data acquisition requests to a plurality of neighboring devices comprises:
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.
4. The method of claim 2, wherein sending target data acquisition requests to a plurality of neighboring devices comprises:
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.
5. The method according to any one of claims 1-4, wherein the receiving feedback information transmitted from the plurality of neighboring devices comprises:
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.
6. A resource sharing apparatus applied to an electronic device, the electronic device and a plurality of neighboring devices establishing a Neighbor Awareness Network (NAN) connection, the resource sharing apparatus comprising a transmitting unit, a receiving unit and a processing unit, wherein,
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;
wherein,
the network quality information comprises security protocols adopted by the plurality of adjacent devices in a data transmission process; 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; acquiring the multiple copies of data from the at least one neighboring device to obtain the target data;
or,
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; acquiring the multiple copies of data from the at least one neighboring device to obtain the target data;
or,
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.
7. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that,
a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-5.
CN201810897875.4A 2018-08-08 2018-08-08 Data transmission method and related device Active CN108990039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810897875.4A CN108990039B (en) 2018-08-08 2018-08-08 Data transmission method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810897875.4A CN108990039B (en) 2018-08-08 2018-08-08 Data transmission method and related device

Publications (2)

Publication Number Publication Date
CN108990039A CN108990039A (en) 2018-12-11
CN108990039B true CN108990039B (en) 2021-04-13

Family

ID=64556161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810897875.4A Active CN108990039B (en) 2018-08-08 2018-08-08 Data transmission method and related device

Country Status (1)

Country Link
CN (1) CN108990039B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499700B (en) * 2022-08-26 2023-08-25 深圳市旭联信息技术有限公司 Screen transmission data processing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106465092A (en) * 2014-06-02 2017-02-22 高通股份有限公司 Peer discovery in neighbor awareness networking (nan) aided data link networks
CN107222554A (en) * 2017-06-27 2017-09-29 山东中创软件商用中间件股份有限公司 A kind of document transmission method and system
CN107277134A (en) * 2017-06-19 2017-10-20 网宿科技股份有限公司 A kind of data transmission method and system based on peer-to-peer network
CN107404541A (en) * 2017-09-20 2017-11-28 郑州云海信息技术有限公司 A kind of method and system of peer-to-peer network transmission neighbor node selection
CN108462755A (en) * 2018-03-28 2018-08-28 网宿科技股份有限公司 A kind of method and system of downloading data resource

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288638A1 (en) * 2006-04-03 2007-12-13 British Columbia, University Of Methods and distributed systems for data location and delivery
US20170325230A1 (en) * 2016-05-09 2017-11-09 Qualcomm Incorporated Frequency band and channel selection for a neighbor awareness network (nan) data link (ndl)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106465092A (en) * 2014-06-02 2017-02-22 高通股份有限公司 Peer discovery in neighbor awareness networking (nan) aided data link networks
CN107277134A (en) * 2017-06-19 2017-10-20 网宿科技股份有限公司 A kind of data transmission method and system based on peer-to-peer network
CN107222554A (en) * 2017-06-27 2017-09-29 山东中创软件商用中间件股份有限公司 A kind of document transmission method and system
CN107404541A (en) * 2017-09-20 2017-11-28 郑州云海信息技术有限公司 A kind of method and system of peer-to-peer network transmission neighbor node selection
CN108462755A (en) * 2018-03-28 2018-08-28 网宿科技股份有限公司 A kind of method and system of downloading data resource

Also Published As

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

Similar Documents

Publication Publication Date Title
CN111656754B (en) Method for edge computing service and electronic device thereof
CN107426432B (en) Resource allocation method and Related product
EP4007374B1 (en) Information processing method and apparatus, communication device and storage medium
CN109743783B (en) Data transmission control method and related product
CN107479970B (en) Resource allocation method and related product
CN109040213B (en) File downloading method and related product
CN107483725A (en) Resource allocation method and Related product
CN108781473B (en) Method and equipment for sharing files among different terminals
US11134435B2 (en) Electronic device supporting multiple wireless communication protocols and method therefor
US20210289388A1 (en) Network Offload Method and Relevant Device
KR20190087206A (en) An electronic device providing call continuity in a weak signal environment and control method thereof
CN106453370B (en) Method and device for registering IPC (inter-programmable logic controller) to NVR (network video recorder)
US20170325092A1 (en) Discovery mechanism for service server connection
CN103814591A (en) Communication method, access network equipment and UE (user equipment) of different-format networks
CN109275125B (en) Resource sharing method, device, equipment and storage medium
CN114902703A (en) D2D communication method, device and system
US20230137283A1 (en) Systems and methods to optimize registration and session establishment in a wireless network
CN108990039B (en) Data transmission method and related device
CN108200604B (en) Data transmission method and device
CN113949705B (en) Communication method and communication device
CN109392018B (en) Data transmission method and related device
CN114125942A (en) Network resource management method, device, terminal and storage medium
CN109168158B (en) Resource downloading method and related device
CN114501490B (en) Service transfer method, terminal and network side equipment
US10003659B2 (en) Efficient group communications leveraging LTE-D discovery for application layer contextual communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant