CN109089246A - data transmission method and related product - Google Patents

data transmission method and related product Download PDF

Info

Publication number
CN109089246A
CN109089246A CN201810913287.5A CN201810913287A CN109089246A CN 109089246 A CN109089246 A CN 109089246A CN 201810913287 A CN201810913287 A CN 201810913287A CN 109089246 A CN109089246 A CN 109089246A
Authority
CN
China
Prior art keywords
equipment
data
target
target device
target data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810913287.5A
Other languages
Chinese (zh)
Other versions
CN109089246B (en
Inventor
柯世兴
胡亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810913287.5A priority Critical patent/CN109089246B/en
Publication of CN109089246A publication Critical patent/CN109089246A/en
Application granted granted Critical
Publication of CN109089246B publication Critical patent/CN109089246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of data transmission method and Related product, it include: to work as to detect for target data playing request, and the data transmission bauds of mobile network be lower than pre-set velocity threshold value when, broadcast first message, first message is used for multiple equipment request target data of first equipment into NAN network in addition to the first equipment, and target data is audio data and/or video data;The response message from multiple second equipment is received, it includes target data that response message, which is used to indicate multiple second equipment,;It selects from multiple second equipment for providing at least one target device of target data;Negotiate the transmission channel of target data at least one target device;Transmission channel through consultation receives the target data from least one target device.The embodiment of the present application is advantageously implemented electronic equipment and obtains audio, video data in the case where no mobile network data, promotes the convenience of data transmission.

Description

Data transmission method and Related product
Technical field
This application involves technical field of electronic equipment, and in particular to a kind of data transmission method and Related product.
Background technique
With a large amount of universal and fast development of electronic equipment (for example, smart phone), more and more applications are mounted In the electronic equipment of user, such as video class application, game class application, the application of music class etc., wherein the use of extensive application Mobile data network will be depended on.
Currently, people often will appear the data flow due to mobile data network poor signal or mobile data network In the case that amount is finished, audio data or video data can not be normally watched, the normal use of user is influenced.
Summary of the invention
The embodiment of the present application provides a kind of data transmission method and Related product, and electronic equipment may be implemented and do not moving Audio, video data is obtained in the case where dynamic network data, promotes the convenience of data transmission.
In a first aspect, the embodiment of the present application provides a kind of data transmission method, it is applied to the first equipment, described first sets The standby NAN equipment in neighbouring sensing network NAN network, which comprises
It is directed to target data playing request when detecting, and the data transmission bauds of mobile network is lower than pre-set velocity threshold value When, broadcast first message, the first message for first equipment into the NAN network in addition to first equipment Multiple equipment request the target data, the target data is audio data and/or video data;
The response message from multiple second equipment is received, the response message is used to indicate the multiple second equipment packet Containing the target data;
At least one target device of target data is used to provide the described from the selection of the multiple second equipment;
Negotiate the transmission channel of the target data at least one described target device;
The transmission channel through consultation receives the target data from least one target device.
Second aspect, the embodiment of the present application provide a kind of data transmission device, are applied to the first equipment, described first sets The standby NAN equipment in neighbouring sensing network NAN network, the data transmission device includes radio unit, receiving unit, selection Unit and communication unit, in which:
The radio unit is detected for working as target data playing request, and the data of mobile network transmit speed When degree is lower than pre-set velocity threshold value, first message is broadcasted, the first message is for first equipment into the NAN network Multiple equipment in addition to first equipment requests the target data, and the target data is audio data and/or video Data;
The receiving unit, for receiving the response message from multiple second equipment, the response message is used to indicate The multiple second equipment includes the target data;
The selection unit, for from the multiple second equipment selection be used to provide the described target data at least one Target device;
The communication unit, for negotiating the transmission channel of the target data at least one described target device;
The receiving unit, the transmission channel being also used to through consultation are received from least one described target device The target data.
The third aspect, the embodiment of the present application provide a kind of first equipment, comprising: processor, memory and one or Multiple programs;One or more of programs are stored in above-mentioned memory, and are configured to be executed by the processor, Described program is included the steps that for executing instruction described in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable Storage medium is stored with the computer program for electronic data interchange, which specifically includes instruction, described instruction Include for executing step, the computer some or all of as described in the embodiment of the present application first aspect either method First equipment.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program product Non-transient computer readable storage medium including storing computer program, the computer program are operable to make to calculate Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product It can be a software installation packet, the computer includes the first equipment.
As can be seen that in the embodiment of the present application, the first equipment is moved first when detecting for target data playing request When the data transmission bauds of dynamic network is lower than pre-set velocity threshold value, first message is broadcasted, the first message is used for described first Multiple equipment of the equipment into the NAN network in addition to first equipment requests the target data, the target data The response message from multiple second equipment then is received for audio data and/or video data, the response message is used for It indicates that the multiple second equipment includes the target data, then, is used to provide the described from the selection of the multiple second equipment At least one target device of target data, then after, negotiate the transmission of the target data at least one described target device Channel, finally, the transmission channel through consultation receives the target data from least one target device.It can See, the first equipment needs target data but when the data transmission bauds of mobile network is lower than pre-set velocity threshold value, by NAN Other equipment in network broadcast first message, to obtain the mesh by NAN network from the target device including target data Data are marked, mobile network is not necessarily to, without waste data traffic, are advantageously implemented electronic equipment in not mobile network data In the case of obtain audio, video data, promote the convenience of 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 below There 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 this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram of the DW of one cluster of NAN network disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow diagram of data transmission method disclosed in the embodiment 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 the first equipment of one kind 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.
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 application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every 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 distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It 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 have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include 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 embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly 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 modem User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment, the first equipment as described below and second Equipment is the 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 node In 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 agreement Maintenance work and service discovery work, the service discovery that NAN mechanism is carried out in window (Discovery Window, abbreviation DW) are i.e. logical Cross the realization of transmission service discovery frame (Service Discovery Frame, abbreviation SDF) message, the service discovery frame message Including query messages or broadcast message.Equipment can establish corresponding connection based on the information obtained in service discovery, then into The 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 cluster Between time interval be also fixed.
In NAN mechanism, setting is found window (discovery window, DW), and NAN equipment can be taken in DW Business discovery.It is provided with a DW in general every 512 TU (time unit, time quantum) of NAN mechanism, one of TU's holds Continuous duration is about that the duration of 1024 μ s, DW is generally 16TU, i.e., in NAN mechanism, generally every 496 TU settings one A DW.In NAN mechanism, one cluster Cluster (also known as adjacent to sensing network) of one or more NAN equipment formation, one Cluster 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 set Preparation send sync beacon frame (sync beacon) message, the information of the AM in the Cluster is carried in the message, for connecing The 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 DW In, the NAN equipment in the cluster can send service discovery frame SDF message in DW, carry out service discovery, the time other than DW In, the NAN equipment in the cluster can send discovery beacon (discovery beacon) message, to declare the presence of the cluster.Cluster In 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 set It is standby.After service discovery, at least two NAN equipment for needing to carry out data transmission between each other can arrange in the DW Running 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 agreement The 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 one Cluster, and set the Cluster's based on the MAC of itself (Media Access Control, medium access control) address Cluster 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 sent When (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 Cluster AM information, such as may include anchor host node grade (anchor master rank, AMR), host node grade (master Rank, MR), host node priority (Master Preference, MP), anchor host node priority (anchor Master Preference, AMP), enchancement factor (random factor, RF), anchor host node signal transmission time (Anchor Master Beacon 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 equipment His NAN equipment, equally, a NAN equipment also can receive the transmission of the NAN equipment in this Cluster or other Cluster Beacon frame.
After NAN equipment receives a Beacon frame, it can be determined that the Beacon frame is belonging to itself NAN equipment in the Cluster still NAN equipment in other Cluster, if the NAN in other Cluster is set Standby, 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 itself Value, 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, locates Reason.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 addition AM in Cluster, which is realized, to be synchronized, in the Cluster that specifically can be the parameters information and addition in the AM by itself AM 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 DW Discovery Frames, service discovery frame) message to carry out service discovery, can for example carry in the SDF message and be used for Service-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 this NAN equipment send SDF message after, however, it is determined that meet the SDF message, Service Matching can be carried out, then can in DW to The 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 hair Existing SDF message, if the NAN equipment, which determines, meets the received SDF message of institute, which also can be in DW to corresponding NAN 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 equipment Address 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 master Wish 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.MP Value 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 AM Send the time.In general, the NAN equipment for sending Beacon frame can carry AMBTT, for other NAN equipment and this AMBTT pairs The 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 receiving Timer (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.TSF It can also indicate temporal information.
Cluster identity Cluster ID, general maximum value are 6 bytes, are carried in Beacon frame In the field of Address (address) 3.
Cluster grade CG, general maximum value are 8 bytes, indicate the grade of Cluster, exist for different Cluster It 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 function Together, SDF message can substantially be divided into three kinds: SDF publication Publish message, SDF subscribes to Subscribe message, SDF is replied In general Follow-Up message includes an indicating bit in SDF message, being used to indicate the SDF message is which kind of SDF disappears Breath.
SDF Publish message: the service that can be provided for issuing NAN equipment, or for replying other NAN received The 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 believe Breath.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of data transmission method, it is applied to First equipment, first equipment is the NAN equipment in neighbouring sensing network NAN network, as shown, notebook data transmission method Include:
S201, the first equipment, which is worked as, to be detected for target data playing request, and the data transmission bauds of mobile network is low When pre-set velocity threshold value, first message is broadcasted, the first message removes institute into the NAN network for first equipment It states the multiple equipment except the first equipment and requests the target data, the target data is audio data and/or video data;
Wherein, the broadcast first message can be when user is when appreciating video or music, and electronic equipment detects When data transmission bauds without mobile network signals or mobile network is lower than pre-set velocity threshold value, by broadcasting first message, For search need target data service, make the first equipment can continue in the case where no mobile network play video or Person's music, the first message are specifically as follows SDFSubscribe message.
Wherein, the broadcast first message is also possible to when user thinks that remaining data traffic is less, actively triggers, Such as the video request function button triggering etc. by selecting the first equipment, trigger condition does not do unique restriction.
S202, first equipment receive the response message from multiple second equipment, and the response message is used to indicate The multiple second equipment includes the target data;
Wherein, the first message may include the name identification of the target data, and second equipment is receiving When first message, the keyword of name identification in the extraction first message can be passed through;According to the keyword search The local resource of second equipment;When detecting in the local resource comprising the target data, sent out to first equipment The response message is sent, when detecting in local resource not comprising the target data, does not need to send out to first equipment Send the response message.
Wherein, the response message specifically can be SDF Publish message.
Wherein, can be the total data comprising the target data in the multiple second equipment, be also possible to include Partial data in the target data, it is not limited here.
Wherein, it may include the equipment in the NAN network in the multiple second equipment, it is also possible to including other NAN Equipment in network, the equipment in other described NAN networks can receive described the by the trunking in the NAN network One message, and send the response message, the trunking is the NAN equipment with relay function, and for be present in NAN equipment in few two NAN networks, the trunking can turn after the first message for receiving the first device broadcasts Send out first message described into other NAN networks.
S203, first equipment are used to provide the described at least one of target data from the selection of the multiple second equipment Target device;
Wherein, first equipment is used to provide the described at least one of target data from the selection of the multiple second equipment The specific implementation of target device can be diversified, such as can be first response message pair receiving of selection The second equipment answered is the target device, and being also possible to select the equipment in the multiple second equipment more than electricity is the mesh Marking device etc., it is not limited here.
S204, first equipment and at least one described target device negotiate the transmission channel of the target data.
In the specific implementation, for the transmission channel between the first equipment and at least one target device, negotiations process can be with It is that the first equipment passes through SDF Follow-Up message and the progress transmission channel negotiation of at least one target device.
S205, the transmission channel of first equipment through consultation are received from least one target device The target data.
Wherein, the first equipment can receive the number of targets from least one target device by each transmission channel respectively According to, the target data can also respectively by transmission channel between the second equipment and trunking and trunking with Transmission channel between first equipment is transmitted, it is not limited here.
As can be seen that in the embodiment of the present application, the first equipment is moved first when detecting for target data playing request When the data transmission bauds of dynamic network is lower than pre-set velocity threshold value, first message is broadcasted, the first message is used for described first Multiple equipment of the equipment into the NAN network in addition to first equipment requests the target data, the target data The response message from multiple second equipment then is received for audio data and/or video data, the response message is used for It indicates that the multiple second equipment includes the target data, then, is used to provide the described from the selection of the multiple second equipment At least one target device of target data, then after, negotiate the transmission of the target data at least one described target device Channel, finally, the transmission channel through consultation receives the target data from least one target device.It can See, the first equipment needs target data but when the data transmission bauds of mobile network is lower than pre-set velocity threshold value, by NAN Other equipment in network broadcast first message, to obtain the mesh by NAN network from the target device including target data Data are marked, mobile network is not necessarily to, without waste data traffic, are advantageously implemented electronic equipment in not mobile network data In the case of obtain audio, video data, promote the convenience of data transmission.
In a possible example, it is described from the multiple second equipment selection be used to provide the described target data to A few target device, comprising:
The number of at least one target device is determined according to the data volume of the target data;
It is selected to be used to provide the described mesh from the multiple second equipment according to the number of at least one target device Mark at least one described target device of data;
The transmission channel through consultation receives the target data from least one target device, Include:
According to the number of at least one target device, the target data is divided into multiple data segment tasks, is passed through The transmission channel negotiated distributes at least one described target device;
The transmission channel through consultation receives each target device at least one described target device simultaneously Data segment in the corresponding target data.
Wherein, different data volumes corresponds to the number of at least one different target devices, and data volume is more, target device Number it is more, reflecting between data volume section and the number of at least one target device can be prestored in first equipment Relationship is penetrated, the first equipment can determine the number of at least one target device according to the mapping relations.
Wherein, the number of the multiple data segment task is identical as the number of at least one target device or data Section task number be at least one target device multiple, it is not limited here, if each target device there are two or When more than person data segment task, the forward data segment of the corresponding timing node of data segment first can be sent to the first equipment, so The data segment of the corresponding timing node of data segment rearward is retransmited afterwards.
Wherein, it is described by the target data be divided into multiple data segment tasks can be target data is equally divided into it is multiple Data segment task is also possible to be divided into not according to the performance (such as response speed, received signal strength etc.) of different target equipment With multiple data segment tasks of data volume, it is not limited here.
Wherein, the transmission channel through consultation distributes to the specific implementation side of at least one target device Formula can be by SDF Follow-Up message by the start time point of data segment task and end time point be sent to it is described extremely A few target device.
As it can be seen that target data is divided into multiple data segments by the first equipment in this example, connect respectively by multiple target devices Data segment is received, the speed for being conducive to be promoted data acquisition improves number moreover, determining the number of target device according to data volume According to the reasonability of acquisition.
In this possible example, the number of at least one target device according to is set from the multiple second Alternative is used to provide the described at least one described target device of target data, comprising:
The response speed of the multiple second equipment is determined according to the receiving time of the response message;
According to the sequence of the response speed and the number of at least one target device from the multiple second equipment Middle at least one described target device for selecting to be used to provide the described target data.
Wherein, at least one described target device is chosen near slow sequence according to the response speed, it is described to connect Smaller between time receiving, the response speed is faster.
As it can be seen that in this example, the first equipment according to the response speed of the multiple second equipment determine it is described at least one Target device, rather than target device is arbitrarily chosen in multiple second equipment, the target device of fast response time is chosen, favorably In the speed for promoting target data transmission, improving data transmission efficiency.
In a possible example, the number of at least one target device according to is set from the multiple second Alternative is used to provide the described at least one described target device of target data, comprising:
Received signal strength (the Received Signal of the multiple second equipment is determined according to the response message Strength Indicator,RSSI);
According to the signal strength of RSSI sequence and the number of at least one target device from the multiple second Selection is used to provide the described at least one described target device of target data in equipment.
Wherein, according to the RSSI from by force to weak at least one described target device of sequence selection.
As it can be seen that the first equipment is described extremely according to the determination of the signal strength of the RSSI of the multiple second equipment in this example A few target device, rather than target device is arbitrarily chosen in multiple second equipment, the target for choosing fast response time is set It is standby, be conducive to the stability for promoting target data transmission.
In this possible example, the number of at least one target device is 1, described according to the RSSI's Signal strength sequence and the number of at least one target device select to be used to provide the described from the multiple second equipment At least one described target device of target data, comprising:
Strongest second equipment of the RSSI is selected from the multiple second equipment to be used to provide the described target The first object equipment of data;
Judge in the first object equipment whether include the target data total data;
When judging in the first object equipment only to include the partial data of the target data, choose the multiple The second equipment comprising the data in the target data in addition to the partial data in second equipment is the second target device.
Wherein, it is described choose in the multiple second equipment comprising in the target data in addition to the partial data Second equipment of data can be for the specific implementation of the second target device Second equipment of the data in the target data in addition to the partial data is also possible to according to RSSI from by force to weak choosing The second equipment comprising the data in the target data in addition to the partial data is selected, it is not limited here.
As it can be seen that the first equipment is judging that first object equipment only includes mesh after choosing target device in this example When marking the partial data of data, the second target device is chosen, is conducive to the integrality for promoting data transmission.
In a possible example, the response message includes device capability information, it is described according at least one The number of target device is used to provide the described at least one target described in target data from the selection of the multiple second equipment and sets It is standby, comprising:
The selection sequence of the multiple second equipment is determined according to the device capability information;
It is selected from the multiple second equipment according to the number of the selection sequence and at least one target device It is used to provide the described at least one described target device of target data, includes the mesh at least one described target device Mark the total data of data.
Wherein, the device capability information may include remaining capacity, CPU working frequency, the quality of target data resource Deng the target data offer ability of these device capability informations the second equipment of association, if target data resource is TV play view Frequently, then capacity of equipment can also include being capable of providing collection of drama quantity after current episode, can use always in this way with The second equipment more than episode data carries out data transmission, and does not have to repeatedly the second equipment of replacement, guarantees the stability of data transmission.
Wherein, the specific implementation of the selection sequence of the multiple second equipment is determined according to the device capability information It can be diversified, such as can be first according to remaining capacity from being more to ranked up less, when any two second are set When standby remaining capacity is identical, the two second equipment are ranked up according to other ability informations, or can be it is each not Same ability information is corresponding with impact factor, and total score of each equipment, root are calculated according to impact factor and ability information Multiple second equipment are ranked up from high to low according to score, it is not limited here.
As it can be seen that the device capability information for the local terminal that the first equipment is carried according to the second equipment is to multiple second in this example Equipment is ranked up, and then chooses at least one target device, is conducive to the stability for promoting data transmission, is avoided because of equipment energy Power is weaker, when target data is not transmitted all, Transmission or the slower situation of transmission.
In a possible example, before the broadcast first message, the method also includes:
Enable NAN function;
Pass through each equipment in the first equipment described in the NAN Function detection and predeterminable area according to default ranging strategy Distance;
Screen the multiple equipment that the distance is less than pre-determined distance threshold value;
The NAN network is formed with the multiple equipment, and completes the synchronization of each equipment in the NAN network.
Wherein, 1, firstly, the first equipment each equipment into the measured predeterminable area of the first equipment is (such as following by it Referred to as refer to NAN equipment) FTM Request (FTM request) is sent, for requesting the time window of a cycle, with reference to NAN Equipment can reply message after receiving FTM Request according to the resource situation of oneself and ability etc., show receive or again Set a time window.Wherein, FTM Request is a kind of Action Frame.
If 2, receiving preset time window with reference to NAN equipment, with reference to NAN equipment and the first equipment just all start into The capture of row time.Wherein, time with reference to NAN equipment to the first device replied for FTM Request is captured with reference to NAN equipment It is t1 at the time of multiple message, the capture of the first equipment is received with reference to NAN equipment at the time of replying message of FTM Request For t2.
3, the first equipment to reference NAN device replied, for the ACK replied message, (answer by Acknowledgement, confirmation Answer), and capture for t3 at the time of sending the ACK, being captured at the time of receiving the ACK with reference to NAN equipment is t4.
If 4, the first equipment will complete ranging, ranging message, the ranging message are sent to the first equipment with reference to NAN equipment In carry t1 and t4.
Such first equipment just obtains tetra- times of time t1, t2, t3, t4, so as to calculate outbound message back and forth when Between RTT (Round-Trip Time, round-trip delay) are as follows:
RTT=[(t4-t1)-(t3-t2)] (1)
Then the first equipment can be calculated and with reference to the distance between NAN equipment d are as follows:
D=1/2*RTT*c (2)
Wherein c is the light velocity, can also be equal to the transmission speed of Wi-Fi signal.
As it can be seen that the first equipment is based on request triggering NAN function in this example, keeps NAN function to close under normality, save Electricity improves NAN network moreover, the first equipment can quickly filter out the potential equipment for meeting NAN network based on distance detection The high efficiency of creation.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is another number provided by the embodiments of the present application According to the flow diagram of transmission method, it is applied to the first equipment, first equipment is in neighbouring sensing network NAN network NAN equipment, as shown, notebook data transmission method includes:
S301, the first equipment, which is worked as, to be detected for target data playing request, and the data transmission bauds of mobile network is low When pre-set velocity threshold value, first message is broadcasted, the first message removes institute into the NAN network for first equipment It states the multiple equipment except the first equipment and requests the target data, the target data is audio data and/or video data.
S302, first equipment receive the response message from multiple second equipment, and the response message is used to indicate The multiple second equipment includes the target data.
S303, first equipment determine the number of at least one target device according to the data volume of the target data.
S304, first equipment are selected from the multiple second equipment according to the number of at least one target device Select at least one target device for being used to provide the described target data.
S305, first equipment and at least one described target device negotiate the transmission channel of the target data.
The target data is divided into more by S306, first equipment according to the number of at least one target device A data segment task, the transmission channel through consultation distribute at least one described target device.
S307, the transmission channel of first equipment through consultation receives simultaneously to be set from least one described target Data segment in standby in the corresponding target data of each target device.
As can be seen that in the embodiment of the present application, the first equipment is moved first when detecting for target data playing request When the data transmission bauds of dynamic network is lower than pre-set velocity threshold value, first message is broadcasted, the first message is used for described first Multiple equipment of the equipment into the NAN network in addition to first equipment requests the target data, the target data The response message from multiple second equipment then is received for audio data and/or video data, the response message is used for It indicates that the multiple second equipment includes the target data, then, is used to provide the described from the selection of the multiple second equipment At least one target device of target data, then after, negotiate the transmission of the target data at least one described target device Channel, finally, the transmission channel through consultation receives the target data from least one target device.It can See, the first equipment needs target data but when the data transmission bauds of mobile network is lower than pre-set velocity threshold value, by NAN Other equipment in network broadcast first message, to obtain the mesh by NAN network from the target device including target data Data are marked, mobile network is not necessarily to, without waste data traffic, are advantageously implemented electronic equipment in not mobile network data In the case of obtain audio, video data, promote the convenience of data transmission.
In addition, target data is divided into multiple data segments by the first equipment, respectively by multiple target device receiving data segments, The speed for being conducive to be promoted data acquisition improves the conjunction of data acquisition moreover, determining the number of target device according to data volume Rationality.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is another number provided by the embodiments of the present application According to the flow diagram of transmission method, it is applied to the first equipment, first equipment is in neighbouring sensing network NAN network NAN equipment, as shown, notebook data transmission method includes:
S401, the first equipment, which is worked as, to be detected for target data playing request, and the data transmission bauds of mobile network is low When pre-set velocity threshold value, NAN function is enabled, the target data is audio data and/or video data.
S402, first equipment pass through the first equipment described in the NAN Function detection and pre- according to default ranging strategy If the distance of each equipment in region.
S403, first equipment screen the multiple equipment that the distance is less than pre-determined distance threshold value.
S404, first equipment and the multiple equipment form the NAN network, and complete every in the NAN network The synchronization of a equipment.
S405, the first device broadcasts first message, the first message are used for first equipment to the NAN net Target data described in the multiple device request in network in addition to first equipment.
S406, first equipment receive the response message from multiple second equipment, and the response message is used to indicate The multiple second equipment includes the target data.
S407, first equipment select to be used to provide the described at least the one of target data from the multiple second equipment A target device.
S408, first equipment and at least one described target device negotiate the transmission channel of the target data.
S409, the transmission channel of first equipment through consultation are received from least one target device The target data.
As can be seen that in the embodiment of the present application, the first equipment is moved first when detecting for target data playing request When the data transmission bauds of dynamic network is lower than pre-set velocity threshold value, first message is broadcasted, the first message is used for described first Multiple equipment of the equipment into the NAN network in addition to first equipment requests the target data, the target data The response message from multiple second equipment then is received for audio data and/or video data, the response message is used for It indicates that the multiple second equipment includes the target data, then, is used to provide the described from the selection of the multiple second equipment At least one target device of target data, then after, negotiate the transmission of the target data at least one described target device Channel, finally, the transmission channel through consultation receives the target data from least one target device.It can See, the first equipment needs target data but when the data transmission bauds of mobile network is lower than pre-set velocity threshold value, by NAN Other equipment in network broadcast first message, to obtain the mesh by NAN network from the target device including target data Data are marked, mobile network is not necessarily to, without waste data traffic, are advantageously implemented electronic equipment in not mobile network data In the case of obtain audio, video data, promote the convenience of data transmission.
In addition, the first equipment is based on request triggering NAN function, keeps NAN function to close under normality, save electricity, moreover, First equipment can quickly filter out the potential equipment for meeting NAN network based on distance detection, improve the efficient of NAN network creation Property.
It is consistent with above-mentioned Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application The structural schematic diagram of the first a kind of equipment, as shown, first equipment sets for the NAN in neighbouring sensing network NAN network Standby, which includes processor 501, memory 502, communication interface 503 and one or more programs 504, wherein on It states one or more programs 504 to be stored in above-mentioned memory 502, and is configured to be executed by above-mentioned processor 501, it is above-mentioned Program includes the instruction for executing following steps;
It is directed to target data playing request when detecting, and the data transmission bauds of mobile network is lower than pre-set velocity threshold value When, broadcast first message, the first message for first equipment into the NAN network in addition to first equipment Multiple equipment request the target data, the target data is audio data and/or video data;
The response message from multiple second equipment is received, the response message is used to indicate the multiple second equipment packet Containing the target data;
At least one target device of target data is used to provide the described from the selection of the multiple second equipment;
Negotiate the transmission channel of the target data at least one described target device;
The transmission channel through consultation receives the target data from least one target device.
As can be seen that in the embodiment of the present application, the first equipment is moved first when detecting for target data playing request When the data transmission bauds of dynamic network is lower than pre-set velocity threshold value, first message is broadcasted, the first message is used for described first Multiple equipment of the equipment into the NAN network in addition to first equipment requests the target data, the target data The response message from multiple second equipment then is received for audio data and/or video data, the response message is used for It indicates that the multiple second equipment includes the target data, then, is used to provide the described from the selection of the multiple second equipment At least one target device of target data, then after, negotiate the transmission of the target data at least one described target device Channel, finally, the transmission channel through consultation receives the target data from least one target device.It can See, the first equipment needs target data but when the data transmission bauds of mobile network is lower than pre-set velocity threshold value, by NAN Other equipment in network broadcast first message, to obtain the mesh by NAN network from the target device including target data Data are marked, mobile network is not necessarily to, without waste data traffic, are advantageously implemented electronic equipment in not mobile network data In the case of obtain audio, video data, promote the convenience of data transmission.
In a possible example, target data is used to provide the described from the selection of the multiple second equipment described In terms of at least one target device, the instruction in described program is specifically used for executing following operation: according to the target data Data volume determines the number of at least one target device;And for according to the number of at least one target device from Selection is used to provide the described at least one described target device of target data in the multiple second equipment;
The number of targets from least one target device is received in the transmission channel through consultation According to aspect, the instruction in described program is specifically used for executing following operation:, will according to the number of at least one target device The target data is divided into multiple data segment tasks, and the transmission channel through consultation is distributed at least one described target and set It is standby;And it receives each target at least one described target device simultaneously for the transmission channel through consultation and sets Data segment in the standby corresponding target data.
In this possible example, at least one target device according to number from the multiple second In terms of equipment selection is used to provide the described at least one described target device of target data, the instruction in described program is specifically used The operation below executing: the response speed of the multiple second equipment is determined according to the receiving time of the response message;And For being selected from the multiple second equipment according to the sequence of the response speed and the number of at least one target device Select at least one the described target device for being used to provide the described target data.
In a possible example, at least one target device according to number from the multiple second In terms of equipment selection is used to provide the described at least one described target device of target data, the instruction in described program is specifically used The operation below executing: the received signal strength RSSI of the multiple second equipment is determined according to the response message;And it uses According to the number of the signal strength of RSSI sequence and at least one target device from the multiple second equipment Selection is used to provide the described at least one described target device of target data.
In this possible example, the number of at least one target device is 1, described according to the RSSI Signal strength sequence and the number of at least one target device select from the multiple second equipment for providing In terms of at least one the described target device for stating target data, the instruction in described program is specifically used for executing following operation: from Strongest second equipment of the RSSI is selected in the multiple second equipment for be used to provide the described target data first Target device;And for judge in the first object equipment whether include the target data total data;And it uses In when judging in the first object equipment only to include the partial data of the target data, chooses the multiple second and set The second equipment comprising the data in the target data in addition to the partial data in standby is the second target device.
In a possible example, the response message includes device capability information, described at least one according to The number of a target device is used to provide the described at least one target described in target data from the selection of the multiple second equipment Equipment aspect, the instruction in described program are specifically used for executing following operation: being determined according to the device capability information described more The selection sequence of a second equipment;And for according to the number of selection sequence and at least one target device from institute State at least one described target device that selection in multiple second equipment is used to provide the described target data, at least one described mesh It include the total data of the target data in marking device.
In a possible example, above procedure further includes the instruction for executing following steps: the broadcast first Before message, NAN function is enabled;And for passing through the first equipment described in the NAN Function detection according to default ranging strategy At a distance from equipment each in predeterminable area;And it is set for screening the distance less than the multiple of pre-determined distance threshold value It is standby;And for forming the NAN network with the multiple equipment, and complete the synchronization of each equipment in the NAN network.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that , in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for the first equipment Block.Those skilled in the art should be readily appreciated that, in conjunction with each exemplary unit of embodiment description presented herein And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution Part.Professional technician can specifically realize described function to each using distinct methods, but this reality Now 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 above method example to the first equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It 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 real It is current that there may be another division manner.
Fig. 6 is the functional unit composition block diagram of data transmission device 600 involved in the embodiment of the present application.The data pass Defeated device 600 is applied to the first equipment, and first equipment is the NAN equipment in neighbouring sensing network NAN network, which passes Defeated device 600 includes radio unit 601, receiving unit 602, selection unit 603 and communication unit 604, wherein
The radio unit 601 is detected for working as target data playing request, and the data transmission of mobile network When speed is lower than pre-set velocity threshold value, first message is broadcasted, the first message is used for first equipment to the NAN network In multiple equipment in addition to first equipment request the target data, the target data is audio data and/or view Frequency evidence;
The receiving unit 602, for receiving the response message from multiple second equipment, the response message is for referring to Show that the multiple second equipment includes the target data;
The selection unit 603, for being used to provide the described target data at least from the selection of the multiple second equipment One target device;
The communication unit 604, for negotiating the transmission channel of the target data at least one described target device;
The receiving unit 602, the transmission channel being also used to through consultation are received from least one described target The target data of equipment.
As can be seen that in the embodiment of the present application, the first equipment is moved first when detecting for target data playing request When the data transmission bauds of dynamic network is lower than pre-set velocity threshold value, first message is broadcasted, the first message is used for described first Multiple equipment of the equipment into the NAN network in addition to first equipment requests the target data, the target data The response message from multiple second equipment then is received for audio data and/or video data, the response message is used for It indicates that the multiple second equipment includes the target data, then, is used to provide the described from the selection of the multiple second equipment At least one target device of target data, then after, negotiate the transmission of the target data at least one described target device Channel, finally, the transmission channel through consultation receives the target data from least one target device.It can See, the first equipment needs target data but when the data transmission bauds of mobile network is lower than pre-set velocity threshold value, by NAN Other equipment in network broadcast first message, to obtain the mesh by NAN network from the target device including target data Data are marked, mobile network is not necessarily to, without waste data traffic, are advantageously implemented electronic equipment in not mobile network data In the case of obtain audio, video data, promote the convenience of data transmission.
In a possible example, target data is used to provide the described from the selection of the multiple second equipment described In terms of at least one target device, the selection unit 603 is specifically used for: according to the determination of the data volume of the target data The number of at least one target device;And for being set according to the number of at least one target device from the multiple second Standby middle at least one described target device for selecting to be used to provide the described target data;
The number of targets from least one target device is received in the transmission channel through consultation According to aspect, the communication unit 604 is specifically used for: according to the number of at least one target device, by the target data It is divided into multiple data segment tasks, the transmission channel through consultation distributes at least one described target device;And it is used for The transmission channel through consultation receives the corresponding institute of each target device at least one described target device simultaneously State the data segment in target data.
In this possible example, at least one target device according to number from the multiple second In terms of equipment selection is used to provide the described at least one described target device of target data, the selection unit 603 is specifically used In: the response speed of the multiple second equipment is determined according to the receiving time of the response message;And for according to The sequence of response speed and the number of at least one target device are selected from the multiple second equipment for providing State at least one described target device of target data.
In a possible example, at least one target device according to number from the multiple second In terms of equipment selection is used to provide the described at least one described target device of target data, the selection unit 603 is specifically used In: the received signal strength RSSI of the multiple second equipment is determined according to the response message;And for according to The signal strength sequence of RSSI and the number of at least one target device are selected from the multiple second equipment for mentioning For at least one target device described in the target data.
In this possible example, the number of at least one target device is 1, described according to the RSSI Signal strength sequence and the number of at least one target device select from the multiple second equipment for providing In terms of at least one the described target device for stating target data, the selection unit 603 is specifically used for: setting from the multiple second It is standby middle to select strongest second equipment of the RSSI as the first object equipment that is used to provide the described target data;And it uses In judge in the first object equipment whether include the target data total data;And for when judging described the When in one target device only including the partial data of the target data, choosing includes the target in the multiple second equipment Second equipment of the data in data in addition to the partial data is the second target device.
In a possible example, the response message includes device capability information, described at least one according to The number of a target device is used to provide the described at least one target described in target data from the selection of the multiple second equipment Equipment aspect, the selection unit 603 are specifically used for: the choosing of the multiple second equipment is determined according to the device capability information Take sequence;And for according to the number of selection sequence and at least one target device from the multiple second equipment Middle selection is used to provide the described at least one described target device of target data, includes at least one described target device The total data of the target data.
In a possible example, the data transmission device 600 further includes establishing unit, and the unit of establishing is in institute It before stating broadcast first message, is used for: enabling NAN function;And for being examined according to default ranging strategy by the NAN function First equipment is surveyed in predeterminable area at a distance from each equipment;And for screening the distance less than pre-determined distance threshold value The multiple equipment;And for forming the NAN network with the multiple equipment, and complete each in the NAN network The synchronization of equipment.
Wherein, radio unit 601, receiving unit 602 and communication unit 604 can be transceiver or communication interface, institute Stating selection unit 603 can be processor, and the unit of establishing can be processor or transceiver.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer A kind of some or all of data transmission method step, above-mentioned computer include the first equipment.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The 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 side Some or all of any data transmission method recorded in method embodiment step, above-mentioned computer include the first equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It 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 embodiment Point, 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 way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, 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 unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In 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 unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal 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 application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), 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 can It is completed with instructing relevant hardware by program, which can store in computer-readable memory, and memory can With include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: 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 and Embodiment 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 application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of data transmission method, which is characterized in that be applied to the first equipment, first equipment is neighbouring sensing network NAN equipment in NAN network, which comprises
When detecting for target data playing request, and when the data transmission bauds of mobile network is lower than pre-set velocity threshold value, Broadcast first message, the first message for first equipment into the NAN network in addition to first equipment Multiple equipment requests the target data, and the target data is audio data and/or video data;
The response message from multiple second equipment is received, it includes institute that the response message, which is used to indicate the multiple second equipment, State target data;
At least one target device of target data is used to provide the described from the selection of the multiple second equipment;
Negotiate the transmission channel of the target data at least one described target device;
The transmission channel through consultation receives the target data from least one target device.
2. the method according to claim 1, wherein described select from the multiple second equipment for providing State at least one target device of target data, comprising:
The number of at least one target device is determined according to the data volume of the target data;
It is selected to be used to provide the described number of targets from the multiple second equipment according to the number of at least one target device At least one target device described in;
The transmission channel through consultation receives the target data from least one target device, packet It includes:
According to the number of at least one target device, the target data is divided into multiple data segment tasks, through consultation The transmission channel distribute at least one described target device;
It is corresponding that the transmission channel through consultation receives each target device at least one described target device simultaneously The target data in data segment.
3. according to the method described in claim 2, it is characterized in that, the number of at least one target device according to from The multiple second equipment selection is used to provide the described at least one described target device of target data, comprising:
The response speed of the multiple second equipment is determined according to the receiving time of the response message;
It is selected from the multiple second equipment according to the sequence of the response speed and the number of at least one target device Select at least one the described target device for being used to provide the described target data.
4. according to the method described in claim 2, it is characterized in that, the number of at least one target device according to from The multiple second equipment selection is used to provide the described at least one described target device of target data, comprising:
The received signal strength RSSI of the multiple second equipment is determined according to the response message;
According to the signal strength of RSSI sequence and the number of at least one target device from the multiple second equipment Middle at least one described target device for selecting to be used to provide the described target data.
5. according to the method described in claim 4, it is characterized in that, the number of at least one target device be 1, it is described It is selected from the multiple second equipment according to the number of the signal strength of RSSI sequence and at least one target device Select at least one the described target device for being used to provide the described target data, comprising:
Strongest second equipment of the RSSI is selected from the multiple second equipment to be used to provide the described target data First object equipment;
Judge in the first object equipment whether include the target data total data;
When judging in the first object equipment only to include the partial data of the target data, the multiple second is chosen The second equipment comprising the data in the target data in addition to the partial data in equipment is the second target device.
6. according to the method described in claim 2, it is characterized in that, the response message includes device capability information, described It is used to provide the described described in target data according to the number of at least one target device from the selection of the multiple second equipment At least one target device, comprising:
The selection sequence of the multiple second equipment is determined according to the device capability information;
It selects to be used for from the multiple second equipment according to the number of the selection sequence and at least one target device At least one described target device of the target data is provided, includes the number of targets at least one described target device According to total data.
7. method according to claim 1-6, which is characterized in that before the broadcast first message, the side Method further include:
Enable NAN function;
According to default ranging strategy by the first equipment described in the NAN Function detection and predeterminable area each equipment away from From;
Screen the multiple equipment that the distance is less than pre-determined distance threshold value;
The NAN network is formed with the multiple equipment, and completes the synchronization of each equipment in the NAN network.
8. a kind of data transmission device, which is characterized in that be applied to the first equipment, first equipment is neighbouring sensing network NAN equipment in NAN network, the data transmission device include radio unit, receiving unit, selection unit and communication unit, Wherein:
The radio unit is detected for working as target data playing request, and the data transmission bauds of mobile network is low When pre-set velocity threshold value, first message is broadcasted, the first message removes institute into the NAN network for first equipment It states the multiple equipment except the first equipment and requests the target data, the target data is audio data and/or video data;
The receiving unit, for receiving the response message from multiple second equipment, the response message is used to indicate described Multiple second equipment include the target data;
The selection unit, for being used to provide the described at least one target of target data from the selection of the multiple second equipment Equipment;
The communication unit, for negotiating the transmission channel of the target data at least one described target device;
The receiving unit, the transmission channel being also used to through consultation receive the institute from least one target device State target data.
9. a kind of first equipment characterized by comprising processor, memory, and one or more programs;It is one Or multiple programs are stored in the memory, and are configured to be executed by the processor, described program includes being used for The instruction of step in the method as described in claim any one of 1-7 of execution.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 7, and the computer includes the One equipment.
CN201810913287.5A 2018-08-09 2018-08-09 Data transmission method and related product Active CN109089246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810913287.5A CN109089246B (en) 2018-08-09 2018-08-09 Data transmission method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810913287.5A CN109089246B (en) 2018-08-09 2018-08-09 Data transmission method and related product

Publications (2)

Publication Number Publication Date
CN109089246A true CN109089246A (en) 2018-12-25
CN109089246B CN109089246B (en) 2021-04-06

Family

ID=64834300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810913287.5A Active CN109089246B (en) 2018-08-09 2018-08-09 Data transmission method and related product

Country Status (1)

Country Link
CN (1) CN109089246B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110392423A (en) * 2019-06-28 2019-10-29 西安万像电子科技有限公司 Data transmission method, system and equipment
CN112055175A (en) * 2020-08-28 2020-12-08 浙江大华技术股份有限公司 Video partition-based negotiation transmission method, electronic device and recording medium
CN113596879A (en) * 2021-07-30 2021-11-02 浙江大华技术股份有限公司 Data transmission method and device of wireless equipment
CN116015545A (en) * 2022-12-12 2023-04-25 Oppo广东移动通信有限公司 Data transmission method, device, audio playing equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621793A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Quick switching method and device based on decentralization mobility management business architecture
CN105637951A (en) * 2013-10-18 2016-06-01 高通股份有限公司 Systems and methods for establishing synchronization across multiple networks and participating stas via operations on a known common channel
US20170094493A1 (en) * 2015-09-24 2017-03-30 Qualcomm Incorporated Reliable data channel over periodic discovery messages
CN108174420A (en) * 2018-02-02 2018-06-15 广东欧珀移动通信有限公司 Method for switching network, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621793A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Quick switching method and device based on decentralization mobility management business architecture
CN105637951A (en) * 2013-10-18 2016-06-01 高通股份有限公司 Systems and methods for establishing synchronization across multiple networks and participating stas via operations on a known common channel
US20170094493A1 (en) * 2015-09-24 2017-03-30 Qualcomm Incorporated Reliable data channel over periodic discovery messages
CN108174420A (en) * 2018-02-02 2018-06-15 广东欧珀移动通信有限公司 Method for switching network, device, terminal and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110392423A (en) * 2019-06-28 2019-10-29 西安万像电子科技有限公司 Data transmission method, system and equipment
CN110392423B (en) * 2019-06-28 2022-02-11 西安万像电子科技有限公司 Data transmission method, system and equipment
CN112055175A (en) * 2020-08-28 2020-12-08 浙江大华技术股份有限公司 Video partition-based negotiation transmission method, electronic device and recording medium
CN112055175B (en) * 2020-08-28 2023-03-24 浙江大华技术股份有限公司 Video partition-based negotiation transmission method, electronic device and recording medium
CN113596879A (en) * 2021-07-30 2021-11-02 浙江大华技术股份有限公司 Data transmission method and device of wireless equipment
CN116015545A (en) * 2022-12-12 2023-04-25 Oppo广东移动通信有限公司 Data transmission method, device, audio playing equipment and computer readable medium

Also Published As

Publication number Publication date
CN109089246B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
RU2670279C1 (en) Wireless device method, wireless device and computer device (options)
CN109089246A (en) data transmission method and related product
EP2884775B1 (en) Method, apparatus, and computer program product for service discovery in short-range communication environment
EP2892259B1 (en) Bluetooth-Low-Energy network discovery for Wi-Fi-Neighbour-Awareness Networks
US10004033B2 (en) Method, apparatus, and computer program product for hop count usage in cluster selection
US9398437B2 (en) Method, apparatus, and computer program product for service discovery in wireless short-range communication
US10004059B2 (en) Service advertisement message transmission method and device
CN106162684B (en) The method, apparatus and system of data transmission based on ZigBee-network
EP2894935A1 (en) Method, apparatus, and computer program product for wireless network cluster discovery and concurrency management
US20140321317A1 (en) Method, apparatus, and computer program product for network type determination
US9042828B2 (en) Method, apparatus, and computer program product for optimized discovery between mobile devices
CN104980987A (en) Method, apparatus, and computer program product for seamless switching of communication connection
CN103298012A (en) AP failure detection method and device
CN109005044A (en) Data transfer control method and relevant apparatus
CN109173267A (en) Game pairings method and Related product
CN104242989B (en) Code matching method and device
CN109089207A (en) Service recourse method and Related product
CN107548019B (en) Method and device for processing network beacon in wireless sensor network
CN109067882A (en) data sharing method and related product
CN116782262A (en) Data acquisition method, device, terminal and network side equipment
CN108718401A (en) Video meeting implementing method and relevant apparatus
CN105144821B (en) Signaling channel location determining method and device
WO2022088191A1 (en) Communication method and apparatus, and electronic device and storage medium
CN113676853A (en) Call method and terminal equipment
KR20230161283A (en) Method and apparatus for uwb (ultra wide band) communication

Legal Events

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