Movatterモバイル変換


[0]ホーム

URL:


CN109195226B - Data transmission method and apparatus, electronic device and computer-readable storage medium - Google Patents

Data transmission method and apparatus, electronic device and computer-readable storage medium
Download PDF

Info

Publication number
CN109195226B
CN109195226BCN201810910440.9ACN201810910440ACN109195226BCN 109195226 BCN109195226 BCN 109195226BCN 201810910440 ACN201810910440 ACN 201810910440ACN 109195226 BCN109195226 BCN 109195226B
Authority
CN
China
Prior art keywords
nan
correspondence
data
nan device
target
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
CN201810910440.9A
Other languages
Chinese (zh)
Other versions
CN109195226A (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 CN201810910440.9ApriorityCriticalpatent/CN109195226B/en
Publication of CN109195226ApublicationCriticalpatent/CN109195226A/en
Application grantedgrantedCritical
Publication of CN109195226BpublicationCriticalpatent/CN109195226B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the application discloses a data transmission method and a related product, which are applied to first Neighbor Awareness Network (NAN) equipment in a NAN, wherein the method comprises the following steps: the method includes the steps of sending a first Service Discovery Frame (SDF) message to a plurality of second NAN devices in a first cluster, receiving a second SDF message from at least one second NAN device in the plurality of second NAN devices, wherein the second SDF message of each second NAN device in the at least one second NAN device comprises feedback information aiming at a first corresponding relation set, determining a second NAN device associated with each first corresponding relation in the first corresponding relation set according to the feedback information of each second NAN device in the at least one second NAN device, establishing a second corresponding relation between each first corresponding relation and the associated second NAN device, and completing sub-data obtaining operation according to the established second corresponding relation. The method and the device are beneficial to improving the data transmission quality and the safety of the electronic equipment for data transmission.

Description

Data transmission method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data transmission method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, etc.), 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 users. The existing technologies for carrying out photos, files and the like through electronic devices become common technologies for users, but the existing technologies are limited in that direct connection is mostly adopted for data transmission in connection between NAN devices, and high-speed transmission cannot be carried out under the conditions of large data, poor network speed and the like.
Disclosure of Invention
The embodiment of the application provides a data transmission method and device, electronic equipment and a computer readable storage medium, and the application is favorable for improving the data transmission quality and the data transmission safety of the electronic equipment.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first neighbor awareness network NAN device, and the method includes:
sending a first Service Discovery Frame (SDF) message to a plurality of second NAN devices in a first cluster, wherein the first SDF message includes a preset first corresponding relationship set, the first corresponding relationship set includes a plurality of first corresponding relationships, each first corresponding relationship includes a first corresponding relationship between each subdata of a plurality of subdata and a time window, the subdata are divided according to target data, and the first cluster includes the first NAN device and the second NAN devices;
receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device including feedback information for the set of first correspondences, the feedback information being indicative of each second NAN device having a capability to support transmission of sub-data of a target first correspondence at a time window of the target first correspondence, the target first correspondence being a first correspondence of the plurality of first correspondences;
determining second NAN devices associated with each first corresponding relationship in the first corresponding relationship set according to feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relationship between each first corresponding relationship and the associated second NAN devices;
and finishing the operation of obtaining the subdata according to the established second corresponding relation.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a first neighbor awareness network NAN device in a first neighbor awareness network NAN, and the data transmission apparatus includes:
a sending unit, configured to send a first Service Discovery Frame (SDF) message to a plurality of second NAN devices in a first cluster, where the first SDF message includes a preset first mapping relationship set, the first mapping relationship set includes a plurality of first mapping relationships, each first mapping relationship includes a first mapping relationship between each sub-data of a plurality of sub-data and a time window, the plurality of sub-data are sub-data divided according to target data, and the first cluster includes the first NAN device and the plurality of second NAN devices;
a receiving unit, configured to receive a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device including feedback information for the first set of correspondences, where the feedback information is used to indicate that each of the second NAN devices has a capability of supporting transmission of sub-data of a target first corresponding relation in a time window of the target first corresponding relation, and the target first corresponding relation is a first corresponding relation in the plurality of first corresponding relations;
an establishing unit, configured to determine, according to feedback information of each second NAN device of the at least one second NAN device, a second NAN device associated with each first correspondence in the first correspondence set, and establish a second correspondence between each first correspondence and the associated second NAN device;
and the obtaining unit is used for finishing the obtaining operation of the subdata according to the established second corresponding relation.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the data transmission method and related products described in the embodiments of the present application, applied to a first neighbor aware network NAN, first send a first service discovery frame SDF message to a plurality of second NAN devices in a first cluster, second, receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device comprises feedback information for the first set of correspondences, then, determining a second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relation between each first corresponding relation and the associated second NAN equipment, and finally, finishing the operation of obtaining the subdata according to the established second corresponding relation. Therefore, in the NAN network, the transmission data with large data volume is divided into a plurality of subdata, a time window is allocated, the opposite-end device is further allowed to assign the time window, and the local-end device allocates corresponding subdata to the plurality of devices at the opposite end in the assigned window according to the time window assigned by the opposite-end device, so that resources are utilized to the maximum, the data processing efficiency is improved, and the data transmission quality and the data transmission safety of the electronic device are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of another data transmission method disclosed in the embodiments of the present application;
fig. 4 is a schematic flow chart of another data transmission method disclosed in the embodiments of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a data transmission device disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, 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 a part of the embodiments of the present application, and not all of the 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 terms "first," "second," and the like in the description and claims of the present application and in the above-described 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.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Firstly, a NAN mechanism is briefly introduced, a Neighbor Awareness Network (NAN) mechanism is a standard formulated by a wireless fidelity Wi-Fi alliance, the standard is used for synchronizing all devices (namely NAN devices) participating in the NAN mechanism under the condition that no central node exists, maintaining work and Service Discovery work of the NAN mechanism are performed in a Discovery Window (DW) agreed by the NAN mechanism, Service Discovery is realized by sending a Service Discovery Frame (SDF) message, and the Service Discovery Frame message comprises an inquiry message or a broadcast message. The device may establish a corresponding connection based on the information obtained in the service discovery and then perform data transmission.
Specifically, in the standard specified by the Wi-Fi alliance, channel 6 may be used as the discovery channel in the NAN mechanism, and on channel 6, the duration of the discovery time window DW is fixed for each cluster, and the time interval between any two DWs adjacent to the cluster is also fixed.
In the NAN mechanism, a Discovery Window (DW) is set, and NAN devices perform service discovery in the DW. In the NAN mechanism, a DW is generally set in each 512 TUs (time unit), wherein the duration of one TU is about 1024 μ s, and the duration of the DW is generally 16 TUs, that is, in the NAN mechanism, a DW is generally set every 496 TUs. In the NAN mechanism, one or more NAN devices form a Cluster (also called a neighbor awareness network), when a Cluster enters a DW, a NAN device in the Cluster in a master node (master), an anchor master node (AM), a master node (non-master synchronization, non-master sync) state and the like sends a synchronization beacon frame (sync beacon) message, where the message carries information of the AM in the Cluster, and the NAN device receiving the message synchronizes with the AM in the Cluster.
For example, as shown in fig. 1, which is a schematic diagram of a DW of a cluster, according to a standard established by the Wi-Fi alliance, in the DW, NAN devices in the cluster may send a service discovery frame SDF message in the DW to perform service discovery, and in a time other than the DW, NAN devices in the cluster may send a discovery beacon (discovery beacon) message to announce the existence of the cluster. Each NAN device in the cluster may perform service discovery in the DW to discover other NAN devices with which data transmission can be performed. After service discovery, at least two NAN devices which need to perform data transmission with each other may agree on a time frequency resource and a network connection mode in the DW, and after the DW is finished, assemble a corresponding NAN network without a center node on the agreed time frequency resource according to the agreed network connection mode.
The flow of completing service discovery by the NAN device is as follows:
1. after a device activates the NAN function (i.e., becomes a NAN device), it may set itself as an AM, create a Cluster, set a Cluster Identity (Identity, ID) value of the Cluster based on its MAC (Media Access Control) address, and set the TSF as an integer multiple of 512 TU.
2. Once the NAN device receives a Beacon frame (i.e., a sync Beacon, hereinafter, referred to as Beacon frame) sent by a NAN device from one or more other clusters, it may determine whether the NAN device wants to join the Cluster of the other peer.
In the Beacon frame, information of the corresponding Cluster is generally carried, and specifically, information of an AM in the corresponding Cluster may be specifically carried, and may include one or more of an Anchor Master node rank (AMR), a Master node rank (MR), a Master node priority (Master priority, MP), an Anchor Master node priority (AMP), a Random Factor (RF), an Anchor Master node signal Transmission Time (AMBTT), a Time Synchronization Function (TSF), a Cluster ID, and a Cluster rank (CG).
One NAN device may send information of the AM of the Cluster to which the NAN device belongs to other NAN devices by sending the Beacon frame, and similarly, one NAN device may also receive the Beacon frame sent by the Cluster or the NAN devices in other clusters.
After receiving a Beacon frame, the NAN device may determine whether the Beacon frame is from a NAN device in the Cluster to which the NAN device belongs or from NAN devices in other clusters, if the Beacon frame is from NAN devices in other clusters, the NAN device may determine whether a value of Cluster level CG in the received Beacon frame is greater than a value of Cluster level CG of the NAN device, if the value is greater than the value, the NAN device adds the Cluster corresponding to the received Beacon frame, otherwise, the NAN device does not perform processing. This completes the aggregation of NAN devices, i.e., NAN devices will join Cluster with a higher value of Cluster level CG.
3. If the determination is made that the other party's Cluster is to be added, the synchronization is achieved with the AM in the added Cluster after the other party's Cluster is added, specifically, each item of parameter information in the AM of the self is synchronized with the AM in the added Cluster, for example, the TSF of the AM in the Cluster is updated to the TSF of the AM in the added Cluster.
4. After synchronization, when a DW of a joined Cluster arrives, the NAN device sends an SDF (Service Discovery frame) message in the DW to perform Service Discovery, where the SDF message may carry, for example, Service Discovery (Service Subscription) information for querying a required Service or may carry, for example, Service publication (Service Publish) information for publishing a Service that the NAN device can provide, and after receiving the SDF message sent by the NAN device, other NAN devices may reply the SDF message to the NAN device in the DW if it is determined that the SDF message is satisfied, that is, Service matching can be performed.
Similarly, in the DW, the NAN device may also receive an SDF message sent by another NAN device for service discovery, and if the NAN device determines that the received SDF message is satisfied, the NAN device may also reply the SDF message to the corresponding NAN device in the DW.
Various types of information contained in the AM are explained below.
The anchor master node level AMR, which is generally a maximum value of 8 bytes (byte), is the MR value of AM.
The master node level MR, which generally takes a maximum value of 8 bytes, is calculated according to the MP value, the RF value, and the MAC address of the NAN device, and indicates the will of the NAN device to act as a master. The larger the value of MR, the higher will the NAN device want to be master. MR can also be considered as an alternative expression of MP.
The master node priority MP, which generally takes a maximum value of 1 byte, indicates the willingness of the NAN device to act as a master. The larger the value of MP, the higher will the NAN device want to be master.
The anchor master node priority AMP, which generally takes a maximum value of 1 byte, is the value of the MP of the AM.
The random factor RF, which generally takes a maximum value of 1 byte, is a random number selected by the NAN device.
The anchor master node signal transmission time AMBTT generally takes a maximum value of 4 bytes, and shows the sending time of the Beacon frame of the AM. Generally, a NAN device sending a Beacon frame carries an AMBTT, and is used for synchronizing the time of other NAN devices with an AM corresponding to the AMBTT.
The time synchronization function TSF, which generally takes a maximum value of 8 bytes, indicates a synchronization function of the NAN device, so that a timer (timer) of the NAN device receiving the TSF is synchronized with a time of the AM corresponding to the NAN device sending the TSF. The TSF may also represent time information.
The Cluster identity identifier Cluster ID generally takes a maximum value of 6 bytes, and is carried in an Address (Address) 3 field in the Beacon frame.
The Cluster level CG generally takes a maximum value of 8 bytes, represents the level of Cluster, is used for comparing different Clusters during combination, and the Cluster with a small CG value is combined into the Cluster with a large CG value.
The service discovery frame SDF message is introduced below.
The SDF message is an Action Frame (Action Frame) specially defined for service discovery, and can be roughly divided into three types according to different functions: the SDF issues a Publish message, subscribes to a Subscribe message, and replies to a Follow-Up message, and generally, an indication bit is included in the SDF message to indicate which SDF message the SDF message is.
SDF Publish message: the NAN equipment is used for publishing services which can be provided by the NAN equipment or replying to the received SDF Subscribe messages sent by other NAN equipment;
SDF Subscribe message: for finding the service to be used;
SDF Follow-Up message: for replying to received SDF Publish messages or for negotiating more information.
The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application, where the data transmission method described in the embodiment includes:
the method includes the steps of S201, sending a first Service Discovery Frame (SDF) message to a plurality of second NAN devices in a first cluster, where the first SDF message includes a preset first corresponding relationship set, the first corresponding relationship set includes a plurality of first corresponding relationships, each first corresponding relationship includes a first corresponding relationship between each sub-data of a plurality of sub-data and a time window, the plurality of sub-data are sub-data divided according to target data, and the first cluster includes the first NAN device and the plurality of second NAN devices.
The first SDF message may specifically be an SDF Subscribe message.
S202, receiving a second SDF message from at least one second NAN device of the plurality of second NAN devices, where the second SDF message of each second NAN device of the at least one second NAN device includes feedback information for the first mapping set, where the feedback information is used to indicate that each second NAN device has a capability of supporting transmission of sub data of a target first mapping in a time window of the target first mapping, and the target first mapping is a first mapping in the plurality of first mapping.
The second SDF message may specifically be an SDF Publish message.
S203, determining second NAN devices associated with each first corresponding relationship in the first corresponding relationship set according to the feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relationship between each first corresponding relationship and the associated second NAN devices.
The second correspondence may be one-to-one, one-to-many, and many-to-many, and is not limited herein.
S204, the operation of obtaining the subdata is completed according to the established second corresponding relation.
It can be seen that the data transmission method and related products described in the embodiments of the present application, applied to a first neighbor aware network NAN, first send a first service discovery frame SDF message to a plurality of second NAN devices in a first cluster, second, receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device comprises feedback information for the first set of correspondences, then, determining a second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relation between each first corresponding relation and the associated second NAN equipment, and finally, finishing the operation of obtaining the subdata according to the established second corresponding relation. Therefore, in the NAN network, the transmission data with large data volume is divided into a plurality of subdata, a time window is allocated, the opposite-end device is further allowed to assign the time window, and the local-end device allocates corresponding subdata to the plurality of devices at the opposite end in the assigned window according to the time window assigned by the opposite-end device, so that resources are utilized to the maximum, the data processing efficiency is improved, and the data transmission quality and the data transmission safety of the electronic device are improved.
In a possible example, the completing, according to the established second corresponding relationship, an operation of obtaining sub-data includes: determining a second corresponding relation of a target to which the current time window belongs; negotiating a data transmission channel with a second NAN device in the target second correspondence; instructing a second NAN device in the target second corresponding relation to transmit subdata in the target second corresponding relation; receiving the sub-data from the second NAN device through the negotiated data transmission channel.
In a specific implementation, for a channel between the first NAN device and other NAN devices, the negotiation process may be that the first NAN device performs channel negotiation with other NAN devices through an SDF Follow-Up message; for a channel between any two NAN devices other than the first NAN device, the other NAN devices may be first grouped by the first NAN device, and a target NAN device may be selected for each group, and notified to negotiate a channel with the other devices within the group.
In this example, in the NAN network, the corresponding second NAN is found through the time window, and the channel is further negotiated for data transmission, which is beneficial to improving the efficiency of processing data and improving the data transmission quality and security of the electronic device for data transmission.
In one possible example, the determining the second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each second NAN device of the at least one second NAN device comprises: analyzing the feedback information, and if a plurality of second NAN devices are associated with reference to a first corresponding relation in the first corresponding relation set, detecting the distances between the plurality of second NAN devices and the first NAN device associated with reference to the first corresponding relation to form a distance set; screening out a target distance smaller than a preset distance from the distance set; and determining a target second NAN device corresponding to the target distance.
The preset distance may be one meter, two meters, three meters, etc., and is not limited herein.
In this example, when a plurality of second NAN devices correspond to the same time window in the NAN network, the second NAN device with the shortest distance is selected by detecting the distance between each second NAN device and the first NAN device, so that a fast transmission channel can be obtained, and the efficiency of data transmission is improved.
In one possible example, before determining the target distance corresponding to the target second NAN device, the method further comprises: screening out a target distance smaller than a preset distance from the distance set; if a plurality of target distances exist, determining a plurality of second NAN devices corresponding to the plurality of target distances; and inquiring the ongoing transmission data volume of the plurality of second NAN devices, and screening out target second NAN devices with the transmission data volume lower than the preset transmission data volume.
The transmission data amount may be data in other networks, and is not limited to the data amount in the current NAN network.
In this example, when there are a plurality of second NAN devices with the shortest distance in the NAN network, the second NAN device with the smallest transmission data amount is found out by comparing the transmission data amounts between the plurality of second NAN devices to perform data transmission, so that a fast transmission channel can be obtained, and the efficiency of data transmission is improved.
In one possible example, prior to the sending the first service discovery frame, SDF, message to the plurality of second NAN devices in the first cluster, the method further comprises: dividing the target data into at least one subdata; performing priority sequencing on the at least one subdata to obtain a priority sequence; time division is carried out on the at least one subdata according to the priority sequence to obtain a time window of each subdata; and forming the first corresponding relation set according to the first corresponding relation between each subdata and the time window.
The prioritization may be, but is not limited to, based on memory size, based on importance, based on historical occurrence rate, etc., and is not limited herein.
In this example, in the NAN network, a plurality of small data volumes are obtained by disassembling the large data volume, and the first NAN device is assisted to complete processing of the AI large data, so that the efficiency of processing data is improved, and the data transmission quality and the security of data transmission performed by the electronic device are improved.
In one possible example, prior to the sending the first service discovery frame, SDF, message to the plurality of second NAN devices in the first cluster, the method further comprises: enabling a NAN function; and forming the first cluster with a plurality of second NAN devices through the NAN function, and completing synchronization of the NAN devices in the first cluster.
As can be seen, in this example, the first NAN device triggers the NAN function based on the request, and keeps the NAN function off in a normal state, thereby saving power.
In a possible example, after the obtaining operation of the sub data is completed according to the established second corresponding relationship, the method further includes: receiving transmission completion information, and detecting a buffer area in the mapping table, wherein the buffer area is used for representing data which is being transmitted; disconnecting the connection with the at least one second NAN device if the data being transmitted is absent from the buffer.
In this example, in the NAN network, whether there is data that is not transmitted currently is determined by detecting the buffer area, so that a situation of data loss caused by closing a transmission channel in advance is avoided, and data transmission quality and integrity of data transmission performed by the electronic device are improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application, and the data transmission method is applied to a first neighbor aware network NAN device. As shown in the figure, the data transmission method includes:
s301, sending a first service discovery frame, SDF, message to a plurality of second NAN devices in the first cluster.
S302, receiving a second SDF message from at least one of the plurality of second NAN devices.
S303, determining, according to the feedback information of each second NAN device in the at least one second NAN device, a second NAN device associated with each first corresponding relationship in the first corresponding relationship set, and establishing a second corresponding relationship between each first corresponding relationship and the associated second NAN device.
S304, determining a second corresponding relation of the target to which the current time window belongs.
S305, negotiating a data transmission channel with a second NAN device in the target second correspondence.
And S306, indicating the second NAN equipment in the target second corresponding relation to transmit the subdata in the target second corresponding relation.
S307, receiving the sub data from the second NAN device through the negotiated data transmission channel.
It can be seen that the data transmission method and related products described in the embodiments of the present application, applied to a first neighbor aware network NAN, first send a first service discovery frame SDF message to a plurality of second NAN devices in a first cluster, second, receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device comprises feedback information for the first set of correspondences, then, determining a second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relation between each first corresponding relation and the associated second NAN equipment, and finally, finishing the operation of obtaining the subdata according to the established second corresponding relation. Therefore, in the NAN network, the transmission data with large data volume is divided into a plurality of subdata, a time window is allocated, the opposite-end device is further allowed to assign the time window, and the local-end device allocates corresponding subdata to the plurality of devices at the opposite end in the assigned window according to the time window assigned by the opposite-end device, so that resources are utilized to the maximum, the data processing efficiency is improved, and the data transmission quality and the data transmission safety of the electronic device are improved.
In addition, in the NAN network, the corresponding second NAN is found through the time window, and further the channel is negotiated to perform data transmission, so that the efficiency of processing data is improved, and the data transmission quality and the security of data transmission performed by the electronic device are 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 data transmission method is applied to a first neighbor aware network NAN device, consistent with the embodiment shown in fig. 2. As shown in the figure, the data transmission method includes:
s401, a first service discovery frame SDF message is sent to a plurality of second NAN devices in a first cluster.
S402, receiving a second SDF message from at least one of the plurality of second NAN devices.
S403, analyzing the feedback information, and if a plurality of second NAN devices are associated with reference to a first correspondence in the first correspondence set, detecting distances between the plurality of second NAN devices and the first NAN device associated with reference to the first correspondence, to form a distance set.
S404, screening out a target distance smaller than a preset distance from the distance set.
And S405, determining a target second NAN device corresponding to the target distance.
S406, determining a second target corresponding relation to which the current time window belongs.
S407, negotiating a data transmission channel with the second NAN device in the target second correspondence.
S408, instructing a second NAN device in the target second mapping to transmit the sub-data in the target second mapping.
S409, receiving the sub data from the second NAN device through the negotiated data transmission channel.
It can be seen that the data transmission method and related products described in the embodiments of the present application, applied to a first neighbor aware network NAN, first send a first service discovery frame SDF message to a plurality of second NAN devices in a first cluster, second, receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device comprises feedback information for the first set of correspondences, then, determining a second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relation between each first corresponding relation and the associated second NAN equipment, and finally, finishing the operation of obtaining the subdata according to the established second corresponding relation. Therefore, in the NAN network, the transmission data with large data volume is divided into a plurality of subdata, a time window is allocated, the opposite-end device is further allowed to assign the time window, and the local-end device allocates corresponding subdata to the plurality of devices at the opposite end in the assigned window according to the time window assigned by the opposite-end device, so that resources are utilized to the maximum, the data processing efficiency is improved, and the data transmission quality and the data transmission safety of the electronic device are improved.
In addition, in the NAN network, when a plurality of second NAN devices correspond to the same time window, the shortest distance is selected as the second NAN device by detecting the distance between each second NAN device and the first NAN device, so that a fast transmission channel can be obtained, and the efficiency of data transmission is improved.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application, as shown in the figure, the electronic device 500 includes an application processor 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 the application processor 510, and the one or more programs 521 include instructions for performing the following steps;
sending a first Service Discovery Frame (SDF) message to a plurality of second NAN devices in a first cluster, wherein the first SDF message includes a preset first corresponding relationship set, the first corresponding relationship set includes a plurality of first corresponding relationships, each first corresponding relationship includes a first corresponding relationship between each subdata of a plurality of subdata and a time window, the subdata are divided according to target data, and the first cluster includes the first NAN device and the second NAN devices;
receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device including feedback information for the set of first correspondences, the feedback information being indicative of each second NAN device having a capability to support transmission of sub-data of a target first correspondence at a time window of the target first correspondence, the target first correspondence being a first correspondence of the plurality of first correspondences;
determining second NAN devices associated with each first corresponding relationship in the first corresponding relationship set according to feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relationship between each first corresponding relationship and the associated second NAN devices;
and finishing the operation of obtaining the subdata according to the established second corresponding relation.
It can be seen that the data transmission method and related products described in the embodiments of the present application, applied to a first neighbor aware network NAN, first send a first service discovery frame SDF message to a plurality of second NAN devices in a first cluster, second, receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device comprises feedback information for the first set of correspondences, then, determining a second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relation between each first corresponding relation and the associated second NAN equipment, and finally, finishing the operation of obtaining the subdata according to the established second corresponding relation. Therefore, in the NAN network, the transmission data with large data volume is divided into a plurality of subdata, a time window is allocated, the opposite-end device is further allowed to assign the time window, and the local-end device allocates corresponding subdata to the plurality of devices at the opposite end in the assigned window according to the time window assigned by the opposite-end device, so that resources are utilized to the maximum, the data processing efficiency is improved, and the data transmission quality and the data transmission safety of the electronic device are improved.
In one possible example, in terms of the operation of obtaining the sub data according to the established second correspondence, the program includes instructions for performing the following steps: determining a second corresponding relation of a target to which the current time window belongs; negotiating a data transmission channel with a second NAN device in the target second correspondence; instructing a second NAN device in the target second corresponding relation to transmit subdata in the target second corresponding relation; receiving the sub-data from the second NAN device through the negotiated data transmission channel.
In one possible example, in the determining the second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each of the at least one second NAN device, the program comprises instructions for: analyzing the feedback information, and if a plurality of second NAN devices are associated with reference to a first corresponding relation in the first corresponding relation set, detecting the distances between the plurality of second NAN devices and the first NAN device associated with reference to the first corresponding relation to form a distance set; screening out a target distance smaller than a preset distance from the distance set; and determining a target second NAN device corresponding to the target distance.
In one possible example, in a preceding aspect of the determining the target distance corresponding to the target second NAN device, the program comprises instructions to: screening out a target distance smaller than a preset distance from the distance set; if a plurality of target distances exist, determining a plurality of second NAN devices corresponding to the plurality of target distances; and inquiring the ongoing transmission data volume of the plurality of second NAN devices, and screening out target second NAN devices with the transmission data volume lower than the preset transmission data volume.
In one possible example, prior to the sending the first service discovery frame, SDF, message to the plurality of second NAN devices in the first cluster, the program further comprises instructions for: dividing the target data into at least one subdata; performing priority sequencing on the at least one subdata to obtain a priority sequence; time division is carried out on the at least one subdata according to the priority sequence to obtain a time window of each subdata; and forming the first corresponding relation set according to the first corresponding relation between each subdata and the time window.
In one possible example, prior to the sending the first service discovery frame, SDF, message to the plurality of second NAN devices in the first cluster, the program includes instructions further to: enabling a NAN function; and forming the first cluster with a plurality of second NAN devices through the NAN function, and completing synchronization of the NAN devices in the first cluster.
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 datatransmission generating apparatus 600 shown in fig. 6 is applied to a first neighbor aware network NAN device, and the datatransmission generating apparatus 600 includes a sendingunit 601, a receivingunit 602, an establishingunit 603, and an obtainingunit 604, wherein,
the sendingunit 601 is configured to send a first service discovery frame SDF message to a plurality of second NAN devices in a first cluster, where the first SDF message includes a preset first mapping relationship set, the first mapping relationship set includes a plurality of first mapping relationships, each first mapping relationship includes a first mapping relationship between each sub-data of a plurality of sub-data and a time window, the plurality of sub-data are sub-data divided according to target data, and the first cluster includes the first NAN device and the plurality of second NAN devices;
the receivingunit 602 is configured to receive a second SDF message from at least one second NAN device of the plurality of second NAN devices, where the second SDF message of each of the at least one second NAN device includes feedback information for the first set of correspondences, where the feedback information is used to indicate that each second NAN device has a capability of supporting transmission of sub-data of a target first corresponding relation in a time window of the target first corresponding relation, and the target first corresponding relation is a first corresponding relation of the plurality of first corresponding relations;
the establishingunit 603 is configured to determine, according to the feedback information of each second NAN device in the at least one second NAN device, a second NAN device associated with each first corresponding relationship in the first corresponding relationship set, and establish a second corresponding relationship between each first corresponding relationship and the associated second NAN device;
the obtainingunit 604 is configured to complete obtaining operation of the sub data according to the established second corresponding relationship.
It can be seen that the data transmission method and related products described in the embodiments of the present application, applied to a first neighbor aware network NAN, first send a first service discovery frame SDF message to a plurality of second NAN devices in a first cluster, second, receiving a second SDF message from at least one of the plurality of second NAN devices, the second SDF message of each of the at least one second NAN device comprises feedback information for the first set of correspondences, then, determining a second NAN device associated with each first correspondence in the first set of correspondences according to the feedback information of each second NAN device in the at least one second NAN device, and establishing a second corresponding relation between each first corresponding relation and the associated second NAN equipment, and finally, finishing the operation of obtaining the subdata according to the established second corresponding relation. Therefore, in the NAN network, the transmission data with large data volume is divided into a plurality of subdata, a time window is allocated, the opposite-end device is further allowed to assign the time window, and the local-end device allocates corresponding subdata to the plurality of devices at the opposite end in the assigned window according to the time window assigned by the opposite-end device, so that resources are utilized to the maximum, the data processing efficiency is improved, and the data transmission quality and the data transmission safety of the electronic device are improved.
In a possible example, in terms of the operation of obtaining the sub data according to the established second corresponding relationship, the obtainingunit 604 is specifically configured to: determining a second corresponding relation of a target to which the current time window belongs; negotiating a data transmission channel with a second NAN device in the target second correspondence; instructing a second NAN device in the target second corresponding relation to transmit subdata in the target second corresponding relation; receiving the sub-data from the second NAN device through the negotiated data transmission channel.
In a possible example, in the aspect that the second NAN device associated with each first correspondence in the first set of correspondences is determined according to the feedback information of each second NAN device in the at least one second NAN device, the establishingunit 603 is specifically configured to: analyzing the feedback information, and if a plurality of second NAN devices are associated with reference to a first corresponding relation in the first corresponding relation set, detecting the distances between the plurality of second NAN devices and the first NAN device associated with reference to the first corresponding relation to form a distance set; screening out a target distance smaller than a preset distance from the distance set; and determining a target second NAN device corresponding to the target distance.
In a possible example, before the determining of the target second NAN device corresponding to the target distance, the establishingunit 603 is further specifically configured to: screening out a target distance smaller than a preset distance from the distance set; if a plurality of target distances exist, determining a plurality of second NAN devices corresponding to the plurality of target distances; and inquiring the ongoing transmission data volume of the plurality of second NAN devices, and screening out target second NAN devices with the transmission data volume lower than the preset transmission data volume.
In a possible example, before the sending the first service discovery frame SDF message to the plurality of second NAN devices in the first cluster, the establishingunit 603 is further specifically configured to: dividing the target data into at least one subdata; performing priority sequencing on the at least one subdata to obtain a priority sequence; time division is carried out on the at least one subdata according to the priority sequence to obtain a time window of each subdata; and forming the first corresponding relation set according to the first corresponding relation between each subdata and the time window.
In one possible example, before sending the first service discovery frame SDF message to the plurality of second NAN devices in the first cluster, the sendingunit 601 is further specifically configured to: enabling a NAN function; and forming the first cluster with a plurality of second NAN devices through the NAN function, and completing synchronization of the NAN devices in the first cluster.
As shown in fig. 7, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a point of sale (POS), a vehicle-mounted computer, and the like.
Fig. 7 is a block diagram illustrating a partial structure of an electronic device provided in an embodiment of the present invention. As shown in fig. 7, theelectronic device 710 may include control circuitry, which may include storage andprocessing circuitry 720. The storage andprocessing circuit 720 may be a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronically programmable read only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in the storage andprocessing circuitry 720 may be used to control the operation of theelectronic device 710. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage andprocessing circuit 720 may be used to run software in theelectronic device 710, such as an internet browsing application, a Voice Over Internet Protocol (VOIP) phone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in theelectronic device 710, to name a few.
Theelectronic device 710 may also include input-output circuitry 730. The input-output circuitry 730 may be used to enable theelectronic device 710 to input and output data, i.e., to allow theelectronic device 710 to receive data from external devices and also to allow theelectronic device 710 to output data from theelectronic device 710 to external devices. The input-output circuit 730 may further include asensor 731. Thesensors 731 may include ambient light sensors, proximity sensors based on light and capacitance, touch sensors (e.g., based on optical touch sensors and/or capacitive touch sensors, ultrasonic sensors, where the touch sensors may be part of a touch display screen or used independently as a touch sensor structure), acceleration sensors, and other sensors, etc.
Input-output circuitry 730 may also include one or more displays, such asdisplay 732.Display 732 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies.Display 732 may include an array of touch sensors (i.e.,display 732 may be a touch-sensitive display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
Theelectronic device 710 may also include anaudio component 733. Theaudio component 733 may be used to provide audio input and output functionality for theelectronic device 710. Theaudio components 733 in theelectronic device 710 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
Communication circuitry 734 may be used to provideelectronic device 710 with the ability to communicate with external devices. Thecommunication circuitry 734 may include analog and digital input-output interface circuits, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry incommunication circuitry 734 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry incommunication circuitry 734 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving near field coupled electromagnetic signals. For example,communications circuitry 734 may include a near field communications antenna and a near field communications transceiver. Thecommunications circuitry 734 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so forth.
Theelectronic device 710 may further include a battery, power management circuitry, and other input-output units 735. The input-output unit 735 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through the input-output circuitry 730 to control the operation of theelectronic device 710, and may use the output data of the input-output circuitry 730 to enable receipt of status information and other outputs from theelectronic device 710.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the data transmission methods as described in the above method embodiments.
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 data transmission methods as recited in the above method embodiments.
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 division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. 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 may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. 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 method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
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 disk, ROM, RAM, magnetic or optical disk, 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 (10)

Translated fromChinese
1.一种数据传输方法,其特征在于,应用于第一邻近感知网络NAN设备,所述方法包括:1. A data transmission method, characterized in that, applied to a first proximity-aware network NAN device, the method comprising:向第一簇中的多个第二NAN设备发送第一服务发现帧SDF消息,所述第一SDF消息包括预设的第一对应关系集合,所述第一对应关系集合包括多个第一对应关系,每个第一对应关系包括多个子数据中每个子数据与时间窗的第一对应关系,所述多个子数据为根据目标数据划分出来的子数据,所述第一簇包括所述第一NAN设备和所述多个第二NAN设备;Send a first service discovery frame SDF message to a plurality of second NAN devices in the first cluster, where the first SDF message includes a preset first correspondence set, and the first correspondence set includes a plurality of first correspondences relationship, each first correspondence includes the first correspondence between each sub-data in a plurality of sub-data and the time window, the plurality of sub-data are sub-data divided according to the target data, and the first cluster includes the first A NAN device and the plurality of second NAN devices;接收来自所述多个第二NAN设备中至少一个第二NAN设备的第二SDF消息,所述至少一个第二NAN设备中每个第二NAN设备的第二SDF消息包括针对所述第一对应关系集合的反馈信息,所述反馈信息用于表示所述每个第二NAN设备具备支持在目标第一对应关系的时间窗传输所述目标第一对应关系的子数据的能力,所述目标第一对应关系为所述多个第一对应关系中的第一对应关系;receiving a second SDF message from at least one second NAN device of the plurality of second NAN devices, the second SDF message of each second NAN device of the at least one second NAN device including a second SDF message for the first corresponding Feedback information of the relationship set, where the feedback information is used to indicate that each second NAN device has the ability to support transmission of sub-data of the target first correspondence in the time window of the target first correspondence, and the target first correspondence A corresponding relationship is a first corresponding relationship among the plurality of first corresponding relationships;根据所述至少一个第二NAN设备中每个第二NAN设备的反馈信息,确定所述第一对应关系集合中每个第一对应关系关联的第二NAN设备,并建立所述每个第一对应关系与所述关联的第二NAN设备之间的第二对应关系;According to the feedback information of each second NAN device in the at least one second NAN device, determine the second NAN device associated with each first correspondence in the first correspondence set, and establish each first correspondence the second correspondence between the correspondence and the associated second NAN device;根据建立的所述第二对应关系完成子数据的获取操作。Acquiring the sub-data is completed according to the established second correspondence.2.根据权利要求1所述的方法,其特征在于,所述根据建立的所述第二对应关系完成子数据的获取操作,包括:2. The method according to claim 1, characterized in that, completing the acquisition operation of sub-data according to the established second corresponding relationship, comprising:确定当前时间窗所属的目标第二对应关系;determining the target second correspondence to which the current time window belongs;与所述目标第二对应关系中的第二NAN设备协商数据传输通道;negotiating a data transmission channel with the second NAN device in the second corresponding relationship of the target;指示所述目标第二对应关系中的第二NAN设备传输所述目标第二对应关系中的子数据;instructing the second NAN device in the second corresponding relationship of the target to transmit the sub-data in the second corresponding relationship of the target;通过协商的所述数据传输通道接收来自所述第二NAN设备的子数据。The sub-data from the second NAN device is received through the negotiated data transmission channel.3.根据权利要求1所述的方法,其特征在于,所述根据所述至少一个第二NAN设备中每个第二NAN设备的反馈信息,确定所述第一对应关系集合中每个第一对应关系关联的第二NAN设备,包括:3 . The method according to claim 1 , wherein, according to the feedback information of each second NAN device in the at least one second NAN device, determining each first in the first correspondence set. 4 . The second NAN device associated with the corresponding relationship includes:解析所述反馈信息,若所述第一对应关系集合中参考第一对应关系关联多个第二NAN设备,则检测所述多个第二NAN设备与所述参考第一对应关系关联的第一NAN设备的距离,组成距离集合;Parse the feedback information, and if a plurality of second NAN devices are associated with the reference first correspondence in the first correspondence set, detect the first correspondence between the plurality of second NAN devices and the reference first correspondence The distance of the NAN device, forming a distance set;在所述距离集合中,筛选出小于预设距离的目标距离;In the distance set, filter out the target distance less than the preset distance;确定所述目标距离对应的目标第二NAN设备。Determine the target second NAN device corresponding to the target distance.4.根据权利要求3所述的方法,其特征在于,所述确定所述目标距离对应的目标第二NAN设备之前,所述方法还包括:4. The method according to claim 3, wherein before the determining the target second NAN device corresponding to the target distance, the method further comprises:在所述距离集合中,筛选出小于预设距离的目标距离;In the distance set, filter out the target distance less than the preset distance;若存在多个目标距离,则确定所述多个目标距离对应的多个第二NAN设备;If there are multiple target distances, determining multiple second NAN devices corresponding to the multiple target distances;查询所述多个第二NAN设备正在进行的传输数据量,筛选出低于预设传输数据量的目标第二NAN设备。Query the amount of data being transmitted by the plurality of second NAN devices, and filter out target second NAN devices that are lower than the preset amount of transmission data.5.根据权利要求1所述的方法,其特征在于,所述向第一簇中的多个第二NAN设备发送第一服务发现帧SDF消息之前,所述方法还包括:5. The method according to claim 1, wherein, before the first service discovery frame SDF message is sent to multiple second NAN devices in the first cluster, the method further comprises:将所述目标数据划分为至少一个子数据;dividing the target data into at least one sub-data;将所述至少一个子数据进行优先级排序,得到优先级序列;The at least one sub-data is prioritized to obtain a priority sequence;将所述至少一个子数据按时所述优先级序列进行时间划分,得到每个子数据的时间窗;The at least one sub-data is time-divided according to the priority sequence to obtain the time window of each sub-data;按照每个子数据与时间窗的第一对应关系组成所述第一对应关系集合。The first correspondence set is formed according to the first correspondence between each sub-data and the time window.6.根据权利要求1-5任一项所述的方法,其特征在于,所述向第一簇中的多个第二NAN设备发送第一服务发现帧SDF消息之前,所述方法还包括:6. The method according to any one of claims 1-5, wherein before the first service discovery frame SDF message is sent to a plurality of second NAN devices in the first cluster, the method further comprises:启用NAN功能;Enable NAN function;通过所述NAN功能与多个第二NAN设备形成所述第一簇,并完成所述第一簇中的NAN设备的同步。The first cluster is formed with a plurality of second NAN devices through the NAN function, and synchronization of the NAN devices in the first cluster is completed.7.一种数据传输装置,其特征在于,应用于第一邻近感知网络NAN中第一NAN设备,所述数据传输装置包括:7. A data transmission apparatus, characterized in that, applied to a first NAN device in a first proximity-aware network NAN, the data transmission apparatus comprising:发送单元,用于向第一簇中的多个第二NAN设备发送第一服务发现帧SDF消息,所述第一SDF消息包括预设的第一对应关系集合,所述第一对应关系集合包括多个第一对应关系,每个第一对应关系包括多个子数据中每个子数据与时间窗的第一对应关系,所述多个子数据为根据目标数据划分出来的子数据,所述第一簇包括所述第一NAN设备和所述多个第二NAN设备;A sending unit, configured to send a first service discovery frame SDF message to a plurality of second NAN devices in the first cluster, where the first SDF message includes a preset first correspondence set, and the first correspondence set includes A plurality of first correspondences, each first correspondence includes a first correspondence between each subdata in the plurality of subdata and the time window, the plurality of subdata are subdata divided according to the target data, and the first cluster including the first NAN device and the plurality of second NAN devices;接收单元,用于接收来自所述多个第二NAN设备中至少一个第二NAN设备的第二SDF消息,所述至少一个第二NAN设备中每个第二NAN设备的第二SDF消息包括针对所述第一对应关系集合的反馈信息,所述反馈信息用于表示所述每个第二NAN设备具备支持在目标第一对应关系的时间窗传输所述目标第一对应关系的子数据的能力,所述目标第一对应关系为所述多个第一对应关系中的第一对应关系;A receiving unit, configured to receive a second SDF message from at least one second NAN device in the plurality of second NAN devices, where the second SDF message of each second NAN device in the at least one second NAN device includes a Feedback information of the first correspondence set, where the feedback information is used to indicate that each second NAN device has the capability to support transmission of sub-data of the target first correspondence in the time window of the target first correspondence , the target first correspondence is the first correspondence in the plurality of first correspondences;建立单元,用于根据所述至少一个第二NAN设备中每个第二NAN设备的反馈信息,确定所述第一对应关系集合中每个第一对应关系关联的第二NAN设备,并建立所述每个第一对应关系与所述关联的第二NAN设备之间的第二对应关系;A establishing unit, configured to determine, according to the feedback information of each second NAN device in the at least one second NAN device, the second NAN device associated with each first correspondence in the first correspondence set, and establish all the second NAN devices associated with each first correspondence in the first correspondence set the second correspondence between each first correspondence and the associated second NAN device;获取单元,用于根据建立的所述第二对应关系完成子数据的获取操作。An obtaining unit, configured to complete the obtaining operation of sub-data according to the established second correspondence.8.根据权利要求7所述的数据传输装置,其特征在于,在所述根据建立的所述第二对应关系完成子数据的获取操作方面,所述获取单元具体用于:8. The data transmission device according to claim 7, wherein, in the aspect of completing the acquisition operation of the sub-data according to the established second correspondence, the acquisition unit is specifically used for:确定当前时间窗所属的目标第二对应关系;determining the target second correspondence to which the current time window belongs;与所述目标第二对应关系中的第二NAN设备协商数据传输通道;negotiating a data transmission channel with the second NAN device in the second corresponding relationship of the target;指示所述目标第二对应关系中的第二NAN设备传输所述目标第二对应关系中的子数据;instructing the second NAN device in the second corresponding relationship of the target to transmit the sub-data in the second corresponding relationship of the target;通过协商的所述数据传输通道接收来自所述第二NAN设备的子数据。The sub-data from the second NAN device is received through the negotiated data transmission channel.9.一种电子设备,其特征在于,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如权利要求1-6任一项方法的指令。9. An electronic device, comprising: a processor and a memory; and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor , the program includes instructions for a method according to any of claims 1-6.10.一种计算机可读存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-6任一项所述的方法。10. A computer-readable storage medium, characterized in that it is used for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN201810910440.9A2018-08-102018-08-10 Data transmission method and apparatus, electronic device and computer-readable storage mediumActiveCN109195226B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810910440.9ACN109195226B (en)2018-08-102018-08-10 Data transmission method and apparatus, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810910440.9ACN109195226B (en)2018-08-102018-08-10 Data transmission method and apparatus, electronic device and computer-readable storage medium

Publications (2)

Publication NumberPublication Date
CN109195226A CN109195226A (en)2019-01-11
CN109195226Btrue CN109195226B (en)2021-04-02

Family

ID=64921075

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810910440.9AActiveCN109195226B (en)2018-08-102018-08-10 Data transmission method and apparatus, electronic device and computer-readable storage medium

Country Status (1)

CountryLink
CN (1)CN109195226B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111629391B (en)*2020-05-122023-02-03深圳市有方科技股份有限公司Data transmission method and related equipment
WO2024113320A1 (en)*2022-12-012024-06-06Oppo广东移动通信有限公司Service scheduling method and apparatus, and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106507437A (en)*2016-11-082017-03-15北京小米移动软件有限公司 Smart device networking method and device
CN107005830A (en)*2014-11-252017-08-01三星电子株式会社 Method for transmitting/receiving signal in proximity network and electronic device thereof
CN107148787A (en)*2014-11-252017-09-08三星电子株式会社 A discovery method and electronic device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107005830A (en)*2014-11-252017-08-01三星电子株式会社 Method for transmitting/receiving signal in proximity network and electronic device thereof
CN107148787A (en)*2014-11-252017-09-08三星电子株式会社 A discovery method and electronic device thereof
CN106507437A (en)*2016-11-082017-03-15北京小米移动软件有限公司 Smart device networking method and device

Also Published As

Publication numberPublication date
CN109195226A (en)2019-01-11

Similar Documents

PublicationPublication DateTitle
CN113366439B (en)Method and device for connecting Bluetooth device
CN107148787B (en)Discovery method and electronic equipment thereof
CN105103618A (en) Systems and methods for wirelessly modifying detection signatures of portable devices
CN108683444B (en) Data transmission method and related products
CN109217995B (en)Data processing method, terminal and base station
JP7249436B2 (en) PC5 link establishment method, device and system
KR102060434B1 (en)Apparatus and method for providing a wireless communication in a portable terminal
CN111866824A (en) A method and device for establishing a communication connection and data transmission
CN106603740A (en)Network connection abnormality processing method and terminal equipment
KR102717416B1 (en) Information reporting method, information receiving method, terminal and network control entity
CN109195226B (en) Data transmission method and apparatus, electronic device and computer-readable storage medium
CN111314900B (en)Wireless connection method, wireless connection device and mobile terminal
CN105636173A (en)Network searching control method and equipment
CN109286544B (en)NAN-based intelligent management method and related product
WO2020029723A1 (en)Positioning method, related device, and computer readable storage medium
CN108966290B (en) Network connection method and related products
CN117768926A (en)Multi-device networking method and device, storage medium and electronic device
CN107659976B (en) Network access method and related products
CN113518314B (en) Fast connection method for low-power bluetooth and low-power bluetooth communication system
CN114501449B (en)Information query method, device, electronic equipment and storage medium
CN113873685B (en)Method, device and equipment for establishing WiFi direct connection
CN106357767B (en)Information synchronization method and server
CN108134872A (en)Anti-interference method of electronic device and related product
CN110213319B (en)Access method and device, terminal, server and storage medium
CN116744264A (en) Communication methods, electronic equipment, devices, storage media and products of Bluetooth protocol

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