CN108683444B - Data transmission method and related product - Google Patents

Data transmission method and related product Download PDF

Info

Publication number
CN108683444B
CN108683444B CN201810857951.9A CN201810857951A CN108683444B CN 108683444 B CN108683444 B CN 108683444B CN 201810857951 A CN201810857951 A CN 201810857951A CN 108683444 B CN108683444 B CN 108683444B
Authority
CN
China
Prior art keywords
nan
transmission
transmission link
link
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.)
Active
Application number
CN201810857951.9A
Other languages
Chinese (zh)
Other versions
CN108683444A (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 CN201810857951.9A priority Critical patent/CN108683444B/en
Publication of CN108683444A publication Critical patent/CN108683444A/en
Application granted granted Critical
Publication of CN108683444B publication Critical patent/CN108683444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/155Ground-based stations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a data transmission method and a related product, which are applied to first Neighbor Awareness Network (NAN) equipment in a NAN, wherein the method comprises the following steps: the method comprises the steps of obtaining a second NAN device and a first transmission link in a first NAN, wherein the first data transmission link is a transmission link for data transmission between the first NAN device and the second NAN device, determining a first transmission quality value of the first data transmission link, the transmission quality value is used for representing the channel quality of the transmission link, when the first data transmission quality value is lower than a preset threshold value, selecting a second transmission link according to a preset transmission link updating strategy, wherein the second data transmission link comprises at least one NAN relay device in the first NAN, and performing data transmission according to the second data transmission link. The method and the device are beneficial to improving the data transmission quality and the safety of the electronic equipment for data transmission.

Description

Data transmission method and related product
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data transmission method and a related product.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, etc.), the electronic devices have more and more applications and more powerful functions, and the electronic devices are developed towards diversification and personalization, and become indispensable electronic products in the life of users. The existing technologies for carrying out photos, files and the like through electronic devices have become common technologies for users, but the existing technologies are limited in that direct connection is mostly adopted for data transmission in connection between Neighbor Awareness Network (NAN) devices, and high-speed transmission cannot be carried out under the conditions of long device distance, poor network speed and the like.
Disclosure of Invention
The embodiment of the application provides a data transmission method and a related product, and the application is favorable for improving the data transmission quality and the data transmission safety of electronic equipment.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first Neighbor Awareness Network (NAN) device in a NAN, and the method includes:
acquiring a second NAN device and a first transmission link in a first NAN, wherein the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
determining a first transmission quality value of said first transmission link, the transmission quality value being indicative of a channel quality of the transmission link;
if the first transmission quality value is lower than a preset threshold value, selecting a second transmission link according to a preset transmission link updating strategy, wherein the second transmission link comprises NAN relay equipment in at least one first NAN;
and carrying out data transmission according to the second transmission link.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a first neighbor awareness network NAN device in a first neighbor awareness network NAN, and the data transmission apparatus includes:
an obtaining unit, configured to obtain a second NAN device and a first transmission link in a first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
a determination unit for determining a first transmission quality value of the first transmission link, the transmission quality value being indicative of a channel quality of the transmission link;
a selecting unit, configured to select a second transmission link according to a preset transmission link update policy if the first transmission quality value is lower than a preset threshold, where the second transmission link includes at least one NAN relay device in the first NAN;
and the transmission unit is used for transmitting data according to the second transmission link.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the data transmission method and the related product described in the embodiments of the present application are applied to a first neighbor awareness network NAN, and are configured to first acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device, then determine a first transmission quality value of the first transmission link, where the transmission quality value is used to indicate channel quality of the transmission link, then, if the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay device in the first NAN, and finally, perform data transmission according to the second transmission link. Therefore, in the NAN network, a relay device forwarding means is provided, and when the quality of a direct connection link between two devices is poor, data is transmitted in a manner of a relay station, so that the overall quality of data transmission between the devices is improved, and the flexibility of device movement is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2A is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2B is a transmission diagram of a device for data transmission according to an embodiment of the present application;
fig. 3 is a schematic flow chart of another data transmission method disclosed in the embodiments of the present application;
fig. 4 is a schematic flow chart of another data transmission method disclosed in the embodiments of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a data transmission device disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the display device comprises a shell 110, a circuit board 120 arranged in the shell 110, a positioning device 130 and a display screen 140 arranged on the shell 110, wherein a processor 121 is arranged on the circuit board 120, the positioning device 130 is connected with the processor 121, and the processor 121 is connected with the display screen 140.
The following describes embodiments of the present application in detail.
Referring to fig. 2A, fig. 2A is a schematic flow chart of a data transmission method according to an embodiment of the present application, where the data transmission method described in the embodiment is applied to the electronic device shown in fig. 1, and the data transmission method includes:
s201, a second NAN device and a first transmission link in a first NAN are obtained, wherein the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device.
S202, a first transmission quality value of the first transmission link is determined, the transmission quality value being indicative of a channel quality of the transmission link.
The signal quality is obtained by weighting the network speed, the signal strength RSSI and the disconnection condition by combining the factors.
S203, if the first transmission quality value is lower than a preset threshold, selecting a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay device in the first NAN.
The preset threshold is set by a manufacturer when the electronic equipment is shipped.
And S204, carrying out data transmission according to the second transmission link.
It can be seen that the data transmission method and the related product described in the embodiments of the present application are applied to a first neighbor awareness network NAN, and are configured to first acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device, then determine a first transmission quality value of the first transmission link, where the transmission quality value is used to indicate channel quality of the transmission link, then, if the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay device in the first NAN, and finally, perform data transmission according to the second transmission link. Therefore, in the NAN network, a relay device forwarding means is provided, and when the quality of a direct connection link between two devices is poor, data is transmitted in a manner of a relay station, so that the overall quality of data transmission between the devices is improved, and the flexibility of device movement is improved.
Optionally, the electronic device may create a NAN group, set group identification information of the NAN group, send a Beacon (Beacon) to a neighboring NAN device, after receiving the Beacon sent by the electronic device, the neighboring NAN device may send a request to join the NAN group to the electronic device, and the electronic device may establish the NAN group according to the received request, so that the electronic device may perform message interaction, data transmission, and the like with the three NAN devices in the NAN group.
In one possible example, the selecting the second transmission link according to the preset transmission link update policy includes: obtaining at least one third NAN device in a first NAN, the third NAN device being a NAN relay device in the first NAN; sending a broadcast instruction to the third NAN device; obtaining at least one second transmission quality value in a second transmission link set through the broadcast instruction, wherein the second transmission link set comprises at least one transmission link for data transmission between the second NAN device and the at least one third NAN device; and screening the at least one second transmission quality value to obtain a second transmission link.
The broadcast instruction is used for obtaining the link quality condition between the relay equipment and the second equipment.
For example, as shown in fig. 2B, in a NAN network, a first NAN device is an electronic device, a relay device includes three NAN devices, and a second NAN device is a target device, and after a transmission link between the electronic device and the relay device is determined, a target link is obtained by screening transmission quality of each link between the three relay devices and the target device, and the target link is transmitted.
In this example, in the NAN network, data transmission may be performed through the relay device, and further, by detecting the quality of the multiple links between the relay device and the second NAN device, a link with the best quality is screened out for data transmission, so that the overall quality of data transmission between devices and the flexibility of data transmission may be improved.
In one possible example, the filtering the at least one second transmission quality value to obtain a second transmission link includes: selecting a target second transmission quality value above the preset threshold from the at least one second transmission quality value; and acquiring a target transmission link corresponding to the target second transmission quality value in the second transmission link set, wherein the target transmission link is a second transmission link.
Wherein, the corresponding relation between the second transmission quality value and the transmission link is one-to-one.
In this example, in the NAN network, the high-quality transmission link is obtained by screening out the second transmission quality higher than the preset threshold, so that the speed of data transmission and the flexibility of transmission between the devices can be improved.
In one possible example, the obtaining at least one third NAN device in the first NAN comprises: the method comprises the steps of obtaining at least one third NAN device in a preset range, wherein the distance of any one third NAN device in the preset range is smaller than a preset distance.
The preset range may be one meter, three meters, five meters, etc., and is not limited herein.
As can be seen, in the NAN network in this example, before the link between the relay device and the second NAN device is selected, the distance of any one third NAN device in the preset range is smaller than the preset distance, which ensures that the transmission quality values of the links are the same, and ensures the stability and efficiency of data transmission between the devices.
Optionally, the first NAN device filters and screens multiple groups of transmission links with the same transmission quality based on the history record; screening out a group of transmission links with the largest number of links according to the number of links included in each group of transmission links; and acquiring a plurality of relay devices corresponding to the group.
In one possible example, the transmitting data according to the second transmission link includes: obtaining a target third NAN device in the second transmission link; establishing a communication connection with the target third NAN device; instructing the target third NAN device and the second NAN device to establish a communication connection, and performing data transmission with the second NAN device through the target third NAN device.
As can be seen, in the NAN network in this example, by connecting the first NAN device and the relay device and the channel between the relay device and the second NAN device, the smoothness and stability of data transmission are ensured.
In one possible example, before the transmitting data according to the second transmission link, the method further includes: matching the second transmission link with a preset white list to obtain a matching result; and if the matching result is successful, transmitting the second transmission link.
The preset white list can be obtained for the electronic device through a cloud or set by a manufacturer when the electronic device leaves a factory, and the preset white list is not limited uniquely here.
Optionally, if the matching result is failure, the second transmission link set is obtained again, and re-detection is performed.
In this example, in the NAN network, by performing security check on the selected high-quality link, it can be ensured that the file transmitted by the link is secure during data transmission, and thus the security of data transmission between devices can be improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application, and the data transmission method is applied to a first neighbor aware network NAN device in a first neighbor aware network NAN. As shown in the figure, the data transmission method includes:
s301, a second NAN device and a first transmission link in a first NAN are obtained.
S302, determining a first transmission quality of the first transmission link.
S303, if the first transmission quality value is lower than a preset threshold, obtaining at least one third NAN device in the first NAN.
S304, sending a broadcast instruction to the third NAN device.
S305, obtaining at least one second transmission quality value in the second transmission link set according to the broadcast instruction.
S306, screening the at least one second transmission quality value to obtain a second transmission link.
And S307, transmitting data according to the second transmission link.
It can be seen that the data transmission method and the related product described in the embodiments of the present application are applied to a first neighbor awareness network NAN, and are configured to first acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device, then determine a first transmission quality value of the first transmission link, where the transmission quality value is used to indicate channel quality of the transmission link, then, if the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay device in the first NAN, and finally, perform data transmission according to the second transmission link. Therefore, in the NAN network, a relay device forwarding means is provided, and when the quality of a direct connection link between two devices is poor, data is transmitted in a manner of a relay station, so that the overall quality of data transmission between the devices is improved, and the flexibility of device movement is improved.
In addition, in the NAN network, data transmission can be carried out through the relay equipment, and further, the link with the best quality is screened out and data transmission is carried out through detecting the quality of a plurality of links between the relay equipment and the second NAN equipment, so that the overall quality of data transmission between the equipment and the flexibility of data transmission can be improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a data transmission method according to an embodiment of the present application, and the data transmission method is applied to a first neighbor aware network NAN device in a first neighbor aware network NAN. As shown in the figure, the data transmission method includes:
s401, a second NAN device and a first transmission link in a first NAN are obtained.
S402, determining a first transmission quality value of the first transmission link.
S403, if the first transmission quality value is lower than a preset threshold, acquiring at least one third NAN device in the first NAN.
S404, sending a broadcast instruction to the third NAN device.
S405, at least one second transmission quality value in the second transmission link set is obtained through the broadcast instruction.
S406, selecting a target second transmission quality value higher than the preset threshold from the at least one second transmission quality value.
And S407, acquiring a target transmission link corresponding to the target second transmission quality value in the second transmission link set, wherein the target transmission link is a second transmission link.
S408, obtain a target third NAN device in the second transmission link.
And S409, establishing communication connection with the target third NAN device.
S410, instructing the target third NAN device to establish a communication connection with the second NAN device.
S411, performing data transmission with the second NAN device through the target third NAN device.
It can be seen that the data transmission method and the related product described in the embodiments of the present application are applied to a first neighbor awareness network NAN, and are configured to first acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device, then determine a first transmission quality value of the first transmission link, where the transmission quality value is used to indicate channel quality of the transmission link, then, if the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay device in the first NAN, and finally, perform data transmission according to the second transmission link. Therefore, in the NAN network, a relay device forwarding means is provided, and when the quality of a direct connection link between two devices is poor, data is transmitted in a manner of a relay station, so that the overall quality of data transmission between the devices is improved, and the flexibility of device movement is improved.
In addition, in the NAN network, data transmission can be carried out through the relay equipment, and further, the link with the best quality is screened out and data transmission is carried out through detecting the quality of a plurality of links between the relay equipment and the second NAN equipment, so that the overall quality of data transmission between the equipment and the flexibility of data transmission can be improved.
In addition, in the NAN network, the high-quality transmission link can be obtained by screening out the second transmission quality higher than the preset threshold value, and the data transmission speed and the transmission flexibility between the devices can be improved.
In addition, in the NAN network, the first NAN equipment and the relay equipment are communicated, and the channels between the relay equipment and the second NAN equipment are communicated, so that the smoothness and the stability of data transmission are ensured.
Consistent with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application, as shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for performing the following steps;
acquiring a second NAN device and a first transmission link in a first NAN, wherein the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
determining a first transmission quality value of said first transmission link, the transmission quality value being indicative of a channel quality of the transmission link;
if the first transmission quality value is lower than a preset threshold value, selecting a second transmission link according to a preset transmission link updating strategy, wherein the second transmission link comprises NAN relay equipment in at least one first NAN;
and carrying out data transmission according to the second transmission link.
It can be seen that the data transmission method and the related product described in the embodiments of the present application are applied to a first neighbor awareness network NAN, and are configured to first acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device, then determine a first transmission quality value of the first transmission link, where the transmission quality value is used to indicate channel quality of the transmission link, then, if the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay device in the first NAN, and finally, perform data transmission according to the second transmission link. Therefore, in the NAN network, a relay device forwarding means is provided, and when the quality of a direct connection link between two devices is poor, data is transmitted in a manner of a relay station, so that the overall quality of data transmission between the devices is improved, and the flexibility of device movement is improved.
In one possible example, in the selecting the second transmission link according to the preset transmission link update policy, the program includes instructions for performing the steps of: obtaining at least one third NAN device in a first NAN, the third NAN device being a NAN relay device in the first NAN; sending a broadcast instruction to the third NAN device; obtaining at least one second transmission quality value in a second transmission link set through the broadcast instruction, wherein the second transmission link set comprises at least one transmission link for data transmission between the second NAN device and the at least one third NAN device; and screening the at least one second transmission quality value to obtain a second transmission link.
In one possible example, in said screening of said at least one second transmission quality value for a second transmission link, said program comprises instructions for performing the following steps:
selecting a target second transmission quality value above the preset threshold from the at least one second transmission quality value; and acquiring a target transmission link corresponding to the target second transmission quality value in the second transmission link set, wherein the target transmission link is a second transmission link.
In one possible example, in the obtaining at least one third NAN device in the first NAN, the program comprises instructions to:
and acquiring at least one third NAN device in a preset range, wherein the distance of any one third NAN device in the preset range is less than a preset distance.
In one possible example, in connection with the data transmission according to the second transmission link, the program includes instructions for performing the steps of:
obtaining a target third NAN device in the second transmission link; establishing a communication connection with the target third NAN device; instructing the target third NAN device and the second NAN device to establish a communication connection, and performing data transmission with the second NAN device through the target third NAN device.
In one possible example, before the data transmission according to the second transmission link, the program includes instructions for further performing the steps of:
matching the second transmission link with a preset white list to obtain a matching result; and if the matching result is successful, transmitting the second transmission link.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. The data transmission generating apparatus 600 shown in fig. 6 is applied to a first neighbor aware network NAN device in a first neighbor aware network NAN, the data transmission generating apparatus 600 includes an obtaining unit 601, a determining unit 602, a selecting unit 603, and a transmitting unit 604, wherein,
the acquiring unit 601 is configured to acquire a second NAN device and a first transmission link in a first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
the determining unit 602 is configured to determine a first transmission quality value of the first transmission link, where the transmission quality value is used to indicate a channel quality of the transmission link;
the selecting unit 603 is configured to select a second transmission link according to a preset transmission link update policy if the first transmission quality value is lower than a preset threshold, where the second transmission link includes at least one NAN relay device in the first NAN;
the transmission unit 604 is configured to perform data transmission according to the second transmission link.
It can be seen that the data transmission method and the related product described in the embodiments of the present application are applied to a first neighbor awareness network NAN, and are configured to first acquire a second NAN device and a first transmission link in the first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device, then determine a first transmission quality value of the first transmission link, where the transmission quality value is used to indicate channel quality of the transmission link, then, if the first transmission quality value is lower than a preset threshold, select a second transmission link according to a preset transmission link update policy, where the second transmission link includes at least one NAN relay device in the first NAN, and finally, perform data transmission according to the second transmission link. Therefore, in the NAN network, a relay device forwarding means is provided, and when the quality of a direct connection link between two devices is poor, data is transmitted in a manner of a relay station, so that the overall quality of data transmission between the devices is improved, and the flexibility of device movement is improved.
In a possible example, in terms of selecting the second transmission link according to the preset transmission link update policy, the selecting unit 603 is specifically configured to: obtaining at least one third NAN device in a first NAN, the third NAN device being a NAN relay device in the first NAN; sending a broadcast instruction to the third NAN device; obtaining at least one second transmission quality value in a second transmission link set through the broadcast instruction, wherein the second transmission link set comprises at least one transmission link for data transmission between the second NAN device and the at least one third NAN device; and screening the at least one second transmission quality value to obtain a second transmission link.
In a possible example, in the aspect of screening the at least one second transmission quality value to obtain a second transmission link, the selecting unit 603 is specifically configured to: selecting a target second transmission quality value above the preset threshold from the at least one second transmission quality value; and acquiring a target transmission link corresponding to the target second transmission quality value in the second transmission link set, wherein the target transmission link is a second transmission link.
In one possible example, in terms of the obtaining at least one third NAN device in the first NAN, the selecting unit 603 is specifically configured to: and acquiring at least one third NAN device in a preset range, wherein the distance of any one third NAN device in the preset range is less than a preset distance.
In a possible example, in terms of the data transmission according to the second transmission link, the transmission unit 604 is specifically configured to: obtaining a target third NAN device in the second transmission link; establishing a communication connection with the target third NAN device; instructing the target third NAN device and the second NAN device to establish a communication connection, and performing data transmission with the second NAN device through the target third NAN device.
In a possible example, before the data transmission according to the second transmission link, the determining unit 602 is further specifically configured to: matching the second transmission link with a preset white list to obtain a matching result; and if the matching result is successful, transmitting the second transmission link.
As shown in fig. 7, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a point of sale (POS), a vehicle-mounted computer, and the like.
Fig. 7 is a block diagram illustrating a partial structure of an electronic device provided in an embodiment of the present invention. As shown in fig. 7, the electronic device 710 may include control circuitry, which may include storage and processing circuitry 720. The storage and processing circuit 720 may be a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronically programmable read only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry 720 may be used to control the operation of the electronic device 710. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuit 720 may be used to run software in the electronic device 710, such as an internet browsing application, a Voice Over Internet Protocol (VOIP) phone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 710, to name a few.
The electronic device 710 may also include input-output circuitry 730. The input-output circuitry 730 may be used to enable the electronic device 710 to input and output data, i.e., to allow the electronic device 710 to receive data from external devices and also to allow the electronic device 710 to output data from the electronic device 710 to external devices. The input-output circuit 730 may further include a sensor 731. The sensors 731 may include ambient light sensors, proximity sensors based on light and capacitance, touch sensors (e.g., based on optical touch sensors and/or capacitive touch sensors, ultrasonic sensors, where the touch sensors may be part of a touch display screen or used independently as a touch sensor structure), acceleration sensors, and other sensors, etc.
Input-output circuitry 730 may also include one or more displays, such as display 732. Display 732 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. Display 732 may include an array of touch sensors (i.e., display 732 may be a touch-sensitive display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 710 may also include an audio component 733. The audio component 733 may be used to provide audio input and output functionality for the electronic device 710. Audio components 36 in electronic device 10 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
Communication circuitry 734 may be used to provide electronic device 710 with the ability to communicate with external devices. The communication circuitry 734 may include analog and digital input-output interface circuits, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 734 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry in communication circuitry 734 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, communications circuitry 734 may include a near field communications antenna and a near field communications transceiver. The communications circuitry 734 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so forth.
The electronic device 710 may further include a battery, power management circuitry, and other input-output units 735. The input-output unit 735 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through the input-output circuitry 730 to control the operation of the electronic device 710, and may use the output data of the input-output circuitry 730 to enable receipt of status information and other outputs from the electronic device 710.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the data transmission methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the data transmission methods as recited in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A data transmission method applied to a first Neighbor Awareness Network (NAN) device in a NAN, the method comprising:
acquiring a second NAN device and a first transmission link in a first NAN, wherein the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
determining a first transmission quality value of said first transmission link, the transmission quality value being indicative of a channel quality of the transmission link;
if the first transmission quality value is lower than a preset threshold value, selecting a second transmission link according to a preset transmission link updating strategy, wherein the second transmission link comprises NAN relay equipment in at least one first NAN;
carrying out data transmission according to the second transmission link;
after the transmission links between the first NAN device and the NAN relay devices are determined, screening the transmission quality of each link between the NAN relay devices and the second NAN device to obtain the second transmission link for transmission.
2. The method of claim 1, wherein selecting the second transmission link according to the preset transmission link update policy comprises:
obtaining at least one third NAN device in a first NAN, the third NAN device being a NAN relay device in the first NAN;
sending a broadcast instruction to the third NAN device;
obtaining at least one second transmission quality value in a second transmission link set through the broadcast instruction, wherein the second transmission link set comprises at least one transmission link for data transmission between the second NAN device and the at least one third NAN device;
and screening the at least one second transmission quality value to obtain a second transmission link.
3. The method according to claim 2, wherein said screening said at least one second transmission quality value for a second transmission link comprises:
selecting a target second transmission quality value above the preset threshold from the at least one second transmission quality value;
and acquiring a target transmission link corresponding to the target second transmission quality value in the second transmission link set, wherein the target transmission link is a second transmission link.
4. The method of claim 2, wherein obtaining at least one third NAN device in the first NAN comprises:
and acquiring at least one third NAN device in a preset range, wherein the distance of any one third NAN device in the preset range is less than a preset distance.
5. The method of claim 1, wherein the transmitting data according to the second transmission link comprises:
obtaining a target third NAN device in the second transmission link;
establishing a communication connection with the target third NAN device;
instruct the target third NAN device and the second NAN device to establish a communication connection,
performing data transmission with the second NAN device through the target third NAN device.
6. The method according to any of claims 1-5, wherein before said data transmission according to said second transmission link, said method further comprises:
matching the second transmission link with a preset white list to obtain a matching result;
and if the matching result is successful, transmitting the second transmission link.
7. A data transmission apparatus, applied to a first neighbor awareness network, NAN, device in a first NAN, the data transmission apparatus comprising:
an obtaining unit, configured to obtain a second NAN device and a first transmission link in a first NAN, where the first transmission link is a transmission link for data transmission between the first NAN device and the second NAN device;
a determination unit for determining a first transmission quality value of the first transmission link, the transmission quality value being indicative of a channel quality of the transmission link;
a selecting unit, configured to select a second transmission link according to a preset transmission link update policy if the first transmission quality value is lower than a preset threshold, where the second transmission link includes at least one NAN relay device in the first NAN;
the transmission unit is used for transmitting data according to the second transmission link;
after the transmission links between the first NAN device and the NAN relay devices are determined, screening the transmission quality of each link between the NAN relay devices and the second NAN device to obtain the second transmission link for transmission.
8. The data transmission apparatus according to claim 7, wherein in the aspect of selecting the second transmission link according to the preset transmission link update policy, the selecting unit is specifically configured to:
obtaining at least one third NAN device in a first NAN, the third NAN device being a NAN relay device in the first NAN;
sending a broadcast instruction to the third NAN device;
obtaining at least one second transmission quality value in a second transmission link set through the broadcast instruction, wherein the second transmission link set comprises at least one transmission link for data transmission between the second NAN device and the at least one third NAN device;
and screening the at least one second transmission quality value to obtain a second transmission link.
9. An electronic device, comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for the method of any of claims 1-6.
10. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN201810857951.9A 2018-07-31 2018-07-31 Data transmission method and related product Active CN108683444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810857951.9A CN108683444B (en) 2018-07-31 2018-07-31 Data transmission method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810857951.9A CN108683444B (en) 2018-07-31 2018-07-31 Data transmission method and related product

Publications (2)

Publication Number Publication Date
CN108683444A CN108683444A (en) 2018-10-19
CN108683444B true CN108683444B (en) 2020-12-22

Family

ID=63815019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810857951.9A Active CN108683444B (en) 2018-07-31 2018-07-31 Data transmission method and related product

Country Status (1)

Country Link
CN (1) CN108683444B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132234B (en) * 2018-11-01 2023-08-04 华为终端有限公司 Data transmission method and corresponding terminal
CN109474896B (en) * 2018-11-16 2022-04-22 Tcl移动通信科技(宁波)有限公司 Decentralized block chain implementation method, decentralized block chain implementation system and storage medium
CN111836329B (en) * 2019-04-19 2022-04-22 Oppo广东移动通信有限公司 Data transmission method and related device
CN110290544A (en) * 2019-05-24 2019-09-27 菜鸟智能物流控股有限公司 Data transmission device and method and electronic equipment
EP4079099A4 (en) * 2019-12-19 2023-07-19 Telefonaktiebolaget LM Ericsson (PUBL) Method for link selection, user equipment, network node, and telecommunication system
CN111726406A (en) * 2020-06-16 2020-09-29 杭州涂鸦信息技术有限公司 Data transmission method and related equipment
US20230060222A1 (en) * 2021-08-24 2023-03-02 Mediatek Inc. Apparatuses and methods for extending service range of neighbor awareness networking (nan) communication

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634812A (en) * 2013-11-27 2014-03-12 西安电子科技大学 Intra-cell device to device direct communication method based on user device relay

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997593B (en) * 2009-08-17 2014-04-02 上海交通大学 Self-adaption relay type preferential selecting method and relay node
CN102036345B (en) * 2009-09-24 2015-03-25 北京邮电大学 Method for selecting distributed optimum relay from mobile multi-hop relay network
CN101860873A (en) * 2010-05-21 2010-10-13 南京邮电大学 Distributed relay selection method based on cross-layer information exchange
CN101883410B (en) * 2010-07-20 2012-10-17 上海交通大学 Method for selecting relay node in multi-relay wireless network
CN102740352B (en) * 2011-04-07 2014-12-31 中国移动通信集团公司 Adaptive cooperation method, terminal, base station, and relay equipment based on relay selection
CN102355661B (en) * 2011-07-21 2015-06-17 北京邮电大学 Non-regenerative-relay-mode-based relay forwarding control method and device
US9572195B2 (en) * 2011-08-02 2017-02-14 Google Technology Holdings LLC Link sharing within a communication system
EP2670083B1 (en) * 2012-05-28 2015-05-06 Itron, Inc. Efficient multicast in a smart grid
CN103763015B (en) * 2014-02-10 2017-06-23 中国人民解放军理工大学 It is a kind of to have transmission antenna system of selection in the multiple antennas junction network of direct connected link
CN106714329B (en) * 2015-11-12 2021-03-02 华为技术有限公司 Method and device for establishing data link

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634812A (en) * 2013-11-27 2014-03-12 西安电子科技大学 Intra-cell device to device direct communication method based on user device relay

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
认知无线电系统的资源分配问题研究;周明月;《中国博士学位论文全文数据库》;20140915;全文 *

Also Published As

Publication number Publication date
CN108683444A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN108683444B (en) Data transmission method and related product
CN108924910B (en) AI model updating method and related product
CN109639367B (en) Electromagnetic interference adjusting method and related product
CN109274833B (en) Electromagnetic interference adjusting method and related product
CN109120683B (en) Data transmission method and related product
CN108834132B (en) Data transmission method and equipment and related medium product
CN109348055B (en) Display control method, display control device, electronic apparatus, and readable storage medium
CN108777741B (en) Antenna switching control method and related product
CN106302808A (en) Data transmission method and mobile terminal
KR102559651B1 (en) Electromagnetic interference control method and related products
CN106681860A (en) Data backup method and data backup device
CN103491525A (en) Method for achieving card-free mobile phone, mobile phone and server
CN110876184B (en) Carrier aggregation configuration method and related product
CN110475020B (en) Equipment control method and related product
CN110876197A (en) Updating method of carrier aggregation and related product
CN109803429B (en) RRM (radio resource management) measurement control method of adjacent cell, mobile communication terminal and network side equipment
CN108966290B (en) Network connection method and related product
CN108900385B (en) Network connection method and related product
CN109195226B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN109117370B (en) Game testing method and related product
CN106792434A (en) A kind of focus method for building up and terminal device
CN111327343A (en) Common receiving channel radio frequency device, method and mobile terminal
CN110602766A (en) Personal hotspot identification method and method for determining association relationship between terminals
CN110266384B (en) Local area network communication control method and related product
CN109714734B (en) DMR system, wireless communication method and device of DMR and terminal equipment

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