Movatterモバイル変換


[0]ホーム

URL:


CN109195226A - data transmission method and related product - Google Patents

data transmission method and related product
Download PDF

Info

Publication number
CN109195226A
CN109195226ACN201810910440.9ACN201810910440ACN109195226ACN 109195226 ACN109195226 ACN 109195226ACN 201810910440 ACN201810910440 ACN 201810910440ACN 109195226 ACN109195226 ACN 109195226A
Authority
CN
China
Prior art keywords
nan
correspondence
target
data
nan device
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.)
Granted
Application number
CN201810910440.9A
Other languages
Chinese (zh)
Other versions
CN109195226B (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

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了一种数据传输方法及相关产品,应用于第一邻近感知网络NAN中第一NAN设备,所述方法包括:向第一簇中的多个第二NAN设备发送第一服务发现帧SDF消息,接收来自多个第二NAN设备中至少一个第二NAN设备的第二SDF消息,至少一个第二NAN设备中每个第二NAN设备的第二SDF消息包括针对第一对应关系集合的反馈信息,根据至少一个第二NAN设备中每个第二NAN设备的反馈信息,确定第一对应关系集合中每个第一对应关系关联的第二NAN设备,并建立每个第一对应关系与关联的第二NAN设备之间的第二对应关系,根据建立的第二对应关系完成子数据的获取操作。本申请有利于提高电子设备进行数据传输的数据传输质量和安全性。

Embodiments of the present application disclose a data transmission method and related products, which are applied to a first NAN device in a first proximity-aware network NAN. The method includes: sending a first service to a plurality of second NAN devices in a first cluster Discovering the frame SDF message, receiving a second SDF message from at least one second NAN device in the plurality of second NAN devices, and the second SDF message of each second NAN device in the at least one second NAN device includes a corresponding relationship for the first The feedback information of the set, 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 corresponding relationship between the relationship and the associated second NAN device, and the sub-data acquisition operation is completed according to the established second corresponding relationship. The present application is beneficial to improve the data transmission quality and security of data transmission performed by electronic devices.

Description

Data transmission method and Related product
Technical field
This application involves electronic technology fields, and in particular to a kind of data transmission method and Related product.
Background technique
With a large amount of popularization and applications of electronic equipment (such as: mobile phone, tablet computer), the application that electronic equipment can be supportedMore and more, function is stronger and stronger, and electronic equipment develops towards diversification, personalized direction, becomes in user's life notThe appliance and electronic that can lack.Photo, file etc., which are carried out, by electronic equipment has become the common prior art of user, but existing skillSituations such as connection that art is confined between NAN equipment, which mostly uses, to be directly connected to carry out data transmission, larger in data, and network speed is poorUnder can not carry out high-speed transfer.
Summary of the invention
The embodiment of the present application provides a kind of data transmission method and Related product, and the application is conducive to improve electronic equipmentThe data transmission quality carried out data transmission and safety.
In a first aspect, the embodiment of the present application provides a kind of data transmission method, it is applied to first adjacent to sensing network NANEquipment, which comprises
Multiple 2nd NAN equipment into the first cluster send first service and find frame SDF message, the first SDF messageIncluding preset first correspondence set, first correspondence set includes multiple first corresponding relationships, and each firstCorresponding relationship includes the first corresponding relationship of each subdata and time window in multiple subdatas, according to the multiple subdataTarget data marks off the subdata come, and first cluster includes the first NAN equipment and the multiple 2nd NAN equipment;
Receive in the multiple 2nd NAN equipment at least one the 2nd NAN equipment the 2nd SDF message, it is described extremelyThe 2nd SDF message of each 2nd NAN equipment includes for first correspondence set in few 2nd NAN equipmentFeedback information, the feedback information is for indicating that each 2nd NAN equipment has support in the first corresponding relationship of targetTime window transmits the ability of the subdata of first corresponding relationship of target, and first corresponding relationship of target is the multiple theThe first corresponding relationship in one corresponding relationship;
According to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, described first pair is determinedEach associated 2nd NAN equipment of first corresponding relationship in set of relationship is answered, and establishes each first corresponding relationship and instituteState the second corresponding relationship between associated 2nd NAN equipment;
The acquisition operation of subdata is completed according to second corresponding relationship of foundation.
Second aspect, the embodiment of the present application provide a kind of data transmission device, are applied to first adjacent to sensing network NANIn the first NAN equipment, the data transmission device includes:
Transmission unit sends first service for multiple 2nd NAN equipment into the first cluster and finds frame SDF message, instituteStating the first SDF message includes preset first correspondence set, and first correspondence set includes multiple first correspondingRelationship, each first corresponding relationship includes the first corresponding relationship of each subdata and time window in multiple subdatas, described moreA subdata be marked off according to target data come subdata, first cluster includes the first NAN equipment and described moreA 2nd NAN equipment;
Receiving unit, for receiving second of at least one the 2nd NAN equipment in the multiple 2nd NAN equipmentSDF message, the 2nd SDF message of each 2nd NAN equipment includes being directed to described first at least one described the 2nd NAN equipmentThe feedback information of correspondence set, the feedback information is for indicating that each 2nd NAN equipment has support in targetThe time window of first corresponding relationship transmits the ability of the subdata of first corresponding relationship of target, and the target first is corresponding to closeSystem is the first corresponding relationship in the multiple first corresponding relationship;
Unit is established, for the feedback information according to each 2nd NAN equipment at least one described the 2nd NAN equipment,It determines each associated 2nd NAN equipment of first corresponding relationship in first correspondence set, and establishes described eachThe second corresponding relationship between one corresponding relationship and the associated 2nd NAN equipment;
Acquiring unit, the acquisition for completing subdata according to second corresponding relationship of foundation operate.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: processor and memory;And oneOr multiple programs, one or more of programs are stored in the memory, and are configured to be held by the processorRow, described program includes the instruction for the step some or all of as described in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readableStorage medium is for storing computer program, wherein the computer program executes computer such as the embodiment of the present application theThe instruction of step some or all of described in one side.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program productNon-transient computer readable storage medium including storing computer program, the computer program are operable to make to calculateMachine executes the step some or all of as described in the embodiment of the present application first aspect.The computer program product can be oneA software installation packet.
Implement the embodiment of the present application, has the following beneficial effects:
As can be seen that data transmission method and Related product described in the embodiment of the present application, it is neighbouring to be applied to firstFirst NAN equipment in sensing network NAN, multiple 2nd NAN equipment first into the first cluster send first service and find frame SDFMessage, secondly, the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment is received, it is describedThe 2nd SDF message of each 2nd NAN equipment includes being directed to first correspondence set at least one the 2nd NAN equipmentFeedback information then according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine instituteEach associated 2nd NAN equipment of first corresponding relationship in the first correspondence set is stated, and it is corresponding to establish described each firstThe second corresponding relationship between relationship and the associated 2nd NAN equipment, finally, according to second corresponding relationship of foundationComplete the acquisition operation of subdata.As it can be seen that in NAN network, by the way that the transmission data of big data quantity are divided into multiple subdatas,And time window is distributed, further allow opposite equip. specified time window, local device is given according to the time window that opposite equip. is specifiedOpposite end multiple equipment distributes corresponding subdata in specified window, thus the maximum efficiency using resource and raising processing data,Be conducive to improve the data transmission quality and safety that electronic equipment carries out data transmission.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisSome embodiments of application for those of ordinary skill in the art without creative efforts, can be withIt obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of data transmission method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another kind data transmission method disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of another kind data transmission method disclosed in the embodiment of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of data transmission device disclosed in the embodiment of the present application;
Fig. 7 is the structural schematic diagram of another electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present applicationAttached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is onlySome embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the artEvery other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishingDifferent objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended thatIt is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not haveIt is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrapInclude other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodimentsIt is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identicalEmbodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly andImplicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment involved by the embodiment of the present application may include the various handheld devices with wireless communication function,Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modemUser equipment (user equipment, UE), mobile station (mobile station, MS), terminal device (terminalDevice) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.
It describes in detail below to the embodiment of the present application.
NAN mechanism is briefly described first, close on sensing network (Neighbor Awareness Network,Abbreviation NAN) mechanism be Wireless Fidelity Wi-Fi Alliance work out a standard, the effect of this standard is in no central nodeIn the case where, so that all equipment (i.e. NAN equipment) synchronization onwards for participating in NAN mechanism are come, in the discovery time of NAN mechanism agreementMaintenance work and service discovery work, the service discovery that NAN mechanism is carried out in window (Discovery Window, abbreviation DW) are i.e. logicalCross the realization of transmission service discovery frame (Service Discovery Frame, abbreviation SDF) message, the service discovery frame messageIncluding query messages or broadcast message.Equipment can establish corresponding connection based on the information obtained in service discovery, then intoThe transmission of row data.
Specifically, can be discovery channel with the 6th channel in NAN mechanism in the standard that Wi-Fi Alliance is specified,On 6th channel, for each cluster, the duration of discovery time window DW is fixed, and two DW of the arbitrary neighborhood of the clusterBetween time interval be also fixed.
In NAN mechanism, setting is found window (discovery window, DW), and NAN equipment can be taken in DWBusiness discovery.It is provided with a DW in general every 512 TU (time unit, time quantum) of NAN mechanism, one of TU's holdsContinuous duration is about that the duration of 1024 μ s, DW is generally 16TU, i.e., in NAN mechanism, generally every 496 TU settings oneA DW.In NAN mechanism, one cluster Cluster (also known as adjacent to sensing network) of one or more NAN equipment formation, oneCluster enter DW when, by the Cluster be in host node (master), anchor host node (anchor master, AM),And the NAN of host node (non-master synchronization, non-master sync) state for being responsible for synchronization etc. is setPreparation send sync beacon frame (sync beacon) message, the information of the AM in the Cluster is carried in the message, for connecingThe NAN equipment for receiving the message is synchronous with the AM realization in the Cluster.
Illustratively, as shown in Figure 1, being the schematic diagram of the DW of a cluster, according to the standard that Wi-Fi Alliance is formulated, in DWIn, the NAN equipment in the cluster can send service discovery frame SDF message in DW, carry out service discovery, the time other than DWIn, the NAN equipment in the cluster can send discovery beacon (discovery beacon) message, to declare the presence of the cluster.ClusterIn each NAN equipment service discovery can be carried out in DW, to find that other NAN that can carry out data transmission with it are setIt is standby.After service discovery, at least two NAN equipment for needing to carry out data transmission between each other can arrange in the DWRunning time-frequency resource and internetwork connection mode, and after the DW, according to the network connection side of agreement on the running time-frequency resource of agreementThe NAN network of the corresponding non-stop layer node of formula component.
The process that NAN equipment completes service discovery is as follows:
1, after a device activation NAN function (after becoming NAN equipment), itself can be set to AM, creates oneCluster, and set the Cluster's based on the MAC of itself (Media Access Control, medium access control) addressCluster identity (Identity, ID) value, sets time synchronization function TSF to the integral multiple of 512TU.
Once 2, the NAN equipment receives the Beacon frame that the NAN equipment from one or more other Cluster is sentWhen (i.e. sync beacon is collectively referred to as Beacon frame below), so that it may judge whether oneself will be added the Cluster of other side.
In Beacon frame, the information of corresponding Cluster is generally carried, specifically can be in corresponding ClusterAM information, such as may include anchor host node grade (anchor master rank, AMR), host node grade (masterRank, MR), host node priority (Master Preference, MP), anchor host node priority (anchor MasterPreference, AMP), enchancement factor (random factor, RF), anchor host node signal transmission time (Anchor MasterBeacon Transmission Time, AMBTT), time synchronization function (time synchronization function,TSF), one of Cluster ID and cluster grade (Cluster grade, CG) or a variety of.
The information of the AM of Cluster belonging to oneself can be sent to it by sending Beacon frame by one NAN equipmentHis NAN equipment, equally, a NAN equipment also can receive the transmission of the NAN equipment in this Cluster or other ClusterBeacon frame.
After NAN equipment receives a Beacon frame, it can be determined that the Beacon frame is belonging to itselfNAN equipment in the Cluster still NAN equipment in other Cluster, if the NAN in other Cluster is setStandby, then the NAN equipment may determine that whether the value of the cluster grade CG in received Beacon frame is greater than the cluster grade CG's of itselfValue, if more than then the corresponding Cluster of the received Beacon frame is added in the NAN equipment, and otherwise, which, which does not do, locatesReason.This completes the polymerizations of NAN equipment, that is, the higher Cluster of value of cluster grade CG can be added in NAN equipment.
If 3, judging, the Cluster of other side will be added in determination, be added other side Cluster after with additionAM in Cluster, which is realized, to be synchronized, in the Cluster that specifically can be the parameters information and addition in the AM by itselfAM is synchronous, such as itself original time synchronization function TSF is updated to the TSF etc. of the AM in the Cluster being added.
4, after synchronization, when the DW of the Cluster of addition arrives, which sends SDF (Service in DWDiscovery Frames, service discovery frame) message to carry out service discovery, can for example carry in the SDF message and be used forService-seeking (Service Subscription) information of service needed for inquiry, or can for example carry for issuing this(Service Publish) information is issued in the service for the service that NAN equipment is capable of providing, other NAN equipment are receiving thisNAN equipment send SDF message after, however, it is determined that meet the SDF message, Service Matching can be carried out, then can in DW toThe NAN device replied SDF message.
Likewise, in DW, the NAN equipment may also can receive the transmission of other NAN equipment for carrying out service hairExisting SDF message, if the NAN equipment, which determines, meets the received SDF message of institute, which also can be in DW to correspondingNAN device replied SDF message.
The various information for including in AM is explained below.
Anchor host node grade AMR, general maximum value are 8 bytes (byte), are the values of the MR of AM.
Host node grade MR, general maximum value are 8 bytes, are the MAC according to MP value, RF value and this NAN equipmentAddress calculation obtains, indicates that the NAN equipment wants the wish as master.The value of MR is bigger, shows that the NAN equipment is wanted to work as masterWish is higher.MR can also regard the other expression-form of MP as.
Host node priority MP, general maximum value are 1 byte, show that this NAN equipment wants the wish as master.MPValue it is bigger, show the NAN equipment want when master wish it is higher.
Anchor host node priority AMP, general maximum value are 1 byte, are the values of the MP of AM.
Enchancement factor RF, general maximum value are 1 byte, are the random numbers of NAN equipment selection.
Anchor host node signal transmission time AMBTT, general maximum value are 4 bytes, show the hair of the Beacon frame of AMSend the time.In general, the NAN equipment for sending Beacon frame can carry AMBTT, for other NAN equipment and this AMBTT pairsThe time of the AM answered, which is realized, to be synchronized.
Time synchronization function TSF, general maximum value are 8 bytes, show the synchronizing function of NAN equipment, so that receivingTimer (timer) to the NAN equipment of the TSF is synchronous with the time realization of the corresponding AM of NAN equipment of the TSF is sent.TSFIt can also indicate temporal information.
Cluster identity Cluster ID, general maximum value are 6 bytes, are carried in Beacon frameIn the field of Address (address) 3.
Cluster grade CG, general maximum value are 8 bytes, indicate the grade of Cluster, exist for different ClusterIt is compared when merging, the small Cluster of the value of CG is merged into the big Cluster of value of CG.
Service discovery frame SDF message introduced below.
SDF message is the action action frame (Action Frame) that a kind of special definition is used to do service discovery, not according to functionTogether, SDF message can substantially be divided into three kinds: SDF publication Publish message, SDF subscribes to Subscribe message, SDF is repliedIn general Follow-Up message includes an indicating bit in SDF message, being used to indicate the SDF message is which kind of SDF disappearsBreath.
SDF Publish message: the service that can be provided for issuing NAN equipment, or for replying other NAN receivedThe SDF Subscribe message that equipment is sent;
SDF Subscribe message: service to be used is needed for searching;
SDF Follow-Up message: for replying the SDF Publish message received, or for negotiating more to believeBreath.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of data transmission method provided by the embodiments of the present application, this implementationData transmission method described in example, the data transmission method include:
S201, multiple 2nd NAN equipment into the first cluster send first service and find frame SDF message, the first SDFMessage includes preset first correspondence set, and first correspondence set includes multiple first corresponding relationships, eachFirst corresponding relationship includes the first corresponding relationship of each subdata and time window in multiple subdatas, and the multiple subdata isAccording to target data mark off come subdata, first cluster includes that the first NAN equipment and the multiple 2nd NAN are setIt is standby.
Wherein, the first SDF message specifically can be SDF and subscribe to Subscribe message.
S202 receives the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment, instituteThe 2nd SDF message for stating each 2nd NAN equipment at least one the 2nd NAN equipment includes for first set of correspondencesThe feedback information of conjunction, the feedback information is for indicating that each 2nd NAN equipment has support in the corresponding pass of target firstThe time window of system transmits the ability of the subdata of first corresponding relationship of target, and first corresponding relationship of target is described moreThe first corresponding relationship in a first corresponding relationship.
Wherein, the 2nd SDF message specifically can be SDF Publish message.
S203, according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine described inEach associated 2nd NAN equipment of first corresponding relationship in first correspondence set, and establish the described each first corresponding passThe second corresponding relationship between system and the associated 2nd NAN equipment.
Wherein, second corresponding relationship can be one-to-one, one-to-many and multi-to-multi, not do unique restriction herein.
S204 is operated according to the acquisition that second corresponding relationship of foundation completes subdata.
As can be seen that data transmission method and Related product described in the embodiment of the present application, it is neighbouring to be applied to firstFirst NAN equipment in sensing network NAN, multiple 2nd NAN equipment first into the first cluster send first service and find frame SDFMessage, secondly, the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment is received, it is describedThe 2nd SDF message of each 2nd NAN equipment includes being directed to first correspondence set at least one the 2nd NAN equipmentFeedback information then according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine instituteEach associated 2nd NAN equipment of first corresponding relationship in the first correspondence set is stated, and it is corresponding to establish described each firstThe second corresponding relationship between relationship and the associated 2nd NAN equipment, finally, according to second corresponding relationship of foundationComplete the acquisition operation of subdata.As it can be seen that in NAN network, by the way that the transmission data of big data quantity are divided into multiple subdatas,And time window is distributed, further allow opposite equip. specified time window, local device is given according to the time window that opposite equip. is specifiedOpposite end multiple equipment distributes corresponding subdata in specified window, thus the maximum efficiency using resource and raising processing data,Be conducive to improve the data transmission quality and safety that electronic equipment carries out data transmission.
In a possible example, the acquisition for completing subdata according to second corresponding relationship of foundation is graspedMake, comprising: determine the second corresponding relationship of target belonging to current time window;With second in second corresponding relationship of targetNAN equipment negotiation data transmission channel;Indicate that the 2nd NAN equipment in second corresponding relationship of target transmits the target theSubdata in two corresponding relationships;The data transmission channel through consultation receives the subnumber from the 2nd NAN equipmentAccording to.
In the specific implementation, for the channel between the first NAN equipment and other NAN equipment, negotiations process can be firstNAN equipment carries out lane negotiation by SDF Follow-Up message and other NAN equipment;For in addition to the first NAN equipmentChannel between any two NAN equipment first can be grouped other NAN equipment by the first NAN equipment, and for eachGrouping one target NAN equipment of selection, and the other equipment in target NAN equipment and group is notified to negotiate channel.
As it can be seen that in NAN network, corresponding 2nd NAN is found by time window in this example, it is further to negotiate to lead toRoad carries out data transmission, and is conducive to the efficiency for improving processing data, and improves the data transmission that electronic equipment carries out data transmissionQuality and safety.
In a possible example, each 2nd NAN equipment in described at least one the 2nd NAN equipment according toFeedback information determines each associated 2nd NAN equipment of first corresponding relationship in first correspondence set, comprising: solutionThe feedback information is analysed, if being associated with multiple 2nd NAN equipment with reference to the first corresponding relationship in first correspondence set,The multiple 2nd NAN equipment is detected with described with reference at a distance from the associated first NAN equipment of the first corresponding relationship, forms distanceSet;In the distance set, the target range less than pre-determined distance is filtered out;Determine the corresponding mesh of the target rangeMark the 2nd NAN equipment.
Wherein, pre-determined distance can be one meter, two meters, three meters etc., not do unique restriction herein.
As it can be seen that in this example, in NAN network, when the case where corresponding to same time window there are multiple 2nd NAN equipment,By detecting each 2nd NAN equipment at a distance from the first NAN equipment, select to obtain apart from shortest for the 2nd NAN equipmentTo quick transmission channel, the high efficiency of data transmission is improved.
It is described before corresponding the 2nd NAN equipment of target of the determination target range in a possible exampleMethod further include: in the distance set, filter out the target range less than pre-determined distance;If it exists multiple targets away fromFrom, it is determined that the corresponding multiple 2nd NAN equipment of the multiple target range;Inquire the multiple 2nd NAN equipment intoCapable transmitted data amount filters out the 2nd NAN equipment of target lower than Preset Transfer data volume.
Wherein, transmitted data amount can be for the data in other networks, the data volume being not limited in current NAN network.
As it can be seen that in this example, it is more by comparing when there are multiple apart from shortest 2nd NAN equipment in NAN networkTransmitted data amount between a 2nd NAN equipment carries out data transmission to find out the least 2nd NAN equipment of transmitted data amount,Quick transmission channel can be obtained, the high efficiency of data transmission is improved.
In a possible example, multiple 2nd NAN equipment into the first cluster send first service and find frameBefore SDF message, the method also includes: the target data is divided at least one subdata;Will it is described at least oneSubdata carries out priority ranking, obtains priority sequence;Will at least one described subdata on time the priority sequence intoThe row time divides, and obtains the time window of each subdata;Institute is formed according to the first corresponding relationship of each subdata and time windowState the first correspondence set.
Wherein, the priority ranking can be but not limited to based on memory size, based on importance, based on history occurRate etc. does not do unique restriction herein.
As it can be seen that in NAN network, by the dismantling to big data quantity, obtaining multiple small data quantities in this example, assistFirst NAN equipment completes processing AI big data, is conducive to the efficiency for improving processing data, and improves electronic equipment and carry out data biographyDefeated data transmission quality and safety.
In a possible example, multiple 2nd NAN equipment into the first cluster send first service and find frameBefore SDF message, the method also includes: enable NAN function;Institute is formed by the NAN function and multiple 2nd NAN equipmentThe first cluster is stated, and completes the synchronization of the NAN equipment in first cluster.
As it can be seen that the first NAN equipment is based on request triggering NAN function in this example, NAN function is kept to close under normality, sectionSave electricity.
In a possible example, the acquisition for completing subdata according to second corresponding relationship of foundation is operatedLater, the method also includes: receive and be transmitted information, detect the buffer area in the mapping table, the buffer area is usedIn the data that expression is being transmitted;If without the data transmitted in the buffer area, disconnect with it is describedThe connection of at least one the 2nd NAN equipment.
As it can be seen that in NAN network, by detecting buffer area, judgement is current, and whether there is also the numbers not transmitted in this exampleAccording to avoiding closing transmission channel in advance, the case where caused shortage of data generates, and improves what electronic equipment carried out data transmissionData transmission quality and integrality.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of data provided by the embodiments of the present applicationThe flow diagram of transmission method is applied to first adjacent to sensing network NAN equipment.As shown, notebook data transmission method packetIt includes:
S301, multiple 2nd NAN equipment into the first cluster send first service and find frame SDF message.
S302 receives the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment.
S303, according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine described inEach associated 2nd NAN equipment of first corresponding relationship in first correspondence set, and establish the described each first corresponding passThe second corresponding relationship between system and the associated 2nd NAN equipment.
S304 determines the second corresponding relationship of target belonging to current time window.
The 2nd NAN equipment negotiation data transmission channel in S305, with second corresponding relationship of target.
S306 indicates that the 2nd NAN equipment in second corresponding relationship of target transmits second corresponding relationship of targetIn subdata.
S307, the data transmission channel through consultation receive the subdata from the 2nd NAN equipment.
As can be seen that data transmission method and Related product described in the embodiment of the present application, it is neighbouring to be applied to firstFirst NAN equipment in sensing network NAN, multiple 2nd NAN equipment first into the first cluster send first service and find frame SDFMessage, secondly, the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment is received, it is describedThe 2nd SDF message of each 2nd NAN equipment includes being directed to first correspondence set at least one the 2nd NAN equipmentFeedback information then according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine instituteEach associated 2nd NAN equipment of first corresponding relationship in the first correspondence set is stated, and it is corresponding to establish described each firstThe second corresponding relationship between relationship and the associated 2nd NAN equipment, finally, according to second corresponding relationship of foundationComplete the acquisition operation of subdata.As it can be seen that in NAN network, by the way that the transmission data of big data quantity are divided into multiple subdatas,And time window is distributed, further allow opposite equip. specified time window, local device is given according to the time window that opposite equip. is specifiedOpposite end multiple equipment distributes corresponding subdata in specified window, thus the maximum efficiency using resource and raising processing data,Be conducive to improve the data transmission quality and safety that electronic equipment carries out data transmission.
In addition, finding corresponding 2nd NAN in NAN network by time window, further negotiating channel, countedAccording to transmission, be conducive to the efficiency for improving processing data, and improve data transmission quality and peace that electronic equipment carries out data transmissionQuan Xing.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of data provided by the embodiments of the present applicationThe flow diagram of transmission method is applied to first adjacent to sensing network NAN equipment.As shown, notebook data transmission method packetIt includes:
S401, multiple 2nd NAN equipment into the first cluster send first service and find frame SDF message.
S402 receives the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment.
S403 parses the feedback information, if more with reference to the association of the first corresponding relationship in first correspondence setA 2nd NAN equipment then detects the multiple 2nd NAN equipment and sets with described with reference to associated first NAN of the first corresponding relationshipStandby distance forms distance set.
S404 filters out the target range less than pre-determined distance in the distance set.
S405 determines corresponding the 2nd NAN equipment of target of the target range.
S406 determines the second corresponding relationship of target belonging to current time window.
The 2nd NAN equipment negotiation data transmission channel in S407, with second corresponding relationship of target.
S408 indicates that the 2nd NAN equipment in second corresponding relationship of target transmits second corresponding relationship of targetIn subdata.
S409, the data transmission channel through consultation receive the subdata from the 2nd NAN equipment.
As can be seen that data transmission method and Related product described in the embodiment of the present application, it is neighbouring to be applied to firstFirst NAN equipment in sensing network NAN, multiple 2nd NAN equipment first into the first cluster send first service and find frame SDFMessage, secondly, the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment is received, it is describedThe 2nd SDF message of each 2nd NAN equipment includes being directed to first correspondence set at least one the 2nd NAN equipmentFeedback information then according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine instituteEach associated 2nd NAN equipment of first corresponding relationship in the first correspondence set is stated, and it is corresponding to establish described each firstThe second corresponding relationship between relationship and the associated 2nd NAN equipment, finally, according to second corresponding relationship of foundationComplete the acquisition operation of subdata.As it can be seen that in NAN network, by the way that the transmission data of big data quantity are divided into multiple subdatas,And time window is distributed, further allow opposite equip. specified time window, local device is given according to the time window that opposite equip. is specifiedOpposite end multiple equipment distributes corresponding subdata in specified window, thus the maximum efficiency using resource and raising processing data,Be conducive to improve the data transmission quality and safety that electronic equipment carries out data transmission.
It is every by detecting when the case where corresponding to same time window there are multiple 2nd NAN equipment in addition, in NAN networkA 2nd NAN equipment selects quickly be passed apart from shortest for the 2nd NAN equipment at a distance from the first NAN equipmentDefeated channel improves the high efficiency of data transmission.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present applicationThe structural schematic diagram of a kind of electronic equipment 500, as shown, the electronic equipment 500 includes application processor 510, memory520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in above-mentioned depositIn reservoir 520, and it is configured to be executed by above-mentioned application processor 510, one or more of programs 521 include for executingThe instruction of following steps;
Multiple 2nd NAN equipment into the first cluster send first service and find frame SDF message, the first SDF messageIncluding preset first correspondence set, first correspondence set includes multiple first corresponding relationships, and each firstCorresponding relationship includes the first corresponding relationship of each subdata and time window in multiple subdatas, according to the multiple subdataTarget data marks off the subdata come, and first cluster includes the first NAN equipment and the multiple 2nd NAN equipment;
Receive in the multiple 2nd NAN equipment at least one the 2nd NAN equipment the 2nd SDF message, it is described extremelyThe 2nd SDF message of each 2nd NAN equipment includes for first correspondence set in few 2nd NAN equipmentFeedback information, the feedback information is for indicating that each 2nd NAN equipment has support in the first corresponding relationship of targetTime window transmits the ability of the subdata of first corresponding relationship of target, and first corresponding relationship of target is the multiple theThe first corresponding relationship in one corresponding relationship;
According to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, described first pair is determinedEach associated 2nd NAN equipment of first corresponding relationship in set of relationship is answered, and establishes each first corresponding relationship and instituteState the second corresponding relationship between associated 2nd NAN equipment;
The acquisition operation of subdata is completed according to second corresponding relationship of foundation.
As can be seen that data transmission method and Related product described in the embodiment of the present application, it is neighbouring to be applied to firstFirst NAN equipment in sensing network NAN, multiple 2nd NAN equipment first into the first cluster send first service and find frame SDFMessage, secondly, the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment is received, it is describedThe 2nd SDF message of each 2nd NAN equipment includes being directed to first correspondence set at least one the 2nd NAN equipmentFeedback information then according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine instituteEach associated 2nd NAN equipment of first corresponding relationship in the first correspondence set is stated, and it is corresponding to establish described each firstThe second corresponding relationship between relationship and the associated 2nd NAN equipment, finally, according to second corresponding relationship of foundationComplete the acquisition operation of subdata.As it can be seen that in NAN network, by the way that the transmission data of big data quantity are divided into multiple subdatas,And time window is distributed, further allow opposite equip. specified time window, local device is given according to the time window that opposite equip. is specifiedOpposite end multiple equipment distributes corresponding subdata in specified window, thus the maximum efficiency using resource and raising processing data,Be conducive to improve the data transmission quality and safety that electronic equipment carries out data transmission.
In a possible example, grasped in the acquisition for completing subdata according to second corresponding relationship of foundationMake aspect, described program includes the instruction for executing following steps: determining that target second belonging to current time window is corresponding and closeSystem;With the 2nd NAN equipment negotiation data transmission channel in second corresponding relationship of target;Indicate that the target second is correspondingThe 2nd NAN equipment in relationship transmits the subdata in second corresponding relationship of target;Data transmission through consultationSubdata of the channel reception from the 2nd NAN equipment.
In a possible example, each 2nd NAN equipment in described at least one the 2nd NAN equipment according toFeedback information, determine each associated 2nd NAN equipment aspect of first corresponding relationship, institute in first correspondence setStating program includes the instruction for executing following steps: the feedback information is parsed, if joining in first correspondence setIt examines the first corresponding relationship and is associated with multiple 2nd NAN equipment, then it is corresponding with the reference first to detect the multiple 2nd NAN equipmentThe distance of first NAN equipment of relationship forms distance set;In the distance set, filter out less than pre-determined distanceTarget range;Determine corresponding the 2nd NAN equipment of target of the target range.
In a possible example, in the front of corresponding the 2nd NAN equipment of target of the determination target rangeFace, described program include the instruction for executing following steps: in the distance set, being filtered out less than pre-determined distanceTarget range;Multiple target ranges if it exists, it is determined that the corresponding multiple 2nd NAN equipment of the multiple target range;InquiryThe ongoing transmitted data amount of the multiple 2nd NAN equipment filters out the 2nd NAN of target lower than Preset Transfer data volumeEquipment.
In a possible example, first service discovery is sent in multiple 2nd NAN equipment into the first clusterBefore frame SDF message, described program further includes the instruction for executing following steps: the target data is divided at least oneA subdata;At least one described subdata is subjected to priority ranking, obtains priority sequence;It will at least one described subnumberTime division is carried out according to the priority sequence on time, obtains the time window of each subdata;According to each subdata and timeFirst corresponding relationship of window forms first correspondence set.
In a possible example, first service discovery is sent in multiple 2nd NAN equipment into the first clusterBefore frame SDF message, described program includes being also used to execute the instruction of following steps: enabling NAN function;Pass through the NAN functionFirst cluster can be formed with multiple 2nd NAN equipment, and complete the synchronization of the NAN equipment in first cluster.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It canWith understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for electronic equipmentPart module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosureUnit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefullyUnexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solutionCondition.Professional technician can specifically realize described function to each using distinct methods, but thisIt realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to electronic equipment, for example, canWith each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unitIn.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needsIt is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical realIt is current that there may be another division manner.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing embodiment of the present invention methodMethod.Data as shown in FIG. 6 transmit generating means 600, are applied to first adjacent to sensing network NAN equipment, the dataTransmitting device 600 includes transmission unit 601, receiving unit 602, establishes unit 603 and acquiring unit 604, wherein
The transmission unit 601 sends first service for multiple 2nd NAN equipment into the first cluster and finds frame SDFMessage, the first SDF message include preset first correspondence set, and first correspondence set includes multipleOne corresponding relationship, each first corresponding relationship include the first corresponding relationship of each subdata and time window in multiple subdatas,The multiple subdata is that the subdata come is marked off according to target data, first cluster include the first NAN equipment withThe multiple 2nd NAN equipment;
The receiving unit 602, for receiving from least one the 2nd NAN equipment in the multiple 2nd NAN equipmentThe 2nd SDF message, the 2nd SDF message of each 2nd NAN equipment includes being directed to institute at least one described the 2nd NAN equipmentThe feedback information of the first correspondence set is stated, the feedback information is for indicating that each 2nd NAN equipment has supportThe ability of the subdata of first corresponding relationship of target, the target first are transmitted in the time window of the first corresponding relationship of targetCorresponding relationship is the first corresponding relationship in the multiple first corresponding relationship;
It is described to establish unit 603, for according at least one described the 2nd NAN equipment each 2nd NAN equipment it is anti-Feedforward information determines each associated 2nd NAN equipment of first corresponding relationship in first correspondence set, and described in foundationThe second corresponding relationship between each first corresponding relationship and the associated 2nd NAN equipment;
The acquiring unit 604, the acquisition for completing subdata according to second corresponding relationship of foundation operate.
As can be seen that data transmission method and Related product described in the embodiment of the present application, it is neighbouring to be applied to firstFirst NAN equipment in sensing network NAN, multiple 2nd NAN equipment first into the first cluster send first service and find frame SDFMessage, secondly, the 2nd SDF message of at least one the 2nd NAN equipment in the multiple 2nd NAN equipment is received, it is describedThe 2nd SDF message of each 2nd NAN equipment includes being directed to first correspondence set at least one the 2nd NAN equipmentFeedback information then according to the feedback information of each 2nd NAN equipment at least one described the 2nd NAN equipment, determine instituteEach associated 2nd NAN equipment of first corresponding relationship in the first correspondence set is stated, and it is corresponding to establish described each firstThe second corresponding relationship between relationship and the associated 2nd NAN equipment, finally, according to second corresponding relationship of foundationComplete the acquisition operation of subdata.As it can be seen that in NAN network, by the way that the transmission data of big data quantity are divided into multiple subdatas,And time window is distributed, further allow opposite equip. specified time window, local device is given according to the time window that opposite equip. is specifiedOpposite end multiple equipment distributes corresponding subdata in specified window, thus the maximum efficiency using resource and raising processing data,Be conducive to improve the data transmission quality and safety that electronic equipment carries out data transmission.
In a possible example, grasped in the acquisition for completing subdata according to second corresponding relationship of foundationMake aspect, the acquiring unit 604 is specifically used for: determining the second corresponding relationship of target belonging to current time window;With the meshMark the 2nd NAN equipment negotiation data transmission channel in the second corresponding relationship;Indicate in second corresponding relationship of targetTwo NAN equipment transmit the subdata in second corresponding relationship of target;The data transmission channel through consultation, which receives, to be comeFrom the subdata of the 2nd NAN equipment.
In a possible example, each 2nd NAN equipment in described at least one the 2nd NAN equipment according toFeedback information, determine each associated 2nd NAN equipment aspect of first corresponding relationship, institute in first correspondence setIt states and establishes unit 603 and be specifically used for: parsing the feedback information, if corresponding with reference to first in first correspondence setThe multiple 2nd NAN equipment of relationship, then detect the multiple 2nd NAN equipment and the first corresponding relationship of the reference is associatedThe distance of first NAN equipment forms distance set;In the distance set, filter out target less than pre-determined distance away fromFrom;Determine corresponding the 2nd NAN equipment of target of the target range.
In a possible example, before corresponding the 2nd NAN equipment of target of the determination target range, instituteIt states and establishes unit 603 and be specifically also used to: in the distance set, filtering out the target range less than pre-determined distance;If depositingIn multiple target ranges, it is determined that the corresponding multiple 2nd NAN equipment of the multiple target range;Inquire the multiple secondThe ongoing transmitted data amount of NAN equipment filters out the 2nd NAN equipment of target lower than Preset Transfer data volume.
In a possible example, first service discovery is sent in multiple 2nd NAN equipment into the first clusterBefore frame SDF message, the unit 603 of establishing specifically is also used to: the target data is divided at least one subdata;It willAt least one described subdata carries out priority ranking, obtains priority sequence;At least one described subdata is on time describedPriority sequence carries out time division, obtains the time window of each subdata;According to first pair of each subdata and time windowIt should be related to composition first correspondence set.
In a possible example, first service is sent in multiple 2nd NAN equipment into the first cluster and finds frame SDFBefore message, the transmission unit 601 also particularly useful for: enable NAN function;It is set by the NAN function and multiple 2nd NANIt is standby to form first cluster, and complete the synchronization of the NAN equipment in first cluster.
The embodiment of the present application also provides another electronic equipments, as shown in fig. 7, for ease of description, illustrate only withThe relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronicsEquipment can be include mobile phone, tablet computer, PDA (personal digital assistant, personal digital assistant), POSAny terminal device such as (point of sales, point-of-sale terminal), vehicle-mounted computer.
Fig. 7 shows the block diagram with the part-structure of electronic equipment provided in an embodiment of the present invention.As shown in fig. 7, electricSub- equipment 710 may include control circuit, which may include storage and processing circuit 720.Storage and processing electricityRoad 720 can store device, such as hard drive memory, nonvolatile memory (such as flash memory or it is used to form solid-state drivingOther electrically programmable read only memories of device etc.), volatile memory (such as either statically or dynamically random access memory etc.)Deng the embodiment of the present application is with no restriction.Processing circuit in storage and processing circuit 720 can be used for controlling electronic devices 710Operating.The processing circuit can microprocessor based on one or more, microcontroller, digital signal processor, Base-Band ProcessingDevice, power management unit, audio codec chip, specific integrated circuit, display-driver Ics etc. are realized.
Storage and processing circuit 720 can be used for running the software in electronic equipment 710, such as the Internet browser application journeySequence, voice over internet protocol (voice over internet protocol, VOIP) call application program, EmailApplication program, media play-back application, operation system function etc..These softwares can be used for executing some control operations, exampleSuch as, based on the Image Acquisition of camera, the ambient light measurement based on ambient light sensor, based on proximity sensor close to sensingDevice measurement, the information display function that the positioning indicators such as status indicator lamp based on light emitting diode are realized, based on touchThe touch event of sensor detects, function associated with information is shown on multiple (such as layering) displays, with executionThe associated operation of wireless communication function, operation associated with collecting and generating audio signal, is pressed with collection and treatment buttonOther functions etc. in the associated control operation of event data and electronic equipment 710 are pressed, the embodiment of the present application does not limitSystem.
Electronic equipment 710 can also include input-output circuit 730.Input-output circuit 730 can be used for setting electronicsStandby 710 realization data are output and input, i.e. permission electronic equipment 710 allows electronic equipment from outer equipment receiving data and also710 export data to external equipment from electronic equipment 710.Input-output circuit 730 may further include sensor 731.Sensor 731 may include ambient light sensor, the proximity sensor based on light and capacitor, and touch sensor is (for example, be based on lightTouch sensor and/or capacitive touch sensors, ultrasonic sensor, wherein touch sensor can be touching display screenA part, can also be used as a touch sensor arrangement and independently use), acceleration transducer and other sensors etc..
Input-output circuit 730 can also include one or more displays, such as display 732.Display 732 canTo include liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, using other aobviousShow combination one or several kinds of in the display of technology.Display 732 may include touch sensor array (that is, display732 can be touching display screen).Touch sensor can be by transparent touch sensor electrode (such as tin indium oxide (ITO)Electrode) capacitive touch sensors that array is formed, or it can be the touch sensor formed using other touching techniques, exampleSuch as sound wave touch-control, pressure sensible touch, resistive touch, optical touch etc., the embodiment of the present application is with no restriction.
Electronic equipment 710 can also include audio component 733.Audio component 733 can be used for providing for electronic equipment 710Audio input and output function.Audio component 733 in electronic equipment 710 may include loudspeaker, microphone, buzzer, soundAdjust generator and other for generating and detecting the component of sound.
Telecommunication circuit 734 can be used for providing the ability with external device communication for electronic equipment 710.Telecommunication circuit 734It may include analog- and digital- input-output interface circuit, and the radio communication circuit based on radiofrequency signal and/or optical signal.Radio communication circuit in telecommunication circuit 734 may include radio-frequency transceiver circuitry, power amplifier circuit, low noise amplificationDevice, switch, filter and antenna.For example, the radio communication circuit in telecommunication circuit 734 may include for passing through transmittingThe circuit of near-field communication (near field communication, NFC) is supported with near-field coupling electromagnetic signal is received.ExampleSuch as, telecommunication circuit 734 may include near-field communication aerial and near-field communication transceiver.Telecommunication circuit 734 can also include honeycombTelephone transceiver and antenna, wireless lan transceiver circuit and antenna etc..
Electronic equipment 710 can further include battery, power management circuitry and other input-output units 735.It is defeatedEnter-output unit 735 may include button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, hairOptical diode and other positioning indicators etc..
User can input a command for the operation of controlling electronic devices 710 by input-output circuit 730, and can be withStatus information and other outputs from electronic equipment 710 are received using the output data of input-output circuit 730 to realize.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricityThe computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computerA kind of some or all of data transmission method step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculatingThe non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned sideSome or all of any data transmission method recorded in method embodiment step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series ofCombination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence becauseAccording to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also knowIt knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the applicationIt is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodimentPoint, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another wayIt realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind ofLogical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or canTo be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutualCoupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unitThe component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multipleIn network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unitIt is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated listMember both can take the form of hardware realization, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent productWhen, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially orPerson says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software productsReveal and, which is stored in a memory, including some instructions are used so that a computer equipment(can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the applicationStep.And memory above-mentioned includes: USB flash disk, read-only memory (read-only memory, ROM), random access memoryThe various media that can store program code such as (random access memory, RAM), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is canIt is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memoryIt may include: flash disk, ROM, RAM, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application andEmbodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the applicationThere is change place, in conclusion the contents of this specification should not be construed as limiting 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, the obtaining operation of completing the sub-data according to the established second corresponding relationship comprises:确定当前时间窗所属的目标第二对应关系;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
CN109195226Atrue CN109195226A (en)2019-01-11
CN109195226B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111629391A (en)*2020-05-122020-09-04深圳市有方科技股份有限公司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 (4)

* 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
US20170311240A1 (en)*2014-11-252017-10-26Samsung Electronics Co., Ltd.Discovery method and an electronic device thereof
CN106507437A (en)*2016-11-082017-03-15北京小米移动软件有限公司 Smart device networking method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111629391A (en)*2020-05-122020-09-04深圳市有方科技股份有限公司Data transmission method and related equipment
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

Also Published As

Publication numberPublication date
CN109195226B (en)2021-04-02

Similar Documents

PublicationPublication DateTitle
EP3117586B1 (en)Cross-layer context management
CN105706379B (en)Method and apparatus for bluetooth connection
CN102832975B (en)Data transmission method, data transmission device and terminal with touch screen
US12143914B2 (en)Device identification method
CN109068206A (en)Master-slave earphone switching control method and related product
WO2021114952A1 (en)Data processing method, terminal device, bluetooth device, and storage medium
CN109151796A (en)NAN device finding method, related device and computer readable storage medium
CN105103618A (en) Systems and methods for wirelessly modifying detection signatures of portable devices
CN109120683A (en)data transmission method and related product
CN112269842B (en) An information processing method, device, storage medium and computer equipment
CN108683444A (en)Data transmission method and related product
CN109121199A (en)Positioning method, positioning device, mobile terminal and storage medium
KR102717416B1 (en) Information reporting method, information receiving method, terminal and network control entity
CN109195226A (en)data transmission method and related product
CN107765213A (en)Localization method and device
CN111149313B (en)Data transmission method and equipment
CN106713648A (en)Communication method and mobile terminal
CN109286544A (en) NAN-based intelligent management method and related products
WO2020029723A1 (en)Positioning method, related device, and computer readable storage medium
CN108966290B (en) Network connection method and related products
CN109792674A (en) Random access method, apparatus, electronic device, and computer-readable storage medium
CN113873685B (en)Method, device and equipment for establishing WiFi direct connection
WO2020001194A1 (en)Application program arrangement method and device, readable storage medium, and mobile terminal
CN105813013A (en)Information prompting method, device and system
CN109089207A (en)Service recourse method and Related product

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